@everymatrix/cashier-iframe-redirect 1.76.0 → 1.76.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-BEHMHJL-.cjs +18 -0
- package/components/{CashierHeader-C9SV7Lec.js → CashierHeader-D-MmeP6r.js} +763 -765
- package/components/{CashierHeader-BEUVhLlY.js → CashierHeader-HKFANYfC.js} +878 -880
- package/components/{CashierIframeRedirect-DGnGEphO.js → CashierIframeRedirect-BLi8tzxq.js} +11 -11
- package/components/{CashierIframeRedirect-gnpyQW9X.js → CashierIframeRedirect-CT7z_d8o.js} +13 -13
- package/components/{CashierIframeRedirect-D2g4LpDZ.cjs → CashierIframeRedirect-CYsB2y28.cjs} +1 -1
- package/components/{CashierSpinner-C1vsS0r_.js → CashierSpinner-BQHFuc1O.js} +15 -15
- package/components/{CashierSpinner-DAYJJPhO.js → CashierSpinner-BSiTSZKj.js} +15 -15
- package/components/{CashierSpinner-DOg7wLjc.cjs → CashierSpinner-i5zpty0N.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-C4g3EugX.cjs +0 -5
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var sr = Object.defineProperty, or = Object.defineProperties;
|
|
2
|
+
var ar = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var qe = Object.getOwnPropertySymbols;
|
|
4
|
+
var ur = Object.prototype.hasOwnProperty, hr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var xe = (e, t, r) => t in e ? sr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
ur.call(t, r) && xe(e, r, t[r]);
|
|
8
|
+
if (qe)
|
|
9
|
+
for (var r of qe(t))
|
|
10
|
+
hr.call(t, r) && xe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var B = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, Ye = (e, t) => or(e, ar(t));
|
|
13
|
+
var B = (e, t, r) => (xe(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var Ke = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
a(r.next(l));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, o = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
a(r.throw(l));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, o);
|
|
28
|
+
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function T() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function lr(e, t) {
|
|
33
33
|
for (const r in t)
|
|
34
34
|
e[r] = t[r];
|
|
35
35
|
return (
|
|
@@ -37,29 +37,29 @@ function fr(e, t) {
|
|
|
37
37
|
e
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Bt(e) {
|
|
41
41
|
return e();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function et() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
e.forEach(
|
|
46
|
+
function te(e) {
|
|
47
|
+
e.forEach(Bt);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function Ve(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Tt(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
|
-
function
|
|
59
|
+
function fr(e) {
|
|
60
60
|
return Object.keys(e).length === 0;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function wt(e, ...t) {
|
|
63
63
|
if (e == null) {
|
|
64
64
|
for (const n of t)
|
|
65
65
|
n(void 0);
|
|
@@ -68,40 +68,40 @@ function St(e, ...t) {
|
|
|
68
68
|
const r = e.subscribe(...t);
|
|
69
69
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
e.$$.on_destroy.push(
|
|
71
|
+
function cr(e, t, r) {
|
|
72
|
+
e.$$.on_destroy.push(wt(t, r));
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Ee(e, t, r, n) {
|
|
75
75
|
if (e) {
|
|
76
|
-
const i =
|
|
76
|
+
const i = St(e, t, r, n);
|
|
77
77
|
return e[0](i);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return e[1] && n ?
|
|
80
|
+
function St(e, t, r, n) {
|
|
81
|
+
return e[1] && n ? lr(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)
|
|
87
87
|
return i;
|
|
88
88
|
if (typeof i == "object") {
|
|
89
|
-
const s = [],
|
|
90
|
-
for (let
|
|
91
|
-
s[
|
|
89
|
+
const s = [], o = Math.max(t.dirty.length, i.length);
|
|
90
|
+
for (let a = 0; a < o; a += 1)
|
|
91
|
+
s[a] = t.dirty[a] | i[a];
|
|
92
92
|
return s;
|
|
93
93
|
}
|
|
94
94
|
return t.dirty | i;
|
|
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
|
-
const
|
|
101
|
-
e.p(
|
|
100
|
+
const o = St(t, r, n, s);
|
|
101
|
+
e.p(o, 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,13 +110,13 @@ 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
|
|
116
|
+
function mr(e, t, r) {
|
|
117
117
|
const n = dr(e);
|
|
118
118
|
if (!n.getElementById(t)) {
|
|
119
|
-
const i =
|
|
119
|
+
const i = X("style");
|
|
120
120
|
i.id = t, i.textContent = r, br(n, i);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
@@ -131,48 +131,48 @@ function dr(e) {
|
|
|
131
131
|
) : e.ownerDocument;
|
|
132
132
|
}
|
|
133
133
|
function br(e, t) {
|
|
134
|
-
return
|
|
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
|
-
function
|
|
153
|
-
return
|
|
152
|
+
function tt() {
|
|
153
|
+
return Xe(" ");
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
return
|
|
155
|
+
function At() {
|
|
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
|
-
function
|
|
168
|
+
function pr(e) {
|
|
169
169
|
return Array.from(e.childNodes);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function gr(e, t) {
|
|
172
172
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
173
173
|
t);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function _r(e) {
|
|
176
176
|
const t = {};
|
|
177
177
|
return e.childNodes.forEach(
|
|
178
178
|
/** @param {Element} node */
|
|
@@ -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 yr() {
|
|
189
|
+
if (!Y)
|
|
190
190
|
throw new Error("Function called outside component initialization");
|
|
191
|
-
return
|
|
191
|
+
return Y;
|
|
192
192
|
}
|
|
193
193
|
function xr(e) {
|
|
194
|
-
|
|
194
|
+
yr().$$.on_mount.push(e);
|
|
195
195
|
}
|
|
196
|
-
const
|
|
197
|
-
let
|
|
198
|
-
const
|
|
199
|
-
let
|
|
200
|
-
function
|
|
201
|
-
|
|
196
|
+
const D = [], Ne = [];
|
|
197
|
+
let G = [];
|
|
198
|
+
const rt = [], Er = /* @__PURE__ */ Promise.resolve();
|
|
199
|
+
let Ie = !1;
|
|
200
|
+
function vr() {
|
|
201
|
+
Ie || (Ie = !0, Er.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), Hr(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 (
|
|
229
|
-
for (;
|
|
230
|
-
|
|
231
|
-
|
|
227
|
+
G.length = 0;
|
|
228
|
+
} while (D.length);
|
|
229
|
+
for (; rt.length; )
|
|
230
|
+
rt.pop()();
|
|
231
|
+
Ie = !1, Te.clear(), J(e);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function Hr(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
|
-
function
|
|
240
|
+
function Br(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
|
|
245
|
-
let
|
|
246
|
-
function
|
|
247
|
-
e && e.i && (
|
|
244
|
+
const ae = /* @__PURE__ */ new Set();
|
|
245
|
+
let Tr;
|
|
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), Tr.c.push(() => {
|
|
254
|
+
ae.delete(e);
|
|
255
255
|
}), e.o(t);
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function wr(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(
|
|
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(Bt).filter(Ve);
|
|
262
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : te(s), e.$$.on_mount = [];
|
|
263
|
+
}), i.forEach(Me);
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function Sr(e, t) {
|
|
266
266
|
const r = e.$$;
|
|
267
|
-
r.fragment !== null && (
|
|
267
|
+
r.fragment !== null && (Br(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 Ar(e, t) {
|
|
270
|
+
e.$$.dirty[0] === -1 && (D.push(e), vr(), 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, o = null, a = [-1]) {
|
|
273
|
+
const l = Y;
|
|
274
|
+
J(e);
|
|
275
275
|
const u = e.$$ = {
|
|
276
276
|
fragment: null,
|
|
277
277
|
ctx: [],
|
|
@@ -279,7 +279,7 @@ function Pr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
279
279
|
props: s,
|
|
280
280
|
update: T,
|
|
281
281
|
not_equal: i,
|
|
282
|
-
bound:
|
|
282
|
+
bound: et(),
|
|
283
283
|
// lifecycle
|
|
284
284
|
on_mount: [],
|
|
285
285
|
on_destroy: [],
|
|
@@ -288,25 +288,25 @@ function Pr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
288
288
|
after_update: [],
|
|
289
289
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
290
290
|
// everything else
|
|
291
|
-
callbacks:
|
|
292
|
-
dirty:
|
|
291
|
+
callbacks: et(),
|
|
292
|
+
dirty: a,
|
|
293
293
|
skip_bound: !1,
|
|
294
294
|
root: t.target || l.$$.root
|
|
295
295
|
};
|
|
296
|
-
|
|
296
|
+
o && o(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 && Ar(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
|
-
const c =
|
|
304
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
303
|
+
const c = pr(t.target);
|
|
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), wr(e, t.target, t.anchor), w();
|
|
308
308
|
}
|
|
309
|
-
|
|
309
|
+
J(l);
|
|
310
310
|
}
|
|
311
311
|
let Ct;
|
|
312
312
|
typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
@@ -346,42 +346,42 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
connectedCallback() {
|
|
349
|
-
return
|
|
349
|
+
return Ke(this, null, function* () {
|
|
350
350
|
if (this.$$cn = !0, !this.$$c) {
|
|
351
351
|
let t = function(s) {
|
|
352
352
|
return () => {
|
|
353
|
-
let
|
|
353
|
+
let o;
|
|
354
354
|
return {
|
|
355
355
|
c: function() {
|
|
356
|
-
|
|
356
|
+
o = X("slot"), s !== "default" && z(o, "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, o, h);
|
|
364
364
|
},
|
|
365
365
|
d: function(u) {
|
|
366
|
-
u &&
|
|
366
|
+
u && P(o);
|
|
367
367
|
}
|
|
368
368
|
};
|
|
369
369
|
};
|
|
370
370
|
};
|
|
371
371
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
372
372
|
return;
|
|
373
|
-
const r = {}, n =
|
|
373
|
+
const r = {}, n = _r(this);
|
|
374
374
|
for (const s of this.$$s)
|
|
375
375
|
s in n && (r[s] = [t(s)]);
|
|
376
376
|
for (const s of this.attributes) {
|
|
377
|
-
const
|
|
378
|
-
|
|
377
|
+
const o = this.$$g_p(s.name);
|
|
378
|
+
o in this.$$d || (this.$$d[o] = he(o, 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]);
|
|
382
382
|
this.$$c = new this.$$ctor({
|
|
383
383
|
target: this.shadowRoot || this,
|
|
384
|
-
props:
|
|
384
|
+
props: Ye(Je({}, this.$$d), {
|
|
385
385
|
$$slots: r,
|
|
386
386
|
$$scope: {
|
|
387
387
|
ctx: []
|
|
@@ -392,21 +392,21 @@ typeof HTMLElement == "function" && (Ct = 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
|
|
395
|
+
const o = he(
|
|
396
396
|
s,
|
|
397
397
|
this.$$d[s],
|
|
398
398
|
this.$$p_d,
|
|
399
399
|
"toAttribute"
|
|
400
400
|
);
|
|
401
|
-
|
|
401
|
+
o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
|
|
402
402
|
}
|
|
403
403
|
this.$$r = !1;
|
|
404
404
|
};
|
|
405
405
|
this.$$c.$$.after_update.push(i), i();
|
|
406
406
|
for (const s in this.$$l)
|
|
407
|
-
for (const
|
|
408
|
-
const
|
|
409
|
-
this.$$l_u.set(
|
|
407
|
+
for (const o of this.$$l[s]) {
|
|
408
|
+
const a = this.$$c.$on(s, o);
|
|
409
|
+
this.$$l_u.set(o, a);
|
|
410
410
|
}
|
|
411
411
|
this.$$l = {};
|
|
412
412
|
}
|
|
@@ -416,7 +416,7 @@ typeof HTMLElement == "function" && (Ct = 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" && (Ct = 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])
|
|
@@ -460,37 +460,37 @@ function le(e, t, r, n) {
|
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
462
|
function Cr(e, t, r, n, i, s) {
|
|
463
|
-
let
|
|
463
|
+
let o = class extends Ct {
|
|
464
464
|
constructor() {
|
|
465
465
|
super(e, r, i), this.$$p_d = t;
|
|
466
466
|
}
|
|
467
467
|
static get observedAttributes() {
|
|
468
468
|
return Object.keys(t).map(
|
|
469
|
-
(
|
|
469
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
470
470
|
);
|
|
471
471
|
}
|
|
472
472
|
};
|
|
473
|
-
return Object.keys(t).forEach((
|
|
474
|
-
Object.defineProperty(
|
|
473
|
+
return Object.keys(t).forEach((a) => {
|
|
474
|
+
Object.defineProperty(o.prototype, a, {
|
|
475
475
|
get() {
|
|
476
|
-
return this.$$c &&
|
|
476
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
477
477
|
},
|
|
478
478
|
set(l) {
|
|
479
479
|
var u;
|
|
480
|
-
l =
|
|
480
|
+
l = he(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
481
481
|
}
|
|
482
482
|
});
|
|
483
|
-
}), n.forEach((
|
|
484
|
-
Object.defineProperty(
|
|
483
|
+
}), n.forEach((a) => {
|
|
484
|
+
Object.defineProperty(o.prototype, a, {
|
|
485
485
|
get() {
|
|
486
486
|
var l;
|
|
487
|
-
return (l = this.$$c) == null ? void 0 : l[
|
|
487
|
+
return (l = this.$$c) == null ? void 0 : l[a];
|
|
488
488
|
}
|
|
489
489
|
});
|
|
490
490
|
}), e.element = /** @type {any} */
|
|
491
|
-
|
|
491
|
+
o, o;
|
|
492
492
|
}
|
|
493
|
-
class
|
|
493
|
+
class Pr {
|
|
494
494
|
constructor() {
|
|
495
495
|
/**
|
|
496
496
|
* ### PRIVATE API
|
|
@@ -511,7 +511,7 @@ class Lr {
|
|
|
511
511
|
}
|
|
512
512
|
/** @returns {void} */
|
|
513
513
|
$destroy() {
|
|
514
|
-
|
|
514
|
+
Sr(this, 1), this.$destroy = T;
|
|
515
515
|
}
|
|
516
516
|
/**
|
|
517
517
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -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), () => {
|
|
@@ -533,49 +533,49 @@ class Lr {
|
|
|
533
533
|
* @returns {void}
|
|
534
534
|
*/
|
|
535
535
|
$set(t) {
|
|
536
|
-
this.$$set && !
|
|
536
|
+
this.$$set && !fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
|
-
const
|
|
540
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
541
|
-
const
|
|
542
|
-
function
|
|
539
|
+
const Lr = "4";
|
|
540
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Lr);
|
|
541
|
+
const U = [];
|
|
542
|
+
function Nr(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
|
-
function i(
|
|
551
|
-
if (
|
|
552
|
-
const l = !
|
|
550
|
+
function i(a) {
|
|
551
|
+
if (Tt(e, a) && (e = a, r)) {
|
|
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
|
}
|
|
562
|
-
function s(
|
|
563
|
-
i(
|
|
562
|
+
function s(a) {
|
|
563
|
+
i(a(e));
|
|
564
564
|
}
|
|
565
|
-
function a
|
|
566
|
-
const u = [
|
|
567
|
-
return n.add(u), n.size === 1 && (r = t(i, s) || T),
|
|
565
|
+
function o(a, l = T) {
|
|
566
|
+
const u = [a, l];
|
|
567
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || T), a(e), () => {
|
|
568
568
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
569
569
|
};
|
|
570
570
|
}
|
|
571
|
-
return { set: i, update: s, subscribe:
|
|
571
|
+
return { set: i, update: s, subscribe: o };
|
|
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");
|
|
577
577
|
const s = t.length < 2;
|
|
578
|
-
return
|
|
578
|
+
return Nr(r, (o, a) => {
|
|
579
579
|
let l = !1;
|
|
580
580
|
const u = [];
|
|
581
581
|
let h = 0, c = T;
|
|
@@ -583,10 +583,10 @@ function Z(e, t, r) {
|
|
|
583
583
|
if (h)
|
|
584
584
|
return;
|
|
585
585
|
c();
|
|
586
|
-
const f = t(n ? u[0] : u,
|
|
587
|
-
s ?
|
|
588
|
-
},
|
|
589
|
-
(f, _) =>
|
|
586
|
+
const f = t(n ? u[0] : u, o, a);
|
|
587
|
+
s ? o(f) : c = Ve(f) ? f : T;
|
|
588
|
+
}, d = i.map(
|
|
589
|
+
(f, _) => wt(
|
|
590
590
|
f,
|
|
591
591
|
(v) => {
|
|
592
592
|
u[_] = v, h &= ~(1 << _), l && m();
|
|
@@ -597,112 +597,126 @@ 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
|
}
|
|
604
|
-
function
|
|
605
|
-
return e
|
|
604
|
+
function Ir(e) {
|
|
605
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
606
606
|
}
|
|
607
|
-
var
|
|
608
|
-
return
|
|
607
|
+
var Mr = function(t) {
|
|
608
|
+
return $r(t) && !Rr(t);
|
|
609
609
|
};
|
|
610
|
-
function
|
|
610
|
+
function $r(e) {
|
|
611
611
|
return !!e && typeof e == "object";
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Rr(e) {
|
|
614
614
|
var t = Object.prototype.toString.call(e);
|
|
615
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
615
|
+
return t === "[object RegExp]" || t === "[object Date]" || Gr(e);
|
|
616
616
|
}
|
|
617
|
-
var
|
|
618
|
-
function
|
|
619
|
-
return e.$$typeof ===
|
|
617
|
+
var Ur = typeof Symbol == "function" && Symbol.for, Dr = Ur ? Symbol.for("react.element") : 60103;
|
|
618
|
+
function Gr(e) {
|
|
619
|
+
return e.$$typeof === Dr;
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function Fr(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(Fr(e), e, t) : e;
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function jr(e, t, r) {
|
|
628
628
|
return e.concat(t).map(function(n) {
|
|
629
|
-
return
|
|
629
|
+
return K(n, r);
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function kr(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
|
-
function
|
|
638
|
+
function Vr(e) {
|
|
639
639
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
640
640
|
return Object.propertyIsEnumerable.call(e, t);
|
|
641
641
|
}) : [];
|
|
642
642
|
}
|
|
643
|
-
function
|
|
644
|
-
return Object.keys(e).concat(
|
|
643
|
+
function nt(e) {
|
|
644
|
+
return Object.keys(e).concat(Vr(e));
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function Pt(e, t) {
|
|
647
647
|
try {
|
|
648
648
|
return t in e;
|
|
649
649
|
} catch (r) {
|
|
650
650
|
return !1;
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
|
-
function
|
|
654
|
-
return
|
|
653
|
+
function Xr(e, t) {
|
|
654
|
+
return Pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function zr(e, t, r) {
|
|
657
657
|
var n = {};
|
|
658
|
-
return r.isMergeableObject(e) &&
|
|
659
|
-
n[i] =
|
|
660
|
-
}),
|
|
661
|
-
|
|
658
|
+
return r.isMergeableObject(e) && nt(e).forEach(function(i) {
|
|
659
|
+
n[i] = K(e[i], r);
|
|
660
|
+
}), nt(t).forEach(function(i) {
|
|
661
|
+
Xr(e, i) || (Pt(e, i) && r.isMergeableObject(t[i]) ? n[i] = kr(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 ||
|
|
664
|
+
function F(e, t, r) {
|
|
665
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || jr, r.isMergeableObject = r.isMergeableObject || Mr, 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) :
|
|
667
|
+
return s ? n ? r.arrayMerge(e, t, r) : zr(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
|
|
677
|
-
const
|
|
678
|
-
|
|
679
|
-
|
|
676
|
+
var Wr = F, Zr = Wr;
|
|
677
|
+
const Qr = /* @__PURE__ */ Ir(Zr);
|
|
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
|
-
function
|
|
719
|
+
function qr(e, t) {
|
|
706
720
|
var r = {};
|
|
707
721
|
for (var n in e)
|
|
708
722
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -711,43 +725,46 @@ 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 : tn, i = t && t.strategy ? t.strategy : Yr;
|
|
722
736
|
return i(e, {
|
|
723
737
|
cache: r,
|
|
724
738
|
serializer: n
|
|
725
739
|
});
|
|
726
740
|
}
|
|
727
|
-
function
|
|
741
|
+
function Jr(e) {
|
|
728
742
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
729
743
|
}
|
|
730
|
-
function
|
|
731
|
-
var i =
|
|
744
|
+
function Lt(e, t, r, n) {
|
|
745
|
+
var i = Jr(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
748
|
function Nt(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
|
}
|
|
741
|
-
function
|
|
742
|
-
var r = e.length === 1 ?
|
|
743
|
-
return
|
|
755
|
+
function Yr(e, t) {
|
|
756
|
+
var r = e.length === 1 ? Lt : Nt;
|
|
757
|
+
return ze(e, this, r, t.cache.create(), t.serializer);
|
|
758
|
+
}
|
|
759
|
+
function Kr(e, t) {
|
|
760
|
+
return ze(e, this, Nt, t.cache.create(), t.serializer);
|
|
744
761
|
}
|
|
745
|
-
function
|
|
746
|
-
return
|
|
762
|
+
function en(e, t) {
|
|
763
|
+
return ze(e, this, Lt, t.cache.create(), t.serializer);
|
|
747
764
|
}
|
|
748
|
-
var
|
|
765
|
+
var tn = function() {
|
|
749
766
|
return JSON.stringify(arguments);
|
|
750
|
-
},
|
|
767
|
+
}, rn = (
|
|
751
768
|
/** @class */
|
|
752
769
|
function() {
|
|
753
770
|
function e() {
|
|
@@ -759,71 +776,62 @@ var rn = function() {
|
|
|
759
776
|
this.cache[t] = r;
|
|
760
777
|
}, e;
|
|
761
778
|
}()
|
|
762
|
-
),
|
|
779
|
+
), nn = {
|
|
763
780
|
create: function() {
|
|
764
|
-
return new
|
|
781
|
+
return new rn();
|
|
765
782
|
}
|
|
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;
|
|
783
|
+
}, Oe = {
|
|
784
|
+
variadic: Kr,
|
|
785
|
+
monadic: en
|
|
786
|
+
}, b;
|
|
779
787
|
(function(e) {
|
|
780
788
|
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
|
|
789
|
+
})(b || (b = {}));
|
|
790
|
+
var x;
|
|
783
791
|
(function(e) {
|
|
784
792
|
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
|
|
793
|
+
})(x || (x = {}));
|
|
794
|
+
var j;
|
|
787
795
|
(function(e) {
|
|
788
796
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
789
|
-
})(
|
|
790
|
-
function
|
|
791
|
-
return e.type ===
|
|
797
|
+
})(j || (j = {}));
|
|
798
|
+
function it(e) {
|
|
799
|
+
return e.type === x.literal;
|
|
792
800
|
}
|
|
793
|
-
function
|
|
794
|
-
return e.type ===
|
|
801
|
+
function sn(e) {
|
|
802
|
+
return e.type === x.argument;
|
|
803
|
+
}
|
|
804
|
+
function It(e) {
|
|
805
|
+
return e.type === x.number;
|
|
795
806
|
}
|
|
796
807
|
function Mt(e) {
|
|
797
|
-
return e.type ===
|
|
808
|
+
return e.type === x.date;
|
|
798
809
|
}
|
|
799
810
|
function $t(e) {
|
|
800
|
-
return e.type ===
|
|
811
|
+
return e.type === x.time;
|
|
801
812
|
}
|
|
802
813
|
function Rt(e) {
|
|
803
|
-
return e.type ===
|
|
814
|
+
return e.type === x.select;
|
|
804
815
|
}
|
|
805
816
|
function Ut(e) {
|
|
806
|
-
return e.type ===
|
|
817
|
+
return e.type === x.plural;
|
|
807
818
|
}
|
|
808
|
-
function
|
|
809
|
-
return e.type ===
|
|
819
|
+
function on(e) {
|
|
820
|
+
return e.type === x.pound;
|
|
810
821
|
}
|
|
811
|
-
function
|
|
812
|
-
return e.type ===
|
|
822
|
+
function Dt(e) {
|
|
823
|
+
return e.type === x.tag;
|
|
813
824
|
}
|
|
814
825
|
function Gt(e) {
|
|
815
|
-
return e.type ===
|
|
826
|
+
return !!(e && typeof e == "object" && e.type === j.number);
|
|
816
827
|
}
|
|
817
|
-
function
|
|
818
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
819
|
-
}
|
|
820
|
-
function De(e) {
|
|
821
|
-
return !!(e && typeof e == "object" && e.type === k.dateTime);
|
|
828
|
+
function Re(e) {
|
|
829
|
+
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
822
830
|
}
|
|
823
|
-
var
|
|
824
|
-
function
|
|
831
|
+
var Ft = /[ \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;
|
|
832
|
+
function un(e) {
|
|
825
833
|
var t = {};
|
|
826
|
-
return e.replace(
|
|
834
|
+
return e.replace(an, function(r) {
|
|
827
835
|
var n = r.length;
|
|
828
836
|
switch (r[0]) {
|
|
829
837
|
case "G":
|
|
@@ -912,46 +920,36 @@ function hn(e) {
|
|
|
912
920
|
return "";
|
|
913
921
|
}), t;
|
|
914
922
|
}
|
|
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) {
|
|
923
|
+
var hn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
924
|
+
function ln(e) {
|
|
927
925
|
if (e.length === 0)
|
|
928
926
|
throw new Error("Number skeleton cannot be empty");
|
|
929
|
-
for (var t = e.split(
|
|
927
|
+
for (var t = e.split(hn).filter(function(m) {
|
|
930
928
|
return m.length > 0;
|
|
931
929
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
932
|
-
var s = i[n],
|
|
933
|
-
if (
|
|
930
|
+
var s = i[n], o = s.split("/");
|
|
931
|
+
if (o.length === 0)
|
|
934
932
|
throw new Error("Invalid number skeleton");
|
|
935
|
-
for (var
|
|
933
|
+
for (var a = o[0], l = o.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
936
934
|
var c = h[u];
|
|
937
935
|
if (c.length === 0)
|
|
938
936
|
throw new Error("Invalid number skeleton");
|
|
939
937
|
}
|
|
940
|
-
r.push({ stem:
|
|
938
|
+
r.push({ stem: a, options: l });
|
|
941
939
|
}
|
|
942
940
|
return r;
|
|
943
941
|
}
|
|
944
|
-
function
|
|
942
|
+
function fn(e) {
|
|
945
943
|
return e.replace(/^(.*?)-/, "");
|
|
946
944
|
}
|
|
947
|
-
var
|
|
948
|
-
function
|
|
945
|
+
var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jt = /^(@+)?(\+|#+)?[rs]?$/g, cn = /(\*)(0+)|(#+)(0+)|(0+)/g, kt = /^(0+)$/;
|
|
946
|
+
function ot(e) {
|
|
949
947
|
var t = {};
|
|
950
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
948
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(jt, function(r, n, i) {
|
|
951
949
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
952
950
|
}), t;
|
|
953
951
|
}
|
|
954
|
-
function
|
|
952
|
+
function Vt(e) {
|
|
955
953
|
switch (e) {
|
|
956
954
|
case "sign-auto":
|
|
957
955
|
return {
|
|
@@ -991,7 +989,7 @@ function Xt(e) {
|
|
|
991
989
|
};
|
|
992
990
|
}
|
|
993
991
|
}
|
|
994
|
-
function
|
|
992
|
+
function mn(e) {
|
|
995
993
|
var t;
|
|
996
994
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
997
995
|
notation: "engineering"
|
|
@@ -999,14 +997,14 @@ function pn(e) {
|
|
|
999
997
|
notation: "scientific"
|
|
1000
998
|
}, e = e.slice(1)), t) {
|
|
1001
999
|
var r = e.slice(0, 2);
|
|
1002
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1000
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !kt.test(e))
|
|
1003
1001
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1004
1002
|
t.minimumIntegerDigits = e.length;
|
|
1005
1003
|
}
|
|
1006
1004
|
return t;
|
|
1007
1005
|
}
|
|
1008
|
-
function
|
|
1009
|
-
var t = {}, r =
|
|
1006
|
+
function at(e) {
|
|
1007
|
+
var t = {}, r = Vt(e);
|
|
1010
1008
|
return r || t;
|
|
1011
1009
|
}
|
|
1012
1010
|
function dn(e) {
|
|
@@ -1033,7 +1031,7 @@ function dn(e) {
|
|
|
1033
1031
|
continue;
|
|
1034
1032
|
case "measure-unit":
|
|
1035
1033
|
case "unit":
|
|
1036
|
-
t.style = "unit", t.unit =
|
|
1034
|
+
t.style = "unit", t.unit = fn(i.options[0]);
|
|
1037
1035
|
continue;
|
|
1038
1036
|
case "compact-short":
|
|
1039
1037
|
case "K":
|
|
@@ -1044,13 +1042,13 @@ function dn(e) {
|
|
|
1044
1042
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1045
1043
|
continue;
|
|
1046
1044
|
case "scientific":
|
|
1047
|
-
t =
|
|
1048
|
-
return
|
|
1045
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1046
|
+
return y(y({}, l), at(u));
|
|
1049
1047
|
}, {}));
|
|
1050
1048
|
continue;
|
|
1051
1049
|
case "engineering":
|
|
1052
|
-
t =
|
|
1053
|
-
return
|
|
1050
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1051
|
+
return y(y({}, l), at(u));
|
|
1054
1052
|
}, {}));
|
|
1055
1053
|
continue;
|
|
1056
1054
|
case "notation-simple":
|
|
@@ -1095,45 +1093,45 @@ function dn(e) {
|
|
|
1095
1093
|
case "integer-width":
|
|
1096
1094
|
if (i.options.length > 1)
|
|
1097
1095
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1098
|
-
i.options[0].replace(
|
|
1096
|
+
i.options[0].replace(cn, function(l, u, h, c, m, d) {
|
|
1099
1097
|
if (u)
|
|
1100
1098
|
t.minimumIntegerDigits = h.length;
|
|
1101
1099
|
else {
|
|
1102
1100
|
if (c && m)
|
|
1103
1101
|
throw new Error("We currently do not support maximum integer digits");
|
|
1104
|
-
if (
|
|
1102
|
+
if (d)
|
|
1105
1103
|
throw new Error("We currently do not support exact integer digits");
|
|
1106
1104
|
}
|
|
1107
1105
|
return "";
|
|
1108
1106
|
});
|
|
1109
1107
|
continue;
|
|
1110
1108
|
}
|
|
1111
|
-
if (
|
|
1109
|
+
if (kt.test(i.stem)) {
|
|
1112
1110
|
t.minimumIntegerDigits = i.stem.length;
|
|
1113
1111
|
continue;
|
|
1114
1112
|
}
|
|
1115
|
-
if (
|
|
1113
|
+
if (st.test(i.stem)) {
|
|
1116
1114
|
if (i.options.length > 1)
|
|
1117
1115
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1118
|
-
i.stem.replace(
|
|
1119
|
-
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m &&
|
|
1116
|
+
i.stem.replace(st, function(l, u, h, c, m, d) {
|
|
1117
|
+
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
1118
|
});
|
|
1121
1119
|
var s = i.options[0];
|
|
1122
|
-
s === "w" ? t =
|
|
1120
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), ot(s)));
|
|
1123
1121
|
continue;
|
|
1124
1122
|
}
|
|
1125
|
-
if (
|
|
1126
|
-
t =
|
|
1123
|
+
if (jt.test(i.stem)) {
|
|
1124
|
+
t = y(y({}, t), ot(i.stem));
|
|
1127
1125
|
continue;
|
|
1128
1126
|
}
|
|
1129
|
-
var
|
|
1130
|
-
|
|
1131
|
-
var
|
|
1132
|
-
|
|
1127
|
+
var o = Vt(i.stem);
|
|
1128
|
+
o && (t = y(y({}, t), o));
|
|
1129
|
+
var a = mn(i.stem);
|
|
1130
|
+
a && (t = y(y({}, t), a));
|
|
1133
1131
|
}
|
|
1134
1132
|
return t;
|
|
1135
1133
|
}
|
|
1136
|
-
var
|
|
1134
|
+
var oe = {
|
|
1137
1135
|
"001": [
|
|
1138
1136
|
"H",
|
|
1139
1137
|
"h"
|
|
@@ -2554,17 +2552,17 @@ function bn(e, t) {
|
|
|
2554
2552
|
if (i === "j") {
|
|
2555
2553
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2556
2554
|
s++, n++;
|
|
2557
|
-
var
|
|
2558
|
-
for ((u == "H" || u == "k") && (
|
|
2555
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = pn(t);
|
|
2556
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2559
2557
|
r += l;
|
|
2560
|
-
for (;
|
|
2558
|
+
for (; o-- > 0; )
|
|
2561
2559
|
r = u + r;
|
|
2562
2560
|
} else
|
|
2563
2561
|
i === "J" ? r += "H" : r += i;
|
|
2564
2562
|
}
|
|
2565
2563
|
return r;
|
|
2566
2564
|
}
|
|
2567
|
-
function
|
|
2565
|
+
function pn(e) {
|
|
2568
2566
|
var t = e.hourCycle;
|
|
2569
2567
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2570
2568
|
e.hourCycles && // @ts-ignore
|
|
@@ -2583,23 +2581,23 @@ function gn(e) {
|
|
|
2583
2581
|
}
|
|
2584
2582
|
var r = e.language, n;
|
|
2585
2583
|
r !== "root" && (n = e.maximize().region);
|
|
2586
|
-
var i =
|
|
2584
|
+
var i = oe[n || ""] || oe[r || ""] || oe["".concat(r, "-001")] || oe["001"];
|
|
2587
2585
|
return i[0];
|
|
2588
2586
|
}
|
|
2589
|
-
var
|
|
2590
|
-
function
|
|
2587
|
+
var Ce, gn = new RegExp("^".concat(Ft.source, "*")), _n = new RegExp("".concat(Ft.source, "*$"));
|
|
2588
|
+
function p(e, t) {
|
|
2591
2589
|
return { start: e, end: t };
|
|
2592
2590
|
}
|
|
2593
|
-
var
|
|
2591
|
+
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
2592
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2595
|
-
},
|
|
2593
|
+
}, Ue = !0;
|
|
2596
2594
|
try {
|
|
2597
|
-
var
|
|
2598
|
-
|
|
2595
|
+
var Sn = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2596
|
+
Ue = ((Ce = Sn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
|
|
2599
2597
|
} catch (e) {
|
|
2600
|
-
|
|
2598
|
+
Ue = !1;
|
|
2601
2599
|
}
|
|
2602
|
-
var
|
|
2600
|
+
var ut = yn ? (
|
|
2603
2601
|
// Native
|
|
2604
2602
|
function(t, r, n) {
|
|
2605
2603
|
return t.startsWith(r, n);
|
|
@@ -2609,31 +2607,31 @@ var ht = En ? (
|
|
|
2609
2607
|
function(t, r, n) {
|
|
2610
2608
|
return t.slice(n, n + r.length) === r;
|
|
2611
2609
|
}
|
|
2612
|
-
),
|
|
2610
|
+
), De = xn ? String.fromCodePoint : (
|
|
2613
2611
|
// IE11
|
|
2614
2612
|
function() {
|
|
2615
2613
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2616
2614
|
t[r] = arguments[r];
|
|
2617
|
-
for (var n = "", i = t.length, s = 0,
|
|
2618
|
-
if (
|
|
2619
|
-
throw RangeError(
|
|
2620
|
-
n +=
|
|
2615
|
+
for (var n = "", i = t.length, s = 0, o; i > s; ) {
|
|
2616
|
+
if (o = t[s++], o > 1114111)
|
|
2617
|
+
throw RangeError(o + " is not a valid code point");
|
|
2618
|
+
n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
|
2621
2619
|
}
|
|
2622
2620
|
return n;
|
|
2623
2621
|
}
|
|
2624
|
-
),
|
|
2622
|
+
), ht = (
|
|
2625
2623
|
// native
|
|
2626
|
-
|
|
2624
|
+
En ? Object.fromEntries : (
|
|
2627
2625
|
// Ponyfill
|
|
2628
2626
|
function(t) {
|
|
2629
2627
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2630
|
-
var s = i[n],
|
|
2631
|
-
r[
|
|
2628
|
+
var s = i[n], o = s[0], a = s[1];
|
|
2629
|
+
r[o] = a;
|
|
2632
2630
|
}
|
|
2633
2631
|
return r;
|
|
2634
2632
|
}
|
|
2635
2633
|
)
|
|
2636
|
-
),
|
|
2634
|
+
), Xt = vn ? (
|
|
2637
2635
|
// Native
|
|
2638
2636
|
function(t, r) {
|
|
2639
2637
|
return t.codePointAt(r);
|
|
@@ -2647,7 +2645,7 @@ var ht = En ? (
|
|
|
2647
2645
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2648
2646
|
}
|
|
2649
2647
|
}
|
|
2650
|
-
),
|
|
2648
|
+
), An = Hn ? (
|
|
2651
2649
|
// Native
|
|
2652
2650
|
function(t) {
|
|
2653
2651
|
return t.trimStart();
|
|
@@ -2655,9 +2653,9 @@ var ht = En ? (
|
|
|
2655
2653
|
) : (
|
|
2656
2654
|
// Ponyfill
|
|
2657
2655
|
function(t) {
|
|
2658
|
-
return t.replace(
|
|
2656
|
+
return t.replace(gn, "");
|
|
2659
2657
|
}
|
|
2660
|
-
),
|
|
2658
|
+
), On = Bn ? (
|
|
2661
2659
|
// Native
|
|
2662
2660
|
function(t) {
|
|
2663
2661
|
return t.trimEnd();
|
|
@@ -2665,30 +2663,30 @@ var ht = En ? (
|
|
|
2665
2663
|
) : (
|
|
2666
2664
|
// Ponyfill
|
|
2667
2665
|
function(t) {
|
|
2668
|
-
return t.replace(
|
|
2666
|
+
return t.replace(_n, "");
|
|
2669
2667
|
}
|
|
2670
2668
|
);
|
|
2671
|
-
function
|
|
2669
|
+
function zt(e, t) {
|
|
2672
2670
|
return new RegExp(e, t);
|
|
2673
2671
|
}
|
|
2674
|
-
var
|
|
2675
|
-
if (
|
|
2676
|
-
var
|
|
2677
|
-
|
|
2672
|
+
var Ge;
|
|
2673
|
+
if (Ue) {
|
|
2674
|
+
var lt = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2675
|
+
Ge = function(t, r) {
|
|
2678
2676
|
var n;
|
|
2679
|
-
|
|
2680
|
-
var i =
|
|
2677
|
+
lt.lastIndex = r;
|
|
2678
|
+
var i = lt.exec(t);
|
|
2681
2679
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2682
2680
|
};
|
|
2683
2681
|
} else
|
|
2684
|
-
|
|
2682
|
+
Ge = function(t, r) {
|
|
2685
2683
|
for (var n = []; ; ) {
|
|
2686
|
-
var i =
|
|
2687
|
-
if (i === void 0 ||
|
|
2684
|
+
var i = Xt(t, r);
|
|
2685
|
+
if (i === void 0 || Wt(i) || Nn(i))
|
|
2688
2686
|
break;
|
|
2689
2687
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2690
2688
|
}
|
|
2691
|
-
return
|
|
2689
|
+
return De.apply(void 0, n);
|
|
2692
2690
|
};
|
|
2693
2691
|
var Cn = (
|
|
2694
2692
|
/** @class */
|
|
@@ -2704,33 +2702,33 @@ var Cn = (
|
|
|
2704
2702
|
for (var i = []; !this.isEOF(); ) {
|
|
2705
2703
|
var s = this.char();
|
|
2706
2704
|
if (s === 123) {
|
|
2707
|
-
var
|
|
2708
|
-
if (
|
|
2709
|
-
return
|
|
2710
|
-
i.push(
|
|
2705
|
+
var o = this.parseArgument(t, n);
|
|
2706
|
+
if (o.err)
|
|
2707
|
+
return o;
|
|
2708
|
+
i.push(o.val);
|
|
2711
2709
|
} else {
|
|
2712
2710
|
if (s === 125 && t > 0)
|
|
2713
2711
|
break;
|
|
2714
2712
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2715
|
-
var
|
|
2713
|
+
var a = this.clonePosition();
|
|
2716
2714
|
this.bump(), i.push({
|
|
2717
|
-
type:
|
|
2718
|
-
location:
|
|
2715
|
+
type: x.pound,
|
|
2716
|
+
location: p(a, this.clonePosition())
|
|
2719
2717
|
});
|
|
2720
2718
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2721
2719
|
if (n)
|
|
2722
2720
|
break;
|
|
2723
|
-
return this.error(
|
|
2724
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2725
|
-
var
|
|
2726
|
-
if (
|
|
2727
|
-
return
|
|
2728
|
-
i.push(
|
|
2721
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
|
|
2722
|
+
} else if (s === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
2723
|
+
var o = this.parseTag(t, r);
|
|
2724
|
+
if (o.err)
|
|
2725
|
+
return o;
|
|
2726
|
+
i.push(o.val);
|
|
2729
2727
|
} else {
|
|
2730
|
-
var
|
|
2731
|
-
if (
|
|
2732
|
-
return
|
|
2733
|
-
i.push(
|
|
2728
|
+
var o = this.parseLiteral(t, r);
|
|
2729
|
+
if (o.err)
|
|
2730
|
+
return o;
|
|
2731
|
+
i.push(o.val);
|
|
2734
2732
|
}
|
|
2735
2733
|
}
|
|
2736
2734
|
}
|
|
@@ -2742,9 +2740,9 @@ var Cn = (
|
|
|
2742
2740
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2743
2741
|
return {
|
|
2744
2742
|
val: {
|
|
2745
|
-
type:
|
|
2743
|
+
type: x.literal,
|
|
2746
2744
|
value: "<".concat(i, "/>"),
|
|
2747
|
-
location:
|
|
2745
|
+
location: p(n, this.clonePosition())
|
|
2748
2746
|
},
|
|
2749
2747
|
err: null
|
|
2750
2748
|
};
|
|
@@ -2752,27 +2750,27 @@ var Cn = (
|
|
|
2752
2750
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2753
2751
|
if (s.err)
|
|
2754
2752
|
return s;
|
|
2755
|
-
var
|
|
2753
|
+
var o = s.val, a = this.clonePosition();
|
|
2756
2754
|
if (this.bumpIf("</")) {
|
|
2757
|
-
if (this.isEOF() || !
|
|
2758
|
-
return this.error(
|
|
2755
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
2756
|
+
return this.error(b.INVALID_TAG, p(a, this.clonePosition()));
|
|
2759
2757
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2760
|
-
return i !== u ? this.error(
|
|
2758
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, p(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2761
2759
|
val: {
|
|
2762
|
-
type:
|
|
2760
|
+
type: x.tag,
|
|
2763
2761
|
value: i,
|
|
2764
|
-
children:
|
|
2765
|
-
location:
|
|
2762
|
+
children: o,
|
|
2763
|
+
location: p(n, this.clonePosition())
|
|
2766
2764
|
},
|
|
2767
2765
|
err: null
|
|
2768
|
-
} : this.error(
|
|
2766
|
+
} : this.error(b.INVALID_TAG, p(a, this.clonePosition())));
|
|
2769
2767
|
} else
|
|
2770
|
-
return this.error(
|
|
2768
|
+
return this.error(b.UNCLOSED_TAG, p(n, this.clonePosition()));
|
|
2771
2769
|
} else
|
|
2772
|
-
return this.error(
|
|
2770
|
+
return this.error(b.INVALID_TAG, p(n, this.clonePosition()));
|
|
2773
2771
|
}, e.prototype.parseTagName = function() {
|
|
2774
2772
|
var t = this.offset();
|
|
2775
|
-
for (this.bump(); !this.isEOF() &&
|
|
2773
|
+
for (this.bump(); !this.isEOF() && Ln(this.char()); )
|
|
2776
2774
|
this.bump();
|
|
2777
2775
|
return this.message.slice(t, this.offset());
|
|
2778
2776
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2782,26 +2780,26 @@ var Cn = (
|
|
|
2782
2780
|
i += s;
|
|
2783
2781
|
continue;
|
|
2784
2782
|
}
|
|
2785
|
-
var
|
|
2786
|
-
if (a) {
|
|
2787
|
-
i += a;
|
|
2788
|
-
continue;
|
|
2789
|
-
}
|
|
2790
|
-
var o = this.tryParseLeftAngleBracket();
|
|
2783
|
+
var o = this.tryParseUnquoted(t, r);
|
|
2791
2784
|
if (o) {
|
|
2792
2785
|
i += o;
|
|
2793
2786
|
continue;
|
|
2794
2787
|
}
|
|
2788
|
+
var a = this.tryParseLeftAngleBracket();
|
|
2789
|
+
if (a) {
|
|
2790
|
+
i += a;
|
|
2791
|
+
continue;
|
|
2792
|
+
}
|
|
2795
2793
|
break;
|
|
2796
2794
|
}
|
|
2797
|
-
var l =
|
|
2795
|
+
var l = p(n, this.clonePosition());
|
|
2798
2796
|
return {
|
|
2799
|
-
val: { type:
|
|
2797
|
+
val: { type: x.literal, value: i, location: l },
|
|
2800
2798
|
err: null
|
|
2801
2799
|
};
|
|
2802
2800
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2803
2801
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2804
|
-
!
|
|
2802
|
+
!Pn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2805
2803
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2806
2804
|
if (this.isEOF() || this.char() !== 39)
|
|
2807
2805
|
return null;
|
|
@@ -2835,49 +2833,49 @@ var Cn = (
|
|
|
2835
2833
|
r.push(n);
|
|
2836
2834
|
this.bump();
|
|
2837
2835
|
}
|
|
2838
|
-
return
|
|
2836
|
+
return De.apply(void 0, r);
|
|
2839
2837
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2840
2838
|
if (this.isEOF())
|
|
2841
2839
|
return null;
|
|
2842
2840
|
var n = this.char();
|
|
2843
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2841
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
|
|
2844
2842
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2845
2843
|
var n = this.clonePosition();
|
|
2846
2844
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2847
|
-
return this.error(
|
|
2845
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
|
|
2848
2846
|
if (this.char() === 125)
|
|
2849
|
-
return this.bump(), this.error(
|
|
2847
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, p(n, this.clonePosition()));
|
|
2850
2848
|
var i = this.parseIdentifierIfPossible().value;
|
|
2851
2849
|
if (!i)
|
|
2852
|
-
return this.error(
|
|
2850
|
+
return this.error(b.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2853
2851
|
if (this.bumpSpace(), this.isEOF())
|
|
2854
|
-
return this.error(
|
|
2852
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
|
|
2855
2853
|
switch (this.char()) {
|
|
2856
2854
|
case 125:
|
|
2857
2855
|
return this.bump(), {
|
|
2858
2856
|
val: {
|
|
2859
|
-
type:
|
|
2857
|
+
type: x.argument,
|
|
2860
2858
|
// value does not include the opening and closing braces.
|
|
2861
2859
|
value: i,
|
|
2862
|
-
location:
|
|
2860
|
+
location: p(n, this.clonePosition())
|
|
2863
2861
|
},
|
|
2864
2862
|
err: null
|
|
2865
2863
|
};
|
|
2866
2864
|
case 44:
|
|
2867
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2865
|
+
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
2866
|
default:
|
|
2869
|
-
return this.error(
|
|
2867
|
+
return this.error(b.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2870
2868
|
}
|
|
2871
2869
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2872
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2870
|
+
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
2873
2871
|
this.bumpTo(i);
|
|
2874
|
-
var s = this.clonePosition(),
|
|
2875
|
-
return { value: n, location:
|
|
2872
|
+
var s = this.clonePosition(), o = p(t, s);
|
|
2873
|
+
return { value: n, location: o };
|
|
2876
2874
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2877
|
-
var s,
|
|
2878
|
-
switch (
|
|
2875
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2876
|
+
switch (a) {
|
|
2879
2877
|
case "":
|
|
2880
|
-
return this.error(
|
|
2878
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, p(o, l));
|
|
2881
2879
|
case "number":
|
|
2882
2880
|
case "date":
|
|
2883
2881
|
case "time": {
|
|
@@ -2888,44 +2886,44 @@ var Cn = (
|
|
|
2888
2886
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2889
2887
|
if (c.err)
|
|
2890
2888
|
return c;
|
|
2891
|
-
var m =
|
|
2889
|
+
var m = On(c.val);
|
|
2892
2890
|
if (m.length === 0)
|
|
2893
|
-
return this.error(
|
|
2894
|
-
var
|
|
2895
|
-
u = { style: m, styleLocation:
|
|
2891
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2892
|
+
var d = p(h, this.clonePosition());
|
|
2893
|
+
u = { style: m, styleLocation: d };
|
|
2896
2894
|
}
|
|
2897
2895
|
var f = this.tryParseArgumentClose(i);
|
|
2898
2896
|
if (f.err)
|
|
2899
2897
|
return f;
|
|
2900
|
-
var _ =
|
|
2901
|
-
if (u &&
|
|
2902
|
-
var v =
|
|
2903
|
-
if (
|
|
2898
|
+
var _ = p(i, this.clonePosition());
|
|
2899
|
+
if (u && ut(u == null ? void 0 : u.style, "::", 0)) {
|
|
2900
|
+
var v = An(u.style.slice(2));
|
|
2901
|
+
if (a === "number") {
|
|
2904
2902
|
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
2905
2903
|
return c.err ? c : {
|
|
2906
|
-
val: { type:
|
|
2904
|
+
val: { type: x.number, value: n, location: _, style: c.val },
|
|
2907
2905
|
err: null
|
|
2908
2906
|
};
|
|
2909
2907
|
} else {
|
|
2910
2908
|
if (v.length === 0)
|
|
2911
|
-
return this.error(
|
|
2912
|
-
var
|
|
2913
|
-
this.locale && (
|
|
2909
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, _);
|
|
2910
|
+
var A = v;
|
|
2911
|
+
this.locale && (A = bn(v, this.locale));
|
|
2914
2912
|
var m = {
|
|
2915
|
-
type:
|
|
2916
|
-
pattern:
|
|
2913
|
+
type: j.dateTime,
|
|
2914
|
+
pattern: A,
|
|
2917
2915
|
location: u.styleLocation,
|
|
2918
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2919
|
-
},
|
|
2916
|
+
parsedOptions: this.shouldParseSkeletons ? un(A) : {}
|
|
2917
|
+
}, O = a === "date" ? x.date : x.time;
|
|
2920
2918
|
return {
|
|
2921
|
-
val: { type:
|
|
2919
|
+
val: { type: O, value: n, location: _, style: m },
|
|
2922
2920
|
err: null
|
|
2923
2921
|
};
|
|
2924
2922
|
}
|
|
2925
2923
|
}
|
|
2926
2924
|
return {
|
|
2927
2925
|
val: {
|
|
2928
|
-
type:
|
|
2926
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
2929
2927
|
value: n,
|
|
2930
2928
|
location: _,
|
|
2931
2929
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
@@ -2938,50 +2936,50 @@ var Cn = (
|
|
|
2938
2936
|
case "select": {
|
|
2939
2937
|
var H = this.clonePosition();
|
|
2940
2938
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2941
|
-
return this.error(
|
|
2939
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, p(H, y({}, H)));
|
|
2942
2940
|
this.bumpSpace();
|
|
2943
|
-
var
|
|
2944
|
-
if (
|
|
2941
|
+
var N = this.parseIdentifierIfPossible(), S = 0;
|
|
2942
|
+
if (a !== "select" && N.value === "offset") {
|
|
2945
2943
|
if (!this.bumpIf(":"))
|
|
2946
|
-
return this.error(
|
|
2944
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
|
|
2947
2945
|
this.bumpSpace();
|
|
2948
|
-
var c = this.tryParseDecimalInteger(
|
|
2946
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2949
2947
|
if (c.err)
|
|
2950
2948
|
return c;
|
|
2951
|
-
this.bumpSpace(),
|
|
2949
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), S = c.val;
|
|
2952
2950
|
}
|
|
2953
|
-
var
|
|
2954
|
-
if (
|
|
2955
|
-
return
|
|
2951
|
+
var $ = this.tryParsePluralOrSelectOptions(t, a, r, N);
|
|
2952
|
+
if ($.err)
|
|
2953
|
+
return $;
|
|
2956
2954
|
var f = this.tryParseArgumentClose(i);
|
|
2957
2955
|
if (f.err)
|
|
2958
2956
|
return f;
|
|
2959
|
-
var
|
|
2960
|
-
return
|
|
2957
|
+
var ie = p(i, this.clonePosition());
|
|
2958
|
+
return a === "select" ? {
|
|
2961
2959
|
val: {
|
|
2962
|
-
type:
|
|
2960
|
+
type: x.select,
|
|
2963
2961
|
value: n,
|
|
2964
|
-
options:
|
|
2965
|
-
location:
|
|
2962
|
+
options: ht($.val),
|
|
2963
|
+
location: ie
|
|
2966
2964
|
},
|
|
2967
2965
|
err: null
|
|
2968
2966
|
} : {
|
|
2969
2967
|
val: {
|
|
2970
|
-
type:
|
|
2968
|
+
type: x.plural,
|
|
2971
2969
|
value: n,
|
|
2972
|
-
options:
|
|
2973
|
-
offset:
|
|
2974
|
-
pluralType:
|
|
2975
|
-
location:
|
|
2970
|
+
options: ht($.val),
|
|
2971
|
+
offset: S,
|
|
2972
|
+
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2973
|
+
location: ie
|
|
2976
2974
|
},
|
|
2977
2975
|
err: null
|
|
2978
2976
|
};
|
|
2979
2977
|
}
|
|
2980
2978
|
default:
|
|
2981
|
-
return this.error(
|
|
2979
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, p(o, l));
|
|
2982
2980
|
}
|
|
2983
2981
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2984
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2982
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2985
2983
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2986
2984
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2987
2985
|
var n = this.char();
|
|
@@ -2990,7 +2988,7 @@ var Cn = (
|
|
|
2990
2988
|
this.bump();
|
|
2991
2989
|
var i = this.clonePosition();
|
|
2992
2990
|
if (!this.bumpUntil("'"))
|
|
2993
|
-
return this.error(
|
|
2991
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, p(i, this.clonePosition()));
|
|
2994
2992
|
this.bump();
|
|
2995
2993
|
break;
|
|
2996
2994
|
}
|
|
@@ -3020,13 +3018,13 @@ var Cn = (
|
|
|
3020
3018
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3021
3019
|
var n = [];
|
|
3022
3020
|
try {
|
|
3023
|
-
n =
|
|
3021
|
+
n = ln(t);
|
|
3024
3022
|
} catch (i) {
|
|
3025
|
-
return this.error(
|
|
3023
|
+
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3026
3024
|
}
|
|
3027
3025
|
return {
|
|
3028
3026
|
val: {
|
|
3029
|
-
type:
|
|
3027
|
+
type: j.number,
|
|
3030
3028
|
tokens: n,
|
|
3031
3029
|
location: r,
|
|
3032
3030
|
parsedOptions: this.shouldParseSkeletons ? dn(n) : {}
|
|
@@ -3034,50 +3032,50 @@ var Cn = (
|
|
|
3034
3032
|
err: null
|
|
3035
3033
|
};
|
|
3036
3034
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3037
|
-
for (var s,
|
|
3035
|
+
for (var s, o = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3038
3036
|
if (u.length === 0) {
|
|
3039
3037
|
var c = this.clonePosition();
|
|
3040
3038
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3041
|
-
var m = this.tryParseDecimalInteger(
|
|
3039
|
+
var m = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3042
3040
|
if (m.err)
|
|
3043
3041
|
return m;
|
|
3044
|
-
h =
|
|
3042
|
+
h = p(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3045
3043
|
} else
|
|
3046
3044
|
break;
|
|
3047
3045
|
}
|
|
3048
3046
|
if (l.has(u))
|
|
3049
|
-
return this.error(r === "select" ?
|
|
3050
|
-
u === "other" && (
|
|
3051
|
-
var
|
|
3047
|
+
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3048
|
+
u === "other" && (o = !0), this.bumpSpace();
|
|
3049
|
+
var d = this.clonePosition();
|
|
3052
3050
|
if (!this.bumpIf("{"))
|
|
3053
|
-
return this.error(r === "select" ?
|
|
3051
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
|
|
3054
3052
|
var f = this.parseMessage(t + 1, r, n);
|
|
3055
3053
|
if (f.err)
|
|
3056
3054
|
return f;
|
|
3057
|
-
var _ = this.tryParseArgumentClose(
|
|
3055
|
+
var _ = this.tryParseArgumentClose(d);
|
|
3058
3056
|
if (_.err)
|
|
3059
3057
|
return _;
|
|
3060
|
-
|
|
3058
|
+
a.push([
|
|
3061
3059
|
u,
|
|
3062
3060
|
{
|
|
3063
3061
|
value: f.val,
|
|
3064
|
-
location:
|
|
3062
|
+
location: p(d, this.clonePosition())
|
|
3065
3063
|
}
|
|
3066
3064
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3067
3065
|
}
|
|
3068
|
-
return
|
|
3066
|
+
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(b.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3069
3067
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3070
3068
|
var n = 1, i = this.clonePosition();
|
|
3071
3069
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3072
|
-
for (var s = !1,
|
|
3073
|
-
var
|
|
3074
|
-
if (
|
|
3075
|
-
s = !0,
|
|
3070
|
+
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
3071
|
+
var a = this.char();
|
|
3072
|
+
if (a >= 48 && a <= 57)
|
|
3073
|
+
s = !0, o = o * 10 + (a - 48), this.bump();
|
|
3076
3074
|
else
|
|
3077
3075
|
break;
|
|
3078
3076
|
}
|
|
3079
|
-
var l =
|
|
3080
|
-
return s ? (
|
|
3077
|
+
var l = p(i, this.clonePosition());
|
|
3078
|
+
return s ? (o *= n, wn(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3081
3079
|
}, e.prototype.offset = function() {
|
|
3082
3080
|
return this.position.offset;
|
|
3083
3081
|
}, e.prototype.isEOF = function() {
|
|
@@ -3092,7 +3090,7 @@ var Cn = (
|
|
|
3092
3090
|
var t = this.position.offset;
|
|
3093
3091
|
if (t >= this.message.length)
|
|
3094
3092
|
throw Error("out of bound");
|
|
3095
|
-
var r =
|
|
3093
|
+
var r = Xt(this.message, t);
|
|
3096
3094
|
if (r === void 0)
|
|
3097
3095
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3098
3096
|
return r;
|
|
@@ -3111,7 +3109,7 @@ var Cn = (
|
|
|
3111
3109
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3112
3110
|
}
|
|
3113
3111
|
}, e.prototype.bumpIf = function(t) {
|
|
3114
|
-
if (
|
|
3112
|
+
if (ut(this.message, t, this.offset())) {
|
|
3115
3113
|
for (var r = 0; r < t.length; r++)
|
|
3116
3114
|
this.bump();
|
|
3117
3115
|
return !0;
|
|
@@ -3133,7 +3131,7 @@ var Cn = (
|
|
|
3133
3131
|
break;
|
|
3134
3132
|
}
|
|
3135
3133
|
}, e.prototype.bumpSpace = function() {
|
|
3136
|
-
for (; !this.isEOF() &&
|
|
3134
|
+
for (; !this.isEOF() && Wt(this.char()); )
|
|
3137
3135
|
this.bump();
|
|
3138
3136
|
}, e.prototype.peek = function() {
|
|
3139
3137
|
if (this.isEOF())
|
|
@@ -3143,47 +3141,47 @@ var Cn = (
|
|
|
3143
3141
|
}, e;
|
|
3144
3142
|
}()
|
|
3145
3143
|
);
|
|
3146
|
-
function
|
|
3144
|
+
function Fe(e) {
|
|
3147
3145
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3148
3146
|
}
|
|
3149
|
-
function
|
|
3150
|
-
return
|
|
3147
|
+
function Pn(e) {
|
|
3148
|
+
return Fe(e) || e === 47;
|
|
3151
3149
|
}
|
|
3152
|
-
function
|
|
3150
|
+
function Ln(e) {
|
|
3153
3151
|
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
3152
|
}
|
|
3155
|
-
function
|
|
3153
|
+
function Wt(e) {
|
|
3156
3154
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3157
3155
|
}
|
|
3158
|
-
function
|
|
3156
|
+
function Nn(e) {
|
|
3159
3157
|
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
3158
|
}
|
|
3161
|
-
function
|
|
3159
|
+
function je(e) {
|
|
3162
3160
|
e.forEach(function(t) {
|
|
3163
|
-
if (delete t.location,
|
|
3161
|
+
if (delete t.location, Rt(t) || Ut(t))
|
|
3164
3162
|
for (var r in t.options)
|
|
3165
|
-
delete t.options[r].location,
|
|
3163
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3166
3164
|
else
|
|
3167
|
-
|
|
3165
|
+
It(t) && Gt(t.style) || (Mt(t) || $t(t)) && Re(t.style) ? delete t.style.location : Dt(t) && je(t.children);
|
|
3168
3166
|
});
|
|
3169
3167
|
}
|
|
3170
|
-
function
|
|
3171
|
-
t === void 0 && (t = {}), t =
|
|
3168
|
+
function In(e, t) {
|
|
3169
|
+
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3172
3170
|
var r = new Cn(e, t).parse();
|
|
3173
3171
|
if (r.err) {
|
|
3174
|
-
var n = SyntaxError(
|
|
3172
|
+
var n = SyntaxError(b[r.err.kind]);
|
|
3175
3173
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3176
3174
|
}
|
|
3177
|
-
return t != null && t.captureLocation ||
|
|
3175
|
+
return t != null && t.captureLocation || je(r.val), r.val;
|
|
3178
3176
|
}
|
|
3179
|
-
var
|
|
3177
|
+
var k;
|
|
3180
3178
|
(function(e) {
|
|
3181
3179
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3182
|
-
})(
|
|
3183
|
-
var
|
|
3180
|
+
})(k || (k = {}));
|
|
3181
|
+
var _e = (
|
|
3184
3182
|
/** @class */
|
|
3185
3183
|
function(e) {
|
|
3186
|
-
|
|
3184
|
+
ge(t, e);
|
|
3187
3185
|
function t(r, n, i) {
|
|
3188
3186
|
var s = e.call(this, r) || this;
|
|
3189
3187
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3192,155 +3190,155 @@ var Ee = (
|
|
|
3192
3190
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3193
3191
|
}, t;
|
|
3194
3192
|
}(Error)
|
|
3195
|
-
),
|
|
3193
|
+
), ft = (
|
|
3196
3194
|
/** @class */
|
|
3197
3195
|
function(e) {
|
|
3198
|
-
|
|
3196
|
+
ge(t, e);
|
|
3199
3197
|
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('", "'), '"'),
|
|
3198
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), k.INVALID_VALUE, s) || this;
|
|
3201
3199
|
}
|
|
3202
3200
|
return t;
|
|
3203
|
-
}(
|
|
3204
|
-
),
|
|
3201
|
+
}(_e)
|
|
3202
|
+
), Mn = (
|
|
3205
3203
|
/** @class */
|
|
3206
3204
|
function(e) {
|
|
3207
|
-
|
|
3205
|
+
ge(t, e);
|
|
3208
3206
|
function t(r, n, i) {
|
|
3209
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3207
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), k.INVALID_VALUE, i) || this;
|
|
3210
3208
|
}
|
|
3211
3209
|
return t;
|
|
3212
|
-
}(
|
|
3213
|
-
),
|
|
3210
|
+
}(_e)
|
|
3211
|
+
), $n = (
|
|
3214
3212
|
/** @class */
|
|
3215
3213
|
function(e) {
|
|
3216
|
-
|
|
3214
|
+
ge(t, e);
|
|
3217
3215
|
function t(r, n) {
|
|
3218
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3216
|
+
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
3217
|
}
|
|
3220
3218
|
return t;
|
|
3221
|
-
}(
|
|
3222
|
-
),
|
|
3219
|
+
}(_e)
|
|
3220
|
+
), E;
|
|
3223
3221
|
(function(e) {
|
|
3224
3222
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3225
|
-
})(
|
|
3226
|
-
function
|
|
3223
|
+
})(E || (E = {}));
|
|
3224
|
+
function Rn(e) {
|
|
3227
3225
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3228
3226
|
var n = t[t.length - 1];
|
|
3229
|
-
return !n || n.type !==
|
|
3227
|
+
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3230
3228
|
}, []);
|
|
3231
3229
|
}
|
|
3232
|
-
function
|
|
3230
|
+
function Un(e) {
|
|
3233
3231
|
return typeof e == "function";
|
|
3234
3232
|
}
|
|
3235
|
-
function
|
|
3236
|
-
if (e.length === 1 &&
|
|
3233
|
+
function le(e, t, r, n, i, s, o) {
|
|
3234
|
+
if (e.length === 1 && it(e[0]))
|
|
3237
3235
|
return [
|
|
3238
3236
|
{
|
|
3239
|
-
type:
|
|
3237
|
+
type: E.literal,
|
|
3240
3238
|
value: e[0].value
|
|
3241
3239
|
}
|
|
3242
3240
|
];
|
|
3243
|
-
for (var
|
|
3241
|
+
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3244
3242
|
var h = u[l];
|
|
3245
|
-
if (
|
|
3246
|
-
|
|
3247
|
-
type:
|
|
3243
|
+
if (it(h)) {
|
|
3244
|
+
a.push({
|
|
3245
|
+
type: E.literal,
|
|
3248
3246
|
value: h.value
|
|
3249
3247
|
});
|
|
3250
3248
|
continue;
|
|
3251
3249
|
}
|
|
3252
|
-
if (
|
|
3253
|
-
typeof s == "number" &&
|
|
3254
|
-
type:
|
|
3250
|
+
if (on(h)) {
|
|
3251
|
+
typeof s == "number" && a.push({
|
|
3252
|
+
type: E.literal,
|
|
3255
3253
|
value: r.getNumberFormat(t).format(s)
|
|
3256
3254
|
});
|
|
3257
3255
|
continue;
|
|
3258
3256
|
}
|
|
3259
3257
|
var c = h.value;
|
|
3260
3258
|
if (!(i && c in i))
|
|
3261
|
-
throw new
|
|
3259
|
+
throw new $n(c, o);
|
|
3262
3260
|
var m = i[c];
|
|
3263
|
-
if (
|
|
3264
|
-
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""),
|
|
3265
|
-
type: typeof m == "string" ?
|
|
3261
|
+
if (sn(h)) {
|
|
3262
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
|
|
3263
|
+
type: typeof m == "string" ? E.literal : E.object,
|
|
3266
3264
|
value: m
|
|
3267
3265
|
});
|
|
3268
3266
|
continue;
|
|
3269
3267
|
}
|
|
3270
|
-
if (
|
|
3271
|
-
var
|
|
3272
|
-
|
|
3273
|
-
type:
|
|
3274
|
-
value: r.getDateTimeFormat(t,
|
|
3268
|
+
if (Mt(h)) {
|
|
3269
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Re(h.style) ? h.style.parsedOptions : void 0;
|
|
3270
|
+
a.push({
|
|
3271
|
+
type: E.literal,
|
|
3272
|
+
value: r.getDateTimeFormat(t, d).format(m)
|
|
3275
3273
|
});
|
|
3276
3274
|
continue;
|
|
3277
3275
|
}
|
|
3278
|
-
if (
|
|
3279
|
-
var
|
|
3280
|
-
|
|
3281
|
-
type:
|
|
3282
|
-
value: r.getDateTimeFormat(t,
|
|
3276
|
+
if ($t(h)) {
|
|
3277
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Re(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3278
|
+
a.push({
|
|
3279
|
+
type: E.literal,
|
|
3280
|
+
value: r.getDateTimeFormat(t, d).format(m)
|
|
3283
3281
|
});
|
|
3284
3282
|
continue;
|
|
3285
3283
|
}
|
|
3286
|
-
if (
|
|
3287
|
-
var
|
|
3288
|
-
|
|
3289
|
-
type:
|
|
3290
|
-
value: r.getNumberFormat(t,
|
|
3284
|
+
if (It(h)) {
|
|
3285
|
+
var d = typeof h.style == "string" ? n.number[h.style] : Gt(h.style) ? h.style.parsedOptions : void 0;
|
|
3286
|
+
d && d.scale && (m = m * (d.scale || 1)), a.push({
|
|
3287
|
+
type: E.literal,
|
|
3288
|
+
value: r.getNumberFormat(t, d).format(m)
|
|
3291
3289
|
});
|
|
3292
3290
|
continue;
|
|
3293
3291
|
}
|
|
3294
|
-
if (
|
|
3292
|
+
if (Dt(h)) {
|
|
3295
3293
|
var f = h.children, _ = h.value, v = i[_];
|
|
3296
|
-
if (!
|
|
3297
|
-
throw new
|
|
3298
|
-
var
|
|
3299
|
-
return
|
|
3294
|
+
if (!Un(v))
|
|
3295
|
+
throw new Mn(_, "function", o);
|
|
3296
|
+
var A = le(f, t, r, n, i, s), O = v(A.map(function(S) {
|
|
3297
|
+
return S.value;
|
|
3300
3298
|
}));
|
|
3301
|
-
Array.isArray(
|
|
3299
|
+
Array.isArray(O) || (O = [O]), a.push.apply(a, O.map(function(S) {
|
|
3302
3300
|
return {
|
|
3303
|
-
type: typeof
|
|
3304
|
-
value:
|
|
3301
|
+
type: typeof S == "string" ? E.literal : E.object,
|
|
3302
|
+
value: S
|
|
3305
3303
|
};
|
|
3306
3304
|
}));
|
|
3307
3305
|
}
|
|
3308
|
-
if (
|
|
3306
|
+
if (Rt(h)) {
|
|
3309
3307
|
var H = h.options[m] || h.options.other;
|
|
3310
3308
|
if (!H)
|
|
3311
|
-
throw new
|
|
3312
|
-
|
|
3309
|
+
throw new ft(h.value, m, Object.keys(h.options), o);
|
|
3310
|
+
a.push.apply(a, le(H.value, t, r, n, i));
|
|
3313
3311
|
continue;
|
|
3314
3312
|
}
|
|
3315
|
-
if (
|
|
3313
|
+
if (Ut(h)) {
|
|
3316
3314
|
var H = h.options["=".concat(m)];
|
|
3317
3315
|
if (!H) {
|
|
3318
3316
|
if (!Intl.PluralRules)
|
|
3319
|
-
throw new
|
|
3317
|
+
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3320
3318
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3321
|
-
`,
|
|
3322
|
-
var
|
|
3323
|
-
H = h.options[
|
|
3319
|
+
`, k.MISSING_INTL_API, o);
|
|
3320
|
+
var N = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3321
|
+
H = h.options[N] || h.options.other;
|
|
3324
3322
|
}
|
|
3325
3323
|
if (!H)
|
|
3326
|
-
throw new
|
|
3327
|
-
|
|
3324
|
+
throw new ft(h.value, m, Object.keys(h.options), o);
|
|
3325
|
+
a.push.apply(a, le(H.value, t, r, n, i, m - (h.offset || 0)));
|
|
3328
3326
|
continue;
|
|
3329
3327
|
}
|
|
3330
3328
|
}
|
|
3331
|
-
return
|
|
3329
|
+
return Rn(a);
|
|
3332
3330
|
}
|
|
3333
|
-
function
|
|
3334
|
-
return t ?
|
|
3335
|
-
return r[n] =
|
|
3331
|
+
function Dn(e, t) {
|
|
3332
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3333
|
+
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3336
3334
|
}, {})) : e;
|
|
3337
3335
|
}
|
|
3338
|
-
function
|
|
3336
|
+
function Gn(e, t) {
|
|
3339
3337
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3340
|
-
return r[n] =
|
|
3341
|
-
},
|
|
3338
|
+
return r[n] = Dn(e[n], t[n]), r;
|
|
3339
|
+
}, y({}, e)) : e;
|
|
3342
3340
|
}
|
|
3343
|
-
function
|
|
3341
|
+
function Pe(e) {
|
|
3344
3342
|
return {
|
|
3345
3343
|
create: function() {
|
|
3346
3344
|
return {
|
|
@@ -3354,39 +3352,39 @@ function Ne(e) {
|
|
|
3354
3352
|
}
|
|
3355
3353
|
};
|
|
3356
3354
|
}
|
|
3357
|
-
function
|
|
3355
|
+
function Fn(e) {
|
|
3358
3356
|
return e === void 0 && (e = {
|
|
3359
3357
|
number: {},
|
|
3360
3358
|
dateTime: {},
|
|
3361
3359
|
pluralRules: {}
|
|
3362
3360
|
}), {
|
|
3363
|
-
getNumberFormat:
|
|
3361
|
+
getNumberFormat: Ae(function() {
|
|
3364
3362
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3365
3363
|
r[n] = arguments[n];
|
|
3366
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3364
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3367
3365
|
}, {
|
|
3368
|
-
cache:
|
|
3369
|
-
strategy:
|
|
3366
|
+
cache: Pe(e.number),
|
|
3367
|
+
strategy: Oe.variadic
|
|
3370
3368
|
}),
|
|
3371
|
-
getDateTimeFormat:
|
|
3369
|
+
getDateTimeFormat: Ae(function() {
|
|
3372
3370
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3373
3371
|
r[n] = arguments[n];
|
|
3374
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3372
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Se([void 0], r, !1)))();
|
|
3375
3373
|
}, {
|
|
3376
|
-
cache:
|
|
3377
|
-
strategy:
|
|
3374
|
+
cache: Pe(e.dateTime),
|
|
3375
|
+
strategy: Oe.variadic
|
|
3378
3376
|
}),
|
|
3379
|
-
getPluralRules:
|
|
3377
|
+
getPluralRules: Ae(function() {
|
|
3380
3378
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3381
3379
|
r[n] = arguments[n];
|
|
3382
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3380
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Se([void 0], r, !1)))();
|
|
3383
3381
|
}, {
|
|
3384
|
-
cache:
|
|
3385
|
-
strategy:
|
|
3382
|
+
cache: Pe(e.pluralRules),
|
|
3383
|
+
strategy: Oe.variadic
|
|
3386
3384
|
})
|
|
3387
3385
|
};
|
|
3388
3386
|
}
|
|
3389
|
-
var
|
|
3387
|
+
var Zt = (
|
|
3390
3388
|
/** @class */
|
|
3391
3389
|
function() {
|
|
3392
3390
|
function e(t, r, n, i) {
|
|
@@ -3401,11 +3399,11 @@ var Qt = (
|
|
|
3401
3399
|
if (u.length === 1)
|
|
3402
3400
|
return u[0].value;
|
|
3403
3401
|
var h = u.reduce(function(c, m) {
|
|
3404
|
-
return !c.length || m.type !==
|
|
3402
|
+
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
3403
|
}, []);
|
|
3406
3404
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3407
3405
|
}, this.formatToParts = function(l) {
|
|
3408
|
-
return
|
|
3406
|
+
return le(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3409
3407
|
}, this.resolvedOptions = function() {
|
|
3410
3408
|
var l;
|
|
3411
3409
|
return {
|
|
@@ -3416,15 +3414,15 @@ var Qt = (
|
|
|
3416
3414
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3417
3415
|
if (this.message = t, !e.__parse)
|
|
3418
3416
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3419
|
-
var
|
|
3420
|
-
|
|
3421
|
-
var
|
|
3422
|
-
this.ast = e.__parse(t,
|
|
3417
|
+
var o = i || {};
|
|
3418
|
+
o.formatters;
|
|
3419
|
+
var a = qr(o, ["formatters"]);
|
|
3420
|
+
this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
|
|
3423
3421
|
} else
|
|
3424
3422
|
this.ast = t;
|
|
3425
3423
|
if (!Array.isArray(this.ast))
|
|
3426
3424
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3427
|
-
this.formats =
|
|
3425
|
+
this.formats = Gn(e.formats, n), this.formatters = i && i.formatters || Fn(this.formatterCache);
|
|
3428
3426
|
}
|
|
3429
3427
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3430
3428
|
get: function() {
|
|
@@ -3437,7 +3435,7 @@ var Qt = (
|
|
|
3437
3435
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3438
3436
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3439
3437
|
}
|
|
3440
|
-
}, e.__parse =
|
|
3438
|
+
}, e.__parse = In, e.formats = {
|
|
3441
3439
|
number: {
|
|
3442
3440
|
integer: {
|
|
3443
3441
|
maximumFractionDigits: 0
|
|
@@ -3498,7 +3496,7 @@ var Qt = (
|
|
|
3498
3496
|
}, e;
|
|
3499
3497
|
}()
|
|
3500
3498
|
);
|
|
3501
|
-
function
|
|
3499
|
+
function jn(e, t) {
|
|
3502
3500
|
if (t == null)
|
|
3503
3501
|
return;
|
|
3504
3502
|
if (t in e)
|
|
@@ -3519,101 +3517,101 @@ function kn(e, t) {
|
|
|
3519
3517
|
n = void 0;
|
|
3520
3518
|
return n;
|
|
3521
3519
|
}
|
|
3522
|
-
const C = {},
|
|
3520
|
+
const C = {}, kn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Qt = (e, t) => {
|
|
3523
3521
|
if (t == null)
|
|
3524
3522
|
return;
|
|
3525
3523
|
if (t in C && e in C[t])
|
|
3526
3524
|
return C[t][e];
|
|
3527
|
-
const r =
|
|
3525
|
+
const r = ne(t);
|
|
3528
3526
|
for (let n = 0; n < r.length; n++) {
|
|
3529
|
-
const i = r[n], s =
|
|
3527
|
+
const i = r[n], s = Xn(i, e);
|
|
3530
3528
|
if (s)
|
|
3531
|
-
return
|
|
3529
|
+
return kn(e, t, s);
|
|
3532
3530
|
}
|
|
3533
3531
|
};
|
|
3534
|
-
let
|
|
3535
|
-
const
|
|
3536
|
-
function
|
|
3537
|
-
return
|
|
3532
|
+
let We;
|
|
3533
|
+
const re = pe({});
|
|
3534
|
+
function Vn(e) {
|
|
3535
|
+
return We[e] || null;
|
|
3538
3536
|
}
|
|
3539
|
-
function
|
|
3540
|
-
return e in
|
|
3537
|
+
function qt(e) {
|
|
3538
|
+
return e in We;
|
|
3541
3539
|
}
|
|
3542
|
-
function
|
|
3543
|
-
if (!
|
|
3540
|
+
function Xn(e, t) {
|
|
3541
|
+
if (!qt(e))
|
|
3544
3542
|
return null;
|
|
3545
|
-
const r =
|
|
3546
|
-
return
|
|
3543
|
+
const r = Vn(e);
|
|
3544
|
+
return jn(r, t);
|
|
3547
3545
|
}
|
|
3548
|
-
function
|
|
3546
|
+
function zn(e) {
|
|
3549
3547
|
if (e == null)
|
|
3550
3548
|
return;
|
|
3551
|
-
const t =
|
|
3549
|
+
const t = ne(e);
|
|
3552
3550
|
for (let r = 0; r < t.length; r++) {
|
|
3553
3551
|
const n = t[r];
|
|
3554
|
-
if (
|
|
3552
|
+
if (qt(n))
|
|
3555
3553
|
return n;
|
|
3556
3554
|
}
|
|
3557
3555
|
}
|
|
3558
|
-
function
|
|
3559
|
-
delete C[e],
|
|
3556
|
+
function Jt(e, ...t) {
|
|
3557
|
+
delete C[e], re.update((r) => (r[e] = Qr.all([r[e] || {}, ...t]), r));
|
|
3560
3558
|
}
|
|
3561
|
-
|
|
3562
|
-
[
|
|
3559
|
+
W(
|
|
3560
|
+
[re],
|
|
3563
3561
|
([e]) => Object.keys(e)
|
|
3564
3562
|
);
|
|
3565
|
-
|
|
3566
|
-
const
|
|
3567
|
-
function
|
|
3568
|
-
|
|
3563
|
+
re.subscribe((e) => We = e);
|
|
3564
|
+
const fe = {};
|
|
3565
|
+
function Wn(e, t) {
|
|
3566
|
+
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
3569
3567
|
}
|
|
3570
|
-
function
|
|
3571
|
-
return
|
|
3568
|
+
function Yt(e) {
|
|
3569
|
+
return fe[e];
|
|
3572
3570
|
}
|
|
3573
|
-
function
|
|
3574
|
-
return
|
|
3575
|
-
const r =
|
|
3571
|
+
function Zn(e) {
|
|
3572
|
+
return ne(e).map((t) => {
|
|
3573
|
+
const r = Yt(t);
|
|
3576
3574
|
return [t, r ? [...r] : []];
|
|
3577
3575
|
}).filter(([, t]) => t.length > 0);
|
|
3578
3576
|
}
|
|
3579
|
-
function
|
|
3580
|
-
return e == null ? !1 :
|
|
3577
|
+
function me(e) {
|
|
3578
|
+
return e == null ? !1 : ne(e).some(
|
|
3581
3579
|
(t) => {
|
|
3582
3580
|
var r;
|
|
3583
|
-
return (r =
|
|
3581
|
+
return (r = Yt(t)) == null ? void 0 : r.size;
|
|
3584
3582
|
}
|
|
3585
3583
|
);
|
|
3586
3584
|
}
|
|
3587
|
-
function
|
|
3585
|
+
function Qn(e, t) {
|
|
3588
3586
|
return Promise.all(
|
|
3589
|
-
t.map((n) => (
|
|
3590
|
-
).then((n) =>
|
|
3591
|
-
}
|
|
3592
|
-
const
|
|
3593
|
-
function
|
|
3594
|
-
if (!
|
|
3595
|
-
return e in
|
|
3596
|
-
const t =
|
|
3597
|
-
return
|
|
3587
|
+
t.map((n) => (Wn(e, n), n().then((i) => i.default || i)))
|
|
3588
|
+
).then((n) => Jt(e, ...n));
|
|
3589
|
+
}
|
|
3590
|
+
const Q = {};
|
|
3591
|
+
function Kt(e) {
|
|
3592
|
+
if (!me(e))
|
|
3593
|
+
return e in Q ? Q[e] : Promise.resolve();
|
|
3594
|
+
const t = Zn(e);
|
|
3595
|
+
return Q[e] = Promise.all(
|
|
3598
3596
|
t.map(
|
|
3599
|
-
([r, n]) =>
|
|
3597
|
+
([r, n]) => Qn(r, n)
|
|
3600
3598
|
)
|
|
3601
3599
|
).then(() => {
|
|
3602
|
-
if (
|
|
3603
|
-
return
|
|
3604
|
-
delete
|
|
3605
|
-
}),
|
|
3600
|
+
if (me(e))
|
|
3601
|
+
return Kt(e);
|
|
3602
|
+
delete Q[e];
|
|
3603
|
+
}), Q[e];
|
|
3606
3604
|
}
|
|
3607
|
-
var
|
|
3605
|
+
var ct = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, Yn = (e, t) => {
|
|
3608
3606
|
var r = {};
|
|
3609
3607
|
for (var n in e)
|
|
3610
|
-
|
|
3611
|
-
if (e != null &&
|
|
3612
|
-
for (var n of
|
|
3613
|
-
t.indexOf(n) < 0 &&
|
|
3608
|
+
qn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3609
|
+
if (e != null && ct)
|
|
3610
|
+
for (var n of ct(e))
|
|
3611
|
+
t.indexOf(n) < 0 && Jn.call(e, n) && (r[n] = e[n]);
|
|
3614
3612
|
return r;
|
|
3615
3613
|
};
|
|
3616
|
-
const
|
|
3614
|
+
const Kn = {
|
|
3617
3615
|
number: {
|
|
3618
3616
|
scientific: { notation: "scientific" },
|
|
3619
3617
|
engineering: { notation: "engineering" },
|
|
@@ -3643,183 +3641,183 @@ const ei = {
|
|
|
3643
3641
|
}
|
|
3644
3642
|
}
|
|
3645
3643
|
};
|
|
3646
|
-
function
|
|
3644
|
+
function ei({ locale: e, id: t }) {
|
|
3647
3645
|
console.warn(
|
|
3648
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3646
|
+
`[svelte-i18n] The message "${t}" was not found in "${ne(
|
|
3649
3647
|
e
|
|
3650
|
-
).join('", "')}".${
|
|
3648
|
+
).join('", "')}".${me(L()) ? `
|
|
3651
3649
|
|
|
3652
3650
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3653
3651
|
);
|
|
3654
3652
|
}
|
|
3655
|
-
const
|
|
3653
|
+
const ti = {
|
|
3656
3654
|
fallbackLocale: null,
|
|
3657
3655
|
loadingDelay: 200,
|
|
3658
|
-
formats:
|
|
3656
|
+
formats: Kn,
|
|
3659
3657
|
warnOnMissingMessages: !0,
|
|
3660
3658
|
handleMissingMessage: void 0,
|
|
3661
3659
|
ignoreTag: !0
|
|
3662
|
-
},
|
|
3663
|
-
function
|
|
3664
|
-
return
|
|
3660
|
+
}, q = ti;
|
|
3661
|
+
function V() {
|
|
3662
|
+
return q;
|
|
3665
3663
|
}
|
|
3666
|
-
function
|
|
3667
|
-
const t = e, { formats: r } = t, n =
|
|
3664
|
+
function ri(e) {
|
|
3665
|
+
const t = e, { formats: r } = t, n = Yn(t, ["formats"]);
|
|
3668
3666
|
let i = e.fallbackLocale;
|
|
3669
3667
|
if (e.initialLocale)
|
|
3670
3668
|
try {
|
|
3671
|
-
|
|
3669
|
+
Zt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3672
3670
|
} catch (s) {
|
|
3673
3671
|
console.warn(
|
|
3674
3672
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3675
3673
|
);
|
|
3676
3674
|
}
|
|
3677
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3675
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = ei : console.warn(
|
|
3678
3676
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3679
|
-
)), Object.assign(
|
|
3680
|
-
}
|
|
3681
|
-
const
|
|
3682
|
-
var
|
|
3683
|
-
for (var r in t
|
|
3684
|
-
|
|
3685
|
-
if (
|
|
3686
|
-
for (var r of
|
|
3687
|
-
|
|
3677
|
+
)), 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);
|
|
3678
|
+
}
|
|
3679
|
+
const Le = pe(!1);
|
|
3680
|
+
var ni = Object.defineProperty, ii = Object.defineProperties, si = Object.getOwnPropertyDescriptors, mt = Object.getOwnPropertySymbols, oi = Object.prototype.hasOwnProperty, ai = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ui = (e, t) => {
|
|
3681
|
+
for (var r in t)
|
|
3682
|
+
oi.call(t, r) && dt(e, r, t[r]);
|
|
3683
|
+
if (mt)
|
|
3684
|
+
for (var r of mt(t))
|
|
3685
|
+
ai.call(t, r) && dt(e, r, t[r]);
|
|
3688
3686
|
return e;
|
|
3689
|
-
},
|
|
3690
|
-
let
|
|
3691
|
-
const
|
|
3687
|
+
}, hi = (e, t) => ii(e, si(t));
|
|
3688
|
+
let ke;
|
|
3689
|
+
const de = pe(null);
|
|
3692
3690
|
function bt(e) {
|
|
3693
3691
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3694
3692
|
}
|
|
3695
|
-
function
|
|
3693
|
+
function ne(e, t = V().fallbackLocale) {
|
|
3696
3694
|
const r = bt(e);
|
|
3697
3695
|
return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
|
|
3698
3696
|
}
|
|
3699
|
-
function
|
|
3700
|
-
return
|
|
3697
|
+
function L() {
|
|
3698
|
+
return ke != null ? ke : void 0;
|
|
3701
3699
|
}
|
|
3702
|
-
|
|
3703
|
-
|
|
3700
|
+
de.subscribe((e) => {
|
|
3701
|
+
ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3704
3702
|
});
|
|
3705
|
-
const
|
|
3706
|
-
if (e &&
|
|
3707
|
-
const { loadingDelay: t } =
|
|
3703
|
+
const li = (e) => {
|
|
3704
|
+
if (e && zn(e) && me(e)) {
|
|
3705
|
+
const { loadingDelay: t } = V();
|
|
3708
3706
|
let r;
|
|
3709
|
-
return typeof window != "undefined" &&
|
|
3710
|
-
() =>
|
|
3707
|
+
return typeof window != "undefined" && L() != null && t ? r = window.setTimeout(
|
|
3708
|
+
() => Le.set(!0),
|
|
3711
3709
|
t
|
|
3712
|
-
) :
|
|
3713
|
-
|
|
3710
|
+
) : Le.set(!0), Kt(e).then(() => {
|
|
3711
|
+
de.set(e);
|
|
3714
3712
|
}).finally(() => {
|
|
3715
|
-
clearTimeout(r),
|
|
3713
|
+
clearTimeout(r), Le.set(!1);
|
|
3716
3714
|
});
|
|
3717
3715
|
}
|
|
3718
|
-
return
|
|
3719
|
-
},
|
|
3720
|
-
set:
|
|
3721
|
-
}),
|
|
3716
|
+
return de.set(e);
|
|
3717
|
+
}, M = hi(ui({}, de), {
|
|
3718
|
+
set: li
|
|
3719
|
+
}), ye = (e) => {
|
|
3722
3720
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3723
3721
|
return (n) => {
|
|
3724
3722
|
const i = JSON.stringify(n);
|
|
3725
3723
|
return i in t ? t[i] : t[i] = e(n);
|
|
3726
3724
|
};
|
|
3727
3725
|
};
|
|
3728
|
-
var
|
|
3726
|
+
var fi = Object.defineProperty, be = Object.getOwnPropertySymbols, er = Object.prototype.hasOwnProperty, tr = Object.prototype.propertyIsEnumerable, pt = (e, t, r) => t in e ? fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ze = (e, t) => {
|
|
3729
3727
|
for (var r in t || (t = {}))
|
|
3730
|
-
|
|
3731
|
-
if (
|
|
3732
|
-
for (var r of
|
|
3733
|
-
|
|
3728
|
+
er.call(t, r) && pt(e, r, t[r]);
|
|
3729
|
+
if (be)
|
|
3730
|
+
for (var r of be(t))
|
|
3731
|
+
tr.call(t, r) && pt(e, r, t[r]);
|
|
3734
3732
|
return e;
|
|
3735
|
-
},
|
|
3733
|
+
}, Z = (e, t) => {
|
|
3736
3734
|
var r = {};
|
|
3737
3735
|
for (var n in e)
|
|
3738
|
-
|
|
3739
|
-
if (e != null &&
|
|
3740
|
-
for (var n of
|
|
3741
|
-
t.indexOf(n) < 0 &&
|
|
3736
|
+
er.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3737
|
+
if (e != null && be)
|
|
3738
|
+
for (var n of be(e))
|
|
3739
|
+
t.indexOf(n) < 0 && tr.call(e, n) && (r[n] = e[n]);
|
|
3742
3740
|
return r;
|
|
3743
3741
|
};
|
|
3744
|
-
const
|
|
3745
|
-
const { formats: r } =
|
|
3742
|
+
const ee = (e, t) => {
|
|
3743
|
+
const { formats: r } = V();
|
|
3746
3744
|
if (e in r && t in r[e])
|
|
3747
3745
|
return r[e][t];
|
|
3748
3746
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3749
|
-
},
|
|
3747
|
+
}, ci = ye(
|
|
3750
3748
|
(e) => {
|
|
3751
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3749
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3752
3750
|
if (r == null)
|
|
3753
3751
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3754
|
-
return n && (i =
|
|
3752
|
+
return n && (i = ee("number", n)), new Intl.NumberFormat(r, i);
|
|
3755
3753
|
}
|
|
3756
|
-
),
|
|
3754
|
+
), mi = ye(
|
|
3757
3755
|
(e) => {
|
|
3758
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3756
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3759
3757
|
if (r == null)
|
|
3760
3758
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3761
|
-
return n ? i =
|
|
3759
|
+
return n ? i = ee("date", n) : Object.keys(i).length === 0 && (i = ee("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3762
3760
|
}
|
|
3763
|
-
), di =
|
|
3761
|
+
), di = ye(
|
|
3764
3762
|
(e) => {
|
|
3765
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3763
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3766
3764
|
if (r == null)
|
|
3767
3765
|
throw new Error(
|
|
3768
3766
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3769
3767
|
);
|
|
3770
|
-
return n ? i =
|
|
3768
|
+
return n ? i = ee("time", n) : Object.keys(i).length === 0 && (i = ee("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3771
3769
|
}
|
|
3772
3770
|
), bi = (e = {}) => {
|
|
3773
3771
|
var t = e, {
|
|
3774
|
-
locale: r =
|
|
3775
|
-
} = t, n =
|
|
3772
|
+
locale: r = L()
|
|
3773
|
+
} = t, n = Z(t, [
|
|
3776
3774
|
"locale"
|
|
3777
3775
|
]);
|
|
3778
|
-
return
|
|
3779
|
-
},
|
|
3776
|
+
return ci(Ze({ locale: r }, n));
|
|
3777
|
+
}, pi = (e = {}) => {
|
|
3780
3778
|
var t = e, {
|
|
3781
|
-
locale: r =
|
|
3782
|
-
} = t, n =
|
|
3779
|
+
locale: r = L()
|
|
3780
|
+
} = t, n = Z(t, [
|
|
3783
3781
|
"locale"
|
|
3784
3782
|
]);
|
|
3785
|
-
return
|
|
3786
|
-
},
|
|
3783
|
+
return mi(Ze({ locale: r }, n));
|
|
3784
|
+
}, gi = (e = {}) => {
|
|
3787
3785
|
var t = e, {
|
|
3788
|
-
locale: r =
|
|
3789
|
-
} = t, n =
|
|
3786
|
+
locale: r = L()
|
|
3787
|
+
} = t, n = Z(t, [
|
|
3790
3788
|
"locale"
|
|
3791
3789
|
]);
|
|
3792
|
-
return di(
|
|
3793
|
-
},
|
|
3790
|
+
return di(Ze({ locale: r }, n));
|
|
3791
|
+
}, _i = ye(
|
|
3794
3792
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3795
|
-
(e, t =
|
|
3796
|
-
ignoreTag:
|
|
3793
|
+
(e, t = L()) => new Zt(e, t, V().formats, {
|
|
3794
|
+
ignoreTag: V().ignoreTag
|
|
3797
3795
|
})
|
|
3798
|
-
),
|
|
3796
|
+
), yi = (e, t = {}) => {
|
|
3799
3797
|
var r, n, i, s;
|
|
3800
|
-
let
|
|
3801
|
-
typeof e == "object" && (
|
|
3798
|
+
let o = t;
|
|
3799
|
+
typeof e == "object" && (o = e, e = o.id);
|
|
3802
3800
|
const {
|
|
3803
|
-
values:
|
|
3804
|
-
locale: l =
|
|
3801
|
+
values: a,
|
|
3802
|
+
locale: l = L(),
|
|
3805
3803
|
default: u
|
|
3806
|
-
} =
|
|
3804
|
+
} = o;
|
|
3807
3805
|
if (l == null)
|
|
3808
3806
|
throw new Error(
|
|
3809
3807
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3810
3808
|
);
|
|
3811
|
-
let h =
|
|
3809
|
+
let h = Qt(e, l);
|
|
3812
3810
|
if (!h)
|
|
3813
|
-
h = (s = (i = (n = (r =
|
|
3811
|
+
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
3812
|
else if (typeof h != "string")
|
|
3815
3813
|
return console.warn(
|
|
3816
3814
|
`[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.`
|
|
3817
3815
|
), h;
|
|
3818
|
-
if (!
|
|
3816
|
+
if (!a)
|
|
3819
3817
|
return h;
|
|
3820
3818
|
let c = h;
|
|
3821
3819
|
try {
|
|
3822
|
-
c =
|
|
3820
|
+
c = _i(h, l).format(a);
|
|
3823
3821
|
} catch (m) {
|
|
3824
3822
|
m instanceof Error && console.warn(
|
|
3825
3823
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3827,18 +3825,18 @@ const te = (e, t) => {
|
|
|
3827
3825
|
);
|
|
3828
3826
|
}
|
|
3829
3827
|
return c;
|
|
3830
|
-
}, xi = (e, t) =>
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
function
|
|
3828
|
+
}, 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);
|
|
3829
|
+
W([M], () => xi);
|
|
3830
|
+
W([M], () => Ei);
|
|
3831
|
+
W([M], () => vi);
|
|
3832
|
+
W([M, re], () => Hi);
|
|
3833
|
+
function Ti(e, t) {
|
|
3836
3834
|
if (e) {
|
|
3837
3835
|
const r = document.createElement("style");
|
|
3838
3836
|
r.innerHTML = t, e.appendChild(r);
|
|
3839
3837
|
}
|
|
3840
3838
|
}
|
|
3841
|
-
function
|
|
3839
|
+
function wi(e, t) {
|
|
3842
3840
|
const r = new URL(t);
|
|
3843
3841
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3844
3842
|
const i = document.createElement("style");
|
|
@@ -3847,7 +3845,7 @@ function Si(e, t) {
|
|
|
3847
3845
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3848
3846
|
});
|
|
3849
3847
|
}
|
|
3850
|
-
function
|
|
3848
|
+
function Si(e, t, r) {
|
|
3851
3849
|
if (window.emMessageBus) {
|
|
3852
3850
|
const n = document.createElement("style");
|
|
3853
3851
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3855,15 +3853,15 @@ function Ai(e, t, r) {
|
|
|
3855
3853
|
});
|
|
3856
3854
|
}
|
|
3857
3855
|
}
|
|
3858
|
-
function
|
|
3859
|
-
|
|
3856
|
+
function gt(e, t) {
|
|
3857
|
+
Jt(e, t);
|
|
3860
3858
|
}
|
|
3861
|
-
function
|
|
3862
|
-
|
|
3859
|
+
function Ai(e) {
|
|
3860
|
+
ri({
|
|
3863
3861
|
fallbackLocale: "en"
|
|
3864
|
-
}),
|
|
3862
|
+
}), M.set(e);
|
|
3865
3863
|
}
|
|
3866
|
-
const
|
|
3864
|
+
const _t = {
|
|
3867
3865
|
en: {
|
|
3868
3866
|
header: {
|
|
3869
3867
|
general: "Cashier",
|
|
@@ -3886,18 +3884,18 @@ const yt = {
|
|
|
3886
3884
|
}
|
|
3887
3885
|
}
|
|
3888
3886
|
};
|
|
3889
|
-
function
|
|
3890
|
-
|
|
3887
|
+
function Oi(e) {
|
|
3888
|
+
mr(e, "svelte-bbilb", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--mmw--header-height, 40px);background-color:var(--mmw--color-grey-105, #E8E9EB);width:100%;border-radius:6px 6px 0 0}.CashierHeaderLeftButton{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;position:absolute;display:flex;align-items:center;font-variant:all-small-caps;height:32px;left:7px;gap:2px;cursor:pointer}.CashierHeaderLeftButton svg path{fill:var(--mmw--color-grey-10, #111)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;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}");
|
|
3891
3889
|
}
|
|
3892
|
-
const Ci = (e) => ({}),
|
|
3893
|
-
function
|
|
3890
|
+
const Ci = (e) => ({}), yt = (e) => ({}), Pi = (e) => ({}), xt = (e) => ({}), Li = (e) => ({}), Et = (e) => ({});
|
|
3891
|
+
function vt(e) {
|
|
3894
3892
|
let t, r, n;
|
|
3895
3893
|
return {
|
|
3896
3894
|
c() {
|
|
3897
|
-
t =
|
|
3895
|
+
t = X("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><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" fill="#111111"></path></svg>', z(t, "class", "CashierHeaderLeftButton");
|
|
3898
3896
|
},
|
|
3899
3897
|
m(i, s) {
|
|
3900
|
-
|
|
3898
|
+
I(i, t, s), r || (n = Ot(
|
|
3901
3899
|
t,
|
|
3902
3900
|
"click",
|
|
3903
3901
|
/*back*/
|
|
@@ -3906,32 +3904,32 @@ function Ht(e) {
|
|
|
3906
3904
|
},
|
|
3907
3905
|
p: T,
|
|
3908
3906
|
d(i) {
|
|
3909
|
-
i &&
|
|
3907
|
+
i && P(t), r = !1, n();
|
|
3910
3908
|
}
|
|
3911
3909
|
};
|
|
3912
3910
|
}
|
|
3913
|
-
function
|
|
3911
|
+
function Ni(e) {
|
|
3914
3912
|
let t, r = (
|
|
3915
3913
|
/*backButton*/
|
|
3916
|
-
e[1] &&
|
|
3914
|
+
e[1] && vt(e)
|
|
3917
3915
|
);
|
|
3918
3916
|
return {
|
|
3919
3917
|
c() {
|
|
3920
|
-
r && r.c(), t =
|
|
3918
|
+
r && r.c(), t = At();
|
|
3921
3919
|
},
|
|
3922
3920
|
m(n, i) {
|
|
3923
|
-
r && r.m(n, i),
|
|
3921
|
+
r && r.m(n, i), I(n, t, i);
|
|
3924
3922
|
},
|
|
3925
3923
|
p(n, i) {
|
|
3926
3924
|
/*backButton*/
|
|
3927
|
-
n[1] ? r ? r.p(n, i) : (r =
|
|
3925
|
+
n[1] ? r ? r.p(n, i) : (r = vt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3928
3926
|
},
|
|
3929
3927
|
d(n) {
|
|
3930
|
-
n &&
|
|
3928
|
+
n && P(t), r && r.d(n);
|
|
3931
3929
|
}
|
|
3932
3930
|
};
|
|
3933
3931
|
}
|
|
3934
|
-
function
|
|
3932
|
+
function Ii(e) {
|
|
3935
3933
|
let t, r = (
|
|
3936
3934
|
/*$_*/
|
|
3937
3935
|
e[4](
|
|
@@ -3941,10 +3939,10 @@ function Mi(e) {
|
|
|
3941
3939
|
), n;
|
|
3942
3940
|
return {
|
|
3943
3941
|
c() {
|
|
3944
|
-
t =
|
|
3942
|
+
t = X("span"), n = Xe(r), z(t, "class", "CashierHeaderTitle");
|
|
3945
3943
|
},
|
|
3946
3944
|
m(i, s) {
|
|
3947
|
-
|
|
3945
|
+
I(i, t, s), ce(t, n);
|
|
3948
3946
|
},
|
|
3949
3947
|
p(i, s) {
|
|
3950
3948
|
s & /*$_, titleText*/
|
|
@@ -3952,21 +3950,21 @@ function Mi(e) {
|
|
|
3952
3950
|
i[4](
|
|
3953
3951
|
/*titleText*/
|
|
3954
3952
|
i[2]
|
|
3955
|
-
) + "") &&
|
|
3953
|
+
) + "") && gr(n, r);
|
|
3956
3954
|
},
|
|
3957
3955
|
d(i) {
|
|
3958
|
-
i &&
|
|
3956
|
+
i && P(t);
|
|
3959
3957
|
}
|
|
3960
3958
|
};
|
|
3961
3959
|
}
|
|
3962
|
-
function
|
|
3960
|
+
function Ht(e) {
|
|
3963
3961
|
let t, r, n;
|
|
3964
3962
|
return {
|
|
3965
3963
|
c() {
|
|
3966
|
-
t =
|
|
3964
|
+
t = X("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><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" fill="#111111"></path></svg>', z(t, "class", "CashierHeaderRightButton");
|
|
3967
3965
|
},
|
|
3968
3966
|
m(i, s) {
|
|
3969
|
-
|
|
3967
|
+
I(i, t, s), r || (n = Ot(
|
|
3970
3968
|
t,
|
|
3971
3969
|
"click",
|
|
3972
3970
|
/*close*/
|
|
@@ -3975,216 +3973,216 @@ function Bt(e) {
|
|
|
3975
3973
|
},
|
|
3976
3974
|
p: T,
|
|
3977
3975
|
d(i) {
|
|
3978
|
-
i &&
|
|
3976
|
+
i && P(t), r = !1, n();
|
|
3979
3977
|
}
|
|
3980
3978
|
};
|
|
3981
3979
|
}
|
|
3982
|
-
function
|
|
3980
|
+
function Mi(e) {
|
|
3983
3981
|
let t, r = (
|
|
3984
3982
|
/*closeButton*/
|
|
3985
|
-
e[3] &&
|
|
3983
|
+
e[3] && Ht(e)
|
|
3986
3984
|
);
|
|
3987
3985
|
return {
|
|
3988
3986
|
c() {
|
|
3989
|
-
r && r.c(), t =
|
|
3987
|
+
r && r.c(), t = At();
|
|
3990
3988
|
},
|
|
3991
3989
|
m(n, i) {
|
|
3992
|
-
r && r.m(n, i),
|
|
3990
|
+
r && r.m(n, i), I(n, t, i);
|
|
3993
3991
|
},
|
|
3994
3992
|
p(n, i) {
|
|
3995
3993
|
/*closeButton*/
|
|
3996
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
3994
|
+
n[3] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3997
3995
|
},
|
|
3998
3996
|
d(n) {
|
|
3999
|
-
n &&
|
|
3997
|
+
n && P(t), r && r.d(n);
|
|
4000
3998
|
}
|
|
4001
3999
|
};
|
|
4002
4000
|
}
|
|
4003
|
-
function
|
|
4001
|
+
function $i(e) {
|
|
4004
4002
|
let t, r, n, i;
|
|
4005
4003
|
const s = (
|
|
4006
4004
|
/*#slots*/
|
|
4007
4005
|
e[16].leftButton
|
|
4008
|
-
),
|
|
4006
|
+
), o = Ee(
|
|
4009
4007
|
s,
|
|
4010
4008
|
e,
|
|
4011
4009
|
/*$$scope*/
|
|
4012
4010
|
e[15],
|
|
4013
|
-
|
|
4014
|
-
),
|
|
4011
|
+
Et
|
|
4012
|
+
), a = o || Ni(e), l = (
|
|
4015
4013
|
/*#slots*/
|
|
4016
4014
|
e[16].title
|
|
4017
|
-
), u =
|
|
4015
|
+
), u = Ee(
|
|
4018
4016
|
l,
|
|
4019
4017
|
e,
|
|
4020
4018
|
/*$$scope*/
|
|
4021
4019
|
e[15],
|
|
4022
4020
|
xt
|
|
4023
|
-
), h = u ||
|
|
4021
|
+
), h = u || Ii(e), c = (
|
|
4024
4022
|
/*#slots*/
|
|
4025
4023
|
e[16].rightButton
|
|
4026
|
-
), m =
|
|
4024
|
+
), m = Ee(
|
|
4027
4025
|
c,
|
|
4028
4026
|
e,
|
|
4029
4027
|
/*$$scope*/
|
|
4030
4028
|
e[15],
|
|
4031
|
-
|
|
4032
|
-
),
|
|
4029
|
+
yt
|
|
4030
|
+
), d = m || Mi(e);
|
|
4033
4031
|
return {
|
|
4034
4032
|
c() {
|
|
4035
|
-
t =
|
|
4033
|
+
t = X("div"), a.c(), r = tt(), h.c(), n = tt(), d.c(), z(t, "class", "CashierHeader");
|
|
4036
4034
|
},
|
|
4037
4035
|
m(f, _) {
|
|
4038
|
-
|
|
4036
|
+
I(f, t, _), a.m(t, null), ce(t, r), h.m(t, null), ce(t, n), d.m(t, null), e[17](t), i = !0;
|
|
4039
4037
|
},
|
|
4040
4038
|
p(f, [_]) {
|
|
4041
|
-
|
|
4042
|
-
32768) &&
|
|
4043
|
-
|
|
4039
|
+
o ? o.p && (!i || _ & /*$$scope*/
|
|
4040
|
+
32768) && He(
|
|
4041
|
+
o,
|
|
4044
4042
|
s,
|
|
4045
4043
|
f,
|
|
4046
4044
|
/*$$scope*/
|
|
4047
4045
|
f[15],
|
|
4048
|
-
i ?
|
|
4046
|
+
i ? ve(
|
|
4049
4047
|
s,
|
|
4050
4048
|
/*$$scope*/
|
|
4051
4049
|
f[15],
|
|
4052
4050
|
_,
|
|
4053
|
-
|
|
4054
|
-
) :
|
|
4051
|
+
Li
|
|
4052
|
+
) : Be(
|
|
4055
4053
|
/*$$scope*/
|
|
4056
4054
|
f[15]
|
|
4057
4055
|
),
|
|
4058
|
-
|
|
4059
|
-
) :
|
|
4060
|
-
2) &&
|
|
4061
|
-
32768) &&
|
|
4056
|
+
Et
|
|
4057
|
+
) : a.p && (!i || _ & /*backButton*/
|
|
4058
|
+
2) && a.p(f, i ? _ : -1), u ? u.p && (!i || _ & /*$$scope*/
|
|
4059
|
+
32768) && He(
|
|
4062
4060
|
u,
|
|
4063
4061
|
l,
|
|
4064
4062
|
f,
|
|
4065
4063
|
/*$$scope*/
|
|
4066
4064
|
f[15],
|
|
4067
|
-
i ?
|
|
4065
|
+
i ? ve(
|
|
4068
4066
|
l,
|
|
4069
4067
|
/*$$scope*/
|
|
4070
4068
|
f[15],
|
|
4071
4069
|
_,
|
|
4072
|
-
|
|
4073
|
-
) :
|
|
4070
|
+
Pi
|
|
4071
|
+
) : Be(
|
|
4074
4072
|
/*$$scope*/
|
|
4075
4073
|
f[15]
|
|
4076
4074
|
),
|
|
4077
4075
|
xt
|
|
4078
|
-
) : h
|
|
4076
|
+
) : h.p && (!i || _ & /*$_, titleText*/
|
|
4079
4077
|
20) && h.p(f, i ? _ : -1), m ? m.p && (!i || _ & /*$$scope*/
|
|
4080
|
-
32768) &&
|
|
4078
|
+
32768) && He(
|
|
4081
4079
|
m,
|
|
4082
4080
|
c,
|
|
4083
4081
|
f,
|
|
4084
4082
|
/*$$scope*/
|
|
4085
4083
|
f[15],
|
|
4086
|
-
i ?
|
|
4084
|
+
i ? ve(
|
|
4087
4085
|
c,
|
|
4088
4086
|
/*$$scope*/
|
|
4089
4087
|
f[15],
|
|
4090
4088
|
_,
|
|
4091
4089
|
Ci
|
|
4092
|
-
) :
|
|
4090
|
+
) : Be(
|
|
4093
4091
|
/*$$scope*/
|
|
4094
4092
|
f[15]
|
|
4095
4093
|
),
|
|
4096
|
-
|
|
4097
|
-
) :
|
|
4098
|
-
8) &&
|
|
4094
|
+
yt
|
|
4095
|
+
) : d.p && (!i || _ & /*closeButton*/
|
|
4096
|
+
8) && d.p(f, i ? _ : -1);
|
|
4099
4097
|
},
|
|
4100
4098
|
i(f) {
|
|
4101
|
-
i || (
|
|
4099
|
+
i || (ue(a, f), ue(h, f), ue(d, f), i = !0);
|
|
4102
4100
|
},
|
|
4103
4101
|
o(f) {
|
|
4104
|
-
|
|
4102
|
+
we(a, f), we(h, f), we(d, f), i = !1;
|
|
4105
4103
|
},
|
|
4106
4104
|
d(f) {
|
|
4107
|
-
f &&
|
|
4105
|
+
f && P(t), a.d(f), h.d(f), d.d(f), e[17](null);
|
|
4108
4106
|
}
|
|
4109
4107
|
};
|
|
4110
4108
|
}
|
|
4111
|
-
function
|
|
4109
|
+
function Ri(e, t, r) {
|
|
4112
4110
|
let n;
|
|
4113
|
-
|
|
4114
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling:
|
|
4115
|
-
const
|
|
4111
|
+
cr(e, Bi, (g) => r(4, n = g));
|
|
4112
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: o = "" } = t, { clientstylingurl: a = "" } = 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;
|
|
4113
|
+
const O = () => {
|
|
4116
4114
|
fetch(l).then((g) => g.json()).then((g) => {
|
|
4117
|
-
Object.keys(g).forEach((
|
|
4118
|
-
|
|
4115
|
+
Object.keys(g).forEach((Qe) => {
|
|
4116
|
+
gt(Qe, g[Qe]);
|
|
4119
4117
|
});
|
|
4120
4118
|
}).catch((g) => {
|
|
4121
4119
|
console.log(g);
|
|
4122
4120
|
});
|
|
4123
4121
|
};
|
|
4124
|
-
Object.keys(
|
|
4125
|
-
|
|
4122
|
+
Object.keys(_t).forEach((g) => {
|
|
4123
|
+
gt(g, _t[g]);
|
|
4126
4124
|
});
|
|
4127
4125
|
const H = () => {
|
|
4128
|
-
|
|
4129
|
-
},
|
|
4126
|
+
Ai(c);
|
|
4127
|
+
}, N = () => {
|
|
4130
4128
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4131
|
-
},
|
|
4129
|
+
}, S = () => {
|
|
4132
4130
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4133
|
-
},
|
|
4131
|
+
}, $ = () => {
|
|
4134
4132
|
r(1, _ = !!u && u !== "false");
|
|
4135
|
-
},
|
|
4136
|
-
r(3,
|
|
4137
|
-
},
|
|
4133
|
+
}, ie = () => {
|
|
4134
|
+
r(3, A = !!m && m !== "false");
|
|
4135
|
+
}, nr = () => {
|
|
4138
4136
|
r(2, v = h || "header.general");
|
|
4139
4137
|
};
|
|
4140
4138
|
xr(() => () => {
|
|
4141
4139
|
});
|
|
4142
|
-
function
|
|
4143
|
-
|
|
4140
|
+
function ir(g) {
|
|
4141
|
+
Ne[g ? "unshift" : "push"](() => {
|
|
4144
4142
|
f = g, r(0, f);
|
|
4145
4143
|
});
|
|
4146
4144
|
}
|
|
4147
4145
|
return e.$$set = (g) => {
|
|
4148
|
-
"clientstyling" in g && r(7,
|
|
4146
|
+
"clientstyling" in g && r(7, o = g.clientstyling), "clientstylingurl" in g && r(8, a = 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);
|
|
4149
4147
|
}, e.$$.update = () => {
|
|
4150
4148
|
e.$$.dirty & /*lang*/
|
|
4151
4149
|
4096 && c && H(), e.$$.dirty & /*lang, title*/
|
|
4152
|
-
6144 && c && h &&
|
|
4153
|
-
129 &&
|
|
4154
|
-
257 &&
|
|
4155
|
-
16385 &&
|
|
4156
|
-
4608 && c && l &&
|
|
4157
|
-
1024 && u &&
|
|
4158
|
-
8192 && m &&
|
|
4150
|
+
6144 && c && h && nr(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4151
|
+
129 && o && f && Ti(f, o), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4152
|
+
257 && a && f && wi(f, a), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4153
|
+
16385 && d && f && Si(f, `${d}.Style`), e.$$.dirty & /*lang, translationurl*/
|
|
4154
|
+
4608 && c && l && O(), e.$$.dirty & /*showbackbutton*/
|
|
4155
|
+
1024 && u && $(), e.$$.dirty & /*showclosebutton*/
|
|
4156
|
+
8192 && m && ie();
|
|
4159
4157
|
}, [
|
|
4160
4158
|
f,
|
|
4161
4159
|
_,
|
|
4162
4160
|
v,
|
|
4163
|
-
O,
|
|
4164
|
-
n,
|
|
4165
|
-
I,
|
|
4166
4161
|
A,
|
|
4167
|
-
|
|
4162
|
+
n,
|
|
4163
|
+
N,
|
|
4164
|
+
S,
|
|
4168
4165
|
o,
|
|
4166
|
+
a,
|
|
4169
4167
|
l,
|
|
4170
4168
|
u,
|
|
4171
4169
|
h,
|
|
4172
4170
|
c,
|
|
4173
4171
|
m,
|
|
4174
|
-
|
|
4172
|
+
d,
|
|
4175
4173
|
s,
|
|
4176
4174
|
i,
|
|
4177
|
-
|
|
4175
|
+
ir
|
|
4178
4176
|
];
|
|
4179
4177
|
}
|
|
4180
|
-
class
|
|
4178
|
+
class rr extends Pr {
|
|
4181
4179
|
constructor(t) {
|
|
4182
|
-
super(),
|
|
4180
|
+
super(), Or(
|
|
4183
4181
|
this,
|
|
4184
4182
|
t,
|
|
4185
|
-
Ui,
|
|
4186
4183
|
Ri,
|
|
4187
|
-
|
|
4184
|
+
$i,
|
|
4185
|
+
Tt,
|
|
4188
4186
|
{
|
|
4189
4187
|
clientstyling: 7,
|
|
4190
4188
|
clientstylingurl: 8,
|
|
@@ -4195,7 +4193,7 @@ class nr extends Lr {
|
|
|
4195
4193
|
showclosebutton: 13,
|
|
4196
4194
|
mbsource: 14
|
|
4197
4195
|
},
|
|
4198
|
-
|
|
4196
|
+
Oi
|
|
4199
4197
|
);
|
|
4200
4198
|
}
|
|
4201
4199
|
get clientstyling() {
|
|
@@ -4247,35 +4245,35 @@ class nr extends Lr {
|
|
|
4247
4245
|
this.$$set({ mbsource: t }), w();
|
|
4248
4246
|
}
|
|
4249
4247
|
}
|
|
4250
|
-
Cr(
|
|
4251
|
-
const
|
|
4248
|
+
Cr(rr, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4249
|
+
const Fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4252
4250
|
__proto__: null,
|
|
4253
|
-
default:
|
|
4251
|
+
default: rr
|
|
4254
4252
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4255
4253
|
export {
|
|
4256
|
-
$,
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4254
|
+
M as $,
|
|
4255
|
+
Fi as C,
|
|
4256
|
+
Pr as S,
|
|
4257
|
+
Jt as a,
|
|
4258
|
+
Or as b,
|
|
4261
4259
|
Cr as c,
|
|
4262
|
-
|
|
4263
|
-
|
|
4260
|
+
mr as d,
|
|
4261
|
+
X as e,
|
|
4264
4262
|
w as f,
|
|
4265
|
-
|
|
4263
|
+
tt as g,
|
|
4266
4264
|
Gi as h,
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4265
|
+
ri as i,
|
|
4266
|
+
Di as j,
|
|
4267
|
+
z as k,
|
|
4268
|
+
I as l,
|
|
4269
|
+
ce as m,
|
|
4270
|
+
Ot as n,
|
|
4271
|
+
T as o,
|
|
4272
|
+
P as p,
|
|
4275
4273
|
xr as q,
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4274
|
+
Ne as r,
|
|
4275
|
+
Tt as s,
|
|
4276
|
+
Ti as t,
|
|
4277
|
+
wi as u,
|
|
4278
|
+
Si as v
|
|
4281
4279
|
};
|