@everymatrix/cashier-header 1.61.1 → 1.62.1
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-BmZuSEvx.js → CashierHeader-BKLN40IC.js} +789 -783
- package/components/CashierHeader-D70465F5.cjs +5 -0
- package/components/{CashierHeader-Bqh4iVLj.js → CashierHeader-DrPNQb80.js} +799 -793
- package/es2015/cashier-header.cjs +1 -1
- package/es2015/cashier-header.js +1 -1
- package/esnext/cashier-header.js +1 -1
- package/package.json +1 -1
- package/components/CashierHeader-DCR3Xw4C.cjs +0 -18
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var or = Object.defineProperty, ar = Object.defineProperties;
|
|
2
|
+
var ur = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var qe = Object.getOwnPropertySymbols;
|
|
4
|
+
var hr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ve = (e, t, r) => t in e ? or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
hr.call(t, r) && ve(e, r, t[r]);
|
|
8
|
+
if (qe)
|
|
9
|
+
for (var r of qe(t))
|
|
10
|
+
lr.call(t, r) && ve(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var B = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, Ke = (e, t) => ar(e, ur(t));
|
|
13
|
+
var B = (e, t, r) => (ve(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
o(r.next(l));
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
18
|
+
} catch (u) {
|
|
19
|
+
i(u);
|
|
20
20
|
}
|
|
21
21
|
}, a = (l) => {
|
|
22
22
|
try {
|
|
23
23
|
o(r.throw(l));
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
24
|
+
} catch (u) {
|
|
25
|
+
i(u);
|
|
26
26
|
}
|
|
27
27
|
}, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, a);
|
|
28
28
|
o((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function T() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function fr(e, t) {
|
|
33
33
|
for (const r in t)
|
|
34
34
|
e[r] = t[r];
|
|
35
35
|
return (
|
|
@@ -37,25 +37,25 @@ function ur(e, t) {
|
|
|
37
37
|
e
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Tt(e) {
|
|
41
41
|
return e();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function tt() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
e.forEach(
|
|
46
|
+
function re(e) {
|
|
47
|
+
e.forEach(Tt);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function We(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function wt(e, t) {
|
|
53
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function cr(e) {
|
|
56
56
|
return Object.keys(e).length === 0;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function St(e, ...t) {
|
|
59
59
|
if (e == null) {
|
|
60
60
|
for (const n of t)
|
|
61
61
|
n(void 0);
|
|
@@ -64,19 +64,19 @@ function Tt(e, ...t) {
|
|
|
64
64
|
const r = e.subscribe(...t);
|
|
65
65
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
e.$$.on_destroy.push(
|
|
67
|
+
function mr(e, t, r) {
|
|
68
|
+
e.$$.on_destroy.push(St(t, r));
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function He(e, t, r, n) {
|
|
71
71
|
if (e) {
|
|
72
|
-
const i =
|
|
72
|
+
const i = At(e, t, r, n);
|
|
73
73
|
return e[0](i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return e[1] && n ?
|
|
76
|
+
function At(e, t, r, n) {
|
|
77
|
+
return e[1] && n ? fr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Be(e, t, r, n) {
|
|
80
80
|
if (e[2] && n) {
|
|
81
81
|
const i = e[2](n(r));
|
|
82
82
|
if (t.dirty === void 0)
|
|
@@ -91,13 +91,13 @@ function ve(e, t, r, n) {
|
|
|
91
91
|
}
|
|
92
92
|
return t.dirty;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Te(e, t, r, n, i, s) {
|
|
95
95
|
if (i) {
|
|
96
|
-
const a =
|
|
96
|
+
const a = At(t, r, n, s);
|
|
97
97
|
e.p(a, i);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function we(e) {
|
|
101
101
|
if (e.ctx.length > 32) {
|
|
102
102
|
const t = [], r = e.ctx.length / 32;
|
|
103
103
|
for (let n = 0; n < r; n++)
|
|
@@ -106,17 +106,17 @@ function Be(e) {
|
|
|
106
106
|
}
|
|
107
107
|
return -1;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function me(e, t) {
|
|
110
110
|
e.appendChild(t);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
const n =
|
|
112
|
+
function pr(e, t, r) {
|
|
113
|
+
const n = dr(e);
|
|
114
114
|
if (!n.getElementById(t)) {
|
|
115
|
-
const i =
|
|
116
|
-
i.id = t, i.textContent = r,
|
|
115
|
+
const i = Z("style");
|
|
116
|
+
i.id = t, i.textContent = r, br(n, i);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function dr(e) {
|
|
120
120
|
if (!e)
|
|
121
121
|
return document;
|
|
122
122
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -126,45 +126,45 @@ function mr(e) {
|
|
|
126
126
|
t
|
|
127
127
|
) : e.ownerDocument;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
return
|
|
129
|
+
function br(e, t) {
|
|
130
|
+
return me(
|
|
131
131
|
/** @type {Document} */
|
|
132
132
|
e.head || e,
|
|
133
133
|
t
|
|
134
134
|
), t.sheet;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function $(e, t, r) {
|
|
137
137
|
e.insertBefore(t, r || null);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function L(e) {
|
|
140
140
|
e.parentNode && e.parentNode.removeChild(e);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function Z(e) {
|
|
143
143
|
return document.createElement(e);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function ze(e) {
|
|
146
146
|
return document.createTextNode(e);
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
return
|
|
148
|
+
function rt() {
|
|
149
|
+
return ze(" ");
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
return
|
|
151
|
+
function Ot() {
|
|
152
|
+
return ze("");
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Pt(e, t, r, n) {
|
|
155
155
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function ne(e, t, r) {
|
|
158
158
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function gr(e) {
|
|
161
161
|
return Array.from(e.childNodes);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function _r(e, t) {
|
|
164
164
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
165
165
|
t);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function yr(e) {
|
|
168
168
|
const t = {};
|
|
169
169
|
return e.childNodes.forEach(
|
|
170
170
|
/** @param {Element} node */
|
|
@@ -173,97 +173,97 @@ function gr(e) {
|
|
|
173
173
|
}
|
|
174
174
|
), t;
|
|
175
175
|
}
|
|
176
|
-
let
|
|
177
|
-
function
|
|
178
|
-
|
|
176
|
+
let Ze;
|
|
177
|
+
function K(e) {
|
|
178
|
+
Ze = e;
|
|
179
179
|
}
|
|
180
|
-
const
|
|
181
|
-
let
|
|
182
|
-
const
|
|
183
|
-
let
|
|
184
|
-
function
|
|
185
|
-
|
|
180
|
+
const j = [], Me = [];
|
|
181
|
+
let k = [];
|
|
182
|
+
const nt = [], Er = /* @__PURE__ */ Promise.resolve();
|
|
183
|
+
let $e = !1;
|
|
184
|
+
function xr() {
|
|
185
|
+
$e || ($e = !0, Er.then(O));
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
|
|
187
|
+
function Re(e) {
|
|
188
|
+
k.push(e);
|
|
189
189
|
}
|
|
190
|
-
const
|
|
191
|
-
let
|
|
192
|
-
function
|
|
193
|
-
if (
|
|
190
|
+
const Se = /* @__PURE__ */ new Set();
|
|
191
|
+
let G = 0;
|
|
192
|
+
function O() {
|
|
193
|
+
if (G !== 0)
|
|
194
194
|
return;
|
|
195
|
-
const e =
|
|
195
|
+
const e = Ze;
|
|
196
196
|
do {
|
|
197
197
|
try {
|
|
198
|
-
for (;
|
|
199
|
-
const t =
|
|
200
|
-
|
|
198
|
+
for (; G < j.length; ) {
|
|
199
|
+
const t = j[G];
|
|
200
|
+
G++, K(t), vr(t.$$);
|
|
201
201
|
}
|
|
202
202
|
} catch (t) {
|
|
203
|
-
throw
|
|
203
|
+
throw j.length = 0, G = 0, t;
|
|
204
204
|
}
|
|
205
|
-
for (
|
|
206
|
-
|
|
207
|
-
for (let t = 0; t <
|
|
208
|
-
const r =
|
|
209
|
-
|
|
205
|
+
for (K(null), j.length = 0, G = 0; Me.length; )
|
|
206
|
+
Me.pop()();
|
|
207
|
+
for (let t = 0; t < k.length; t += 1) {
|
|
208
|
+
const r = k[t];
|
|
209
|
+
Se.has(r) || (Se.add(r), r());
|
|
210
210
|
}
|
|
211
|
-
|
|
212
|
-
} while (
|
|
213
|
-
for (;
|
|
214
|
-
|
|
215
|
-
|
|
211
|
+
k.length = 0;
|
|
212
|
+
} while (j.length);
|
|
213
|
+
for (; nt.length; )
|
|
214
|
+
nt.pop()();
|
|
215
|
+
$e = !1, Se.clear(), K(e);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function vr(e) {
|
|
218
218
|
if (e.fragment !== null) {
|
|
219
|
-
e.update(),
|
|
219
|
+
e.update(), re(e.before_update);
|
|
220
220
|
const t = e.dirty;
|
|
221
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
221
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function Hr(e) {
|
|
225
225
|
const t = [], r = [];
|
|
226
|
-
|
|
226
|
+
k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
|
|
227
227
|
}
|
|
228
|
-
const
|
|
229
|
-
let
|
|
228
|
+
const ue = /* @__PURE__ */ new Set();
|
|
229
|
+
let Br;
|
|
230
230
|
function he(e, t) {
|
|
231
|
-
e && e.i && (
|
|
231
|
+
e && e.i && (ue.delete(e), e.i(t));
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function Ae(e, t, r, n) {
|
|
234
234
|
if (e && e.o) {
|
|
235
|
-
if (
|
|
235
|
+
if (ue.has(e))
|
|
236
236
|
return;
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
ue.add(e), Br.c.push(() => {
|
|
238
|
+
ue.delete(e);
|
|
239
239
|
}), e.o(t);
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function Tr(e, t, r) {
|
|
243
243
|
const { fragment: n, after_update: i } = e.$$;
|
|
244
|
-
n && n.m(t, r),
|
|
245
|
-
const s = e.$$.on_mount.map(
|
|
246
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
247
|
-
}), i.forEach(
|
|
244
|
+
n && n.m(t, r), Re(() => {
|
|
245
|
+
const s = e.$$.on_mount.map(Tt).filter(We);
|
|
246
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
|
|
247
|
+
}), i.forEach(Re);
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function wr(e, t) {
|
|
250
250
|
const r = e.$$;
|
|
251
|
-
r.fragment !== null && (
|
|
251
|
+
r.fragment !== null && (Hr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
252
252
|
}
|
|
253
|
-
function
|
|
254
|
-
e.$$.dirty[0] === -1 && (
|
|
253
|
+
function Sr(e, t) {
|
|
254
|
+
e.$$.dirty[0] === -1 && (j.push(e), xr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
255
255
|
}
|
|
256
|
-
function
|
|
257
|
-
const l =
|
|
258
|
-
|
|
259
|
-
const
|
|
256
|
+
function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
257
|
+
const l = Ze;
|
|
258
|
+
K(e);
|
|
259
|
+
const u = e.$$ = {
|
|
260
260
|
fragment: null,
|
|
261
261
|
ctx: [],
|
|
262
262
|
// state
|
|
263
263
|
props: s,
|
|
264
264
|
update: T,
|
|
265
265
|
not_equal: i,
|
|
266
|
-
bound:
|
|
266
|
+
bound: tt(),
|
|
267
267
|
// lifecycle
|
|
268
268
|
on_mount: [],
|
|
269
269
|
on_destroy: [],
|
|
@@ -272,25 +272,25 @@ function wr(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
272
272
|
after_update: [],
|
|
273
273
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
274
274
|
// everything else
|
|
275
|
-
callbacks:
|
|
275
|
+
callbacks: tt(),
|
|
276
276
|
dirty: o,
|
|
277
277
|
skip_bound: !1,
|
|
278
278
|
root: t.target || l.$$.root
|
|
279
279
|
};
|
|
280
|
-
a && a(
|
|
281
|
-
let
|
|
282
|
-
if (
|
|
280
|
+
a && a(u.root);
|
|
281
|
+
let h = !1;
|
|
282
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
283
283
|
const m = p.length ? p[0] : c;
|
|
284
|
-
return
|
|
285
|
-
}) : [],
|
|
284
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = m) && (!u.skip_bound && u.bound[f] && u.bound[f](m), h && Sr(e, f)), c;
|
|
285
|
+
}) : [], u.update(), h = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
286
286
|
if (t.hydrate) {
|
|
287
|
-
const f =
|
|
288
|
-
|
|
287
|
+
const f = gr(t.target);
|
|
288
|
+
u.fragment && u.fragment.l(f), f.forEach(L);
|
|
289
289
|
} else
|
|
290
|
-
|
|
291
|
-
t.intro && he(e.$$.fragment),
|
|
290
|
+
u.fragment && u.fragment.c();
|
|
291
|
+
t.intro && he(e.$$.fragment), Tr(e, t.target, t.anchor), O();
|
|
292
292
|
}
|
|
293
|
-
|
|
293
|
+
K(l);
|
|
294
294
|
}
|
|
295
295
|
let Ct;
|
|
296
296
|
typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
@@ -330,42 +330,42 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
connectedCallback() {
|
|
333
|
-
return
|
|
333
|
+
return et(this, null, function* () {
|
|
334
334
|
if (this.$$cn = !0, !this.$$c) {
|
|
335
335
|
let t = function(s) {
|
|
336
336
|
return () => {
|
|
337
337
|
let a;
|
|
338
338
|
return {
|
|
339
339
|
c: function() {
|
|
340
|
-
a =
|
|
340
|
+
a = Z("slot"), s !== "default" && ne(a, "name", s);
|
|
341
341
|
},
|
|
342
342
|
/**
|
|
343
343
|
* @param {HTMLElement} target
|
|
344
344
|
* @param {HTMLElement} [anchor]
|
|
345
345
|
*/
|
|
346
|
-
m: function(
|
|
347
|
-
|
|
346
|
+
m: function(u, h) {
|
|
347
|
+
$(u, a, h);
|
|
348
348
|
},
|
|
349
|
-
d: function(
|
|
350
|
-
|
|
349
|
+
d: function(u) {
|
|
350
|
+
u && L(a);
|
|
351
351
|
}
|
|
352
352
|
};
|
|
353
353
|
};
|
|
354
354
|
};
|
|
355
355
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
356
356
|
return;
|
|
357
|
-
const r = {}, n =
|
|
357
|
+
const r = {}, n = yr(this);
|
|
358
358
|
for (const s of this.$$s)
|
|
359
359
|
s in n && (r[s] = [t(s)]);
|
|
360
360
|
for (const s of this.attributes) {
|
|
361
361
|
const a = this.$$g_p(s.name);
|
|
362
|
-
a in this.$$d || (this.$$d[a] =
|
|
362
|
+
a in this.$$d || (this.$$d[a] = le(a, s.value, this.$$p_d, "toProp"));
|
|
363
363
|
}
|
|
364
364
|
for (const s in this.$$p_d)
|
|
365
365
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
366
366
|
this.$$c = new this.$$ctor({
|
|
367
367
|
target: this.shadowRoot || this,
|
|
368
|
-
props:
|
|
368
|
+
props: Ke(Ye({}, this.$$d), {
|
|
369
369
|
$$slots: r,
|
|
370
370
|
$$scope: {
|
|
371
371
|
ctx: []
|
|
@@ -376,7 +376,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
376
376
|
this.$$r = !0;
|
|
377
377
|
for (const s in this.$$p_d)
|
|
378
378
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
379
|
-
const a =
|
|
379
|
+
const a = le(
|
|
380
380
|
s,
|
|
381
381
|
this.$$d[s],
|
|
382
382
|
this.$$p_d,
|
|
@@ -400,7 +400,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
400
400
|
// and setting attributes through setAttribute etc, this is helpful
|
|
401
401
|
attributeChangedCallback(t, r, n) {
|
|
402
402
|
var i;
|
|
403
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
403
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = le(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
404
404
|
}
|
|
405
405
|
disconnectedCallback() {
|
|
406
406
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -413,7 +413,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
413
413
|
) || t;
|
|
414
414
|
}
|
|
415
415
|
});
|
|
416
|
-
function
|
|
416
|
+
function le(e, t, r, n) {
|
|
417
417
|
var s;
|
|
418
418
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
419
419
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -443,7 +443,7 @@ function ue(e, t, r, n) {
|
|
|
443
443
|
return t;
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function Or(e, t, r, n, i, s) {
|
|
447
447
|
let a = class extends Ct {
|
|
448
448
|
constructor() {
|
|
449
449
|
super(e, r, i), this.$$p_d = t;
|
|
@@ -460,8 +460,8 @@ function Sr(e, t, r, n, i, s) {
|
|
|
460
460
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
461
461
|
},
|
|
462
462
|
set(l) {
|
|
463
|
-
var
|
|
464
|
-
l =
|
|
463
|
+
var u;
|
|
464
|
+
l = le(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
|
|
465
465
|
}
|
|
466
466
|
});
|
|
467
467
|
}), n.forEach((o) => {
|
|
@@ -474,7 +474,7 @@ function Sr(e, t, r, n, i, s) {
|
|
|
474
474
|
}), e.element = /** @type {any} */
|
|
475
475
|
a, a;
|
|
476
476
|
}
|
|
477
|
-
class
|
|
477
|
+
class Pr {
|
|
478
478
|
constructor() {
|
|
479
479
|
/**
|
|
480
480
|
* ### PRIVATE API
|
|
@@ -495,7 +495,7 @@ class Ar {
|
|
|
495
495
|
}
|
|
496
496
|
/** @returns {void} */
|
|
497
497
|
$destroy() {
|
|
498
|
-
|
|
498
|
+
wr(this, 1), this.$destroy = T;
|
|
499
499
|
}
|
|
500
500
|
/**
|
|
501
501
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -504,7 +504,7 @@ class Ar {
|
|
|
504
504
|
* @returns {() => void}
|
|
505
505
|
*/
|
|
506
506
|
$on(t, r) {
|
|
507
|
-
if (!
|
|
507
|
+
if (!We(r))
|
|
508
508
|
return T;
|
|
509
509
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
510
510
|
return n.push(r), () => {
|
|
@@ -517,29 +517,29 @@ class Ar {
|
|
|
517
517
|
* @returns {void}
|
|
518
518
|
*/
|
|
519
519
|
$set(t) {
|
|
520
|
-
this.$$set && !
|
|
520
|
+
this.$$set && !cr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
const Cr = "4";
|
|
524
524
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Cr);
|
|
525
|
-
const
|
|
526
|
-
function
|
|
525
|
+
const F = [];
|
|
526
|
+
function Lr(e, t) {
|
|
527
527
|
return {
|
|
528
|
-
subscribe:
|
|
528
|
+
subscribe: _e(e, t).subscribe
|
|
529
529
|
};
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function _e(e, t = T) {
|
|
532
532
|
let r;
|
|
533
533
|
const n = /* @__PURE__ */ new Set();
|
|
534
534
|
function i(o) {
|
|
535
|
-
if (
|
|
536
|
-
const l = !
|
|
537
|
-
for (const
|
|
538
|
-
|
|
535
|
+
if (wt(e, o) && (e = o, r)) {
|
|
536
|
+
const l = !F.length;
|
|
537
|
+
for (const u of n)
|
|
538
|
+
u[1](), F.push(u, e);
|
|
539
539
|
if (l) {
|
|
540
|
-
for (let
|
|
541
|
-
|
|
542
|
-
|
|
540
|
+
for (let u = 0; u < F.length; u += 2)
|
|
541
|
+
F[u][0](F[u + 1]);
|
|
542
|
+
F.length = 0;
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
}
|
|
@@ -547,160 +547,146 @@ function be(e, t = T) {
|
|
|
547
547
|
i(o(e));
|
|
548
548
|
}
|
|
549
549
|
function a(o, l = T) {
|
|
550
|
-
const
|
|
551
|
-
return n.add(
|
|
552
|
-
n.delete(
|
|
550
|
+
const u = [o, l];
|
|
551
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || T), o(e), () => {
|
|
552
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
553
553
|
};
|
|
554
554
|
}
|
|
555
555
|
return { set: i, update: s, subscribe: a };
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function Q(e, t, r) {
|
|
558
558
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
559
559
|
if (!i.every(Boolean))
|
|
560
560
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
561
561
|
const s = t.length < 2;
|
|
562
|
-
return
|
|
562
|
+
return Lr(r, (a, o) => {
|
|
563
563
|
let l = !1;
|
|
564
|
-
const
|
|
565
|
-
let
|
|
564
|
+
const u = [];
|
|
565
|
+
let h = 0, f = T;
|
|
566
566
|
const c = () => {
|
|
567
|
-
if (
|
|
567
|
+
if (h)
|
|
568
568
|
return;
|
|
569
569
|
f();
|
|
570
|
-
const m = t(n ?
|
|
571
|
-
s ? a(m) : f =
|
|
570
|
+
const m = t(n ? u[0] : u, a, o);
|
|
571
|
+
s ? a(m) : f = We(m) ? m : T;
|
|
572
572
|
}, p = i.map(
|
|
573
|
-
(m, g) =>
|
|
573
|
+
(m, g) => St(
|
|
574
574
|
m,
|
|
575
575
|
(v) => {
|
|
576
|
-
|
|
576
|
+
u[g] = v, h &= ~(1 << g), l && c();
|
|
577
577
|
},
|
|
578
578
|
() => {
|
|
579
|
-
|
|
579
|
+
h |= 1 << g;
|
|
580
580
|
}
|
|
581
581
|
)
|
|
582
582
|
);
|
|
583
583
|
return l = !0, c(), function() {
|
|
584
|
-
|
|
584
|
+
re(p), f(), l = !1;
|
|
585
585
|
};
|
|
586
586
|
});
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function Nr(e) {
|
|
589
589
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
590
590
|
}
|
|
591
|
-
var
|
|
592
|
-
return
|
|
591
|
+
var Ir = function(t) {
|
|
592
|
+
return Mr(t) && !$r(t);
|
|
593
593
|
};
|
|
594
|
-
function
|
|
594
|
+
function Mr(e) {
|
|
595
595
|
return !!e && typeof e == "object";
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function $r(e) {
|
|
598
598
|
var t = Object.prototype.toString.call(e);
|
|
599
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
599
|
+
return t === "[object RegExp]" || t === "[object Date]" || Dr(e);
|
|
600
600
|
}
|
|
601
|
-
var
|
|
602
|
-
function
|
|
603
|
-
return e.$$typeof ===
|
|
601
|
+
var Rr = typeof Symbol == "function" && Symbol.for, Ur = Rr ? Symbol.for("react.element") : 60103;
|
|
602
|
+
function Dr(e) {
|
|
603
|
+
return e.$$typeof === Ur;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function Gr(e) {
|
|
606
606
|
return Array.isArray(e) ? [] : {};
|
|
607
607
|
}
|
|
608
|
-
function
|
|
609
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
608
|
+
function ee(e, t) {
|
|
609
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? V(Gr(e), e, t) : e;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function Fr(e, t, r) {
|
|
612
612
|
return e.concat(t).map(function(n) {
|
|
613
|
-
return
|
|
613
|
+
return ee(n, r);
|
|
614
614
|
});
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function jr(e, t) {
|
|
617
617
|
if (!t.customMerge)
|
|
618
|
-
return
|
|
618
|
+
return V;
|
|
619
619
|
var r = t.customMerge(e);
|
|
620
|
-
return typeof r == "function" ? r :
|
|
620
|
+
return typeof r == "function" ? r : V;
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function kr(e) {
|
|
623
623
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
624
624
|
return Object.propertyIsEnumerable.call(e, t);
|
|
625
625
|
}) : [];
|
|
626
626
|
}
|
|
627
|
-
function
|
|
628
|
-
return Object.keys(e).concat(
|
|
627
|
+
function it(e) {
|
|
628
|
+
return Object.keys(e).concat(kr(e));
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function Lt(e, t) {
|
|
631
631
|
try {
|
|
632
632
|
return t in e;
|
|
633
633
|
} catch (r) {
|
|
634
634
|
return !1;
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
return
|
|
637
|
+
function Vr(e, t) {
|
|
638
|
+
return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function Xr(e, t, r) {
|
|
641
641
|
var n = {};
|
|
642
|
-
return r.isMergeableObject(e) &&
|
|
643
|
-
n[i] =
|
|
644
|
-
}),
|
|
645
|
-
|
|
642
|
+
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
643
|
+
n[i] = ee(e[i], r);
|
|
644
|
+
}), it(t).forEach(function(i) {
|
|
645
|
+
Vr(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = jr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
|
|
646
646
|
}), n;
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
648
|
+
function V(e, t, r) {
|
|
649
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Fr, r.isMergeableObject = r.isMergeableObject || Ir, r.cloneUnlessOtherwiseSpecified = ee;
|
|
650
650
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
651
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
651
|
+
return s ? n ? r.arrayMerge(e, t, r) : Xr(e, t, r) : ee(t, r);
|
|
652
652
|
}
|
|
653
|
-
|
|
653
|
+
V.all = function(t, r) {
|
|
654
654
|
if (!Array.isArray(t))
|
|
655
655
|
throw new Error("first argument should be an array");
|
|
656
656
|
return t.reduce(function(n, i) {
|
|
657
|
-
return
|
|
657
|
+
return V(n, i, r);
|
|
658
658
|
}, {});
|
|
659
659
|
};
|
|
660
|
-
var
|
|
661
|
-
const
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
666
|
-
purpose with or without fee is hereby granted.
|
|
667
|
-
|
|
668
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
669
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
670
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
671
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
672
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
673
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
674
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
675
|
-
***************************************************************************** */
|
|
676
|
-
var $e = function(e, t) {
|
|
677
|
-
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
660
|
+
var Wr = V, zr = Wr;
|
|
661
|
+
const Zr = /* @__PURE__ */ Nr(zr);
|
|
662
|
+
var Ue = function(e, t) {
|
|
663
|
+
return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
678
664
|
r.__proto__ = n;
|
|
679
665
|
} || function(r, n) {
|
|
680
666
|
for (var i in n)
|
|
681
667
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
682
|
-
},
|
|
668
|
+
}, Ue(e, t);
|
|
683
669
|
};
|
|
684
|
-
function
|
|
670
|
+
function ye(e, t) {
|
|
685
671
|
if (typeof t != "function" && t !== null)
|
|
686
672
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
687
|
-
|
|
673
|
+
Ue(e, t);
|
|
688
674
|
function r() {
|
|
689
675
|
this.constructor = e;
|
|
690
676
|
}
|
|
691
677
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
692
678
|
}
|
|
693
|
-
var
|
|
694
|
-
return
|
|
679
|
+
var w = function() {
|
|
680
|
+
return w = Object.assign || function(t) {
|
|
695
681
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
696
682
|
r = arguments[n];
|
|
697
683
|
for (var s in r)
|
|
698
684
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
699
685
|
}
|
|
700
686
|
return t;
|
|
701
|
-
},
|
|
687
|
+
}, w.apply(this, arguments);
|
|
702
688
|
};
|
|
703
|
-
function
|
|
689
|
+
function Qr(e, t) {
|
|
704
690
|
var r = {};
|
|
705
691
|
for (var n in e)
|
|
706
692
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -709,43 +695,43 @@ function zr(e, t) {
|
|
|
709
695
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
710
696
|
return r;
|
|
711
697
|
}
|
|
712
|
-
function
|
|
713
|
-
if (arguments.length === 2)
|
|
698
|
+
function Oe(e, t, r) {
|
|
699
|
+
if (r || arguments.length === 2)
|
|
714
700
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
715
701
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
716
|
-
return e.concat(s || t);
|
|
702
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
717
703
|
}
|
|
718
|
-
function
|
|
719
|
-
var r = t && t.cache ? t.cache :
|
|
704
|
+
function Pe(e, t) {
|
|
705
|
+
var r = t && t.cache ? t.cache : rn, n = t && t.serializer ? t.serializer : en, i = t && t.strategy ? t.strategy : Yr;
|
|
720
706
|
return i(e, {
|
|
721
707
|
cache: r,
|
|
722
708
|
serializer: n
|
|
723
709
|
});
|
|
724
710
|
}
|
|
725
|
-
function
|
|
711
|
+
function Jr(e) {
|
|
726
712
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
727
713
|
}
|
|
728
|
-
function
|
|
729
|
-
var i =
|
|
714
|
+
function qr(e, t, r, n) {
|
|
715
|
+
var i = Jr(n) ? n : r(n), s = t.get(i);
|
|
730
716
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
731
717
|
}
|
|
732
|
-
function
|
|
718
|
+
function Nt(e, t, r) {
|
|
733
719
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
734
720
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
735
721
|
}
|
|
736
|
-
function
|
|
722
|
+
function It(e, t, r, n, i) {
|
|
737
723
|
return r.bind(t, e, n, i);
|
|
738
724
|
}
|
|
739
|
-
function
|
|
740
|
-
var r = e.length === 1 ?
|
|
741
|
-
return
|
|
725
|
+
function Yr(e, t) {
|
|
726
|
+
var r = e.length === 1 ? qr : Nt;
|
|
727
|
+
return It(e, this, r, t.cache.create(), t.serializer);
|
|
742
728
|
}
|
|
743
|
-
function
|
|
744
|
-
return
|
|
729
|
+
function Kr(e, t) {
|
|
730
|
+
return It(e, this, Nt, t.cache.create(), t.serializer);
|
|
745
731
|
}
|
|
746
|
-
var
|
|
732
|
+
var en = function() {
|
|
747
733
|
return JSON.stringify(arguments);
|
|
748
|
-
},
|
|
734
|
+
}, tn = (
|
|
749
735
|
/** @class */
|
|
750
736
|
function() {
|
|
751
737
|
function e() {
|
|
@@ -757,61 +743,71 @@ var Yr = function() {
|
|
|
757
743
|
this.cache[t] = r;
|
|
758
744
|
}, e;
|
|
759
745
|
}()
|
|
760
|
-
),
|
|
746
|
+
), rn = {
|
|
761
747
|
create: function() {
|
|
762
|
-
return new
|
|
748
|
+
return new tn();
|
|
763
749
|
}
|
|
764
750
|
}, Ce = {
|
|
765
|
-
variadic:
|
|
766
|
-
},
|
|
751
|
+
variadic: Kr
|
|
752
|
+
}, pe = function() {
|
|
753
|
+
return pe = Object.assign || function(t) {
|
|
754
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
755
|
+
r = arguments[n];
|
|
756
|
+
for (var s in r)
|
|
757
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
758
|
+
}
|
|
759
|
+
return t;
|
|
760
|
+
}, pe.apply(this, arguments);
|
|
761
|
+
};
|
|
762
|
+
var d;
|
|
767
763
|
(function(e) {
|
|
768
764
|
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";
|
|
769
765
|
})(d || (d = {}));
|
|
770
|
-
var
|
|
766
|
+
var y;
|
|
771
767
|
(function(e) {
|
|
772
768
|
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";
|
|
773
|
-
})(
|
|
774
|
-
var
|
|
769
|
+
})(y || (y = {}));
|
|
770
|
+
var X;
|
|
775
771
|
(function(e) {
|
|
776
772
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
777
|
-
})(
|
|
778
|
-
function
|
|
779
|
-
return e.type ===
|
|
780
|
-
}
|
|
781
|
-
function tn(e) {
|
|
782
|
-
return e.type === x.argument;
|
|
783
|
-
}
|
|
784
|
-
function Nt(e) {
|
|
785
|
-
return e.type === x.number;
|
|
773
|
+
})(X || (X = {}));
|
|
774
|
+
function st(e) {
|
|
775
|
+
return e.type === y.literal;
|
|
786
776
|
}
|
|
787
|
-
function
|
|
788
|
-
return e.type ===
|
|
777
|
+
function nn(e) {
|
|
778
|
+
return e.type === y.argument;
|
|
789
779
|
}
|
|
790
780
|
function Mt(e) {
|
|
791
|
-
return e.type ===
|
|
781
|
+
return e.type === y.number;
|
|
792
782
|
}
|
|
793
783
|
function $t(e) {
|
|
794
|
-
return e.type ===
|
|
784
|
+
return e.type === y.date;
|
|
795
785
|
}
|
|
796
786
|
function Rt(e) {
|
|
797
|
-
return e.type ===
|
|
798
|
-
}
|
|
799
|
-
function rn(e) {
|
|
800
|
-
return e.type === x.pound;
|
|
787
|
+
return e.type === y.time;
|
|
801
788
|
}
|
|
802
789
|
function Ut(e) {
|
|
803
|
-
return e.type ===
|
|
790
|
+
return e.type === y.select;
|
|
804
791
|
}
|
|
805
792
|
function Dt(e) {
|
|
806
|
-
return
|
|
793
|
+
return e.type === y.plural;
|
|
807
794
|
}
|
|
808
|
-
function Re(e) {
|
|
809
|
-
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
810
|
-
}
|
|
811
|
-
var Gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, nn = /(?:[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;
|
|
812
795
|
function sn(e) {
|
|
796
|
+
return e.type === y.pound;
|
|
797
|
+
}
|
|
798
|
+
function Gt(e) {
|
|
799
|
+
return e.type === y.tag;
|
|
800
|
+
}
|
|
801
|
+
function Ft(e) {
|
|
802
|
+
return !!(e && typeof e == "object" && e.type === X.number);
|
|
803
|
+
}
|
|
804
|
+
function De(e) {
|
|
805
|
+
return !!(e && typeof e == "object" && e.type === X.dateTime);
|
|
806
|
+
}
|
|
807
|
+
var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, on = /(?:[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;
|
|
808
|
+
function an(e) {
|
|
813
809
|
var t = {};
|
|
814
|
-
return e.replace(
|
|
810
|
+
return e.replace(on, function(r) {
|
|
815
811
|
var n = r.length;
|
|
816
812
|
switch (r[0]) {
|
|
817
813
|
case "G":
|
|
@@ -900,18 +896,28 @@ function sn(e) {
|
|
|
900
896
|
return "";
|
|
901
897
|
}), t;
|
|
902
898
|
}
|
|
903
|
-
var
|
|
904
|
-
function
|
|
899
|
+
var E = function() {
|
|
900
|
+
return E = Object.assign || function(t) {
|
|
901
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
902
|
+
r = arguments[n];
|
|
903
|
+
for (var s in r)
|
|
904
|
+
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
905
|
+
}
|
|
906
|
+
return t;
|
|
907
|
+
}, E.apply(this, arguments);
|
|
908
|
+
};
|
|
909
|
+
var un = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
910
|
+
function hn(e) {
|
|
905
911
|
if (e.length === 0)
|
|
906
912
|
throw new Error("Number skeleton cannot be empty");
|
|
907
|
-
for (var t = e.split(
|
|
913
|
+
for (var t = e.split(un).filter(function(c) {
|
|
908
914
|
return c.length > 0;
|
|
909
915
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
910
916
|
var s = i[n], a = s.split("/");
|
|
911
917
|
if (a.length === 0)
|
|
912
918
|
throw new Error("Invalid number skeleton");
|
|
913
|
-
for (var o = a[0], l = a.slice(1),
|
|
914
|
-
var f = u
|
|
919
|
+
for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
920
|
+
var f = h[u];
|
|
915
921
|
if (f.length === 0)
|
|
916
922
|
throw new Error("Invalid number skeleton");
|
|
917
923
|
}
|
|
@@ -919,17 +925,17 @@ function an(e) {
|
|
|
919
925
|
}
|
|
920
926
|
return r;
|
|
921
927
|
}
|
|
922
|
-
function
|
|
928
|
+
function ln(e) {
|
|
923
929
|
return e.replace(/^(.*?)-/, "");
|
|
924
930
|
}
|
|
925
|
-
var
|
|
926
|
-
function
|
|
931
|
+
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kt = /^(@+)?(\+|#+)?[rs]?$/g, fn = /(\*)(0+)|(#+)(0+)|(0+)/g, Vt = /^(0+)$/;
|
|
932
|
+
function at(e) {
|
|
927
933
|
var t = {};
|
|
928
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
934
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kt, function(r, n, i) {
|
|
929
935
|
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)), "";
|
|
930
936
|
}), t;
|
|
931
937
|
}
|
|
932
|
-
function
|
|
938
|
+
function Xt(e) {
|
|
933
939
|
switch (e) {
|
|
934
940
|
case "sign-auto":
|
|
935
941
|
return {
|
|
@@ -969,7 +975,7 @@ function kt(e) {
|
|
|
969
975
|
};
|
|
970
976
|
}
|
|
971
977
|
}
|
|
972
|
-
function
|
|
978
|
+
function cn(e) {
|
|
973
979
|
var t;
|
|
974
980
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
975
981
|
notation: "engineering"
|
|
@@ -977,17 +983,17 @@ function ln(e) {
|
|
|
977
983
|
notation: "scientific"
|
|
978
984
|
}, e = e.slice(1)), t) {
|
|
979
985
|
var r = e.slice(0, 2);
|
|
980
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
986
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Vt.test(e))
|
|
981
987
|
throw new Error("Malformed concise eng/scientific notation");
|
|
982
988
|
t.minimumIntegerDigits = e.length;
|
|
983
989
|
}
|
|
984
990
|
return t;
|
|
985
991
|
}
|
|
986
|
-
function
|
|
987
|
-
var t = {}, r =
|
|
992
|
+
function ut(e) {
|
|
993
|
+
var t = {}, r = Xt(e);
|
|
988
994
|
return r || t;
|
|
989
995
|
}
|
|
990
|
-
function
|
|
996
|
+
function mn(e) {
|
|
991
997
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
992
998
|
var i = n[r];
|
|
993
999
|
switch (i.stem) {
|
|
@@ -1011,7 +1017,7 @@ function fn(e) {
|
|
|
1011
1017
|
continue;
|
|
1012
1018
|
case "measure-unit":
|
|
1013
1019
|
case "unit":
|
|
1014
|
-
t.style = "unit", t.unit =
|
|
1020
|
+
t.style = "unit", t.unit = ln(i.options[0]);
|
|
1015
1021
|
continue;
|
|
1016
1022
|
case "compact-short":
|
|
1017
1023
|
case "K":
|
|
@@ -1022,13 +1028,13 @@ function fn(e) {
|
|
|
1022
1028
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1023
1029
|
continue;
|
|
1024
1030
|
case "scientific":
|
|
1025
|
-
t =
|
|
1026
|
-
return
|
|
1031
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1032
|
+
return E(E({}, l), ut(u));
|
|
1027
1033
|
}, {}));
|
|
1028
1034
|
continue;
|
|
1029
1035
|
case "engineering":
|
|
1030
|
-
t =
|
|
1031
|
-
return
|
|
1036
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1037
|
+
return E(E({}, l), ut(u));
|
|
1032
1038
|
}, {}));
|
|
1033
1039
|
continue;
|
|
1034
1040
|
case "notation-simple":
|
|
@@ -1073,9 +1079,9 @@ function fn(e) {
|
|
|
1073
1079
|
case "integer-width":
|
|
1074
1080
|
if (i.options.length > 1)
|
|
1075
1081
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1076
|
-
i.options[0].replace(
|
|
1077
|
-
if (
|
|
1078
|
-
t.minimumIntegerDigits =
|
|
1082
|
+
i.options[0].replace(fn, function(l, u, h, f, c, p) {
|
|
1083
|
+
if (u)
|
|
1084
|
+
t.minimumIntegerDigits = h.length;
|
|
1079
1085
|
else {
|
|
1080
1086
|
if (f && c)
|
|
1081
1087
|
throw new Error("We currently do not support maximum integer digits");
|
|
@@ -1086,32 +1092,32 @@ function fn(e) {
|
|
|
1086
1092
|
});
|
|
1087
1093
|
continue;
|
|
1088
1094
|
}
|
|
1089
|
-
if (
|
|
1095
|
+
if (Vt.test(i.stem)) {
|
|
1090
1096
|
t.minimumIntegerDigits = i.stem.length;
|
|
1091
1097
|
continue;
|
|
1092
1098
|
}
|
|
1093
|
-
if (
|
|
1099
|
+
if (ot.test(i.stem)) {
|
|
1094
1100
|
if (i.options.length > 1)
|
|
1095
1101
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1096
|
-
i.stem.replace(
|
|
1097
|
-
return
|
|
1102
|
+
i.stem.replace(ot, function(l, u, h, f, c, p) {
|
|
1103
|
+
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1098
1104
|
});
|
|
1099
1105
|
var s = i.options[0];
|
|
1100
|
-
s === "w" ? t =
|
|
1106
|
+
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), at(s)));
|
|
1101
1107
|
continue;
|
|
1102
1108
|
}
|
|
1103
|
-
if (
|
|
1104
|
-
t =
|
|
1109
|
+
if (kt.test(i.stem)) {
|
|
1110
|
+
t = E(E({}, t), at(i.stem));
|
|
1105
1111
|
continue;
|
|
1106
1112
|
}
|
|
1107
|
-
var a =
|
|
1108
|
-
a && (t =
|
|
1109
|
-
var o =
|
|
1110
|
-
o && (t =
|
|
1113
|
+
var a = Xt(i.stem);
|
|
1114
|
+
a && (t = E(E({}, t), a));
|
|
1115
|
+
var o = cn(i.stem);
|
|
1116
|
+
o && (t = E(E({}, t), o));
|
|
1111
1117
|
}
|
|
1112
1118
|
return t;
|
|
1113
1119
|
}
|
|
1114
|
-
var
|
|
1120
|
+
var ae = {
|
|
1115
1121
|
"001": [
|
|
1116
1122
|
"H",
|
|
1117
1123
|
"h"
|
|
@@ -2526,23 +2532,23 @@ var oe = {
|
|
|
2526
2532
|
"h"
|
|
2527
2533
|
]
|
|
2528
2534
|
};
|
|
2529
|
-
function
|
|
2535
|
+
function pn(e, t) {
|
|
2530
2536
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2531
2537
|
var i = e.charAt(n);
|
|
2532
2538
|
if (i === "j") {
|
|
2533
2539
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2534
2540
|
s++, n++;
|
|
2535
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a",
|
|
2536
|
-
for ((
|
|
2541
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = dn(t);
|
|
2542
|
+
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2537
2543
|
r += l;
|
|
2538
2544
|
for (; a-- > 0; )
|
|
2539
|
-
r =
|
|
2545
|
+
r = u + r;
|
|
2540
2546
|
} else
|
|
2541
2547
|
i === "J" ? r += "H" : r += i;
|
|
2542
2548
|
}
|
|
2543
2549
|
return r;
|
|
2544
2550
|
}
|
|
2545
|
-
function
|
|
2551
|
+
function dn(e) {
|
|
2546
2552
|
var t = e.hourCycle;
|
|
2547
2553
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2548
2554
|
e.hourCycles && // @ts-ignore
|
|
@@ -2561,23 +2567,23 @@ function mn(e) {
|
|
|
2561
2567
|
}
|
|
2562
2568
|
var r = e.language, n;
|
|
2563
2569
|
r !== "root" && (n = e.maximize().region);
|
|
2564
|
-
var i =
|
|
2570
|
+
var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
|
|
2565
2571
|
return i[0];
|
|
2566
2572
|
}
|
|
2567
|
-
var
|
|
2573
|
+
var Le, bn = new RegExp("^".concat(jt.source, "*")), gn = new RegExp("".concat(jt.source, "*$"));
|
|
2568
2574
|
function b(e, t) {
|
|
2569
2575
|
return { start: e, end: t };
|
|
2570
2576
|
}
|
|
2571
|
-
var
|
|
2577
|
+
var _n = !!String.prototype.startsWith && "_a".startsWith("a", 1), yn = !!String.fromCodePoint, En = !!Object.fromEntries, xn = !!String.prototype.codePointAt, vn = !!String.prototype.trimStart, Hn = !!String.prototype.trimEnd, Bn = !!Number.isSafeInteger, Tn = Bn ? Number.isSafeInteger : function(e) {
|
|
2572
2578
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2573
|
-
},
|
|
2579
|
+
}, Ge = !0;
|
|
2574
2580
|
try {
|
|
2575
|
-
var
|
|
2576
|
-
|
|
2581
|
+
var wn = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2582
|
+
Ge = ((Le = wn.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
|
|
2577
2583
|
} catch (e) {
|
|
2578
|
-
|
|
2584
|
+
Ge = !1;
|
|
2579
2585
|
}
|
|
2580
|
-
var
|
|
2586
|
+
var ht = _n ? (
|
|
2581
2587
|
// Native
|
|
2582
2588
|
function(t, r, n) {
|
|
2583
2589
|
return t.startsWith(r, n);
|
|
@@ -2587,7 +2593,7 @@ var at = bn ? (
|
|
|
2587
2593
|
function(t, r, n) {
|
|
2588
2594
|
return t.slice(n, n + r.length) === r;
|
|
2589
2595
|
}
|
|
2590
|
-
),
|
|
2596
|
+
), Fe = yn ? String.fromCodePoint : (
|
|
2591
2597
|
// IE11
|
|
2592
2598
|
function() {
|
|
2593
2599
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2599,9 +2605,9 @@ var at = bn ? (
|
|
|
2599
2605
|
}
|
|
2600
2606
|
return n;
|
|
2601
2607
|
}
|
|
2602
|
-
),
|
|
2608
|
+
), lt = (
|
|
2603
2609
|
// native
|
|
2604
|
-
|
|
2610
|
+
En ? Object.fromEntries : (
|
|
2605
2611
|
// Ponyfill
|
|
2606
2612
|
function(t) {
|
|
2607
2613
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2611,7 +2617,7 @@ var at = bn ? (
|
|
|
2611
2617
|
return r;
|
|
2612
2618
|
}
|
|
2613
2619
|
)
|
|
2614
|
-
),
|
|
2620
|
+
), Wt = xn ? (
|
|
2615
2621
|
// Native
|
|
2616
2622
|
function(t, r) {
|
|
2617
2623
|
return t.codePointAt(r);
|
|
@@ -2625,7 +2631,7 @@ var at = bn ? (
|
|
|
2625
2631
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2626
2632
|
}
|
|
2627
2633
|
}
|
|
2628
|
-
),
|
|
2634
|
+
), Sn = vn ? (
|
|
2629
2635
|
// Native
|
|
2630
2636
|
function(t) {
|
|
2631
2637
|
return t.trimStart();
|
|
@@ -2633,9 +2639,9 @@ var at = bn ? (
|
|
|
2633
2639
|
) : (
|
|
2634
2640
|
// Ponyfill
|
|
2635
2641
|
function(t) {
|
|
2636
|
-
return t.replace(
|
|
2642
|
+
return t.replace(bn, "");
|
|
2637
2643
|
}
|
|
2638
|
-
),
|
|
2644
|
+
), An = Hn ? (
|
|
2639
2645
|
// Native
|
|
2640
2646
|
function(t) {
|
|
2641
2647
|
return t.trimEnd();
|
|
@@ -2643,32 +2649,32 @@ var at = bn ? (
|
|
|
2643
2649
|
) : (
|
|
2644
2650
|
// Ponyfill
|
|
2645
2651
|
function(t) {
|
|
2646
|
-
return t.replace(
|
|
2652
|
+
return t.replace(gn, "");
|
|
2647
2653
|
}
|
|
2648
2654
|
);
|
|
2649
|
-
function
|
|
2655
|
+
function zt(e, t) {
|
|
2650
2656
|
return new RegExp(e, t);
|
|
2651
2657
|
}
|
|
2652
|
-
var
|
|
2653
|
-
if (
|
|
2654
|
-
var
|
|
2655
|
-
|
|
2658
|
+
var je;
|
|
2659
|
+
if (Ge) {
|
|
2660
|
+
var ft = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2661
|
+
je = function(t, r) {
|
|
2656
2662
|
var n;
|
|
2657
|
-
|
|
2658
|
-
var i =
|
|
2663
|
+
ft.lastIndex = r;
|
|
2664
|
+
var i = ft.exec(t);
|
|
2659
2665
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2660
2666
|
};
|
|
2661
2667
|
} else
|
|
2662
|
-
|
|
2668
|
+
je = function(t, r) {
|
|
2663
2669
|
for (var n = []; ; ) {
|
|
2664
|
-
var i =
|
|
2665
|
-
if (i === void 0 ||
|
|
2670
|
+
var i = Wt(t, r);
|
|
2671
|
+
if (i === void 0 || Zt(i) || Ln(i))
|
|
2666
2672
|
break;
|
|
2667
2673
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2668
2674
|
}
|
|
2669
|
-
return
|
|
2675
|
+
return Fe.apply(void 0, n);
|
|
2670
2676
|
};
|
|
2671
|
-
var
|
|
2677
|
+
var On = (
|
|
2672
2678
|
/** @class */
|
|
2673
2679
|
function() {
|
|
2674
2680
|
function e(t, r) {
|
|
@@ -2692,14 +2698,14 @@ var Sn = (
|
|
|
2692
2698
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2693
2699
|
var o = this.clonePosition();
|
|
2694
2700
|
this.bump(), i.push({
|
|
2695
|
-
type:
|
|
2701
|
+
type: y.pound,
|
|
2696
2702
|
location: b(o, this.clonePosition())
|
|
2697
2703
|
});
|
|
2698
2704
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2699
2705
|
if (n)
|
|
2700
2706
|
break;
|
|
2701
2707
|
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2702
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2708
|
+
} else if (s === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
|
|
2703
2709
|
var a = this.parseTag(t, r);
|
|
2704
2710
|
if (a.err)
|
|
2705
2711
|
return a;
|
|
@@ -2720,7 +2726,7 @@ var Sn = (
|
|
|
2720
2726
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2721
2727
|
return {
|
|
2722
2728
|
val: {
|
|
2723
|
-
type:
|
|
2729
|
+
type: y.literal,
|
|
2724
2730
|
value: "<".concat(i, "/>"),
|
|
2725
2731
|
location: b(n, this.clonePosition())
|
|
2726
2732
|
},
|
|
@@ -2732,12 +2738,12 @@ var Sn = (
|
|
|
2732
2738
|
return s;
|
|
2733
2739
|
var a = s.val, o = this.clonePosition();
|
|
2734
2740
|
if (this.bumpIf("</")) {
|
|
2735
|
-
if (this.isEOF() || !
|
|
2741
|
+
if (this.isEOF() || !ke(this.char()))
|
|
2736
2742
|
return this.error(d.INVALID_TAG, b(o, this.clonePosition()));
|
|
2737
|
-
var l = this.clonePosition(),
|
|
2738
|
-
return i !==
|
|
2743
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
2744
|
+
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2739
2745
|
val: {
|
|
2740
|
-
type:
|
|
2746
|
+
type: y.tag,
|
|
2741
2747
|
value: i,
|
|
2742
2748
|
children: a,
|
|
2743
2749
|
location: b(n, this.clonePosition())
|
|
@@ -2774,12 +2780,12 @@ var Sn = (
|
|
|
2774
2780
|
}
|
|
2775
2781
|
var l = b(n, this.clonePosition());
|
|
2776
2782
|
return {
|
|
2777
|
-
val: { type:
|
|
2783
|
+
val: { type: y.literal, value: i, location: l },
|
|
2778
2784
|
err: null
|
|
2779
2785
|
};
|
|
2780
2786
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2781
2787
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2782
|
-
!
|
|
2788
|
+
!Pn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2783
2789
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2784
2790
|
if (this.isEOF() || this.char() !== 39)
|
|
2785
2791
|
return null;
|
|
@@ -2813,12 +2819,12 @@ var Sn = (
|
|
|
2813
2819
|
r.push(n);
|
|
2814
2820
|
this.bump();
|
|
2815
2821
|
}
|
|
2816
|
-
return
|
|
2822
|
+
return Fe.apply(void 0, r);
|
|
2817
2823
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2818
2824
|
if (this.isEOF())
|
|
2819
2825
|
return null;
|
|
2820
2826
|
var n = this.char();
|
|
2821
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2827
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
2822
2828
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2823
2829
|
var n = this.clonePosition();
|
|
2824
2830
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2834,7 +2840,7 @@ var Sn = (
|
|
|
2834
2840
|
case 125:
|
|
2835
2841
|
return this.bump(), {
|
|
2836
2842
|
val: {
|
|
2837
|
-
type:
|
|
2843
|
+
type: y.argument,
|
|
2838
2844
|
// value does not include the opening and closing braces.
|
|
2839
2845
|
value: i,
|
|
2840
2846
|
location: b(n, this.clonePosition())
|
|
@@ -2847,7 +2853,7 @@ var Sn = (
|
|
|
2847
2853
|
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2848
2854
|
}
|
|
2849
2855
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2850
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2856
|
+
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
2851
2857
|
this.bumpTo(i);
|
|
2852
2858
|
var s = this.clonePosition(), a = b(t, s);
|
|
2853
2859
|
return { value: n, location: a };
|
|
@@ -2860,53 +2866,53 @@ var Sn = (
|
|
|
2860
2866
|
case "date":
|
|
2861
2867
|
case "time": {
|
|
2862
2868
|
this.bumpSpace();
|
|
2863
|
-
var
|
|
2869
|
+
var u = null;
|
|
2864
2870
|
if (this.bumpIf(",")) {
|
|
2865
2871
|
this.bumpSpace();
|
|
2866
|
-
var
|
|
2872
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2867
2873
|
if (f.err)
|
|
2868
2874
|
return f;
|
|
2869
|
-
var c =
|
|
2875
|
+
var c = An(f.val);
|
|
2870
2876
|
if (c.length === 0)
|
|
2871
2877
|
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2872
|
-
var p = b(
|
|
2873
|
-
|
|
2878
|
+
var p = b(h, this.clonePosition());
|
|
2879
|
+
u = { style: c, styleLocation: p };
|
|
2874
2880
|
}
|
|
2875
2881
|
var m = this.tryParseArgumentClose(i);
|
|
2876
2882
|
if (m.err)
|
|
2877
2883
|
return m;
|
|
2878
2884
|
var g = b(i, this.clonePosition());
|
|
2879
|
-
if (
|
|
2880
|
-
var v =
|
|
2885
|
+
if (u && ht(u == null ? void 0 : u.style, "::", 0)) {
|
|
2886
|
+
var v = Sn(u.style.slice(2));
|
|
2881
2887
|
if (o === "number") {
|
|
2882
|
-
var f = this.parseNumberSkeletonFromString(v,
|
|
2888
|
+
var f = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
2883
2889
|
return f.err ? f : {
|
|
2884
|
-
val: { type:
|
|
2890
|
+
val: { type: y.number, value: n, location: g, style: f.val },
|
|
2885
2891
|
err: null
|
|
2886
2892
|
};
|
|
2887
2893
|
} else {
|
|
2888
2894
|
if (v.length === 0)
|
|
2889
2895
|
return this.error(d.EXPECT_DATE_TIME_SKELETON, g);
|
|
2890
|
-
var
|
|
2891
|
-
this.locale && (
|
|
2896
|
+
var I = v;
|
|
2897
|
+
this.locale && (I = pn(v, this.locale));
|
|
2892
2898
|
var c = {
|
|
2893
|
-
type:
|
|
2894
|
-
pattern:
|
|
2895
|
-
location:
|
|
2896
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2897
|
-
},
|
|
2899
|
+
type: X.dateTime,
|
|
2900
|
+
pattern: I,
|
|
2901
|
+
location: u.styleLocation,
|
|
2902
|
+
parsedOptions: this.shouldParseSkeletons ? an(I) : {}
|
|
2903
|
+
}, P = o === "date" ? y.date : y.time;
|
|
2898
2904
|
return {
|
|
2899
|
-
val: { type:
|
|
2905
|
+
val: { type: P, value: n, location: g, style: c },
|
|
2900
2906
|
err: null
|
|
2901
2907
|
};
|
|
2902
2908
|
}
|
|
2903
2909
|
}
|
|
2904
2910
|
return {
|
|
2905
2911
|
val: {
|
|
2906
|
-
type: o === "number" ?
|
|
2912
|
+
type: o === "number" ? y.number : o === "date" ? y.date : y.time,
|
|
2907
2913
|
value: n,
|
|
2908
2914
|
location: g,
|
|
2909
|
-
style: (s =
|
|
2915
|
+
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
2910
2916
|
},
|
|
2911
2917
|
err: null
|
|
2912
2918
|
};
|
|
@@ -2916,41 +2922,41 @@ var Sn = (
|
|
|
2916
2922
|
case "select": {
|
|
2917
2923
|
var H = this.clonePosition();
|
|
2918
2924
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2919
|
-
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H,
|
|
2925
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, pe({}, H)));
|
|
2920
2926
|
this.bumpSpace();
|
|
2921
|
-
var
|
|
2922
|
-
if (o !== "select" &&
|
|
2927
|
+
var M = this.parseIdentifierIfPossible(), S = 0;
|
|
2928
|
+
if (o !== "select" && M.value === "offset") {
|
|
2923
2929
|
if (!this.bumpIf(":"))
|
|
2924
2930
|
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2925
2931
|
this.bumpSpace();
|
|
2926
2932
|
var f = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2927
2933
|
if (f.err)
|
|
2928
2934
|
return f;
|
|
2929
|
-
this.bumpSpace(),
|
|
2935
|
+
this.bumpSpace(), M = this.parseIdentifierIfPossible(), S = f.val;
|
|
2930
2936
|
}
|
|
2931
|
-
var
|
|
2932
|
-
if (
|
|
2933
|
-
return
|
|
2937
|
+
var U = this.tryParsePluralOrSelectOptions(t, o, r, M);
|
|
2938
|
+
if (U.err)
|
|
2939
|
+
return U;
|
|
2934
2940
|
var m = this.tryParseArgumentClose(i);
|
|
2935
2941
|
if (m.err)
|
|
2936
2942
|
return m;
|
|
2937
|
-
var
|
|
2943
|
+
var oe = b(i, this.clonePosition());
|
|
2938
2944
|
return o === "select" ? {
|
|
2939
2945
|
val: {
|
|
2940
|
-
type:
|
|
2946
|
+
type: y.select,
|
|
2941
2947
|
value: n,
|
|
2942
|
-
options:
|
|
2943
|
-
location:
|
|
2948
|
+
options: lt(U.val),
|
|
2949
|
+
location: oe
|
|
2944
2950
|
},
|
|
2945
2951
|
err: null
|
|
2946
2952
|
} : {
|
|
2947
2953
|
val: {
|
|
2948
|
-
type:
|
|
2954
|
+
type: y.plural,
|
|
2949
2955
|
value: n,
|
|
2950
|
-
options:
|
|
2951
|
-
offset:
|
|
2956
|
+
options: lt(U.val),
|
|
2957
|
+
offset: S,
|
|
2952
2958
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2953
|
-
location:
|
|
2959
|
+
location: oe
|
|
2954
2960
|
},
|
|
2955
2961
|
err: null
|
|
2956
2962
|
};
|
|
@@ -2998,34 +3004,34 @@ var Sn = (
|
|
|
2998
3004
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2999
3005
|
var n = [];
|
|
3000
3006
|
try {
|
|
3001
|
-
n =
|
|
3007
|
+
n = hn(t);
|
|
3002
3008
|
} catch (i) {
|
|
3003
3009
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3004
3010
|
}
|
|
3005
3011
|
return {
|
|
3006
3012
|
val: {
|
|
3007
|
-
type:
|
|
3013
|
+
type: X.number,
|
|
3008
3014
|
tokens: n,
|
|
3009
3015
|
location: r,
|
|
3010
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3016
|
+
parsedOptions: this.shouldParseSkeletons ? mn(n) : {}
|
|
3011
3017
|
},
|
|
3012
3018
|
err: null
|
|
3013
3019
|
};
|
|
3014
3020
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3015
|
-
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(),
|
|
3016
|
-
if (
|
|
3021
|
+
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3022
|
+
if (u.length === 0) {
|
|
3017
3023
|
var f = this.clonePosition();
|
|
3018
3024
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3019
3025
|
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_SELECTOR, d.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3020
3026
|
if (c.err)
|
|
3021
3027
|
return c;
|
|
3022
|
-
|
|
3028
|
+
h = b(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
3023
3029
|
} else
|
|
3024
3030
|
break;
|
|
3025
3031
|
}
|
|
3026
|
-
if (l.has(
|
|
3027
|
-
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
3028
|
-
|
|
3032
|
+
if (l.has(u))
|
|
3033
|
+
return this.error(r === "select" ? d.DUPLICATE_SELECT_ARGUMENT_SELECTOR : d.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3034
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
3029
3035
|
var p = this.clonePosition();
|
|
3030
3036
|
if (!this.bumpIf("{"))
|
|
3031
3037
|
return this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : d.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
@@ -3036,12 +3042,12 @@ var Sn = (
|
|
|
3036
3042
|
if (g.err)
|
|
3037
3043
|
return g;
|
|
3038
3044
|
o.push([
|
|
3039
|
-
|
|
3045
|
+
u,
|
|
3040
3046
|
{
|
|
3041
3047
|
value: m.val,
|
|
3042
3048
|
location: b(p, this.clonePosition())
|
|
3043
3049
|
}
|
|
3044
|
-
]), l.add(
|
|
3050
|
+
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3045
3051
|
}
|
|
3046
3052
|
return o.length === 0 ? this.error(r === "select" ? d.EXPECT_SELECT_ARGUMENT_SELECTOR : d.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(d.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3047
3053
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
@@ -3055,7 +3061,7 @@ var Sn = (
|
|
|
3055
3061
|
break;
|
|
3056
3062
|
}
|
|
3057
3063
|
var l = b(i, this.clonePosition());
|
|
3058
|
-
return s ? (a *= n,
|
|
3064
|
+
return s ? (a *= n, Tn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3059
3065
|
}, e.prototype.offset = function() {
|
|
3060
3066
|
return this.position.offset;
|
|
3061
3067
|
}, e.prototype.isEOF = function() {
|
|
@@ -3070,7 +3076,7 @@ var Sn = (
|
|
|
3070
3076
|
var t = this.position.offset;
|
|
3071
3077
|
if (t >= this.message.length)
|
|
3072
3078
|
throw Error("out of bound");
|
|
3073
|
-
var r =
|
|
3079
|
+
var r = Wt(this.message, t);
|
|
3074
3080
|
if (r === void 0)
|
|
3075
3081
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3076
3082
|
return r;
|
|
@@ -3089,7 +3095,7 @@ var Sn = (
|
|
|
3089
3095
|
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);
|
|
3090
3096
|
}
|
|
3091
3097
|
}, e.prototype.bumpIf = function(t) {
|
|
3092
|
-
if (
|
|
3098
|
+
if (ht(this.message, t, this.offset())) {
|
|
3093
3099
|
for (var r = 0; r < t.length; r++)
|
|
3094
3100
|
this.bump();
|
|
3095
3101
|
return !0;
|
|
@@ -3111,7 +3117,7 @@ var Sn = (
|
|
|
3111
3117
|
break;
|
|
3112
3118
|
}
|
|
3113
3119
|
}, e.prototype.bumpSpace = function() {
|
|
3114
|
-
for (; !this.isEOF() &&
|
|
3120
|
+
for (; !this.isEOF() && Zt(this.char()); )
|
|
3115
3121
|
this.bump();
|
|
3116
3122
|
}, e.prototype.peek = function() {
|
|
3117
3123
|
if (this.isEOF())
|
|
@@ -3121,47 +3127,47 @@ var Sn = (
|
|
|
3121
3127
|
}, e;
|
|
3122
3128
|
}()
|
|
3123
3129
|
);
|
|
3124
|
-
function
|
|
3130
|
+
function ke(e) {
|
|
3125
3131
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3126
3132
|
}
|
|
3127
|
-
function
|
|
3128
|
-
return
|
|
3133
|
+
function Pn(e) {
|
|
3134
|
+
return ke(e) || e === 47;
|
|
3129
3135
|
}
|
|
3130
3136
|
function Cn(e) {
|
|
3131
3137
|
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;
|
|
3132
3138
|
}
|
|
3133
|
-
function
|
|
3139
|
+
function Zt(e) {
|
|
3134
3140
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3135
3141
|
}
|
|
3136
|
-
function
|
|
3142
|
+
function Ln(e) {
|
|
3137
3143
|
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;
|
|
3138
3144
|
}
|
|
3139
|
-
function
|
|
3145
|
+
function Ve(e) {
|
|
3140
3146
|
e.forEach(function(t) {
|
|
3141
|
-
if (delete t.location,
|
|
3147
|
+
if (delete t.location, Ut(t) || Dt(t))
|
|
3142
3148
|
for (var r in t.options)
|
|
3143
|
-
delete t.options[r].location,
|
|
3149
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3144
3150
|
else
|
|
3145
|
-
|
|
3151
|
+
Mt(t) && Ft(t.style) || ($t(t) || Rt(t)) && De(t.style) ? delete t.style.location : Gt(t) && Ve(t.children);
|
|
3146
3152
|
});
|
|
3147
3153
|
}
|
|
3148
|
-
function
|
|
3149
|
-
t === void 0 && (t = {}), t =
|
|
3150
|
-
var r = new
|
|
3154
|
+
function Nn(e, t) {
|
|
3155
|
+
t === void 0 && (t = {}), t = pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3156
|
+
var r = new On(e, t).parse();
|
|
3151
3157
|
if (r.err) {
|
|
3152
3158
|
var n = SyntaxError(d[r.err.kind]);
|
|
3153
3159
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3154
3160
|
}
|
|
3155
|
-
return t != null && t.captureLocation ||
|
|
3161
|
+
return t != null && t.captureLocation || Ve(r.val), r.val;
|
|
3156
3162
|
}
|
|
3157
|
-
var
|
|
3163
|
+
var W;
|
|
3158
3164
|
(function(e) {
|
|
3159
3165
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3160
|
-
})(
|
|
3161
|
-
var
|
|
3166
|
+
})(W || (W = {}));
|
|
3167
|
+
var Ee = (
|
|
3162
3168
|
/** @class */
|
|
3163
3169
|
function(e) {
|
|
3164
|
-
|
|
3170
|
+
ye(t, e);
|
|
3165
3171
|
function t(r, n, i) {
|
|
3166
3172
|
var s = e.call(this, r) || this;
|
|
3167
3173
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3170,155 +3176,155 @@ var _e = (
|
|
|
3170
3176
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3171
3177
|
}, t;
|
|
3172
3178
|
}(Error)
|
|
3173
|
-
),
|
|
3179
|
+
), ct = (
|
|
3174
3180
|
/** @class */
|
|
3175
3181
|
function(e) {
|
|
3176
|
-
|
|
3182
|
+
ye(t, e);
|
|
3177
3183
|
function t(r, n, i, s) {
|
|
3178
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3184
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, s) || this;
|
|
3179
3185
|
}
|
|
3180
3186
|
return t;
|
|
3181
|
-
}(
|
|
3182
|
-
),
|
|
3187
|
+
}(Ee)
|
|
3188
|
+
), In = (
|
|
3183
3189
|
/** @class */
|
|
3184
3190
|
function(e) {
|
|
3185
|
-
|
|
3191
|
+
ye(t, e);
|
|
3186
3192
|
function t(r, n, i) {
|
|
3187
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3193
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
|
|
3188
3194
|
}
|
|
3189
3195
|
return t;
|
|
3190
|
-
}(
|
|
3191
|
-
),
|
|
3196
|
+
}(Ee)
|
|
3197
|
+
), Mn = (
|
|
3192
3198
|
/** @class */
|
|
3193
3199
|
function(e) {
|
|
3194
|
-
|
|
3200
|
+
ye(t, e);
|
|
3195
3201
|
function t(r, n) {
|
|
3196
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3202
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
|
|
3197
3203
|
}
|
|
3198
3204
|
return t;
|
|
3199
|
-
}(
|
|
3200
|
-
),
|
|
3205
|
+
}(Ee)
|
|
3206
|
+
), x;
|
|
3201
3207
|
(function(e) {
|
|
3202
3208
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3203
|
-
})(
|
|
3204
|
-
function
|
|
3209
|
+
})(x || (x = {}));
|
|
3210
|
+
function $n(e) {
|
|
3205
3211
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3206
3212
|
var n = t[t.length - 1];
|
|
3207
|
-
return !n || n.type !==
|
|
3213
|
+
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3208
3214
|
}, []);
|
|
3209
3215
|
}
|
|
3210
|
-
function
|
|
3216
|
+
function Rn(e) {
|
|
3211
3217
|
return typeof e == "function";
|
|
3212
3218
|
}
|
|
3213
|
-
function
|
|
3214
|
-
if (e.length === 1 &&
|
|
3219
|
+
function fe(e, t, r, n, i, s, a) {
|
|
3220
|
+
if (e.length === 1 && st(e[0]))
|
|
3215
3221
|
return [
|
|
3216
3222
|
{
|
|
3217
|
-
type:
|
|
3223
|
+
type: x.literal,
|
|
3218
3224
|
value: e[0].value
|
|
3219
3225
|
}
|
|
3220
3226
|
];
|
|
3221
|
-
for (var o = [], l = 0,
|
|
3222
|
-
var
|
|
3223
|
-
if (
|
|
3227
|
+
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
|
3228
|
+
var h = u[l];
|
|
3229
|
+
if (st(h)) {
|
|
3224
3230
|
o.push({
|
|
3225
|
-
type:
|
|
3226
|
-
value:
|
|
3231
|
+
type: x.literal,
|
|
3232
|
+
value: h.value
|
|
3227
3233
|
});
|
|
3228
3234
|
continue;
|
|
3229
3235
|
}
|
|
3230
|
-
if (
|
|
3236
|
+
if (sn(h)) {
|
|
3231
3237
|
typeof s == "number" && o.push({
|
|
3232
|
-
type:
|
|
3238
|
+
type: x.literal,
|
|
3233
3239
|
value: r.getNumberFormat(t).format(s)
|
|
3234
3240
|
});
|
|
3235
3241
|
continue;
|
|
3236
3242
|
}
|
|
3237
|
-
var f =
|
|
3243
|
+
var f = h.value;
|
|
3238
3244
|
if (!(i && f in i))
|
|
3239
|
-
throw new
|
|
3245
|
+
throw new Mn(f, a);
|
|
3240
3246
|
var c = i[f];
|
|
3241
|
-
if (
|
|
3247
|
+
if (nn(h)) {
|
|
3242
3248
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3243
|
-
type: typeof c == "string" ?
|
|
3249
|
+
type: typeof c == "string" ? x.literal : x.object,
|
|
3244
3250
|
value: c
|
|
3245
3251
|
});
|
|
3246
3252
|
continue;
|
|
3247
3253
|
}
|
|
3248
|
-
if (
|
|
3249
|
-
var p = typeof
|
|
3254
|
+
if ($t(h)) {
|
|
3255
|
+
var p = typeof h.style == "string" ? n.date[h.style] : De(h.style) ? h.style.parsedOptions : void 0;
|
|
3250
3256
|
o.push({
|
|
3251
|
-
type:
|
|
3257
|
+
type: x.literal,
|
|
3252
3258
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3253
3259
|
});
|
|
3254
3260
|
continue;
|
|
3255
3261
|
}
|
|
3256
|
-
if (
|
|
3257
|
-
var p = typeof
|
|
3262
|
+
if (Rt(h)) {
|
|
3263
|
+
var p = typeof h.style == "string" ? n.time[h.style] : De(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3258
3264
|
o.push({
|
|
3259
|
-
type:
|
|
3265
|
+
type: x.literal,
|
|
3260
3266
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3261
3267
|
});
|
|
3262
3268
|
continue;
|
|
3263
3269
|
}
|
|
3264
|
-
if (
|
|
3265
|
-
var p = typeof
|
|
3270
|
+
if (Mt(h)) {
|
|
3271
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Ft(h.style) ? h.style.parsedOptions : void 0;
|
|
3266
3272
|
p && p.scale && (c = c * (p.scale || 1)), o.push({
|
|
3267
|
-
type:
|
|
3273
|
+
type: x.literal,
|
|
3268
3274
|
value: r.getNumberFormat(t, p).format(c)
|
|
3269
3275
|
});
|
|
3270
3276
|
continue;
|
|
3271
3277
|
}
|
|
3272
|
-
if (
|
|
3273
|
-
var m =
|
|
3274
|
-
if (!
|
|
3275
|
-
throw new
|
|
3276
|
-
var
|
|
3277
|
-
return
|
|
3278
|
+
if (Gt(h)) {
|
|
3279
|
+
var m = h.children, g = h.value, v = i[g];
|
|
3280
|
+
if (!Rn(v))
|
|
3281
|
+
throw new In(g, "function", a);
|
|
3282
|
+
var I = fe(m, t, r, n, i, s), P = v(I.map(function(S) {
|
|
3283
|
+
return S.value;
|
|
3278
3284
|
}));
|
|
3279
|
-
Array.isArray(
|
|
3285
|
+
Array.isArray(P) || (P = [P]), o.push.apply(o, P.map(function(S) {
|
|
3280
3286
|
return {
|
|
3281
|
-
type: typeof
|
|
3282
|
-
value:
|
|
3287
|
+
type: typeof S == "string" ? x.literal : x.object,
|
|
3288
|
+
value: S
|
|
3283
3289
|
};
|
|
3284
3290
|
}));
|
|
3285
3291
|
}
|
|
3286
|
-
if (
|
|
3287
|
-
var H =
|
|
3292
|
+
if (Ut(h)) {
|
|
3293
|
+
var H = h.options[c] || h.options.other;
|
|
3288
3294
|
if (!H)
|
|
3289
|
-
throw new
|
|
3290
|
-
o.push.apply(o,
|
|
3295
|
+
throw new ct(h.value, c, Object.keys(h.options), a);
|
|
3296
|
+
o.push.apply(o, fe(H.value, t, r, n, i));
|
|
3291
3297
|
continue;
|
|
3292
3298
|
}
|
|
3293
|
-
if (
|
|
3294
|
-
var H =
|
|
3299
|
+
if (Dt(h)) {
|
|
3300
|
+
var H = h.options["=".concat(c)];
|
|
3295
3301
|
if (!H) {
|
|
3296
3302
|
if (!Intl.PluralRules)
|
|
3297
|
-
throw new
|
|
3303
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3298
3304
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3299
|
-
`,
|
|
3300
|
-
var
|
|
3301
|
-
H =
|
|
3305
|
+
`, W.MISSING_INTL_API, a);
|
|
3306
|
+
var M = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3307
|
+
H = h.options[M] || h.options.other;
|
|
3302
3308
|
}
|
|
3303
3309
|
if (!H)
|
|
3304
|
-
throw new
|
|
3305
|
-
o.push.apply(o,
|
|
3310
|
+
throw new ct(h.value, c, Object.keys(h.options), a);
|
|
3311
|
+
o.push.apply(o, fe(H.value, t, r, n, i, c - (h.offset || 0)));
|
|
3306
3312
|
continue;
|
|
3307
3313
|
}
|
|
3308
3314
|
}
|
|
3309
|
-
return
|
|
3315
|
+
return $n(o);
|
|
3310
3316
|
}
|
|
3311
|
-
function
|
|
3312
|
-
return t ?
|
|
3313
|
-
return r[n] =
|
|
3317
|
+
function Un(e, t) {
|
|
3318
|
+
return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3319
|
+
return r[n] = w(w({}, e[n]), t[n] || {}), r;
|
|
3314
3320
|
}, {})) : e;
|
|
3315
3321
|
}
|
|
3316
|
-
function
|
|
3322
|
+
function Dn(e, t) {
|
|
3317
3323
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3318
|
-
return r[n] =
|
|
3319
|
-
},
|
|
3324
|
+
return r[n] = Un(e[n], t[n]), r;
|
|
3325
|
+
}, w({}, e)) : e;
|
|
3320
3326
|
}
|
|
3321
|
-
function
|
|
3327
|
+
function Ne(e) {
|
|
3322
3328
|
return {
|
|
3323
3329
|
create: function() {
|
|
3324
3330
|
return {
|
|
@@ -3332,39 +3338,39 @@ function Pe(e) {
|
|
|
3332
3338
|
}
|
|
3333
3339
|
};
|
|
3334
3340
|
}
|
|
3335
|
-
function
|
|
3341
|
+
function Gn(e) {
|
|
3336
3342
|
return e === void 0 && (e = {
|
|
3337
3343
|
number: {},
|
|
3338
3344
|
dateTime: {},
|
|
3339
3345
|
pluralRules: {}
|
|
3340
3346
|
}), {
|
|
3341
|
-
getNumberFormat:
|
|
3347
|
+
getNumberFormat: Pe(function() {
|
|
3342
3348
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3343
3349
|
r[n] = arguments[n];
|
|
3344
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3350
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3345
3351
|
}, {
|
|
3346
|
-
cache:
|
|
3352
|
+
cache: Ne(e.number),
|
|
3347
3353
|
strategy: Ce.variadic
|
|
3348
3354
|
}),
|
|
3349
|
-
getDateTimeFormat:
|
|
3355
|
+
getDateTimeFormat: Pe(function() {
|
|
3350
3356
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3351
3357
|
r[n] = arguments[n];
|
|
3352
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3358
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3353
3359
|
}, {
|
|
3354
|
-
cache:
|
|
3360
|
+
cache: Ne(e.dateTime),
|
|
3355
3361
|
strategy: Ce.variadic
|
|
3356
3362
|
}),
|
|
3357
|
-
getPluralRules:
|
|
3363
|
+
getPluralRules: Pe(function() {
|
|
3358
3364
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3359
3365
|
r[n] = arguments[n];
|
|
3360
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3366
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3361
3367
|
}, {
|
|
3362
|
-
cache:
|
|
3368
|
+
cache: Ne(e.pluralRules),
|
|
3363
3369
|
strategy: Ce.variadic
|
|
3364
3370
|
})
|
|
3365
3371
|
};
|
|
3366
3372
|
}
|
|
3367
|
-
var
|
|
3373
|
+
var Qt = (
|
|
3368
3374
|
/** @class */
|
|
3369
3375
|
function() {
|
|
3370
3376
|
function e(t, r, n, i) {
|
|
@@ -3375,15 +3381,15 @@ var zt = (
|
|
|
3375
3381
|
dateTime: {},
|
|
3376
3382
|
pluralRules: {}
|
|
3377
3383
|
}, this.format = function(l) {
|
|
3378
|
-
var
|
|
3379
|
-
if (
|
|
3380
|
-
return
|
|
3381
|
-
var
|
|
3382
|
-
return !f.length || c.type !==
|
|
3384
|
+
var u = s.formatToParts(l);
|
|
3385
|
+
if (u.length === 1)
|
|
3386
|
+
return u[0].value;
|
|
3387
|
+
var h = u.reduce(function(f, c) {
|
|
3388
|
+
return !f.length || c.type !== x.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3383
3389
|
}, []);
|
|
3384
|
-
return
|
|
3390
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
3385
3391
|
}, this.formatToParts = function(l) {
|
|
3386
|
-
return
|
|
3392
|
+
return fe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3387
3393
|
}, this.resolvedOptions = function() {
|
|
3388
3394
|
var l;
|
|
3389
3395
|
return {
|
|
@@ -3396,13 +3402,13 @@ var zt = (
|
|
|
3396
3402
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3397
3403
|
var a = i || {};
|
|
3398
3404
|
a.formatters;
|
|
3399
|
-
var o =
|
|
3400
|
-
this.ast = e.__parse(t,
|
|
3405
|
+
var o = Qr(a, ["formatters"]);
|
|
3406
|
+
this.ast = e.__parse(t, w(w({}, o), { locale: this.resolvedLocale }));
|
|
3401
3407
|
} else
|
|
3402
3408
|
this.ast = t;
|
|
3403
3409
|
if (!Array.isArray(this.ast))
|
|
3404
3410
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3405
|
-
this.formats =
|
|
3411
|
+
this.formats = Dn(e.formats, n), this.formatters = i && i.formatters || Gn(this.formatterCache);
|
|
3406
3412
|
}
|
|
3407
3413
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3408
3414
|
get: function() {
|
|
@@ -3415,7 +3421,7 @@ var zt = (
|
|
|
3415
3421
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3416
3422
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3417
3423
|
}
|
|
3418
|
-
}, e.__parse =
|
|
3424
|
+
}, e.__parse = Nn, e.formats = {
|
|
3419
3425
|
number: {
|
|
3420
3426
|
integer: {
|
|
3421
3427
|
maximumFractionDigits: 0
|
|
@@ -3476,7 +3482,7 @@ var zt = (
|
|
|
3476
3482
|
}, e;
|
|
3477
3483
|
}()
|
|
3478
3484
|
);
|
|
3479
|
-
function
|
|
3485
|
+
function Fn(e, t) {
|
|
3480
3486
|
if (t == null)
|
|
3481
3487
|
return;
|
|
3482
3488
|
if (t in e)
|
|
@@ -3497,101 +3503,101 @@ function Dn(e, t) {
|
|
|
3497
3503
|
n = void 0;
|
|
3498
3504
|
return n;
|
|
3499
3505
|
}
|
|
3500
|
-
const
|
|
3506
|
+
const C = {}, jn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Jt = (e, t) => {
|
|
3501
3507
|
if (t == null)
|
|
3502
3508
|
return;
|
|
3503
|
-
if (t in
|
|
3504
|
-
return
|
|
3505
|
-
const r =
|
|
3509
|
+
if (t in C && e in C[t])
|
|
3510
|
+
return C[t][e];
|
|
3511
|
+
const r = se(t);
|
|
3506
3512
|
for (let n = 0; n < r.length; n++) {
|
|
3507
|
-
const i = r[n], s =
|
|
3513
|
+
const i = r[n], s = Vn(i, e);
|
|
3508
3514
|
if (s)
|
|
3509
|
-
return
|
|
3515
|
+
return jn(e, t, s);
|
|
3510
3516
|
}
|
|
3511
3517
|
};
|
|
3512
|
-
let
|
|
3513
|
-
const
|
|
3514
|
-
function
|
|
3515
|
-
return
|
|
3518
|
+
let Qe;
|
|
3519
|
+
const ie = _e({});
|
|
3520
|
+
function kn(e) {
|
|
3521
|
+
return Qe[e] || null;
|
|
3516
3522
|
}
|
|
3517
|
-
function
|
|
3518
|
-
return e in
|
|
3523
|
+
function qt(e) {
|
|
3524
|
+
return e in Qe;
|
|
3519
3525
|
}
|
|
3520
|
-
function
|
|
3521
|
-
if (!
|
|
3526
|
+
function Vn(e, t) {
|
|
3527
|
+
if (!qt(e))
|
|
3522
3528
|
return null;
|
|
3523
|
-
const r =
|
|
3524
|
-
return
|
|
3529
|
+
const r = kn(e);
|
|
3530
|
+
return Fn(r, t);
|
|
3525
3531
|
}
|
|
3526
|
-
function
|
|
3532
|
+
function Xn(e) {
|
|
3527
3533
|
if (e == null)
|
|
3528
3534
|
return;
|
|
3529
|
-
const t =
|
|
3535
|
+
const t = se(e);
|
|
3530
3536
|
for (let r = 0; r < t.length; r++) {
|
|
3531
3537
|
const n = t[r];
|
|
3532
|
-
if (
|
|
3538
|
+
if (qt(n))
|
|
3533
3539
|
return n;
|
|
3534
3540
|
}
|
|
3535
3541
|
}
|
|
3536
|
-
function
|
|
3537
|
-
delete
|
|
3542
|
+
function Yt(e, ...t) {
|
|
3543
|
+
delete C[e], ie.update((r) => (r[e] = Zr.all([r[e] || {}, ...t]), r));
|
|
3538
3544
|
}
|
|
3539
|
-
|
|
3540
|
-
[
|
|
3545
|
+
Q(
|
|
3546
|
+
[ie],
|
|
3541
3547
|
([e]) => Object.keys(e)
|
|
3542
3548
|
);
|
|
3543
|
-
|
|
3544
|
-
const
|
|
3545
|
-
function
|
|
3546
|
-
|
|
3549
|
+
ie.subscribe((e) => Qe = e);
|
|
3550
|
+
const ce = {};
|
|
3551
|
+
function Wn(e, t) {
|
|
3552
|
+
ce[e].delete(t), ce[e].size === 0 && delete ce[e];
|
|
3547
3553
|
}
|
|
3548
|
-
function
|
|
3549
|
-
return
|
|
3554
|
+
function Kt(e) {
|
|
3555
|
+
return ce[e];
|
|
3550
3556
|
}
|
|
3551
|
-
function
|
|
3552
|
-
return
|
|
3553
|
-
const r =
|
|
3557
|
+
function zn(e) {
|
|
3558
|
+
return se(e).map((t) => {
|
|
3559
|
+
const r = Kt(t);
|
|
3554
3560
|
return [t, r ? [...r] : []];
|
|
3555
3561
|
}).filter(([, t]) => t.length > 0);
|
|
3556
3562
|
}
|
|
3557
|
-
function
|
|
3558
|
-
return e == null ? !1 :
|
|
3563
|
+
function de(e) {
|
|
3564
|
+
return e == null ? !1 : se(e).some(
|
|
3559
3565
|
(t) => {
|
|
3560
3566
|
var r;
|
|
3561
|
-
return (r =
|
|
3567
|
+
return (r = Kt(t)) == null ? void 0 : r.size;
|
|
3562
3568
|
}
|
|
3563
3569
|
);
|
|
3564
3570
|
}
|
|
3565
|
-
function
|
|
3571
|
+
function Zn(e, t) {
|
|
3566
3572
|
return Promise.all(
|
|
3567
|
-
t.map((n) => (
|
|
3568
|
-
).then((n) =>
|
|
3569
|
-
}
|
|
3570
|
-
const
|
|
3571
|
-
function
|
|
3572
|
-
if (!
|
|
3573
|
-
return e in
|
|
3574
|
-
const t =
|
|
3575
|
-
return
|
|
3573
|
+
t.map((n) => (Wn(e, n), n().then((i) => i.default || i)))
|
|
3574
|
+
).then((n) => Yt(e, ...n));
|
|
3575
|
+
}
|
|
3576
|
+
const q = {};
|
|
3577
|
+
function er(e) {
|
|
3578
|
+
if (!de(e))
|
|
3579
|
+
return e in q ? q[e] : Promise.resolve();
|
|
3580
|
+
const t = zn(e);
|
|
3581
|
+
return q[e] = Promise.all(
|
|
3576
3582
|
t.map(
|
|
3577
|
-
([r, n]) =>
|
|
3583
|
+
([r, n]) => Zn(r, n)
|
|
3578
3584
|
)
|
|
3579
3585
|
).then(() => {
|
|
3580
|
-
if (
|
|
3581
|
-
return
|
|
3582
|
-
delete
|
|
3583
|
-
}),
|
|
3586
|
+
if (de(e))
|
|
3587
|
+
return er(e);
|
|
3588
|
+
delete q[e];
|
|
3589
|
+
}), q[e];
|
|
3584
3590
|
}
|
|
3585
|
-
var
|
|
3591
|
+
var mt = Object.getOwnPropertySymbols, Qn = Object.prototype.hasOwnProperty, Jn = Object.prototype.propertyIsEnumerable, qn = (e, t) => {
|
|
3586
3592
|
var r = {};
|
|
3587
3593
|
for (var n in e)
|
|
3588
|
-
|
|
3589
|
-
if (e != null &&
|
|
3590
|
-
for (var n of
|
|
3591
|
-
t.indexOf(n) < 0 &&
|
|
3594
|
+
Qn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3595
|
+
if (e != null && mt)
|
|
3596
|
+
for (var n of mt(e))
|
|
3597
|
+
t.indexOf(n) < 0 && Jn.call(e, n) && (r[n] = e[n]);
|
|
3592
3598
|
return r;
|
|
3593
3599
|
};
|
|
3594
|
-
const
|
|
3600
|
+
const Yn = {
|
|
3595
3601
|
number: {
|
|
3596
3602
|
scientific: { notation: "scientific" },
|
|
3597
3603
|
engineering: { notation: "engineering" },
|
|
@@ -3621,183 +3627,183 @@ const Jn = {
|
|
|
3621
3627
|
}
|
|
3622
3628
|
}
|
|
3623
3629
|
};
|
|
3624
|
-
function
|
|
3630
|
+
function Kn({ locale: e, id: t }) {
|
|
3625
3631
|
console.warn(
|
|
3626
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3632
|
+
`[svelte-i18n] The message "${t}" was not found in "${se(
|
|
3627
3633
|
e
|
|
3628
|
-
).join('", "')}".${
|
|
3634
|
+
).join('", "')}".${de(N()) ? `
|
|
3629
3635
|
|
|
3630
3636
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3631
3637
|
);
|
|
3632
3638
|
}
|
|
3633
|
-
const
|
|
3639
|
+
const ei = {
|
|
3634
3640
|
fallbackLocale: null,
|
|
3635
3641
|
loadingDelay: 200,
|
|
3636
|
-
formats:
|
|
3642
|
+
formats: Yn,
|
|
3637
3643
|
warnOnMissingMessages: !0,
|
|
3638
3644
|
handleMissingMessage: void 0,
|
|
3639
3645
|
ignoreTag: !0
|
|
3640
|
-
},
|
|
3641
|
-
function
|
|
3642
|
-
return
|
|
3646
|
+
}, Y = ei;
|
|
3647
|
+
function z() {
|
|
3648
|
+
return Y;
|
|
3643
3649
|
}
|
|
3644
|
-
function
|
|
3645
|
-
const t = e, { formats: r } = t, n =
|
|
3650
|
+
function ti(e) {
|
|
3651
|
+
const t = e, { formats: r } = t, n = qn(t, ["formats"]);
|
|
3646
3652
|
let i = e.fallbackLocale;
|
|
3647
3653
|
if (e.initialLocale)
|
|
3648
3654
|
try {
|
|
3649
|
-
|
|
3655
|
+
Qt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3650
3656
|
} catch (s) {
|
|
3651
3657
|
console.warn(
|
|
3652
3658
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3653
3659
|
);
|
|
3654
3660
|
}
|
|
3655
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3661
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Kn : console.warn(
|
|
3656
3662
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3657
|
-
)), Object.assign(
|
|
3663
|
+
)), Object.assign(Y, n, { initialLocale: i }), r && ("number" in r && Object.assign(Y.formats.number, r.number), "date" in r && Object.assign(Y.formats.date, r.date), "time" in r && Object.assign(Y.formats.time, r.time)), R.set(i);
|
|
3658
3664
|
}
|
|
3659
|
-
const
|
|
3660
|
-
var
|
|
3665
|
+
const Ie = _e(!1);
|
|
3666
|
+
var ri = Object.defineProperty, ni = Object.defineProperties, ii = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, si = Object.prototype.hasOwnProperty, oi = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ai = (e, t) => {
|
|
3661
3667
|
for (var r in t || (t = {}))
|
|
3662
|
-
|
|
3663
|
-
if (
|
|
3664
|
-
for (var r of
|
|
3665
|
-
|
|
3668
|
+
si.call(t, r) && dt(e, r, t[r]);
|
|
3669
|
+
if (pt)
|
|
3670
|
+
for (var r of pt(t))
|
|
3671
|
+
oi.call(t, r) && dt(e, r, t[r]);
|
|
3666
3672
|
return e;
|
|
3667
|
-
},
|
|
3668
|
-
let
|
|
3669
|
-
const
|
|
3670
|
-
function
|
|
3673
|
+
}, ui = (e, t) => ni(e, ii(t));
|
|
3674
|
+
let Xe;
|
|
3675
|
+
const be = _e(null);
|
|
3676
|
+
function bt(e) {
|
|
3671
3677
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3672
3678
|
}
|
|
3673
|
-
function
|
|
3674
|
-
const r =
|
|
3675
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3679
|
+
function se(e, t = z().fallbackLocale) {
|
|
3680
|
+
const r = bt(e);
|
|
3681
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
|
|
3676
3682
|
}
|
|
3677
|
-
function
|
|
3678
|
-
return
|
|
3683
|
+
function N() {
|
|
3684
|
+
return Xe != null ? Xe : void 0;
|
|
3679
3685
|
}
|
|
3680
|
-
|
|
3681
|
-
|
|
3686
|
+
be.subscribe((e) => {
|
|
3687
|
+
Xe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3682
3688
|
});
|
|
3683
|
-
const
|
|
3684
|
-
if (e &&
|
|
3685
|
-
const { loadingDelay: t } =
|
|
3689
|
+
const hi = (e) => {
|
|
3690
|
+
if (e && Xn(e) && de(e)) {
|
|
3691
|
+
const { loadingDelay: t } = z();
|
|
3686
3692
|
let r;
|
|
3687
|
-
return typeof window != "undefined" &&
|
|
3688
|
-
() =>
|
|
3693
|
+
return typeof window != "undefined" && N() != null && t ? r = window.setTimeout(
|
|
3694
|
+
() => Ie.set(!0),
|
|
3689
3695
|
t
|
|
3690
|
-
) :
|
|
3691
|
-
|
|
3696
|
+
) : Ie.set(!0), er(e).then(() => {
|
|
3697
|
+
be.set(e);
|
|
3692
3698
|
}).finally(() => {
|
|
3693
|
-
clearTimeout(r),
|
|
3699
|
+
clearTimeout(r), Ie.set(!1);
|
|
3694
3700
|
});
|
|
3695
3701
|
}
|
|
3696
|
-
return
|
|
3697
|
-
},
|
|
3698
|
-
set:
|
|
3699
|
-
}),
|
|
3702
|
+
return be.set(e);
|
|
3703
|
+
}, R = ui(ai({}, be), {
|
|
3704
|
+
set: hi
|
|
3705
|
+
}), xe = (e) => {
|
|
3700
3706
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3701
3707
|
return (n) => {
|
|
3702
3708
|
const i = JSON.stringify(n);
|
|
3703
3709
|
return i in t ? t[i] : t[i] = e(n);
|
|
3704
3710
|
};
|
|
3705
3711
|
};
|
|
3706
|
-
var
|
|
3712
|
+
var li = Object.defineProperty, ge = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
3707
3713
|
for (var r in t || (t = {}))
|
|
3708
|
-
|
|
3709
|
-
if (
|
|
3710
|
-
for (var r of
|
|
3711
|
-
|
|
3714
|
+
tr.call(t, r) && gt(e, r, t[r]);
|
|
3715
|
+
if (ge)
|
|
3716
|
+
for (var r of ge(t))
|
|
3717
|
+
rr.call(t, r) && gt(e, r, t[r]);
|
|
3712
3718
|
return e;
|
|
3713
|
-
},
|
|
3719
|
+
}, J = (e, t) => {
|
|
3714
3720
|
var r = {};
|
|
3715
3721
|
for (var n in e)
|
|
3716
|
-
|
|
3717
|
-
if (e != null &&
|
|
3718
|
-
for (var n of
|
|
3719
|
-
t.indexOf(n) < 0 &&
|
|
3722
|
+
tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3723
|
+
if (e != null && ge)
|
|
3724
|
+
for (var n of ge(e))
|
|
3725
|
+
t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
|
|
3720
3726
|
return r;
|
|
3721
3727
|
};
|
|
3722
|
-
const
|
|
3723
|
-
const { formats: r } =
|
|
3728
|
+
const te = (e, t) => {
|
|
3729
|
+
const { formats: r } = z();
|
|
3724
3730
|
if (e in r && t in r[e])
|
|
3725
3731
|
return r[e][t];
|
|
3726
3732
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3727
|
-
},
|
|
3733
|
+
}, fi = xe(
|
|
3728
3734
|
(e) => {
|
|
3729
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3735
|
+
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
3730
3736
|
if (r == null)
|
|
3731
3737
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3732
|
-
return n && (i =
|
|
3738
|
+
return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
|
|
3733
3739
|
}
|
|
3734
|
-
),
|
|
3740
|
+
), ci = xe(
|
|
3735
3741
|
(e) => {
|
|
3736
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3742
|
+
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
3737
3743
|
if (r == null)
|
|
3738
3744
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3739
|
-
return n ? i =
|
|
3745
|
+
return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3740
3746
|
}
|
|
3741
|
-
),
|
|
3747
|
+
), mi = xe(
|
|
3742
3748
|
(e) => {
|
|
3743
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3749
|
+
var t = e, { locale: r, format: n } = t, i = J(t, ["locale", "format"]);
|
|
3744
3750
|
if (r == null)
|
|
3745
3751
|
throw new Error(
|
|
3746
3752
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3747
3753
|
);
|
|
3748
|
-
return n ? i =
|
|
3754
|
+
return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3749
3755
|
}
|
|
3750
|
-
),
|
|
3756
|
+
), pi = (e = {}) => {
|
|
3751
3757
|
var t = e, {
|
|
3752
|
-
locale: r =
|
|
3753
|
-
} = t, n =
|
|
3758
|
+
locale: r = N()
|
|
3759
|
+
} = t, n = J(t, [
|
|
3754
3760
|
"locale"
|
|
3755
3761
|
]);
|
|
3756
|
-
return
|
|
3757
|
-
},
|
|
3762
|
+
return fi(Je({ locale: r }, n));
|
|
3763
|
+
}, di = (e = {}) => {
|
|
3758
3764
|
var t = e, {
|
|
3759
|
-
locale: r =
|
|
3760
|
-
} = t, n =
|
|
3765
|
+
locale: r = N()
|
|
3766
|
+
} = t, n = J(t, [
|
|
3761
3767
|
"locale"
|
|
3762
3768
|
]);
|
|
3763
|
-
return
|
|
3764
|
-
},
|
|
3769
|
+
return ci(Je({ locale: r }, n));
|
|
3770
|
+
}, bi = (e = {}) => {
|
|
3765
3771
|
var t = e, {
|
|
3766
|
-
locale: r =
|
|
3767
|
-
} = t, n =
|
|
3772
|
+
locale: r = N()
|
|
3773
|
+
} = t, n = J(t, [
|
|
3768
3774
|
"locale"
|
|
3769
3775
|
]);
|
|
3770
|
-
return
|
|
3771
|
-
},
|
|
3776
|
+
return mi(Je({ locale: r }, n));
|
|
3777
|
+
}, gi = xe(
|
|
3772
3778
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3773
|
-
(e, t =
|
|
3774
|
-
ignoreTag:
|
|
3779
|
+
(e, t = N()) => new Qt(e, t, z().formats, {
|
|
3780
|
+
ignoreTag: z().ignoreTag
|
|
3775
3781
|
})
|
|
3776
|
-
),
|
|
3782
|
+
), _i = (e, t = {}) => {
|
|
3777
3783
|
var r, n, i, s;
|
|
3778
3784
|
let a = t;
|
|
3779
3785
|
typeof e == "object" && (a = e, e = a.id);
|
|
3780
3786
|
const {
|
|
3781
3787
|
values: o,
|
|
3782
|
-
locale: l =
|
|
3783
|
-
default:
|
|
3788
|
+
locale: l = N(),
|
|
3789
|
+
default: u
|
|
3784
3790
|
} = a;
|
|
3785
3791
|
if (l == null)
|
|
3786
3792
|
throw new Error(
|
|
3787
3793
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3788
3794
|
);
|
|
3789
|
-
let
|
|
3790
|
-
if (!
|
|
3791
|
-
|
|
3792
|
-
else if (typeof
|
|
3795
|
+
let h = Jt(e, l);
|
|
3796
|
+
if (!h)
|
|
3797
|
+
h = (s = (i = (n = (r = z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3798
|
+
else if (typeof h != "string")
|
|
3793
3799
|
return console.warn(
|
|
3794
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3795
|
-
),
|
|
3800
|
+
`[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.`
|
|
3801
|
+
), h;
|
|
3796
3802
|
if (!o)
|
|
3797
|
-
return
|
|
3798
|
-
let f =
|
|
3803
|
+
return h;
|
|
3804
|
+
let f = h;
|
|
3799
3805
|
try {
|
|
3800
|
-
f =
|
|
3806
|
+
f = gi(h, l).format(o);
|
|
3801
3807
|
} catch (c) {
|
|
3802
3808
|
c instanceof Error && console.warn(
|
|
3803
3809
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3805,20 +3811,20 @@ const ee = (e, t) => {
|
|
|
3805
3811
|
);
|
|
3806
3812
|
}
|
|
3807
3813
|
return f;
|
|
3808
|
-
},
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
function
|
|
3814
|
-
|
|
3815
|
-
}
|
|
3816
|
-
function
|
|
3817
|
-
|
|
3814
|
+
}, yi = (e, t) => bi(t).format(e), Ei = (e, t) => di(t).format(e), xi = (e, t) => pi(t).format(e), vi = (e, t = N()) => Jt(e, t), Hi = Q([R, ie], () => _i);
|
|
3815
|
+
Q([R], () => yi);
|
|
3816
|
+
Q([R], () => Ei);
|
|
3817
|
+
Q([R], () => xi);
|
|
3818
|
+
Q([R, ie], () => vi);
|
|
3819
|
+
function _t(e, t) {
|
|
3820
|
+
Yt(e, t);
|
|
3821
|
+
}
|
|
3822
|
+
function Bi(e) {
|
|
3823
|
+
ti({
|
|
3818
3824
|
fallbackLocale: "en"
|
|
3819
|
-
}),
|
|
3825
|
+
}), R.set(e);
|
|
3820
3826
|
}
|
|
3821
|
-
const
|
|
3827
|
+
const yt = {
|
|
3822
3828
|
en: {
|
|
3823
3829
|
header: {
|
|
3824
3830
|
general: "Cashier",
|
|
@@ -3841,18 +3847,18 @@ const gt = {
|
|
|
3841
3847
|
}
|
|
3842
3848
|
}
|
|
3843
3849
|
};
|
|
3844
|
-
function
|
|
3845
|
-
|
|
3850
|
+
function Ti(e) {
|
|
3851
|
+
pr(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}");
|
|
3846
3852
|
}
|
|
3847
|
-
const
|
|
3848
|
-
function
|
|
3853
|
+
const wi = (e) => ({}), Et = (e) => ({}), Si = (e) => ({}), xt = (e) => ({}), Ai = (e) => ({}), vt = (e) => ({});
|
|
3854
|
+
function Ht(e) {
|
|
3849
3855
|
let t, r, n;
|
|
3850
3856
|
return {
|
|
3851
3857
|
c() {
|
|
3852
|
-
t =
|
|
3858
|
+
t = Z("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>', ne(t, "class", "CashierHeaderLeftButton");
|
|
3853
3859
|
},
|
|
3854
3860
|
m(i, s) {
|
|
3855
|
-
|
|
3861
|
+
$(i, t, s), r || (n = Pt(
|
|
3856
3862
|
t,
|
|
3857
3863
|
"click",
|
|
3858
3864
|
/*back*/
|
|
@@ -3861,32 +3867,32 @@ function Et(e) {
|
|
|
3861
3867
|
},
|
|
3862
3868
|
p: T,
|
|
3863
3869
|
d(i) {
|
|
3864
|
-
i &&
|
|
3870
|
+
i && L(t), r = !1, n();
|
|
3865
3871
|
}
|
|
3866
3872
|
};
|
|
3867
3873
|
}
|
|
3868
|
-
function
|
|
3874
|
+
function Oi(e) {
|
|
3869
3875
|
let t, r = (
|
|
3870
3876
|
/*backButton*/
|
|
3871
|
-
e[1] &&
|
|
3877
|
+
e[1] && Ht(e)
|
|
3872
3878
|
);
|
|
3873
3879
|
return {
|
|
3874
3880
|
c() {
|
|
3875
|
-
r && r.c(), t =
|
|
3881
|
+
r && r.c(), t = Ot();
|
|
3876
3882
|
},
|
|
3877
3883
|
m(n, i) {
|
|
3878
|
-
r && r.m(n, i),
|
|
3884
|
+
r && r.m(n, i), $(n, t, i);
|
|
3879
3885
|
},
|
|
3880
3886
|
p(n, i) {
|
|
3881
3887
|
/*backButton*/
|
|
3882
|
-
n[1] ? r ? r.p(n, i) : (r =
|
|
3888
|
+
n[1] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3883
3889
|
},
|
|
3884
3890
|
d(n) {
|
|
3885
|
-
n &&
|
|
3891
|
+
n && L(t), r && r.d(n);
|
|
3886
3892
|
}
|
|
3887
3893
|
};
|
|
3888
3894
|
}
|
|
3889
|
-
function
|
|
3895
|
+
function Pi(e) {
|
|
3890
3896
|
let t, r = (
|
|
3891
3897
|
/*$_*/
|
|
3892
3898
|
e[4](
|
|
@@ -3896,10 +3902,10 @@ function Ai(e) {
|
|
|
3896
3902
|
), n;
|
|
3897
3903
|
return {
|
|
3898
3904
|
c() {
|
|
3899
|
-
t =
|
|
3905
|
+
t = Z("span"), n = ze(r), ne(t, "class", "CashierHeaderTitle");
|
|
3900
3906
|
},
|
|
3901
3907
|
m(i, s) {
|
|
3902
|
-
|
|
3908
|
+
$(i, t, s), me(t, n);
|
|
3903
3909
|
},
|
|
3904
3910
|
p(i, s) {
|
|
3905
3911
|
s & /*$_, titleText*/
|
|
@@ -3907,21 +3913,21 @@ function Ai(e) {
|
|
|
3907
3913
|
i[4](
|
|
3908
3914
|
/*titleText*/
|
|
3909
3915
|
i[2]
|
|
3910
|
-
) + "") &&
|
|
3916
|
+
) + "") && _r(n, r);
|
|
3911
3917
|
},
|
|
3912
3918
|
d(i) {
|
|
3913
|
-
i &&
|
|
3919
|
+
i && L(t);
|
|
3914
3920
|
}
|
|
3915
3921
|
};
|
|
3916
3922
|
}
|
|
3917
|
-
function
|
|
3923
|
+
function Bt(e) {
|
|
3918
3924
|
let t, r, n;
|
|
3919
3925
|
return {
|
|
3920
3926
|
c() {
|
|
3921
|
-
t =
|
|
3927
|
+
t = Z("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>', ne(t, "class", "CashierHeaderRightButton");
|
|
3922
3928
|
},
|
|
3923
3929
|
m(i, s) {
|
|
3924
|
-
|
|
3930
|
+
$(i, t, s), r || (n = Pt(
|
|
3925
3931
|
t,
|
|
3926
3932
|
"click",
|
|
3927
3933
|
/*close*/
|
|
@@ -3930,226 +3936,226 @@ function vt(e) {
|
|
|
3930
3936
|
},
|
|
3931
3937
|
p: T,
|
|
3932
3938
|
d(i) {
|
|
3933
|
-
i &&
|
|
3939
|
+
i && L(t), r = !1, n();
|
|
3934
3940
|
}
|
|
3935
3941
|
};
|
|
3936
3942
|
}
|
|
3937
3943
|
function Ci(e) {
|
|
3938
3944
|
let t, r = (
|
|
3939
3945
|
/*closeButton*/
|
|
3940
|
-
e[3] &&
|
|
3946
|
+
e[3] && Bt(e)
|
|
3941
3947
|
);
|
|
3942
3948
|
return {
|
|
3943
3949
|
c() {
|
|
3944
|
-
r && r.c(), t =
|
|
3950
|
+
r && r.c(), t = Ot();
|
|
3945
3951
|
},
|
|
3946
3952
|
m(n, i) {
|
|
3947
|
-
r && r.m(n, i),
|
|
3953
|
+
r && r.m(n, i), $(n, t, i);
|
|
3948
3954
|
},
|
|
3949
3955
|
p(n, i) {
|
|
3950
3956
|
/*closeButton*/
|
|
3951
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
3957
|
+
n[3] ? r ? r.p(n, i) : (r = Bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3952
3958
|
},
|
|
3953
3959
|
d(n) {
|
|
3954
|
-
n &&
|
|
3960
|
+
n && L(t), r && r.d(n);
|
|
3955
3961
|
}
|
|
3956
3962
|
};
|
|
3957
3963
|
}
|
|
3958
|
-
function
|
|
3964
|
+
function Li(e) {
|
|
3959
3965
|
let t, r, n, i;
|
|
3960
3966
|
const s = (
|
|
3961
3967
|
/*#slots*/
|
|
3962
3968
|
e[15].leftButton
|
|
3963
|
-
), a =
|
|
3969
|
+
), a = He(
|
|
3964
3970
|
s,
|
|
3965
3971
|
e,
|
|
3966
3972
|
/*$$scope*/
|
|
3967
3973
|
e[14],
|
|
3968
|
-
|
|
3969
|
-
), o = a ||
|
|
3974
|
+
vt
|
|
3975
|
+
), o = a || Oi(e), l = (
|
|
3970
3976
|
/*#slots*/
|
|
3971
3977
|
e[15].title
|
|
3972
|
-
),
|
|
3978
|
+
), u = He(
|
|
3973
3979
|
l,
|
|
3974
3980
|
e,
|
|
3975
3981
|
/*$$scope*/
|
|
3976
3982
|
e[14],
|
|
3977
|
-
|
|
3978
|
-
),
|
|
3983
|
+
xt
|
|
3984
|
+
), h = u || Pi(e), f = (
|
|
3979
3985
|
/*#slots*/
|
|
3980
3986
|
e[15].rightButton
|
|
3981
|
-
), c =
|
|
3987
|
+
), c = He(
|
|
3982
3988
|
f,
|
|
3983
3989
|
e,
|
|
3984
3990
|
/*$$scope*/
|
|
3985
3991
|
e[14],
|
|
3986
|
-
|
|
3992
|
+
Et
|
|
3987
3993
|
), p = c || Ci(e);
|
|
3988
3994
|
return {
|
|
3989
3995
|
c() {
|
|
3990
|
-
t =
|
|
3996
|
+
t = Z("div"), o && o.c(), r = rt(), h && h.c(), n = rt(), p && p.c(), ne(t, "class", "CashierHeader");
|
|
3991
3997
|
},
|
|
3992
3998
|
m(m, g) {
|
|
3993
|
-
|
|
3999
|
+
$(m, t, g), o && o.m(t, null), me(t, r), h && h.m(t, null), me(t, n), p && p.m(t, null), e[16](t), i = !0;
|
|
3994
4000
|
},
|
|
3995
4001
|
p(m, [g]) {
|
|
3996
4002
|
a ? a.p && (!i || g & /*$$scope*/
|
|
3997
|
-
16384) &&
|
|
4003
|
+
16384) && Te(
|
|
3998
4004
|
a,
|
|
3999
4005
|
s,
|
|
4000
4006
|
m,
|
|
4001
4007
|
/*$$scope*/
|
|
4002
4008
|
m[14],
|
|
4003
|
-
i ?
|
|
4009
|
+
i ? Be(
|
|
4004
4010
|
s,
|
|
4005
4011
|
/*$$scope*/
|
|
4006
4012
|
m[14],
|
|
4007
4013
|
g,
|
|
4008
|
-
|
|
4009
|
-
) :
|
|
4014
|
+
Ai
|
|
4015
|
+
) : we(
|
|
4010
4016
|
/*$$scope*/
|
|
4011
4017
|
m[14]
|
|
4012
4018
|
),
|
|
4013
|
-
|
|
4019
|
+
vt
|
|
4014
4020
|
) : o && o.p && (!i || g & /*backButton*/
|
|
4015
|
-
2) && o.p(m, i ? g : -1),
|
|
4016
|
-
16384) &&
|
|
4017
|
-
|
|
4021
|
+
2) && o.p(m, i ? g : -1), u ? u.p && (!i || g & /*$$scope*/
|
|
4022
|
+
16384) && Te(
|
|
4023
|
+
u,
|
|
4018
4024
|
l,
|
|
4019
4025
|
m,
|
|
4020
4026
|
/*$$scope*/
|
|
4021
4027
|
m[14],
|
|
4022
|
-
i ?
|
|
4028
|
+
i ? Be(
|
|
4023
4029
|
l,
|
|
4024
4030
|
/*$$scope*/
|
|
4025
4031
|
m[14],
|
|
4026
4032
|
g,
|
|
4027
|
-
|
|
4028
|
-
) :
|
|
4033
|
+
Si
|
|
4034
|
+
) : we(
|
|
4029
4035
|
/*$$scope*/
|
|
4030
4036
|
m[14]
|
|
4031
4037
|
),
|
|
4032
|
-
|
|
4033
|
-
) :
|
|
4034
|
-
20) &&
|
|
4035
|
-
16384) &&
|
|
4038
|
+
xt
|
|
4039
|
+
) : h && h.p && (!i || g & /*$_, titleText*/
|
|
4040
|
+
20) && h.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
|
|
4041
|
+
16384) && Te(
|
|
4036
4042
|
c,
|
|
4037
4043
|
f,
|
|
4038
4044
|
m,
|
|
4039
4045
|
/*$$scope*/
|
|
4040
4046
|
m[14],
|
|
4041
|
-
i ?
|
|
4047
|
+
i ? Be(
|
|
4042
4048
|
f,
|
|
4043
4049
|
/*$$scope*/
|
|
4044
4050
|
m[14],
|
|
4045
4051
|
g,
|
|
4046
|
-
|
|
4047
|
-
) :
|
|
4052
|
+
wi
|
|
4053
|
+
) : we(
|
|
4048
4054
|
/*$$scope*/
|
|
4049
4055
|
m[14]
|
|
4050
4056
|
),
|
|
4051
|
-
|
|
4057
|
+
Et
|
|
4052
4058
|
) : p && p.p && (!i || g & /*closeButton*/
|
|
4053
4059
|
8) && p.p(m, i ? g : -1);
|
|
4054
4060
|
},
|
|
4055
4061
|
i(m) {
|
|
4056
|
-
i || (he(o, m), he(
|
|
4062
|
+
i || (he(o, m), he(h, m), he(p, m), i = !0);
|
|
4057
4063
|
},
|
|
4058
4064
|
o(m) {
|
|
4059
|
-
|
|
4065
|
+
Ae(o, m), Ae(h, m), Ae(p, m), i = !1;
|
|
4060
4066
|
},
|
|
4061
4067
|
d(m) {
|
|
4062
|
-
m &&
|
|
4068
|
+
m && L(t), o && o.d(m), h && h.d(m), p && p.d(m), e[16](null);
|
|
4063
4069
|
}
|
|
4064
4070
|
};
|
|
4065
4071
|
}
|
|
4066
|
-
function
|
|
4072
|
+
function Ni(e, t, r) {
|
|
4067
4073
|
let n;
|
|
4068
|
-
|
|
4069
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton:
|
|
4070
|
-
const
|
|
4074
|
+
mr(e, Hi, (_) => r(4, n = _));
|
|
4075
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, p, m = !1, g, v = !1;
|
|
4076
|
+
const I = () => {
|
|
4071
4077
|
let _ = l;
|
|
4072
|
-
_ && fetch(_).then((
|
|
4073
|
-
Object.keys(
|
|
4074
|
-
|
|
4078
|
+
_ && fetch(_).then((A) => A.json()).then((A) => {
|
|
4079
|
+
Object.keys(A).forEach((D) => {
|
|
4080
|
+
_t(D, A[D]);
|
|
4075
4081
|
});
|
|
4076
|
-
}).catch((
|
|
4077
|
-
console.log(
|
|
4082
|
+
}).catch((A) => {
|
|
4083
|
+
console.log(A);
|
|
4078
4084
|
});
|
|
4079
4085
|
};
|
|
4080
|
-
Object.keys(
|
|
4081
|
-
|
|
4086
|
+
Object.keys(yt).forEach((_) => {
|
|
4087
|
+
_t(_, yt[_]);
|
|
4082
4088
|
});
|
|
4083
|
-
const
|
|
4089
|
+
const P = () => {
|
|
4084
4090
|
let _ = document.createElement("style");
|
|
4085
4091
|
_.innerHTML = a, p.appendChild(_);
|
|
4086
4092
|
}, H = () => {
|
|
4087
|
-
let _ = new URL(o),
|
|
4088
|
-
fetch(_.href).then((
|
|
4089
|
-
|
|
4093
|
+
let _ = new URL(o), A = document.createElement("style");
|
|
4094
|
+
fetch(_.href).then((D) => D.text()).then((D) => {
|
|
4095
|
+
A.innerHTML = D, setTimeout(
|
|
4090
4096
|
() => {
|
|
4091
|
-
p.appendChild(
|
|
4097
|
+
p.appendChild(A);
|
|
4092
4098
|
},
|
|
4093
4099
|
1
|
|
4094
4100
|
);
|
|
4095
4101
|
});
|
|
4096
|
-
},
|
|
4097
|
-
|
|
4098
|
-
},
|
|
4102
|
+
}, M = () => {
|
|
4103
|
+
Bi(f);
|
|
4104
|
+
}, S = () => {
|
|
4099
4105
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4100
|
-
},
|
|
4106
|
+
}, U = () => {
|
|
4101
4107
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4102
|
-
},
|
|
4103
|
-
r(1, m = !!
|
|
4104
|
-
},
|
|
4108
|
+
}, oe = () => {
|
|
4109
|
+
r(1, m = !!u && u !== "false");
|
|
4110
|
+
}, nr = () => {
|
|
4105
4111
|
r(3, v = !!c && c !== "false");
|
|
4106
|
-
},
|
|
4107
|
-
r(2, g =
|
|
4112
|
+
}, ir = () => {
|
|
4113
|
+
r(2, g = h || "header.general");
|
|
4108
4114
|
};
|
|
4109
|
-
function
|
|
4110
|
-
|
|
4115
|
+
function sr(_) {
|
|
4116
|
+
Me[_ ? "unshift" : "push"](() => {
|
|
4111
4117
|
p = _, r(0, p);
|
|
4112
4118
|
});
|
|
4113
4119
|
}
|
|
4114
4120
|
return e.$$set = (_) => {
|
|
4115
|
-
"clientstyling" in _ && r(7, a = _.clientstyling), "clientstylingurl" in _ && r(8, o = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10,
|
|
4121
|
+
"clientstyling" in _ && r(7, a = _.clientstyling), "clientstylingurl" in _ && r(8, o = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10, u = _.showbackbutton), "title" in _ && r(11, h = _.title), "lang" in _ && r(12, f = _.lang), "showclosebutton" in _ && r(13, c = _.showclosebutton), "$$scope" in _ && r(14, s = _.$$scope);
|
|
4116
4122
|
}, e.$$.update = () => {
|
|
4117
4123
|
e.$$.dirty & /*lang*/
|
|
4118
|
-
4096 && f &&
|
|
4119
|
-
6144 && f &&
|
|
4120
|
-
129 && a && p &&
|
|
4124
|
+
4096 && f && M(), e.$$.dirty & /*lang, title*/
|
|
4125
|
+
6144 && f && h && ir(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4126
|
+
129 && a && p && P(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4121
4127
|
257 && o && p && H(), e.$$.dirty & /*lang, translationurl*/
|
|
4122
|
-
4608 && f && l &&
|
|
4123
|
-
1024 &&
|
|
4124
|
-
8192 && c &&
|
|
4128
|
+
4608 && f && l && I(), e.$$.dirty & /*showbackbutton*/
|
|
4129
|
+
1024 && u && oe(), e.$$.dirty & /*showclosebutton*/
|
|
4130
|
+
8192 && c && nr();
|
|
4125
4131
|
}, [
|
|
4126
4132
|
p,
|
|
4127
4133
|
m,
|
|
4128
4134
|
g,
|
|
4129
4135
|
v,
|
|
4130
4136
|
n,
|
|
4131
|
-
|
|
4132
|
-
|
|
4137
|
+
S,
|
|
4138
|
+
U,
|
|
4133
4139
|
a,
|
|
4134
4140
|
o,
|
|
4135
4141
|
l,
|
|
4136
|
-
h,
|
|
4137
4142
|
u,
|
|
4143
|
+
h,
|
|
4138
4144
|
f,
|
|
4139
4145
|
c,
|
|
4140
4146
|
s,
|
|
4141
4147
|
i,
|
|
4142
|
-
|
|
4148
|
+
sr
|
|
4143
4149
|
];
|
|
4144
4150
|
}
|
|
4145
|
-
class
|
|
4151
|
+
class Ii extends Pr {
|
|
4146
4152
|
constructor(t) {
|
|
4147
|
-
super(),
|
|
4153
|
+
super(), Ar(
|
|
4148
4154
|
this,
|
|
4149
4155
|
t,
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4156
|
+
Ni,
|
|
4157
|
+
Li,
|
|
4158
|
+
wt,
|
|
4153
4159
|
{
|
|
4154
4160
|
clientstyling: 7,
|
|
4155
4161
|
clientstylingurl: 8,
|
|
@@ -4159,53 +4165,53 @@ class Li extends Ar {
|
|
|
4159
4165
|
lang: 12,
|
|
4160
4166
|
showclosebutton: 13
|
|
4161
4167
|
},
|
|
4162
|
-
|
|
4168
|
+
Ti
|
|
4163
4169
|
);
|
|
4164
4170
|
}
|
|
4165
4171
|
get clientstyling() {
|
|
4166
4172
|
return this.$$.ctx[7];
|
|
4167
4173
|
}
|
|
4168
4174
|
set clientstyling(t) {
|
|
4169
|
-
this.$$set({ clientstyling: t }),
|
|
4175
|
+
this.$$set({ clientstyling: t }), O();
|
|
4170
4176
|
}
|
|
4171
4177
|
get clientstylingurl() {
|
|
4172
4178
|
return this.$$.ctx[8];
|
|
4173
4179
|
}
|
|
4174
4180
|
set clientstylingurl(t) {
|
|
4175
|
-
this.$$set({ clientstylingurl: t }),
|
|
4181
|
+
this.$$set({ clientstylingurl: t }), O();
|
|
4176
4182
|
}
|
|
4177
4183
|
get translationurl() {
|
|
4178
4184
|
return this.$$.ctx[9];
|
|
4179
4185
|
}
|
|
4180
4186
|
set translationurl(t) {
|
|
4181
|
-
this.$$set({ translationurl: t }),
|
|
4187
|
+
this.$$set({ translationurl: t }), O();
|
|
4182
4188
|
}
|
|
4183
4189
|
get showbackbutton() {
|
|
4184
4190
|
return this.$$.ctx[10];
|
|
4185
4191
|
}
|
|
4186
4192
|
set showbackbutton(t) {
|
|
4187
|
-
this.$$set({ showbackbutton: t }),
|
|
4193
|
+
this.$$set({ showbackbutton: t }), O();
|
|
4188
4194
|
}
|
|
4189
4195
|
get title() {
|
|
4190
4196
|
return this.$$.ctx[11];
|
|
4191
4197
|
}
|
|
4192
4198
|
set title(t) {
|
|
4193
|
-
this.$$set({ title: t }),
|
|
4199
|
+
this.$$set({ title: t }), O();
|
|
4194
4200
|
}
|
|
4195
4201
|
get lang() {
|
|
4196
4202
|
return this.$$.ctx[12];
|
|
4197
4203
|
}
|
|
4198
4204
|
set lang(t) {
|
|
4199
|
-
this.$$set({ lang: t }),
|
|
4205
|
+
this.$$set({ lang: t }), O();
|
|
4200
4206
|
}
|
|
4201
4207
|
get showclosebutton() {
|
|
4202
4208
|
return this.$$.ctx[13];
|
|
4203
4209
|
}
|
|
4204
4210
|
set showclosebutton(t) {
|
|
4205
|
-
this.$$set({ showclosebutton: t }),
|
|
4211
|
+
this.$$set({ showclosebutton: t }), O();
|
|
4206
4212
|
}
|
|
4207
4213
|
}
|
|
4208
|
-
|
|
4214
|
+
Or(Ii, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4209
4215
|
export {
|
|
4210
|
-
|
|
4216
|
+
Ii as default
|
|
4211
4217
|
};
|