@everymatrix/cashier-header 1.74.8 → 1.74.10
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-3y-CVhjE.cjs +18 -0
- package/components/{CashierHeader-CXVwtc5T.js → CashierHeader-CDYMzcBx.js} +788 -786
- package/components/{CashierHeader-CSvf9QLy.js → CashierHeader-Ce6RZ-9Q.js} +901 -899
- 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-K66rbzS5.cjs +0 -18
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var ye = (e, t,
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
1
|
+
var rn = Object.defineProperty, sn = Object.defineProperties;
|
|
2
|
+
var on = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Qe = Object.getOwnPropertySymbols;
|
|
4
|
+
var an = Object.prototype.hasOwnProperty, un = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ye = (e, t, n) => t in e ? rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Je = (e, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
an.call(t, n) && ye(e, n, t[n]);
|
|
8
|
+
if (Qe)
|
|
9
|
+
for (var n of Qe(t))
|
|
10
|
+
un.call(t, n) && ye(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var B = (e, t,
|
|
14
|
-
var
|
|
12
|
+
}, qe = (e, t) => sn(e, on(t));
|
|
13
|
+
var B = (e, t, n) => (ye(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
+
var Ye = (e, t, n) => new Promise((r, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
a(n.next(l));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, o = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
a(n.throw(l));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, a = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(s, o);
|
|
28
|
+
a((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function T() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
for (const
|
|
34
|
-
e[
|
|
32
|
+
function hn(e, t) {
|
|
33
|
+
for (const n in t)
|
|
34
|
+
e[n] = t[n];
|
|
35
35
|
return (
|
|
36
36
|
/** @type {T & S} */
|
|
37
37
|
e
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Ht(e) {
|
|
41
41
|
return e();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Ke() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
46
|
function ee(e) {
|
|
47
|
-
e.forEach(
|
|
47
|
+
e.forEach(Ht);
|
|
48
48
|
}
|
|
49
49
|
function ke(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Bt(e, t) {
|
|
53
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function ln(e) {
|
|
56
56
|
return Object.keys(e).length === 0;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Tt(e, ...t) {
|
|
59
59
|
if (e == null) {
|
|
60
|
-
for (const
|
|
61
|
-
|
|
60
|
+
for (const r of t)
|
|
61
|
+
r(void 0);
|
|
62
62
|
return T;
|
|
63
63
|
}
|
|
64
|
-
const
|
|
65
|
-
return
|
|
64
|
+
const n = e.subscribe(...t);
|
|
65
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
e.$$.on_destroy.push(
|
|
67
|
+
function fn(e, t, n) {
|
|
68
|
+
e.$$.on_destroy.push(Tt(t, n));
|
|
69
69
|
}
|
|
70
|
-
function xe(e, t,
|
|
70
|
+
function xe(e, t, n, r) {
|
|
71
71
|
if (e) {
|
|
72
|
-
const i =
|
|
72
|
+
const i = wt(e, t, n, r);
|
|
73
73
|
return e[0](i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return e[1] &&
|
|
76
|
+
function wt(e, t, n, r) {
|
|
77
|
+
return e[1] && r ? hn(n.ctx.slice(), e[1](r(t))) : n.ctx;
|
|
78
78
|
}
|
|
79
|
-
function Ee(e, t,
|
|
80
|
-
if (e[2] &&
|
|
81
|
-
const i = e[2](n
|
|
79
|
+
function Ee(e, t, n, r) {
|
|
80
|
+
if (e[2] && r) {
|
|
81
|
+
const i = e[2](r(n));
|
|
82
82
|
if (t.dirty === void 0)
|
|
83
83
|
return i;
|
|
84
84
|
if (typeof i == "object") {
|
|
85
|
-
const s = [],
|
|
86
|
-
for (let
|
|
87
|
-
s[
|
|
85
|
+
const s = [], o = Math.max(t.dirty.length, i.length);
|
|
86
|
+
for (let a = 0; a < o; a += 1)
|
|
87
|
+
s[a] = t.dirty[a] | i[a];
|
|
88
88
|
return s;
|
|
89
89
|
}
|
|
90
90
|
return t.dirty | i;
|
|
91
91
|
}
|
|
92
92
|
return t.dirty;
|
|
93
93
|
}
|
|
94
|
-
function ve(e, t,
|
|
94
|
+
function ve(e, t, n, r, i, s) {
|
|
95
95
|
if (i) {
|
|
96
|
-
const
|
|
97
|
-
e.p(
|
|
96
|
+
const o = wt(t, n, r, s);
|
|
97
|
+
e.p(o, i);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
function He(e) {
|
|
101
101
|
if (e.ctx.length > 32) {
|
|
102
|
-
const t = [],
|
|
103
|
-
for (let
|
|
104
|
-
t[
|
|
102
|
+
const t = [], n = e.ctx.length / 32;
|
|
103
|
+
for (let r = 0; r < n; r++)
|
|
104
|
+
t[r] = -1;
|
|
105
105
|
return t;
|
|
106
106
|
}
|
|
107
107
|
return -1;
|
|
@@ -109,14 +109,14 @@ function He(e) {
|
|
|
109
109
|
function fe(e, t) {
|
|
110
110
|
e.appendChild(t);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
const
|
|
114
|
-
if (!
|
|
112
|
+
function cn(e, t, n) {
|
|
113
|
+
const r = mn(e);
|
|
114
|
+
if (!r.getElementById(t)) {
|
|
115
115
|
const i = X("style");
|
|
116
|
-
i.id = t, i.textContent =
|
|
116
|
+
i.id = t, i.textContent = n, dn(r, i);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function mn(e) {
|
|
120
120
|
if (!e)
|
|
121
121
|
return document;
|
|
122
122
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -126,15 +126,15 @@ function mr(e) {
|
|
|
126
126
|
t
|
|
127
127
|
) : e.ownerDocument;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function dn(e, t) {
|
|
130
130
|
return fe(
|
|
131
131
|
/** @type {Document} */
|
|
132
132
|
e.head || e,
|
|
133
133
|
t
|
|
134
134
|
), t.sheet;
|
|
135
135
|
}
|
|
136
|
-
function I(e, t,
|
|
137
|
-
e.insertBefore(t,
|
|
136
|
+
function I(e, t, n) {
|
|
137
|
+
e.insertBefore(t, n || null);
|
|
138
138
|
}
|
|
139
139
|
function C(e) {
|
|
140
140
|
e.parentNode && e.parentNode.removeChild(e);
|
|
@@ -145,31 +145,31 @@ function X(e) {
|
|
|
145
145
|
function Ve(e) {
|
|
146
146
|
return document.createTextNode(e);
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function et() {
|
|
149
149
|
return Ve(" ");
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function St() {
|
|
152
152
|
return Ve("");
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
return e.addEventListener(t,
|
|
154
|
+
function At(e, t, n, r) {
|
|
155
|
+
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
156
156
|
}
|
|
157
|
-
function te(e, t,
|
|
158
|
-
|
|
157
|
+
function te(e, t, n) {
|
|
158
|
+
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function bn(e) {
|
|
161
161
|
return Array.from(e.childNodes);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function pn(e, t) {
|
|
164
164
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
165
165
|
t);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function gn(e) {
|
|
168
168
|
const t = {};
|
|
169
169
|
return e.childNodes.forEach(
|
|
170
170
|
/** @param {Element} node */
|
|
171
|
-
(
|
|
172
|
-
t[
|
|
171
|
+
(n) => {
|
|
172
|
+
t[n.slot || "default"] = !0;
|
|
173
173
|
}
|
|
174
174
|
), t;
|
|
175
175
|
}
|
|
@@ -177,20 +177,20 @@ let q;
|
|
|
177
177
|
function J(e) {
|
|
178
178
|
q = e;
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function _n() {
|
|
181
181
|
if (!q)
|
|
182
182
|
throw new Error("Function called outside component initialization");
|
|
183
183
|
return q;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
|
|
185
|
+
function yn(e) {
|
|
186
|
+
_n().$$.on_mount.push(e);
|
|
187
187
|
}
|
|
188
188
|
const D = [], Le = [];
|
|
189
189
|
let G = [];
|
|
190
|
-
const
|
|
190
|
+
const tt = [], xn = /* @__PURE__ */ Promise.resolve();
|
|
191
191
|
let Ne = !1;
|
|
192
|
-
function
|
|
193
|
-
Ne || (Ne = !0,
|
|
192
|
+
function En() {
|
|
193
|
+
Ne || (Ne = !0, xn.then(w));
|
|
194
194
|
}
|
|
195
195
|
function Ie(e) {
|
|
196
196
|
G.push(e);
|
|
@@ -205,7 +205,7 @@ function w() {
|
|
|
205
205
|
try {
|
|
206
206
|
for (; $ < D.length; ) {
|
|
207
207
|
const t = D[$];
|
|
208
|
-
$++, J(t),
|
|
208
|
+
$++, J(t), vn(t.$$);
|
|
209
209
|
}
|
|
210
210
|
} catch (t) {
|
|
211
211
|
throw D.length = 0, $ = 0, t;
|
|
@@ -213,55 +213,55 @@ function w() {
|
|
|
213
213
|
for (J(null), D.length = 0, $ = 0; Le.length; )
|
|
214
214
|
Le.pop()();
|
|
215
215
|
for (let t = 0; t < G.length; t += 1) {
|
|
216
|
-
const
|
|
217
|
-
Be.has(
|
|
216
|
+
const n = G[t];
|
|
217
|
+
Be.has(n) || (Be.add(n), n());
|
|
218
218
|
}
|
|
219
219
|
G.length = 0;
|
|
220
220
|
} while (D.length);
|
|
221
|
-
for (;
|
|
222
|
-
|
|
221
|
+
for (; tt.length; )
|
|
222
|
+
tt.pop()();
|
|
223
223
|
Ne = !1, Be.clear(), J(e);
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function vn(e) {
|
|
226
226
|
if (e.fragment !== null) {
|
|
227
227
|
e.update(), ee(e.before_update);
|
|
228
228
|
const t = e.dirty;
|
|
229
229
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
const t = [],
|
|
234
|
-
G.forEach((
|
|
232
|
+
function Hn(e) {
|
|
233
|
+
const t = [], n = [];
|
|
234
|
+
G.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), G = t;
|
|
235
235
|
}
|
|
236
236
|
const oe = /* @__PURE__ */ new Set();
|
|
237
|
-
let
|
|
237
|
+
let Bn;
|
|
238
238
|
function ae(e, t) {
|
|
239
239
|
e && e.i && (oe.delete(e), e.i(t));
|
|
240
240
|
}
|
|
241
|
-
function Te(e, t,
|
|
241
|
+
function Te(e, t, n, r) {
|
|
242
242
|
if (e && e.o) {
|
|
243
243
|
if (oe.has(e))
|
|
244
244
|
return;
|
|
245
|
-
oe.add(e),
|
|
245
|
+
oe.add(e), Bn.c.push(() => {
|
|
246
246
|
oe.delete(e);
|
|
247
247
|
}), e.o(t);
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
function
|
|
251
|
-
const { fragment:
|
|
252
|
-
|
|
253
|
-
const s = e.$$.on_mount.map(
|
|
250
|
+
function Tn(e, t, n) {
|
|
251
|
+
const { fragment: r, after_update: i } = e.$$;
|
|
252
|
+
r && r.m(t, n), Ie(() => {
|
|
253
|
+
const s = e.$$.on_mount.map(Ht).filter(ke);
|
|
254
254
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ee(s), e.$$.on_mount = [];
|
|
255
255
|
}), i.forEach(Ie);
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
const
|
|
259
|
-
|
|
257
|
+
function wn(e, t) {
|
|
258
|
+
const n = e.$$;
|
|
259
|
+
n.fragment !== null && (Hn(n.after_update), ee(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
e.$$.dirty[0] === -1 && (D.push(e),
|
|
261
|
+
function Sn(e, t) {
|
|
262
|
+
e.$$.dirty[0] === -1 && (D.push(e), En(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function An(e, t, n, r, i, s, o = null, a = [-1]) {
|
|
265
265
|
const l = q;
|
|
266
266
|
J(e);
|
|
267
267
|
const u = e.$$ = {
|
|
@@ -271,7 +271,7 @@ function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
271
271
|
props: s,
|
|
272
272
|
update: T,
|
|
273
273
|
not_equal: i,
|
|
274
|
-
bound:
|
|
274
|
+
bound: Ke(),
|
|
275
275
|
// lifecycle
|
|
276
276
|
on_mount: [],
|
|
277
277
|
on_destroy: [],
|
|
@@ -280,29 +280,29 @@ function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
280
280
|
after_update: [],
|
|
281
281
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
282
282
|
// everything else
|
|
283
|
-
callbacks:
|
|
284
|
-
dirty:
|
|
283
|
+
callbacks: Ke(),
|
|
284
|
+
dirty: a,
|
|
285
285
|
skip_bound: !1,
|
|
286
286
|
root: t.target || l.$$.root
|
|
287
287
|
};
|
|
288
|
-
|
|
288
|
+
o && o(u.root);
|
|
289
289
|
let h = !1;
|
|
290
|
-
if (u.ctx =
|
|
290
|
+
if (u.ctx = n(e, t.props || {}, (c, m, ...d) => {
|
|
291
291
|
const f = d.length ? d[0] : m;
|
|
292
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = f) && (!u.skip_bound && u.bound[c] && u.bound[c](f), h &&
|
|
293
|
-
})
|
|
292
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = f) && (!u.skip_bound && u.bound[c] && u.bound[c](f), h && Sn(e, c)), m;
|
|
293
|
+
}), u.update(), h = !0, ee(u.before_update), u.fragment = r(u.ctx), t.target) {
|
|
294
294
|
if (t.hydrate) {
|
|
295
|
-
const c =
|
|
295
|
+
const c = bn(t.target);
|
|
296
296
|
u.fragment && u.fragment.l(c), c.forEach(C);
|
|
297
297
|
} else
|
|
298
298
|
u.fragment && u.fragment.c();
|
|
299
|
-
t.intro && ae(e.$$.fragment),
|
|
299
|
+
t.intro && ae(e.$$.fragment), Tn(e, t.target, t.anchor), w();
|
|
300
300
|
}
|
|
301
301
|
J(l);
|
|
302
302
|
}
|
|
303
|
-
let
|
|
304
|
-
typeof HTMLElement == "function" && (
|
|
305
|
-
constructor(t,
|
|
303
|
+
let Ot;
|
|
304
|
+
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
305
|
+
constructor(t, n, r) {
|
|
306
306
|
super();
|
|
307
307
|
/** The Svelte component constructor */
|
|
308
308
|
B(this, "$$ctor");
|
|
@@ -322,59 +322,59 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
322
322
|
B(this, "$$l", {});
|
|
323
323
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
324
324
|
B(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
325
|
-
this.$$ctor = t, this.$$s =
|
|
325
|
+
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
326
326
|
}
|
|
327
|
-
addEventListener(t,
|
|
328
|
-
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(
|
|
329
|
-
const i = this.$$c.$on(t,
|
|
330
|
-
this.$$l_u.set(
|
|
327
|
+
addEventListener(t, n, r) {
|
|
328
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
|
|
329
|
+
const i = this.$$c.$on(t, n);
|
|
330
|
+
this.$$l_u.set(n, i);
|
|
331
331
|
}
|
|
332
|
-
super.addEventListener(t,
|
|
332
|
+
super.addEventListener(t, n, r);
|
|
333
333
|
}
|
|
334
|
-
removeEventListener(t,
|
|
335
|
-
if (super.removeEventListener(t,
|
|
336
|
-
const i = this.$$l_u.get(
|
|
337
|
-
i && (i(), this.$$l_u.delete(
|
|
334
|
+
removeEventListener(t, n, r) {
|
|
335
|
+
if (super.removeEventListener(t, n, r), this.$$c) {
|
|
336
|
+
const i = this.$$l_u.get(n);
|
|
337
|
+
i && (i(), this.$$l_u.delete(n));
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
connectedCallback() {
|
|
341
|
-
return
|
|
341
|
+
return Ye(this, null, function* () {
|
|
342
342
|
if (this.$$cn = !0, !this.$$c) {
|
|
343
343
|
let t = function(s) {
|
|
344
344
|
return () => {
|
|
345
|
-
let
|
|
345
|
+
let o;
|
|
346
346
|
return {
|
|
347
347
|
c: function() {
|
|
348
|
-
|
|
348
|
+
o = X("slot"), s !== "default" && te(o, "name", s);
|
|
349
349
|
},
|
|
350
350
|
/**
|
|
351
351
|
* @param {HTMLElement} target
|
|
352
352
|
* @param {HTMLElement} [anchor]
|
|
353
353
|
*/
|
|
354
354
|
m: function(u, h) {
|
|
355
|
-
I(u,
|
|
355
|
+
I(u, o, h);
|
|
356
356
|
},
|
|
357
357
|
d: function(u) {
|
|
358
|
-
u && C(
|
|
358
|
+
u && C(o);
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
361
|
};
|
|
362
362
|
};
|
|
363
363
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
364
364
|
return;
|
|
365
|
-
const
|
|
365
|
+
const n = {}, r = gn(this);
|
|
366
366
|
for (const s of this.$$s)
|
|
367
|
-
s in
|
|
367
|
+
s in r && (n[s] = [t(s)]);
|
|
368
368
|
for (const s of this.attributes) {
|
|
369
|
-
const
|
|
370
|
-
|
|
369
|
+
const o = this.$$g_p(s.name);
|
|
370
|
+
o in this.$$d || (this.$$d[o] = ue(o, s.value, this.$$p_d, "toProp"));
|
|
371
371
|
}
|
|
372
372
|
for (const s in this.$$p_d)
|
|
373
373
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
374
374
|
this.$$c = new this.$$ctor({
|
|
375
375
|
target: this.shadowRoot || this,
|
|
376
|
-
props:
|
|
377
|
-
$$slots:
|
|
376
|
+
props: qe(Je({}, this.$$d), {
|
|
377
|
+
$$slots: n,
|
|
378
378
|
$$scope: {
|
|
379
379
|
ctx: []
|
|
380
380
|
}
|
|
@@ -384,21 +384,21 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
384
384
|
this.$$r = !0;
|
|
385
385
|
for (const s in this.$$p_d)
|
|
386
386
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
387
|
-
const
|
|
387
|
+
const o = ue(
|
|
388
388
|
s,
|
|
389
389
|
this.$$d[s],
|
|
390
390
|
this.$$p_d,
|
|
391
391
|
"toAttribute"
|
|
392
392
|
);
|
|
393
|
-
|
|
393
|
+
o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
|
|
394
394
|
}
|
|
395
395
|
this.$$r = !1;
|
|
396
396
|
};
|
|
397
397
|
this.$$c.$$.after_update.push(i), i();
|
|
398
398
|
for (const s in this.$$l)
|
|
399
|
-
for (const
|
|
400
|
-
const
|
|
401
|
-
this.$$l_u.set(
|
|
399
|
+
for (const o of this.$$l[s]) {
|
|
400
|
+
const a = this.$$c.$on(s, o);
|
|
401
|
+
this.$$l_u.set(o, a);
|
|
402
402
|
}
|
|
403
403
|
this.$$l = {};
|
|
404
404
|
}
|
|
@@ -406,9 +406,9 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
406
406
|
}
|
|
407
407
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
408
408
|
// and setting attributes through setAttribute etc, this is helpful
|
|
409
|
-
attributeChangedCallback(t,
|
|
409
|
+
attributeChangedCallback(t, n, r) {
|
|
410
410
|
var i;
|
|
411
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ue(t,
|
|
411
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ue(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
412
412
|
}
|
|
413
413
|
disconnectedCallback() {
|
|
414
414
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -417,16 +417,16 @@ typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
|
417
417
|
}
|
|
418
418
|
$$g_p(t) {
|
|
419
419
|
return Object.keys(this.$$p_d).find(
|
|
420
|
-
(
|
|
420
|
+
(n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
|
|
421
421
|
) || t;
|
|
422
422
|
}
|
|
423
423
|
});
|
|
424
|
-
function ue(e, t,
|
|
424
|
+
function ue(e, t, n, r) {
|
|
425
425
|
var s;
|
|
426
|
-
const i = (s =
|
|
427
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
426
|
+
const i = (s = n[e]) == null ? void 0 : s.type;
|
|
427
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
428
428
|
return t;
|
|
429
|
-
if (
|
|
429
|
+
if (r === "toAttribute")
|
|
430
430
|
switch (i) {
|
|
431
431
|
case "Object":
|
|
432
432
|
case "Array":
|
|
@@ -451,38 +451,38 @@ function ue(e, t, r, n) {
|
|
|
451
451
|
return t;
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
function
|
|
455
|
-
let
|
|
454
|
+
function On(e, t, n, r, i, s) {
|
|
455
|
+
let o = class extends Ot {
|
|
456
456
|
constructor() {
|
|
457
|
-
super(e,
|
|
457
|
+
super(e, n, i), this.$$p_d = t;
|
|
458
458
|
}
|
|
459
459
|
static get observedAttributes() {
|
|
460
460
|
return Object.keys(t).map(
|
|
461
|
-
(
|
|
461
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
462
462
|
);
|
|
463
463
|
}
|
|
464
464
|
};
|
|
465
|
-
return Object.keys(t).forEach((
|
|
466
|
-
Object.defineProperty(
|
|
465
|
+
return Object.keys(t).forEach((a) => {
|
|
466
|
+
Object.defineProperty(o.prototype, a, {
|
|
467
467
|
get() {
|
|
468
|
-
return this.$$c &&
|
|
468
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
469
469
|
},
|
|
470
470
|
set(l) {
|
|
471
471
|
var u;
|
|
472
|
-
l = ue(
|
|
472
|
+
l = ue(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
473
473
|
}
|
|
474
474
|
});
|
|
475
|
-
}),
|
|
476
|
-
Object.defineProperty(
|
|
475
|
+
}), r.forEach((a) => {
|
|
476
|
+
Object.defineProperty(o.prototype, a, {
|
|
477
477
|
get() {
|
|
478
478
|
var l;
|
|
479
|
-
return (l = this.$$c) == null ? void 0 : l[
|
|
479
|
+
return (l = this.$$c) == null ? void 0 : l[a];
|
|
480
480
|
}
|
|
481
481
|
});
|
|
482
482
|
}), e.element = /** @type {any} */
|
|
483
|
-
|
|
483
|
+
o, o;
|
|
484
484
|
}
|
|
485
|
-
class
|
|
485
|
+
class Pn {
|
|
486
486
|
constructor() {
|
|
487
487
|
/**
|
|
488
488
|
* ### PRIVATE API
|
|
@@ -503,7 +503,7 @@ class Pr {
|
|
|
503
503
|
}
|
|
504
504
|
/** @returns {void} */
|
|
505
505
|
$destroy() {
|
|
506
|
-
|
|
506
|
+
wn(this, 1), this.$destroy = T;
|
|
507
507
|
}
|
|
508
508
|
/**
|
|
509
509
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -511,13 +511,13 @@ class Pr {
|
|
|
511
511
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
512
512
|
* @returns {() => void}
|
|
513
513
|
*/
|
|
514
|
-
$on(t,
|
|
515
|
-
if (!ke(
|
|
514
|
+
$on(t, n) {
|
|
515
|
+
if (!ke(n))
|
|
516
516
|
return T;
|
|
517
|
-
const
|
|
518
|
-
return
|
|
519
|
-
const i =
|
|
520
|
-
i !== -1 &&
|
|
517
|
+
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
518
|
+
return r.push(n), () => {
|
|
519
|
+
const i = r.indexOf(n);
|
|
520
|
+
i !== -1 && r.splice(i, 1);
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
523
|
/**
|
|
@@ -525,24 +525,24 @@ class Pr {
|
|
|
525
525
|
* @returns {void}
|
|
526
526
|
*/
|
|
527
527
|
$set(t) {
|
|
528
|
-
this.$$set && !
|
|
528
|
+
this.$$set && !ln(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
-
const
|
|
532
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
531
|
+
const Cn = "4";
|
|
532
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Cn);
|
|
533
533
|
const U = [];
|
|
534
|
-
function
|
|
534
|
+
function Ln(e, t) {
|
|
535
535
|
return {
|
|
536
|
-
subscribe:
|
|
536
|
+
subscribe: be(e, t).subscribe
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
function
|
|
540
|
-
let
|
|
541
|
-
const
|
|
542
|
-
function i(
|
|
543
|
-
if (
|
|
539
|
+
function be(e, t = T) {
|
|
540
|
+
let n;
|
|
541
|
+
const r = /* @__PURE__ */ new Set();
|
|
542
|
+
function i(a) {
|
|
543
|
+
if (Bt(e, a) && (e = a, n)) {
|
|
544
544
|
const l = !U.length;
|
|
545
|
-
for (const u of
|
|
545
|
+
for (const u of r)
|
|
546
546
|
u[1](), U.push(u, e);
|
|
547
547
|
if (l) {
|
|
548
548
|
for (let u = 0; u < U.length; u += 2)
|
|
@@ -551,23 +551,23 @@ function pe(e, t = T) {
|
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function s(
|
|
555
|
-
i(
|
|
554
|
+
function s(a) {
|
|
555
|
+
i(a(e));
|
|
556
556
|
}
|
|
557
|
-
function a
|
|
558
|
-
const u = [
|
|
559
|
-
return
|
|
560
|
-
|
|
557
|
+
function o(a, l = T) {
|
|
558
|
+
const u = [a, l];
|
|
559
|
+
return r.add(u), r.size === 1 && (n = t(i, s) || T), a(e), () => {
|
|
560
|
+
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
561
561
|
};
|
|
562
562
|
}
|
|
563
|
-
return { set: i, update: s, subscribe:
|
|
563
|
+
return { set: i, update: s, subscribe: o };
|
|
564
564
|
}
|
|
565
|
-
function z(e, t,
|
|
566
|
-
const
|
|
565
|
+
function z(e, t, n) {
|
|
566
|
+
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
567
567
|
if (!i.every(Boolean))
|
|
568
568
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
569
569
|
const s = t.length < 2;
|
|
570
|
-
return
|
|
570
|
+
return Ln(n, (o, a) => {
|
|
571
571
|
let l = !1;
|
|
572
572
|
const u = [];
|
|
573
573
|
let h = 0, c = T;
|
|
@@ -575,10 +575,10 @@ function z(e, t, r) {
|
|
|
575
575
|
if (h)
|
|
576
576
|
return;
|
|
577
577
|
c();
|
|
578
|
-
const f = t(
|
|
579
|
-
s ?
|
|
578
|
+
const f = t(r ? u[0] : u, o, a);
|
|
579
|
+
s ? o(f) : c = ke(f) ? f : T;
|
|
580
580
|
}, d = i.map(
|
|
581
|
-
(f, _) =>
|
|
581
|
+
(f, _) => Tt(
|
|
582
582
|
f,
|
|
583
583
|
(v) => {
|
|
584
584
|
u[_] = v, h &= ~(1 << _), l && m();
|
|
@@ -593,80 +593,80 @@ function z(e, t, r) {
|
|
|
593
593
|
};
|
|
594
594
|
});
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
return e
|
|
596
|
+
function Nn(e) {
|
|
597
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
598
598
|
}
|
|
599
|
-
var
|
|
600
|
-
return
|
|
599
|
+
var In = function(t) {
|
|
600
|
+
return Mn(t) && !Rn(t);
|
|
601
601
|
};
|
|
602
|
-
function
|
|
602
|
+
function Mn(e) {
|
|
603
603
|
return !!e && typeof e == "object";
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function Rn(e) {
|
|
606
606
|
var t = Object.prototype.toString.call(e);
|
|
607
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
607
|
+
return t === "[object RegExp]" || t === "[object Date]" || Dn(e);
|
|
608
608
|
}
|
|
609
|
-
var $
|
|
610
|
-
function
|
|
611
|
-
return e.$$typeof ===
|
|
609
|
+
var $n = typeof Symbol == "function" && Symbol.for, Un = $n ? Symbol.for("react.element") : 60103;
|
|
610
|
+
function Dn(e) {
|
|
611
|
+
return e.$$typeof === Un;
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Gn(e) {
|
|
614
614
|
return Array.isArray(e) ? [] : {};
|
|
615
615
|
}
|
|
616
616
|
function Y(e, t) {
|
|
617
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? F(
|
|
617
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(Gn(e), e, t) : e;
|
|
618
618
|
}
|
|
619
|
-
function
|
|
620
|
-
return e.concat(t).map(function(
|
|
621
|
-
return Y(
|
|
619
|
+
function Fn(e, t, n) {
|
|
620
|
+
return e.concat(t).map(function(r) {
|
|
621
|
+
return Y(r, n);
|
|
622
622
|
});
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function jn(e, t) {
|
|
625
625
|
if (!t.customMerge)
|
|
626
626
|
return F;
|
|
627
|
-
var
|
|
628
|
-
return typeof
|
|
627
|
+
var n = t.customMerge(e);
|
|
628
|
+
return typeof n == "function" ? n : F;
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function kn(e) {
|
|
631
631
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
632
632
|
return Object.propertyIsEnumerable.call(e, t);
|
|
633
633
|
}) : [];
|
|
634
634
|
}
|
|
635
635
|
function nt(e) {
|
|
636
|
-
return Object.keys(e).concat(
|
|
636
|
+
return Object.keys(e).concat(kn(e));
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Pt(e, t) {
|
|
639
639
|
try {
|
|
640
640
|
return t in e;
|
|
641
|
-
} catch (
|
|
641
|
+
} catch (n) {
|
|
642
642
|
return !1;
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
return
|
|
645
|
+
function Vn(e, t) {
|
|
646
|
+
return Pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
var
|
|
650
|
-
return
|
|
651
|
-
|
|
648
|
+
function Xn(e, t, n) {
|
|
649
|
+
var r = {};
|
|
650
|
+
return n.isMergeableObject(e) && nt(e).forEach(function(i) {
|
|
651
|
+
r[i] = Y(e[i], n);
|
|
652
652
|
}), nt(t).forEach(function(i) {
|
|
653
|
-
|
|
654
|
-
}),
|
|
653
|
+
Vn(e, i) || (Pt(e, i) && n.isMergeableObject(t[i]) ? r[i] = jn(i, n)(e[i], t[i], n) : r[i] = Y(t[i], n));
|
|
654
|
+
}), r;
|
|
655
655
|
}
|
|
656
|
-
function F(e, t,
|
|
657
|
-
|
|
658
|
-
var
|
|
659
|
-
return s ?
|
|
656
|
+
function F(e, t, n) {
|
|
657
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Fn, n.isMergeableObject = n.isMergeableObject || In, n.cloneUnlessOtherwiseSpecified = Y;
|
|
658
|
+
var r = Array.isArray(t), i = Array.isArray(e), s = r === i;
|
|
659
|
+
return s ? r ? n.arrayMerge(e, t, n) : Xn(e, t, n) : Y(t, n);
|
|
660
660
|
}
|
|
661
|
-
F.all = function(t,
|
|
661
|
+
F.all = function(t, n) {
|
|
662
662
|
if (!Array.isArray(t))
|
|
663
663
|
throw new Error("first argument should be an array");
|
|
664
|
-
return t.reduce(function(
|
|
665
|
-
return F(
|
|
664
|
+
return t.reduce(function(r, i) {
|
|
665
|
+
return F(r, i, n);
|
|
666
666
|
}, {});
|
|
667
667
|
};
|
|
668
|
-
var
|
|
669
|
-
const
|
|
668
|
+
var zn = F, Wn = zn;
|
|
669
|
+
const Zn = /* @__PURE__ */ Nn(Wn);
|
|
670
670
|
/*! *****************************************************************************
|
|
671
671
|
Copyright (c) Microsoft Corporation.
|
|
672
672
|
|
|
@@ -682,101 +682,103 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
682
682
|
PERFORMANCE OF THIS SOFTWARE.
|
|
683
683
|
***************************************************************************** */
|
|
684
684
|
var Me = function(e, t) {
|
|
685
|
-
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(
|
|
686
|
-
|
|
687
|
-
} || function(
|
|
688
|
-
for (var i in
|
|
689
|
-
Object.prototype.hasOwnProperty.call(
|
|
685
|
+
return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
686
|
+
n.__proto__ = r;
|
|
687
|
+
} || function(n, r) {
|
|
688
|
+
for (var i in r)
|
|
689
|
+
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
690
690
|
}, Me(e, t);
|
|
691
691
|
};
|
|
692
|
-
function
|
|
692
|
+
function pe(e, t) {
|
|
693
693
|
if (typeof t != "function" && t !== null)
|
|
694
694
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
695
695
|
Me(e, t);
|
|
696
|
-
function
|
|
696
|
+
function n() {
|
|
697
697
|
this.constructor = e;
|
|
698
698
|
}
|
|
699
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
699
|
+
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
700
700
|
}
|
|
701
701
|
var y = function() {
|
|
702
702
|
return y = Object.assign || function(t) {
|
|
703
|
-
for (var
|
|
704
|
-
|
|
705
|
-
for (var s in
|
|
706
|
-
Object.prototype.hasOwnProperty.call(
|
|
703
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
704
|
+
n = arguments[r];
|
|
705
|
+
for (var s in n)
|
|
706
|
+
Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
707
707
|
}
|
|
708
708
|
return t;
|
|
709
709
|
}, y.apply(this, arguments);
|
|
710
710
|
};
|
|
711
|
-
function
|
|
712
|
-
var
|
|
713
|
-
for (var
|
|
714
|
-
Object.prototype.hasOwnProperty.call(e,
|
|
711
|
+
function Qn(e, t) {
|
|
712
|
+
var n = {};
|
|
713
|
+
for (var r in e)
|
|
714
|
+
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
715
715
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
716
|
-
for (var i = 0,
|
|
717
|
-
t.indexOf(
|
|
718
|
-
return
|
|
716
|
+
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
717
|
+
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
718
|
+
return n;
|
|
719
719
|
}
|
|
720
|
-
function we(e, t,
|
|
720
|
+
function we(e, t, n) {
|
|
721
721
|
if (arguments.length === 2)
|
|
722
|
-
for (var
|
|
723
|
-
(s || !(
|
|
722
|
+
for (var r = 0, i = t.length, s; r < i; r++)
|
|
723
|
+
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
724
724
|
return e.concat(s || t);
|
|
725
725
|
}
|
|
726
726
|
function Se(e, t) {
|
|
727
|
-
var
|
|
727
|
+
var n = t && t.cache ? t.cache : nr, r = t && t.serializer ? t.serializer : er, i = t && t.strategy ? t.strategy : qn;
|
|
728
728
|
return i(e, {
|
|
729
|
-
cache:
|
|
730
|
-
serializer:
|
|
729
|
+
cache: n,
|
|
730
|
+
serializer: r
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
|
-
function
|
|
733
|
+
function Jn(e) {
|
|
734
734
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
735
735
|
}
|
|
736
|
-
function
|
|
737
|
-
var i =
|
|
738
|
-
return typeof s == "undefined" && (s = e.call(this,
|
|
736
|
+
function Ct(e, t, n, r) {
|
|
737
|
+
var i = Jn(r) ? r : n(r), s = t.get(i);
|
|
738
|
+
return typeof s == "undefined" && (s = e.call(this, r), t.set(i, s)), s;
|
|
739
739
|
}
|
|
740
|
-
function
|
|
741
|
-
var
|
|
742
|
-
return typeof s == "undefined" && (s = e.apply(this,
|
|
740
|
+
function Lt(e, t, n) {
|
|
741
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), s = t.get(i);
|
|
742
|
+
return typeof s == "undefined" && (s = e.apply(this, r), t.set(i, s)), s;
|
|
743
743
|
}
|
|
744
|
-
function Xe(e, t,
|
|
745
|
-
return
|
|
744
|
+
function Xe(e, t, n, r, i) {
|
|
745
|
+
return n.bind(t, e, r, i);
|
|
746
746
|
}
|
|
747
|
-
function
|
|
748
|
-
var
|
|
749
|
-
return Xe(e, this,
|
|
747
|
+
function qn(e, t) {
|
|
748
|
+
var n = e.length === 1 ? Ct : Lt;
|
|
749
|
+
return Xe(e, this, n, t.cache.create(), t.serializer);
|
|
750
750
|
}
|
|
751
|
-
function
|
|
752
|
-
return Xe(e, this, Nt, t.cache.create(), t.serializer);
|
|
753
|
-
}
|
|
754
|
-
function Kr(e, t) {
|
|
751
|
+
function Yn(e, t) {
|
|
755
752
|
return Xe(e, this, Lt, t.cache.create(), t.serializer);
|
|
756
753
|
}
|
|
757
|
-
|
|
758
|
-
return
|
|
759
|
-
};
|
|
760
|
-
function ze() {
|
|
761
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
754
|
+
function Kn(e, t) {
|
|
755
|
+
return Xe(e, this, Ct, t.cache.create(), t.serializer);
|
|
762
756
|
}
|
|
763
|
-
|
|
764
|
-
return
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
757
|
+
var er = function() {
|
|
758
|
+
return JSON.stringify(arguments);
|
|
759
|
+
}, tr = (
|
|
760
|
+
/** @class */
|
|
761
|
+
function() {
|
|
762
|
+
function e() {
|
|
763
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
764
|
+
}
|
|
765
|
+
return e.prototype.get = function(t) {
|
|
766
|
+
return this.cache[t];
|
|
767
|
+
}, e.prototype.set = function(t, n) {
|
|
768
|
+
this.cache[t] = n;
|
|
769
|
+
}, e;
|
|
770
|
+
}()
|
|
771
|
+
), nr = {
|
|
770
772
|
create: function() {
|
|
771
|
-
return new
|
|
773
|
+
return new tr();
|
|
772
774
|
}
|
|
773
775
|
}, Ae = {
|
|
774
|
-
variadic:
|
|
775
|
-
monadic:
|
|
776
|
-
},
|
|
776
|
+
variadic: Yn,
|
|
777
|
+
monadic: Kn
|
|
778
|
+
}, b;
|
|
777
779
|
(function(e) {
|
|
778
780
|
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";
|
|
779
|
-
})(
|
|
781
|
+
})(b || (b = {}));
|
|
780
782
|
var x;
|
|
781
783
|
(function(e) {
|
|
782
784
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
@@ -785,50 +787,50 @@ var j;
|
|
|
785
787
|
(function(e) {
|
|
786
788
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
787
789
|
})(j || (j = {}));
|
|
788
|
-
function
|
|
790
|
+
function rt(e) {
|
|
789
791
|
return e.type === x.literal;
|
|
790
792
|
}
|
|
791
|
-
function
|
|
793
|
+
function rr(e) {
|
|
792
794
|
return e.type === x.argument;
|
|
793
795
|
}
|
|
794
|
-
function
|
|
796
|
+
function Nt(e) {
|
|
795
797
|
return e.type === x.number;
|
|
796
798
|
}
|
|
797
|
-
function
|
|
799
|
+
function It(e) {
|
|
798
800
|
return e.type === x.date;
|
|
799
801
|
}
|
|
800
|
-
function
|
|
802
|
+
function Mt(e) {
|
|
801
803
|
return e.type === x.time;
|
|
802
804
|
}
|
|
803
|
-
function
|
|
805
|
+
function Rt(e) {
|
|
804
806
|
return e.type === x.select;
|
|
805
807
|
}
|
|
806
|
-
function
|
|
808
|
+
function $t(e) {
|
|
807
809
|
return e.type === x.plural;
|
|
808
810
|
}
|
|
809
|
-
function
|
|
811
|
+
function ir(e) {
|
|
810
812
|
return e.type === x.pound;
|
|
811
813
|
}
|
|
812
|
-
function
|
|
814
|
+
function Ut(e) {
|
|
813
815
|
return e.type === x.tag;
|
|
814
816
|
}
|
|
815
|
-
function
|
|
817
|
+
function Dt(e) {
|
|
816
818
|
return !!(e && typeof e == "object" && e.type === j.number);
|
|
817
819
|
}
|
|
818
820
|
function Re(e) {
|
|
819
821
|
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
820
822
|
}
|
|
821
|
-
var
|
|
822
|
-
function
|
|
823
|
+
var Gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, sr = /(?:[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;
|
|
824
|
+
function or(e) {
|
|
823
825
|
var t = {};
|
|
824
|
-
return e.replace(
|
|
825
|
-
var
|
|
826
|
-
switch (
|
|
826
|
+
return e.replace(sr, function(n) {
|
|
827
|
+
var r = n.length;
|
|
828
|
+
switch (n[0]) {
|
|
827
829
|
case "G":
|
|
828
|
-
t.era =
|
|
830
|
+
t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
829
831
|
break;
|
|
830
832
|
case "y":
|
|
831
|
-
t.year =
|
|
833
|
+
t.year = r === 2 ? "2-digit" : "numeric";
|
|
832
834
|
break;
|
|
833
835
|
case "Y":
|
|
834
836
|
case "u":
|
|
@@ -840,30 +842,30 @@ function on(e) {
|
|
|
840
842
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
841
843
|
case "M":
|
|
842
844
|
case "L":
|
|
843
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
845
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
|
|
844
846
|
break;
|
|
845
847
|
case "w":
|
|
846
848
|
case "W":
|
|
847
849
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
848
850
|
case "d":
|
|
849
|
-
t.day = ["numeric", "2-digit"][
|
|
851
|
+
t.day = ["numeric", "2-digit"][r - 1];
|
|
850
852
|
break;
|
|
851
853
|
case "D":
|
|
852
854
|
case "F":
|
|
853
855
|
case "g":
|
|
854
856
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
855
857
|
case "E":
|
|
856
|
-
t.weekday =
|
|
858
|
+
t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
857
859
|
break;
|
|
858
860
|
case "e":
|
|
859
|
-
if (
|
|
861
|
+
if (r < 4)
|
|
860
862
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
861
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
863
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
862
864
|
break;
|
|
863
865
|
case "c":
|
|
864
|
-
if (
|
|
866
|
+
if (r < 4)
|
|
865
867
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
866
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
868
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
867
869
|
break;
|
|
868
870
|
case "a":
|
|
869
871
|
t.hour12 = !0;
|
|
@@ -872,32 +874,32 @@ function on(e) {
|
|
|
872
874
|
case "B":
|
|
873
875
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
874
876
|
case "h":
|
|
875
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
877
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
|
|
876
878
|
break;
|
|
877
879
|
case "H":
|
|
878
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
880
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
|
|
879
881
|
break;
|
|
880
882
|
case "K":
|
|
881
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
883
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
|
|
882
884
|
break;
|
|
883
885
|
case "k":
|
|
884
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
886
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
|
|
885
887
|
break;
|
|
886
888
|
case "j":
|
|
887
889
|
case "J":
|
|
888
890
|
case "C":
|
|
889
891
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
890
892
|
case "m":
|
|
891
|
-
t.minute = ["numeric", "2-digit"][
|
|
893
|
+
t.minute = ["numeric", "2-digit"][r - 1];
|
|
892
894
|
break;
|
|
893
895
|
case "s":
|
|
894
|
-
t.second = ["numeric", "2-digit"][
|
|
896
|
+
t.second = ["numeric", "2-digit"][r - 1];
|
|
895
897
|
break;
|
|
896
898
|
case "S":
|
|
897
899
|
case "A":
|
|
898
900
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
899
901
|
case "z":
|
|
900
|
-
t.timeZoneName =
|
|
902
|
+
t.timeZoneName = r < 4 ? "short" : "long";
|
|
901
903
|
break;
|
|
902
904
|
case "Z":
|
|
903
905
|
case "O":
|
|
@@ -910,36 +912,36 @@ function on(e) {
|
|
|
910
912
|
return "";
|
|
911
913
|
}), t;
|
|
912
914
|
}
|
|
913
|
-
var
|
|
914
|
-
function
|
|
915
|
+
var ar = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
916
|
+
function ur(e) {
|
|
915
917
|
if (e.length === 0)
|
|
916
918
|
throw new Error("Number skeleton cannot be empty");
|
|
917
|
-
for (var t = e.split(
|
|
919
|
+
for (var t = e.split(ar).filter(function(m) {
|
|
918
920
|
return m.length > 0;
|
|
919
|
-
}),
|
|
920
|
-
var s = i[
|
|
921
|
-
if (
|
|
921
|
+
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
922
|
+
var s = i[r], o = s.split("/");
|
|
923
|
+
if (o.length === 0)
|
|
922
924
|
throw new Error("Invalid number skeleton");
|
|
923
|
-
for (var
|
|
925
|
+
for (var a = o[0], l = o.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
924
926
|
var c = h[u];
|
|
925
927
|
if (c.length === 0)
|
|
926
928
|
throw new Error("Invalid number skeleton");
|
|
927
929
|
}
|
|
928
|
-
|
|
930
|
+
n.push({ stem: a, options: l });
|
|
929
931
|
}
|
|
930
|
-
return
|
|
932
|
+
return n;
|
|
931
933
|
}
|
|
932
|
-
function
|
|
934
|
+
function hr(e) {
|
|
933
935
|
return e.replace(/^(.*?)-/, "");
|
|
934
936
|
}
|
|
935
|
-
var
|
|
936
|
-
function
|
|
937
|
+
var it = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ft = /^(@+)?(\+|#+)?[rs]?$/g, lr = /(\*)(0+)|(#+)(0+)|(0+)/g, jt = /^(0+)$/;
|
|
938
|
+
function st(e) {
|
|
937
939
|
var t = {};
|
|
938
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
939
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
940
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ft, function(n, r, i) {
|
|
941
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
940
942
|
}), t;
|
|
941
943
|
}
|
|
942
|
-
function
|
|
944
|
+
function kt(e) {
|
|
943
945
|
switch (e) {
|
|
944
946
|
case "sign-auto":
|
|
945
947
|
return {
|
|
@@ -979,27 +981,27 @@ function Vt(e) {
|
|
|
979
981
|
};
|
|
980
982
|
}
|
|
981
983
|
}
|
|
982
|
-
function
|
|
984
|
+
function fr(e) {
|
|
983
985
|
var t;
|
|
984
986
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
985
987
|
notation: "engineering"
|
|
986
988
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
987
989
|
notation: "scientific"
|
|
988
990
|
}, e = e.slice(1)), t) {
|
|
989
|
-
var
|
|
990
|
-
if (
|
|
991
|
+
var n = e.slice(0, 2);
|
|
992
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !jt.test(e))
|
|
991
993
|
throw new Error("Malformed concise eng/scientific notation");
|
|
992
994
|
t.minimumIntegerDigits = e.length;
|
|
993
995
|
}
|
|
994
996
|
return t;
|
|
995
997
|
}
|
|
996
|
-
function
|
|
997
|
-
var t = {},
|
|
998
|
-
return
|
|
998
|
+
function ot(e) {
|
|
999
|
+
var t = {}, n = kt(e);
|
|
1000
|
+
return n || t;
|
|
999
1001
|
}
|
|
1000
|
-
function
|
|
1001
|
-
for (var t = {},
|
|
1002
|
-
var i = n
|
|
1002
|
+
function cr(e) {
|
|
1003
|
+
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1004
|
+
var i = r[n];
|
|
1003
1005
|
switch (i.stem) {
|
|
1004
1006
|
case "percent":
|
|
1005
1007
|
case "%":
|
|
@@ -1021,7 +1023,7 @@ function cn(e) {
|
|
|
1021
1023
|
continue;
|
|
1022
1024
|
case "measure-unit":
|
|
1023
1025
|
case "unit":
|
|
1024
|
-
t.style = "unit", t.unit =
|
|
1026
|
+
t.style = "unit", t.unit = hr(i.options[0]);
|
|
1025
1027
|
continue;
|
|
1026
1028
|
case "compact-short":
|
|
1027
1029
|
case "K":
|
|
@@ -1033,12 +1035,12 @@ function cn(e) {
|
|
|
1033
1035
|
continue;
|
|
1034
1036
|
case "scientific":
|
|
1035
1037
|
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1036
|
-
return y(y({}, l),
|
|
1038
|
+
return y(y({}, l), ot(u));
|
|
1037
1039
|
}, {}));
|
|
1038
1040
|
continue;
|
|
1039
1041
|
case "engineering":
|
|
1040
1042
|
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1041
|
-
return y(y({}, l),
|
|
1043
|
+
return y(y({}, l), ot(u));
|
|
1042
1044
|
}, {}));
|
|
1043
1045
|
continue;
|
|
1044
1046
|
case "notation-simple":
|
|
@@ -1083,7 +1085,7 @@ function cn(e) {
|
|
|
1083
1085
|
case "integer-width":
|
|
1084
1086
|
if (i.options.length > 1)
|
|
1085
1087
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1086
|
-
i.options[0].replace(
|
|
1088
|
+
i.options[0].replace(lr, function(l, u, h, c, m, d) {
|
|
1087
1089
|
if (u)
|
|
1088
1090
|
t.minimumIntegerDigits = h.length;
|
|
1089
1091
|
else {
|
|
@@ -1096,28 +1098,28 @@ function cn(e) {
|
|
|
1096
1098
|
});
|
|
1097
1099
|
continue;
|
|
1098
1100
|
}
|
|
1099
|
-
if (
|
|
1101
|
+
if (jt.test(i.stem)) {
|
|
1100
1102
|
t.minimumIntegerDigits = i.stem.length;
|
|
1101
1103
|
continue;
|
|
1102
1104
|
}
|
|
1103
|
-
if (
|
|
1105
|
+
if (it.test(i.stem)) {
|
|
1104
1106
|
if (i.options.length > 1)
|
|
1105
1107
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1106
|
-
i.stem.replace(
|
|
1108
|
+
i.stem.replace(it, function(l, u, h, c, m, d) {
|
|
1107
1109
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && d ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1108
1110
|
});
|
|
1109
1111
|
var s = i.options[0];
|
|
1110
|
-
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t),
|
|
1112
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), st(s)));
|
|
1111
1113
|
continue;
|
|
1112
1114
|
}
|
|
1113
|
-
if (
|
|
1114
|
-
t = y(y({}, t),
|
|
1115
|
+
if (Ft.test(i.stem)) {
|
|
1116
|
+
t = y(y({}, t), st(i.stem));
|
|
1115
1117
|
continue;
|
|
1116
1118
|
}
|
|
1117
|
-
var
|
|
1118
|
-
a && (t = y(y({}, t), a));
|
|
1119
|
-
var o = fn(i.stem);
|
|
1119
|
+
var o = kt(i.stem);
|
|
1120
1120
|
o && (t = y(y({}, t), o));
|
|
1121
|
+
var a = fr(i.stem);
|
|
1122
|
+
a && (t = y(y({}, t), a));
|
|
1121
1123
|
}
|
|
1122
1124
|
return t;
|
|
1123
1125
|
}
|
|
@@ -2536,23 +2538,23 @@ var se = {
|
|
|
2536
2538
|
"h"
|
|
2537
2539
|
]
|
|
2538
2540
|
};
|
|
2539
|
-
function
|
|
2540
|
-
for (var
|
|
2541
|
-
var i = e.charAt(
|
|
2541
|
+
function mr(e, t) {
|
|
2542
|
+
for (var n = "", r = 0; r < e.length; r++) {
|
|
2543
|
+
var i = e.charAt(r);
|
|
2542
2544
|
if (i === "j") {
|
|
2543
|
-
for (var s = 0;
|
|
2544
|
-
s++,
|
|
2545
|
-
var
|
|
2546
|
-
for ((u == "H" || u == "k") && (
|
|
2547
|
-
|
|
2548
|
-
for (;
|
|
2549
|
-
|
|
2545
|
+
for (var s = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2546
|
+
s++, r++;
|
|
2547
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = dr(t);
|
|
2548
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2549
|
+
n += l;
|
|
2550
|
+
for (; o-- > 0; )
|
|
2551
|
+
n = u + n;
|
|
2550
2552
|
} else
|
|
2551
|
-
i === "J" ?
|
|
2553
|
+
i === "J" ? n += "H" : n += i;
|
|
2552
2554
|
}
|
|
2553
|
-
return
|
|
2555
|
+
return n;
|
|
2554
2556
|
}
|
|
2555
|
-
function
|
|
2557
|
+
function dr(e) {
|
|
2556
2558
|
var t = e.hourCycle;
|
|
2557
2559
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2558
2560
|
e.hourCycles && // @ts-ignore
|
|
@@ -2569,73 +2571,73 @@ function dn(e) {
|
|
|
2569
2571
|
default:
|
|
2570
2572
|
throw new Error("Invalid hourCycle");
|
|
2571
2573
|
}
|
|
2572
|
-
var
|
|
2573
|
-
|
|
2574
|
-
var i = se[
|
|
2574
|
+
var n = e.language, r;
|
|
2575
|
+
n !== "root" && (r = e.maximize().region);
|
|
2576
|
+
var i = se[r || ""] || se[n || ""] || se["".concat(n, "-001")] || se["001"];
|
|
2575
2577
|
return i[0];
|
|
2576
2578
|
}
|
|
2577
|
-
var Oe,
|
|
2578
|
-
function
|
|
2579
|
+
var Oe, br = new RegExp("^".concat(Gt.source, "*")), pr = new RegExp("".concat(Gt.source, "*$"));
|
|
2580
|
+
function p(e, t) {
|
|
2579
2581
|
return { start: e, end: t };
|
|
2580
2582
|
}
|
|
2581
|
-
var
|
|
2583
|
+
var gr = !!String.prototype.startsWith && "_a".startsWith("a", 1), _r = !!String.fromCodePoint, yr = !!Object.fromEntries, xr = !!String.prototype.codePointAt, Er = !!String.prototype.trimStart, vr = !!String.prototype.trimEnd, Hr = !!Number.isSafeInteger, Br = Hr ? Number.isSafeInteger : function(e) {
|
|
2582
2584
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2583
2585
|
}, $e = !0;
|
|
2584
2586
|
try {
|
|
2585
|
-
var
|
|
2586
|
-
$e = ((Oe =
|
|
2587
|
+
var Tr = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2588
|
+
$e = ((Oe = Tr.exec("a")) === null || Oe === void 0 ? void 0 : Oe[0]) === "a";
|
|
2587
2589
|
} catch (e) {
|
|
2588
2590
|
$e = !1;
|
|
2589
2591
|
}
|
|
2590
|
-
var
|
|
2592
|
+
var at = gr ? (
|
|
2591
2593
|
// Native
|
|
2592
|
-
function(t,
|
|
2593
|
-
return t.startsWith(
|
|
2594
|
+
function(t, n, r) {
|
|
2595
|
+
return t.startsWith(n, r);
|
|
2594
2596
|
}
|
|
2595
2597
|
) : (
|
|
2596
2598
|
// For IE11
|
|
2597
|
-
function(t,
|
|
2598
|
-
return t.slice(
|
|
2599
|
+
function(t, n, r) {
|
|
2600
|
+
return t.slice(r, r + n.length) === n;
|
|
2599
2601
|
}
|
|
2600
|
-
), Ue =
|
|
2602
|
+
), Ue = _r ? String.fromCodePoint : (
|
|
2601
2603
|
// IE11
|
|
2602
2604
|
function() {
|
|
2603
|
-
for (var t = [],
|
|
2604
|
-
t[
|
|
2605
|
-
for (var
|
|
2606
|
-
if (
|
|
2607
|
-
throw RangeError(
|
|
2608
|
-
|
|
2605
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2606
|
+
t[n] = arguments[n];
|
|
2607
|
+
for (var r = "", i = t.length, s = 0, o; i > s; ) {
|
|
2608
|
+
if (o = t[s++], o > 1114111)
|
|
2609
|
+
throw RangeError(o + " is not a valid code point");
|
|
2610
|
+
r += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
|
2609
2611
|
}
|
|
2610
|
-
return
|
|
2612
|
+
return r;
|
|
2611
2613
|
}
|
|
2612
|
-
),
|
|
2614
|
+
), ut = (
|
|
2613
2615
|
// native
|
|
2614
|
-
|
|
2616
|
+
yr ? Object.fromEntries : (
|
|
2615
2617
|
// Ponyfill
|
|
2616
2618
|
function(t) {
|
|
2617
|
-
for (var
|
|
2618
|
-
var s = i[
|
|
2619
|
-
|
|
2619
|
+
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2620
|
+
var s = i[r], o = s[0], a = s[1];
|
|
2621
|
+
n[o] = a;
|
|
2620
2622
|
}
|
|
2621
|
-
return
|
|
2623
|
+
return n;
|
|
2622
2624
|
}
|
|
2623
2625
|
)
|
|
2624
|
-
),
|
|
2626
|
+
), Vt = xr ? (
|
|
2625
2627
|
// Native
|
|
2626
|
-
function(t,
|
|
2627
|
-
return t.codePointAt(
|
|
2628
|
+
function(t, n) {
|
|
2629
|
+
return t.codePointAt(n);
|
|
2628
2630
|
}
|
|
2629
2631
|
) : (
|
|
2630
2632
|
// IE 11
|
|
2631
|
-
function(t,
|
|
2632
|
-
var
|
|
2633
|
-
if (!(
|
|
2634
|
-
var i = t.charCodeAt(
|
|
2635
|
-
return i < 55296 || i > 56319 ||
|
|
2633
|
+
function(t, n) {
|
|
2634
|
+
var r = t.length;
|
|
2635
|
+
if (!(n < 0 || n >= r)) {
|
|
2636
|
+
var i = t.charCodeAt(n), s;
|
|
2637
|
+
return i < 55296 || i > 56319 || n + 1 === r || (s = t.charCodeAt(n + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2636
2638
|
}
|
|
2637
2639
|
}
|
|
2638
|
-
),
|
|
2640
|
+
), wr = Er ? (
|
|
2639
2641
|
// Native
|
|
2640
2642
|
function(t) {
|
|
2641
2643
|
return t.trimStart();
|
|
@@ -2643,9 +2645,9 @@ var ut = gn ? (
|
|
|
2643
2645
|
) : (
|
|
2644
2646
|
// Ponyfill
|
|
2645
2647
|
function(t) {
|
|
2646
|
-
return t.replace(
|
|
2648
|
+
return t.replace(br, "");
|
|
2647
2649
|
}
|
|
2648
|
-
),
|
|
2650
|
+
), Sr = vr ? (
|
|
2649
2651
|
// Native
|
|
2650
2652
|
function(t) {
|
|
2651
2653
|
return t.trimEnd();
|
|
@@ -2653,78 +2655,78 @@ var ut = gn ? (
|
|
|
2653
2655
|
) : (
|
|
2654
2656
|
// Ponyfill
|
|
2655
2657
|
function(t) {
|
|
2656
|
-
return t.replace(
|
|
2658
|
+
return t.replace(pr, "");
|
|
2657
2659
|
}
|
|
2658
2660
|
);
|
|
2659
|
-
function
|
|
2661
|
+
function Xt(e, t) {
|
|
2660
2662
|
return new RegExp(e, t);
|
|
2661
2663
|
}
|
|
2662
2664
|
var De;
|
|
2663
2665
|
if ($e) {
|
|
2664
|
-
var
|
|
2665
|
-
De = function(t,
|
|
2666
|
-
var
|
|
2667
|
-
|
|
2668
|
-
var i =
|
|
2669
|
-
return (
|
|
2666
|
+
var ht = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2667
|
+
De = function(t, n) {
|
|
2668
|
+
var r;
|
|
2669
|
+
ht.lastIndex = n;
|
|
2670
|
+
var i = ht.exec(t);
|
|
2671
|
+
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2670
2672
|
};
|
|
2671
2673
|
} else
|
|
2672
|
-
De = function(t,
|
|
2673
|
-
for (var
|
|
2674
|
-
var i =
|
|
2675
|
-
if (i === void 0 ||
|
|
2674
|
+
De = function(t, n) {
|
|
2675
|
+
for (var r = []; ; ) {
|
|
2676
|
+
var i = Vt(t, n);
|
|
2677
|
+
if (i === void 0 || zt(i) || Cr(i))
|
|
2676
2678
|
break;
|
|
2677
|
-
|
|
2679
|
+
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2678
2680
|
}
|
|
2679
|
-
return Ue.apply(void 0,
|
|
2681
|
+
return Ue.apply(void 0, r);
|
|
2680
2682
|
};
|
|
2681
|
-
var
|
|
2683
|
+
var Ar = (
|
|
2682
2684
|
/** @class */
|
|
2683
2685
|
function() {
|
|
2684
|
-
function e(t,
|
|
2685
|
-
|
|
2686
|
+
function e(t, n) {
|
|
2687
|
+
n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
|
|
2686
2688
|
}
|
|
2687
2689
|
return e.prototype.parse = function() {
|
|
2688
2690
|
if (this.offset() !== 0)
|
|
2689
2691
|
throw Error("parser can only be used once");
|
|
2690
2692
|
return this.parseMessage(0, "", !1);
|
|
2691
|
-
}, e.prototype.parseMessage = function(t,
|
|
2693
|
+
}, e.prototype.parseMessage = function(t, n, r) {
|
|
2692
2694
|
for (var i = []; !this.isEOF(); ) {
|
|
2693
2695
|
var s = this.char();
|
|
2694
2696
|
if (s === 123) {
|
|
2695
|
-
var
|
|
2696
|
-
if (
|
|
2697
|
-
return
|
|
2698
|
-
i.push(
|
|
2697
|
+
var o = this.parseArgument(t, r);
|
|
2698
|
+
if (o.err)
|
|
2699
|
+
return o;
|
|
2700
|
+
i.push(o.val);
|
|
2699
2701
|
} else {
|
|
2700
2702
|
if (s === 125 && t > 0)
|
|
2701
2703
|
break;
|
|
2702
|
-
if (s === 35 && (
|
|
2703
|
-
var
|
|
2704
|
+
if (s === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2705
|
+
var a = this.clonePosition();
|
|
2704
2706
|
this.bump(), i.push({
|
|
2705
2707
|
type: x.pound,
|
|
2706
|
-
location:
|
|
2708
|
+
location: p(a, this.clonePosition())
|
|
2707
2709
|
});
|
|
2708
2710
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2709
|
-
if (
|
|
2711
|
+
if (r)
|
|
2710
2712
|
break;
|
|
2711
|
-
return this.error(
|
|
2713
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
|
|
2712
2714
|
} else if (s === 60 && !this.ignoreTag && Ge(this.peek() || 0)) {
|
|
2713
|
-
var
|
|
2714
|
-
if (
|
|
2715
|
-
return
|
|
2716
|
-
i.push(
|
|
2715
|
+
var o = this.parseTag(t, n);
|
|
2716
|
+
if (o.err)
|
|
2717
|
+
return o;
|
|
2718
|
+
i.push(o.val);
|
|
2717
2719
|
} else {
|
|
2718
|
-
var
|
|
2719
|
-
if (
|
|
2720
|
-
return
|
|
2721
|
-
i.push(
|
|
2720
|
+
var o = this.parseLiteral(t, n);
|
|
2721
|
+
if (o.err)
|
|
2722
|
+
return o;
|
|
2723
|
+
i.push(o.val);
|
|
2722
2724
|
}
|
|
2723
2725
|
}
|
|
2724
2726
|
}
|
|
2725
2727
|
return { val: i, err: null };
|
|
2726
|
-
}, e.prototype.parseTag = function(t,
|
|
2727
|
-
var
|
|
2728
|
+
}, e.prototype.parseTag = function(t, n) {
|
|
2729
|
+
var r = this.clonePosition();
|
|
2728
2730
|
this.bump();
|
|
2729
2731
|
var i = this.parseTagName();
|
|
2730
2732
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
@@ -2732,64 +2734,64 @@ var An = (
|
|
|
2732
2734
|
val: {
|
|
2733
2735
|
type: x.literal,
|
|
2734
2736
|
value: "<".concat(i, "/>"),
|
|
2735
|
-
location:
|
|
2737
|
+
location: p(r, this.clonePosition())
|
|
2736
2738
|
},
|
|
2737
2739
|
err: null
|
|
2738
2740
|
};
|
|
2739
2741
|
if (this.bumpIf(">")) {
|
|
2740
|
-
var s = this.parseMessage(t + 1,
|
|
2742
|
+
var s = this.parseMessage(t + 1, n, !0);
|
|
2741
2743
|
if (s.err)
|
|
2742
2744
|
return s;
|
|
2743
|
-
var
|
|
2745
|
+
var o = s.val, a = this.clonePosition();
|
|
2744
2746
|
if (this.bumpIf("</")) {
|
|
2745
2747
|
if (this.isEOF() || !Ge(this.char()))
|
|
2746
|
-
return this.error(
|
|
2748
|
+
return this.error(b.INVALID_TAG, p(a, this.clonePosition()));
|
|
2747
2749
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2748
|
-
return i !== u ? this.error(
|
|
2750
|
+
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, p(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2749
2751
|
val: {
|
|
2750
2752
|
type: x.tag,
|
|
2751
2753
|
value: i,
|
|
2752
|
-
children:
|
|
2753
|
-
location:
|
|
2754
|
+
children: o,
|
|
2755
|
+
location: p(r, this.clonePosition())
|
|
2754
2756
|
},
|
|
2755
2757
|
err: null
|
|
2756
|
-
} : this.error(
|
|
2758
|
+
} : this.error(b.INVALID_TAG, p(a, this.clonePosition())));
|
|
2757
2759
|
} else
|
|
2758
|
-
return this.error(
|
|
2760
|
+
return this.error(b.UNCLOSED_TAG, p(r, this.clonePosition()));
|
|
2759
2761
|
} else
|
|
2760
|
-
return this.error(
|
|
2762
|
+
return this.error(b.INVALID_TAG, p(r, this.clonePosition()));
|
|
2761
2763
|
}, e.prototype.parseTagName = function() {
|
|
2762
2764
|
var t = this.offset();
|
|
2763
|
-
for (this.bump(); !this.isEOF() &&
|
|
2765
|
+
for (this.bump(); !this.isEOF() && Pr(this.char()); )
|
|
2764
2766
|
this.bump();
|
|
2765
2767
|
return this.message.slice(t, this.offset());
|
|
2766
|
-
}, e.prototype.parseLiteral = function(t,
|
|
2767
|
-
for (var
|
|
2768
|
-
var s = this.tryParseQuote(
|
|
2768
|
+
}, e.prototype.parseLiteral = function(t, n) {
|
|
2769
|
+
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
2770
|
+
var s = this.tryParseQuote(n);
|
|
2769
2771
|
if (s) {
|
|
2770
2772
|
i += s;
|
|
2771
2773
|
continue;
|
|
2772
2774
|
}
|
|
2773
|
-
var
|
|
2774
|
-
if (a) {
|
|
2775
|
-
i += a;
|
|
2776
|
-
continue;
|
|
2777
|
-
}
|
|
2778
|
-
var o = this.tryParseLeftAngleBracket();
|
|
2775
|
+
var o = this.tryParseUnquoted(t, n);
|
|
2779
2776
|
if (o) {
|
|
2780
2777
|
i += o;
|
|
2781
2778
|
continue;
|
|
2782
2779
|
}
|
|
2780
|
+
var a = this.tryParseLeftAngleBracket();
|
|
2781
|
+
if (a) {
|
|
2782
|
+
i += a;
|
|
2783
|
+
continue;
|
|
2784
|
+
}
|
|
2783
2785
|
break;
|
|
2784
2786
|
}
|
|
2785
|
-
var l =
|
|
2787
|
+
var l = p(r, this.clonePosition());
|
|
2786
2788
|
return {
|
|
2787
2789
|
val: { type: x.literal, value: i, location: l },
|
|
2788
2790
|
err: null
|
|
2789
2791
|
};
|
|
2790
2792
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2791
2793
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2792
|
-
!
|
|
2794
|
+
!Or(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2793
2795
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2794
2796
|
if (this.isEOF() || this.char() !== 39)
|
|
2795
2797
|
return null;
|
|
@@ -2809,37 +2811,37 @@ var An = (
|
|
|
2809
2811
|
return null;
|
|
2810
2812
|
}
|
|
2811
2813
|
this.bump();
|
|
2812
|
-
var
|
|
2814
|
+
var n = [this.char()];
|
|
2813
2815
|
for (this.bump(); !this.isEOF(); ) {
|
|
2814
|
-
var
|
|
2815
|
-
if (
|
|
2816
|
+
var r = this.char();
|
|
2817
|
+
if (r === 39)
|
|
2816
2818
|
if (this.peek() === 39)
|
|
2817
|
-
|
|
2819
|
+
n.push(39), this.bump();
|
|
2818
2820
|
else {
|
|
2819
2821
|
this.bump();
|
|
2820
2822
|
break;
|
|
2821
2823
|
}
|
|
2822
2824
|
else
|
|
2823
|
-
|
|
2825
|
+
n.push(r);
|
|
2824
2826
|
this.bump();
|
|
2825
2827
|
}
|
|
2826
|
-
return Ue.apply(void 0,
|
|
2827
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
2828
|
+
return Ue.apply(void 0, n);
|
|
2829
|
+
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2828
2830
|
if (this.isEOF())
|
|
2829
2831
|
return null;
|
|
2830
|
-
var
|
|
2831
|
-
return
|
|
2832
|
-
}, e.prototype.parseArgument = function(t,
|
|
2833
|
-
var
|
|
2832
|
+
var r = this.char();
|
|
2833
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Ue(r));
|
|
2834
|
+
}, e.prototype.parseArgument = function(t, n) {
|
|
2835
|
+
var r = this.clonePosition();
|
|
2834
2836
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2835
|
-
return this.error(
|
|
2837
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(r, this.clonePosition()));
|
|
2836
2838
|
if (this.char() === 125)
|
|
2837
|
-
return this.bump(), this.error(
|
|
2839
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, p(r, this.clonePosition()));
|
|
2838
2840
|
var i = this.parseIdentifierIfPossible().value;
|
|
2839
2841
|
if (!i)
|
|
2840
|
-
return this.error(
|
|
2842
|
+
return this.error(b.MALFORMED_ARGUMENT, p(r, this.clonePosition()));
|
|
2841
2843
|
if (this.bumpSpace(), this.isEOF())
|
|
2842
|
-
return this.error(
|
|
2844
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(r, this.clonePosition()));
|
|
2843
2845
|
switch (this.char()) {
|
|
2844
2846
|
case 125:
|
|
2845
2847
|
return this.bump(), {
|
|
@@ -2847,25 +2849,25 @@ var An = (
|
|
|
2847
2849
|
type: x.argument,
|
|
2848
2850
|
// value does not include the opening and closing braces.
|
|
2849
2851
|
value: i,
|
|
2850
|
-
location:
|
|
2852
|
+
location: p(r, this.clonePosition())
|
|
2851
2853
|
},
|
|
2852
2854
|
err: null
|
|
2853
2855
|
};
|
|
2854
2856
|
case 44:
|
|
2855
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2857
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2856
2858
|
default:
|
|
2857
|
-
return this.error(
|
|
2859
|
+
return this.error(b.MALFORMED_ARGUMENT, p(r, this.clonePosition()));
|
|
2858
2860
|
}
|
|
2859
2861
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2860
|
-
var t = this.clonePosition(),
|
|
2862
|
+
var t = this.clonePosition(), n = this.offset(), r = De(this.message, n), i = n + r.length;
|
|
2861
2863
|
this.bumpTo(i);
|
|
2862
|
-
var s = this.clonePosition(),
|
|
2863
|
-
return { value:
|
|
2864
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
2865
|
-
var s,
|
|
2866
|
-
switch (
|
|
2864
|
+
var s = this.clonePosition(), o = p(t, s);
|
|
2865
|
+
return { value: r, location: o };
|
|
2866
|
+
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2867
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2868
|
+
switch (a) {
|
|
2867
2869
|
case "":
|
|
2868
|
-
return this.error(
|
|
2870
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, p(o, l));
|
|
2869
2871
|
case "number":
|
|
2870
2872
|
case "date":
|
|
2871
2873
|
case "time": {
|
|
@@ -2876,45 +2878,45 @@ var An = (
|
|
|
2876
2878
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2877
2879
|
if (c.err)
|
|
2878
2880
|
return c;
|
|
2879
|
-
var m =
|
|
2881
|
+
var m = Sr(c.val);
|
|
2880
2882
|
if (m.length === 0)
|
|
2881
|
-
return this.error(
|
|
2882
|
-
var d =
|
|
2883
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2884
|
+
var d = p(h, this.clonePosition());
|
|
2883
2885
|
u = { style: m, styleLocation: d };
|
|
2884
2886
|
}
|
|
2885
2887
|
var f = this.tryParseArgumentClose(i);
|
|
2886
2888
|
if (f.err)
|
|
2887
2889
|
return f;
|
|
2888
|
-
var _ =
|
|
2889
|
-
if (u &&
|
|
2890
|
-
var v =
|
|
2891
|
-
if (
|
|
2890
|
+
var _ = p(i, this.clonePosition());
|
|
2891
|
+
if (u && at(u == null ? void 0 : u.style, "::", 0)) {
|
|
2892
|
+
var v = wr(u.style.slice(2));
|
|
2893
|
+
if (a === "number") {
|
|
2892
2894
|
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
2893
2895
|
return c.err ? c : {
|
|
2894
|
-
val: { type: x.number, value:
|
|
2896
|
+
val: { type: x.number, value: r, location: _, style: c.val },
|
|
2895
2897
|
err: null
|
|
2896
2898
|
};
|
|
2897
2899
|
} else {
|
|
2898
2900
|
if (v.length === 0)
|
|
2899
|
-
return this.error(
|
|
2901
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, _);
|
|
2900
2902
|
var A = v;
|
|
2901
|
-
this.locale && (A =
|
|
2903
|
+
this.locale && (A = mr(v, this.locale));
|
|
2902
2904
|
var m = {
|
|
2903
2905
|
type: j.dateTime,
|
|
2904
2906
|
pattern: A,
|
|
2905
2907
|
location: u.styleLocation,
|
|
2906
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2907
|
-
}, O =
|
|
2908
|
+
parsedOptions: this.shouldParseSkeletons ? or(A) : {}
|
|
2909
|
+
}, O = a === "date" ? x.date : x.time;
|
|
2908
2910
|
return {
|
|
2909
|
-
val: { type: O, value:
|
|
2911
|
+
val: { type: O, value: r, location: _, style: m },
|
|
2910
2912
|
err: null
|
|
2911
2913
|
};
|
|
2912
2914
|
}
|
|
2913
2915
|
}
|
|
2914
2916
|
return {
|
|
2915
2917
|
val: {
|
|
2916
|
-
type:
|
|
2917
|
-
value:
|
|
2918
|
+
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
2919
|
+
value: r,
|
|
2918
2920
|
location: _,
|
|
2919
2921
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
2920
2922
|
},
|
|
@@ -2926,59 +2928,59 @@ var An = (
|
|
|
2926
2928
|
case "select": {
|
|
2927
2929
|
var H = this.clonePosition();
|
|
2928
2930
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2929
|
-
return this.error(
|
|
2931
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, p(H, y({}, H)));
|
|
2930
2932
|
this.bumpSpace();
|
|
2931
2933
|
var N = this.parseIdentifierIfPossible(), S = 0;
|
|
2932
|
-
if (
|
|
2934
|
+
if (a !== "select" && N.value === "offset") {
|
|
2933
2935
|
if (!this.bumpIf(":"))
|
|
2934
|
-
return this.error(
|
|
2936
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
|
|
2935
2937
|
this.bumpSpace();
|
|
2936
|
-
var c = this.tryParseDecimalInteger(
|
|
2938
|
+
var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2937
2939
|
if (c.err)
|
|
2938
2940
|
return c;
|
|
2939
2941
|
this.bumpSpace(), N = this.parseIdentifierIfPossible(), S = c.val;
|
|
2940
2942
|
}
|
|
2941
|
-
var R = this.tryParsePluralOrSelectOptions(t,
|
|
2943
|
+
var R = this.tryParsePluralOrSelectOptions(t, a, n, N);
|
|
2942
2944
|
if (R.err)
|
|
2943
2945
|
return R;
|
|
2944
2946
|
var f = this.tryParseArgumentClose(i);
|
|
2945
2947
|
if (f.err)
|
|
2946
2948
|
return f;
|
|
2947
|
-
var ie =
|
|
2948
|
-
return
|
|
2949
|
+
var ie = p(i, this.clonePosition());
|
|
2950
|
+
return a === "select" ? {
|
|
2949
2951
|
val: {
|
|
2950
2952
|
type: x.select,
|
|
2951
|
-
value:
|
|
2952
|
-
options:
|
|
2953
|
+
value: r,
|
|
2954
|
+
options: ut(R.val),
|
|
2953
2955
|
location: ie
|
|
2954
2956
|
},
|
|
2955
2957
|
err: null
|
|
2956
2958
|
} : {
|
|
2957
2959
|
val: {
|
|
2958
2960
|
type: x.plural,
|
|
2959
|
-
value:
|
|
2960
|
-
options:
|
|
2961
|
+
value: r,
|
|
2962
|
+
options: ut(R.val),
|
|
2961
2963
|
offset: S,
|
|
2962
|
-
pluralType:
|
|
2964
|
+
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2963
2965
|
location: ie
|
|
2964
2966
|
},
|
|
2965
2967
|
err: null
|
|
2966
2968
|
};
|
|
2967
2969
|
}
|
|
2968
2970
|
default:
|
|
2969
|
-
return this.error(
|
|
2971
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, p(o, l));
|
|
2970
2972
|
}
|
|
2971
2973
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2972
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2974
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2973
2975
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2974
|
-
for (var t = 0,
|
|
2975
|
-
var
|
|
2976
|
-
switch (
|
|
2976
|
+
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2977
|
+
var r = this.char();
|
|
2978
|
+
switch (r) {
|
|
2977
2979
|
case 39: {
|
|
2978
2980
|
this.bump();
|
|
2979
2981
|
var i = this.clonePosition();
|
|
2980
2982
|
if (!this.bumpUntil("'"))
|
|
2981
|
-
return this.error(
|
|
2983
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, p(i, this.clonePosition()));
|
|
2982
2984
|
this.bump();
|
|
2983
2985
|
break;
|
|
2984
2986
|
}
|
|
@@ -2991,7 +2993,7 @@ var An = (
|
|
|
2991
2993
|
t -= 1;
|
|
2992
2994
|
else
|
|
2993
2995
|
return {
|
|
2994
|
-
val: this.message.slice(
|
|
2996
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
2995
2997
|
err: null
|
|
2996
2998
|
};
|
|
2997
2999
|
break;
|
|
@@ -3002,70 +3004,70 @@ var An = (
|
|
|
3002
3004
|
}
|
|
3003
3005
|
}
|
|
3004
3006
|
return {
|
|
3005
|
-
val: this.message.slice(
|
|
3007
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
3006
3008
|
err: null
|
|
3007
3009
|
};
|
|
3008
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
3009
|
-
var
|
|
3010
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3011
|
+
var r = [];
|
|
3010
3012
|
try {
|
|
3011
|
-
|
|
3013
|
+
r = ur(t);
|
|
3012
3014
|
} catch (i) {
|
|
3013
|
-
return this.error(
|
|
3015
|
+
return this.error(b.INVALID_NUMBER_SKELETON, n);
|
|
3014
3016
|
}
|
|
3015
3017
|
return {
|
|
3016
3018
|
val: {
|
|
3017
3019
|
type: j.number,
|
|
3018
|
-
tokens:
|
|
3019
|
-
location:
|
|
3020
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3020
|
+
tokens: r,
|
|
3021
|
+
location: n,
|
|
3022
|
+
parsedOptions: this.shouldParseSkeletons ? cr(r) : {}
|
|
3021
3023
|
},
|
|
3022
3024
|
err: null
|
|
3023
3025
|
};
|
|
3024
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
3025
|
-
for (var s,
|
|
3026
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3027
|
+
for (var s, o = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3026
3028
|
if (u.length === 0) {
|
|
3027
3029
|
var c = this.clonePosition();
|
|
3028
|
-
if (
|
|
3029
|
-
var m = this.tryParseDecimalInteger(
|
|
3030
|
+
if (n !== "select" && this.bumpIf("=")) {
|
|
3031
|
+
var m = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3030
3032
|
if (m.err)
|
|
3031
3033
|
return m;
|
|
3032
|
-
h =
|
|
3034
|
+
h = p(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3033
3035
|
} else
|
|
3034
3036
|
break;
|
|
3035
3037
|
}
|
|
3036
3038
|
if (l.has(u))
|
|
3037
|
-
return this.error(
|
|
3038
|
-
u === "other" && (
|
|
3039
|
+
return this.error(n === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3040
|
+
u === "other" && (o = !0), this.bumpSpace();
|
|
3039
3041
|
var d = this.clonePosition();
|
|
3040
3042
|
if (!this.bumpIf("{"))
|
|
3041
|
-
return this.error(
|
|
3042
|
-
var f = this.parseMessage(t + 1,
|
|
3043
|
+
return this.error(n === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
|
|
3044
|
+
var f = this.parseMessage(t + 1, n, r);
|
|
3043
3045
|
if (f.err)
|
|
3044
3046
|
return f;
|
|
3045
3047
|
var _ = this.tryParseArgumentClose(d);
|
|
3046
3048
|
if (_.err)
|
|
3047
3049
|
return _;
|
|
3048
|
-
|
|
3050
|
+
a.push([
|
|
3049
3051
|
u,
|
|
3050
3052
|
{
|
|
3051
3053
|
value: f.val,
|
|
3052
|
-
location:
|
|
3054
|
+
location: p(d, this.clonePosition())
|
|
3053
3055
|
}
|
|
3054
3056
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3055
3057
|
}
|
|
3056
|
-
return
|
|
3057
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
3058
|
-
var
|
|
3059
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
3060
|
-
for (var s = !1,
|
|
3061
|
-
var
|
|
3062
|
-
if (
|
|
3063
|
-
s = !0,
|
|
3058
|
+
return a.length === 0 ? this.error(n === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(b.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3059
|
+
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3060
|
+
var r = 1, i = this.clonePosition();
|
|
3061
|
+
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3062
|
+
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
3063
|
+
var a = this.char();
|
|
3064
|
+
if (a >= 48 && a <= 57)
|
|
3065
|
+
s = !0, o = o * 10 + (a - 48), this.bump();
|
|
3064
3066
|
else
|
|
3065
3067
|
break;
|
|
3066
3068
|
}
|
|
3067
|
-
var l =
|
|
3068
|
-
return s ? (
|
|
3069
|
+
var l = p(i, this.clonePosition());
|
|
3070
|
+
return s ? (o *= r, Br(o) ? { val: o, err: null } : this.error(n, l)) : this.error(t, l);
|
|
3069
3071
|
}, e.prototype.offset = function() {
|
|
3070
3072
|
return this.position.offset;
|
|
3071
3073
|
}, e.prototype.isEOF = function() {
|
|
@@ -3080,17 +3082,17 @@ var An = (
|
|
|
3080
3082
|
var t = this.position.offset;
|
|
3081
3083
|
if (t >= this.message.length)
|
|
3082
3084
|
throw Error("out of bound");
|
|
3083
|
-
var
|
|
3084
|
-
if (
|
|
3085
|
+
var n = Vt(this.message, t);
|
|
3086
|
+
if (n === void 0)
|
|
3085
3087
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3086
|
-
return
|
|
3087
|
-
}, e.prototype.error = function(t,
|
|
3088
|
+
return n;
|
|
3089
|
+
}, e.prototype.error = function(t, n) {
|
|
3088
3090
|
return {
|
|
3089
3091
|
val: null,
|
|
3090
3092
|
err: {
|
|
3091
3093
|
kind: t,
|
|
3092
3094
|
message: this.message,
|
|
3093
|
-
location:
|
|
3095
|
+
location: n
|
|
3094
3096
|
}
|
|
3095
3097
|
};
|
|
3096
3098
|
}, e.prototype.bump = function() {
|
|
@@ -3099,70 +3101,70 @@ var An = (
|
|
|
3099
3101
|
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);
|
|
3100
3102
|
}
|
|
3101
3103
|
}, e.prototype.bumpIf = function(t) {
|
|
3102
|
-
if (
|
|
3103
|
-
for (var
|
|
3104
|
+
if (at(this.message, t, this.offset())) {
|
|
3105
|
+
for (var n = 0; n < t.length; n++)
|
|
3104
3106
|
this.bump();
|
|
3105
3107
|
return !0;
|
|
3106
3108
|
}
|
|
3107
3109
|
return !1;
|
|
3108
3110
|
}, e.prototype.bumpUntil = function(t) {
|
|
3109
|
-
var
|
|
3110
|
-
return
|
|
3111
|
+
var n = this.offset(), r = this.message.indexOf(t, n);
|
|
3112
|
+
return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
|
|
3111
3113
|
}, e.prototype.bumpTo = function(t) {
|
|
3112
3114
|
if (this.offset() > t)
|
|
3113
3115
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3114
3116
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3115
|
-
var
|
|
3116
|
-
if (
|
|
3117
|
+
var n = this.offset();
|
|
3118
|
+
if (n === t)
|
|
3117
3119
|
break;
|
|
3118
|
-
if (
|
|
3120
|
+
if (n > t)
|
|
3119
3121
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3120
3122
|
if (this.bump(), this.isEOF())
|
|
3121
3123
|
break;
|
|
3122
3124
|
}
|
|
3123
3125
|
}, e.prototype.bumpSpace = function() {
|
|
3124
|
-
for (; !this.isEOF() &&
|
|
3126
|
+
for (; !this.isEOF() && zt(this.char()); )
|
|
3125
3127
|
this.bump();
|
|
3126
3128
|
}, e.prototype.peek = function() {
|
|
3127
3129
|
if (this.isEOF())
|
|
3128
3130
|
return null;
|
|
3129
|
-
var t = this.char(),
|
|
3130
|
-
return
|
|
3131
|
+
var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
|
|
3132
|
+
return r != null ? r : null;
|
|
3131
3133
|
}, e;
|
|
3132
3134
|
}()
|
|
3133
3135
|
);
|
|
3134
3136
|
function Ge(e) {
|
|
3135
3137
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3136
3138
|
}
|
|
3137
|
-
function
|
|
3139
|
+
function Or(e) {
|
|
3138
3140
|
return Ge(e) || e === 47;
|
|
3139
3141
|
}
|
|
3140
|
-
function
|
|
3142
|
+
function Pr(e) {
|
|
3141
3143
|
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;
|
|
3142
3144
|
}
|
|
3143
|
-
function
|
|
3145
|
+
function zt(e) {
|
|
3144
3146
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3145
3147
|
}
|
|
3146
|
-
function
|
|
3148
|
+
function Cr(e) {
|
|
3147
3149
|
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;
|
|
3148
3150
|
}
|
|
3149
3151
|
function Fe(e) {
|
|
3150
3152
|
e.forEach(function(t) {
|
|
3151
|
-
if (delete t.location,
|
|
3152
|
-
for (var
|
|
3153
|
-
delete t.options[
|
|
3153
|
+
if (delete t.location, Rt(t) || $t(t))
|
|
3154
|
+
for (var n in t.options)
|
|
3155
|
+
delete t.options[n].location, Fe(t.options[n].value);
|
|
3154
3156
|
else
|
|
3155
|
-
|
|
3157
|
+
Nt(t) && Dt(t.style) || (It(t) || Mt(t)) && Re(t.style) ? delete t.style.location : Ut(t) && Fe(t.children);
|
|
3156
3158
|
});
|
|
3157
3159
|
}
|
|
3158
|
-
function
|
|
3160
|
+
function Lr(e, t) {
|
|
3159
3161
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3160
|
-
var
|
|
3161
|
-
if (
|
|
3162
|
-
var
|
|
3163
|
-
throw
|
|
3162
|
+
var n = new Ar(e, t).parse();
|
|
3163
|
+
if (n.err) {
|
|
3164
|
+
var r = SyntaxError(b[n.err.kind]);
|
|
3165
|
+
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3164
3166
|
}
|
|
3165
|
-
return t != null && t.captureLocation || Fe(
|
|
3167
|
+
return t != null && t.captureLocation || Fe(n.val), n.val;
|
|
3166
3168
|
}
|
|
3167
3169
|
var k;
|
|
3168
3170
|
(function(e) {
|
|
@@ -3171,39 +3173,39 @@ var k;
|
|
|
3171
3173
|
var ge = (
|
|
3172
3174
|
/** @class */
|
|
3173
3175
|
function(e) {
|
|
3174
|
-
|
|
3175
|
-
function t(
|
|
3176
|
-
var s = e.call(this,
|
|
3177
|
-
return s.code =
|
|
3176
|
+
pe(t, e);
|
|
3177
|
+
function t(n, r, i) {
|
|
3178
|
+
var s = e.call(this, n) || this;
|
|
3179
|
+
return s.code = r, s.originalMessage = i, s;
|
|
3178
3180
|
}
|
|
3179
3181
|
return t.prototype.toString = function() {
|
|
3180
3182
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3181
3183
|
}, t;
|
|
3182
3184
|
}(Error)
|
|
3183
|
-
),
|
|
3185
|
+
), lt = (
|
|
3184
3186
|
/** @class */
|
|
3185
3187
|
function(e) {
|
|
3186
|
-
|
|
3187
|
-
function t(
|
|
3188
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3188
|
+
pe(t, e);
|
|
3189
|
+
function t(n, r, i, s) {
|
|
3190
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), k.INVALID_VALUE, s) || this;
|
|
3189
3191
|
}
|
|
3190
3192
|
return t;
|
|
3191
3193
|
}(ge)
|
|
3192
|
-
),
|
|
3194
|
+
), Nr = (
|
|
3193
3195
|
/** @class */
|
|
3194
3196
|
function(e) {
|
|
3195
|
-
|
|
3196
|
-
function t(
|
|
3197
|
-
return e.call(this, 'Value for "'.concat(
|
|
3197
|
+
pe(t, e);
|
|
3198
|
+
function t(n, r, i) {
|
|
3199
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), k.INVALID_VALUE, i) || this;
|
|
3198
3200
|
}
|
|
3199
3201
|
return t;
|
|
3200
3202
|
}(ge)
|
|
3201
|
-
),
|
|
3203
|
+
), Ir = (
|
|
3202
3204
|
/** @class */
|
|
3203
3205
|
function(e) {
|
|
3204
|
-
|
|
3205
|
-
function t(
|
|
3206
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3206
|
+
pe(t, e);
|
|
3207
|
+
function t(n, r) {
|
|
3208
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), k.MISSING_VALUE, r) || this;
|
|
3207
3209
|
}
|
|
3208
3210
|
return t;
|
|
3209
3211
|
}(ge)
|
|
@@ -3211,121 +3213,121 @@ var ge = (
|
|
|
3211
3213
|
(function(e) {
|
|
3212
3214
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3213
3215
|
})(E || (E = {}));
|
|
3214
|
-
function
|
|
3215
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3216
|
-
var
|
|
3217
|
-
return !
|
|
3216
|
+
function Mr(e) {
|
|
3217
|
+
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3218
|
+
var r = t[t.length - 1];
|
|
3219
|
+
return !r || r.type !== E.literal || n.type !== E.literal ? t.push(n) : r.value += n.value, t;
|
|
3218
3220
|
}, []);
|
|
3219
3221
|
}
|
|
3220
|
-
function
|
|
3222
|
+
function Rr(e) {
|
|
3221
3223
|
return typeof e == "function";
|
|
3222
3224
|
}
|
|
3223
|
-
function he(e, t,
|
|
3224
|
-
if (e.length === 1 &&
|
|
3225
|
+
function he(e, t, n, r, i, s, o) {
|
|
3226
|
+
if (e.length === 1 && rt(e[0]))
|
|
3225
3227
|
return [
|
|
3226
3228
|
{
|
|
3227
3229
|
type: E.literal,
|
|
3228
3230
|
value: e[0].value
|
|
3229
3231
|
}
|
|
3230
3232
|
];
|
|
3231
|
-
for (var
|
|
3233
|
+
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3232
3234
|
var h = u[l];
|
|
3233
|
-
if (
|
|
3234
|
-
|
|
3235
|
+
if (rt(h)) {
|
|
3236
|
+
a.push({
|
|
3235
3237
|
type: E.literal,
|
|
3236
3238
|
value: h.value
|
|
3237
3239
|
});
|
|
3238
3240
|
continue;
|
|
3239
3241
|
}
|
|
3240
|
-
if (
|
|
3241
|
-
typeof s == "number" &&
|
|
3242
|
+
if (ir(h)) {
|
|
3243
|
+
typeof s == "number" && a.push({
|
|
3242
3244
|
type: E.literal,
|
|
3243
|
-
value:
|
|
3245
|
+
value: n.getNumberFormat(t).format(s)
|
|
3244
3246
|
});
|
|
3245
3247
|
continue;
|
|
3246
3248
|
}
|
|
3247
3249
|
var c = h.value;
|
|
3248
3250
|
if (!(i && c in i))
|
|
3249
|
-
throw new
|
|
3251
|
+
throw new Ir(c, o);
|
|
3250
3252
|
var m = i[c];
|
|
3251
|
-
if (
|
|
3252
|
-
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""),
|
|
3253
|
+
if (rr(h)) {
|
|
3254
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
|
|
3253
3255
|
type: typeof m == "string" ? E.literal : E.object,
|
|
3254
3256
|
value: m
|
|
3255
3257
|
});
|
|
3256
3258
|
continue;
|
|
3257
3259
|
}
|
|
3258
|
-
if (
|
|
3259
|
-
var d = typeof h.style == "string" ?
|
|
3260
|
-
|
|
3260
|
+
if (It(h)) {
|
|
3261
|
+
var d = typeof h.style == "string" ? r.date[h.style] : Re(h.style) ? h.style.parsedOptions : void 0;
|
|
3262
|
+
a.push({
|
|
3261
3263
|
type: E.literal,
|
|
3262
|
-
value:
|
|
3264
|
+
value: n.getDateTimeFormat(t, d).format(m)
|
|
3263
3265
|
});
|
|
3264
3266
|
continue;
|
|
3265
3267
|
}
|
|
3266
|
-
if (
|
|
3267
|
-
var d = typeof h.style == "string" ?
|
|
3268
|
-
|
|
3268
|
+
if (Mt(h)) {
|
|
3269
|
+
var d = typeof h.style == "string" ? r.time[h.style] : Re(h.style) ? h.style.parsedOptions : r.time.medium;
|
|
3270
|
+
a.push({
|
|
3269
3271
|
type: E.literal,
|
|
3270
|
-
value:
|
|
3272
|
+
value: n.getDateTimeFormat(t, d).format(m)
|
|
3271
3273
|
});
|
|
3272
3274
|
continue;
|
|
3273
3275
|
}
|
|
3274
|
-
if (
|
|
3275
|
-
var d = typeof h.style == "string" ?
|
|
3276
|
-
d && d.scale && (m = m * (d.scale || 1)),
|
|
3276
|
+
if (Nt(h)) {
|
|
3277
|
+
var d = typeof h.style == "string" ? r.number[h.style] : Dt(h.style) ? h.style.parsedOptions : void 0;
|
|
3278
|
+
d && d.scale && (m = m * (d.scale || 1)), a.push({
|
|
3277
3279
|
type: E.literal,
|
|
3278
|
-
value:
|
|
3280
|
+
value: n.getNumberFormat(t, d).format(m)
|
|
3279
3281
|
});
|
|
3280
3282
|
continue;
|
|
3281
3283
|
}
|
|
3282
|
-
if (
|
|
3284
|
+
if (Ut(h)) {
|
|
3283
3285
|
var f = h.children, _ = h.value, v = i[_];
|
|
3284
|
-
if (!
|
|
3285
|
-
throw new
|
|
3286
|
-
var A = he(f, t,
|
|
3286
|
+
if (!Rr(v))
|
|
3287
|
+
throw new Nr(_, "function", o);
|
|
3288
|
+
var A = he(f, t, n, r, i, s), O = v(A.map(function(S) {
|
|
3287
3289
|
return S.value;
|
|
3288
3290
|
}));
|
|
3289
|
-
Array.isArray(O) || (O = [O]),
|
|
3291
|
+
Array.isArray(O) || (O = [O]), a.push.apply(a, O.map(function(S) {
|
|
3290
3292
|
return {
|
|
3291
3293
|
type: typeof S == "string" ? E.literal : E.object,
|
|
3292
3294
|
value: S
|
|
3293
3295
|
};
|
|
3294
3296
|
}));
|
|
3295
3297
|
}
|
|
3296
|
-
if (
|
|
3298
|
+
if (Rt(h)) {
|
|
3297
3299
|
var H = h.options[m] || h.options.other;
|
|
3298
3300
|
if (!H)
|
|
3299
|
-
throw new
|
|
3300
|
-
|
|
3301
|
+
throw new lt(h.value, m, Object.keys(h.options), o);
|
|
3302
|
+
a.push.apply(a, he(H.value, t, n, r, i));
|
|
3301
3303
|
continue;
|
|
3302
3304
|
}
|
|
3303
|
-
if (
|
|
3305
|
+
if ($t(h)) {
|
|
3304
3306
|
var H = h.options["=".concat(m)];
|
|
3305
3307
|
if (!H) {
|
|
3306
3308
|
if (!Intl.PluralRules)
|
|
3307
3309
|
throw new ge(`Intl.PluralRules is not available in this environment.
|
|
3308
3310
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3309
|
-
`, k.MISSING_INTL_API,
|
|
3310
|
-
var N =
|
|
3311
|
+
`, k.MISSING_INTL_API, o);
|
|
3312
|
+
var N = n.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3311
3313
|
H = h.options[N] || h.options.other;
|
|
3312
3314
|
}
|
|
3313
3315
|
if (!H)
|
|
3314
|
-
throw new
|
|
3315
|
-
|
|
3316
|
+
throw new lt(h.value, m, Object.keys(h.options), o);
|
|
3317
|
+
a.push.apply(a, he(H.value, t, n, r, i, m - (h.offset || 0)));
|
|
3316
3318
|
continue;
|
|
3317
3319
|
}
|
|
3318
3320
|
}
|
|
3319
|
-
return
|
|
3321
|
+
return Mr(a);
|
|
3320
3322
|
}
|
|
3321
|
-
function $
|
|
3322
|
-
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(
|
|
3323
|
-
return r
|
|
3323
|
+
function $r(e, t) {
|
|
3324
|
+
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3325
|
+
return n[r] = y(y({}, e[r]), t[r] || {}), n;
|
|
3324
3326
|
}, {})) : e;
|
|
3325
3327
|
}
|
|
3326
|
-
function
|
|
3327
|
-
return t ? Object.keys(e).reduce(function(
|
|
3328
|
-
return r
|
|
3328
|
+
function Ur(e, t) {
|
|
3329
|
+
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3330
|
+
return n[r] = $r(e[r], t[r]), n;
|
|
3329
3331
|
}, y({}, e)) : e;
|
|
3330
3332
|
}
|
|
3331
3333
|
function Pe(e) {
|
|
@@ -3335,50 +3337,50 @@ function Pe(e) {
|
|
|
3335
3337
|
get: function(t) {
|
|
3336
3338
|
return e[t];
|
|
3337
3339
|
},
|
|
3338
|
-
set: function(t,
|
|
3339
|
-
e[t] =
|
|
3340
|
+
set: function(t, n) {
|
|
3341
|
+
e[t] = n;
|
|
3340
3342
|
}
|
|
3341
3343
|
};
|
|
3342
3344
|
}
|
|
3343
3345
|
};
|
|
3344
3346
|
}
|
|
3345
|
-
function
|
|
3347
|
+
function Dr(e) {
|
|
3346
3348
|
return e === void 0 && (e = {
|
|
3347
3349
|
number: {},
|
|
3348
3350
|
dateTime: {},
|
|
3349
3351
|
pluralRules: {}
|
|
3350
3352
|
}), {
|
|
3351
3353
|
getNumberFormat: Se(function() {
|
|
3352
|
-
for (var t,
|
|
3353
|
-
r
|
|
3354
|
-
return new ((t = Intl.NumberFormat).bind.apply(t, we([void 0],
|
|
3354
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3355
|
+
n[r] = arguments[r];
|
|
3356
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, we([void 0], n, !1)))();
|
|
3355
3357
|
}, {
|
|
3356
3358
|
cache: Pe(e.number),
|
|
3357
3359
|
strategy: Ae.variadic
|
|
3358
3360
|
}),
|
|
3359
3361
|
getDateTimeFormat: Se(function() {
|
|
3360
|
-
for (var t,
|
|
3361
|
-
r
|
|
3362
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t, we([void 0],
|
|
3362
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3363
|
+
n[r] = arguments[r];
|
|
3364
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, we([void 0], n, !1)))();
|
|
3363
3365
|
}, {
|
|
3364
3366
|
cache: Pe(e.dateTime),
|
|
3365
3367
|
strategy: Ae.variadic
|
|
3366
3368
|
}),
|
|
3367
3369
|
getPluralRules: Se(function() {
|
|
3368
|
-
for (var t,
|
|
3369
|
-
r
|
|
3370
|
-
return new ((t = Intl.PluralRules).bind.apply(t, we([void 0],
|
|
3370
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3371
|
+
n[r] = arguments[r];
|
|
3372
|
+
return new ((t = Intl.PluralRules).bind.apply(t, we([void 0], n, !1)))();
|
|
3371
3373
|
}, {
|
|
3372
3374
|
cache: Pe(e.pluralRules),
|
|
3373
3375
|
strategy: Ae.variadic
|
|
3374
3376
|
})
|
|
3375
3377
|
};
|
|
3376
3378
|
}
|
|
3377
|
-
var
|
|
3379
|
+
var Wt = (
|
|
3378
3380
|
/** @class */
|
|
3379
3381
|
function() {
|
|
3380
|
-
function e(t,
|
|
3381
|
-
|
|
3382
|
+
function e(t, n, r, i) {
|
|
3383
|
+
n === void 0 && (n = e.defaultLocale);
|
|
3382
3384
|
var s = this;
|
|
3383
3385
|
if (this.formatterCache = {
|
|
3384
3386
|
number: {},
|
|
@@ -3401,18 +3403,18 @@ var Zt = (
|
|
|
3401
3403
|
};
|
|
3402
3404
|
}, this.getAst = function() {
|
|
3403
3405
|
return s.ast;
|
|
3404
|
-
}, this.locales =
|
|
3406
|
+
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3405
3407
|
if (this.message = t, !e.__parse)
|
|
3406
3408
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3407
|
-
var
|
|
3408
|
-
|
|
3409
|
-
var
|
|
3410
|
-
this.ast = e.__parse(t, y(y({},
|
|
3409
|
+
var o = i || {};
|
|
3410
|
+
o.formatters;
|
|
3411
|
+
var a = Qn(o, ["formatters"]);
|
|
3412
|
+
this.ast = e.__parse(t, y(y({}, a), { locale: this.resolvedLocale }));
|
|
3411
3413
|
} else
|
|
3412
3414
|
this.ast = t;
|
|
3413
3415
|
if (!Array.isArray(this.ast))
|
|
3414
3416
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3415
|
-
this.formats =
|
|
3417
|
+
this.formats = Ur(e.formats, r), this.formatters = i && i.formatters || Dr(this.formatterCache);
|
|
3416
3418
|
}
|
|
3417
3419
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3418
3420
|
get: function() {
|
|
@@ -3422,10 +3424,10 @@ var Zt = (
|
|
|
3422
3424
|
configurable: !0
|
|
3423
3425
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3424
3426
|
if (typeof Intl.Locale != "undefined") {
|
|
3425
|
-
var
|
|
3426
|
-
return
|
|
3427
|
+
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3428
|
+
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3427
3429
|
}
|
|
3428
|
-
}, e.__parse =
|
|
3430
|
+
}, e.__parse = Lr, e.formats = {
|
|
3429
3431
|
number: {
|
|
3430
3432
|
integer: {
|
|
3431
3433
|
maximumFractionDigits: 0
|
|
@@ -3486,122 +3488,122 @@ var Zt = (
|
|
|
3486
3488
|
}, e;
|
|
3487
3489
|
}()
|
|
3488
3490
|
);
|
|
3489
|
-
function
|
|
3491
|
+
function Gr(e, t) {
|
|
3490
3492
|
if (t == null)
|
|
3491
3493
|
return;
|
|
3492
3494
|
if (t in e)
|
|
3493
3495
|
return e[t];
|
|
3494
|
-
const
|
|
3495
|
-
let
|
|
3496
|
-
for (let i = 0; i <
|
|
3497
|
-
if (typeof
|
|
3496
|
+
const n = t.split(".");
|
|
3497
|
+
let r = e;
|
|
3498
|
+
for (let i = 0; i < n.length; i++)
|
|
3499
|
+
if (typeof r == "object") {
|
|
3498
3500
|
if (i > 0) {
|
|
3499
|
-
const s =
|
|
3500
|
-
if (s in
|
|
3501
|
-
|
|
3501
|
+
const s = n.slice(i, n.length).join(".");
|
|
3502
|
+
if (s in r) {
|
|
3503
|
+
r = r[s];
|
|
3502
3504
|
break;
|
|
3503
3505
|
}
|
|
3504
3506
|
}
|
|
3505
|
-
|
|
3507
|
+
r = r[n[i]];
|
|
3506
3508
|
} else
|
|
3507
|
-
|
|
3508
|
-
return
|
|
3509
|
+
r = void 0;
|
|
3510
|
+
return r;
|
|
3509
3511
|
}
|
|
3510
|
-
const P = {},
|
|
3512
|
+
const P = {}, Fr = (e, t, n) => n && (t in P || (P[t] = {}), e in P[t] || (P[t][e] = n), n), Zt = (e, t) => {
|
|
3511
3513
|
if (t == null)
|
|
3512
3514
|
return;
|
|
3513
3515
|
if (t in P && e in P[t])
|
|
3514
3516
|
return P[t][e];
|
|
3515
|
-
const
|
|
3516
|
-
for (let
|
|
3517
|
-
const i = r
|
|
3517
|
+
const n = re(t);
|
|
3518
|
+
for (let r = 0; r < n.length; r++) {
|
|
3519
|
+
const i = n[r], s = kr(i, e);
|
|
3518
3520
|
if (s)
|
|
3519
|
-
return
|
|
3521
|
+
return Fr(e, t, s);
|
|
3520
3522
|
}
|
|
3521
3523
|
};
|
|
3522
|
-
let
|
|
3523
|
-
const
|
|
3524
|
-
function
|
|
3525
|
-
return
|
|
3524
|
+
let ze;
|
|
3525
|
+
const ne = be({});
|
|
3526
|
+
function jr(e) {
|
|
3527
|
+
return ze[e] || null;
|
|
3526
3528
|
}
|
|
3527
|
-
function
|
|
3528
|
-
return e in
|
|
3529
|
+
function Qt(e) {
|
|
3530
|
+
return e in ze;
|
|
3529
3531
|
}
|
|
3530
|
-
function
|
|
3531
|
-
if (!
|
|
3532
|
+
function kr(e, t) {
|
|
3533
|
+
if (!Qt(e))
|
|
3532
3534
|
return null;
|
|
3533
|
-
const
|
|
3534
|
-
return
|
|
3535
|
+
const n = jr(e);
|
|
3536
|
+
return Gr(n, t);
|
|
3535
3537
|
}
|
|
3536
|
-
function
|
|
3538
|
+
function Vr(e) {
|
|
3537
3539
|
if (e == null)
|
|
3538
3540
|
return;
|
|
3539
|
-
const t =
|
|
3540
|
-
for (let
|
|
3541
|
-
const
|
|
3542
|
-
if (
|
|
3543
|
-
return
|
|
3541
|
+
const t = re(e);
|
|
3542
|
+
for (let n = 0; n < t.length; n++) {
|
|
3543
|
+
const r = t[n];
|
|
3544
|
+
if (Qt(r))
|
|
3545
|
+
return r;
|
|
3544
3546
|
}
|
|
3545
3547
|
}
|
|
3546
|
-
function
|
|
3547
|
-
delete P[e],
|
|
3548
|
+
function Jt(e, ...t) {
|
|
3549
|
+
delete P[e], ne.update((n) => (n[e] = Zn.all([n[e] || {}, ...t]), n));
|
|
3548
3550
|
}
|
|
3549
3551
|
z(
|
|
3550
|
-
[
|
|
3552
|
+
[ne],
|
|
3551
3553
|
([e]) => Object.keys(e)
|
|
3552
3554
|
);
|
|
3553
|
-
|
|
3555
|
+
ne.subscribe((e) => ze = e);
|
|
3554
3556
|
const le = {};
|
|
3555
|
-
function
|
|
3557
|
+
function Xr(e, t) {
|
|
3556
3558
|
le[e].delete(t), le[e].size === 0 && delete le[e];
|
|
3557
3559
|
}
|
|
3558
|
-
function
|
|
3560
|
+
function qt(e) {
|
|
3559
3561
|
return le[e];
|
|
3560
3562
|
}
|
|
3561
|
-
function
|
|
3562
|
-
return
|
|
3563
|
-
const
|
|
3564
|
-
return [t,
|
|
3563
|
+
function zr(e) {
|
|
3564
|
+
return re(e).map((t) => {
|
|
3565
|
+
const n = qt(t);
|
|
3566
|
+
return [t, n ? [...n] : []];
|
|
3565
3567
|
}).filter(([, t]) => t.length > 0);
|
|
3566
3568
|
}
|
|
3567
3569
|
function ce(e) {
|
|
3568
|
-
return e == null ? !1 :
|
|
3570
|
+
return e == null ? !1 : re(e).some(
|
|
3569
3571
|
(t) => {
|
|
3570
|
-
var
|
|
3571
|
-
return (
|
|
3572
|
+
var n;
|
|
3573
|
+
return (n = qt(t)) == null ? void 0 : n.size;
|
|
3572
3574
|
}
|
|
3573
3575
|
);
|
|
3574
3576
|
}
|
|
3575
|
-
function
|
|
3577
|
+
function Wr(e, t) {
|
|
3576
3578
|
return Promise.all(
|
|
3577
|
-
t.map((
|
|
3578
|
-
).then((
|
|
3579
|
+
t.map((r) => (Xr(e, r), r().then((i) => i.default || i)))
|
|
3580
|
+
).then((r) => Jt(e, ...r));
|
|
3579
3581
|
}
|
|
3580
3582
|
const Z = {};
|
|
3581
|
-
function
|
|
3583
|
+
function Yt(e) {
|
|
3582
3584
|
if (!ce(e))
|
|
3583
3585
|
return e in Z ? Z[e] : Promise.resolve();
|
|
3584
|
-
const t =
|
|
3586
|
+
const t = zr(e);
|
|
3585
3587
|
return Z[e] = Promise.all(
|
|
3586
3588
|
t.map(
|
|
3587
|
-
([
|
|
3589
|
+
([n, r]) => Wr(n, r)
|
|
3588
3590
|
)
|
|
3589
3591
|
).then(() => {
|
|
3590
3592
|
if (ce(e))
|
|
3591
|
-
return
|
|
3593
|
+
return Yt(e);
|
|
3592
3594
|
delete Z[e];
|
|
3593
3595
|
}), Z[e];
|
|
3594
3596
|
}
|
|
3595
|
-
var
|
|
3596
|
-
var
|
|
3597
|
-
for (var
|
|
3598
|
-
|
|
3599
|
-
if (e != null &&
|
|
3600
|
-
for (var
|
|
3601
|
-
t.indexOf(
|
|
3602
|
-
return
|
|
3597
|
+
var ft = Object.getOwnPropertySymbols, Zr = Object.prototype.hasOwnProperty, Qr = Object.prototype.propertyIsEnumerable, Jr = (e, t) => {
|
|
3598
|
+
var n = {};
|
|
3599
|
+
for (var r in e)
|
|
3600
|
+
Zr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3601
|
+
if (e != null && ft)
|
|
3602
|
+
for (var r of ft(e))
|
|
3603
|
+
t.indexOf(r) < 0 && Qr.call(e, r) && (n[r] = e[r]);
|
|
3604
|
+
return n;
|
|
3603
3605
|
};
|
|
3604
|
-
const
|
|
3606
|
+
const qr = {
|
|
3605
3607
|
number: {
|
|
3606
3608
|
scientific: { notation: "scientific" },
|
|
3607
3609
|
engineering: { notation: "engineering" },
|
|
@@ -3631,58 +3633,58 @@ const qn = {
|
|
|
3631
3633
|
}
|
|
3632
3634
|
}
|
|
3633
3635
|
};
|
|
3634
|
-
function
|
|
3636
|
+
function Yr({ locale: e, id: t }) {
|
|
3635
3637
|
console.warn(
|
|
3636
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3638
|
+
`[svelte-i18n] The message "${t}" was not found in "${re(
|
|
3637
3639
|
e
|
|
3638
3640
|
).join('", "')}".${ce(L()) ? `
|
|
3639
3641
|
|
|
3640
3642
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3641
3643
|
);
|
|
3642
3644
|
}
|
|
3643
|
-
const
|
|
3645
|
+
const Kr = {
|
|
3644
3646
|
fallbackLocale: null,
|
|
3645
3647
|
loadingDelay: 200,
|
|
3646
|
-
formats:
|
|
3648
|
+
formats: qr,
|
|
3647
3649
|
warnOnMissingMessages: !0,
|
|
3648
3650
|
handleMissingMessage: void 0,
|
|
3649
3651
|
ignoreTag: !0
|
|
3650
|
-
}, Q =
|
|
3652
|
+
}, Q = Kr;
|
|
3651
3653
|
function V() {
|
|
3652
3654
|
return Q;
|
|
3653
3655
|
}
|
|
3654
3656
|
function ei(e) {
|
|
3655
|
-
const t = e, { formats:
|
|
3657
|
+
const t = e, { formats: n } = t, r = Jr(t, ["formats"]);
|
|
3656
3658
|
let i = e.fallbackLocale;
|
|
3657
3659
|
if (e.initialLocale)
|
|
3658
3660
|
try {
|
|
3659
|
-
|
|
3661
|
+
Wt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3660
3662
|
} catch (s) {
|
|
3661
3663
|
console.warn(
|
|
3662
3664
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3663
3665
|
);
|
|
3664
3666
|
}
|
|
3665
|
-
return
|
|
3667
|
+
return r.warnOnMissingMessages && (delete r.warnOnMissingMessages, r.handleMissingMessage == null ? r.handleMissingMessage = Yr : console.warn(
|
|
3666
3668
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3667
|
-
)), Object.assign(Q,
|
|
3668
|
-
}
|
|
3669
|
-
const Ce =
|
|
3670
|
-
var ti = Object.defineProperty,
|
|
3671
|
-
for (var
|
|
3672
|
-
ii.call(t,
|
|
3673
|
-
if (
|
|
3674
|
-
for (var
|
|
3675
|
-
si.call(t,
|
|
3669
|
+
)), Object.assign(Q, r, { initialLocale: i }), n && ("number" in n && Object.assign(Q.formats.number, n.number), "date" in n && Object.assign(Q.formats.date, n.date), "time" in n && Object.assign(Q.formats.time, n.time)), M.set(i);
|
|
3670
|
+
}
|
|
3671
|
+
const Ce = be(!1);
|
|
3672
|
+
var ti = Object.defineProperty, ni = Object.defineProperties, ri = Object.getOwnPropertyDescriptors, ct = Object.getOwnPropertySymbols, ii = Object.prototype.hasOwnProperty, si = Object.prototype.propertyIsEnumerable, mt = (e, t, n) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, oi = (e, t) => {
|
|
3673
|
+
for (var n in t)
|
|
3674
|
+
ii.call(t, n) && mt(e, n, t[n]);
|
|
3675
|
+
if (ct)
|
|
3676
|
+
for (var n of ct(t))
|
|
3677
|
+
si.call(t, n) && mt(e, n, t[n]);
|
|
3676
3678
|
return e;
|
|
3677
|
-
}, ai = (e, t) =>
|
|
3679
|
+
}, ai = (e, t) => ni(e, ri(t));
|
|
3678
3680
|
let je;
|
|
3679
|
-
const me =
|
|
3680
|
-
function
|
|
3681
|
-
return e.split("-").map((t,
|
|
3681
|
+
const me = be(null);
|
|
3682
|
+
function dt(e) {
|
|
3683
|
+
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3682
3684
|
}
|
|
3683
|
-
function
|
|
3684
|
-
const
|
|
3685
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
3685
|
+
function re(e, t = V().fallbackLocale) {
|
|
3686
|
+
const n = dt(e);
|
|
3687
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...dt(t)])] : n;
|
|
3686
3688
|
}
|
|
3687
3689
|
function L() {
|
|
3688
3690
|
return je != null ? je : void 0;
|
|
@@ -3691,16 +3693,16 @@ me.subscribe((e) => {
|
|
|
3691
3693
|
je = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3692
3694
|
});
|
|
3693
3695
|
const ui = (e) => {
|
|
3694
|
-
if (e &&
|
|
3696
|
+
if (e && Vr(e) && ce(e)) {
|
|
3695
3697
|
const { loadingDelay: t } = V();
|
|
3696
|
-
let
|
|
3697
|
-
return typeof window != "undefined" && L() != null && t ?
|
|
3698
|
+
let n;
|
|
3699
|
+
return typeof window != "undefined" && L() != null && t ? n = window.setTimeout(
|
|
3698
3700
|
() => Ce.set(!0),
|
|
3699
3701
|
t
|
|
3700
|
-
) : Ce.set(!0),
|
|
3702
|
+
) : Ce.set(!0), Yt(e).then(() => {
|
|
3701
3703
|
me.set(e);
|
|
3702
3704
|
}).finally(() => {
|
|
3703
|
-
clearTimeout(
|
|
3705
|
+
clearTimeout(n), Ce.set(!1);
|
|
3704
3706
|
});
|
|
3705
3707
|
}
|
|
3706
3708
|
return me.set(e);
|
|
@@ -3708,106 +3710,106 @@ const ui = (e) => {
|
|
|
3708
3710
|
set: ui
|
|
3709
3711
|
}), _e = (e) => {
|
|
3710
3712
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3711
|
-
return (
|
|
3712
|
-
const i = JSON.stringify(
|
|
3713
|
-
return i in t ? t[i] : t[i] = e(
|
|
3713
|
+
return (r) => {
|
|
3714
|
+
const i = JSON.stringify(r);
|
|
3715
|
+
return i in t ? t[i] : t[i] = e(r);
|
|
3714
3716
|
};
|
|
3715
3717
|
};
|
|
3716
|
-
var hi = Object.defineProperty, de = Object.getOwnPropertySymbols,
|
|
3717
|
-
for (var
|
|
3718
|
-
|
|
3718
|
+
var hi = Object.defineProperty, de = Object.getOwnPropertySymbols, Kt = Object.prototype.hasOwnProperty, en = Object.prototype.propertyIsEnumerable, bt = (e, t, n) => t in e ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, We = (e, t) => {
|
|
3719
|
+
for (var n in t || (t = {}))
|
|
3720
|
+
Kt.call(t, n) && bt(e, n, t[n]);
|
|
3719
3721
|
if (de)
|
|
3720
|
-
for (var
|
|
3721
|
-
|
|
3722
|
+
for (var n of de(t))
|
|
3723
|
+
en.call(t, n) && bt(e, n, t[n]);
|
|
3722
3724
|
return e;
|
|
3723
3725
|
}, W = (e, t) => {
|
|
3724
|
-
var
|
|
3725
|
-
for (var
|
|
3726
|
-
|
|
3726
|
+
var n = {};
|
|
3727
|
+
for (var r in e)
|
|
3728
|
+
Kt.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3727
3729
|
if (e != null && de)
|
|
3728
|
-
for (var
|
|
3729
|
-
t.indexOf(
|
|
3730
|
-
return
|
|
3730
|
+
for (var r of de(e))
|
|
3731
|
+
t.indexOf(r) < 0 && en.call(e, r) && (n[r] = e[r]);
|
|
3732
|
+
return n;
|
|
3731
3733
|
};
|
|
3732
3734
|
const K = (e, t) => {
|
|
3733
|
-
const { formats:
|
|
3734
|
-
if (e in
|
|
3735
|
-
return
|
|
3735
|
+
const { formats: n } = V();
|
|
3736
|
+
if (e in n && t in n[e])
|
|
3737
|
+
return n[e][t];
|
|
3736
3738
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3737
3739
|
}, li = _e(
|
|
3738
3740
|
(e) => {
|
|
3739
|
-
var t = e, { locale:
|
|
3740
|
-
if (
|
|
3741
|
+
var t = e, { locale: n, format: r } = t, i = W(t, ["locale", "format"]);
|
|
3742
|
+
if (n == null)
|
|
3741
3743
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3742
|
-
return
|
|
3744
|
+
return r && (i = K("number", r)), new Intl.NumberFormat(n, i);
|
|
3743
3745
|
}
|
|
3744
3746
|
), fi = _e(
|
|
3745
3747
|
(e) => {
|
|
3746
|
-
var t = e, { locale:
|
|
3747
|
-
if (
|
|
3748
|
+
var t = e, { locale: n, format: r } = t, i = W(t, ["locale", "format"]);
|
|
3749
|
+
if (n == null)
|
|
3748
3750
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3749
|
-
return
|
|
3751
|
+
return r ? i = K("date", r) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3750
3752
|
}
|
|
3751
3753
|
), ci = _e(
|
|
3752
3754
|
(e) => {
|
|
3753
|
-
var t = e, { locale:
|
|
3754
|
-
if (
|
|
3755
|
+
var t = e, { locale: n, format: r } = t, i = W(t, ["locale", "format"]);
|
|
3756
|
+
if (n == null)
|
|
3755
3757
|
throw new Error(
|
|
3756
3758
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3757
3759
|
);
|
|
3758
|
-
return
|
|
3760
|
+
return r ? i = K("time", r) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3759
3761
|
}
|
|
3760
3762
|
), mi = (e = {}) => {
|
|
3761
3763
|
var t = e, {
|
|
3762
|
-
locale:
|
|
3763
|
-
} = t,
|
|
3764
|
+
locale: n = L()
|
|
3765
|
+
} = t, r = W(t, [
|
|
3764
3766
|
"locale"
|
|
3765
3767
|
]);
|
|
3766
|
-
return li(
|
|
3768
|
+
return li(We({ locale: n }, r));
|
|
3767
3769
|
}, di = (e = {}) => {
|
|
3768
3770
|
var t = e, {
|
|
3769
|
-
locale:
|
|
3770
|
-
} = t,
|
|
3771
|
+
locale: n = L()
|
|
3772
|
+
} = t, r = W(t, [
|
|
3771
3773
|
"locale"
|
|
3772
3774
|
]);
|
|
3773
|
-
return fi(
|
|
3774
|
-
},
|
|
3775
|
+
return fi(We({ locale: n }, r));
|
|
3776
|
+
}, bi = (e = {}) => {
|
|
3775
3777
|
var t = e, {
|
|
3776
|
-
locale:
|
|
3777
|
-
} = t,
|
|
3778
|
+
locale: n = L()
|
|
3779
|
+
} = t, r = W(t, [
|
|
3778
3780
|
"locale"
|
|
3779
3781
|
]);
|
|
3780
|
-
return ci(
|
|
3781
|
-
},
|
|
3782
|
+
return ci(We({ locale: n }, r));
|
|
3783
|
+
}, pi = _e(
|
|
3782
3784
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3783
|
-
(e, t = L()) => new
|
|
3785
|
+
(e, t = L()) => new Wt(e, t, V().formats, {
|
|
3784
3786
|
ignoreTag: V().ignoreTag
|
|
3785
3787
|
})
|
|
3786
3788
|
), gi = (e, t = {}) => {
|
|
3787
|
-
var
|
|
3788
|
-
let
|
|
3789
|
-
typeof e == "object" && (
|
|
3789
|
+
var n, r, i, s;
|
|
3790
|
+
let o = t;
|
|
3791
|
+
typeof e == "object" && (o = e, e = o.id);
|
|
3790
3792
|
const {
|
|
3791
|
-
values:
|
|
3793
|
+
values: a,
|
|
3792
3794
|
locale: l = L(),
|
|
3793
3795
|
default: u
|
|
3794
|
-
} =
|
|
3796
|
+
} = o;
|
|
3795
3797
|
if (l == null)
|
|
3796
3798
|
throw new Error(
|
|
3797
3799
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3798
3800
|
);
|
|
3799
|
-
let h =
|
|
3801
|
+
let h = Zt(e, l);
|
|
3800
3802
|
if (!h)
|
|
3801
|
-
h = (s = (i = (
|
|
3803
|
+
h = (s = (i = (r = (n = V()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3802
3804
|
else if (typeof h != "string")
|
|
3803
3805
|
return console.warn(
|
|
3804
3806
|
`[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.`
|
|
3805
3807
|
), h;
|
|
3806
|
-
if (!
|
|
3808
|
+
if (!a)
|
|
3807
3809
|
return h;
|
|
3808
3810
|
let c = h;
|
|
3809
3811
|
try {
|
|
3810
|
-
c =
|
|
3812
|
+
c = pi(h, l).format(a);
|
|
3811
3813
|
} catch (m) {
|
|
3812
3814
|
m instanceof Error && console.warn(
|
|
3813
3815
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3815,20 +3817,20 @@ const K = (e, t) => {
|
|
|
3815
3817
|
);
|
|
3816
3818
|
}
|
|
3817
3819
|
return c;
|
|
3818
|
-
}, _i = (e, t) =>
|
|
3820
|
+
}, _i = (e, t) => bi(t).format(e), yi = (e, t) => di(t).format(e), xi = (e, t) => mi(t).format(e), Ei = (e, t = L()) => Zt(e, t), vi = z([M, ne], () => gi);
|
|
3819
3821
|
z([M], () => _i);
|
|
3820
3822
|
z([M], () => yi);
|
|
3821
3823
|
z([M], () => xi);
|
|
3822
|
-
z([M,
|
|
3823
|
-
function
|
|
3824
|
-
|
|
3824
|
+
z([M, ne], () => Ei);
|
|
3825
|
+
function pt(e, t) {
|
|
3826
|
+
Jt(e, t);
|
|
3825
3827
|
}
|
|
3826
3828
|
function Hi(e) {
|
|
3827
3829
|
ei({
|
|
3828
3830
|
fallbackLocale: "en"
|
|
3829
3831
|
}), M.set(e);
|
|
3830
3832
|
}
|
|
3831
|
-
const
|
|
3833
|
+
const gt = {
|
|
3832
3834
|
en: {
|
|
3833
3835
|
header: {
|
|
3834
3836
|
general: "Cashier",
|
|
@@ -3853,153 +3855,153 @@ const _t = {
|
|
|
3853
3855
|
};
|
|
3854
3856
|
function Bi(e, t) {
|
|
3855
3857
|
if (e) {
|
|
3856
|
-
const
|
|
3857
|
-
|
|
3858
|
+
const n = document.createElement("style");
|
|
3859
|
+
n.innerHTML = t, e.appendChild(n);
|
|
3858
3860
|
}
|
|
3859
3861
|
}
|
|
3860
3862
|
function Ti(e, t) {
|
|
3861
|
-
const
|
|
3862
|
-
fetch(
|
|
3863
|
+
const n = new URL(t);
|
|
3864
|
+
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
3863
3865
|
const i = document.createElement("style");
|
|
3864
|
-
i.innerHTML =
|
|
3865
|
-
}).catch((
|
|
3866
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
3866
|
+
i.innerHTML = r, e && e.appendChild(i);
|
|
3867
|
+
}).catch((r) => {
|
|
3868
|
+
console.error("There was an error while trying to load client styling from URL", r);
|
|
3867
3869
|
});
|
|
3868
3870
|
}
|
|
3869
|
-
function wi(e, t,
|
|
3871
|
+
function wi(e, t, n) {
|
|
3870
3872
|
if (window.emMessageBus) {
|
|
3871
|
-
const
|
|
3873
|
+
const r = document.createElement("style");
|
|
3872
3874
|
window.emMessageBus.subscribe(t, (i) => {
|
|
3873
|
-
|
|
3875
|
+
r.innerHTML = i, e && e.appendChild(r);
|
|
3874
3876
|
});
|
|
3875
3877
|
}
|
|
3876
3878
|
}
|
|
3877
3879
|
function Si(e) {
|
|
3878
|
-
|
|
3880
|
+
cn(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}");
|
|
3879
3881
|
}
|
|
3880
|
-
const Ai = (e) => ({}),
|
|
3881
|
-
function
|
|
3882
|
-
let t,
|
|
3882
|
+
const Ai = (e) => ({}), _t = (e) => ({}), Oi = (e) => ({}), yt = (e) => ({}), Pi = (e) => ({}), xt = (e) => ({});
|
|
3883
|
+
function Et(e) {
|
|
3884
|
+
let t, n, r;
|
|
3883
3885
|
return {
|
|
3884
3886
|
c() {
|
|
3885
3887
|
t = X("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.5632 3.47782C12.4787 3.50138 12.3362 3.57505 12.2465 3.64153C12.1567 3.70806 10.8069 5.04216 9.24694 6.60626C6.11944 9.74192 6.25999 9.58204 6.25999 10.0037C6.25999 10.4243 6.13093 10.2784 9.34296 13.4903C12.4449 16.5921 12.356 16.5116 12.7278 16.5556C13.1855 16.6098 13.6413 16.2585 13.7301 15.783C13.7612 15.6164 13.7212 15.3395 13.6437 15.1847C13.6158 15.129 12.451 13.9396 11.0553 12.5417L8.51768 10L11.0553 7.45837C12.451 6.06048 13.6158 4.87114 13.6437 4.81544C13.7729 4.55751 13.7703 4.2006 13.6374 3.94274C13.4469 3.5731 12.9668 3.36532 12.5632 3.47782Z" fill="#111111"></path></svg>', te(t, "class", "CashierHeaderLeftButton");
|
|
3886
3888
|
},
|
|
3887
3889
|
m(i, s) {
|
|
3888
|
-
I(i, t, s),
|
|
3890
|
+
I(i, t, s), n || (r = At(
|
|
3889
3891
|
t,
|
|
3890
3892
|
"click",
|
|
3891
3893
|
/*back*/
|
|
3892
3894
|
e[6]
|
|
3893
|
-
),
|
|
3895
|
+
), n = !0);
|
|
3894
3896
|
},
|
|
3895
3897
|
p: T,
|
|
3896
3898
|
d(i) {
|
|
3897
|
-
i && C(t),
|
|
3899
|
+
i && C(t), n = !1, r();
|
|
3898
3900
|
}
|
|
3899
3901
|
};
|
|
3900
3902
|
}
|
|
3901
3903
|
function Ci(e) {
|
|
3902
|
-
let t,
|
|
3904
|
+
let t, n = (
|
|
3903
3905
|
/*backButton*/
|
|
3904
|
-
e[1] &&
|
|
3906
|
+
e[1] && Et(e)
|
|
3905
3907
|
);
|
|
3906
3908
|
return {
|
|
3907
3909
|
c() {
|
|
3908
|
-
|
|
3910
|
+
n && n.c(), t = St();
|
|
3909
3911
|
},
|
|
3910
|
-
m(
|
|
3911
|
-
|
|
3912
|
+
m(r, i) {
|
|
3913
|
+
n && n.m(r, i), I(r, t, i);
|
|
3912
3914
|
},
|
|
3913
|
-
p(
|
|
3915
|
+
p(r, i) {
|
|
3914
3916
|
/*backButton*/
|
|
3915
|
-
|
|
3917
|
+
r[1] ? n ? n.p(r, i) : (n = Et(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
|
|
3916
3918
|
},
|
|
3917
|
-
d(
|
|
3918
|
-
|
|
3919
|
+
d(r) {
|
|
3920
|
+
r && C(t), n && n.d(r);
|
|
3919
3921
|
}
|
|
3920
3922
|
};
|
|
3921
3923
|
}
|
|
3922
3924
|
function Li(e) {
|
|
3923
|
-
let t,
|
|
3925
|
+
let t, n = (
|
|
3924
3926
|
/*$_*/
|
|
3925
3927
|
e[4](
|
|
3926
3928
|
/*titleText*/
|
|
3927
3929
|
e[2]
|
|
3928
3930
|
) + ""
|
|
3929
|
-
),
|
|
3931
|
+
), r;
|
|
3930
3932
|
return {
|
|
3931
3933
|
c() {
|
|
3932
|
-
t = X("span"),
|
|
3934
|
+
t = X("span"), r = Ve(n), te(t, "class", "CashierHeaderTitle");
|
|
3933
3935
|
},
|
|
3934
3936
|
m(i, s) {
|
|
3935
|
-
I(i, t, s), fe(t,
|
|
3937
|
+
I(i, t, s), fe(t, r);
|
|
3936
3938
|
},
|
|
3937
3939
|
p(i, s) {
|
|
3938
3940
|
s & /*$_, titleText*/
|
|
3939
|
-
20 &&
|
|
3941
|
+
20 && n !== (n = /*$_*/
|
|
3940
3942
|
i[4](
|
|
3941
3943
|
/*titleText*/
|
|
3942
3944
|
i[2]
|
|
3943
|
-
) + "") &&
|
|
3945
|
+
) + "") && pn(r, n);
|
|
3944
3946
|
},
|
|
3945
3947
|
d(i) {
|
|
3946
3948
|
i && C(t);
|
|
3947
3949
|
}
|
|
3948
3950
|
};
|
|
3949
3951
|
}
|
|
3950
|
-
function
|
|
3951
|
-
let t,
|
|
3952
|
+
function vt(e) {
|
|
3953
|
+
let t, n, r;
|
|
3952
3954
|
return {
|
|
3953
3955
|
c() {
|
|
3954
3956
|
t = X("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13" fill="none"><path d="M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z" fill="#111111"></path></svg>', te(t, "class", "CashierHeaderRightButton");
|
|
3955
3957
|
},
|
|
3956
3958
|
m(i, s) {
|
|
3957
|
-
I(i, t, s),
|
|
3959
|
+
I(i, t, s), n || (r = At(
|
|
3958
3960
|
t,
|
|
3959
3961
|
"click",
|
|
3960
3962
|
/*close*/
|
|
3961
3963
|
e[5]
|
|
3962
|
-
),
|
|
3964
|
+
), n = !0);
|
|
3963
3965
|
},
|
|
3964
3966
|
p: T,
|
|
3965
3967
|
d(i) {
|
|
3966
|
-
i && C(t),
|
|
3968
|
+
i && C(t), n = !1, r();
|
|
3967
3969
|
}
|
|
3968
3970
|
};
|
|
3969
3971
|
}
|
|
3970
3972
|
function Ni(e) {
|
|
3971
|
-
let t,
|
|
3973
|
+
let t, n = (
|
|
3972
3974
|
/*closeButton*/
|
|
3973
|
-
e[3] &&
|
|
3975
|
+
e[3] && vt(e)
|
|
3974
3976
|
);
|
|
3975
3977
|
return {
|
|
3976
3978
|
c() {
|
|
3977
|
-
|
|
3979
|
+
n && n.c(), t = St();
|
|
3978
3980
|
},
|
|
3979
|
-
m(
|
|
3980
|
-
|
|
3981
|
+
m(r, i) {
|
|
3982
|
+
n && n.m(r, i), I(r, t, i);
|
|
3981
3983
|
},
|
|
3982
|
-
p(
|
|
3984
|
+
p(r, i) {
|
|
3983
3985
|
/*closeButton*/
|
|
3984
|
-
|
|
3986
|
+
r[3] ? n ? n.p(r, i) : (n = vt(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
|
|
3985
3987
|
},
|
|
3986
|
-
d(
|
|
3987
|
-
|
|
3988
|
+
d(r) {
|
|
3989
|
+
r && C(t), n && n.d(r);
|
|
3988
3990
|
}
|
|
3989
3991
|
};
|
|
3990
3992
|
}
|
|
3991
3993
|
function Ii(e) {
|
|
3992
|
-
let t,
|
|
3994
|
+
let t, n, r, i;
|
|
3993
3995
|
const s = (
|
|
3994
3996
|
/*#slots*/
|
|
3995
3997
|
e[16].leftButton
|
|
3996
|
-
),
|
|
3998
|
+
), o = xe(
|
|
3997
3999
|
s,
|
|
3998
4000
|
e,
|
|
3999
4001
|
/*$$scope*/
|
|
4000
4002
|
e[15],
|
|
4001
|
-
|
|
4002
|
-
),
|
|
4003
|
+
xt
|
|
4004
|
+
), a = o || Ci(e), l = (
|
|
4003
4005
|
/*#slots*/
|
|
4004
4006
|
e[16].title
|
|
4005
4007
|
), u = xe(
|
|
@@ -4007,7 +4009,7 @@ function Ii(e) {
|
|
|
4007
4009
|
e,
|
|
4008
4010
|
/*$$scope*/
|
|
4009
4011
|
e[15],
|
|
4010
|
-
|
|
4012
|
+
yt
|
|
4011
4013
|
), h = u || Li(e), c = (
|
|
4012
4014
|
/*#slots*/
|
|
4013
4015
|
e[16].rightButton
|
|
@@ -4016,19 +4018,19 @@ function Ii(e) {
|
|
|
4016
4018
|
e,
|
|
4017
4019
|
/*$$scope*/
|
|
4018
4020
|
e[15],
|
|
4019
|
-
|
|
4021
|
+
_t
|
|
4020
4022
|
), d = m || Ni(e);
|
|
4021
4023
|
return {
|
|
4022
4024
|
c() {
|
|
4023
|
-
t = X("div"),
|
|
4025
|
+
t = X("div"), a.c(), n = et(), h.c(), r = et(), d.c(), te(t, "class", "CashierHeader");
|
|
4024
4026
|
},
|
|
4025
4027
|
m(f, _) {
|
|
4026
|
-
I(f, t, _),
|
|
4028
|
+
I(f, t, _), a.m(t, null), fe(t, n), h.m(t, null), fe(t, r), d.m(t, null), e[17](t), i = !0;
|
|
4027
4029
|
},
|
|
4028
4030
|
p(f, [_]) {
|
|
4029
|
-
|
|
4031
|
+
o ? o.p && (!i || _ & /*$$scope*/
|
|
4030
4032
|
32768) && ve(
|
|
4031
|
-
|
|
4033
|
+
o,
|
|
4032
4034
|
s,
|
|
4033
4035
|
f,
|
|
4034
4036
|
/*$$scope*/
|
|
@@ -4043,9 +4045,9 @@ function Ii(e) {
|
|
|
4043
4045
|
/*$$scope*/
|
|
4044
4046
|
f[15]
|
|
4045
4047
|
),
|
|
4046
|
-
|
|
4047
|
-
) :
|
|
4048
|
-
2) &&
|
|
4048
|
+
xt
|
|
4049
|
+
) : a.p && (!i || _ & /*backButton*/
|
|
4050
|
+
2) && a.p(f, i ? _ : -1), u ? u.p && (!i || _ & /*$$scope*/
|
|
4049
4051
|
32768) && ve(
|
|
4050
4052
|
u,
|
|
4051
4053
|
l,
|
|
@@ -4062,8 +4064,8 @@ function Ii(e) {
|
|
|
4062
4064
|
/*$$scope*/
|
|
4063
4065
|
f[15]
|
|
4064
4066
|
),
|
|
4065
|
-
|
|
4066
|
-
) : h
|
|
4067
|
+
yt
|
|
4068
|
+
) : h.p && (!i || _ & /*$_, titleText*/
|
|
4067
4069
|
20) && h.p(f, i ? _ : -1), m ? m.p && (!i || _ & /*$$scope*/
|
|
4068
4070
|
32768) && ve(
|
|
4069
4071
|
m,
|
|
@@ -4081,36 +4083,36 @@ function Ii(e) {
|
|
|
4081
4083
|
/*$$scope*/
|
|
4082
4084
|
f[15]
|
|
4083
4085
|
),
|
|
4084
|
-
|
|
4085
|
-
) : d
|
|
4086
|
+
_t
|
|
4087
|
+
) : d.p && (!i || _ & /*closeButton*/
|
|
4086
4088
|
8) && d.p(f, i ? _ : -1);
|
|
4087
4089
|
},
|
|
4088
4090
|
i(f) {
|
|
4089
|
-
i || (ae(
|
|
4091
|
+
i || (ae(a, f), ae(h, f), ae(d, f), i = !0);
|
|
4090
4092
|
},
|
|
4091
4093
|
o(f) {
|
|
4092
|
-
Te(
|
|
4094
|
+
Te(a, f), Te(h, f), Te(d, f), i = !1;
|
|
4093
4095
|
},
|
|
4094
4096
|
d(f) {
|
|
4095
|
-
f && C(t),
|
|
4097
|
+
f && C(t), a.d(f), h.d(f), d.d(f), e[17](null);
|
|
4096
4098
|
}
|
|
4097
4099
|
};
|
|
4098
4100
|
}
|
|
4099
|
-
function Mi(e, t,
|
|
4100
|
-
let
|
|
4101
|
-
|
|
4102
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling:
|
|
4101
|
+
function Mi(e, t, n) {
|
|
4102
|
+
let r;
|
|
4103
|
+
fn(e, vi, (g) => n(4, r = g));
|
|
4104
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: o = "" } = t, { clientstylingurl: a = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: d = "" } = t, f, _ = !1, v, A = !1;
|
|
4103
4105
|
const O = () => {
|
|
4104
4106
|
fetch(l).then((g) => g.json()).then((g) => {
|
|
4105
|
-
Object.keys(g).forEach((
|
|
4106
|
-
|
|
4107
|
+
Object.keys(g).forEach((Ze) => {
|
|
4108
|
+
pt(Ze, g[Ze]);
|
|
4107
4109
|
});
|
|
4108
4110
|
}).catch((g) => {
|
|
4109
4111
|
console.log(g);
|
|
4110
4112
|
});
|
|
4111
4113
|
};
|
|
4112
|
-
Object.keys(
|
|
4113
|
-
|
|
4114
|
+
Object.keys(gt).forEach((g) => {
|
|
4115
|
+
pt(g, gt[g]);
|
|
4114
4116
|
});
|
|
4115
4117
|
const H = () => {
|
|
4116
4118
|
Hi(c);
|
|
@@ -4119,27 +4121,27 @@ function Mi(e, t, r) {
|
|
|
4119
4121
|
}, S = () => {
|
|
4120
4122
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4121
4123
|
}, R = () => {
|
|
4122
|
-
|
|
4124
|
+
n(1, _ = !!u && u !== "false");
|
|
4123
4125
|
}, ie = () => {
|
|
4124
|
-
|
|
4125
|
-
},
|
|
4126
|
-
|
|
4126
|
+
n(3, A = !!m && m !== "false");
|
|
4127
|
+
}, tn = () => {
|
|
4128
|
+
n(2, v = h || "header.general");
|
|
4127
4129
|
};
|
|
4128
|
-
|
|
4130
|
+
yn(() => () => {
|
|
4129
4131
|
});
|
|
4130
|
-
function
|
|
4132
|
+
function nn(g) {
|
|
4131
4133
|
Le[g ? "unshift" : "push"](() => {
|
|
4132
|
-
f = g,
|
|
4134
|
+
f = g, n(0, f);
|
|
4133
4135
|
});
|
|
4134
4136
|
}
|
|
4135
4137
|
return e.$$set = (g) => {
|
|
4136
|
-
"clientstyling" in g &&
|
|
4138
|
+
"clientstyling" in g && n(7, o = g.clientstyling), "clientstylingurl" in g && n(8, a = g.clientstylingurl), "translationurl" in g && n(9, l = g.translationurl), "showbackbutton" in g && n(10, u = g.showbackbutton), "title" in g && n(11, h = g.title), "lang" in g && n(12, c = g.lang), "showclosebutton" in g && n(13, m = g.showclosebutton), "mbsource" in g && n(14, d = g.mbsource), "$$scope" in g && n(15, s = g.$$scope);
|
|
4137
4139
|
}, e.$$.update = () => {
|
|
4138
4140
|
e.$$.dirty & /*lang*/
|
|
4139
4141
|
4096 && c && H(), e.$$.dirty & /*lang, title*/
|
|
4140
|
-
6144 && c && h &&
|
|
4141
|
-
129 &&
|
|
4142
|
-
257 &&
|
|
4142
|
+
6144 && c && h && tn(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4143
|
+
129 && o && f && Bi(f, o), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4144
|
+
257 && a && f && Ti(f, a), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4143
4145
|
16385 && d && f && wi(f, `${d}.Style`), e.$$.dirty & /*lang, translationurl*/
|
|
4144
4146
|
4608 && c && l && O(), e.$$.dirty & /*showbackbutton*/
|
|
4145
4147
|
1024 && u && R(), e.$$.dirty & /*showclosebutton*/
|
|
@@ -4149,11 +4151,11 @@ function Mi(e, t, r) {
|
|
|
4149
4151
|
_,
|
|
4150
4152
|
v,
|
|
4151
4153
|
A,
|
|
4152
|
-
|
|
4154
|
+
r,
|
|
4153
4155
|
N,
|
|
4154
4156
|
S,
|
|
4155
|
-
a,
|
|
4156
4157
|
o,
|
|
4158
|
+
a,
|
|
4157
4159
|
l,
|
|
4158
4160
|
u,
|
|
4159
4161
|
h,
|
|
@@ -4162,17 +4164,17 @@ function Mi(e, t, r) {
|
|
|
4162
4164
|
d,
|
|
4163
4165
|
s,
|
|
4164
4166
|
i,
|
|
4165
|
-
|
|
4167
|
+
nn
|
|
4166
4168
|
];
|
|
4167
4169
|
}
|
|
4168
|
-
class Ri extends
|
|
4170
|
+
class Ri extends Pn {
|
|
4169
4171
|
constructor(t) {
|
|
4170
|
-
super(),
|
|
4172
|
+
super(), An(
|
|
4171
4173
|
this,
|
|
4172
4174
|
t,
|
|
4173
4175
|
Mi,
|
|
4174
4176
|
Ii,
|
|
4175
|
-
|
|
4177
|
+
Bt,
|
|
4176
4178
|
{
|
|
4177
4179
|
clientstyling: 7,
|
|
4178
4180
|
clientstylingurl: 8,
|
|
@@ -4235,7 +4237,7 @@ class Ri extends Pr {
|
|
|
4235
4237
|
this.$$set({ mbsource: t }), w();
|
|
4236
4238
|
}
|
|
4237
4239
|
}
|
|
4238
|
-
|
|
4240
|
+
On(Ri, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4239
4241
|
export {
|
|
4240
4242
|
Ri as default
|
|
4241
4243
|
};
|