@everymatrix/cashier-header 1.86.2 → 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-7wyD3dTF.cjs +18 -0
- package/components/{CashierHeader-Cs0qni4C.js → CashierHeader-BxsOLB76.js} +592 -596
- package/components/{CashierHeader--uvcBbks.js → CashierHeader-DOPP69XQ.js} +601 -605
- package/es2015/cashier-header.cjs +1 -1
- package/es2015/cashier-header.js +1 -1
- package/esnext/cashier-header.js +1 -1
- package/package.json +1 -1
- package/components/CashierHeader-DRmsVPzl.cjs +0 -5
|
@@ -2,15 +2,15 @@ var ir = Object.defineProperty, sr = Object.defineProperties;
|
|
|
2
2
|
var or = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Je = Object.getOwnPropertySymbols;
|
|
4
4
|
var ar = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var ye = (e, t, r) => t in e ? ir(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
ar.call(t, r) &&
|
|
7
|
+
ar.call(t, r) && ye(e, r, t[r]);
|
|
8
8
|
if (Je)
|
|
9
9
|
for (var r of Je(t))
|
|
10
|
-
ur.call(t, r) &&
|
|
10
|
+
ur.call(t, r) && ye(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, Ye = (e, t) => sr(e, or(t));
|
|
13
|
-
var B = (e, t, r) => (
|
|
13
|
+
var B = (e, t, r) => (ye(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var Ke = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
@@ -43,10 +43,10 @@ function Bt(e) {
|
|
|
43
43
|
function et() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function ee(e) {
|
|
47
47
|
e.forEach(Bt);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function ke(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
52
|
function Tt(e, t) {
|
|
@@ -67,7 +67,7 @@ function wt(e, ...t) {
|
|
|
67
67
|
function fr(e, t, r) {
|
|
68
68
|
e.$$.on_destroy.push(wt(t, r));
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function xe(e, t, r, n) {
|
|
71
71
|
if (e) {
|
|
72
72
|
const i = St(e, t, r, n);
|
|
73
73
|
return e[0](i);
|
|
@@ -76,7 +76,7 @@ function ve(e, t, r, n) {
|
|
|
76
76
|
function St(e, t, r, n) {
|
|
77
77
|
return e[1] && n ? hr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Ee(e, t, r, n) {
|
|
80
80
|
if (e[2] && n) {
|
|
81
81
|
const i = e[2](n(r));
|
|
82
82
|
if (t.dirty === void 0)
|
|
@@ -91,13 +91,13 @@ function He(e, t, r, n) {
|
|
|
91
91
|
}
|
|
92
92
|
return t.dirty;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function ve(e, t, r, n, i, s) {
|
|
95
95
|
if (i) {
|
|
96
96
|
const a = St(t, r, n, s);
|
|
97
97
|
e.p(a, i);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function He(e) {
|
|
101
101
|
if (e.ctx.length > 32) {
|
|
102
102
|
const t = [], r = e.ctx.length / 32;
|
|
103
103
|
for (let n = 0; n < r; n++)
|
|
@@ -106,14 +106,14 @@ function Te(e) {
|
|
|
106
106
|
}
|
|
107
107
|
return -1;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function fe(e, t) {
|
|
110
110
|
e.appendChild(t);
|
|
111
111
|
}
|
|
112
112
|
function cr(e, t, r) {
|
|
113
113
|
const n = mr(e);
|
|
114
114
|
if (!n.getElementById(t)) {
|
|
115
|
-
const i =
|
|
116
|
-
i.id = t, i.textContent = r,
|
|
115
|
+
const i = X("style");
|
|
116
|
+
i.id = t, i.textContent = r, dr(n, i);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
function mr(e) {
|
|
@@ -126,38 +126,38 @@ function mr(e) {
|
|
|
126
126
|
t
|
|
127
127
|
) : e.ownerDocument;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
return
|
|
129
|
+
function dr(e, t) {
|
|
130
|
+
return fe(
|
|
131
131
|
/** @type {Document} */
|
|
132
132
|
e.head || e,
|
|
133
133
|
t
|
|
134
134
|
), t.sheet;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function I(e, t, r) {
|
|
137
137
|
e.insertBefore(t, r || null);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function P(e) {
|
|
140
140
|
e.parentNode && e.parentNode.removeChild(e);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function X(e) {
|
|
143
143
|
return document.createElement(e);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function Ve(e) {
|
|
146
146
|
return document.createTextNode(e);
|
|
147
147
|
}
|
|
148
148
|
function tt() {
|
|
149
|
-
return
|
|
149
|
+
return Ve(" ");
|
|
150
150
|
}
|
|
151
151
|
function At() {
|
|
152
|
-
return
|
|
152
|
+
return Ve("");
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Ct(e, t, r, n) {
|
|
155
155
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function te(e, t, r) {
|
|
158
158
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function pr(e) {
|
|
161
161
|
return Array.from(e.childNodes);
|
|
162
162
|
}
|
|
163
163
|
function br(e, t) {
|
|
@@ -173,97 +173,97 @@ function gr(e) {
|
|
|
173
173
|
}
|
|
174
174
|
), t;
|
|
175
175
|
}
|
|
176
|
-
let
|
|
177
|
-
function
|
|
178
|
-
|
|
176
|
+
let q;
|
|
177
|
+
function J(e) {
|
|
178
|
+
q = e;
|
|
179
179
|
}
|
|
180
180
|
function _r() {
|
|
181
|
-
if (!
|
|
181
|
+
if (!q)
|
|
182
182
|
throw new Error("Function called outside component initialization");
|
|
183
|
-
return
|
|
183
|
+
return q;
|
|
184
184
|
}
|
|
185
185
|
function yr(e) {
|
|
186
186
|
_r().$$.on_mount.push(e);
|
|
187
187
|
}
|
|
188
|
-
const
|
|
189
|
-
let
|
|
190
|
-
const rt = [],
|
|
191
|
-
let
|
|
192
|
-
function
|
|
193
|
-
|
|
188
|
+
const D = [], Le = [];
|
|
189
|
+
let G = [];
|
|
190
|
+
const rt = [], xr = /* @__PURE__ */ Promise.resolve();
|
|
191
|
+
let Ne = !1;
|
|
192
|
+
function Er() {
|
|
193
|
+
Ne || (Ne = !0, xr.then(w));
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
|
|
195
|
+
function Ie(e) {
|
|
196
|
+
G.push(e);
|
|
197
197
|
}
|
|
198
|
-
const
|
|
199
|
-
let
|
|
198
|
+
const Be = /* @__PURE__ */ new Set();
|
|
199
|
+
let $ = 0;
|
|
200
200
|
function w() {
|
|
201
|
-
if (
|
|
201
|
+
if ($ !== 0)
|
|
202
202
|
return;
|
|
203
|
-
const e =
|
|
203
|
+
const e = q;
|
|
204
204
|
do {
|
|
205
205
|
try {
|
|
206
|
-
for (;
|
|
207
|
-
const t =
|
|
208
|
-
|
|
206
|
+
for (; $ < D.length; ) {
|
|
207
|
+
const t = D[$];
|
|
208
|
+
$++, J(t), vr(t.$$);
|
|
209
209
|
}
|
|
210
210
|
} catch (t) {
|
|
211
|
-
throw
|
|
211
|
+
throw D.length = 0, $ = 0, t;
|
|
212
212
|
}
|
|
213
|
-
for (
|
|
214
|
-
|
|
215
|
-
for (let t = 0; t <
|
|
216
|
-
const r =
|
|
217
|
-
|
|
213
|
+
for (J(null), D.length = 0, $ = 0; Le.length; )
|
|
214
|
+
Le.pop()();
|
|
215
|
+
for (let t = 0; t < G.length; t += 1) {
|
|
216
|
+
const r = G[t];
|
|
217
|
+
Be.has(r) || (Be.add(r), r());
|
|
218
218
|
}
|
|
219
|
-
|
|
220
|
-
} while (
|
|
219
|
+
G.length = 0;
|
|
220
|
+
} while (D.length);
|
|
221
221
|
for (; rt.length; )
|
|
222
222
|
rt.pop()();
|
|
223
|
-
|
|
223
|
+
Ne = !1, Be.clear(), J(e);
|
|
224
224
|
}
|
|
225
225
|
function vr(e) {
|
|
226
226
|
if (e.fragment !== null) {
|
|
227
|
-
e.update(),
|
|
227
|
+
e.update(), ee(e.before_update);
|
|
228
228
|
const t = e.dirty;
|
|
229
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
229
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
function Hr(e) {
|
|
233
233
|
const t = [], r = [];
|
|
234
|
-
|
|
234
|
+
G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
|
|
235
235
|
}
|
|
236
|
-
const
|
|
236
|
+
const oe = /* @__PURE__ */ new Set();
|
|
237
237
|
let Br;
|
|
238
|
-
function
|
|
239
|
-
e && e.i && (
|
|
238
|
+
function ae(e, t) {
|
|
239
|
+
e && e.i && (oe.delete(e), e.i(t));
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function Te(e, t, r, n) {
|
|
242
242
|
if (e && e.o) {
|
|
243
|
-
if (
|
|
243
|
+
if (oe.has(e))
|
|
244
244
|
return;
|
|
245
|
-
|
|
246
|
-
|
|
245
|
+
oe.add(e), Br.c.push(() => {
|
|
246
|
+
oe.delete(e);
|
|
247
247
|
}), e.o(t);
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
function Tr(e, t, r) {
|
|
251
251
|
const { fragment: n, after_update: i } = e.$$;
|
|
252
|
-
n && n.m(t, r),
|
|
253
|
-
const s = e.$$.on_mount.map(Bt).filter(
|
|
254
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
255
|
-
}), i.forEach(
|
|
252
|
+
n && n.m(t, r), Ie(() => {
|
|
253
|
+
const s = e.$$.on_mount.map(Bt).filter(ke);
|
|
254
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ee(s), e.$$.on_mount = [];
|
|
255
|
+
}), i.forEach(Ie);
|
|
256
256
|
}
|
|
257
257
|
function wr(e, t) {
|
|
258
258
|
const r = e.$$;
|
|
259
|
-
r.fragment !== null && (Hr(r.after_update),
|
|
259
|
+
r.fragment !== null && (Hr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
260
260
|
}
|
|
261
261
|
function Sr(e, t) {
|
|
262
|
-
e.$$.dirty[0] === -1 && (
|
|
262
|
+
e.$$.dirty[0] === -1 && (D.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
263
263
|
}
|
|
264
264
|
function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
265
|
-
const l =
|
|
266
|
-
|
|
265
|
+
const l = q;
|
|
266
|
+
J(e);
|
|
267
267
|
const u = e.$$ = {
|
|
268
268
|
fragment: null,
|
|
269
269
|
ctx: [],
|
|
@@ -287,21 +287,21 @@ function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
287
287
|
};
|
|
288
288
|
a && a(u.root);
|
|
289
289
|
let h = !1;
|
|
290
|
-
if (u.ctx = r ? r(e, t.props || {}, (c, m, ...
|
|
291
|
-
const f =
|
|
290
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, m, ...d) => {
|
|
291
|
+
const f = d.length ? d[0] : m;
|
|
292
292
|
return u.ctx && i(u.ctx[c], u.ctx[c] = f) && (!u.skip_bound && u.bound[c] && u.bound[c](f), h && Sr(e, c)), m;
|
|
293
|
-
}) : [], u.update(), h = !0,
|
|
293
|
+
}) : [], u.update(), h = !0, ee(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
294
294
|
if (t.hydrate) {
|
|
295
|
-
const c =
|
|
296
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
295
|
+
const c = pr(t.target);
|
|
296
|
+
u.fragment && u.fragment.l(c), c.forEach(P);
|
|
297
297
|
} else
|
|
298
298
|
u.fragment && u.fragment.c();
|
|
299
|
-
t.intro &&
|
|
299
|
+
t.intro && ae(e.$$.fragment), Tr(e, t.target, t.anchor), w();
|
|
300
300
|
}
|
|
301
|
-
|
|
301
|
+
J(l);
|
|
302
302
|
}
|
|
303
|
-
let
|
|
304
|
-
typeof HTMLElement == "function" && (
|
|
303
|
+
let Ot;
|
|
304
|
+
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
305
305
|
constructor(t, r, n) {
|
|
306
306
|
super();
|
|
307
307
|
/** The Svelte component constructor */
|
|
@@ -345,17 +345,17 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
345
345
|
let a;
|
|
346
346
|
return {
|
|
347
347
|
c: function() {
|
|
348
|
-
a =
|
|
348
|
+
a = X("slot"), s !== "default" && te(a, "name", s);
|
|
349
349
|
},
|
|
350
350
|
/**
|
|
351
351
|
* @param {HTMLElement} target
|
|
352
352
|
* @param {HTMLElement} [anchor]
|
|
353
353
|
*/
|
|
354
354
|
m: function(u, h) {
|
|
355
|
-
|
|
355
|
+
I(u, a, h);
|
|
356
356
|
},
|
|
357
357
|
d: function(u) {
|
|
358
|
-
u &&
|
|
358
|
+
u && P(a);
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
361
|
};
|
|
@@ -367,7 +367,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
367
367
|
s in n && (r[s] = [t(s)]);
|
|
368
368
|
for (const s of this.attributes) {
|
|
369
369
|
const a = this.$$g_p(s.name);
|
|
370
|
-
a in this.$$d || (this.$$d[a] =
|
|
370
|
+
a in this.$$d || (this.$$d[a] = ue(a, s.value, this.$$p_d, "toProp"));
|
|
371
371
|
}
|
|
372
372
|
for (const s in this.$$p_d)
|
|
373
373
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -384,7 +384,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
384
384
|
this.$$r = !0;
|
|
385
385
|
for (const s in this.$$p_d)
|
|
386
386
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
387
|
-
const a =
|
|
387
|
+
const a = ue(
|
|
388
388
|
s,
|
|
389
389
|
this.$$d[s],
|
|
390
390
|
this.$$p_d,
|
|
@@ -408,7 +408,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
408
408
|
// and setting attributes through setAttribute etc, this is helpful
|
|
409
409
|
attributeChangedCallback(t, r, n) {
|
|
410
410
|
var i;
|
|
411
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
411
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ue(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
412
412
|
}
|
|
413
413
|
disconnectedCallback() {
|
|
414
414
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -421,7 +421,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
421
421
|
) || t;
|
|
422
422
|
}
|
|
423
423
|
});
|
|
424
|
-
function
|
|
424
|
+
function ue(e, t, r, n) {
|
|
425
425
|
var s;
|
|
426
426
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
427
427
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -451,8 +451,8 @@ function he(e, t, r, n) {
|
|
|
451
451
|
return t;
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
function
|
|
455
|
-
let a = class extends
|
|
454
|
+
function Cr(e, t, r, n, i, s) {
|
|
455
|
+
let a = class extends Ot {
|
|
456
456
|
constructor() {
|
|
457
457
|
super(e, r, i), this.$$p_d = t;
|
|
458
458
|
}
|
|
@@ -469,7 +469,7 @@ function Or(e, t, r, n, i, s) {
|
|
|
469
469
|
},
|
|
470
470
|
set(l) {
|
|
471
471
|
var u;
|
|
472
|
-
l =
|
|
472
|
+
l = ue(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
|
|
473
473
|
}
|
|
474
474
|
});
|
|
475
475
|
}), n.forEach((o) => {
|
|
@@ -482,7 +482,7 @@ function Or(e, t, r, n, i, s) {
|
|
|
482
482
|
}), e.element = /** @type {any} */
|
|
483
483
|
a, a;
|
|
484
484
|
}
|
|
485
|
-
class
|
|
485
|
+
class Or {
|
|
486
486
|
constructor() {
|
|
487
487
|
/**
|
|
488
488
|
* ### PRIVATE API
|
|
@@ -512,7 +512,7 @@ class Pr {
|
|
|
512
512
|
* @returns {() => void}
|
|
513
513
|
*/
|
|
514
514
|
$on(t, r) {
|
|
515
|
-
if (!
|
|
515
|
+
if (!ke(r))
|
|
516
516
|
return T;
|
|
517
517
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
518
518
|
return n.push(r), () => {
|
|
@@ -528,26 +528,26 @@ class Pr {
|
|
|
528
528
|
this.$$set && !lr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
-
const
|
|
532
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
533
|
-
const
|
|
531
|
+
const Pr = "4";
|
|
532
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Pr);
|
|
533
|
+
const U = [];
|
|
534
534
|
function Lr(e, t) {
|
|
535
535
|
return {
|
|
536
|
-
subscribe:
|
|
536
|
+
subscribe: pe(e, t).subscribe
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function pe(e, t = T) {
|
|
540
540
|
let r;
|
|
541
541
|
const n = /* @__PURE__ */ new Set();
|
|
542
542
|
function i(o) {
|
|
543
543
|
if (Tt(e, o) && (e = o, r)) {
|
|
544
|
-
const l = !
|
|
544
|
+
const l = !U.length;
|
|
545
545
|
for (const u of n)
|
|
546
|
-
u[1](),
|
|
546
|
+
u[1](), U.push(u, e);
|
|
547
547
|
if (l) {
|
|
548
|
-
for (let u = 0; u <
|
|
549
|
-
|
|
550
|
-
|
|
548
|
+
for (let u = 0; u < U.length; u += 2)
|
|
549
|
+
U[u][0](U[u + 1]);
|
|
550
|
+
U.length = 0;
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
}
|
|
@@ -562,7 +562,7 @@ function ge(e, t = T) {
|
|
|
562
562
|
}
|
|
563
563
|
return { set: i, update: s, subscribe: a };
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function z(e, t, r) {
|
|
566
566
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
567
567
|
if (!i.every(Boolean))
|
|
568
568
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -576,8 +576,8 @@ function W(e, t, r) {
|
|
|
576
576
|
return;
|
|
577
577
|
c();
|
|
578
578
|
const f = t(n ? u[0] : u, a, o);
|
|
579
|
-
s ? a(f) : c =
|
|
580
|
-
},
|
|
579
|
+
s ? a(f) : c = ke(f) ? f : T;
|
|
580
|
+
}, d = i.map(
|
|
581
581
|
(f, _) => wt(
|
|
582
582
|
f,
|
|
583
583
|
(v) => {
|
|
@@ -589,7 +589,7 @@ function W(e, t, r) {
|
|
|
589
589
|
)
|
|
590
590
|
);
|
|
591
591
|
return l = !0, m(), function() {
|
|
592
|
-
|
|
592
|
+
ee(d), c(), l = !1;
|
|
593
593
|
};
|
|
594
594
|
});
|
|
595
595
|
}
|
|
@@ -597,35 +597,35 @@ function Nr(e) {
|
|
|
597
597
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
598
598
|
}
|
|
599
599
|
var Ir = function(t) {
|
|
600
|
-
return Mr(t) &&
|
|
600
|
+
return Mr(t) && !Rr(t);
|
|
601
601
|
};
|
|
602
602
|
function Mr(e) {
|
|
603
603
|
return !!e && typeof e == "object";
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function Rr(e) {
|
|
606
606
|
var t = Object.prototype.toString.call(e);
|
|
607
607
|
return t === "[object RegExp]" || t === "[object Date]" || Dr(e);
|
|
608
608
|
}
|
|
609
|
-
var
|
|
609
|
+
var $r = typeof Symbol == "function" && Symbol.for, Ur = $r ? Symbol.for("react.element") : 60103;
|
|
610
610
|
function Dr(e) {
|
|
611
611
|
return e.$$typeof === Ur;
|
|
612
612
|
}
|
|
613
613
|
function Gr(e) {
|
|
614
614
|
return Array.isArray(e) ? [] : {};
|
|
615
615
|
}
|
|
616
|
-
function
|
|
617
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
616
|
+
function Y(e, t) {
|
|
617
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(Gr(e), e, t) : e;
|
|
618
618
|
}
|
|
619
619
|
function Fr(e, t, r) {
|
|
620
620
|
return e.concat(t).map(function(n) {
|
|
621
|
-
return
|
|
621
|
+
return Y(n, r);
|
|
622
622
|
});
|
|
623
623
|
}
|
|
624
624
|
function jr(e, t) {
|
|
625
625
|
if (!t.customMerge)
|
|
626
|
-
return
|
|
626
|
+
return F;
|
|
627
627
|
var r = t.customMerge(e);
|
|
628
|
-
return typeof r == "function" ? r :
|
|
628
|
+
return typeof r == "function" ? r : F;
|
|
629
629
|
}
|
|
630
630
|
function kr(e) {
|
|
631
631
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -635,7 +635,7 @@ function kr(e) {
|
|
|
635
635
|
function nt(e) {
|
|
636
636
|
return Object.keys(e).concat(kr(e));
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Pt(e, t) {
|
|
639
639
|
try {
|
|
640
640
|
return t in e;
|
|
641
641
|
} catch (r) {
|
|
@@ -643,56 +643,70 @@ function Ct(e, t) {
|
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
645
|
function Vr(e, t) {
|
|
646
|
-
return
|
|
646
|
+
return Pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
647
647
|
}
|
|
648
648
|
function Xr(e, t, r) {
|
|
649
649
|
var n = {};
|
|
650
650
|
return r.isMergeableObject(e) && nt(e).forEach(function(i) {
|
|
651
|
-
n[i] =
|
|
651
|
+
n[i] = Y(e[i], r);
|
|
652
652
|
}), nt(t).forEach(function(i) {
|
|
653
|
-
Vr(e, i) || (
|
|
653
|
+
Vr(e, i) || (Pt(e, i) && r.isMergeableObject(t[i]) ? n[i] = jr(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
|
|
654
654
|
}), n;
|
|
655
655
|
}
|
|
656
|
-
function
|
|
657
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Fr, r.isMergeableObject = r.isMergeableObject || Ir, r.cloneUnlessOtherwiseSpecified =
|
|
656
|
+
function F(e, t, r) {
|
|
657
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Fr, r.isMergeableObject = r.isMergeableObject || Ir, r.cloneUnlessOtherwiseSpecified = Y;
|
|
658
658
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
659
|
-
return s ? n ? r.arrayMerge(e, t, r) : Xr(e, t, r) :
|
|
659
|
+
return s ? n ? r.arrayMerge(e, t, r) : Xr(e, t, r) : Y(t, r);
|
|
660
660
|
}
|
|
661
|
-
|
|
661
|
+
F.all = function(t, r) {
|
|
662
662
|
if (!Array.isArray(t))
|
|
663
663
|
throw new Error("first argument should be an array");
|
|
664
664
|
return t.reduce(function(n, i) {
|
|
665
|
-
return
|
|
665
|
+
return F(n, i, r);
|
|
666
666
|
}, {});
|
|
667
667
|
};
|
|
668
|
-
var zr =
|
|
668
|
+
var zr = F, Wr = zr;
|
|
669
669
|
const Zr = /* @__PURE__ */ Nr(Wr);
|
|
670
|
-
|
|
671
|
-
|
|
670
|
+
/*! *****************************************************************************
|
|
671
|
+
Copyright (c) Microsoft Corporation.
|
|
672
|
+
|
|
673
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
674
|
+
purpose with or without fee is hereby granted.
|
|
675
|
+
|
|
676
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
677
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
678
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
679
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
680
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
681
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
682
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
683
|
+
***************************************************************************** */
|
|
684
|
+
var Me = function(e, t) {
|
|
685
|
+
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
672
686
|
r.__proto__ = n;
|
|
673
687
|
} || function(r, n) {
|
|
674
688
|
for (var i in n)
|
|
675
689
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
676
|
-
},
|
|
690
|
+
}, Me(e, t);
|
|
677
691
|
};
|
|
678
|
-
function
|
|
692
|
+
function be(e, t) {
|
|
679
693
|
if (typeof t != "function" && t !== null)
|
|
680
694
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
681
|
-
|
|
695
|
+
Me(e, t);
|
|
682
696
|
function r() {
|
|
683
697
|
this.constructor = e;
|
|
684
698
|
}
|
|
685
699
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
686
700
|
}
|
|
687
|
-
var
|
|
688
|
-
return
|
|
701
|
+
var y = function() {
|
|
702
|
+
return y = Object.assign || function(t) {
|
|
689
703
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
690
704
|
r = arguments[n];
|
|
691
705
|
for (var s in r)
|
|
692
706
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
693
707
|
}
|
|
694
708
|
return t;
|
|
695
|
-
},
|
|
709
|
+
}, y.apply(this, arguments);
|
|
696
710
|
};
|
|
697
711
|
function Qr(e, t) {
|
|
698
712
|
var r = {};
|
|
@@ -703,14 +717,14 @@ function Qr(e, t) {
|
|
|
703
717
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
704
718
|
return r;
|
|
705
719
|
}
|
|
706
|
-
function
|
|
707
|
-
if (
|
|
720
|
+
function we(e, t, r) {
|
|
721
|
+
if (arguments.length === 2)
|
|
708
722
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
709
723
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
710
|
-
return e.concat(s ||
|
|
724
|
+
return e.concat(s || t);
|
|
711
725
|
}
|
|
712
|
-
function
|
|
713
|
-
var r = t && t.cache ? t.cache :
|
|
726
|
+
function Se(e, t) {
|
|
727
|
+
var r = t && t.cache ? t.cache : tn, n = t && t.serializer ? t.serializer : en, i = t && t.strategy ? t.strategy : qr;
|
|
714
728
|
return i(e, {
|
|
715
729
|
cache: r,
|
|
716
730
|
serializer: n
|
|
@@ -719,103 +733,95 @@ function Oe(e, t) {
|
|
|
719
733
|
function Jr(e) {
|
|
720
734
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
721
735
|
}
|
|
722
|
-
function
|
|
736
|
+
function Lt(e, t, r, n) {
|
|
723
737
|
var i = Jr(n) ? n : r(n), s = t.get(i);
|
|
724
738
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
725
739
|
}
|
|
726
|
-
function
|
|
740
|
+
function Nt(e, t, r) {
|
|
727
741
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
728
742
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
729
743
|
}
|
|
730
|
-
function
|
|
744
|
+
function Xe(e, t, r, n, i) {
|
|
731
745
|
return r.bind(t, e, n, i);
|
|
732
746
|
}
|
|
747
|
+
function qr(e, t) {
|
|
748
|
+
var r = e.length === 1 ? Lt : Nt;
|
|
749
|
+
return Xe(e, this, r, t.cache.create(), t.serializer);
|
|
750
|
+
}
|
|
733
751
|
function Yr(e, t) {
|
|
734
|
-
|
|
735
|
-
return Nt(e, this, r, t.cache.create(), t.serializer);
|
|
752
|
+
return Xe(e, this, Nt, t.cache.create(), t.serializer);
|
|
736
753
|
}
|
|
737
754
|
function Kr(e, t) {
|
|
738
|
-
return
|
|
755
|
+
return Xe(e, this, Lt, t.cache.create(), t.serializer);
|
|
739
756
|
}
|
|
740
757
|
var en = function() {
|
|
741
758
|
return JSON.stringify(arguments);
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
}()
|
|
754
|
-
), rn = {
|
|
759
|
+
};
|
|
760
|
+
function ze() {
|
|
761
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
762
|
+
}
|
|
763
|
+
ze.prototype.get = function(e) {
|
|
764
|
+
return this.cache[e];
|
|
765
|
+
};
|
|
766
|
+
ze.prototype.set = function(e, t) {
|
|
767
|
+
this.cache[e] = t;
|
|
768
|
+
};
|
|
769
|
+
var tn = {
|
|
755
770
|
create: function() {
|
|
756
|
-
return new
|
|
771
|
+
return new ze();
|
|
757
772
|
}
|
|
758
|
-
},
|
|
759
|
-
variadic:
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
763
|
-
r = arguments[n];
|
|
764
|
-
for (var s in r)
|
|
765
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
766
|
-
}
|
|
767
|
-
return t;
|
|
768
|
-
}, me.apply(this, arguments);
|
|
769
|
-
};
|
|
770
|
-
var d;
|
|
773
|
+
}, Ae = {
|
|
774
|
+
variadic: Yr,
|
|
775
|
+
monadic: Kr
|
|
776
|
+
}, p;
|
|
771
777
|
(function(e) {
|
|
772
778
|
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";
|
|
773
|
-
})(
|
|
774
|
-
var
|
|
779
|
+
})(p || (p = {}));
|
|
780
|
+
var x;
|
|
775
781
|
(function(e) {
|
|
776
782
|
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";
|
|
777
|
-
})(
|
|
778
|
-
var
|
|
783
|
+
})(x || (x = {}));
|
|
784
|
+
var j;
|
|
779
785
|
(function(e) {
|
|
780
786
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
781
|
-
})(
|
|
787
|
+
})(j || (j = {}));
|
|
782
788
|
function it(e) {
|
|
783
|
-
return e.type ===
|
|
789
|
+
return e.type === x.literal;
|
|
784
790
|
}
|
|
785
|
-
function
|
|
786
|
-
return e.type ===
|
|
791
|
+
function rn(e) {
|
|
792
|
+
return e.type === x.argument;
|
|
787
793
|
}
|
|
788
794
|
function It(e) {
|
|
789
|
-
return e.type ===
|
|
795
|
+
return e.type === x.number;
|
|
790
796
|
}
|
|
791
797
|
function Mt(e) {
|
|
792
|
-
return e.type ===
|
|
793
|
-
}
|
|
794
|
-
function $t(e) {
|
|
795
|
-
return e.type === y.time;
|
|
798
|
+
return e.type === x.date;
|
|
796
799
|
}
|
|
797
800
|
function Rt(e) {
|
|
798
|
-
return e.type ===
|
|
801
|
+
return e.type === x.time;
|
|
802
|
+
}
|
|
803
|
+
function $t(e) {
|
|
804
|
+
return e.type === x.select;
|
|
799
805
|
}
|
|
800
806
|
function Ut(e) {
|
|
801
|
-
return e.type ===
|
|
807
|
+
return e.type === x.plural;
|
|
802
808
|
}
|
|
803
|
-
function
|
|
804
|
-
return e.type ===
|
|
809
|
+
function nn(e) {
|
|
810
|
+
return e.type === x.pound;
|
|
805
811
|
}
|
|
806
812
|
function Dt(e) {
|
|
807
|
-
return e.type ===
|
|
813
|
+
return e.type === x.tag;
|
|
808
814
|
}
|
|
809
815
|
function Gt(e) {
|
|
810
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
816
|
+
return !!(e && typeof e == "object" && e.type === j.number);
|
|
811
817
|
}
|
|
812
|
-
function
|
|
813
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
818
|
+
function Re(e) {
|
|
819
|
+
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
814
820
|
}
|
|
815
|
-
var Ft = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
816
|
-
function
|
|
821
|
+
var Ft = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, sn = /(?:[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;
|
|
822
|
+
function on(e) {
|
|
817
823
|
var t = {};
|
|
818
|
-
return e.replace(
|
|
824
|
+
return e.replace(sn, function(r) {
|
|
819
825
|
var n = r.length;
|
|
820
826
|
switch (r[0]) {
|
|
821
827
|
case "G":
|
|
@@ -904,21 +910,11 @@ function an(e) {
|
|
|
904
910
|
return "";
|
|
905
911
|
}), t;
|
|
906
912
|
}
|
|
907
|
-
var
|
|
908
|
-
|
|
909
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
910
|
-
r = arguments[n];
|
|
911
|
-
for (var s in r)
|
|
912
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
913
|
-
}
|
|
914
|
-
return t;
|
|
915
|
-
}, E.apply(this, arguments);
|
|
916
|
-
};
|
|
917
|
-
var un = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
918
|
-
function hn(e) {
|
|
913
|
+
var an = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
914
|
+
function un(e) {
|
|
919
915
|
if (e.length === 0)
|
|
920
916
|
throw new Error("Number skeleton cannot be empty");
|
|
921
|
-
for (var t = e.split(
|
|
917
|
+
for (var t = e.split(an).filter(function(m) {
|
|
922
918
|
return m.length > 0;
|
|
923
919
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
924
920
|
var s = i[n], a = s.split("/");
|
|
@@ -933,10 +929,10 @@ function hn(e) {
|
|
|
933
929
|
}
|
|
934
930
|
return r;
|
|
935
931
|
}
|
|
936
|
-
function
|
|
932
|
+
function hn(e) {
|
|
937
933
|
return e.replace(/^(.*?)-/, "");
|
|
938
934
|
}
|
|
939
|
-
var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
935
|
+
var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jt = /^(@+)?(\+|#+)?[rs]?$/g, ln = /(\*)(0+)|(#+)(0+)|(0+)/g, kt = /^(0+)$/;
|
|
940
936
|
function ot(e) {
|
|
941
937
|
var t = {};
|
|
942
938
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(jt, function(r, n, i) {
|
|
@@ -983,7 +979,7 @@ function Vt(e) {
|
|
|
983
979
|
};
|
|
984
980
|
}
|
|
985
981
|
}
|
|
986
|
-
function
|
|
982
|
+
function fn(e) {
|
|
987
983
|
var t;
|
|
988
984
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
989
985
|
notation: "engineering"
|
|
@@ -1001,7 +997,7 @@ function at(e) {
|
|
|
1001
997
|
var t = {}, r = Vt(e);
|
|
1002
998
|
return r || t;
|
|
1003
999
|
}
|
|
1004
|
-
function
|
|
1000
|
+
function cn(e) {
|
|
1005
1001
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1006
1002
|
var i = n[r];
|
|
1007
1003
|
switch (i.stem) {
|
|
@@ -1025,7 +1021,7 @@ function mn(e) {
|
|
|
1025
1021
|
continue;
|
|
1026
1022
|
case "measure-unit":
|
|
1027
1023
|
case "unit":
|
|
1028
|
-
t.style = "unit", t.unit =
|
|
1024
|
+
t.style = "unit", t.unit = hn(i.options[0]);
|
|
1029
1025
|
continue;
|
|
1030
1026
|
case "compact-short":
|
|
1031
1027
|
case "K":
|
|
@@ -1036,13 +1032,13 @@ function mn(e) {
|
|
|
1036
1032
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1037
1033
|
continue;
|
|
1038
1034
|
case "scientific":
|
|
1039
|
-
t =
|
|
1040
|
-
return
|
|
1035
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1036
|
+
return y(y({}, l), at(u));
|
|
1041
1037
|
}, {}));
|
|
1042
1038
|
continue;
|
|
1043
1039
|
case "engineering":
|
|
1044
|
-
t =
|
|
1045
|
-
return
|
|
1040
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1041
|
+
return y(y({}, l), at(u));
|
|
1046
1042
|
}, {}));
|
|
1047
1043
|
continue;
|
|
1048
1044
|
case "notation-simple":
|
|
@@ -1087,13 +1083,13 @@ function mn(e) {
|
|
|
1087
1083
|
case "integer-width":
|
|
1088
1084
|
if (i.options.length > 1)
|
|
1089
1085
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1090
|
-
i.options[0].replace(
|
|
1086
|
+
i.options[0].replace(ln, function(l, u, h, c, m, d) {
|
|
1091
1087
|
if (u)
|
|
1092
1088
|
t.minimumIntegerDigits = h.length;
|
|
1093
1089
|
else {
|
|
1094
1090
|
if (c && m)
|
|
1095
1091
|
throw new Error("We currently do not support maximum integer digits");
|
|
1096
|
-
if (
|
|
1092
|
+
if (d)
|
|
1097
1093
|
throw new Error("We currently do not support exact integer digits");
|
|
1098
1094
|
}
|
|
1099
1095
|
return "";
|
|
@@ -1107,25 +1103,25 @@ function mn(e) {
|
|
|
1107
1103
|
if (st.test(i.stem)) {
|
|
1108
1104
|
if (i.options.length > 1)
|
|
1109
1105
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1110
|
-
i.stem.replace(st, function(l, u, h, c, m,
|
|
1111
|
-
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m &&
|
|
1106
|
+
i.stem.replace(st, function(l, u, h, c, m, d) {
|
|
1107
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1112
1108
|
});
|
|
1113
1109
|
var s = i.options[0];
|
|
1114
|
-
s === "w" ? t =
|
|
1110
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), ot(s)));
|
|
1115
1111
|
continue;
|
|
1116
1112
|
}
|
|
1117
1113
|
if (jt.test(i.stem)) {
|
|
1118
|
-
t =
|
|
1114
|
+
t = y(y({}, t), ot(i.stem));
|
|
1119
1115
|
continue;
|
|
1120
1116
|
}
|
|
1121
1117
|
var a = Vt(i.stem);
|
|
1122
|
-
a && (t =
|
|
1123
|
-
var o =
|
|
1124
|
-
o && (t =
|
|
1118
|
+
a && (t = y(y({}, t), a));
|
|
1119
|
+
var o = fn(i.stem);
|
|
1120
|
+
o && (t = y(y({}, t), o));
|
|
1125
1121
|
}
|
|
1126
1122
|
return t;
|
|
1127
1123
|
}
|
|
1128
|
-
var
|
|
1124
|
+
var se = {
|
|
1129
1125
|
"001": [
|
|
1130
1126
|
"H",
|
|
1131
1127
|
"h"
|
|
@@ -2540,7 +2536,7 @@ var oe = {
|
|
|
2540
2536
|
"h"
|
|
2541
2537
|
]
|
|
2542
2538
|
};
|
|
2543
|
-
function
|
|
2539
|
+
function mn(e, t) {
|
|
2544
2540
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2545
2541
|
var i = e.charAt(n);
|
|
2546
2542
|
if (i === "j") {
|
|
@@ -2575,23 +2571,23 @@ function dn(e) {
|
|
|
2575
2571
|
}
|
|
2576
2572
|
var r = e.language, n;
|
|
2577
2573
|
r !== "root" && (n = e.maximize().region);
|
|
2578
|
-
var i =
|
|
2574
|
+
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
2579
2575
|
return i[0];
|
|
2580
2576
|
}
|
|
2581
|
-
var Ce,
|
|
2577
|
+
var Ce, pn = new RegExp("^".concat(Ft.source, "*")), bn = new RegExp("".concat(Ft.source, "*$"));
|
|
2582
2578
|
function b(e, t) {
|
|
2583
2579
|
return { start: e, end: t };
|
|
2584
2580
|
}
|
|
2585
|
-
var
|
|
2581
|
+
var gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), _n = !!String.fromCodePoint, yn = !!Object.fromEntries, xn = !!String.prototype.codePointAt, En = !!String.prototype.trimStart, vn = !!String.prototype.trimEnd, Hn = !!Number.isSafeInteger, Bn = Hn ? Number.isSafeInteger : function(e) {
|
|
2586
2582
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2587
|
-
},
|
|
2583
|
+
}, $e = !0;
|
|
2588
2584
|
try {
|
|
2589
|
-
var
|
|
2590
|
-
|
|
2585
|
+
var Tn = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2586
|
+
$e = ((Ce = Tn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
|
|
2591
2587
|
} catch (e) {
|
|
2592
|
-
|
|
2588
|
+
$e = !1;
|
|
2593
2589
|
}
|
|
2594
|
-
var ut =
|
|
2590
|
+
var ut = gn ? (
|
|
2595
2591
|
// Native
|
|
2596
2592
|
function(t, r, n) {
|
|
2597
2593
|
return t.startsWith(r, n);
|
|
@@ -2601,7 +2597,7 @@ var ut = _n ? (
|
|
|
2601
2597
|
function(t, r, n) {
|
|
2602
2598
|
return t.slice(n, n + r.length) === r;
|
|
2603
2599
|
}
|
|
2604
|
-
),
|
|
2600
|
+
), Ue = _n ? String.fromCodePoint : (
|
|
2605
2601
|
// IE11
|
|
2606
2602
|
function() {
|
|
2607
2603
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2615,7 +2611,7 @@ var ut = _n ? (
|
|
|
2615
2611
|
}
|
|
2616
2612
|
), ht = (
|
|
2617
2613
|
// native
|
|
2618
|
-
|
|
2614
|
+
yn ? Object.fromEntries : (
|
|
2619
2615
|
// Ponyfill
|
|
2620
2616
|
function(t) {
|
|
2621
2617
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2639,7 +2635,7 @@ var ut = _n ? (
|
|
|
2639
2635
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2640
2636
|
}
|
|
2641
2637
|
}
|
|
2642
|
-
),
|
|
2638
|
+
), wn = En ? (
|
|
2643
2639
|
// Native
|
|
2644
2640
|
function(t) {
|
|
2645
2641
|
return t.trimStart();
|
|
@@ -2647,9 +2643,9 @@ var ut = _n ? (
|
|
|
2647
2643
|
) : (
|
|
2648
2644
|
// Ponyfill
|
|
2649
2645
|
function(t) {
|
|
2650
|
-
return t.replace(
|
|
2646
|
+
return t.replace(pn, "");
|
|
2651
2647
|
}
|
|
2652
|
-
),
|
|
2648
|
+
), Sn = vn ? (
|
|
2653
2649
|
// Native
|
|
2654
2650
|
function(t) {
|
|
2655
2651
|
return t.trimEnd();
|
|
@@ -2657,32 +2653,32 @@ var ut = _n ? (
|
|
|
2657
2653
|
) : (
|
|
2658
2654
|
// Ponyfill
|
|
2659
2655
|
function(t) {
|
|
2660
|
-
return t.replace(
|
|
2656
|
+
return t.replace(bn, "");
|
|
2661
2657
|
}
|
|
2662
2658
|
);
|
|
2663
2659
|
function zt(e, t) {
|
|
2664
2660
|
return new RegExp(e, t);
|
|
2665
2661
|
}
|
|
2666
|
-
var
|
|
2667
|
-
if (
|
|
2662
|
+
var De;
|
|
2663
|
+
if ($e) {
|
|
2668
2664
|
var lt = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2669
|
-
|
|
2665
|
+
De = function(t, r) {
|
|
2670
2666
|
var n;
|
|
2671
2667
|
lt.lastIndex = r;
|
|
2672
2668
|
var i = lt.exec(t);
|
|
2673
2669
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2674
2670
|
};
|
|
2675
2671
|
} else
|
|
2676
|
-
|
|
2672
|
+
De = function(t, r) {
|
|
2677
2673
|
for (var n = []; ; ) {
|
|
2678
2674
|
var i = Xt(t, r);
|
|
2679
|
-
if (i === void 0 || Wt(i) ||
|
|
2675
|
+
if (i === void 0 || Wt(i) || Pn(i))
|
|
2680
2676
|
break;
|
|
2681
2677
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2682
2678
|
}
|
|
2683
|
-
return
|
|
2679
|
+
return Ue.apply(void 0, n);
|
|
2684
2680
|
};
|
|
2685
|
-
var
|
|
2681
|
+
var An = (
|
|
2686
2682
|
/** @class */
|
|
2687
2683
|
function() {
|
|
2688
2684
|
function e(t, r) {
|
|
@@ -2706,14 +2702,14 @@ var On = (
|
|
|
2706
2702
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2707
2703
|
var o = this.clonePosition();
|
|
2708
2704
|
this.bump(), i.push({
|
|
2709
|
-
type:
|
|
2705
|
+
type: x.pound,
|
|
2710
2706
|
location: b(o, this.clonePosition())
|
|
2711
2707
|
});
|
|
2712
2708
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2713
2709
|
if (n)
|
|
2714
2710
|
break;
|
|
2715
|
-
return this.error(
|
|
2716
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2711
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2712
|
+
} else if (s === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
|
|
2717
2713
|
var a = this.parseTag(t, r);
|
|
2718
2714
|
if (a.err)
|
|
2719
2715
|
return a;
|
|
@@ -2734,7 +2730,7 @@ var On = (
|
|
|
2734
2730
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2735
2731
|
return {
|
|
2736
2732
|
val: {
|
|
2737
|
-
type:
|
|
2733
|
+
type: x.literal,
|
|
2738
2734
|
value: "<".concat(i, "/>"),
|
|
2739
2735
|
location: b(n, this.clonePosition())
|
|
2740
2736
|
},
|
|
@@ -2746,25 +2742,25 @@ var On = (
|
|
|
2746
2742
|
return s;
|
|
2747
2743
|
var a = s.val, o = this.clonePosition();
|
|
2748
2744
|
if (this.bumpIf("</")) {
|
|
2749
|
-
if (this.isEOF() || !
|
|
2750
|
-
return this.error(
|
|
2745
|
+
if (this.isEOF() || !Ge(this.char()))
|
|
2746
|
+
return this.error(p.INVALID_TAG, b(o, this.clonePosition()));
|
|
2751
2747
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2752
|
-
return i !== u ? this.error(
|
|
2748
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2753
2749
|
val: {
|
|
2754
|
-
type:
|
|
2750
|
+
type: x.tag,
|
|
2755
2751
|
value: i,
|
|
2756
2752
|
children: a,
|
|
2757
2753
|
location: b(n, this.clonePosition())
|
|
2758
2754
|
},
|
|
2759
2755
|
err: null
|
|
2760
|
-
} : this.error(
|
|
2756
|
+
} : this.error(p.INVALID_TAG, b(o, this.clonePosition())));
|
|
2761
2757
|
} else
|
|
2762
|
-
return this.error(
|
|
2758
|
+
return this.error(p.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
2763
2759
|
} else
|
|
2764
|
-
return this.error(
|
|
2760
|
+
return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
|
|
2765
2761
|
}, e.prototype.parseTagName = function() {
|
|
2766
2762
|
var t = this.offset();
|
|
2767
|
-
for (this.bump(); !this.isEOF() &&
|
|
2763
|
+
for (this.bump(); !this.isEOF() && On(this.char()); )
|
|
2768
2764
|
this.bump();
|
|
2769
2765
|
return this.message.slice(t, this.offset());
|
|
2770
2766
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2788,12 +2784,12 @@ var On = (
|
|
|
2788
2784
|
}
|
|
2789
2785
|
var l = b(n, this.clonePosition());
|
|
2790
2786
|
return {
|
|
2791
|
-
val: { type:
|
|
2787
|
+
val: { type: x.literal, value: i, location: l },
|
|
2792
2788
|
err: null
|
|
2793
2789
|
};
|
|
2794
2790
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2795
2791
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2796
|
-
!
|
|
2792
|
+
!Cn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2797
2793
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2798
2794
|
if (this.isEOF() || this.char() !== 39)
|
|
2799
2795
|
return null;
|
|
@@ -2827,28 +2823,28 @@ var On = (
|
|
|
2827
2823
|
r.push(n);
|
|
2828
2824
|
this.bump();
|
|
2829
2825
|
}
|
|
2830
|
-
return
|
|
2826
|
+
return Ue.apply(void 0, r);
|
|
2831
2827
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2832
2828
|
if (this.isEOF())
|
|
2833
2829
|
return null;
|
|
2834
2830
|
var n = this.char();
|
|
2835
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2831
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ue(n));
|
|
2836
2832
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2837
2833
|
var n = this.clonePosition();
|
|
2838
2834
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2839
|
-
return this.error(
|
|
2835
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2840
2836
|
if (this.char() === 125)
|
|
2841
|
-
return this.bump(), this.error(
|
|
2837
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
2842
2838
|
var i = this.parseIdentifierIfPossible().value;
|
|
2843
2839
|
if (!i)
|
|
2844
|
-
return this.error(
|
|
2840
|
+
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2845
2841
|
if (this.bumpSpace(), this.isEOF())
|
|
2846
|
-
return this.error(
|
|
2842
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2847
2843
|
switch (this.char()) {
|
|
2848
2844
|
case 125:
|
|
2849
2845
|
return this.bump(), {
|
|
2850
2846
|
val: {
|
|
2851
|
-
type:
|
|
2847
|
+
type: x.argument,
|
|
2852
2848
|
// value does not include the opening and closing braces.
|
|
2853
2849
|
value: i,
|
|
2854
2850
|
location: b(n, this.clonePosition())
|
|
@@ -2856,12 +2852,12 @@ var On = (
|
|
|
2856
2852
|
err: null
|
|
2857
2853
|
};
|
|
2858
2854
|
case 44:
|
|
2859
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2855
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2860
2856
|
default:
|
|
2861
|
-
return this.error(
|
|
2857
|
+
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2862
2858
|
}
|
|
2863
2859
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2864
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2860
|
+
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
2865
2861
|
this.bumpTo(i);
|
|
2866
2862
|
var s = this.clonePosition(), a = b(t, s);
|
|
2867
2863
|
return { value: n, location: a };
|
|
@@ -2869,7 +2865,7 @@ var On = (
|
|
|
2869
2865
|
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2870
2866
|
switch (o) {
|
|
2871
2867
|
case "":
|
|
2872
|
-
return this.error(
|
|
2868
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, b(a, l));
|
|
2873
2869
|
case "number":
|
|
2874
2870
|
case "date":
|
|
2875
2871
|
case "time": {
|
|
@@ -2880,44 +2876,44 @@ var On = (
|
|
|
2880
2876
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2881
2877
|
if (c.err)
|
|
2882
2878
|
return c;
|
|
2883
|
-
var m =
|
|
2879
|
+
var m = Sn(c.val);
|
|
2884
2880
|
if (m.length === 0)
|
|
2885
|
-
return this.error(
|
|
2886
|
-
var
|
|
2887
|
-
u = { style: m, styleLocation:
|
|
2881
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2882
|
+
var d = b(h, this.clonePosition());
|
|
2883
|
+
u = { style: m, styleLocation: d };
|
|
2888
2884
|
}
|
|
2889
2885
|
var f = this.tryParseArgumentClose(i);
|
|
2890
2886
|
if (f.err)
|
|
2891
2887
|
return f;
|
|
2892
2888
|
var _ = b(i, this.clonePosition());
|
|
2893
2889
|
if (u && ut(u == null ? void 0 : u.style, "::", 0)) {
|
|
2894
|
-
var v =
|
|
2890
|
+
var v = wn(u.style.slice(2));
|
|
2895
2891
|
if (o === "number") {
|
|
2896
2892
|
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
2897
2893
|
return c.err ? c : {
|
|
2898
|
-
val: { type:
|
|
2894
|
+
val: { type: x.number, value: n, location: _, style: c.val },
|
|
2899
2895
|
err: null
|
|
2900
2896
|
};
|
|
2901
2897
|
} else {
|
|
2902
2898
|
if (v.length === 0)
|
|
2903
|
-
return this.error(
|
|
2904
|
-
var
|
|
2905
|
-
this.locale && (
|
|
2899
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, _);
|
|
2900
|
+
var A = v;
|
|
2901
|
+
this.locale && (A = mn(v, this.locale));
|
|
2906
2902
|
var m = {
|
|
2907
|
-
type:
|
|
2908
|
-
pattern:
|
|
2903
|
+
type: j.dateTime,
|
|
2904
|
+
pattern: A,
|
|
2909
2905
|
location: u.styleLocation,
|
|
2910
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2911
|
-
},
|
|
2906
|
+
parsedOptions: this.shouldParseSkeletons ? on(A) : {}
|
|
2907
|
+
}, C = o === "date" ? x.date : x.time;
|
|
2912
2908
|
return {
|
|
2913
|
-
val: { type:
|
|
2909
|
+
val: { type: C, value: n, location: _, style: m },
|
|
2914
2910
|
err: null
|
|
2915
2911
|
};
|
|
2916
2912
|
}
|
|
2917
2913
|
}
|
|
2918
2914
|
return {
|
|
2919
2915
|
val: {
|
|
2920
|
-
type: o === "number" ?
|
|
2916
|
+
type: o === "number" ? x.number : o === "date" ? x.date : x.time,
|
|
2921
2917
|
value: n,
|
|
2922
2918
|
location: _,
|
|
2923
2919
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
@@ -2930,50 +2926,50 @@ var On = (
|
|
|
2930
2926
|
case "select": {
|
|
2931
2927
|
var H = this.clonePosition();
|
|
2932
2928
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2933
|
-
return this.error(
|
|
2929
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, y({}, H)));
|
|
2934
2930
|
this.bumpSpace();
|
|
2935
|
-
var
|
|
2936
|
-
if (o !== "select" &&
|
|
2931
|
+
var N = this.parseIdentifierIfPossible(), S = 0;
|
|
2932
|
+
if (o !== "select" && N.value === "offset") {
|
|
2937
2933
|
if (!this.bumpIf(":"))
|
|
2938
|
-
return this.error(
|
|
2934
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2939
2935
|
this.bumpSpace();
|
|
2940
|
-
var c = this.tryParseDecimalInteger(
|
|
2936
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2941
2937
|
if (c.err)
|
|
2942
2938
|
return c;
|
|
2943
|
-
this.bumpSpace(),
|
|
2939
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), S = c.val;
|
|
2944
2940
|
}
|
|
2945
|
-
var R = this.tryParsePluralOrSelectOptions(t, o, r,
|
|
2941
|
+
var R = this.tryParsePluralOrSelectOptions(t, o, r, N);
|
|
2946
2942
|
if (R.err)
|
|
2947
2943
|
return R;
|
|
2948
2944
|
var f = this.tryParseArgumentClose(i);
|
|
2949
2945
|
if (f.err)
|
|
2950
2946
|
return f;
|
|
2951
|
-
var
|
|
2947
|
+
var ie = b(i, this.clonePosition());
|
|
2952
2948
|
return o === "select" ? {
|
|
2953
2949
|
val: {
|
|
2954
|
-
type:
|
|
2950
|
+
type: x.select,
|
|
2955
2951
|
value: n,
|
|
2956
2952
|
options: ht(R.val),
|
|
2957
|
-
location:
|
|
2953
|
+
location: ie
|
|
2958
2954
|
},
|
|
2959
2955
|
err: null
|
|
2960
2956
|
} : {
|
|
2961
2957
|
val: {
|
|
2962
|
-
type:
|
|
2958
|
+
type: x.plural,
|
|
2963
2959
|
value: n,
|
|
2964
2960
|
options: ht(R.val),
|
|
2965
|
-
offset:
|
|
2961
|
+
offset: S,
|
|
2966
2962
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2967
|
-
location:
|
|
2963
|
+
location: ie
|
|
2968
2964
|
},
|
|
2969
2965
|
err: null
|
|
2970
2966
|
};
|
|
2971
2967
|
}
|
|
2972
2968
|
default:
|
|
2973
|
-
return this.error(
|
|
2969
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, b(a, l));
|
|
2974
2970
|
}
|
|
2975
2971
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2976
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2972
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2977
2973
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2978
2974
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2979
2975
|
var n = this.char();
|
|
@@ -2982,7 +2978,7 @@ var On = (
|
|
|
2982
2978
|
this.bump();
|
|
2983
2979
|
var i = this.clonePosition();
|
|
2984
2980
|
if (!this.bumpUntil("'"))
|
|
2985
|
-
return this.error(
|
|
2981
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
2986
2982
|
this.bump();
|
|
2987
2983
|
break;
|
|
2988
2984
|
}
|
|
@@ -3012,16 +3008,16 @@ var On = (
|
|
|
3012
3008
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3013
3009
|
var n = [];
|
|
3014
3010
|
try {
|
|
3015
|
-
n =
|
|
3011
|
+
n = un(t);
|
|
3016
3012
|
} catch (i) {
|
|
3017
|
-
return this.error(
|
|
3013
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3018
3014
|
}
|
|
3019
3015
|
return {
|
|
3020
3016
|
val: {
|
|
3021
|
-
type:
|
|
3017
|
+
type: j.number,
|
|
3022
3018
|
tokens: n,
|
|
3023
3019
|
location: r,
|
|
3024
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3020
|
+
parsedOptions: this.shouldParseSkeletons ? cn(n) : {}
|
|
3025
3021
|
},
|
|
3026
3022
|
err: null
|
|
3027
3023
|
};
|
|
@@ -3030,7 +3026,7 @@ var On = (
|
|
|
3030
3026
|
if (u.length === 0) {
|
|
3031
3027
|
var c = this.clonePosition();
|
|
3032
3028
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3033
|
-
var m = this.tryParseDecimalInteger(
|
|
3029
|
+
var m = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3034
3030
|
if (m.err)
|
|
3035
3031
|
return m;
|
|
3036
3032
|
h = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
@@ -3038,26 +3034,26 @@ var On = (
|
|
|
3038
3034
|
break;
|
|
3039
3035
|
}
|
|
3040
3036
|
if (l.has(u))
|
|
3041
|
-
return this.error(r === "select" ?
|
|
3037
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3042
3038
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3043
|
-
var
|
|
3039
|
+
var d = this.clonePosition();
|
|
3044
3040
|
if (!this.bumpIf("{"))
|
|
3045
|
-
return this.error(r === "select" ?
|
|
3041
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3046
3042
|
var f = this.parseMessage(t + 1, r, n);
|
|
3047
3043
|
if (f.err)
|
|
3048
3044
|
return f;
|
|
3049
|
-
var _ = this.tryParseArgumentClose(
|
|
3045
|
+
var _ = this.tryParseArgumentClose(d);
|
|
3050
3046
|
if (_.err)
|
|
3051
3047
|
return _;
|
|
3052
3048
|
o.push([
|
|
3053
3049
|
u,
|
|
3054
3050
|
{
|
|
3055
3051
|
value: f.val,
|
|
3056
|
-
location: b(
|
|
3052
|
+
location: b(d, this.clonePosition())
|
|
3057
3053
|
}
|
|
3058
3054
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3059
3055
|
}
|
|
3060
|
-
return o.length === 0 ? this.error(r === "select" ?
|
|
3056
|
+
return o.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(p.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3061
3057
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3062
3058
|
var n = 1, i = this.clonePosition();
|
|
3063
3059
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3069,7 +3065,7 @@ var On = (
|
|
|
3069
3065
|
break;
|
|
3070
3066
|
}
|
|
3071
3067
|
var l = b(i, this.clonePosition());
|
|
3072
|
-
return s ? (a *= n,
|
|
3068
|
+
return s ? (a *= n, Bn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3073
3069
|
}, e.prototype.offset = function() {
|
|
3074
3070
|
return this.position.offset;
|
|
3075
3071
|
}, e.prototype.isEOF = function() {
|
|
@@ -3135,47 +3131,47 @@ var On = (
|
|
|
3135
3131
|
}, e;
|
|
3136
3132
|
}()
|
|
3137
3133
|
);
|
|
3138
|
-
function
|
|
3134
|
+
function Ge(e) {
|
|
3139
3135
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3140
3136
|
}
|
|
3141
|
-
function Pn(e) {
|
|
3142
|
-
return je(e) || e === 47;
|
|
3143
|
-
}
|
|
3144
3137
|
function Cn(e) {
|
|
3138
|
+
return Ge(e) || e === 47;
|
|
3139
|
+
}
|
|
3140
|
+
function On(e) {
|
|
3145
3141
|
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;
|
|
3146
3142
|
}
|
|
3147
3143
|
function Wt(e) {
|
|
3148
3144
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3149
3145
|
}
|
|
3150
|
-
function
|
|
3146
|
+
function Pn(e) {
|
|
3151
3147
|
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;
|
|
3152
3148
|
}
|
|
3153
|
-
function
|
|
3149
|
+
function Fe(e) {
|
|
3154
3150
|
e.forEach(function(t) {
|
|
3155
|
-
if (delete t.location,
|
|
3151
|
+
if (delete t.location, $t(t) || Ut(t))
|
|
3156
3152
|
for (var r in t.options)
|
|
3157
|
-
delete t.options[r].location,
|
|
3153
|
+
delete t.options[r].location, Fe(t.options[r].value);
|
|
3158
3154
|
else
|
|
3159
|
-
It(t) && Gt(t.style) || (Mt(t) ||
|
|
3155
|
+
It(t) && Gt(t.style) || (Mt(t) || Rt(t)) && Re(t.style) ? delete t.style.location : Dt(t) && Fe(t.children);
|
|
3160
3156
|
});
|
|
3161
3157
|
}
|
|
3162
|
-
function
|
|
3163
|
-
t === void 0 && (t = {}), t =
|
|
3164
|
-
var r = new
|
|
3158
|
+
function Ln(e, t) {
|
|
3159
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3160
|
+
var r = new An(e, t).parse();
|
|
3165
3161
|
if (r.err) {
|
|
3166
|
-
var n = SyntaxError(
|
|
3162
|
+
var n = SyntaxError(p[r.err.kind]);
|
|
3167
3163
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3168
3164
|
}
|
|
3169
|
-
return t != null && t.captureLocation ||
|
|
3165
|
+
return t != null && t.captureLocation || Fe(r.val), r.val;
|
|
3170
3166
|
}
|
|
3171
|
-
var
|
|
3167
|
+
var k;
|
|
3172
3168
|
(function(e) {
|
|
3173
3169
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3174
|
-
})(
|
|
3175
|
-
var
|
|
3170
|
+
})(k || (k = {}));
|
|
3171
|
+
var ge = (
|
|
3176
3172
|
/** @class */
|
|
3177
3173
|
function(e) {
|
|
3178
|
-
|
|
3174
|
+
be(t, e);
|
|
3179
3175
|
function t(r, n, i) {
|
|
3180
3176
|
var s = e.call(this, r) || this;
|
|
3181
3177
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3187,48 +3183,48 @@ var ye = (
|
|
|
3187
3183
|
), ft = (
|
|
3188
3184
|
/** @class */
|
|
3189
3185
|
function(e) {
|
|
3190
|
-
|
|
3186
|
+
be(t, e);
|
|
3191
3187
|
function t(r, n, i, s) {
|
|
3192
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3188
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), k.INVALID_VALUE, s) || this;
|
|
3193
3189
|
}
|
|
3194
3190
|
return t;
|
|
3195
|
-
}(
|
|
3196
|
-
),
|
|
3191
|
+
}(ge)
|
|
3192
|
+
), Nn = (
|
|
3197
3193
|
/** @class */
|
|
3198
3194
|
function(e) {
|
|
3199
|
-
|
|
3195
|
+
be(t, e);
|
|
3200
3196
|
function t(r, n, i) {
|
|
3201
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3197
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), k.INVALID_VALUE, i) || this;
|
|
3202
3198
|
}
|
|
3203
3199
|
return t;
|
|
3204
|
-
}(
|
|
3205
|
-
),
|
|
3200
|
+
}(ge)
|
|
3201
|
+
), In = (
|
|
3206
3202
|
/** @class */
|
|
3207
3203
|
function(e) {
|
|
3208
|
-
|
|
3204
|
+
be(t, e);
|
|
3209
3205
|
function t(r, n) {
|
|
3210
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3206
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), k.MISSING_VALUE, n) || this;
|
|
3211
3207
|
}
|
|
3212
3208
|
return t;
|
|
3213
|
-
}(
|
|
3214
|
-
),
|
|
3209
|
+
}(ge)
|
|
3210
|
+
), E;
|
|
3215
3211
|
(function(e) {
|
|
3216
3212
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3217
|
-
})(
|
|
3218
|
-
function
|
|
3213
|
+
})(E || (E = {}));
|
|
3214
|
+
function Mn(e) {
|
|
3219
3215
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3220
3216
|
var n = t[t.length - 1];
|
|
3221
|
-
return !n || n.type !==
|
|
3217
|
+
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3222
3218
|
}, []);
|
|
3223
3219
|
}
|
|
3224
3220
|
function Rn(e) {
|
|
3225
3221
|
return typeof e == "function";
|
|
3226
3222
|
}
|
|
3227
|
-
function
|
|
3223
|
+
function he(e, t, r, n, i, s, a) {
|
|
3228
3224
|
if (e.length === 1 && it(e[0]))
|
|
3229
3225
|
return [
|
|
3230
3226
|
{
|
|
3231
|
-
type:
|
|
3227
|
+
type: E.literal,
|
|
3232
3228
|
value: e[0].value
|
|
3233
3229
|
}
|
|
3234
3230
|
];
|
|
@@ -3236,103 +3232,103 @@ function le(e, t, r, n, i, s, a) {
|
|
|
3236
3232
|
var h = u[l];
|
|
3237
3233
|
if (it(h)) {
|
|
3238
3234
|
o.push({
|
|
3239
|
-
type:
|
|
3235
|
+
type: E.literal,
|
|
3240
3236
|
value: h.value
|
|
3241
3237
|
});
|
|
3242
3238
|
continue;
|
|
3243
3239
|
}
|
|
3244
|
-
if (
|
|
3240
|
+
if (nn(h)) {
|
|
3245
3241
|
typeof s == "number" && o.push({
|
|
3246
|
-
type:
|
|
3242
|
+
type: E.literal,
|
|
3247
3243
|
value: r.getNumberFormat(t).format(s)
|
|
3248
3244
|
});
|
|
3249
3245
|
continue;
|
|
3250
3246
|
}
|
|
3251
3247
|
var c = h.value;
|
|
3252
3248
|
if (!(i && c in i))
|
|
3253
|
-
throw new
|
|
3249
|
+
throw new In(c, a);
|
|
3254
3250
|
var m = i[c];
|
|
3255
|
-
if (
|
|
3251
|
+
if (rn(h)) {
|
|
3256
3252
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), o.push({
|
|
3257
|
-
type: typeof m == "string" ?
|
|
3253
|
+
type: typeof m == "string" ? E.literal : E.object,
|
|
3258
3254
|
value: m
|
|
3259
3255
|
});
|
|
3260
3256
|
continue;
|
|
3261
3257
|
}
|
|
3262
3258
|
if (Mt(h)) {
|
|
3263
|
-
var
|
|
3259
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Re(h.style) ? h.style.parsedOptions : void 0;
|
|
3264
3260
|
o.push({
|
|
3265
|
-
type:
|
|
3266
|
-
value: r.getDateTimeFormat(t,
|
|
3261
|
+
type: E.literal,
|
|
3262
|
+
value: r.getDateTimeFormat(t, d).format(m)
|
|
3267
3263
|
});
|
|
3268
3264
|
continue;
|
|
3269
3265
|
}
|
|
3270
|
-
if (
|
|
3271
|
-
var
|
|
3266
|
+
if (Rt(h)) {
|
|
3267
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Re(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3272
3268
|
o.push({
|
|
3273
|
-
type:
|
|
3274
|
-
value: r.getDateTimeFormat(t,
|
|
3269
|
+
type: E.literal,
|
|
3270
|
+
value: r.getDateTimeFormat(t, d).format(m)
|
|
3275
3271
|
});
|
|
3276
3272
|
continue;
|
|
3277
3273
|
}
|
|
3278
3274
|
if (It(h)) {
|
|
3279
|
-
var
|
|
3280
|
-
|
|
3281
|
-
type:
|
|
3282
|
-
value: r.getNumberFormat(t,
|
|
3275
|
+
var d = typeof h.style == "string" ? n.number[h.style] : Gt(h.style) ? h.style.parsedOptions : void 0;
|
|
3276
|
+
d && d.scale && (m = m * (d.scale || 1)), o.push({
|
|
3277
|
+
type: E.literal,
|
|
3278
|
+
value: r.getNumberFormat(t, d).format(m)
|
|
3283
3279
|
});
|
|
3284
3280
|
continue;
|
|
3285
3281
|
}
|
|
3286
3282
|
if (Dt(h)) {
|
|
3287
3283
|
var f = h.children, _ = h.value, v = i[_];
|
|
3288
3284
|
if (!Rn(v))
|
|
3289
|
-
throw new
|
|
3290
|
-
var
|
|
3291
|
-
return
|
|
3285
|
+
throw new Nn(_, "function", a);
|
|
3286
|
+
var A = he(f, t, r, n, i, s), C = v(A.map(function(S) {
|
|
3287
|
+
return S.value;
|
|
3292
3288
|
}));
|
|
3293
|
-
Array.isArray(
|
|
3289
|
+
Array.isArray(C) || (C = [C]), o.push.apply(o, C.map(function(S) {
|
|
3294
3290
|
return {
|
|
3295
|
-
type: typeof
|
|
3296
|
-
value:
|
|
3291
|
+
type: typeof S == "string" ? E.literal : E.object,
|
|
3292
|
+
value: S
|
|
3297
3293
|
};
|
|
3298
3294
|
}));
|
|
3299
3295
|
}
|
|
3300
|
-
if (
|
|
3296
|
+
if ($t(h)) {
|
|
3301
3297
|
var H = h.options[m] || h.options.other;
|
|
3302
3298
|
if (!H)
|
|
3303
3299
|
throw new ft(h.value, m, Object.keys(h.options), a);
|
|
3304
|
-
o.push.apply(o,
|
|
3300
|
+
o.push.apply(o, he(H.value, t, r, n, i));
|
|
3305
3301
|
continue;
|
|
3306
3302
|
}
|
|
3307
3303
|
if (Ut(h)) {
|
|
3308
3304
|
var H = h.options["=".concat(m)];
|
|
3309
3305
|
if (!H) {
|
|
3310
3306
|
if (!Intl.PluralRules)
|
|
3311
|
-
throw new
|
|
3307
|
+
throw new ge(`Intl.PluralRules is not available in this environment.
|
|
3312
3308
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3313
|
-
`,
|
|
3314
|
-
var
|
|
3315
|
-
H = h.options[
|
|
3309
|
+
`, k.MISSING_INTL_API, a);
|
|
3310
|
+
var N = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3311
|
+
H = h.options[N] || h.options.other;
|
|
3316
3312
|
}
|
|
3317
3313
|
if (!H)
|
|
3318
3314
|
throw new ft(h.value, m, Object.keys(h.options), a);
|
|
3319
|
-
o.push.apply(o,
|
|
3315
|
+
o.push.apply(o, he(H.value, t, r, n, i, m - (h.offset || 0)));
|
|
3320
3316
|
continue;
|
|
3321
3317
|
}
|
|
3322
3318
|
}
|
|
3323
|
-
return
|
|
3319
|
+
return Mn(o);
|
|
3324
3320
|
}
|
|
3325
|
-
function
|
|
3326
|
-
return t ?
|
|
3327
|
-
return r[n] =
|
|
3321
|
+
function $n(e, t) {
|
|
3322
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3323
|
+
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3328
3324
|
}, {})) : e;
|
|
3329
3325
|
}
|
|
3330
|
-
function
|
|
3326
|
+
function Un(e, t) {
|
|
3331
3327
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3332
|
-
return r[n] =
|
|
3333
|
-
},
|
|
3328
|
+
return r[n] = $n(e[n], t[n]), r;
|
|
3329
|
+
}, y({}, e)) : e;
|
|
3334
3330
|
}
|
|
3335
|
-
function
|
|
3331
|
+
function Oe(e) {
|
|
3336
3332
|
return {
|
|
3337
3333
|
create: function() {
|
|
3338
3334
|
return {
|
|
@@ -3346,35 +3342,35 @@ function Le(e) {
|
|
|
3346
3342
|
}
|
|
3347
3343
|
};
|
|
3348
3344
|
}
|
|
3349
|
-
function
|
|
3345
|
+
function Dn(e) {
|
|
3350
3346
|
return e === void 0 && (e = {
|
|
3351
3347
|
number: {},
|
|
3352
3348
|
dateTime: {},
|
|
3353
3349
|
pluralRules: {}
|
|
3354
3350
|
}), {
|
|
3355
|
-
getNumberFormat:
|
|
3351
|
+
getNumberFormat: Se(function() {
|
|
3356
3352
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3357
3353
|
r[n] = arguments[n];
|
|
3358
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3354
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3359
3355
|
}, {
|
|
3360
|
-
cache:
|
|
3361
|
-
strategy:
|
|
3356
|
+
cache: Oe(e.number),
|
|
3357
|
+
strategy: Ae.variadic
|
|
3362
3358
|
}),
|
|
3363
|
-
getDateTimeFormat:
|
|
3359
|
+
getDateTimeFormat: Se(function() {
|
|
3364
3360
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3365
3361
|
r[n] = arguments[n];
|
|
3366
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3362
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, we([void 0], r, !1)))();
|
|
3367
3363
|
}, {
|
|
3368
|
-
cache:
|
|
3369
|
-
strategy:
|
|
3364
|
+
cache: Oe(e.dateTime),
|
|
3365
|
+
strategy: Ae.variadic
|
|
3370
3366
|
}),
|
|
3371
|
-
getPluralRules:
|
|
3367
|
+
getPluralRules: Se(function() {
|
|
3372
3368
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3373
3369
|
r[n] = arguments[n];
|
|
3374
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3370
|
+
return new ((t = Intl.PluralRules).bind.apply(t, we([void 0], r, !1)))();
|
|
3375
3371
|
}, {
|
|
3376
|
-
cache:
|
|
3377
|
-
strategy:
|
|
3372
|
+
cache: Oe(e.pluralRules),
|
|
3373
|
+
strategy: Ae.variadic
|
|
3378
3374
|
})
|
|
3379
3375
|
};
|
|
3380
3376
|
}
|
|
@@ -3393,11 +3389,11 @@ var Zt = (
|
|
|
3393
3389
|
if (u.length === 1)
|
|
3394
3390
|
return u[0].value;
|
|
3395
3391
|
var h = u.reduce(function(c, m) {
|
|
3396
|
-
return !c.length || m.type !==
|
|
3392
|
+
return !c.length || m.type !== E.literal || typeof c[c.length - 1] != "string" ? c.push(m.value) : c[c.length - 1] += m.value, c;
|
|
3397
3393
|
}, []);
|
|
3398
3394
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3399
3395
|
}, this.formatToParts = function(l) {
|
|
3400
|
-
return
|
|
3396
|
+
return he(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3401
3397
|
}, this.resolvedOptions = function() {
|
|
3402
3398
|
var l;
|
|
3403
3399
|
return {
|
|
@@ -3411,12 +3407,12 @@ var Zt = (
|
|
|
3411
3407
|
var a = i || {};
|
|
3412
3408
|
a.formatters;
|
|
3413
3409
|
var o = Qr(a, ["formatters"]);
|
|
3414
|
-
this.ast = e.__parse(t,
|
|
3410
|
+
this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
|
|
3415
3411
|
} else
|
|
3416
3412
|
this.ast = t;
|
|
3417
3413
|
if (!Array.isArray(this.ast))
|
|
3418
3414
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3419
|
-
this.formats =
|
|
3415
|
+
this.formats = Un(e.formats, n), this.formatters = i && i.formatters || Dn(this.formatterCache);
|
|
3420
3416
|
}
|
|
3421
3417
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3422
3418
|
get: function() {
|
|
@@ -3429,7 +3425,7 @@ var Zt = (
|
|
|
3429
3425
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3430
3426
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3431
3427
|
}
|
|
3432
|
-
}, e.__parse =
|
|
3428
|
+
}, e.__parse = Ln, e.formats = {
|
|
3433
3429
|
number: {
|
|
3434
3430
|
integer: {
|
|
3435
3431
|
maximumFractionDigits: 0
|
|
@@ -3490,7 +3486,7 @@ var Zt = (
|
|
|
3490
3486
|
}, e;
|
|
3491
3487
|
}()
|
|
3492
3488
|
);
|
|
3493
|
-
function
|
|
3489
|
+
function Gn(e, t) {
|
|
3494
3490
|
if (t == null)
|
|
3495
3491
|
return;
|
|
3496
3492
|
if (t in e)
|
|
@@ -3511,36 +3507,36 @@ function Fn(e, t) {
|
|
|
3511
3507
|
n = void 0;
|
|
3512
3508
|
return n;
|
|
3513
3509
|
}
|
|
3514
|
-
const
|
|
3510
|
+
const O = {}, Fn = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), Qt = (e, t) => {
|
|
3515
3511
|
if (t == null)
|
|
3516
3512
|
return;
|
|
3517
|
-
if (t in
|
|
3518
|
-
return
|
|
3519
|
-
const r =
|
|
3513
|
+
if (t in O && e in O[t])
|
|
3514
|
+
return O[t][e];
|
|
3515
|
+
const r = ne(t);
|
|
3520
3516
|
for (let n = 0; n < r.length; n++) {
|
|
3521
|
-
const i = r[n], s =
|
|
3517
|
+
const i = r[n], s = kn(i, e);
|
|
3522
3518
|
if (s)
|
|
3523
|
-
return
|
|
3519
|
+
return Fn(e, t, s);
|
|
3524
3520
|
}
|
|
3525
3521
|
};
|
|
3526
3522
|
let We;
|
|
3527
|
-
const
|
|
3528
|
-
function
|
|
3523
|
+
const re = pe({});
|
|
3524
|
+
function jn(e) {
|
|
3529
3525
|
return We[e] || null;
|
|
3530
3526
|
}
|
|
3531
3527
|
function Jt(e) {
|
|
3532
3528
|
return e in We;
|
|
3533
3529
|
}
|
|
3534
|
-
function
|
|
3530
|
+
function kn(e, t) {
|
|
3535
3531
|
if (!Jt(e))
|
|
3536
3532
|
return null;
|
|
3537
|
-
const r =
|
|
3538
|
-
return
|
|
3533
|
+
const r = jn(e);
|
|
3534
|
+
return Gn(r, t);
|
|
3539
3535
|
}
|
|
3540
|
-
function
|
|
3536
|
+
function Vn(e) {
|
|
3541
3537
|
if (e == null)
|
|
3542
3538
|
return;
|
|
3543
|
-
const t =
|
|
3539
|
+
const t = ne(e);
|
|
3544
3540
|
for (let r = 0; r < t.length; r++) {
|
|
3545
3541
|
const n = t[r];
|
|
3546
3542
|
if (Jt(n))
|
|
@@ -3548,64 +3544,64 @@ function Xn(e) {
|
|
|
3548
3544
|
}
|
|
3549
3545
|
}
|
|
3550
3546
|
function qt(e, ...t) {
|
|
3551
|
-
delete
|
|
3547
|
+
delete O[e], re.update((r) => (r[e] = Zr.all([r[e] || {}, ...t]), r));
|
|
3552
3548
|
}
|
|
3553
|
-
|
|
3554
|
-
[
|
|
3549
|
+
z(
|
|
3550
|
+
[re],
|
|
3555
3551
|
([e]) => Object.keys(e)
|
|
3556
3552
|
);
|
|
3557
|
-
|
|
3558
|
-
const
|
|
3559
|
-
function
|
|
3560
|
-
|
|
3553
|
+
re.subscribe((e) => We = e);
|
|
3554
|
+
const le = {};
|
|
3555
|
+
function Xn(e, t) {
|
|
3556
|
+
le[e].delete(t), le[e].size === 0 && delete le[e];
|
|
3561
3557
|
}
|
|
3562
3558
|
function Yt(e) {
|
|
3563
|
-
return
|
|
3559
|
+
return le[e];
|
|
3564
3560
|
}
|
|
3565
|
-
function
|
|
3566
|
-
return
|
|
3561
|
+
function zn(e) {
|
|
3562
|
+
return ne(e).map((t) => {
|
|
3567
3563
|
const r = Yt(t);
|
|
3568
3564
|
return [t, r ? [...r] : []];
|
|
3569
3565
|
}).filter(([, t]) => t.length > 0);
|
|
3570
3566
|
}
|
|
3571
|
-
function
|
|
3572
|
-
return e == null ? !1 :
|
|
3567
|
+
function ce(e) {
|
|
3568
|
+
return e == null ? !1 : ne(e).some(
|
|
3573
3569
|
(t) => {
|
|
3574
3570
|
var r;
|
|
3575
3571
|
return (r = Yt(t)) == null ? void 0 : r.size;
|
|
3576
3572
|
}
|
|
3577
3573
|
);
|
|
3578
3574
|
}
|
|
3579
|
-
function
|
|
3575
|
+
function Wn(e, t) {
|
|
3580
3576
|
return Promise.all(
|
|
3581
|
-
t.map((n) => (
|
|
3577
|
+
t.map((n) => (Xn(e, n), n().then((i) => i.default || i)))
|
|
3582
3578
|
).then((n) => qt(e, ...n));
|
|
3583
3579
|
}
|
|
3584
|
-
const
|
|
3580
|
+
const Z = {};
|
|
3585
3581
|
function Kt(e) {
|
|
3586
|
-
if (!
|
|
3587
|
-
return e in
|
|
3588
|
-
const t =
|
|
3589
|
-
return
|
|
3582
|
+
if (!ce(e))
|
|
3583
|
+
return e in Z ? Z[e] : Promise.resolve();
|
|
3584
|
+
const t = zn(e);
|
|
3585
|
+
return Z[e] = Promise.all(
|
|
3590
3586
|
t.map(
|
|
3591
|
-
([r, n]) =>
|
|
3587
|
+
([r, n]) => Wn(r, n)
|
|
3592
3588
|
)
|
|
3593
3589
|
).then(() => {
|
|
3594
|
-
if (
|
|
3590
|
+
if (ce(e))
|
|
3595
3591
|
return Kt(e);
|
|
3596
|
-
delete
|
|
3597
|
-
}),
|
|
3592
|
+
delete Z[e];
|
|
3593
|
+
}), Z[e];
|
|
3598
3594
|
}
|
|
3599
|
-
var ct = Object.getOwnPropertySymbols,
|
|
3595
|
+
var ct = Object.getOwnPropertySymbols, Zn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, Jn = (e, t) => {
|
|
3600
3596
|
var r = {};
|
|
3601
3597
|
for (var n in e)
|
|
3602
|
-
|
|
3598
|
+
Zn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3603
3599
|
if (e != null && ct)
|
|
3604
3600
|
for (var n of ct(e))
|
|
3605
|
-
t.indexOf(n) < 0 &&
|
|
3601
|
+
t.indexOf(n) < 0 && Qn.call(e, n) && (r[n] = e[n]);
|
|
3606
3602
|
return r;
|
|
3607
3603
|
};
|
|
3608
|
-
const
|
|
3604
|
+
const qn = {
|
|
3609
3605
|
number: {
|
|
3610
3606
|
scientific: { notation: "scientific" },
|
|
3611
3607
|
engineering: { notation: "engineering" },
|
|
@@ -3635,28 +3631,28 @@ const Yn = {
|
|
|
3635
3631
|
}
|
|
3636
3632
|
}
|
|
3637
3633
|
};
|
|
3638
|
-
function
|
|
3634
|
+
function Yn({ locale: e, id: t }) {
|
|
3639
3635
|
console.warn(
|
|
3640
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3636
|
+
`[svelte-i18n] The message "${t}" was not found in "${ne(
|
|
3641
3637
|
e
|
|
3642
|
-
).join('", "')}".${
|
|
3638
|
+
).join('", "')}".${ce(L()) ? `
|
|
3643
3639
|
|
|
3644
3640
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3645
3641
|
);
|
|
3646
3642
|
}
|
|
3647
|
-
const
|
|
3643
|
+
const Kn = {
|
|
3648
3644
|
fallbackLocale: null,
|
|
3649
3645
|
loadingDelay: 200,
|
|
3650
|
-
formats:
|
|
3646
|
+
formats: qn,
|
|
3651
3647
|
warnOnMissingMessages: !0,
|
|
3652
3648
|
handleMissingMessage: void 0,
|
|
3653
3649
|
ignoreTag: !0
|
|
3654
|
-
},
|
|
3655
|
-
function
|
|
3656
|
-
return
|
|
3650
|
+
}, Q = Kn;
|
|
3651
|
+
function V() {
|
|
3652
|
+
return Q;
|
|
3657
3653
|
}
|
|
3658
|
-
function
|
|
3659
|
-
const t = e, { formats: r } = t, n =
|
|
3654
|
+
function ei(e) {
|
|
3655
|
+
const t = e, { formats: r } = t, n = Jn(t, ["formats"]);
|
|
3660
3656
|
let i = e.fallbackLocale;
|
|
3661
3657
|
if (e.initialLocale)
|
|
3662
3658
|
try {
|
|
@@ -3666,134 +3662,134 @@ function ti(e) {
|
|
|
3666
3662
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3667
3663
|
);
|
|
3668
3664
|
}
|
|
3669
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3665
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Yn : console.warn(
|
|
3670
3666
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3671
|
-
)), Object.assign(
|
|
3667
|
+
)), 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)), M.set(i);
|
|
3672
3668
|
}
|
|
3673
|
-
const
|
|
3674
|
-
var
|
|
3669
|
+
const Pe = pe(!1);
|
|
3670
|
+
var ti = Object.defineProperty, ri = Object.defineProperties, ni = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, ii = Object.prototype.hasOwnProperty, si = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, oi = (e, t) => {
|
|
3675
3671
|
for (var r in t || (t = {}))
|
|
3676
|
-
|
|
3672
|
+
ii.call(t, r) && dt(e, r, t[r]);
|
|
3677
3673
|
if (mt)
|
|
3678
3674
|
for (var r of mt(t))
|
|
3679
|
-
|
|
3675
|
+
si.call(t, r) && dt(e, r, t[r]);
|
|
3680
3676
|
return e;
|
|
3681
|
-
},
|
|
3682
|
-
let
|
|
3683
|
-
const
|
|
3684
|
-
function
|
|
3677
|
+
}, ai = (e, t) => ri(e, ni(t));
|
|
3678
|
+
let je;
|
|
3679
|
+
const me = pe(null);
|
|
3680
|
+
function pt(e) {
|
|
3685
3681
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3686
3682
|
}
|
|
3687
|
-
function
|
|
3688
|
-
const r =
|
|
3689
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3683
|
+
function ne(e, t = V().fallbackLocale) {
|
|
3684
|
+
const r = pt(e);
|
|
3685
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...pt(t)])] : r;
|
|
3690
3686
|
}
|
|
3691
|
-
function
|
|
3692
|
-
return
|
|
3687
|
+
function L() {
|
|
3688
|
+
return je != null ? je : void 0;
|
|
3693
3689
|
}
|
|
3694
|
-
|
|
3695
|
-
|
|
3690
|
+
me.subscribe((e) => {
|
|
3691
|
+
je = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3696
3692
|
});
|
|
3697
|
-
const
|
|
3698
|
-
if (e &&
|
|
3699
|
-
const { loadingDelay: t } =
|
|
3693
|
+
const ui = (e) => {
|
|
3694
|
+
if (e && Vn(e) && ce(e)) {
|
|
3695
|
+
const { loadingDelay: t } = V();
|
|
3700
3696
|
let r;
|
|
3701
|
-
return typeof window != "undefined" &&
|
|
3702
|
-
() =>
|
|
3697
|
+
return typeof window != "undefined" && L() != null && t ? r = window.setTimeout(
|
|
3698
|
+
() => Pe.set(!0),
|
|
3703
3699
|
t
|
|
3704
|
-
) :
|
|
3705
|
-
|
|
3700
|
+
) : Pe.set(!0), Kt(e).then(() => {
|
|
3701
|
+
me.set(e);
|
|
3706
3702
|
}).finally(() => {
|
|
3707
|
-
clearTimeout(r),
|
|
3703
|
+
clearTimeout(r), Pe.set(!1);
|
|
3708
3704
|
});
|
|
3709
3705
|
}
|
|
3710
|
-
return
|
|
3711
|
-
},
|
|
3712
|
-
set:
|
|
3713
|
-
}),
|
|
3706
|
+
return me.set(e);
|
|
3707
|
+
}, M = ai(oi({}, me), {
|
|
3708
|
+
set: ui
|
|
3709
|
+
}), _e = (e) => {
|
|
3714
3710
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3715
3711
|
return (n) => {
|
|
3716
3712
|
const i = JSON.stringify(n);
|
|
3717
3713
|
return i in t ? t[i] : t[i] = e(n);
|
|
3718
3714
|
};
|
|
3719
3715
|
};
|
|
3720
|
-
var
|
|
3716
|
+
var hi = Object.defineProperty, de = Object.getOwnPropertySymbols, er = Object.prototype.hasOwnProperty, tr = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
3721
3717
|
for (var r in t || (t = {}))
|
|
3722
3718
|
er.call(t, r) && bt(e, r, t[r]);
|
|
3723
|
-
if (
|
|
3724
|
-
for (var r of
|
|
3719
|
+
if (de)
|
|
3720
|
+
for (var r of de(t))
|
|
3725
3721
|
tr.call(t, r) && bt(e, r, t[r]);
|
|
3726
3722
|
return e;
|
|
3727
|
-
},
|
|
3723
|
+
}, W = (e, t) => {
|
|
3728
3724
|
var r = {};
|
|
3729
3725
|
for (var n in e)
|
|
3730
3726
|
er.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3731
|
-
if (e != null &&
|
|
3732
|
-
for (var n of
|
|
3727
|
+
if (e != null && de)
|
|
3728
|
+
for (var n of de(e))
|
|
3733
3729
|
t.indexOf(n) < 0 && tr.call(e, n) && (r[n] = e[n]);
|
|
3734
3730
|
return r;
|
|
3735
3731
|
};
|
|
3736
|
-
const
|
|
3737
|
-
const { formats: r } =
|
|
3732
|
+
const K = (e, t) => {
|
|
3733
|
+
const { formats: r } = V();
|
|
3738
3734
|
if (e in r && t in r[e])
|
|
3739
3735
|
return r[e][t];
|
|
3740
3736
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3741
|
-
},
|
|
3737
|
+
}, li = _e(
|
|
3742
3738
|
(e) => {
|
|
3743
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3739
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
3744
3740
|
if (r == null)
|
|
3745
3741
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3746
|
-
return n && (i =
|
|
3742
|
+
return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
|
|
3747
3743
|
}
|
|
3748
|
-
),
|
|
3744
|
+
), fi = _e(
|
|
3749
3745
|
(e) => {
|
|
3750
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3746
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
3751
3747
|
if (r == null)
|
|
3752
3748
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3753
|
-
return n ? i =
|
|
3749
|
+
return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3754
3750
|
}
|
|
3755
|
-
),
|
|
3751
|
+
), ci = _e(
|
|
3756
3752
|
(e) => {
|
|
3757
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3753
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
3758
3754
|
if (r == null)
|
|
3759
3755
|
throw new Error(
|
|
3760
3756
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3761
3757
|
);
|
|
3762
|
-
return n ? i =
|
|
3758
|
+
return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3763
3759
|
}
|
|
3764
|
-
),
|
|
3760
|
+
), mi = (e = {}) => {
|
|
3765
3761
|
var t = e, {
|
|
3766
|
-
locale: r =
|
|
3767
|
-
} = t, n =
|
|
3762
|
+
locale: r = L()
|
|
3763
|
+
} = t, n = W(t, [
|
|
3768
3764
|
"locale"
|
|
3769
3765
|
]);
|
|
3770
|
-
return
|
|
3766
|
+
return li(Ze({ locale: r }, n));
|
|
3771
3767
|
}, di = (e = {}) => {
|
|
3772
3768
|
var t = e, {
|
|
3773
|
-
locale: r =
|
|
3774
|
-
} = t, n =
|
|
3769
|
+
locale: r = L()
|
|
3770
|
+
} = t, n = W(t, [
|
|
3775
3771
|
"locale"
|
|
3776
3772
|
]);
|
|
3777
|
-
return
|
|
3778
|
-
},
|
|
3773
|
+
return fi(Ze({ locale: r }, n));
|
|
3774
|
+
}, pi = (e = {}) => {
|
|
3779
3775
|
var t = e, {
|
|
3780
|
-
locale: r =
|
|
3781
|
-
} = t, n =
|
|
3776
|
+
locale: r = L()
|
|
3777
|
+
} = t, n = W(t, [
|
|
3782
3778
|
"locale"
|
|
3783
3779
|
]);
|
|
3784
|
-
return
|
|
3785
|
-
},
|
|
3780
|
+
return ci(Ze({ locale: r }, n));
|
|
3781
|
+
}, bi = _e(
|
|
3786
3782
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3787
|
-
(e, t =
|
|
3788
|
-
ignoreTag:
|
|
3783
|
+
(e, t = L()) => new Zt(e, t, V().formats, {
|
|
3784
|
+
ignoreTag: V().ignoreTag
|
|
3789
3785
|
})
|
|
3790
|
-
),
|
|
3786
|
+
), gi = (e, t = {}) => {
|
|
3791
3787
|
var r, n, i, s;
|
|
3792
3788
|
let a = t;
|
|
3793
3789
|
typeof e == "object" && (a = e, e = a.id);
|
|
3794
3790
|
const {
|
|
3795
3791
|
values: o,
|
|
3796
|
-
locale: l =
|
|
3792
|
+
locale: l = L(),
|
|
3797
3793
|
default: u
|
|
3798
3794
|
} = a;
|
|
3799
3795
|
if (l == null)
|
|
@@ -3802,7 +3798,7 @@ const ee = (e, t) => {
|
|
|
3802
3798
|
);
|
|
3803
3799
|
let h = Qt(e, l);
|
|
3804
3800
|
if (!h)
|
|
3805
|
-
h = (s = (i = (n = (r =
|
|
3801
|
+
h = (s = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3806
3802
|
else if (typeof h != "string")
|
|
3807
3803
|
return console.warn(
|
|
3808
3804
|
`[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.`
|
|
@@ -3811,7 +3807,7 @@ const ee = (e, t) => {
|
|
|
3811
3807
|
return h;
|
|
3812
3808
|
let c = h;
|
|
3813
3809
|
try {
|
|
3814
|
-
c =
|
|
3810
|
+
c = bi(h, l).format(o);
|
|
3815
3811
|
} catch (m) {
|
|
3816
3812
|
m instanceof Error && console.warn(
|
|
3817
3813
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3819,18 +3815,18 @@ const ee = (e, t) => {
|
|
|
3819
3815
|
);
|
|
3820
3816
|
}
|
|
3821
3817
|
return c;
|
|
3822
|
-
},
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3818
|
+
}, _i = (e, t) => pi(t).format(e), yi = (e, t) => di(t).format(e), xi = (e, t) => mi(t).format(e), Ei = (e, t = L()) => Qt(e, t), vi = z([M, re], () => gi);
|
|
3819
|
+
z([M], () => _i);
|
|
3820
|
+
z([M], () => yi);
|
|
3821
|
+
z([M], () => xi);
|
|
3822
|
+
z([M, re], () => Ei);
|
|
3827
3823
|
function gt(e, t) {
|
|
3828
3824
|
qt(e, t);
|
|
3829
3825
|
}
|
|
3830
|
-
function
|
|
3831
|
-
|
|
3826
|
+
function Hi(e) {
|
|
3827
|
+
ei({
|
|
3832
3828
|
fallbackLocale: "en"
|
|
3833
|
-
}),
|
|
3829
|
+
}), M.set(e);
|
|
3834
3830
|
}
|
|
3835
3831
|
const _t = {
|
|
3836
3832
|
en: {
|
|
@@ -3848,13 +3844,13 @@ const _t = {
|
|
|
3848
3844
|
}
|
|
3849
3845
|
}
|
|
3850
3846
|
};
|
|
3851
|
-
function
|
|
3847
|
+
function Bi(e, t) {
|
|
3852
3848
|
if (e) {
|
|
3853
3849
|
const r = document.createElement("style");
|
|
3854
3850
|
r.innerHTML = t, e.appendChild(r);
|
|
3855
3851
|
}
|
|
3856
3852
|
}
|
|
3857
|
-
function
|
|
3853
|
+
function Ti(e, t) {
|
|
3858
3854
|
if (!e || !t)
|
|
3859
3855
|
return;
|
|
3860
3856
|
const r = new URL(t);
|
|
@@ -3865,7 +3861,7 @@ function wi(e, t) {
|
|
|
3865
3861
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3866
3862
|
});
|
|
3867
3863
|
}
|
|
3868
|
-
function
|
|
3864
|
+
function wi(e, t, r) {
|
|
3869
3865
|
if (window.emMessageBus) {
|
|
3870
3866
|
const n = document.createElement("style");
|
|
3871
3867
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3873,18 +3869,18 @@ function Si(e, t, r) {
|
|
|
3873
3869
|
});
|
|
3874
3870
|
}
|
|
3875
3871
|
}
|
|
3876
|
-
function
|
|
3872
|
+
function Si(e) {
|
|
3877
3873
|
cr(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)}");
|
|
3878
3874
|
}
|
|
3879
|
-
const
|
|
3875
|
+
const Ai = (e) => ({}), yt = (e) => ({}), Ci = (e) => ({}), xt = (e) => ({}), Oi = (e) => ({}), Et = (e) => ({});
|
|
3880
3876
|
function vt(e) {
|
|
3881
3877
|
let t, r, n;
|
|
3882
3878
|
return {
|
|
3883
3879
|
c() {
|
|
3884
|
-
t =
|
|
3880
|
+
t = X("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>', te(t, "class", "CashierHeaderLeftButton");
|
|
3885
3881
|
},
|
|
3886
3882
|
m(i, s) {
|
|
3887
|
-
|
|
3883
|
+
I(i, t, s), r || (n = Ct(
|
|
3888
3884
|
t,
|
|
3889
3885
|
"click",
|
|
3890
3886
|
/*back*/
|
|
@@ -3893,11 +3889,11 @@ function vt(e) {
|
|
|
3893
3889
|
},
|
|
3894
3890
|
p: T,
|
|
3895
3891
|
d(i) {
|
|
3896
|
-
i &&
|
|
3892
|
+
i && P(t), r = !1, n();
|
|
3897
3893
|
}
|
|
3898
3894
|
};
|
|
3899
3895
|
}
|
|
3900
|
-
function
|
|
3896
|
+
function Pi(e) {
|
|
3901
3897
|
let t, r = (
|
|
3902
3898
|
/*backButton*/
|
|
3903
3899
|
e[1] && vt(e)
|
|
@@ -3907,18 +3903,18 @@ function Li(e) {
|
|
|
3907
3903
|
r && r.c(), t = At();
|
|
3908
3904
|
},
|
|
3909
3905
|
m(n, i) {
|
|
3910
|
-
r && r.m(n, i),
|
|
3906
|
+
r && r.m(n, i), I(n, t, i);
|
|
3911
3907
|
},
|
|
3912
3908
|
p(n, i) {
|
|
3913
3909
|
/*backButton*/
|
|
3914
3910
|
n[1] ? r ? r.p(n, i) : (r = vt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3915
3911
|
},
|
|
3916
3912
|
d(n) {
|
|
3917
|
-
n &&
|
|
3913
|
+
n && P(t), r && r.d(n);
|
|
3918
3914
|
}
|
|
3919
3915
|
};
|
|
3920
3916
|
}
|
|
3921
|
-
function
|
|
3917
|
+
function Li(e) {
|
|
3922
3918
|
let t, r = (
|
|
3923
3919
|
/*$_*/
|
|
3924
3920
|
e[4](
|
|
@@ -3928,10 +3924,10 @@ function Ni(e) {
|
|
|
3928
3924
|
), n;
|
|
3929
3925
|
return {
|
|
3930
3926
|
c() {
|
|
3931
|
-
t =
|
|
3927
|
+
t = X("span"), n = Ve(r), te(t, "class", "CashierHeaderTitle");
|
|
3932
3928
|
},
|
|
3933
3929
|
m(i, s) {
|
|
3934
|
-
|
|
3930
|
+
I(i, t, s), fe(t, n);
|
|
3935
3931
|
},
|
|
3936
3932
|
p(i, s) {
|
|
3937
3933
|
s & /*$_, titleText*/
|
|
@@ -3942,7 +3938,7 @@ function Ni(e) {
|
|
|
3942
3938
|
) + "") && br(n, r);
|
|
3943
3939
|
},
|
|
3944
3940
|
d(i) {
|
|
3945
|
-
i &&
|
|
3941
|
+
i && P(t);
|
|
3946
3942
|
}
|
|
3947
3943
|
};
|
|
3948
3944
|
}
|
|
@@ -3950,10 +3946,10 @@ function Ht(e) {
|
|
|
3950
3946
|
let t, r, n;
|
|
3951
3947
|
return {
|
|
3952
3948
|
c() {
|
|
3953
|
-
t =
|
|
3949
|
+
t = X("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>', te(t, "class", "CashierHeaderRightButton");
|
|
3954
3950
|
},
|
|
3955
3951
|
m(i, s) {
|
|
3956
|
-
|
|
3952
|
+
I(i, t, s), r || (n = Ct(
|
|
3957
3953
|
t,
|
|
3958
3954
|
"click",
|
|
3959
3955
|
/*close*/
|
|
@@ -3962,11 +3958,11 @@ function Ht(e) {
|
|
|
3962
3958
|
},
|
|
3963
3959
|
p: T,
|
|
3964
3960
|
d(i) {
|
|
3965
|
-
i &&
|
|
3961
|
+
i && P(t), r = !1, n();
|
|
3966
3962
|
}
|
|
3967
3963
|
};
|
|
3968
3964
|
}
|
|
3969
|
-
function
|
|
3965
|
+
function Ni(e) {
|
|
3970
3966
|
let t, r = (
|
|
3971
3967
|
/*closeButton*/
|
|
3972
3968
|
e[3] && Ht(e)
|
|
@@ -3976,130 +3972,130 @@ function Ii(e) {
|
|
|
3976
3972
|
r && r.c(), t = At();
|
|
3977
3973
|
},
|
|
3978
3974
|
m(n, i) {
|
|
3979
|
-
r && r.m(n, i),
|
|
3975
|
+
r && r.m(n, i), I(n, t, i);
|
|
3980
3976
|
},
|
|
3981
3977
|
p(n, i) {
|
|
3982
3978
|
/*closeButton*/
|
|
3983
3979
|
n[3] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3984
3980
|
},
|
|
3985
3981
|
d(n) {
|
|
3986
|
-
n &&
|
|
3982
|
+
n && P(t), r && r.d(n);
|
|
3987
3983
|
}
|
|
3988
3984
|
};
|
|
3989
3985
|
}
|
|
3990
|
-
function
|
|
3986
|
+
function Ii(e) {
|
|
3991
3987
|
let t, r, n, i;
|
|
3992
3988
|
const s = (
|
|
3993
3989
|
/*#slots*/
|
|
3994
3990
|
e[16].leftButton
|
|
3995
|
-
), a =
|
|
3991
|
+
), a = xe(
|
|
3996
3992
|
s,
|
|
3997
3993
|
e,
|
|
3998
3994
|
/*$$scope*/
|
|
3999
3995
|
e[15],
|
|
4000
|
-
|
|
4001
|
-
), o = a ||
|
|
3996
|
+
Et
|
|
3997
|
+
), o = a || Pi(e), l = (
|
|
4002
3998
|
/*#slots*/
|
|
4003
3999
|
e[16].title
|
|
4004
|
-
), u =
|
|
4000
|
+
), u = xe(
|
|
4005
4001
|
l,
|
|
4006
4002
|
e,
|
|
4007
4003
|
/*$$scope*/
|
|
4008
4004
|
e[15],
|
|
4009
|
-
|
|
4010
|
-
), h = u ||
|
|
4005
|
+
xt
|
|
4006
|
+
), h = u || Li(e), c = (
|
|
4011
4007
|
/*#slots*/
|
|
4012
4008
|
e[16].rightButton
|
|
4013
|
-
), m =
|
|
4009
|
+
), m = xe(
|
|
4014
4010
|
c,
|
|
4015
4011
|
e,
|
|
4016
4012
|
/*$$scope*/
|
|
4017
4013
|
e[15],
|
|
4018
4014
|
yt
|
|
4019
|
-
),
|
|
4015
|
+
), d = m || Ni(e);
|
|
4020
4016
|
return {
|
|
4021
4017
|
c() {
|
|
4022
|
-
t =
|
|
4018
|
+
t = X("div"), o && o.c(), r = tt(), h && h.c(), n = tt(), d && d.c(), te(t, "class", "CashierHeader");
|
|
4023
4019
|
},
|
|
4024
4020
|
m(f, _) {
|
|
4025
|
-
|
|
4021
|
+
I(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;
|
|
4026
4022
|
},
|
|
4027
4023
|
p(f, [_]) {
|
|
4028
4024
|
a ? a.p && (!i || _ & /*$$scope*/
|
|
4029
|
-
32768) &&
|
|
4025
|
+
32768) && ve(
|
|
4030
4026
|
a,
|
|
4031
4027
|
s,
|
|
4032
4028
|
f,
|
|
4033
4029
|
/*$$scope*/
|
|
4034
4030
|
f[15],
|
|
4035
|
-
i ?
|
|
4031
|
+
i ? Ee(
|
|
4036
4032
|
s,
|
|
4037
4033
|
/*$$scope*/
|
|
4038
4034
|
f[15],
|
|
4039
4035
|
_,
|
|
4040
|
-
|
|
4041
|
-
) :
|
|
4036
|
+
Oi
|
|
4037
|
+
) : He(
|
|
4042
4038
|
/*$$scope*/
|
|
4043
4039
|
f[15]
|
|
4044
4040
|
),
|
|
4045
|
-
|
|
4041
|
+
Et
|
|
4046
4042
|
) : o && o.p && (!i || _ & /*backButton*/
|
|
4047
4043
|
2) && o.p(f, i ? _ : -1), u ? u.p && (!i || _ & /*$$scope*/
|
|
4048
|
-
32768) &&
|
|
4044
|
+
32768) && ve(
|
|
4049
4045
|
u,
|
|
4050
4046
|
l,
|
|
4051
4047
|
f,
|
|
4052
4048
|
/*$$scope*/
|
|
4053
4049
|
f[15],
|
|
4054
|
-
i ?
|
|
4050
|
+
i ? Ee(
|
|
4055
4051
|
l,
|
|
4056
4052
|
/*$$scope*/
|
|
4057
4053
|
f[15],
|
|
4058
4054
|
_,
|
|
4059
|
-
|
|
4060
|
-
) :
|
|
4055
|
+
Ci
|
|
4056
|
+
) : He(
|
|
4061
4057
|
/*$$scope*/
|
|
4062
4058
|
f[15]
|
|
4063
4059
|
),
|
|
4064
|
-
|
|
4060
|
+
xt
|
|
4065
4061
|
) : h && h.p && (!i || _ & /*$_, titleText*/
|
|
4066
4062
|
20) && h.p(f, i ? _ : -1), m ? m.p && (!i || _ & /*$$scope*/
|
|
4067
|
-
32768) &&
|
|
4063
|
+
32768) && ve(
|
|
4068
4064
|
m,
|
|
4069
4065
|
c,
|
|
4070
4066
|
f,
|
|
4071
4067
|
/*$$scope*/
|
|
4072
4068
|
f[15],
|
|
4073
|
-
i ?
|
|
4069
|
+
i ? Ee(
|
|
4074
4070
|
c,
|
|
4075
4071
|
/*$$scope*/
|
|
4076
4072
|
f[15],
|
|
4077
4073
|
_,
|
|
4078
|
-
|
|
4079
|
-
) :
|
|
4074
|
+
Ai
|
|
4075
|
+
) : He(
|
|
4080
4076
|
/*$$scope*/
|
|
4081
4077
|
f[15]
|
|
4082
4078
|
),
|
|
4083
4079
|
yt
|
|
4084
|
-
) :
|
|
4085
|
-
8) &&
|
|
4080
|
+
) : d && d.p && (!i || _ & /*closeButton*/
|
|
4081
|
+
8) && d.p(f, i ? _ : -1);
|
|
4086
4082
|
},
|
|
4087
4083
|
i(f) {
|
|
4088
|
-
i || (
|
|
4084
|
+
i || (ae(o, f), ae(h, f), ae(d, f), i = !0);
|
|
4089
4085
|
},
|
|
4090
4086
|
o(f) {
|
|
4091
|
-
|
|
4087
|
+
Te(o, f), Te(h, f), Te(d, f), i = !1;
|
|
4092
4088
|
},
|
|
4093
4089
|
d(f) {
|
|
4094
|
-
f &&
|
|
4090
|
+
f && P(t), o && o.d(f), h && h.d(f), d && d.d(f), e[17](null);
|
|
4095
4091
|
}
|
|
4096
4092
|
};
|
|
4097
4093
|
}
|
|
4098
|
-
function
|
|
4094
|
+
function Mi(e, t, r) {
|
|
4099
4095
|
let n;
|
|
4100
|
-
fr(e,
|
|
4101
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource:
|
|
4102
|
-
const
|
|
4096
|
+
fr(e, vi, (g) => r(4, n = g));
|
|
4097
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: d = "" } = t, f, _ = !1, v, A = !1;
|
|
4098
|
+
const C = () => {
|
|
4103
4099
|
fetch(l).then((g) => g.json()).then((g) => {
|
|
4104
4100
|
Object.keys(g).forEach((Qe) => {
|
|
4105
4101
|
gt(Qe, g[Qe]);
|
|
@@ -4112,45 +4108,45 @@ function $i(e, t, r) {
|
|
|
4112
4108
|
gt(g, _t[g]);
|
|
4113
4109
|
});
|
|
4114
4110
|
const H = () => {
|
|
4115
|
-
|
|
4116
|
-
},
|
|
4111
|
+
Hi(c);
|
|
4112
|
+
}, N = () => {
|
|
4117
4113
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4118
|
-
},
|
|
4114
|
+
}, S = () => {
|
|
4119
4115
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4120
4116
|
}, R = () => {
|
|
4121
4117
|
r(1, _ = !!u && u !== "false");
|
|
4122
|
-
},
|
|
4123
|
-
r(3,
|
|
4118
|
+
}, ie = () => {
|
|
4119
|
+
r(3, A = !!m && m !== "false");
|
|
4124
4120
|
}, rr = () => {
|
|
4125
4121
|
r(2, v = h || "header.general");
|
|
4126
4122
|
};
|
|
4127
4123
|
yr(() => () => {
|
|
4128
4124
|
});
|
|
4129
4125
|
function nr(g) {
|
|
4130
|
-
|
|
4126
|
+
Le[g ? "unshift" : "push"](() => {
|
|
4131
4127
|
f = g, r(0, f);
|
|
4132
4128
|
});
|
|
4133
4129
|
}
|
|
4134
4130
|
return e.$$set = (g) => {
|
|
4135
|
-
"clientstyling" in g && r(7, a = g.clientstyling), "clientstylingurl" in g && r(8, o = g.clientstylingurl), "translationurl" in g && r(9, l = g.translationurl), "showbackbutton" in g && r(10, u = 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,
|
|
4131
|
+
"clientstyling" in g && r(7, a = g.clientstyling), "clientstylingurl" in g && r(8, o = g.clientstylingurl), "translationurl" in g && r(9, l = g.translationurl), "showbackbutton" in g && r(10, u = 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);
|
|
4136
4132
|
}, e.$$.update = () => {
|
|
4137
4133
|
e.$$.dirty & /*lang*/
|
|
4138
4134
|
4096 && c && H(), e.$$.dirty & /*lang, title*/
|
|
4139
4135
|
6144 && c && h && rr(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4140
|
-
129 && a && f &&
|
|
4141
|
-
257 && o && f &&
|
|
4142
|
-
16385 &&
|
|
4143
|
-
4608 && c && l &&
|
|
4136
|
+
129 && a && f && Bi(f, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4137
|
+
257 && o && f && Ti(f, o), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4138
|
+
16385 && d && f && wi(f, `${d}.Style`), e.$$.dirty & /*lang, translationurl*/
|
|
4139
|
+
4608 && c && l && C(), e.$$.dirty & /*showbackbutton*/
|
|
4144
4140
|
1024 && u && R(), e.$$.dirty & /*showclosebutton*/
|
|
4145
|
-
8192 && m &&
|
|
4141
|
+
8192 && m && ie();
|
|
4146
4142
|
}, [
|
|
4147
4143
|
f,
|
|
4148
4144
|
_,
|
|
4149
4145
|
v,
|
|
4150
|
-
O,
|
|
4151
|
-
n,
|
|
4152
|
-
I,
|
|
4153
4146
|
A,
|
|
4147
|
+
n,
|
|
4148
|
+
N,
|
|
4149
|
+
S,
|
|
4154
4150
|
a,
|
|
4155
4151
|
o,
|
|
4156
4152
|
l,
|
|
@@ -4158,19 +4154,19 @@ function $i(e, t, r) {
|
|
|
4158
4154
|
h,
|
|
4159
4155
|
c,
|
|
4160
4156
|
m,
|
|
4161
|
-
|
|
4157
|
+
d,
|
|
4162
4158
|
s,
|
|
4163
4159
|
i,
|
|
4164
4160
|
nr
|
|
4165
4161
|
];
|
|
4166
4162
|
}
|
|
4167
|
-
class Ri extends
|
|
4163
|
+
class Ri extends Or {
|
|
4168
4164
|
constructor(t) {
|
|
4169
4165
|
super(), Ar(
|
|
4170
4166
|
this,
|
|
4171
4167
|
t,
|
|
4172
|
-
$i,
|
|
4173
4168
|
Mi,
|
|
4169
|
+
Ii,
|
|
4174
4170
|
Tt,
|
|
4175
4171
|
{
|
|
4176
4172
|
clientstyling: 7,
|
|
@@ -4182,7 +4178,7 @@ class Ri extends Pr {
|
|
|
4182
4178
|
showclosebutton: 13,
|
|
4183
4179
|
mbsource: 14
|
|
4184
4180
|
},
|
|
4185
|
-
|
|
4181
|
+
Si
|
|
4186
4182
|
);
|
|
4187
4183
|
}
|
|
4188
4184
|
get clientstyling() {
|
|
@@ -4234,7 +4230,7 @@ class Ri extends Pr {
|
|
|
4234
4230
|
this.$$set({ mbsource: t }), w();
|
|
4235
4231
|
}
|
|
4236
4232
|
}
|
|
4237
|
-
|
|
4233
|
+
Cr(Ri, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4238
4234
|
export {
|
|
4239
4235
|
Ri as default
|
|
4240
4236
|
};
|