@everymatrix/cashier-iframe-redirect 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-D2XHA52H.js → CashierHeader-BnG2i4Fl.js} +631 -635
- package/components/{CashierHeader-Dn37_6Lk.js → CashierHeader-D8IE5Tg_.js} +625 -629
- package/components/CashierHeader-D_PGBTSs.cjs +18 -0
- package/components/{CashierIframeRedirect-CDDNSIYo.cjs → CashierIframeRedirect-CC42ez9P.cjs} +1 -1
- package/components/{CashierIframeRedirect-DmWbmi10.js → CashierIframeRedirect-DhY2z5Sw.js} +15 -15
- package/components/{CashierIframeRedirect-BsxMBzJT.js → CashierIframeRedirect-ePvFwYtb.js} +17 -17
- package/components/{CashierSpinner-B3lawQbU.js → CashierSpinner-BsdZhkYV.js} +15 -15
- package/components/{CashierSpinner-sXZN-QNL.js → CashierSpinner-C2SA4tN-.js} +15 -15
- package/components/{CashierSpinner-l6siWw78.cjs → CashierSpinner-RJMMeyDA.cjs} +1 -1
- package/es2015/cashier-iframe-redirect.cjs +1 -1
- package/es2015/cashier-iframe-redirect.js +1 -1
- package/esnext/cashier-iframe-redirect.js +1 -1
- package/package.json +1 -1
- package/components/CashierHeader-DF3Mljkl.cjs +0 -5
|
@@ -2,15 +2,15 @@ var or = Object.defineProperty, ar = Object.defineProperties;
|
|
|
2
2
|
var ur = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Je = Object.getOwnPropertySymbols;
|
|
4
4
|
var hr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var xe = (e, t, r) => t in e ? or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
hr.call(t, r) &&
|
|
7
|
+
hr.call(t, r) && xe(e, r, t[r]);
|
|
8
8
|
if (Je)
|
|
9
9
|
for (var r of Je(t))
|
|
10
|
-
lr.call(t, r) &&
|
|
10
|
+
lr.call(t, r) && xe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, Ke = (e, t) => ar(e, ur(t));
|
|
13
|
-
var B = (e, t, r) => (
|
|
13
|
+
var B = (e, t, r) => (xe(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
@@ -43,18 +43,18 @@ function Tt(e) {
|
|
|
43
43
|
function tt() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function te(e) {
|
|
47
47
|
e.forEach(Tt);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function Ve(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
52
|
function wt(e, t) {
|
|
53
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
54
|
}
|
|
55
|
-
let
|
|
56
|
-
function
|
|
57
|
-
return e === t ? !0 : (
|
|
55
|
+
let se;
|
|
56
|
+
function Di(e, t) {
|
|
57
|
+
return e === t ? !0 : (se || (se = document.createElement("a")), se.href = t, e === se.href);
|
|
58
58
|
}
|
|
59
59
|
function cr(e) {
|
|
60
60
|
return Object.keys(e).length === 0;
|
|
@@ -71,7 +71,7 @@ function St(e, ...t) {
|
|
|
71
71
|
function mr(e, t, r) {
|
|
72
72
|
e.$$.on_destroy.push(St(t, r));
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Ee(e, t, r, n) {
|
|
75
75
|
if (e) {
|
|
76
76
|
const i = At(e, t, r, n);
|
|
77
77
|
return e[0](i);
|
|
@@ -80,7 +80,7 @@ function He(e, t, r, n) {
|
|
|
80
80
|
function At(e, t, r, n) {
|
|
81
81
|
return e[1] && n ? fr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function ve(e, t, r, n) {
|
|
84
84
|
if (e[2] && n) {
|
|
85
85
|
const i = e[2](n(r));
|
|
86
86
|
if (t.dirty === void 0)
|
|
@@ -95,13 +95,13 @@ function Be(e, t, r, n) {
|
|
|
95
95
|
}
|
|
96
96
|
return t.dirty;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function He(e, t, r, n, i, s) {
|
|
99
99
|
if (i) {
|
|
100
100
|
const a = At(t, r, n, s);
|
|
101
101
|
e.p(a, i);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Be(e) {
|
|
105
105
|
if (e.ctx.length > 32) {
|
|
106
106
|
const t = [], r = e.ctx.length / 32;
|
|
107
107
|
for (let n = 0; n < r; n++)
|
|
@@ -110,17 +110,17 @@ function we(e) {
|
|
|
110
110
|
}
|
|
111
111
|
return -1;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function ce(e, t) {
|
|
114
114
|
e.appendChild(t);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
const n =
|
|
116
|
+
function dr(e, t, r) {
|
|
117
|
+
const n = br(e);
|
|
118
118
|
if (!n.getElementById(t)) {
|
|
119
|
-
const i =
|
|
120
|
-
i.id = t, i.textContent = r,
|
|
119
|
+
const i = X("style");
|
|
120
|
+
i.id = t, i.textContent = r, pr(n, i);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function br(e) {
|
|
124
124
|
if (!e)
|
|
125
125
|
return document;
|
|
126
126
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -130,40 +130,40 @@ function dr(e) {
|
|
|
130
130
|
t
|
|
131
131
|
) : e.ownerDocument;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
return
|
|
133
|
+
function pr(e, t) {
|
|
134
|
+
return ce(
|
|
135
135
|
/** @type {Document} */
|
|
136
136
|
e.head || e,
|
|
137
137
|
t
|
|
138
138
|
), t.sheet;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function I(e, t, r) {
|
|
141
141
|
e.insertBefore(t, r || null);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function P(e) {
|
|
144
144
|
e.parentNode && e.parentNode.removeChild(e);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function X(e) {
|
|
147
147
|
return document.createElement(e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Xe(e) {
|
|
150
150
|
return document.createTextNode(e);
|
|
151
151
|
}
|
|
152
152
|
function rt() {
|
|
153
|
-
return
|
|
153
|
+
return Xe(" ");
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
return
|
|
155
|
+
function Ct() {
|
|
156
|
+
return Xe("");
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Ot(e, t, r, n) {
|
|
159
159
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function z(e, t, r) {
|
|
162
162
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Gi(e, t, r) {
|
|
165
165
|
const n = t.toLowerCase();
|
|
166
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
166
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : z(e, t, r);
|
|
167
167
|
}
|
|
168
168
|
function gr(e) {
|
|
169
169
|
return Array.from(e.childNodes);
|
|
@@ -181,97 +181,97 @@ function yr(e) {
|
|
|
181
181
|
}
|
|
182
182
|
), t;
|
|
183
183
|
}
|
|
184
|
-
let
|
|
185
|
-
function
|
|
186
|
-
|
|
184
|
+
let Y;
|
|
185
|
+
function J(e) {
|
|
186
|
+
Y = e;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
if (!
|
|
188
|
+
function xr() {
|
|
189
|
+
if (!Y)
|
|
190
190
|
throw new Error("Function called outside component initialization");
|
|
191
|
-
return
|
|
191
|
+
return Y;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
|
|
193
|
+
function Er(e) {
|
|
194
|
+
xr().$$.on_mount.push(e);
|
|
195
195
|
}
|
|
196
|
-
const
|
|
197
|
-
let
|
|
196
|
+
const D = [], Ne = [];
|
|
197
|
+
let G = [];
|
|
198
198
|
const nt = [], vr = /* @__PURE__ */ Promise.resolve();
|
|
199
|
-
let
|
|
199
|
+
let Ie = !1;
|
|
200
200
|
function Hr() {
|
|
201
|
-
|
|
201
|
+
Ie || (Ie = !0, vr.then(w));
|
|
202
202
|
}
|
|
203
|
-
function
|
|
204
|
-
|
|
203
|
+
function Me(e) {
|
|
204
|
+
G.push(e);
|
|
205
205
|
}
|
|
206
|
-
const
|
|
207
|
-
let
|
|
206
|
+
const Te = /* @__PURE__ */ new Set();
|
|
207
|
+
let R = 0;
|
|
208
208
|
function w() {
|
|
209
|
-
if (
|
|
209
|
+
if (R !== 0)
|
|
210
210
|
return;
|
|
211
|
-
const e =
|
|
211
|
+
const e = Y;
|
|
212
212
|
do {
|
|
213
213
|
try {
|
|
214
|
-
for (;
|
|
215
|
-
const t =
|
|
216
|
-
|
|
214
|
+
for (; R < D.length; ) {
|
|
215
|
+
const t = D[R];
|
|
216
|
+
R++, J(t), Br(t.$$);
|
|
217
217
|
}
|
|
218
218
|
} catch (t) {
|
|
219
|
-
throw
|
|
219
|
+
throw D.length = 0, R = 0, t;
|
|
220
220
|
}
|
|
221
|
-
for (
|
|
222
|
-
|
|
223
|
-
for (let t = 0; t <
|
|
224
|
-
const r =
|
|
225
|
-
|
|
221
|
+
for (J(null), D.length = 0, R = 0; Ne.length; )
|
|
222
|
+
Ne.pop()();
|
|
223
|
+
for (let t = 0; t < G.length; t += 1) {
|
|
224
|
+
const r = G[t];
|
|
225
|
+
Te.has(r) || (Te.add(r), r());
|
|
226
226
|
}
|
|
227
|
-
|
|
228
|
-
} while (
|
|
227
|
+
G.length = 0;
|
|
228
|
+
} while (D.length);
|
|
229
229
|
for (; nt.length; )
|
|
230
230
|
nt.pop()();
|
|
231
|
-
|
|
231
|
+
Ie = !1, Te.clear(), J(e);
|
|
232
232
|
}
|
|
233
233
|
function Br(e) {
|
|
234
234
|
if (e.fragment !== null) {
|
|
235
|
-
e.update(),
|
|
235
|
+
e.update(), te(e.before_update);
|
|
236
236
|
const t = e.dirty;
|
|
237
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
237
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
function Tr(e) {
|
|
241
241
|
const t = [], r = [];
|
|
242
|
-
|
|
242
|
+
G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
|
|
243
243
|
}
|
|
244
|
-
const
|
|
244
|
+
const ae = /* @__PURE__ */ new Set();
|
|
245
245
|
let wr;
|
|
246
|
-
function
|
|
247
|
-
e && e.i && (
|
|
246
|
+
function ue(e, t) {
|
|
247
|
+
e && e.i && (ae.delete(e), e.i(t));
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function we(e, t, r, n) {
|
|
250
250
|
if (e && e.o) {
|
|
251
|
-
if (
|
|
251
|
+
if (ae.has(e))
|
|
252
252
|
return;
|
|
253
|
-
|
|
254
|
-
|
|
253
|
+
ae.add(e), wr.c.push(() => {
|
|
254
|
+
ae.delete(e);
|
|
255
255
|
}), e.o(t);
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
function Sr(e, t, r) {
|
|
259
259
|
const { fragment: n, after_update: i } = e.$$;
|
|
260
|
-
n && n.m(t, r),
|
|
261
|
-
const s = e.$$.on_mount.map(Tt).filter(
|
|
262
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
263
|
-
}), i.forEach(
|
|
260
|
+
n && n.m(t, r), Me(() => {
|
|
261
|
+
const s = e.$$.on_mount.map(Tt).filter(Ve);
|
|
262
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
|
|
263
|
+
}), i.forEach(Me);
|
|
264
264
|
}
|
|
265
265
|
function Ar(e, t) {
|
|
266
266
|
const r = e.$$;
|
|
267
|
-
r.fragment !== null && (Tr(r.after_update),
|
|
267
|
+
r.fragment !== null && (Tr(r.after_update), te(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
e.$$.dirty[0] === -1 && (
|
|
269
|
+
function Cr(e, t) {
|
|
270
|
+
e.$$.dirty[0] === -1 && (D.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
273
|
-
const l =
|
|
274
|
-
|
|
272
|
+
function Or(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
273
|
+
const l = Y;
|
|
274
|
+
J(e);
|
|
275
275
|
const u = e.$$ = {
|
|
276
276
|
fragment: null,
|
|
277
277
|
ctx: [],
|
|
@@ -295,18 +295,18 @@ function Cr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
295
295
|
};
|
|
296
296
|
a && a(u.root);
|
|
297
297
|
let h = !1;
|
|
298
|
-
if (u.ctx = r ? r(e, t.props || {}, (c, m, ...
|
|
299
|
-
const f =
|
|
300
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = f) && (!u.skip_bound && u.bound[c] && u.bound[c](f), h &&
|
|
301
|
-
}) : [], u.update(), h = !0,
|
|
298
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, m, ...d) => {
|
|
299
|
+
const f = d.length ? d[0] : m;
|
|
300
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = f) && (!u.skip_bound && u.bound[c] && u.bound[c](f), h && Cr(e, c)), m;
|
|
301
|
+
}) : [], u.update(), h = !0, te(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
302
302
|
if (t.hydrate) {
|
|
303
303
|
const c = gr(t.target);
|
|
304
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
304
|
+
u.fragment && u.fragment.l(c), c.forEach(P);
|
|
305
305
|
} else
|
|
306
306
|
u.fragment && u.fragment.c();
|
|
307
|
-
t.intro &&
|
|
307
|
+
t.intro && ue(e.$$.fragment), Sr(e, t.target, t.anchor), w();
|
|
308
308
|
}
|
|
309
|
-
|
|
309
|
+
J(l);
|
|
310
310
|
}
|
|
311
311
|
let Pt;
|
|
312
312
|
typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
@@ -353,17 +353,17 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
353
353
|
let a;
|
|
354
354
|
return {
|
|
355
355
|
c: function() {
|
|
356
|
-
a =
|
|
356
|
+
a = X("slot"), s !== "default" && z(a, "name", s);
|
|
357
357
|
},
|
|
358
358
|
/**
|
|
359
359
|
* @param {HTMLElement} target
|
|
360
360
|
* @param {HTMLElement} [anchor]
|
|
361
361
|
*/
|
|
362
362
|
m: function(u, h) {
|
|
363
|
-
|
|
363
|
+
I(u, a, h);
|
|
364
364
|
},
|
|
365
365
|
d: function(u) {
|
|
366
|
-
u &&
|
|
366
|
+
u && P(a);
|
|
367
367
|
}
|
|
368
368
|
};
|
|
369
369
|
};
|
|
@@ -375,7 +375,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
375
375
|
s in n && (r[s] = [t(s)]);
|
|
376
376
|
for (const s of this.attributes) {
|
|
377
377
|
const a = this.$$g_p(s.name);
|
|
378
|
-
a in this.$$d || (this.$$d[a] =
|
|
378
|
+
a in this.$$d || (this.$$d[a] = he(a, s.value, this.$$p_d, "toProp"));
|
|
379
379
|
}
|
|
380
380
|
for (const s in this.$$p_d)
|
|
381
381
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -392,7 +392,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
392
392
|
this.$$r = !0;
|
|
393
393
|
for (const s in this.$$p_d)
|
|
394
394
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
395
|
-
const a =
|
|
395
|
+
const a = he(
|
|
396
396
|
s,
|
|
397
397
|
this.$$d[s],
|
|
398
398
|
this.$$p_d,
|
|
@@ -416,7 +416,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
416
416
|
// and setting attributes through setAttribute etc, this is helpful
|
|
417
417
|
attributeChangedCallback(t, r, n) {
|
|
418
418
|
var i;
|
|
419
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
419
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = he(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
420
420
|
}
|
|
421
421
|
disconnectedCallback() {
|
|
422
422
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -429,7 +429,7 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
429
429
|
) || t;
|
|
430
430
|
}
|
|
431
431
|
});
|
|
432
|
-
function
|
|
432
|
+
function he(e, t, r, n) {
|
|
433
433
|
var s;
|
|
434
434
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
435
435
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -477,7 +477,7 @@ function Pr(e, t, r, n, i, s) {
|
|
|
477
477
|
},
|
|
478
478
|
set(l) {
|
|
479
479
|
var u;
|
|
480
|
-
l =
|
|
480
|
+
l = he(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
|
|
481
481
|
}
|
|
482
482
|
});
|
|
483
483
|
}), n.forEach((o) => {
|
|
@@ -520,7 +520,7 @@ class Lr {
|
|
|
520
520
|
* @returns {() => void}
|
|
521
521
|
*/
|
|
522
522
|
$on(t, r) {
|
|
523
|
-
if (!
|
|
523
|
+
if (!Ve(r))
|
|
524
524
|
return T;
|
|
525
525
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
526
526
|
return n.push(r), () => {
|
|
@@ -538,24 +538,24 @@ class Lr {
|
|
|
538
538
|
}
|
|
539
539
|
const Nr = "4";
|
|
540
540
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nr);
|
|
541
|
-
const
|
|
541
|
+
const U = [];
|
|
542
542
|
function Ir(e, t) {
|
|
543
543
|
return {
|
|
544
|
-
subscribe:
|
|
544
|
+
subscribe: pe(e, t).subscribe
|
|
545
545
|
};
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function pe(e, t = T) {
|
|
548
548
|
let r;
|
|
549
549
|
const n = /* @__PURE__ */ new Set();
|
|
550
550
|
function i(o) {
|
|
551
551
|
if (wt(e, o) && (e = o, r)) {
|
|
552
|
-
const l = !
|
|
552
|
+
const l = !U.length;
|
|
553
553
|
for (const u of n)
|
|
554
|
-
u[1](),
|
|
554
|
+
u[1](), U.push(u, e);
|
|
555
555
|
if (l) {
|
|
556
|
-
for (let u = 0; u <
|
|
557
|
-
|
|
558
|
-
|
|
556
|
+
for (let u = 0; u < U.length; u += 2)
|
|
557
|
+
U[u][0](U[u + 1]);
|
|
558
|
+
U.length = 0;
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
}
|
|
@@ -570,7 +570,7 @@ function _e(e, t = T) {
|
|
|
570
570
|
}
|
|
571
571
|
return { set: i, update: s, subscribe: a };
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function W(e, t, r) {
|
|
574
574
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
575
575
|
if (!i.every(Boolean))
|
|
576
576
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -584,8 +584,8 @@ function Z(e, t, r) {
|
|
|
584
584
|
return;
|
|
585
585
|
c();
|
|
586
586
|
const f = t(n ? u[0] : u, a, o);
|
|
587
|
-
s ? a(f) : c =
|
|
588
|
-
},
|
|
587
|
+
s ? a(f) : c = Ve(f) ? f : T;
|
|
588
|
+
}, d = i.map(
|
|
589
589
|
(f, _) => St(
|
|
590
590
|
f,
|
|
591
591
|
(v) => {
|
|
@@ -597,7 +597,7 @@ function Z(e, t, r) {
|
|
|
597
597
|
)
|
|
598
598
|
);
|
|
599
599
|
return l = !0, m(), function() {
|
|
600
|
-
|
|
600
|
+
te(d), c(), l = !1;
|
|
601
601
|
};
|
|
602
602
|
});
|
|
603
603
|
}
|
|
@@ -621,19 +621,19 @@ function Fr(e) {
|
|
|
621
621
|
function jr(e) {
|
|
622
622
|
return Array.isArray(e) ? [] : {};
|
|
623
623
|
}
|
|
624
|
-
function
|
|
625
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
624
|
+
function K(e, t) {
|
|
625
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(jr(e), e, t) : e;
|
|
626
626
|
}
|
|
627
627
|
function kr(e, t, r) {
|
|
628
628
|
return e.concat(t).map(function(n) {
|
|
629
|
-
return
|
|
629
|
+
return K(n, r);
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
632
|
function Vr(e, t) {
|
|
633
633
|
if (!t.customMerge)
|
|
634
|
-
return
|
|
634
|
+
return F;
|
|
635
635
|
var r = t.customMerge(e);
|
|
636
|
-
return typeof r == "function" ? r :
|
|
636
|
+
return typeof r == "function" ? r : F;
|
|
637
637
|
}
|
|
638
638
|
function Xr(e) {
|
|
639
639
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -656,51 +656,65 @@ function zr(e, t) {
|
|
|
656
656
|
function Wr(e, t, r) {
|
|
657
657
|
var n = {};
|
|
658
658
|
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
659
|
-
n[i] =
|
|
659
|
+
n[i] = K(e[i], r);
|
|
660
660
|
}), it(t).forEach(function(i) {
|
|
661
|
-
zr(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Vr(i, r)(e[i], t[i], r) : n[i] =
|
|
661
|
+
zr(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Vr(i, r)(e[i], t[i], r) : n[i] = K(t[i], r));
|
|
662
662
|
}), n;
|
|
663
663
|
}
|
|
664
|
-
function
|
|
665
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || kr, r.isMergeableObject = r.isMergeableObject || $r, r.cloneUnlessOtherwiseSpecified =
|
|
664
|
+
function F(e, t, r) {
|
|
665
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || kr, r.isMergeableObject = r.isMergeableObject || $r, r.cloneUnlessOtherwiseSpecified = K;
|
|
666
666
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
667
|
-
return s ? n ? r.arrayMerge(e, t, r) : Wr(e, t, r) :
|
|
667
|
+
return s ? n ? r.arrayMerge(e, t, r) : Wr(e, t, r) : K(t, r);
|
|
668
668
|
}
|
|
669
|
-
|
|
669
|
+
F.all = function(t, r) {
|
|
670
670
|
if (!Array.isArray(t))
|
|
671
671
|
throw new Error("first argument should be an array");
|
|
672
672
|
return t.reduce(function(n, i) {
|
|
673
|
-
return
|
|
673
|
+
return F(n, i, r);
|
|
674
674
|
}, {});
|
|
675
675
|
};
|
|
676
|
-
var Zr =
|
|
676
|
+
var Zr = F, Qr = Zr;
|
|
677
677
|
const qr = /* @__PURE__ */ Mr(Qr);
|
|
678
|
-
|
|
679
|
-
|
|
678
|
+
/*! *****************************************************************************
|
|
679
|
+
Copyright (c) Microsoft Corporation.
|
|
680
|
+
|
|
681
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
682
|
+
purpose with or without fee is hereby granted.
|
|
683
|
+
|
|
684
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
685
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
686
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
687
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
688
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
689
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
690
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
691
|
+
***************************************************************************** */
|
|
692
|
+
var $e = function(e, t) {
|
|
693
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
680
694
|
r.__proto__ = n;
|
|
681
695
|
} || function(r, n) {
|
|
682
696
|
for (var i in n)
|
|
683
697
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
684
|
-
},
|
|
698
|
+
}, $e(e, t);
|
|
685
699
|
};
|
|
686
|
-
function
|
|
700
|
+
function ge(e, t) {
|
|
687
701
|
if (typeof t != "function" && t !== null)
|
|
688
702
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
689
|
-
|
|
703
|
+
$e(e, t);
|
|
690
704
|
function r() {
|
|
691
705
|
this.constructor = e;
|
|
692
706
|
}
|
|
693
707
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
694
708
|
}
|
|
695
|
-
var
|
|
696
|
-
return
|
|
709
|
+
var y = function() {
|
|
710
|
+
return y = Object.assign || function(t) {
|
|
697
711
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
698
712
|
r = arguments[n];
|
|
699
713
|
for (var s in r)
|
|
700
714
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
701
715
|
}
|
|
702
716
|
return t;
|
|
703
|
-
},
|
|
717
|
+
}, y.apply(this, arguments);
|
|
704
718
|
};
|
|
705
719
|
function Jr(e, t) {
|
|
706
720
|
var r = {};
|
|
@@ -711,14 +725,14 @@ function Jr(e, t) {
|
|
|
711
725
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
712
726
|
return r;
|
|
713
727
|
}
|
|
714
|
-
function
|
|
715
|
-
if (
|
|
728
|
+
function Se(e, t, r) {
|
|
729
|
+
if (arguments.length === 2)
|
|
716
730
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
717
731
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
718
|
-
return e.concat(s ||
|
|
732
|
+
return e.concat(s || t);
|
|
719
733
|
}
|
|
720
|
-
function
|
|
721
|
-
var r = t && t.cache ? t.cache :
|
|
734
|
+
function Ae(e, t) {
|
|
735
|
+
var r = t && t.cache ? t.cache : nn, n = t && t.serializer ? t.serializer : rn, i = t && t.strategy ? t.strategy : Kr;
|
|
722
736
|
return i(e, {
|
|
723
737
|
cache: r,
|
|
724
738
|
serializer: n
|
|
@@ -727,103 +741,95 @@ function Ce(e, t) {
|
|
|
727
741
|
function Yr(e) {
|
|
728
742
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
729
743
|
}
|
|
730
|
-
function
|
|
744
|
+
function Nt(e, t, r, n) {
|
|
731
745
|
var i = Yr(n) ? n : r(n), s = t.get(i);
|
|
732
746
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
733
747
|
}
|
|
734
|
-
function
|
|
748
|
+
function It(e, t, r) {
|
|
735
749
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
736
750
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
737
751
|
}
|
|
738
|
-
function
|
|
752
|
+
function ze(e, t, r, n, i) {
|
|
739
753
|
return r.bind(t, e, n, i);
|
|
740
754
|
}
|
|
755
|
+
function Kr(e, t) {
|
|
756
|
+
var r = e.length === 1 ? Nt : It;
|
|
757
|
+
return ze(e, this, r, t.cache.create(), t.serializer);
|
|
758
|
+
}
|
|
741
759
|
function en(e, t) {
|
|
742
|
-
|
|
743
|
-
return It(e, this, r, t.cache.create(), t.serializer);
|
|
760
|
+
return ze(e, this, It, t.cache.create(), t.serializer);
|
|
744
761
|
}
|
|
745
762
|
function tn(e, t) {
|
|
746
|
-
return
|
|
763
|
+
return ze(e, this, Nt, t.cache.create(), t.serializer);
|
|
747
764
|
}
|
|
748
765
|
var rn = function() {
|
|
749
766
|
return JSON.stringify(arguments);
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
}()
|
|
762
|
-
), sn = {
|
|
767
|
+
};
|
|
768
|
+
function We() {
|
|
769
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
770
|
+
}
|
|
771
|
+
We.prototype.get = function(e) {
|
|
772
|
+
return this.cache[e];
|
|
773
|
+
};
|
|
774
|
+
We.prototype.set = function(e, t) {
|
|
775
|
+
this.cache[e] = t;
|
|
776
|
+
};
|
|
777
|
+
var nn = {
|
|
763
778
|
create: function() {
|
|
764
|
-
return new
|
|
779
|
+
return new We();
|
|
765
780
|
}
|
|
766
|
-
},
|
|
767
|
-
variadic:
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
771
|
-
r = arguments[n];
|
|
772
|
-
for (var s in r)
|
|
773
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
774
|
-
}
|
|
775
|
-
return t;
|
|
776
|
-
}, pe.apply(this, arguments);
|
|
777
|
-
};
|
|
778
|
-
var d;
|
|
781
|
+
}, Ce = {
|
|
782
|
+
variadic: en,
|
|
783
|
+
monadic: tn
|
|
784
|
+
}, b;
|
|
779
785
|
(function(e) {
|
|
780
786
|
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";
|
|
781
|
-
})(
|
|
782
|
-
var
|
|
787
|
+
})(b || (b = {}));
|
|
788
|
+
var x;
|
|
783
789
|
(function(e) {
|
|
784
790
|
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";
|
|
785
|
-
})(
|
|
786
|
-
var
|
|
791
|
+
})(x || (x = {}));
|
|
792
|
+
var j;
|
|
787
793
|
(function(e) {
|
|
788
794
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
789
|
-
})(
|
|
795
|
+
})(j || (j = {}));
|
|
790
796
|
function st(e) {
|
|
791
|
-
return e.type ===
|
|
797
|
+
return e.type === x.literal;
|
|
792
798
|
}
|
|
793
|
-
function
|
|
794
|
-
return e.type ===
|
|
799
|
+
function sn(e) {
|
|
800
|
+
return e.type === x.argument;
|
|
795
801
|
}
|
|
796
802
|
function Mt(e) {
|
|
797
|
-
return e.type ===
|
|
803
|
+
return e.type === x.number;
|
|
798
804
|
}
|
|
799
805
|
function $t(e) {
|
|
800
|
-
return e.type ===
|
|
806
|
+
return e.type === x.date;
|
|
801
807
|
}
|
|
802
808
|
function Rt(e) {
|
|
803
|
-
return e.type ===
|
|
809
|
+
return e.type === x.time;
|
|
804
810
|
}
|
|
805
811
|
function Ut(e) {
|
|
806
|
-
return e.type ===
|
|
812
|
+
return e.type === x.select;
|
|
807
813
|
}
|
|
808
814
|
function Dt(e) {
|
|
809
|
-
return e.type ===
|
|
815
|
+
return e.type === x.plural;
|
|
810
816
|
}
|
|
811
|
-
function
|
|
812
|
-
return e.type ===
|
|
817
|
+
function on(e) {
|
|
818
|
+
return e.type === x.pound;
|
|
813
819
|
}
|
|
814
820
|
function Gt(e) {
|
|
815
|
-
return e.type ===
|
|
821
|
+
return e.type === x.tag;
|
|
816
822
|
}
|
|
817
823
|
function Ft(e) {
|
|
818
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
824
|
+
return !!(e && typeof e == "object" && e.type === j.number);
|
|
819
825
|
}
|
|
820
|
-
function
|
|
821
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
826
|
+
function Re(e) {
|
|
827
|
+
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
822
828
|
}
|
|
823
|
-
var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
824
|
-
function
|
|
829
|
+
var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, an = /(?:[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;
|
|
830
|
+
function un(e) {
|
|
825
831
|
var t = {};
|
|
826
|
-
return e.replace(
|
|
832
|
+
return e.replace(an, function(r) {
|
|
827
833
|
var n = r.length;
|
|
828
834
|
switch (r[0]) {
|
|
829
835
|
case "G":
|
|
@@ -912,21 +918,11 @@ function hn(e) {
|
|
|
912
918
|
return "";
|
|
913
919
|
}), t;
|
|
914
920
|
}
|
|
915
|
-
var
|
|
916
|
-
|
|
917
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
918
|
-
r = arguments[n];
|
|
919
|
-
for (var s in r)
|
|
920
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
921
|
-
}
|
|
922
|
-
return t;
|
|
923
|
-
}, E.apply(this, arguments);
|
|
924
|
-
};
|
|
925
|
-
var ln = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
926
|
-
function fn(e) {
|
|
921
|
+
var hn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
922
|
+
function ln(e) {
|
|
927
923
|
if (e.length === 0)
|
|
928
924
|
throw new Error("Number skeleton cannot be empty");
|
|
929
|
-
for (var t = e.split(
|
|
925
|
+
for (var t = e.split(hn).filter(function(m) {
|
|
930
926
|
return m.length > 0;
|
|
931
927
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
932
928
|
var s = i[n], a = s.split("/");
|
|
@@ -941,10 +937,10 @@ function fn(e) {
|
|
|
941
937
|
}
|
|
942
938
|
return r;
|
|
943
939
|
}
|
|
944
|
-
function
|
|
940
|
+
function fn(e) {
|
|
945
941
|
return e.replace(/^(.*?)-/, "");
|
|
946
942
|
}
|
|
947
|
-
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
943
|
+
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kt = /^(@+)?(\+|#+)?[rs]?$/g, cn = /(\*)(0+)|(#+)(0+)|(0+)/g, Vt = /^(0+)$/;
|
|
948
944
|
function at(e) {
|
|
949
945
|
var t = {};
|
|
950
946
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kt, function(r, n, i) {
|
|
@@ -991,7 +987,7 @@ function Xt(e) {
|
|
|
991
987
|
};
|
|
992
988
|
}
|
|
993
989
|
}
|
|
994
|
-
function
|
|
990
|
+
function mn(e) {
|
|
995
991
|
var t;
|
|
996
992
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
997
993
|
notation: "engineering"
|
|
@@ -1033,7 +1029,7 @@ function dn(e) {
|
|
|
1033
1029
|
continue;
|
|
1034
1030
|
case "measure-unit":
|
|
1035
1031
|
case "unit":
|
|
1036
|
-
t.style = "unit", t.unit =
|
|
1032
|
+
t.style = "unit", t.unit = fn(i.options[0]);
|
|
1037
1033
|
continue;
|
|
1038
1034
|
case "compact-short":
|
|
1039
1035
|
case "K":
|
|
@@ -1044,13 +1040,13 @@ function dn(e) {
|
|
|
1044
1040
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1045
1041
|
continue;
|
|
1046
1042
|
case "scientific":
|
|
1047
|
-
t =
|
|
1048
|
-
return
|
|
1043
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1044
|
+
return y(y({}, l), ut(u));
|
|
1049
1045
|
}, {}));
|
|
1050
1046
|
continue;
|
|
1051
1047
|
case "engineering":
|
|
1052
|
-
t =
|
|
1053
|
-
return
|
|
1048
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1049
|
+
return y(y({}, l), ut(u));
|
|
1054
1050
|
}, {}));
|
|
1055
1051
|
continue;
|
|
1056
1052
|
case "notation-simple":
|
|
@@ -1095,13 +1091,13 @@ function dn(e) {
|
|
|
1095
1091
|
case "integer-width":
|
|
1096
1092
|
if (i.options.length > 1)
|
|
1097
1093
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1098
|
-
i.options[0].replace(
|
|
1094
|
+
i.options[0].replace(cn, function(l, u, h, c, m, d) {
|
|
1099
1095
|
if (u)
|
|
1100
1096
|
t.minimumIntegerDigits = h.length;
|
|
1101
1097
|
else {
|
|
1102
1098
|
if (c && m)
|
|
1103
1099
|
throw new Error("We currently do not support maximum integer digits");
|
|
1104
|
-
if (
|
|
1100
|
+
if (d)
|
|
1105
1101
|
throw new Error("We currently do not support exact integer digits");
|
|
1106
1102
|
}
|
|
1107
1103
|
return "";
|
|
@@ -1115,25 +1111,25 @@ function dn(e) {
|
|
|
1115
1111
|
if (ot.test(i.stem)) {
|
|
1116
1112
|
if (i.options.length > 1)
|
|
1117
1113
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1118
|
-
i.stem.replace(ot, function(l, u, h, c, m,
|
|
1119
|
-
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m &&
|
|
1114
|
+
i.stem.replace(ot, function(l, u, h, c, m, d) {
|
|
1115
|
+
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), "";
|
|
1120
1116
|
});
|
|
1121
1117
|
var s = i.options[0];
|
|
1122
|
-
s === "w" ? t =
|
|
1118
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), at(s)));
|
|
1123
1119
|
continue;
|
|
1124
1120
|
}
|
|
1125
1121
|
if (kt.test(i.stem)) {
|
|
1126
|
-
t =
|
|
1122
|
+
t = y(y({}, t), at(i.stem));
|
|
1127
1123
|
continue;
|
|
1128
1124
|
}
|
|
1129
1125
|
var a = Xt(i.stem);
|
|
1130
|
-
a && (t =
|
|
1131
|
-
var o =
|
|
1132
|
-
o && (t =
|
|
1126
|
+
a && (t = y(y({}, t), a));
|
|
1127
|
+
var o = mn(i.stem);
|
|
1128
|
+
o && (t = y(y({}, t), o));
|
|
1133
1129
|
}
|
|
1134
1130
|
return t;
|
|
1135
1131
|
}
|
|
1136
|
-
var
|
|
1132
|
+
var oe = {
|
|
1137
1133
|
"001": [
|
|
1138
1134
|
"H",
|
|
1139
1135
|
"h"
|
|
@@ -2554,7 +2550,7 @@ function bn(e, t) {
|
|
|
2554
2550
|
if (i === "j") {
|
|
2555
2551
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2556
2552
|
s++, n++;
|
|
2557
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
|
2553
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = pn(t);
|
|
2558
2554
|
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2559
2555
|
r += l;
|
|
2560
2556
|
for (; a-- > 0; )
|
|
@@ -2564,7 +2560,7 @@ function bn(e, t) {
|
|
|
2564
2560
|
}
|
|
2565
2561
|
return r;
|
|
2566
2562
|
}
|
|
2567
|
-
function
|
|
2563
|
+
function pn(e) {
|
|
2568
2564
|
var t = e.hourCycle;
|
|
2569
2565
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2570
2566
|
e.hourCycles && // @ts-ignore
|
|
@@ -2583,23 +2579,23 @@ function gn(e) {
|
|
|
2583
2579
|
}
|
|
2584
2580
|
var r = e.language, n;
|
|
2585
2581
|
r !== "root" && (n = e.maximize().region);
|
|
2586
|
-
var i =
|
|
2582
|
+
var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
|
|
2587
2583
|
return i[0];
|
|
2588
2584
|
}
|
|
2589
|
-
var
|
|
2590
|
-
function
|
|
2585
|
+
var Oe, gn = new RegExp("^".concat(jt.source, "*")), _n = new RegExp("".concat(jt.source, "*$"));
|
|
2586
|
+
function p(e, t) {
|
|
2591
2587
|
return { start: e, end: t };
|
|
2592
2588
|
}
|
|
2593
|
-
var
|
|
2589
|
+
var yn = !!String.prototype.startsWith && "_a".startsWith("a", 1), xn = !!String.fromCodePoint, En = !!Object.fromEntries, vn = !!String.prototype.codePointAt, Hn = !!String.prototype.trimStart, Bn = !!String.prototype.trimEnd, Tn = !!Number.isSafeInteger, wn = Tn ? Number.isSafeInteger : function(e) {
|
|
2594
2590
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2595
|
-
},
|
|
2591
|
+
}, Ue = !0;
|
|
2596
2592
|
try {
|
|
2597
|
-
var
|
|
2598
|
-
|
|
2593
|
+
var Sn = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2594
|
+
Ue = ((Oe = Sn.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2599
2595
|
} catch (e) {
|
|
2600
|
-
|
|
2596
|
+
Ue = !1;
|
|
2601
2597
|
}
|
|
2602
|
-
var ht =
|
|
2598
|
+
var ht = yn ? (
|
|
2603
2599
|
// Native
|
|
2604
2600
|
function(t, r, n) {
|
|
2605
2601
|
return t.startsWith(r, n);
|
|
@@ -2609,7 +2605,7 @@ var ht = En ? (
|
|
|
2609
2605
|
function(t, r, n) {
|
|
2610
2606
|
return t.slice(n, n + r.length) === r;
|
|
2611
2607
|
}
|
|
2612
|
-
),
|
|
2608
|
+
), De = xn ? String.fromCodePoint : (
|
|
2613
2609
|
// IE11
|
|
2614
2610
|
function() {
|
|
2615
2611
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2623,7 +2619,7 @@ var ht = En ? (
|
|
|
2623
2619
|
}
|
|
2624
2620
|
), lt = (
|
|
2625
2621
|
// native
|
|
2626
|
-
|
|
2622
|
+
En ? Object.fromEntries : (
|
|
2627
2623
|
// Ponyfill
|
|
2628
2624
|
function(t) {
|
|
2629
2625
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2633,7 +2629,7 @@ var ht = En ? (
|
|
|
2633
2629
|
return r;
|
|
2634
2630
|
}
|
|
2635
2631
|
)
|
|
2636
|
-
), zt =
|
|
2632
|
+
), zt = vn ? (
|
|
2637
2633
|
// Native
|
|
2638
2634
|
function(t, r) {
|
|
2639
2635
|
return t.codePointAt(r);
|
|
@@ -2647,7 +2643,7 @@ var ht = En ? (
|
|
|
2647
2643
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2648
2644
|
}
|
|
2649
2645
|
}
|
|
2650
|
-
),
|
|
2646
|
+
), An = Hn ? (
|
|
2651
2647
|
// Native
|
|
2652
2648
|
function(t) {
|
|
2653
2649
|
return t.trimStart();
|
|
@@ -2655,9 +2651,9 @@ var ht = En ? (
|
|
|
2655
2651
|
) : (
|
|
2656
2652
|
// Ponyfill
|
|
2657
2653
|
function(t) {
|
|
2658
|
-
return t.replace(
|
|
2654
|
+
return t.replace(gn, "");
|
|
2659
2655
|
}
|
|
2660
|
-
), Cn =
|
|
2656
|
+
), Cn = Bn ? (
|
|
2661
2657
|
// Native
|
|
2662
2658
|
function(t) {
|
|
2663
2659
|
return t.trimEnd();
|
|
@@ -2665,32 +2661,32 @@ var ht = En ? (
|
|
|
2665
2661
|
) : (
|
|
2666
2662
|
// Ponyfill
|
|
2667
2663
|
function(t) {
|
|
2668
|
-
return t.replace(
|
|
2664
|
+
return t.replace(_n, "");
|
|
2669
2665
|
}
|
|
2670
2666
|
);
|
|
2671
2667
|
function Wt(e, t) {
|
|
2672
2668
|
return new RegExp(e, t);
|
|
2673
2669
|
}
|
|
2674
|
-
var
|
|
2675
|
-
if (
|
|
2670
|
+
var Ge;
|
|
2671
|
+
if (Ue) {
|
|
2676
2672
|
var ft = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2677
|
-
|
|
2673
|
+
Ge = function(t, r) {
|
|
2678
2674
|
var n;
|
|
2679
2675
|
ft.lastIndex = r;
|
|
2680
2676
|
var i = ft.exec(t);
|
|
2681
2677
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2682
2678
|
};
|
|
2683
2679
|
} else
|
|
2684
|
-
|
|
2680
|
+
Ge = function(t, r) {
|
|
2685
2681
|
for (var n = []; ; ) {
|
|
2686
2682
|
var i = zt(t, r);
|
|
2687
|
-
if (i === void 0 || Zt(i) ||
|
|
2683
|
+
if (i === void 0 || Zt(i) || Nn(i))
|
|
2688
2684
|
break;
|
|
2689
2685
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2690
2686
|
}
|
|
2691
|
-
return
|
|
2687
|
+
return De.apply(void 0, n);
|
|
2692
2688
|
};
|
|
2693
|
-
var
|
|
2689
|
+
var On = (
|
|
2694
2690
|
/** @class */
|
|
2695
2691
|
function() {
|
|
2696
2692
|
function e(t, r) {
|
|
@@ -2714,14 +2710,14 @@ var Pn = (
|
|
|
2714
2710
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2715
2711
|
var o = this.clonePosition();
|
|
2716
2712
|
this.bump(), i.push({
|
|
2717
|
-
type:
|
|
2718
|
-
location:
|
|
2713
|
+
type: x.pound,
|
|
2714
|
+
location: p(o, this.clonePosition())
|
|
2719
2715
|
});
|
|
2720
2716
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2721
2717
|
if (n)
|
|
2722
2718
|
break;
|
|
2723
|
-
return this.error(
|
|
2724
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2719
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
|
|
2720
|
+
} else if (s === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
2725
2721
|
var a = this.parseTag(t, r);
|
|
2726
2722
|
if (a.err)
|
|
2727
2723
|
return a;
|
|
@@ -2742,9 +2738,9 @@ var Pn = (
|
|
|
2742
2738
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2743
2739
|
return {
|
|
2744
2740
|
val: {
|
|
2745
|
-
type:
|
|
2741
|
+
type: x.literal,
|
|
2746
2742
|
value: "<".concat(i, "/>"),
|
|
2747
|
-
location:
|
|
2743
|
+
location: p(n, this.clonePosition())
|
|
2748
2744
|
},
|
|
2749
2745
|
err: null
|
|
2750
2746
|
};
|
|
@@ -2754,25 +2750,25 @@ var Pn = (
|
|
|
2754
2750
|
return s;
|
|
2755
2751
|
var a = s.val, o = this.clonePosition();
|
|
2756
2752
|
if (this.bumpIf("</")) {
|
|
2757
|
-
if (this.isEOF() || !
|
|
2758
|
-
return this.error(
|
|
2753
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
2754
|
+
return this.error(b.INVALID_TAG, p(o, this.clonePosition()));
|
|
2759
2755
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2760
|
-
return i !== u ? this.error(
|
|
2756
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, p(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2761
2757
|
val: {
|
|
2762
|
-
type:
|
|
2758
|
+
type: x.tag,
|
|
2763
2759
|
value: i,
|
|
2764
2760
|
children: a,
|
|
2765
|
-
location:
|
|
2761
|
+
location: p(n, this.clonePosition())
|
|
2766
2762
|
},
|
|
2767
2763
|
err: null
|
|
2768
|
-
} : this.error(
|
|
2764
|
+
} : this.error(b.INVALID_TAG, p(o, this.clonePosition())));
|
|
2769
2765
|
} else
|
|
2770
|
-
return this.error(
|
|
2766
|
+
return this.error(b.UNCLOSED_TAG, p(n, this.clonePosition()));
|
|
2771
2767
|
} else
|
|
2772
|
-
return this.error(
|
|
2768
|
+
return this.error(b.INVALID_TAG, p(n, this.clonePosition()));
|
|
2773
2769
|
}, e.prototype.parseTagName = function() {
|
|
2774
2770
|
var t = this.offset();
|
|
2775
|
-
for (this.bump(); !this.isEOF() &&
|
|
2771
|
+
for (this.bump(); !this.isEOF() && Ln(this.char()); )
|
|
2776
2772
|
this.bump();
|
|
2777
2773
|
return this.message.slice(t, this.offset());
|
|
2778
2774
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2794,14 +2790,14 @@ var Pn = (
|
|
|
2794
2790
|
}
|
|
2795
2791
|
break;
|
|
2796
2792
|
}
|
|
2797
|
-
var l =
|
|
2793
|
+
var l = p(n, this.clonePosition());
|
|
2798
2794
|
return {
|
|
2799
|
-
val: { type:
|
|
2795
|
+
val: { type: x.literal, value: i, location: l },
|
|
2800
2796
|
err: null
|
|
2801
2797
|
};
|
|
2802
2798
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2803
2799
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2804
|
-
!
|
|
2800
|
+
!Pn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2805
2801
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2806
2802
|
if (this.isEOF() || this.char() !== 39)
|
|
2807
2803
|
return null;
|
|
@@ -2835,49 +2831,49 @@ var Pn = (
|
|
|
2835
2831
|
r.push(n);
|
|
2836
2832
|
this.bump();
|
|
2837
2833
|
}
|
|
2838
|
-
return
|
|
2834
|
+
return De.apply(void 0, r);
|
|
2839
2835
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2840
2836
|
if (this.isEOF())
|
|
2841
2837
|
return null;
|
|
2842
2838
|
var n = this.char();
|
|
2843
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2839
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
|
|
2844
2840
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2845
2841
|
var n = this.clonePosition();
|
|
2846
2842
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2847
|
-
return this.error(
|
|
2843
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
|
|
2848
2844
|
if (this.char() === 125)
|
|
2849
|
-
return this.bump(), this.error(
|
|
2845
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, p(n, this.clonePosition()));
|
|
2850
2846
|
var i = this.parseIdentifierIfPossible().value;
|
|
2851
2847
|
if (!i)
|
|
2852
|
-
return this.error(
|
|
2848
|
+
return this.error(b.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2853
2849
|
if (this.bumpSpace(), this.isEOF())
|
|
2854
|
-
return this.error(
|
|
2850
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
|
|
2855
2851
|
switch (this.char()) {
|
|
2856
2852
|
case 125:
|
|
2857
2853
|
return this.bump(), {
|
|
2858
2854
|
val: {
|
|
2859
|
-
type:
|
|
2855
|
+
type: x.argument,
|
|
2860
2856
|
// value does not include the opening and closing braces.
|
|
2861
2857
|
value: i,
|
|
2862
|
-
location:
|
|
2858
|
+
location: p(n, this.clonePosition())
|
|
2863
2859
|
},
|
|
2864
2860
|
err: null
|
|
2865
2861
|
};
|
|
2866
2862
|
case 44:
|
|
2867
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2863
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2868
2864
|
default:
|
|
2869
|
-
return this.error(
|
|
2865
|
+
return this.error(b.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2870
2866
|
}
|
|
2871
2867
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2872
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2868
|
+
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
2873
2869
|
this.bumpTo(i);
|
|
2874
|
-
var s = this.clonePosition(), a =
|
|
2870
|
+
var s = this.clonePosition(), a = p(t, s);
|
|
2875
2871
|
return { value: n, location: a };
|
|
2876
2872
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2877
2873
|
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2878
2874
|
switch (o) {
|
|
2879
2875
|
case "":
|
|
2880
|
-
return this.error(
|
|
2876
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, p(a, l));
|
|
2881
2877
|
case "number":
|
|
2882
2878
|
case "date":
|
|
2883
2879
|
case "time": {
|
|
@@ -2890,33 +2886,33 @@ var Pn = (
|
|
|
2890
2886
|
return c;
|
|
2891
2887
|
var m = Cn(c.val);
|
|
2892
2888
|
if (m.length === 0)
|
|
2893
|
-
return this.error(
|
|
2894
|
-
var
|
|
2895
|
-
u = { style: m, styleLocation:
|
|
2889
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2890
|
+
var d = p(h, this.clonePosition());
|
|
2891
|
+
u = { style: m, styleLocation: d };
|
|
2896
2892
|
}
|
|
2897
2893
|
var f = this.tryParseArgumentClose(i);
|
|
2898
2894
|
if (f.err)
|
|
2899
2895
|
return f;
|
|
2900
|
-
var _ =
|
|
2896
|
+
var _ = p(i, this.clonePosition());
|
|
2901
2897
|
if (u && ht(u == null ? void 0 : u.style, "::", 0)) {
|
|
2902
|
-
var v =
|
|
2898
|
+
var v = An(u.style.slice(2));
|
|
2903
2899
|
if (o === "number") {
|
|
2904
2900
|
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
2905
2901
|
return c.err ? c : {
|
|
2906
|
-
val: { type:
|
|
2902
|
+
val: { type: x.number, value: n, location: _, style: c.val },
|
|
2907
2903
|
err: null
|
|
2908
2904
|
};
|
|
2909
2905
|
} else {
|
|
2910
2906
|
if (v.length === 0)
|
|
2911
|
-
return this.error(
|
|
2912
|
-
var
|
|
2913
|
-
this.locale && (
|
|
2907
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, _);
|
|
2908
|
+
var A = v;
|
|
2909
|
+
this.locale && (A = bn(v, this.locale));
|
|
2914
2910
|
var m = {
|
|
2915
|
-
type:
|
|
2916
|
-
pattern:
|
|
2911
|
+
type: j.dateTime,
|
|
2912
|
+
pattern: A,
|
|
2917
2913
|
location: u.styleLocation,
|
|
2918
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2919
|
-
}, C = o === "date" ?
|
|
2914
|
+
parsedOptions: this.shouldParseSkeletons ? un(A) : {}
|
|
2915
|
+
}, C = o === "date" ? x.date : x.time;
|
|
2920
2916
|
return {
|
|
2921
2917
|
val: { type: C, value: n, location: _, style: m },
|
|
2922
2918
|
err: null
|
|
@@ -2925,7 +2921,7 @@ var Pn = (
|
|
|
2925
2921
|
}
|
|
2926
2922
|
return {
|
|
2927
2923
|
val: {
|
|
2928
|
-
type: o === "number" ?
|
|
2924
|
+
type: o === "number" ? x.number : o === "date" ? x.date : x.time,
|
|
2929
2925
|
value: n,
|
|
2930
2926
|
location: _,
|
|
2931
2927
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
@@ -2938,50 +2934,50 @@ var Pn = (
|
|
|
2938
2934
|
case "select": {
|
|
2939
2935
|
var H = this.clonePosition();
|
|
2940
2936
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2941
|
-
return this.error(
|
|
2937
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, p(H, y({}, H)));
|
|
2942
2938
|
this.bumpSpace();
|
|
2943
|
-
var
|
|
2944
|
-
if (o !== "select" &&
|
|
2939
|
+
var N = this.parseIdentifierIfPossible(), S = 0;
|
|
2940
|
+
if (o !== "select" && N.value === "offset") {
|
|
2945
2941
|
if (!this.bumpIf(":"))
|
|
2946
|
-
return this.error(
|
|
2942
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
|
|
2947
2943
|
this.bumpSpace();
|
|
2948
|
-
var c = this.tryParseDecimalInteger(
|
|
2944
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2949
2945
|
if (c.err)
|
|
2950
2946
|
return c;
|
|
2951
|
-
this.bumpSpace(),
|
|
2947
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), S = c.val;
|
|
2952
2948
|
}
|
|
2953
|
-
var
|
|
2954
|
-
if (
|
|
2955
|
-
return
|
|
2949
|
+
var $ = this.tryParsePluralOrSelectOptions(t, o, r, N);
|
|
2950
|
+
if ($.err)
|
|
2951
|
+
return $;
|
|
2956
2952
|
var f = this.tryParseArgumentClose(i);
|
|
2957
2953
|
if (f.err)
|
|
2958
2954
|
return f;
|
|
2959
|
-
var
|
|
2955
|
+
var ie = p(i, this.clonePosition());
|
|
2960
2956
|
return o === "select" ? {
|
|
2961
2957
|
val: {
|
|
2962
|
-
type:
|
|
2958
|
+
type: x.select,
|
|
2963
2959
|
value: n,
|
|
2964
|
-
options: lt(
|
|
2965
|
-
location:
|
|
2960
|
+
options: lt($.val),
|
|
2961
|
+
location: ie
|
|
2966
2962
|
},
|
|
2967
2963
|
err: null
|
|
2968
2964
|
} : {
|
|
2969
2965
|
val: {
|
|
2970
|
-
type:
|
|
2966
|
+
type: x.plural,
|
|
2971
2967
|
value: n,
|
|
2972
|
-
options: lt(
|
|
2973
|
-
offset:
|
|
2968
|
+
options: lt($.val),
|
|
2969
|
+
offset: S,
|
|
2974
2970
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2975
|
-
location:
|
|
2971
|
+
location: ie
|
|
2976
2972
|
},
|
|
2977
2973
|
err: null
|
|
2978
2974
|
};
|
|
2979
2975
|
}
|
|
2980
2976
|
default:
|
|
2981
|
-
return this.error(
|
|
2977
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, p(a, l));
|
|
2982
2978
|
}
|
|
2983
2979
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2984
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2980
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2985
2981
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2986
2982
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2987
2983
|
var n = this.char();
|
|
@@ -2990,7 +2986,7 @@ var Pn = (
|
|
|
2990
2986
|
this.bump();
|
|
2991
2987
|
var i = this.clonePosition();
|
|
2992
2988
|
if (!this.bumpUntil("'"))
|
|
2993
|
-
return this.error(
|
|
2989
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, p(i, this.clonePosition()));
|
|
2994
2990
|
this.bump();
|
|
2995
2991
|
break;
|
|
2996
2992
|
}
|
|
@@ -3020,13 +3016,13 @@ var Pn = (
|
|
|
3020
3016
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3021
3017
|
var n = [];
|
|
3022
3018
|
try {
|
|
3023
|
-
n =
|
|
3019
|
+
n = ln(t);
|
|
3024
3020
|
} catch (i) {
|
|
3025
|
-
return this.error(
|
|
3021
|
+
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3026
3022
|
}
|
|
3027
3023
|
return {
|
|
3028
3024
|
val: {
|
|
3029
|
-
type:
|
|
3025
|
+
type: j.number,
|
|
3030
3026
|
tokens: n,
|
|
3031
3027
|
location: r,
|
|
3032
3028
|
parsedOptions: this.shouldParseSkeletons ? dn(n) : {}
|
|
@@ -3038,34 +3034,34 @@ var Pn = (
|
|
|
3038
3034
|
if (u.length === 0) {
|
|
3039
3035
|
var c = this.clonePosition();
|
|
3040
3036
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3041
|
-
var m = this.tryParseDecimalInteger(
|
|
3037
|
+
var m = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3042
3038
|
if (m.err)
|
|
3043
3039
|
return m;
|
|
3044
|
-
h =
|
|
3040
|
+
h = p(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3045
3041
|
} else
|
|
3046
3042
|
break;
|
|
3047
3043
|
}
|
|
3048
3044
|
if (l.has(u))
|
|
3049
|
-
return this.error(r === "select" ?
|
|
3045
|
+
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3050
3046
|
u === "other" && (a = !0), this.bumpSpace();
|
|
3051
|
-
var
|
|
3047
|
+
var d = this.clonePosition();
|
|
3052
3048
|
if (!this.bumpIf("{"))
|
|
3053
|
-
return this.error(r === "select" ?
|
|
3049
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
|
|
3054
3050
|
var f = this.parseMessage(t + 1, r, n);
|
|
3055
3051
|
if (f.err)
|
|
3056
3052
|
return f;
|
|
3057
|
-
var _ = this.tryParseArgumentClose(
|
|
3053
|
+
var _ = this.tryParseArgumentClose(d);
|
|
3058
3054
|
if (_.err)
|
|
3059
3055
|
return _;
|
|
3060
3056
|
o.push([
|
|
3061
3057
|
u,
|
|
3062
3058
|
{
|
|
3063
3059
|
value: f.val,
|
|
3064
|
-
location:
|
|
3060
|
+
location: p(d, this.clonePosition())
|
|
3065
3061
|
}
|
|
3066
3062
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3067
3063
|
}
|
|
3068
|
-
return o.length === 0 ? this.error(r === "select" ?
|
|
3064
|
+
return o.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3069
3065
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3070
3066
|
var n = 1, i = this.clonePosition();
|
|
3071
3067
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3076,8 +3072,8 @@ var Pn = (
|
|
|
3076
3072
|
else
|
|
3077
3073
|
break;
|
|
3078
3074
|
}
|
|
3079
|
-
var l =
|
|
3080
|
-
return s ? (a *= n,
|
|
3075
|
+
var l = p(i, this.clonePosition());
|
|
3076
|
+
return s ? (a *= n, wn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3081
3077
|
}, e.prototype.offset = function() {
|
|
3082
3078
|
return this.position.offset;
|
|
3083
3079
|
}, e.prototype.isEOF = function() {
|
|
@@ -3143,47 +3139,47 @@ var Pn = (
|
|
|
3143
3139
|
}, e;
|
|
3144
3140
|
}()
|
|
3145
3141
|
);
|
|
3146
|
-
function
|
|
3142
|
+
function Fe(e) {
|
|
3147
3143
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3148
3144
|
}
|
|
3149
|
-
function
|
|
3150
|
-
return
|
|
3145
|
+
function Pn(e) {
|
|
3146
|
+
return Fe(e) || e === 47;
|
|
3151
3147
|
}
|
|
3152
|
-
function
|
|
3148
|
+
function Ln(e) {
|
|
3153
3149
|
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;
|
|
3154
3150
|
}
|
|
3155
3151
|
function Zt(e) {
|
|
3156
3152
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3157
3153
|
}
|
|
3158
|
-
function
|
|
3154
|
+
function Nn(e) {
|
|
3159
3155
|
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;
|
|
3160
3156
|
}
|
|
3161
|
-
function
|
|
3157
|
+
function je(e) {
|
|
3162
3158
|
e.forEach(function(t) {
|
|
3163
3159
|
if (delete t.location, Ut(t) || Dt(t))
|
|
3164
3160
|
for (var r in t.options)
|
|
3165
|
-
delete t.options[r].location,
|
|
3161
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3166
3162
|
else
|
|
3167
|
-
Mt(t) && Ft(t.style) || ($t(t) || Rt(t)) &&
|
|
3163
|
+
Mt(t) && Ft(t.style) || ($t(t) || Rt(t)) && Re(t.style) ? delete t.style.location : Gt(t) && je(t.children);
|
|
3168
3164
|
});
|
|
3169
3165
|
}
|
|
3170
|
-
function
|
|
3171
|
-
t === void 0 && (t = {}), t =
|
|
3172
|
-
var r = new
|
|
3166
|
+
function In(e, t) {
|
|
3167
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3168
|
+
var r = new On(e, t).parse();
|
|
3173
3169
|
if (r.err) {
|
|
3174
|
-
var n = SyntaxError(
|
|
3170
|
+
var n = SyntaxError(b[r.err.kind]);
|
|
3175
3171
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3176
3172
|
}
|
|
3177
|
-
return t != null && t.captureLocation ||
|
|
3173
|
+
return t != null && t.captureLocation || je(r.val), r.val;
|
|
3178
3174
|
}
|
|
3179
|
-
var
|
|
3175
|
+
var k;
|
|
3180
3176
|
(function(e) {
|
|
3181
3177
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3182
|
-
})(
|
|
3183
|
-
var
|
|
3178
|
+
})(k || (k = {}));
|
|
3179
|
+
var _e = (
|
|
3184
3180
|
/** @class */
|
|
3185
3181
|
function(e) {
|
|
3186
|
-
|
|
3182
|
+
ge(t, e);
|
|
3187
3183
|
function t(r, n, i) {
|
|
3188
3184
|
var s = e.call(this, r) || this;
|
|
3189
3185
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3195,48 +3191,48 @@ var Ee = (
|
|
|
3195
3191
|
), ct = (
|
|
3196
3192
|
/** @class */
|
|
3197
3193
|
function(e) {
|
|
3198
|
-
|
|
3194
|
+
ge(t, e);
|
|
3199
3195
|
function t(r, n, i, s) {
|
|
3200
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3196
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), k.INVALID_VALUE, s) || this;
|
|
3201
3197
|
}
|
|
3202
3198
|
return t;
|
|
3203
|
-
}(
|
|
3204
|
-
),
|
|
3199
|
+
}(_e)
|
|
3200
|
+
), Mn = (
|
|
3205
3201
|
/** @class */
|
|
3206
3202
|
function(e) {
|
|
3207
|
-
|
|
3203
|
+
ge(t, e);
|
|
3208
3204
|
function t(r, n, i) {
|
|
3209
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3205
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), k.INVALID_VALUE, i) || this;
|
|
3210
3206
|
}
|
|
3211
3207
|
return t;
|
|
3212
|
-
}(
|
|
3213
|
-
),
|
|
3208
|
+
}(_e)
|
|
3209
|
+
), $n = (
|
|
3214
3210
|
/** @class */
|
|
3215
3211
|
function(e) {
|
|
3216
|
-
|
|
3212
|
+
ge(t, e);
|
|
3217
3213
|
function t(r, n) {
|
|
3218
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3214
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), k.MISSING_VALUE, n) || this;
|
|
3219
3215
|
}
|
|
3220
3216
|
return t;
|
|
3221
|
-
}(
|
|
3222
|
-
),
|
|
3217
|
+
}(_e)
|
|
3218
|
+
), E;
|
|
3223
3219
|
(function(e) {
|
|
3224
3220
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3225
|
-
})(
|
|
3226
|
-
function
|
|
3221
|
+
})(E || (E = {}));
|
|
3222
|
+
function Rn(e) {
|
|
3227
3223
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3228
3224
|
var n = t[t.length - 1];
|
|
3229
|
-
return !n || n.type !==
|
|
3225
|
+
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3230
3226
|
}, []);
|
|
3231
3227
|
}
|
|
3232
|
-
function
|
|
3228
|
+
function Un(e) {
|
|
3233
3229
|
return typeof e == "function";
|
|
3234
3230
|
}
|
|
3235
|
-
function
|
|
3231
|
+
function le(e, t, r, n, i, s, a) {
|
|
3236
3232
|
if (e.length === 1 && st(e[0]))
|
|
3237
3233
|
return [
|
|
3238
3234
|
{
|
|
3239
|
-
type:
|
|
3235
|
+
type: E.literal,
|
|
3240
3236
|
value: e[0].value
|
|
3241
3237
|
}
|
|
3242
3238
|
];
|
|
@@ -3244,64 +3240,64 @@ function fe(e, t, r, n, i, s, a) {
|
|
|
3244
3240
|
var h = u[l];
|
|
3245
3241
|
if (st(h)) {
|
|
3246
3242
|
o.push({
|
|
3247
|
-
type:
|
|
3243
|
+
type: E.literal,
|
|
3248
3244
|
value: h.value
|
|
3249
3245
|
});
|
|
3250
3246
|
continue;
|
|
3251
3247
|
}
|
|
3252
|
-
if (
|
|
3248
|
+
if (on(h)) {
|
|
3253
3249
|
typeof s == "number" && o.push({
|
|
3254
|
-
type:
|
|
3250
|
+
type: E.literal,
|
|
3255
3251
|
value: r.getNumberFormat(t).format(s)
|
|
3256
3252
|
});
|
|
3257
3253
|
continue;
|
|
3258
3254
|
}
|
|
3259
3255
|
var c = h.value;
|
|
3260
3256
|
if (!(i && c in i))
|
|
3261
|
-
throw new
|
|
3257
|
+
throw new $n(c, a);
|
|
3262
3258
|
var m = i[c];
|
|
3263
|
-
if (
|
|
3259
|
+
if (sn(h)) {
|
|
3264
3260
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), o.push({
|
|
3265
|
-
type: typeof m == "string" ?
|
|
3261
|
+
type: typeof m == "string" ? E.literal : E.object,
|
|
3266
3262
|
value: m
|
|
3267
3263
|
});
|
|
3268
3264
|
continue;
|
|
3269
3265
|
}
|
|
3270
3266
|
if ($t(h)) {
|
|
3271
|
-
var
|
|
3267
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Re(h.style) ? h.style.parsedOptions : void 0;
|
|
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 (Rt(h)) {
|
|
3279
|
-
var
|
|
3275
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Re(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3280
3276
|
o.push({
|
|
3281
|
-
type:
|
|
3282
|
-
value: r.getDateTimeFormat(t,
|
|
3277
|
+
type: E.literal,
|
|
3278
|
+
value: r.getDateTimeFormat(t, d).format(m)
|
|
3283
3279
|
});
|
|
3284
3280
|
continue;
|
|
3285
3281
|
}
|
|
3286
3282
|
if (Mt(h)) {
|
|
3287
|
-
var
|
|
3288
|
-
|
|
3289
|
-
type:
|
|
3290
|
-
value: r.getNumberFormat(t,
|
|
3283
|
+
var d = typeof h.style == "string" ? n.number[h.style] : Ft(h.style) ? h.style.parsedOptions : void 0;
|
|
3284
|
+
d && d.scale && (m = m * (d.scale || 1)), o.push({
|
|
3285
|
+
type: E.literal,
|
|
3286
|
+
value: r.getNumberFormat(t, d).format(m)
|
|
3291
3287
|
});
|
|
3292
3288
|
continue;
|
|
3293
3289
|
}
|
|
3294
3290
|
if (Gt(h)) {
|
|
3295
3291
|
var f = h.children, _ = h.value, v = i[_];
|
|
3296
|
-
if (!
|
|
3297
|
-
throw new
|
|
3298
|
-
var
|
|
3299
|
-
return
|
|
3292
|
+
if (!Un(v))
|
|
3293
|
+
throw new Mn(_, "function", a);
|
|
3294
|
+
var A = le(f, t, r, n, i, s), C = v(A.map(function(S) {
|
|
3295
|
+
return S.value;
|
|
3300
3296
|
}));
|
|
3301
|
-
Array.isArray(C) || (C = [C]), o.push.apply(o, C.map(function(
|
|
3297
|
+
Array.isArray(C) || (C = [C]), o.push.apply(o, C.map(function(S) {
|
|
3302
3298
|
return {
|
|
3303
|
-
type: typeof
|
|
3304
|
-
value:
|
|
3299
|
+
type: typeof S == "string" ? E.literal : E.object,
|
|
3300
|
+
value: S
|
|
3305
3301
|
};
|
|
3306
3302
|
}));
|
|
3307
3303
|
}
|
|
@@ -3309,38 +3305,38 @@ function fe(e, t, r, n, i, s, a) {
|
|
|
3309
3305
|
var H = h.options[m] || h.options.other;
|
|
3310
3306
|
if (!H)
|
|
3311
3307
|
throw new ct(h.value, m, Object.keys(h.options), a);
|
|
3312
|
-
o.push.apply(o,
|
|
3308
|
+
o.push.apply(o, le(H.value, t, r, n, i));
|
|
3313
3309
|
continue;
|
|
3314
3310
|
}
|
|
3315
3311
|
if (Dt(h)) {
|
|
3316
3312
|
var H = h.options["=".concat(m)];
|
|
3317
3313
|
if (!H) {
|
|
3318
3314
|
if (!Intl.PluralRules)
|
|
3319
|
-
throw new
|
|
3315
|
+
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3320
3316
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3321
|
-
`,
|
|
3322
|
-
var
|
|
3323
|
-
H = h.options[
|
|
3317
|
+
`, k.MISSING_INTL_API, a);
|
|
3318
|
+
var N = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3319
|
+
H = h.options[N] || h.options.other;
|
|
3324
3320
|
}
|
|
3325
3321
|
if (!H)
|
|
3326
3322
|
throw new ct(h.value, m, Object.keys(h.options), a);
|
|
3327
|
-
o.push.apply(o,
|
|
3323
|
+
o.push.apply(o, le(H.value, t, r, n, i, m - (h.offset || 0)));
|
|
3328
3324
|
continue;
|
|
3329
3325
|
}
|
|
3330
3326
|
}
|
|
3331
|
-
return
|
|
3327
|
+
return Rn(o);
|
|
3332
3328
|
}
|
|
3333
|
-
function
|
|
3334
|
-
return t ?
|
|
3335
|
-
return r[n] =
|
|
3329
|
+
function Dn(e, t) {
|
|
3330
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3331
|
+
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3336
3332
|
}, {})) : e;
|
|
3337
3333
|
}
|
|
3338
|
-
function
|
|
3334
|
+
function Gn(e, t) {
|
|
3339
3335
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3340
|
-
return r[n] =
|
|
3341
|
-
},
|
|
3336
|
+
return r[n] = Dn(e[n], t[n]), r;
|
|
3337
|
+
}, y({}, e)) : e;
|
|
3342
3338
|
}
|
|
3343
|
-
function
|
|
3339
|
+
function Pe(e) {
|
|
3344
3340
|
return {
|
|
3345
3341
|
create: function() {
|
|
3346
3342
|
return {
|
|
@@ -3354,35 +3350,35 @@ function Ne(e) {
|
|
|
3354
3350
|
}
|
|
3355
3351
|
};
|
|
3356
3352
|
}
|
|
3357
|
-
function
|
|
3353
|
+
function Fn(e) {
|
|
3358
3354
|
return e === void 0 && (e = {
|
|
3359
3355
|
number: {},
|
|
3360
3356
|
dateTime: {},
|
|
3361
3357
|
pluralRules: {}
|
|
3362
3358
|
}), {
|
|
3363
|
-
getNumberFormat:
|
|
3359
|
+
getNumberFormat: Ae(function() {
|
|
3364
3360
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3365
3361
|
r[n] = arguments[n];
|
|
3366
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3362
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3367
3363
|
}, {
|
|
3368
|
-
cache:
|
|
3369
|
-
strategy:
|
|
3364
|
+
cache: Pe(e.number),
|
|
3365
|
+
strategy: Ce.variadic
|
|
3370
3366
|
}),
|
|
3371
|
-
getDateTimeFormat:
|
|
3367
|
+
getDateTimeFormat: Ae(function() {
|
|
3372
3368
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3373
3369
|
r[n] = arguments[n];
|
|
3374
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3370
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3375
3371
|
}, {
|
|
3376
|
-
cache:
|
|
3377
|
-
strategy:
|
|
3372
|
+
cache: Pe(e.dateTime),
|
|
3373
|
+
strategy: Ce.variadic
|
|
3378
3374
|
}),
|
|
3379
|
-
getPluralRules:
|
|
3375
|
+
getPluralRules: Ae(function() {
|
|
3380
3376
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3381
3377
|
r[n] = arguments[n];
|
|
3382
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3378
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Se([void 0], r, !1)))();
|
|
3383
3379
|
}, {
|
|
3384
|
-
cache:
|
|
3385
|
-
strategy:
|
|
3380
|
+
cache: Pe(e.pluralRules),
|
|
3381
|
+
strategy: Ce.variadic
|
|
3386
3382
|
})
|
|
3387
3383
|
};
|
|
3388
3384
|
}
|
|
@@ -3401,11 +3397,11 @@ var Qt = (
|
|
|
3401
3397
|
if (u.length === 1)
|
|
3402
3398
|
return u[0].value;
|
|
3403
3399
|
var h = u.reduce(function(c, m) {
|
|
3404
|
-
return !c.length || m.type !==
|
|
3400
|
+
return !c.length || m.type !== E.literal || typeof c[c.length - 1] != "string" ? c.push(m.value) : c[c.length - 1] += m.value, c;
|
|
3405
3401
|
}, []);
|
|
3406
3402
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3407
3403
|
}, this.formatToParts = function(l) {
|
|
3408
|
-
return
|
|
3404
|
+
return le(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3409
3405
|
}, this.resolvedOptions = function() {
|
|
3410
3406
|
var l;
|
|
3411
3407
|
return {
|
|
@@ -3419,12 +3415,12 @@ var Qt = (
|
|
|
3419
3415
|
var a = i || {};
|
|
3420
3416
|
a.formatters;
|
|
3421
3417
|
var o = Jr(a, ["formatters"]);
|
|
3422
|
-
this.ast = e.__parse(t,
|
|
3418
|
+
this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
|
|
3423
3419
|
} else
|
|
3424
3420
|
this.ast = t;
|
|
3425
3421
|
if (!Array.isArray(this.ast))
|
|
3426
3422
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3427
|
-
this.formats =
|
|
3423
|
+
this.formats = Gn(e.formats, n), this.formatters = i && i.formatters || Fn(this.formatterCache);
|
|
3428
3424
|
}
|
|
3429
3425
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3430
3426
|
get: function() {
|
|
@@ -3437,7 +3433,7 @@ var Qt = (
|
|
|
3437
3433
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3438
3434
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3439
3435
|
}
|
|
3440
|
-
}, e.__parse =
|
|
3436
|
+
}, e.__parse = In, e.formats = {
|
|
3441
3437
|
number: {
|
|
3442
3438
|
integer: {
|
|
3443
3439
|
maximumFractionDigits: 0
|
|
@@ -3498,7 +3494,7 @@ var Qt = (
|
|
|
3498
3494
|
}, e;
|
|
3499
3495
|
}()
|
|
3500
3496
|
);
|
|
3501
|
-
function
|
|
3497
|
+
function jn(e, t) {
|
|
3502
3498
|
if (t == null)
|
|
3503
3499
|
return;
|
|
3504
3500
|
if (t in e)
|
|
@@ -3519,36 +3515,36 @@ function kn(e, t) {
|
|
|
3519
3515
|
n = void 0;
|
|
3520
3516
|
return n;
|
|
3521
3517
|
}
|
|
3522
|
-
const
|
|
3518
|
+
const O = {}, kn = (e, t, r) => r && (t in O || (O[t] = {}), e in O[t] || (O[t][e] = r), r), qt = (e, t) => {
|
|
3523
3519
|
if (t == null)
|
|
3524
3520
|
return;
|
|
3525
|
-
if (t in
|
|
3526
|
-
return
|
|
3527
|
-
const r =
|
|
3521
|
+
if (t in O && e in O[t])
|
|
3522
|
+
return O[t][e];
|
|
3523
|
+
const r = ne(t);
|
|
3528
3524
|
for (let n = 0; n < r.length; n++) {
|
|
3529
|
-
const i = r[n], s =
|
|
3525
|
+
const i = r[n], s = Xn(i, e);
|
|
3530
3526
|
if (s)
|
|
3531
|
-
return
|
|
3527
|
+
return kn(e, t, s);
|
|
3532
3528
|
}
|
|
3533
3529
|
};
|
|
3534
3530
|
let Ze;
|
|
3535
|
-
const
|
|
3536
|
-
function
|
|
3531
|
+
const re = pe({});
|
|
3532
|
+
function Vn(e) {
|
|
3537
3533
|
return Ze[e] || null;
|
|
3538
3534
|
}
|
|
3539
3535
|
function Jt(e) {
|
|
3540
3536
|
return e in Ze;
|
|
3541
3537
|
}
|
|
3542
|
-
function
|
|
3538
|
+
function Xn(e, t) {
|
|
3543
3539
|
if (!Jt(e))
|
|
3544
3540
|
return null;
|
|
3545
|
-
const r =
|
|
3546
|
-
return
|
|
3541
|
+
const r = Vn(e);
|
|
3542
|
+
return jn(r, t);
|
|
3547
3543
|
}
|
|
3548
|
-
function
|
|
3544
|
+
function zn(e) {
|
|
3549
3545
|
if (e == null)
|
|
3550
3546
|
return;
|
|
3551
|
-
const t =
|
|
3547
|
+
const t = ne(e);
|
|
3552
3548
|
for (let r = 0; r < t.length; r++) {
|
|
3553
3549
|
const n = t[r];
|
|
3554
3550
|
if (Jt(n))
|
|
@@ -3556,64 +3552,64 @@ function Wn(e) {
|
|
|
3556
3552
|
}
|
|
3557
3553
|
}
|
|
3558
3554
|
function Yt(e, ...t) {
|
|
3559
|
-
delete
|
|
3555
|
+
delete O[e], re.update((r) => (r[e] = qr.all([r[e] || {}, ...t]), r));
|
|
3560
3556
|
}
|
|
3561
|
-
|
|
3562
|
-
[
|
|
3557
|
+
W(
|
|
3558
|
+
[re],
|
|
3563
3559
|
([e]) => Object.keys(e)
|
|
3564
3560
|
);
|
|
3565
|
-
|
|
3566
|
-
const
|
|
3567
|
-
function
|
|
3568
|
-
|
|
3561
|
+
re.subscribe((e) => Ze = e);
|
|
3562
|
+
const fe = {};
|
|
3563
|
+
function Wn(e, t) {
|
|
3564
|
+
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
3569
3565
|
}
|
|
3570
3566
|
function Kt(e) {
|
|
3571
|
-
return
|
|
3567
|
+
return fe[e];
|
|
3572
3568
|
}
|
|
3573
|
-
function
|
|
3574
|
-
return
|
|
3569
|
+
function Zn(e) {
|
|
3570
|
+
return ne(e).map((t) => {
|
|
3575
3571
|
const r = Kt(t);
|
|
3576
3572
|
return [t, r ? [...r] : []];
|
|
3577
3573
|
}).filter(([, t]) => t.length > 0);
|
|
3578
3574
|
}
|
|
3579
|
-
function
|
|
3580
|
-
return e == null ? !1 :
|
|
3575
|
+
function me(e) {
|
|
3576
|
+
return e == null ? !1 : ne(e).some(
|
|
3581
3577
|
(t) => {
|
|
3582
3578
|
var r;
|
|
3583
3579
|
return (r = Kt(t)) == null ? void 0 : r.size;
|
|
3584
3580
|
}
|
|
3585
3581
|
);
|
|
3586
3582
|
}
|
|
3587
|
-
function
|
|
3583
|
+
function Qn(e, t) {
|
|
3588
3584
|
return Promise.all(
|
|
3589
|
-
t.map((n) => (
|
|
3585
|
+
t.map((n) => (Wn(e, n), n().then((i) => i.default || i)))
|
|
3590
3586
|
).then((n) => Yt(e, ...n));
|
|
3591
3587
|
}
|
|
3592
|
-
const
|
|
3588
|
+
const Q = {};
|
|
3593
3589
|
function er(e) {
|
|
3594
|
-
if (!
|
|
3595
|
-
return e in
|
|
3596
|
-
const t =
|
|
3597
|
-
return
|
|
3590
|
+
if (!me(e))
|
|
3591
|
+
return e in Q ? Q[e] : Promise.resolve();
|
|
3592
|
+
const t = Zn(e);
|
|
3593
|
+
return Q[e] = Promise.all(
|
|
3598
3594
|
t.map(
|
|
3599
|
-
([r, n]) =>
|
|
3595
|
+
([r, n]) => Qn(r, n)
|
|
3600
3596
|
)
|
|
3601
3597
|
).then(() => {
|
|
3602
|
-
if (
|
|
3598
|
+
if (me(e))
|
|
3603
3599
|
return er(e);
|
|
3604
|
-
delete
|
|
3605
|
-
}),
|
|
3600
|
+
delete Q[e];
|
|
3601
|
+
}), Q[e];
|
|
3606
3602
|
}
|
|
3607
|
-
var mt = Object.getOwnPropertySymbols,
|
|
3603
|
+
var mt = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, Yn = (e, t) => {
|
|
3608
3604
|
var r = {};
|
|
3609
3605
|
for (var n in e)
|
|
3610
|
-
|
|
3606
|
+
qn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3611
3607
|
if (e != null && mt)
|
|
3612
3608
|
for (var n of mt(e))
|
|
3613
|
-
t.indexOf(n) < 0 &&
|
|
3609
|
+
t.indexOf(n) < 0 && Jn.call(e, n) && (r[n] = e[n]);
|
|
3614
3610
|
return r;
|
|
3615
3611
|
};
|
|
3616
|
-
const
|
|
3612
|
+
const Kn = {
|
|
3617
3613
|
number: {
|
|
3618
3614
|
scientific: { notation: "scientific" },
|
|
3619
3615
|
engineering: { notation: "engineering" },
|
|
@@ -3643,28 +3639,28 @@ const ei = {
|
|
|
3643
3639
|
}
|
|
3644
3640
|
}
|
|
3645
3641
|
};
|
|
3646
|
-
function
|
|
3642
|
+
function ei({ locale: e, id: t }) {
|
|
3647
3643
|
console.warn(
|
|
3648
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3644
|
+
`[svelte-i18n] The message "${t}" was not found in "${ne(
|
|
3649
3645
|
e
|
|
3650
|
-
).join('", "')}".${
|
|
3646
|
+
).join('", "')}".${me(L()) ? `
|
|
3651
3647
|
|
|
3652
3648
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3653
3649
|
);
|
|
3654
3650
|
}
|
|
3655
|
-
const
|
|
3651
|
+
const ti = {
|
|
3656
3652
|
fallbackLocale: null,
|
|
3657
3653
|
loadingDelay: 200,
|
|
3658
|
-
formats:
|
|
3654
|
+
formats: Kn,
|
|
3659
3655
|
warnOnMissingMessages: !0,
|
|
3660
3656
|
handleMissingMessage: void 0,
|
|
3661
3657
|
ignoreTag: !0
|
|
3662
|
-
},
|
|
3663
|
-
function
|
|
3664
|
-
return
|
|
3658
|
+
}, q = ti;
|
|
3659
|
+
function V() {
|
|
3660
|
+
return q;
|
|
3665
3661
|
}
|
|
3666
|
-
function
|
|
3667
|
-
const t = e, { formats: r } = t, n =
|
|
3662
|
+
function ri(e) {
|
|
3663
|
+
const t = e, { formats: r } = t, n = Yn(t, ["formats"]);
|
|
3668
3664
|
let i = e.fallbackLocale;
|
|
3669
3665
|
if (e.initialLocale)
|
|
3670
3666
|
try {
|
|
@@ -3674,134 +3670,134 @@ function ni(e) {
|
|
|
3674
3670
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3675
3671
|
);
|
|
3676
3672
|
}
|
|
3677
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3673
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = ei : console.warn(
|
|
3678
3674
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3679
|
-
)), Object.assign(
|
|
3675
|
+
)), 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);
|
|
3680
3676
|
}
|
|
3681
|
-
const
|
|
3682
|
-
var
|
|
3677
|
+
const Le = pe(!1);
|
|
3678
|
+
var ni = Object.defineProperty, ii = Object.defineProperties, si = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, oi = Object.prototype.hasOwnProperty, ai = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ui = (e, t) => {
|
|
3683
3679
|
for (var r in t || (t = {}))
|
|
3684
|
-
|
|
3685
|
-
if (
|
|
3686
|
-
for (var r of
|
|
3687
|
-
|
|
3680
|
+
oi.call(t, r) && bt(e, r, t[r]);
|
|
3681
|
+
if (dt)
|
|
3682
|
+
for (var r of dt(t))
|
|
3683
|
+
ai.call(t, r) && bt(e, r, t[r]);
|
|
3688
3684
|
return e;
|
|
3689
|
-
},
|
|
3690
|
-
let
|
|
3691
|
-
const
|
|
3692
|
-
function
|
|
3685
|
+
}, hi = (e, t) => ii(e, si(t));
|
|
3686
|
+
let ke;
|
|
3687
|
+
const de = pe(null);
|
|
3688
|
+
function pt(e) {
|
|
3693
3689
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3694
3690
|
}
|
|
3695
|
-
function
|
|
3696
|
-
const r =
|
|
3697
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3691
|
+
function ne(e, t = V().fallbackLocale) {
|
|
3692
|
+
const r = pt(e);
|
|
3693
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...pt(t)])] : r;
|
|
3698
3694
|
}
|
|
3699
|
-
function
|
|
3700
|
-
return
|
|
3695
|
+
function L() {
|
|
3696
|
+
return ke != null ? ke : void 0;
|
|
3701
3697
|
}
|
|
3702
|
-
|
|
3703
|
-
|
|
3698
|
+
de.subscribe((e) => {
|
|
3699
|
+
ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3704
3700
|
});
|
|
3705
|
-
const
|
|
3706
|
-
if (e &&
|
|
3707
|
-
const { loadingDelay: t } =
|
|
3701
|
+
const li = (e) => {
|
|
3702
|
+
if (e && zn(e) && me(e)) {
|
|
3703
|
+
const { loadingDelay: t } = V();
|
|
3708
3704
|
let r;
|
|
3709
|
-
return typeof window != "undefined" &&
|
|
3710
|
-
() =>
|
|
3705
|
+
return typeof window != "undefined" && L() != null && t ? r = window.setTimeout(
|
|
3706
|
+
() => Le.set(!0),
|
|
3711
3707
|
t
|
|
3712
|
-
) :
|
|
3713
|
-
|
|
3708
|
+
) : Le.set(!0), er(e).then(() => {
|
|
3709
|
+
de.set(e);
|
|
3714
3710
|
}).finally(() => {
|
|
3715
|
-
clearTimeout(r),
|
|
3711
|
+
clearTimeout(r), Le.set(!1);
|
|
3716
3712
|
});
|
|
3717
3713
|
}
|
|
3718
|
-
return
|
|
3719
|
-
},
|
|
3720
|
-
set:
|
|
3721
|
-
}),
|
|
3714
|
+
return de.set(e);
|
|
3715
|
+
}, M = hi(ui({}, de), {
|
|
3716
|
+
set: li
|
|
3717
|
+
}), ye = (e) => {
|
|
3722
3718
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3723
3719
|
return (n) => {
|
|
3724
3720
|
const i = JSON.stringify(n);
|
|
3725
3721
|
return i in t ? t[i] : t[i] = e(n);
|
|
3726
3722
|
};
|
|
3727
3723
|
};
|
|
3728
|
-
var
|
|
3724
|
+
var fi = Object.defineProperty, be = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
3729
3725
|
for (var r in t || (t = {}))
|
|
3730
3726
|
tr.call(t, r) && gt(e, r, t[r]);
|
|
3731
|
-
if (
|
|
3732
|
-
for (var r of
|
|
3727
|
+
if (be)
|
|
3728
|
+
for (var r of be(t))
|
|
3733
3729
|
rr.call(t, r) && gt(e, r, t[r]);
|
|
3734
3730
|
return e;
|
|
3735
|
-
},
|
|
3731
|
+
}, Z = (e, t) => {
|
|
3736
3732
|
var r = {};
|
|
3737
3733
|
for (var n in e)
|
|
3738
3734
|
tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3739
|
-
if (e != null &&
|
|
3740
|
-
for (var n of
|
|
3735
|
+
if (e != null && be)
|
|
3736
|
+
for (var n of be(e))
|
|
3741
3737
|
t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
|
|
3742
3738
|
return r;
|
|
3743
3739
|
};
|
|
3744
|
-
const
|
|
3745
|
-
const { formats: r } =
|
|
3740
|
+
const ee = (e, t) => {
|
|
3741
|
+
const { formats: r } = V();
|
|
3746
3742
|
if (e in r && t in r[e])
|
|
3747
3743
|
return r[e][t];
|
|
3748
3744
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3749
|
-
},
|
|
3745
|
+
}, ci = ye(
|
|
3750
3746
|
(e) => {
|
|
3751
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3747
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3752
3748
|
if (r == null)
|
|
3753
3749
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3754
|
-
return n && (i =
|
|
3750
|
+
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
3755
3751
|
}
|
|
3756
|
-
),
|
|
3752
|
+
), mi = ye(
|
|
3757
3753
|
(e) => {
|
|
3758
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3754
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3759
3755
|
if (r == null)
|
|
3760
3756
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3761
|
-
return n ? i =
|
|
3757
|
+
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3762
3758
|
}
|
|
3763
|
-
), di =
|
|
3759
|
+
), di = ye(
|
|
3764
3760
|
(e) => {
|
|
3765
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3761
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3766
3762
|
if (r == null)
|
|
3767
3763
|
throw new Error(
|
|
3768
3764
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3769
3765
|
);
|
|
3770
|
-
return n ? i =
|
|
3766
|
+
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3771
3767
|
}
|
|
3772
3768
|
), bi = (e = {}) => {
|
|
3773
3769
|
var t = e, {
|
|
3774
|
-
locale: r =
|
|
3775
|
-
} = t, n =
|
|
3770
|
+
locale: r = L()
|
|
3771
|
+
} = t, n = Z(t, [
|
|
3776
3772
|
"locale"
|
|
3777
3773
|
]);
|
|
3778
|
-
return
|
|
3779
|
-
},
|
|
3774
|
+
return ci(Qe({ locale: r }, n));
|
|
3775
|
+
}, pi = (e = {}) => {
|
|
3780
3776
|
var t = e, {
|
|
3781
|
-
locale: r =
|
|
3782
|
-
} = t, n =
|
|
3777
|
+
locale: r = L()
|
|
3778
|
+
} = t, n = Z(t, [
|
|
3783
3779
|
"locale"
|
|
3784
3780
|
]);
|
|
3785
|
-
return
|
|
3786
|
-
},
|
|
3781
|
+
return mi(Qe({ locale: r }, n));
|
|
3782
|
+
}, gi = (e = {}) => {
|
|
3787
3783
|
var t = e, {
|
|
3788
|
-
locale: r =
|
|
3789
|
-
} = t, n =
|
|
3784
|
+
locale: r = L()
|
|
3785
|
+
} = t, n = Z(t, [
|
|
3790
3786
|
"locale"
|
|
3791
3787
|
]);
|
|
3792
3788
|
return di(Qe({ locale: r }, n));
|
|
3793
|
-
},
|
|
3789
|
+
}, _i = ye(
|
|
3794
3790
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3795
|
-
(e, t =
|
|
3796
|
-
ignoreTag:
|
|
3791
|
+
(e, t = L()) => new Qt(e, t, V().formats, {
|
|
3792
|
+
ignoreTag: V().ignoreTag
|
|
3797
3793
|
})
|
|
3798
|
-
),
|
|
3794
|
+
), yi = (e, t = {}) => {
|
|
3799
3795
|
var r, n, i, s;
|
|
3800
3796
|
let a = t;
|
|
3801
3797
|
typeof e == "object" && (a = e, e = a.id);
|
|
3802
3798
|
const {
|
|
3803
3799
|
values: o,
|
|
3804
|
-
locale: l =
|
|
3800
|
+
locale: l = L(),
|
|
3805
3801
|
default: u
|
|
3806
3802
|
} = a;
|
|
3807
3803
|
if (l == null)
|
|
@@ -3810,7 +3806,7 @@ const te = (e, t) => {
|
|
|
3810
3806
|
);
|
|
3811
3807
|
let h = qt(e, l);
|
|
3812
3808
|
if (!h)
|
|
3813
|
-
h = (s = (i = (n = (r =
|
|
3809
|
+
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;
|
|
3814
3810
|
else if (typeof h != "string")
|
|
3815
3811
|
return console.warn(
|
|
3816
3812
|
`[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.`
|
|
@@ -3819,7 +3815,7 @@ const te = (e, t) => {
|
|
|
3819
3815
|
return h;
|
|
3820
3816
|
let c = h;
|
|
3821
3817
|
try {
|
|
3822
|
-
c =
|
|
3818
|
+
c = _i(h, l).format(o);
|
|
3823
3819
|
} catch (m) {
|
|
3824
3820
|
m instanceof Error && console.warn(
|
|
3825
3821
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3827,18 +3823,18 @@ const te = (e, t) => {
|
|
|
3827
3823
|
);
|
|
3828
3824
|
}
|
|
3829
3825
|
return c;
|
|
3830
|
-
}, xi = (e, t) =>
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
function
|
|
3826
|
+
}, xi = (e, t) => gi(t).format(e), Ei = (e, t) => pi(t).format(e), vi = (e, t) => bi(t).format(e), Hi = (e, t = L()) => qt(e, t), Bi = W([M, re], () => yi);
|
|
3827
|
+
W([M], () => xi);
|
|
3828
|
+
W([M], () => Ei);
|
|
3829
|
+
W([M], () => vi);
|
|
3830
|
+
W([M, re], () => Hi);
|
|
3831
|
+
function Ti(e, t) {
|
|
3836
3832
|
if (e) {
|
|
3837
3833
|
const r = document.createElement("style");
|
|
3838
3834
|
r.innerHTML = t, e.appendChild(r);
|
|
3839
3835
|
}
|
|
3840
3836
|
}
|
|
3841
|
-
function
|
|
3837
|
+
function wi(e, t) {
|
|
3842
3838
|
if (!e || !t)
|
|
3843
3839
|
return;
|
|
3844
3840
|
const r = new URL(t);
|
|
@@ -3849,7 +3845,7 @@ function Si(e, t) {
|
|
|
3849
3845
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3850
3846
|
});
|
|
3851
3847
|
}
|
|
3852
|
-
function
|
|
3848
|
+
function Si(e, t, r) {
|
|
3853
3849
|
if (window.emMessageBus) {
|
|
3854
3850
|
const n = document.createElement("style");
|
|
3855
3851
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3860,10 +3856,10 @@ function Ai(e, t, r) {
|
|
|
3860
3856
|
function _t(e, t) {
|
|
3861
3857
|
Yt(e, t);
|
|
3862
3858
|
}
|
|
3863
|
-
function
|
|
3864
|
-
|
|
3859
|
+
function Ai(e) {
|
|
3860
|
+
ri({
|
|
3865
3861
|
fallbackLocale: "en"
|
|
3866
|
-
}),
|
|
3862
|
+
}), M.set(e);
|
|
3867
3863
|
}
|
|
3868
3864
|
const yt = {
|
|
3869
3865
|
en: {
|
|
@@ -3882,17 +3878,17 @@ const yt = {
|
|
|
3882
3878
|
}
|
|
3883
3879
|
};
|
|
3884
3880
|
function Ci(e) {
|
|
3885
|
-
|
|
3881
|
+
dr(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)}");
|
|
3886
3882
|
}
|
|
3887
|
-
const
|
|
3883
|
+
const Oi = (e) => ({}), xt = (e) => ({}), Pi = (e) => ({}), Et = (e) => ({}), Li = (e) => ({}), vt = (e) => ({});
|
|
3888
3884
|
function Ht(e) {
|
|
3889
3885
|
let t, r, n;
|
|
3890
3886
|
return {
|
|
3891
3887
|
c() {
|
|
3892
|
-
t =
|
|
3888
|
+
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>', z(t, "class", "CashierHeaderLeftButton");
|
|
3893
3889
|
},
|
|
3894
3890
|
m(i, s) {
|
|
3895
|
-
|
|
3891
|
+
I(i, t, s), r || (n = Ot(
|
|
3896
3892
|
t,
|
|
3897
3893
|
"click",
|
|
3898
3894
|
/*back*/
|
|
@@ -3901,32 +3897,32 @@ function Ht(e) {
|
|
|
3901
3897
|
},
|
|
3902
3898
|
p: T,
|
|
3903
3899
|
d(i) {
|
|
3904
|
-
i &&
|
|
3900
|
+
i && P(t), r = !1, n();
|
|
3905
3901
|
}
|
|
3906
3902
|
};
|
|
3907
3903
|
}
|
|
3908
|
-
function
|
|
3904
|
+
function Ni(e) {
|
|
3909
3905
|
let t, r = (
|
|
3910
3906
|
/*backButton*/
|
|
3911
3907
|
e[1] && Ht(e)
|
|
3912
3908
|
);
|
|
3913
3909
|
return {
|
|
3914
3910
|
c() {
|
|
3915
|
-
r && r.c(), t =
|
|
3911
|
+
r && r.c(), t = Ct();
|
|
3916
3912
|
},
|
|
3917
3913
|
m(n, i) {
|
|
3918
|
-
r && r.m(n, i),
|
|
3914
|
+
r && r.m(n, i), I(n, t, i);
|
|
3919
3915
|
},
|
|
3920
3916
|
p(n, i) {
|
|
3921
3917
|
/*backButton*/
|
|
3922
3918
|
n[1] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3923
3919
|
},
|
|
3924
3920
|
d(n) {
|
|
3925
|
-
n &&
|
|
3921
|
+
n && P(t), r && r.d(n);
|
|
3926
3922
|
}
|
|
3927
3923
|
};
|
|
3928
3924
|
}
|
|
3929
|
-
function
|
|
3925
|
+
function Ii(e) {
|
|
3930
3926
|
let t, r = (
|
|
3931
3927
|
/*$_*/
|
|
3932
3928
|
e[4](
|
|
@@ -3936,10 +3932,10 @@ function Mi(e) {
|
|
|
3936
3932
|
), n;
|
|
3937
3933
|
return {
|
|
3938
3934
|
c() {
|
|
3939
|
-
t =
|
|
3935
|
+
t = X("span"), n = Xe(r), z(t, "class", "CashierHeaderTitle");
|
|
3940
3936
|
},
|
|
3941
3937
|
m(i, s) {
|
|
3942
|
-
|
|
3938
|
+
I(i, t, s), ce(t, n);
|
|
3943
3939
|
},
|
|
3944
3940
|
p(i, s) {
|
|
3945
3941
|
s & /*$_, titleText*/
|
|
@@ -3950,7 +3946,7 @@ function Mi(e) {
|
|
|
3950
3946
|
) + "") && _r(n, r);
|
|
3951
3947
|
},
|
|
3952
3948
|
d(i) {
|
|
3953
|
-
i &&
|
|
3949
|
+
i && P(t);
|
|
3954
3950
|
}
|
|
3955
3951
|
};
|
|
3956
3952
|
}
|
|
@@ -3958,10 +3954,10 @@ function Bt(e) {
|
|
|
3958
3954
|
let t, r, n;
|
|
3959
3955
|
return {
|
|
3960
3956
|
c() {
|
|
3961
|
-
t =
|
|
3957
|
+
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>', z(t, "class", "CashierHeaderRightButton");
|
|
3962
3958
|
},
|
|
3963
3959
|
m(i, s) {
|
|
3964
|
-
|
|
3960
|
+
I(i, t, s), r || (n = Ot(
|
|
3965
3961
|
t,
|
|
3966
3962
|
"click",
|
|
3967
3963
|
/*close*/
|
|
@@ -3970,143 +3966,143 @@ function Bt(e) {
|
|
|
3970
3966
|
},
|
|
3971
3967
|
p: T,
|
|
3972
3968
|
d(i) {
|
|
3973
|
-
i &&
|
|
3969
|
+
i && P(t), r = !1, n();
|
|
3974
3970
|
}
|
|
3975
3971
|
};
|
|
3976
3972
|
}
|
|
3977
|
-
function
|
|
3973
|
+
function Mi(e) {
|
|
3978
3974
|
let t, r = (
|
|
3979
3975
|
/*closeButton*/
|
|
3980
3976
|
e[3] && Bt(e)
|
|
3981
3977
|
);
|
|
3982
3978
|
return {
|
|
3983
3979
|
c() {
|
|
3984
|
-
r && r.c(), t =
|
|
3980
|
+
r && r.c(), t = Ct();
|
|
3985
3981
|
},
|
|
3986
3982
|
m(n, i) {
|
|
3987
|
-
r && r.m(n, i),
|
|
3983
|
+
r && r.m(n, i), I(n, t, i);
|
|
3988
3984
|
},
|
|
3989
3985
|
p(n, i) {
|
|
3990
3986
|
/*closeButton*/
|
|
3991
3987
|
n[3] ? r ? r.p(n, i) : (r = Bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3992
3988
|
},
|
|
3993
3989
|
d(n) {
|
|
3994
|
-
n &&
|
|
3990
|
+
n && P(t), r && r.d(n);
|
|
3995
3991
|
}
|
|
3996
3992
|
};
|
|
3997
3993
|
}
|
|
3998
|
-
function
|
|
3994
|
+
function $i(e) {
|
|
3999
3995
|
let t, r, n, i;
|
|
4000
3996
|
const s = (
|
|
4001
3997
|
/*#slots*/
|
|
4002
3998
|
e[16].leftButton
|
|
4003
|
-
), a =
|
|
3999
|
+
), a = Ee(
|
|
4004
4000
|
s,
|
|
4005
4001
|
e,
|
|
4006
4002
|
/*$$scope*/
|
|
4007
4003
|
e[15],
|
|
4008
4004
|
vt
|
|
4009
|
-
), o = a ||
|
|
4005
|
+
), o = a || Ni(e), l = (
|
|
4010
4006
|
/*#slots*/
|
|
4011
4007
|
e[16].title
|
|
4012
|
-
), u =
|
|
4008
|
+
), u = Ee(
|
|
4013
4009
|
l,
|
|
4014
4010
|
e,
|
|
4015
4011
|
/*$$scope*/
|
|
4016
4012
|
e[15],
|
|
4017
|
-
|
|
4018
|
-
), h = u ||
|
|
4013
|
+
Et
|
|
4014
|
+
), h = u || Ii(e), c = (
|
|
4019
4015
|
/*#slots*/
|
|
4020
4016
|
e[16].rightButton
|
|
4021
|
-
), m =
|
|
4017
|
+
), m = Ee(
|
|
4022
4018
|
c,
|
|
4023
4019
|
e,
|
|
4024
4020
|
/*$$scope*/
|
|
4025
4021
|
e[15],
|
|
4026
|
-
|
|
4027
|
-
),
|
|
4022
|
+
xt
|
|
4023
|
+
), d = m || Mi(e);
|
|
4028
4024
|
return {
|
|
4029
4025
|
c() {
|
|
4030
|
-
t =
|
|
4026
|
+
t = X("div"), o && o.c(), r = rt(), h && h.c(), n = rt(), d && d.c(), z(t, "class", "CashierHeader");
|
|
4031
4027
|
},
|
|
4032
4028
|
m(f, _) {
|
|
4033
|
-
|
|
4029
|
+
I(f, t, _), o && o.m(t, null), ce(t, r), h && h.m(t, null), ce(t, n), d && d.m(t, null), e[17](t), i = !0;
|
|
4034
4030
|
},
|
|
4035
4031
|
p(f, [_]) {
|
|
4036
4032
|
a ? a.p && (!i || _ & /*$$scope*/
|
|
4037
|
-
32768) &&
|
|
4033
|
+
32768) && He(
|
|
4038
4034
|
a,
|
|
4039
4035
|
s,
|
|
4040
4036
|
f,
|
|
4041
4037
|
/*$$scope*/
|
|
4042
4038
|
f[15],
|
|
4043
|
-
i ?
|
|
4039
|
+
i ? ve(
|
|
4044
4040
|
s,
|
|
4045
4041
|
/*$$scope*/
|
|
4046
4042
|
f[15],
|
|
4047
4043
|
_,
|
|
4048
|
-
|
|
4049
|
-
) :
|
|
4044
|
+
Li
|
|
4045
|
+
) : Be(
|
|
4050
4046
|
/*$$scope*/
|
|
4051
4047
|
f[15]
|
|
4052
4048
|
),
|
|
4053
4049
|
vt
|
|
4054
4050
|
) : o && o.p && (!i || _ & /*backButton*/
|
|
4055
4051
|
2) && o.p(f, i ? _ : -1), u ? u.p && (!i || _ & /*$$scope*/
|
|
4056
|
-
32768) &&
|
|
4052
|
+
32768) && He(
|
|
4057
4053
|
u,
|
|
4058
4054
|
l,
|
|
4059
4055
|
f,
|
|
4060
4056
|
/*$$scope*/
|
|
4061
4057
|
f[15],
|
|
4062
|
-
i ?
|
|
4058
|
+
i ? ve(
|
|
4063
4059
|
l,
|
|
4064
4060
|
/*$$scope*/
|
|
4065
4061
|
f[15],
|
|
4066
4062
|
_,
|
|
4067
|
-
|
|
4068
|
-
) :
|
|
4063
|
+
Pi
|
|
4064
|
+
) : Be(
|
|
4069
4065
|
/*$$scope*/
|
|
4070
4066
|
f[15]
|
|
4071
4067
|
),
|
|
4072
|
-
|
|
4068
|
+
Et
|
|
4073
4069
|
) : h && h.p && (!i || _ & /*$_, titleText*/
|
|
4074
4070
|
20) && h.p(f, i ? _ : -1), m ? m.p && (!i || _ & /*$$scope*/
|
|
4075
|
-
32768) &&
|
|
4071
|
+
32768) && He(
|
|
4076
4072
|
m,
|
|
4077
4073
|
c,
|
|
4078
4074
|
f,
|
|
4079
4075
|
/*$$scope*/
|
|
4080
4076
|
f[15],
|
|
4081
|
-
i ?
|
|
4077
|
+
i ? ve(
|
|
4082
4078
|
c,
|
|
4083
4079
|
/*$$scope*/
|
|
4084
4080
|
f[15],
|
|
4085
4081
|
_,
|
|
4086
|
-
|
|
4087
|
-
) :
|
|
4082
|
+
Oi
|
|
4083
|
+
) : Be(
|
|
4088
4084
|
/*$$scope*/
|
|
4089
4085
|
f[15]
|
|
4090
4086
|
),
|
|
4091
|
-
|
|
4092
|
-
) :
|
|
4093
|
-
8) &&
|
|
4087
|
+
xt
|
|
4088
|
+
) : d && d.p && (!i || _ & /*closeButton*/
|
|
4089
|
+
8) && d.p(f, i ? _ : -1);
|
|
4094
4090
|
},
|
|
4095
4091
|
i(f) {
|
|
4096
|
-
i || (
|
|
4092
|
+
i || (ue(o, f), ue(h, f), ue(d, f), i = !0);
|
|
4097
4093
|
},
|
|
4098
4094
|
o(f) {
|
|
4099
|
-
|
|
4095
|
+
we(o, f), we(h, f), we(d, f), i = !1;
|
|
4100
4096
|
},
|
|
4101
4097
|
d(f) {
|
|
4102
|
-
f &&
|
|
4098
|
+
f && P(t), o && o.d(f), h && h.d(f), d && d.d(f), e[17](null);
|
|
4103
4099
|
}
|
|
4104
4100
|
};
|
|
4105
4101
|
}
|
|
4106
|
-
function
|
|
4102
|
+
function Ri(e, t, r) {
|
|
4107
4103
|
let n;
|
|
4108
|
-
mr(e,
|
|
4109
|
-
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:
|
|
4104
|
+
mr(e, Bi, (g) => r(4, n = g));
|
|
4105
|
+
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;
|
|
4110
4106
|
const C = () => {
|
|
4111
4107
|
fetch(l).then((g) => g.json()).then((g) => {
|
|
4112
4108
|
Object.keys(g).forEach((qe) => {
|
|
@@ -4120,45 +4116,45 @@ function Ui(e, t, r) {
|
|
|
4120
4116
|
_t(g, yt[g]);
|
|
4121
4117
|
});
|
|
4122
4118
|
const H = () => {
|
|
4123
|
-
|
|
4124
|
-
},
|
|
4119
|
+
Ai(c);
|
|
4120
|
+
}, N = () => {
|
|
4125
4121
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4126
|
-
},
|
|
4122
|
+
}, S = () => {
|
|
4127
4123
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4128
|
-
},
|
|
4124
|
+
}, $ = () => {
|
|
4129
4125
|
r(1, _ = !!u && u !== "false");
|
|
4130
|
-
},
|
|
4131
|
-
r(3,
|
|
4126
|
+
}, ie = () => {
|
|
4127
|
+
r(3, A = !!m && m !== "false");
|
|
4132
4128
|
}, ir = () => {
|
|
4133
4129
|
r(2, v = h || "header.general");
|
|
4134
4130
|
};
|
|
4135
|
-
|
|
4131
|
+
Er(() => () => {
|
|
4136
4132
|
});
|
|
4137
4133
|
function sr(g) {
|
|
4138
|
-
|
|
4134
|
+
Ne[g ? "unshift" : "push"](() => {
|
|
4139
4135
|
f = g, r(0, f);
|
|
4140
4136
|
});
|
|
4141
4137
|
}
|
|
4142
4138
|
return e.$$set = (g) => {
|
|
4143
|
-
"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,
|
|
4139
|
+
"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);
|
|
4144
4140
|
}, e.$$.update = () => {
|
|
4145
4141
|
e.$$.dirty & /*lang*/
|
|
4146
4142
|
4096 && c && H(), e.$$.dirty & /*lang, title*/
|
|
4147
4143
|
6144 && c && h && ir(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4148
|
-
129 && a && f &&
|
|
4149
|
-
257 && o && f &&
|
|
4150
|
-
16385 &&
|
|
4144
|
+
129 && a && f && Ti(f, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4145
|
+
257 && o && f && wi(f, o), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4146
|
+
16385 && d && f && Si(f, `${d}.Style`), e.$$.dirty & /*lang, translationurl*/
|
|
4151
4147
|
4608 && c && l && C(), e.$$.dirty & /*showbackbutton*/
|
|
4152
|
-
1024 && u &&
|
|
4153
|
-
8192 && m &&
|
|
4148
|
+
1024 && u && $(), e.$$.dirty & /*showclosebutton*/
|
|
4149
|
+
8192 && m && ie();
|
|
4154
4150
|
}, [
|
|
4155
4151
|
f,
|
|
4156
4152
|
_,
|
|
4157
4153
|
v,
|
|
4158
|
-
O,
|
|
4159
|
-
n,
|
|
4160
|
-
I,
|
|
4161
4154
|
A,
|
|
4155
|
+
n,
|
|
4156
|
+
N,
|
|
4157
|
+
S,
|
|
4162
4158
|
a,
|
|
4163
4159
|
o,
|
|
4164
4160
|
l,
|
|
@@ -4166,7 +4162,7 @@ function Ui(e, t, r) {
|
|
|
4166
4162
|
h,
|
|
4167
4163
|
c,
|
|
4168
4164
|
m,
|
|
4169
|
-
|
|
4165
|
+
d,
|
|
4170
4166
|
s,
|
|
4171
4167
|
i,
|
|
4172
4168
|
sr
|
|
@@ -4174,11 +4170,11 @@ function Ui(e, t, r) {
|
|
|
4174
4170
|
}
|
|
4175
4171
|
class nr extends Lr {
|
|
4176
4172
|
constructor(t) {
|
|
4177
|
-
super(),
|
|
4173
|
+
super(), Or(
|
|
4178
4174
|
this,
|
|
4179
4175
|
t,
|
|
4180
|
-
Ui,
|
|
4181
4176
|
Ri,
|
|
4177
|
+
$i,
|
|
4182
4178
|
wt,
|
|
4183
4179
|
{
|
|
4184
4180
|
clientstyling: 7,
|
|
@@ -4243,34 +4239,34 @@ class nr extends Lr {
|
|
|
4243
4239
|
}
|
|
4244
4240
|
}
|
|
4245
4241
|
Pr(nr, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4246
|
-
const
|
|
4242
|
+
const Fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4247
4243
|
__proto__: null,
|
|
4248
4244
|
default: nr
|
|
4249
4245
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4250
4246
|
export {
|
|
4251
|
-
$,
|
|
4252
|
-
|
|
4247
|
+
M as $,
|
|
4248
|
+
Fi as C,
|
|
4253
4249
|
Lr as S,
|
|
4254
4250
|
Yt as a,
|
|
4255
|
-
|
|
4251
|
+
Or as b,
|
|
4256
4252
|
Pr as c,
|
|
4257
|
-
|
|
4258
|
-
|
|
4253
|
+
dr as d,
|
|
4254
|
+
X as e,
|
|
4259
4255
|
w as f,
|
|
4260
|
-
|
|
4256
|
+
rt as g,
|
|
4261
4257
|
Gi as h,
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4258
|
+
ri as i,
|
|
4259
|
+
Di as j,
|
|
4260
|
+
z as k,
|
|
4261
|
+
I as l,
|
|
4262
|
+
ce as m,
|
|
4263
|
+
Ot as n,
|
|
4264
|
+
T as o,
|
|
4265
|
+
P as p,
|
|
4266
|
+
Er as q,
|
|
4267
|
+
Si as r,
|
|
4272
4268
|
wt as s,
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4269
|
+
Ne as t,
|
|
4270
|
+
Ti as u,
|
|
4271
|
+
wi as v
|
|
4276
4272
|
};
|