@everymatrix/cashier-header 1.53.0 → 1.53.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.
|
@@ -1,88 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
var hr = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var qe = Object.getOwnPropertySymbols;
|
|
4
|
-
var ur = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Ee = (e, t, r) => t in e ? or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
|
-
for (var r in t || (t = {}))
|
|
7
|
-
ur.call(t, r) && Ee(e, r, t[r]);
|
|
8
|
-
if (qe)
|
|
9
|
-
for (var r of qe(t))
|
|
10
|
-
lr.call(t, r) && Ee(e, r, t[r]);
|
|
11
|
-
return e;
|
|
12
|
-
}, Ke = (e, t) => ar(e, hr(t));
|
|
13
|
-
var B = (e, t, r) => Ee(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var s = (l) => {
|
|
16
|
-
try {
|
|
17
|
-
o(r.next(l));
|
|
18
|
-
} catch (h) {
|
|
19
|
-
i(h);
|
|
20
|
-
}
|
|
21
|
-
}, a = (l) => {
|
|
22
|
-
try {
|
|
23
|
-
o(r.throw(l));
|
|
24
|
-
} catch (h) {
|
|
25
|
-
i(h);
|
|
26
|
-
}
|
|
27
|
-
}, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, a);
|
|
28
|
-
o((r = r.apply(e, t)).next());
|
|
29
|
-
});
|
|
30
|
-
function T() {
|
|
1
|
+
function B() {
|
|
31
2
|
}
|
|
32
|
-
function
|
|
3
|
+
function Kt(e, t) {
|
|
33
4
|
for (const r in t) e[r] = t[r];
|
|
34
5
|
return (
|
|
35
6
|
/** @type {T & S} */
|
|
36
7
|
e
|
|
37
8
|
);
|
|
38
9
|
}
|
|
39
|
-
function
|
|
10
|
+
function _t(e) {
|
|
40
11
|
return e();
|
|
41
12
|
}
|
|
42
|
-
function
|
|
13
|
+
function Ze() {
|
|
43
14
|
return /* @__PURE__ */ Object.create(null);
|
|
44
15
|
}
|
|
45
|
-
function
|
|
46
|
-
e.forEach(
|
|
16
|
+
function ee(e) {
|
|
17
|
+
e.forEach(_t);
|
|
47
18
|
}
|
|
48
|
-
function
|
|
19
|
+
function je(e) {
|
|
49
20
|
return typeof e == "function";
|
|
50
21
|
}
|
|
51
|
-
function
|
|
22
|
+
function yt(e, t) {
|
|
52
23
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
53
24
|
}
|
|
54
|
-
function
|
|
25
|
+
function er(e) {
|
|
55
26
|
return Object.keys(e).length === 0;
|
|
56
27
|
}
|
|
57
|
-
function
|
|
28
|
+
function xt(e, ...t) {
|
|
58
29
|
if (e == null) {
|
|
59
30
|
for (const n of t)
|
|
60
31
|
n(void 0);
|
|
61
|
-
return
|
|
32
|
+
return B;
|
|
62
33
|
}
|
|
63
34
|
const r = e.subscribe(...t);
|
|
64
35
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
65
36
|
}
|
|
66
|
-
function
|
|
67
|
-
e.$$.on_destroy.push(
|
|
37
|
+
function tr(e, t, r) {
|
|
38
|
+
e.$$.on_destroy.push(xt(t, r));
|
|
68
39
|
}
|
|
69
|
-
function
|
|
40
|
+
function ye(e, t, r, n) {
|
|
70
41
|
if (e) {
|
|
71
|
-
const i =
|
|
42
|
+
const i = Et(e, t, r, n);
|
|
72
43
|
return e[0](i);
|
|
73
44
|
}
|
|
74
45
|
}
|
|
75
|
-
function
|
|
76
|
-
return e[1] && n ?
|
|
46
|
+
function Et(e, t, r, n) {
|
|
47
|
+
return e[1] && n ? Kt(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
77
48
|
}
|
|
78
|
-
function
|
|
49
|
+
function xe(e, t, r, n) {
|
|
79
50
|
if (e[2] && n) {
|
|
80
51
|
const i = e[2](n(r));
|
|
81
52
|
if (t.dirty === void 0)
|
|
82
53
|
return i;
|
|
83
54
|
if (typeof i == "object") {
|
|
84
|
-
const s = [],
|
|
85
|
-
for (let o = 0; o <
|
|
55
|
+
const s = [], u = Math.max(t.dirty.length, i.length);
|
|
56
|
+
for (let o = 0; o < u; o += 1)
|
|
86
57
|
s[o] = t.dirty[o] | i[o];
|
|
87
58
|
return s;
|
|
88
59
|
}
|
|
@@ -90,13 +61,13 @@ function ve(e, t, r, n) {
|
|
|
90
61
|
}
|
|
91
62
|
return t.dirty;
|
|
92
63
|
}
|
|
93
|
-
function
|
|
64
|
+
function Ee(e, t, r, n, i, s) {
|
|
94
65
|
if (i) {
|
|
95
|
-
const
|
|
96
|
-
e.p(
|
|
66
|
+
const u = Et(t, r, n, s);
|
|
67
|
+
e.p(u, i);
|
|
97
68
|
}
|
|
98
69
|
}
|
|
99
|
-
function
|
|
70
|
+
function ve(e) {
|
|
100
71
|
if (e.ctx.length > 32) {
|
|
101
72
|
const t = [], r = e.ctx.length / 32;
|
|
102
73
|
for (let n = 0; n < r; n++)
|
|
@@ -105,17 +76,17 @@ function Be(e) {
|
|
|
105
76
|
}
|
|
106
77
|
return -1;
|
|
107
78
|
}
|
|
108
|
-
function
|
|
79
|
+
function fe(e, t) {
|
|
109
80
|
e.appendChild(t);
|
|
110
81
|
}
|
|
111
|
-
function
|
|
112
|
-
const n =
|
|
82
|
+
function rr(e, t, r) {
|
|
83
|
+
const n = nr(e);
|
|
113
84
|
if (!n.getElementById(t)) {
|
|
114
85
|
const i = W("style");
|
|
115
|
-
i.id = t, i.textContent = r,
|
|
86
|
+
i.id = t, i.textContent = r, ir(n, i);
|
|
116
87
|
}
|
|
117
88
|
}
|
|
118
|
-
function
|
|
89
|
+
function nr(e) {
|
|
119
90
|
if (!e) return document;
|
|
120
91
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
121
92
|
return t && /** @type {ShadowRoot} */
|
|
@@ -124,45 +95,45 @@ function dr(e) {
|
|
|
124
95
|
t
|
|
125
96
|
) : e.ownerDocument;
|
|
126
97
|
}
|
|
127
|
-
function
|
|
128
|
-
return
|
|
98
|
+
function ir(e, t) {
|
|
99
|
+
return fe(
|
|
129
100
|
/** @type {Document} */
|
|
130
101
|
e.head || e,
|
|
131
102
|
t
|
|
132
103
|
), t.sheet;
|
|
133
104
|
}
|
|
134
|
-
function
|
|
105
|
+
function I(e, t, r) {
|
|
135
106
|
e.insertBefore(t, r || null);
|
|
136
107
|
}
|
|
137
|
-
function
|
|
108
|
+
function O(e) {
|
|
138
109
|
e.parentNode && e.parentNode.removeChild(e);
|
|
139
110
|
}
|
|
140
111
|
function W(e) {
|
|
141
112
|
return document.createElement(e);
|
|
142
113
|
}
|
|
143
|
-
function
|
|
114
|
+
function ke(e) {
|
|
144
115
|
return document.createTextNode(e);
|
|
145
116
|
}
|
|
146
|
-
function
|
|
147
|
-
return
|
|
117
|
+
function Qe() {
|
|
118
|
+
return ke(" ");
|
|
148
119
|
}
|
|
149
|
-
function
|
|
150
|
-
return
|
|
120
|
+
function vt() {
|
|
121
|
+
return ke("");
|
|
151
122
|
}
|
|
152
|
-
function
|
|
123
|
+
function Ht(e, t, r, n) {
|
|
153
124
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
154
125
|
}
|
|
155
|
-
function
|
|
126
|
+
function te(e, t, r) {
|
|
156
127
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
157
128
|
}
|
|
158
|
-
function
|
|
129
|
+
function sr(e) {
|
|
159
130
|
return Array.from(e.childNodes);
|
|
160
131
|
}
|
|
161
|
-
function
|
|
132
|
+
function or(e, t) {
|
|
162
133
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
163
134
|
t);
|
|
164
135
|
}
|
|
165
|
-
function
|
|
136
|
+
function ar(e) {
|
|
166
137
|
const t = {};
|
|
167
138
|
return e.childNodes.forEach(
|
|
168
139
|
/** @param {Element} node */
|
|
@@ -171,95 +142,95 @@ function yr(e) {
|
|
|
171
142
|
}
|
|
172
143
|
), t;
|
|
173
144
|
}
|
|
174
|
-
let
|
|
175
|
-
function
|
|
176
|
-
|
|
145
|
+
let Ve;
|
|
146
|
+
function q(e) {
|
|
147
|
+
Ve = e;
|
|
177
148
|
}
|
|
178
|
-
const
|
|
179
|
-
let
|
|
180
|
-
const
|
|
181
|
-
let
|
|
182
|
-
function
|
|
183
|
-
|
|
149
|
+
const G = [], Pe = [];
|
|
150
|
+
let F = [];
|
|
151
|
+
const Je = [], ur = /* @__PURE__ */ Promise.resolve();
|
|
152
|
+
let Le = !1;
|
|
153
|
+
function hr() {
|
|
154
|
+
Le || (Le = !0, ur.then(S));
|
|
184
155
|
}
|
|
185
|
-
function
|
|
186
|
-
|
|
156
|
+
function Ne(e) {
|
|
157
|
+
F.push(e);
|
|
187
158
|
}
|
|
188
|
-
const
|
|
189
|
-
let
|
|
190
|
-
function
|
|
191
|
-
if (
|
|
159
|
+
const He = /* @__PURE__ */ new Set();
|
|
160
|
+
let U = 0;
|
|
161
|
+
function S() {
|
|
162
|
+
if (U !== 0)
|
|
192
163
|
return;
|
|
193
|
-
const e =
|
|
164
|
+
const e = Ve;
|
|
194
165
|
do {
|
|
195
166
|
try {
|
|
196
|
-
for (;
|
|
197
|
-
const t =
|
|
198
|
-
|
|
167
|
+
for (; U < G.length; ) {
|
|
168
|
+
const t = G[U];
|
|
169
|
+
U++, q(t), lr(t.$$);
|
|
199
170
|
}
|
|
200
171
|
} catch (t) {
|
|
201
|
-
throw
|
|
172
|
+
throw G.length = 0, U = 0, t;
|
|
202
173
|
}
|
|
203
|
-
for (
|
|
204
|
-
for (let t = 0; t <
|
|
205
|
-
const r =
|
|
206
|
-
|
|
174
|
+
for (q(null), G.length = 0, U = 0; Pe.length; ) Pe.pop()();
|
|
175
|
+
for (let t = 0; t < F.length; t += 1) {
|
|
176
|
+
const r = F[t];
|
|
177
|
+
He.has(r) || (He.add(r), r());
|
|
207
178
|
}
|
|
208
|
-
|
|
209
|
-
} while (
|
|
210
|
-
for (;
|
|
211
|
-
|
|
212
|
-
|
|
179
|
+
F.length = 0;
|
|
180
|
+
} while (G.length);
|
|
181
|
+
for (; Je.length; )
|
|
182
|
+
Je.pop()();
|
|
183
|
+
Le = !1, He.clear(), q(e);
|
|
213
184
|
}
|
|
214
|
-
function
|
|
185
|
+
function lr(e) {
|
|
215
186
|
if (e.fragment !== null) {
|
|
216
|
-
e.update(),
|
|
187
|
+
e.update(), ee(e.before_update);
|
|
217
188
|
const t = e.dirty;
|
|
218
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
189
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ne);
|
|
219
190
|
}
|
|
220
191
|
}
|
|
221
|
-
function
|
|
192
|
+
function fr(e) {
|
|
222
193
|
const t = [], r = [];
|
|
223
|
-
|
|
194
|
+
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
224
195
|
}
|
|
225
|
-
const
|
|
226
|
-
let
|
|
227
|
-
function
|
|
228
|
-
e && e.i && (
|
|
196
|
+
const oe = /* @__PURE__ */ new Set();
|
|
197
|
+
let cr;
|
|
198
|
+
function ae(e, t) {
|
|
199
|
+
e && e.i && (oe.delete(e), e.i(t));
|
|
229
200
|
}
|
|
230
|
-
function
|
|
201
|
+
function Be(e, t, r, n) {
|
|
231
202
|
if (e && e.o) {
|
|
232
|
-
if (
|
|
233
|
-
|
|
234
|
-
|
|
203
|
+
if (oe.has(e)) return;
|
|
204
|
+
oe.add(e), cr.c.push(() => {
|
|
205
|
+
oe.delete(e);
|
|
235
206
|
}), e.o(t);
|
|
236
207
|
}
|
|
237
208
|
}
|
|
238
|
-
function
|
|
209
|
+
function mr(e, t, r) {
|
|
239
210
|
const { fragment: n, after_update: i } = e.$$;
|
|
240
|
-
n && n.m(t, r),
|
|
241
|
-
const s = e.$$.on_mount.map(
|
|
242
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
243
|
-
}), i.forEach(
|
|
211
|
+
n && n.m(t, r), Ne(() => {
|
|
212
|
+
const s = e.$$.on_mount.map(_t).filter(je);
|
|
213
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : ee(s), e.$$.on_mount = [];
|
|
214
|
+
}), i.forEach(Ne);
|
|
244
215
|
}
|
|
245
|
-
function
|
|
216
|
+
function dr(e, t) {
|
|
246
217
|
const r = e.$$;
|
|
247
|
-
r.fragment !== null && (
|
|
218
|
+
r.fragment !== null && (fr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
248
219
|
}
|
|
249
|
-
function
|
|
250
|
-
e.$$.dirty[0] === -1 && (
|
|
220
|
+
function pr(e, t) {
|
|
221
|
+
e.$$.dirty[0] === -1 && (G.push(e), hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
251
222
|
}
|
|
252
|
-
function
|
|
253
|
-
const l =
|
|
254
|
-
|
|
255
|
-
const
|
|
223
|
+
function br(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
224
|
+
const l = Ve;
|
|
225
|
+
q(e);
|
|
226
|
+
const a = e.$$ = {
|
|
256
227
|
fragment: null,
|
|
257
228
|
ctx: [],
|
|
258
229
|
// state
|
|
259
230
|
props: s,
|
|
260
|
-
update:
|
|
231
|
+
update: B,
|
|
261
232
|
not_equal: i,
|
|
262
|
-
bound:
|
|
233
|
+
bound: Ze(),
|
|
263
234
|
// lifecycle
|
|
264
235
|
on_mount: [],
|
|
265
236
|
on_destroy: [],
|
|
@@ -268,150 +239,146 @@ function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
268
239
|
after_update: [],
|
|
269
240
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
270
241
|
// everything else
|
|
271
|
-
callbacks:
|
|
242
|
+
callbacks: Ze(),
|
|
272
243
|
dirty: o,
|
|
273
244
|
skip_bound: !1,
|
|
274
245
|
root: t.target || l.$$.root
|
|
275
246
|
};
|
|
276
|
-
|
|
277
|
-
let
|
|
278
|
-
if (
|
|
279
|
-
const m =
|
|
280
|
-
return
|
|
281
|
-
})
|
|
247
|
+
u && u(a.root);
|
|
248
|
+
let h = !1;
|
|
249
|
+
if (a.ctx = r(e, t.props || {}, (f, c, ...d) => {
|
|
250
|
+
const m = d.length ? d[0] : c;
|
|
251
|
+
return a.ctx && i(a.ctx[f], a.ctx[f] = m) && (!a.skip_bound && a.bound[f] && a.bound[f](m), h && pr(e, f)), c;
|
|
252
|
+
}), a.update(), h = !0, ee(a.before_update), a.fragment = n(a.ctx), t.target) {
|
|
282
253
|
if (t.hydrate) {
|
|
283
|
-
const f =
|
|
284
|
-
|
|
254
|
+
const f = sr(t.target);
|
|
255
|
+
a.fragment && a.fragment.l(f), f.forEach(O);
|
|
285
256
|
} else
|
|
286
|
-
|
|
287
|
-
t.intro &&
|
|
257
|
+
a.fragment && a.fragment.c();
|
|
258
|
+
t.intro && ae(e.$$.fragment), mr(e, t.target, t.anchor), S();
|
|
288
259
|
}
|
|
289
|
-
|
|
290
|
-
}
|
|
291
|
-
let
|
|
292
|
-
typeof HTMLElement == "function" && (
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
260
|
+
q(l);
|
|
261
|
+
}
|
|
262
|
+
let Bt;
|
|
263
|
+
typeof HTMLElement == "function" && (Bt = class extends HTMLElement {
|
|
264
|
+
/** The Svelte component constructor */
|
|
265
|
+
$$ctor;
|
|
266
|
+
/** Slots */
|
|
267
|
+
$$s;
|
|
268
|
+
/** The Svelte component instance */
|
|
269
|
+
$$c;
|
|
270
|
+
/** Whether or not the custom element is connected */
|
|
271
|
+
$$cn = !1;
|
|
272
|
+
/** Component props data */
|
|
273
|
+
$$d = {};
|
|
274
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
275
|
+
$$r = !1;
|
|
276
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
277
|
+
$$p_d = {};
|
|
278
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
279
|
+
$$l = {};
|
|
280
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
281
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
282
|
+
constructor(e, t, r) {
|
|
283
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
314
284
|
}
|
|
315
|
-
addEventListener(t, r
|
|
316
|
-
if (this.$$l[
|
|
317
|
-
const
|
|
318
|
-
this.$$l_u.set(
|
|
285
|
+
addEventListener(e, t, r) {
|
|
286
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
287
|
+
const n = this.$$c.$on(e, t);
|
|
288
|
+
this.$$l_u.set(t, n);
|
|
319
289
|
}
|
|
320
|
-
super.addEventListener(t, r
|
|
290
|
+
super.addEventListener(e, t, r);
|
|
321
291
|
}
|
|
322
|
-
removeEventListener(t, r
|
|
323
|
-
if (super.removeEventListener(t, r
|
|
324
|
-
const
|
|
325
|
-
|
|
292
|
+
removeEventListener(e, t, r) {
|
|
293
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
294
|
+
const n = this.$$l_u.get(t);
|
|
295
|
+
n && (n(), this.$$l_u.delete(t));
|
|
326
296
|
}
|
|
327
297
|
}
|
|
328
|
-
connectedCallback() {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
}
|
|
348
|
-
};
|
|
298
|
+
async connectedCallback() {
|
|
299
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
300
|
+
let e = function(i) {
|
|
301
|
+
return () => {
|
|
302
|
+
let s;
|
|
303
|
+
return {
|
|
304
|
+
c: function() {
|
|
305
|
+
s = W("slot"), i !== "default" && te(s, "name", i);
|
|
306
|
+
},
|
|
307
|
+
/**
|
|
308
|
+
* @param {HTMLElement} target
|
|
309
|
+
* @param {HTMLElement} [anchor]
|
|
310
|
+
*/
|
|
311
|
+
m: function(l, a) {
|
|
312
|
+
I(l, s, a);
|
|
313
|
+
},
|
|
314
|
+
d: function(l) {
|
|
315
|
+
l && O(s);
|
|
316
|
+
}
|
|
349
317
|
};
|
|
350
318
|
};
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
319
|
+
};
|
|
320
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
321
|
+
return;
|
|
322
|
+
const t = {}, r = ar(this);
|
|
323
|
+
for (const i of this.$$s)
|
|
324
|
+
i in r && (t[i] = [e(i)]);
|
|
325
|
+
for (const i of this.attributes) {
|
|
326
|
+
const s = this.$$g_p(i.name);
|
|
327
|
+
s in this.$$d || (this.$$d[s] = ue(s, i.value, this.$$p_d, "toProp"));
|
|
328
|
+
}
|
|
329
|
+
for (const i in this.$$p_d)
|
|
330
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
331
|
+
this.$$c = new this.$$ctor({
|
|
332
|
+
target: this.shadowRoot || this,
|
|
333
|
+
props: {
|
|
334
|
+
...this.$$d,
|
|
335
|
+
$$slots: t,
|
|
336
|
+
$$scope: {
|
|
337
|
+
ctx: []
|
|
338
|
+
}
|
|
359
339
|
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
this.$$
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
this.$$r = !0;
|
|
373
|
-
for (const s in this.$$p_d)
|
|
374
|
-
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
375
|
-
const a = ue(
|
|
376
|
-
s,
|
|
377
|
-
this.$$d[s],
|
|
378
|
-
this.$$p_d,
|
|
379
|
-
"toAttribute"
|
|
380
|
-
);
|
|
381
|
-
a == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, a);
|
|
382
|
-
}
|
|
383
|
-
this.$$r = !1;
|
|
384
|
-
};
|
|
385
|
-
this.$$c.$$.after_update.push(i), i();
|
|
386
|
-
for (const s in this.$$l)
|
|
387
|
-
for (const a of this.$$l[s]) {
|
|
388
|
-
const o = this.$$c.$on(s, a);
|
|
389
|
-
this.$$l_u.set(a, o);
|
|
340
|
+
});
|
|
341
|
+
const n = () => {
|
|
342
|
+
this.$$r = !0;
|
|
343
|
+
for (const i in this.$$p_d)
|
|
344
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
345
|
+
const s = ue(
|
|
346
|
+
i,
|
|
347
|
+
this.$$d[i],
|
|
348
|
+
this.$$p_d,
|
|
349
|
+
"toAttribute"
|
|
350
|
+
);
|
|
351
|
+
s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
|
|
390
352
|
}
|
|
391
|
-
this.$$
|
|
392
|
-
}
|
|
393
|
-
|
|
353
|
+
this.$$r = !1;
|
|
354
|
+
};
|
|
355
|
+
this.$$c.$$.after_update.push(n), n();
|
|
356
|
+
for (const i in this.$$l)
|
|
357
|
+
for (const s of this.$$l[i]) {
|
|
358
|
+
const u = this.$$c.$on(i, s);
|
|
359
|
+
this.$$l_u.set(s, u);
|
|
360
|
+
}
|
|
361
|
+
this.$$l = {};
|
|
362
|
+
}
|
|
394
363
|
}
|
|
395
364
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
396
365
|
// and setting attributes through setAttribute etc, this is helpful
|
|
397
|
-
attributeChangedCallback(t, r
|
|
398
|
-
|
|
399
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ue(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
366
|
+
attributeChangedCallback(e, t, r) {
|
|
367
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ue(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
400
368
|
}
|
|
401
369
|
disconnectedCallback() {
|
|
402
370
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
403
371
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
404
372
|
});
|
|
405
373
|
}
|
|
406
|
-
$$g_p(
|
|
374
|
+
$$g_p(e) {
|
|
407
375
|
return Object.keys(this.$$p_d).find(
|
|
408
|
-
(
|
|
409
|
-
) ||
|
|
376
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
377
|
+
) || e;
|
|
410
378
|
}
|
|
411
379
|
});
|
|
412
380
|
function ue(e, t, r, n) {
|
|
413
|
-
|
|
414
|
-
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
381
|
+
const i = r[e]?.type;
|
|
415
382
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
416
383
|
return t;
|
|
417
384
|
if (n === "toAttribute")
|
|
@@ -422,7 +389,7 @@ function ue(e, t, r, n) {
|
|
|
422
389
|
case "Boolean":
|
|
423
390
|
return t ? "" : null;
|
|
424
391
|
case "Number":
|
|
425
|
-
return t
|
|
392
|
+
return t ?? null;
|
|
426
393
|
default:
|
|
427
394
|
return t;
|
|
428
395
|
}
|
|
@@ -439,8 +406,8 @@ function ue(e, t, r, n) {
|
|
|
439
406
|
return t;
|
|
440
407
|
}
|
|
441
408
|
}
|
|
442
|
-
function
|
|
443
|
-
let
|
|
409
|
+
function gr(e, t, r, n, i, s) {
|
|
410
|
+
let u = class extends Bt {
|
|
444
411
|
constructor() {
|
|
445
412
|
super(e, r, i), this.$$p_d = t;
|
|
446
413
|
}
|
|
@@ -451,47 +418,43 @@ function Cr(e, t, r, n, i, s) {
|
|
|
451
418
|
}
|
|
452
419
|
};
|
|
453
420
|
return Object.keys(t).forEach((o) => {
|
|
454
|
-
Object.defineProperty(
|
|
421
|
+
Object.defineProperty(u.prototype, o, {
|
|
455
422
|
get() {
|
|
456
423
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
457
424
|
},
|
|
458
425
|
set(l) {
|
|
459
|
-
|
|
460
|
-
l = ue(o, l, t), this.$$d[o] = l, (h = this.$$c) == null || h.$set({ [o]: l });
|
|
426
|
+
l = ue(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
461
427
|
}
|
|
462
428
|
});
|
|
463
429
|
}), n.forEach((o) => {
|
|
464
|
-
Object.defineProperty(
|
|
430
|
+
Object.defineProperty(u.prototype, o, {
|
|
465
431
|
get() {
|
|
466
|
-
|
|
467
|
-
return (l = this.$$c) == null ? void 0 : l[o];
|
|
432
|
+
return this.$$c?.[o];
|
|
468
433
|
}
|
|
469
434
|
});
|
|
470
435
|
}), e.element = /** @type {any} */
|
|
471
|
-
|
|
472
|
-
}
|
|
473
|
-
class
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
B(this, "$$set");
|
|
491
|
-
}
|
|
436
|
+
u, u;
|
|
437
|
+
}
|
|
438
|
+
class _r {
|
|
439
|
+
/**
|
|
440
|
+
* ### PRIVATE API
|
|
441
|
+
*
|
|
442
|
+
* Do not use, may change at any time
|
|
443
|
+
*
|
|
444
|
+
* @type {any}
|
|
445
|
+
*/
|
|
446
|
+
$$ = void 0;
|
|
447
|
+
/**
|
|
448
|
+
* ### PRIVATE API
|
|
449
|
+
*
|
|
450
|
+
* Do not use, may change at any time
|
|
451
|
+
*
|
|
452
|
+
* @type {any}
|
|
453
|
+
*/
|
|
454
|
+
$$set = void 0;
|
|
492
455
|
/** @returns {void} */
|
|
493
456
|
$destroy() {
|
|
494
|
-
|
|
457
|
+
dr(this, 1), this.$destroy = B;
|
|
495
458
|
}
|
|
496
459
|
/**
|
|
497
460
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -500,8 +463,8 @@ class Or {
|
|
|
500
463
|
* @returns {() => void}
|
|
501
464
|
*/
|
|
502
465
|
$on(t, r) {
|
|
503
|
-
if (!
|
|
504
|
-
return
|
|
466
|
+
if (!je(r))
|
|
467
|
+
return B;
|
|
505
468
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
506
469
|
return n.push(r), () => {
|
|
507
470
|
const i = n.indexOf(r);
|
|
@@ -513,159 +476,159 @@ class Or {
|
|
|
513
476
|
* @returns {void}
|
|
514
477
|
*/
|
|
515
478
|
$set(t) {
|
|
516
|
-
this.$$set && !
|
|
479
|
+
this.$$set && !er(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
517
480
|
}
|
|
518
481
|
}
|
|
519
|
-
const
|
|
520
|
-
typeof window
|
|
521
|
-
const
|
|
522
|
-
function
|
|
482
|
+
const yr = "4";
|
|
483
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(yr);
|
|
484
|
+
const D = [];
|
|
485
|
+
function xr(e, t) {
|
|
523
486
|
return {
|
|
524
|
-
subscribe:
|
|
487
|
+
subscribe: pe(e, t).subscribe
|
|
525
488
|
};
|
|
526
489
|
}
|
|
527
|
-
function
|
|
490
|
+
function pe(e, t = B) {
|
|
528
491
|
let r;
|
|
529
492
|
const n = /* @__PURE__ */ new Set();
|
|
530
493
|
function i(o) {
|
|
531
|
-
if (
|
|
532
|
-
const l = !
|
|
533
|
-
for (const
|
|
534
|
-
|
|
494
|
+
if (yt(e, o) && (e = o, r)) {
|
|
495
|
+
const l = !D.length;
|
|
496
|
+
for (const a of n)
|
|
497
|
+
a[1](), D.push(a, e);
|
|
535
498
|
if (l) {
|
|
536
|
-
for (let
|
|
537
|
-
|
|
538
|
-
|
|
499
|
+
for (let a = 0; a < D.length; a += 2)
|
|
500
|
+
D[a][0](D[a + 1]);
|
|
501
|
+
D.length = 0;
|
|
539
502
|
}
|
|
540
503
|
}
|
|
541
504
|
}
|
|
542
505
|
function s(o) {
|
|
543
506
|
i(o(e));
|
|
544
507
|
}
|
|
545
|
-
function
|
|
546
|
-
const
|
|
547
|
-
return n.add(
|
|
548
|
-
n.delete(
|
|
508
|
+
function u(o, l = B) {
|
|
509
|
+
const a = [o, l];
|
|
510
|
+
return n.add(a), n.size === 1 && (r = t(i, s) || B), o(e), () => {
|
|
511
|
+
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
549
512
|
};
|
|
550
513
|
}
|
|
551
|
-
return { set: i, update: s, subscribe:
|
|
514
|
+
return { set: i, update: s, subscribe: u };
|
|
552
515
|
}
|
|
553
|
-
function
|
|
516
|
+
function z(e, t, r) {
|
|
554
517
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
555
518
|
if (!i.every(Boolean))
|
|
556
519
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
557
520
|
const s = t.length < 2;
|
|
558
|
-
return
|
|
521
|
+
return xr(r, (u, o) => {
|
|
559
522
|
let l = !1;
|
|
560
|
-
const
|
|
561
|
-
let
|
|
523
|
+
const a = [];
|
|
524
|
+
let h = 0, f = B;
|
|
562
525
|
const c = () => {
|
|
563
|
-
if (
|
|
526
|
+
if (h)
|
|
564
527
|
return;
|
|
565
528
|
f();
|
|
566
|
-
const m = t(n ?
|
|
567
|
-
s ?
|
|
568
|
-
},
|
|
569
|
-
(m, g) =>
|
|
529
|
+
const m = t(n ? a[0] : a, u, o);
|
|
530
|
+
s ? u(m) : f = je(m) ? m : B;
|
|
531
|
+
}, d = i.map(
|
|
532
|
+
(m, g) => xt(
|
|
570
533
|
m,
|
|
571
534
|
(v) => {
|
|
572
|
-
|
|
535
|
+
a[g] = v, h &= ~(1 << g), l && c();
|
|
573
536
|
},
|
|
574
537
|
() => {
|
|
575
|
-
|
|
538
|
+
h |= 1 << g;
|
|
576
539
|
}
|
|
577
540
|
)
|
|
578
541
|
);
|
|
579
542
|
return l = !0, c(), function() {
|
|
580
|
-
|
|
543
|
+
ee(d), f(), l = !1;
|
|
581
544
|
};
|
|
582
545
|
});
|
|
583
546
|
}
|
|
584
|
-
function
|
|
585
|
-
return e
|
|
547
|
+
function Er(e) {
|
|
548
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
586
549
|
}
|
|
587
|
-
var
|
|
588
|
-
return
|
|
550
|
+
var vr = function(t) {
|
|
551
|
+
return Hr(t) && !Br(t);
|
|
589
552
|
};
|
|
590
|
-
function
|
|
553
|
+
function Hr(e) {
|
|
591
554
|
return !!e && typeof e == "object";
|
|
592
555
|
}
|
|
593
|
-
function
|
|
556
|
+
function Br(e) {
|
|
594
557
|
var t = Object.prototype.toString.call(e);
|
|
595
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
558
|
+
return t === "[object RegExp]" || t === "[object Date]" || Sr(e);
|
|
596
559
|
}
|
|
597
|
-
var
|
|
598
|
-
function
|
|
599
|
-
return e.$$typeof ===
|
|
560
|
+
var Tr = typeof Symbol == "function" && Symbol.for, wr = Tr ? Symbol.for("react.element") : 60103;
|
|
561
|
+
function Sr(e) {
|
|
562
|
+
return e.$$typeof === wr;
|
|
600
563
|
}
|
|
601
|
-
function
|
|
564
|
+
function Ar(e) {
|
|
602
565
|
return Array.isArray(e) ? [] : {};
|
|
603
566
|
}
|
|
604
|
-
function
|
|
605
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
567
|
+
function Y(e, t) {
|
|
568
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? j(Ar(e), e, t) : e;
|
|
606
569
|
}
|
|
607
|
-
function
|
|
570
|
+
function Cr(e, t, r) {
|
|
608
571
|
return e.concat(t).map(function(n) {
|
|
609
|
-
return
|
|
572
|
+
return Y(n, r);
|
|
610
573
|
});
|
|
611
574
|
}
|
|
612
|
-
function
|
|
575
|
+
function Or(e, t) {
|
|
613
576
|
if (!t.customMerge)
|
|
614
|
-
return
|
|
577
|
+
return j;
|
|
615
578
|
var r = t.customMerge(e);
|
|
616
|
-
return typeof r == "function" ? r :
|
|
579
|
+
return typeof r == "function" ? r : j;
|
|
617
580
|
}
|
|
618
|
-
function
|
|
581
|
+
function Pr(e) {
|
|
619
582
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
620
583
|
return Object.propertyIsEnumerable.call(e, t);
|
|
621
584
|
}) : [];
|
|
622
585
|
}
|
|
623
|
-
function
|
|
624
|
-
return Object.keys(e).concat(
|
|
586
|
+
function qe(e) {
|
|
587
|
+
return Object.keys(e).concat(Pr(e));
|
|
625
588
|
}
|
|
626
|
-
function
|
|
589
|
+
function Tt(e, t) {
|
|
627
590
|
try {
|
|
628
591
|
return t in e;
|
|
629
|
-
} catch
|
|
592
|
+
} catch {
|
|
630
593
|
return !1;
|
|
631
594
|
}
|
|
632
595
|
}
|
|
633
|
-
function
|
|
634
|
-
return
|
|
596
|
+
function Lr(e, t) {
|
|
597
|
+
return Tt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
635
598
|
}
|
|
636
|
-
function
|
|
599
|
+
function Nr(e, t, r) {
|
|
637
600
|
var n = {};
|
|
638
|
-
return r.isMergeableObject(e) &&
|
|
639
|
-
n[i] =
|
|
640
|
-
}),
|
|
641
|
-
|
|
601
|
+
return r.isMergeableObject(e) && qe(e).forEach(function(i) {
|
|
602
|
+
n[i] = Y(e[i], r);
|
|
603
|
+
}), qe(t).forEach(function(i) {
|
|
604
|
+
Lr(e, i) || (Tt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Or(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
|
|
642
605
|
}), n;
|
|
643
606
|
}
|
|
644
|
-
function
|
|
645
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
607
|
+
function j(e, t, r) {
|
|
608
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Cr, r.isMergeableObject = r.isMergeableObject || vr, r.cloneUnlessOtherwiseSpecified = Y;
|
|
646
609
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
647
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
610
|
+
return s ? n ? r.arrayMerge(e, t, r) : Nr(e, t, r) : Y(t, r);
|
|
648
611
|
}
|
|
649
|
-
|
|
612
|
+
j.all = function(t, r) {
|
|
650
613
|
if (!Array.isArray(t))
|
|
651
614
|
throw new Error("first argument should be an array");
|
|
652
615
|
return t.reduce(function(n, i) {
|
|
653
|
-
return
|
|
616
|
+
return j(n, i, r);
|
|
654
617
|
}, {});
|
|
655
618
|
};
|
|
656
|
-
var
|
|
657
|
-
const
|
|
658
|
-
var
|
|
659
|
-
return
|
|
619
|
+
var Ir = j, Mr = Ir;
|
|
620
|
+
const $r = /* @__PURE__ */ Er(Mr);
|
|
621
|
+
var Ie = function(e, t) {
|
|
622
|
+
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
660
623
|
r.__proto__ = n;
|
|
661
624
|
} || function(r, n) {
|
|
662
625
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
663
|
-
},
|
|
626
|
+
}, Ie(e, t);
|
|
664
627
|
};
|
|
665
|
-
function
|
|
628
|
+
function be(e, t) {
|
|
666
629
|
if (typeof t != "function" && t !== null)
|
|
667
630
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
668
|
-
|
|
631
|
+
Ie(e, t);
|
|
669
632
|
function r() {
|
|
670
633
|
this.constructor = e;
|
|
671
634
|
}
|
|
@@ -680,7 +643,7 @@ var y = function() {
|
|
|
680
643
|
return t;
|
|
681
644
|
}, y.apply(this, arguments);
|
|
682
645
|
};
|
|
683
|
-
function
|
|
646
|
+
function Rr(e, t) {
|
|
684
647
|
var r = {};
|
|
685
648
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
686
649
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -688,110 +651,112 @@ function Qr(e, t) {
|
|
|
688
651
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
689
652
|
return r;
|
|
690
653
|
}
|
|
691
|
-
function
|
|
654
|
+
function Te(e, t, r) {
|
|
692
655
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
693
656
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
694
657
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
695
658
|
}
|
|
696
|
-
function
|
|
697
|
-
var r = t && t.cache ? t.cache :
|
|
659
|
+
function we(e, t) {
|
|
660
|
+
var r = t && t.cache ? t.cache : Vr, n = t && t.serializer ? t.serializer : jr, i = t && t.strategy ? t.strategy : Dr;
|
|
698
661
|
return i(e, {
|
|
699
662
|
cache: r,
|
|
700
663
|
serializer: n
|
|
701
664
|
});
|
|
702
665
|
}
|
|
703
|
-
function
|
|
666
|
+
function Ur(e) {
|
|
704
667
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
705
668
|
}
|
|
706
|
-
function
|
|
707
|
-
var i =
|
|
708
|
-
return typeof s
|
|
669
|
+
function wt(e, t, r, n) {
|
|
670
|
+
var i = Ur(n) ? n : r(n), s = t.get(i);
|
|
671
|
+
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
709
672
|
}
|
|
710
|
-
function
|
|
673
|
+
function St(e, t, r) {
|
|
711
674
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
712
|
-
return typeof s
|
|
675
|
+
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
713
676
|
}
|
|
714
|
-
function
|
|
677
|
+
function Xe(e, t, r, n, i) {
|
|
715
678
|
return r.bind(t, e, n, i);
|
|
716
679
|
}
|
|
717
|
-
function
|
|
718
|
-
var r = e.length === 1 ?
|
|
719
|
-
return
|
|
680
|
+
function Dr(e, t) {
|
|
681
|
+
var r = e.length === 1 ? wt : St;
|
|
682
|
+
return Xe(e, this, r, t.cache.create(), t.serializer);
|
|
720
683
|
}
|
|
721
|
-
function
|
|
722
|
-
return
|
|
684
|
+
function Gr(e, t) {
|
|
685
|
+
return Xe(e, this, St, t.cache.create(), t.serializer);
|
|
723
686
|
}
|
|
724
|
-
function
|
|
725
|
-
return
|
|
687
|
+
function Fr(e, t) {
|
|
688
|
+
return Xe(e, this, wt, t.cache.create(), t.serializer);
|
|
726
689
|
}
|
|
727
|
-
var
|
|
690
|
+
var jr = function() {
|
|
728
691
|
return JSON.stringify(arguments);
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
692
|
+
}, kr = (
|
|
693
|
+
/** @class */
|
|
694
|
+
function() {
|
|
695
|
+
function e() {
|
|
696
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
697
|
+
}
|
|
698
|
+
return e.prototype.get = function(t) {
|
|
699
|
+
return this.cache[t];
|
|
700
|
+
}, e.prototype.set = function(t, r) {
|
|
701
|
+
this.cache[t] = r;
|
|
702
|
+
}, e;
|
|
703
|
+
}()
|
|
704
|
+
), Vr = {
|
|
740
705
|
create: function() {
|
|
741
|
-
return new
|
|
706
|
+
return new kr();
|
|
742
707
|
}
|
|
743
|
-
},
|
|
744
|
-
variadic:
|
|
745
|
-
monadic:
|
|
746
|
-
},
|
|
708
|
+
}, Se = {
|
|
709
|
+
variadic: Gr,
|
|
710
|
+
monadic: Fr
|
|
711
|
+
}, p;
|
|
747
712
|
(function(e) {
|
|
748
713
|
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";
|
|
749
|
-
})(
|
|
750
|
-
var
|
|
714
|
+
})(p || (p = {}));
|
|
715
|
+
var x;
|
|
751
716
|
(function(e) {
|
|
752
717
|
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";
|
|
753
|
-
})(
|
|
754
|
-
var
|
|
718
|
+
})(x || (x = {}));
|
|
719
|
+
var k;
|
|
755
720
|
(function(e) {
|
|
756
721
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
757
|
-
})(
|
|
758
|
-
function
|
|
759
|
-
return e.type ===
|
|
722
|
+
})(k || (k = {}));
|
|
723
|
+
function Ye(e) {
|
|
724
|
+
return e.type === x.literal;
|
|
760
725
|
}
|
|
761
|
-
function
|
|
762
|
-
return e.type ===
|
|
726
|
+
function Xr(e) {
|
|
727
|
+
return e.type === x.argument;
|
|
763
728
|
}
|
|
764
|
-
function
|
|
765
|
-
return e.type ===
|
|
729
|
+
function At(e) {
|
|
730
|
+
return e.type === x.number;
|
|
766
731
|
}
|
|
767
|
-
function
|
|
768
|
-
return e.type ===
|
|
732
|
+
function Ct(e) {
|
|
733
|
+
return e.type === x.date;
|
|
769
734
|
}
|
|
770
|
-
function
|
|
771
|
-
return e.type ===
|
|
735
|
+
function Ot(e) {
|
|
736
|
+
return e.type === x.time;
|
|
772
737
|
}
|
|
773
|
-
function
|
|
774
|
-
return e.type ===
|
|
738
|
+
function Pt(e) {
|
|
739
|
+
return e.type === x.select;
|
|
775
740
|
}
|
|
776
|
-
function
|
|
777
|
-
return e.type ===
|
|
741
|
+
function Lt(e) {
|
|
742
|
+
return e.type === x.plural;
|
|
778
743
|
}
|
|
779
|
-
function
|
|
780
|
-
return e.type ===
|
|
744
|
+
function Wr(e) {
|
|
745
|
+
return e.type === x.pound;
|
|
781
746
|
}
|
|
782
|
-
function
|
|
783
|
-
return e.type ===
|
|
747
|
+
function Nt(e) {
|
|
748
|
+
return e.type === x.tag;
|
|
784
749
|
}
|
|
785
|
-
function
|
|
786
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
750
|
+
function It(e) {
|
|
751
|
+
return !!(e && typeof e == "object" && e.type === k.number);
|
|
787
752
|
}
|
|
788
|
-
function
|
|
789
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
753
|
+
function Me(e) {
|
|
754
|
+
return !!(e && typeof e == "object" && e.type === k.dateTime);
|
|
790
755
|
}
|
|
791
|
-
var
|
|
792
|
-
function
|
|
756
|
+
var Mt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, zr = /(?:[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;
|
|
757
|
+
function Zr(e) {
|
|
793
758
|
var t = {};
|
|
794
|
-
return e.replace(
|
|
759
|
+
return e.replace(zr, function(r) {
|
|
795
760
|
var n = r.length;
|
|
796
761
|
switch (r[0]) {
|
|
797
762
|
case "G":
|
|
@@ -880,18 +845,18 @@ function on(e) {
|
|
|
880
845
|
return "";
|
|
881
846
|
}), t;
|
|
882
847
|
}
|
|
883
|
-
var
|
|
884
|
-
function
|
|
848
|
+
var Qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
849
|
+
function Jr(e) {
|
|
885
850
|
if (e.length === 0)
|
|
886
851
|
throw new Error("Number skeleton cannot be empty");
|
|
887
|
-
for (var t = e.split(
|
|
852
|
+
for (var t = e.split(Qr).filter(function(c) {
|
|
888
853
|
return c.length > 0;
|
|
889
854
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
890
|
-
var s = i[n],
|
|
891
|
-
if (
|
|
855
|
+
var s = i[n], u = s.split("/");
|
|
856
|
+
if (u.length === 0)
|
|
892
857
|
throw new Error("Invalid number skeleton");
|
|
893
|
-
for (var o =
|
|
894
|
-
var f =
|
|
858
|
+
for (var o = u[0], l = u.slice(1), a = 0, h = l; a < h.length; a++) {
|
|
859
|
+
var f = h[a];
|
|
895
860
|
if (f.length === 0)
|
|
896
861
|
throw new Error("Invalid number skeleton");
|
|
897
862
|
}
|
|
@@ -899,17 +864,17 @@ function hn(e) {
|
|
|
899
864
|
}
|
|
900
865
|
return r;
|
|
901
866
|
}
|
|
902
|
-
function
|
|
867
|
+
function qr(e) {
|
|
903
868
|
return e.replace(/^(.*?)-/, "");
|
|
904
869
|
}
|
|
905
|
-
var
|
|
906
|
-
function
|
|
870
|
+
var Ke = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, Yr = /(\*)(0+)|(#+)(0+)|(0+)/g, Rt = /^(0+)$/;
|
|
871
|
+
function et(e) {
|
|
907
872
|
var t = {};
|
|
908
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
873
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
|
|
909
874
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
910
875
|
}), t;
|
|
911
876
|
}
|
|
912
|
-
function
|
|
877
|
+
function Ut(e) {
|
|
913
878
|
switch (e) {
|
|
914
879
|
case "sign-auto":
|
|
915
880
|
return {
|
|
@@ -949,7 +914,7 @@ function Xt(e) {
|
|
|
949
914
|
};
|
|
950
915
|
}
|
|
951
916
|
}
|
|
952
|
-
function
|
|
917
|
+
function Kr(e) {
|
|
953
918
|
var t;
|
|
954
919
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
955
920
|
notation: "engineering"
|
|
@@ -957,17 +922,17 @@ function fn(e) {
|
|
|
957
922
|
notation: "scientific"
|
|
958
923
|
}, e = e.slice(1)), t) {
|
|
959
924
|
var r = e.slice(0, 2);
|
|
960
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
925
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Rt.test(e))
|
|
961
926
|
throw new Error("Malformed concise eng/scientific notation");
|
|
962
927
|
t.minimumIntegerDigits = e.length;
|
|
963
928
|
}
|
|
964
929
|
return t;
|
|
965
930
|
}
|
|
966
|
-
function
|
|
967
|
-
var t = {}, r =
|
|
931
|
+
function tt(e) {
|
|
932
|
+
var t = {}, r = Ut(e);
|
|
968
933
|
return r || t;
|
|
969
934
|
}
|
|
970
|
-
function
|
|
935
|
+
function en(e) {
|
|
971
936
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
972
937
|
var i = n[r];
|
|
973
938
|
switch (i.stem) {
|
|
@@ -991,7 +956,7 @@ function cn(e) {
|
|
|
991
956
|
continue;
|
|
992
957
|
case "measure-unit":
|
|
993
958
|
case "unit":
|
|
994
|
-
t.style = "unit", t.unit =
|
|
959
|
+
t.style = "unit", t.unit = qr(i.options[0]);
|
|
995
960
|
continue;
|
|
996
961
|
case "compact-short":
|
|
997
962
|
case "K":
|
|
@@ -1002,13 +967,13 @@ function cn(e) {
|
|
|
1002
967
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1003
968
|
continue;
|
|
1004
969
|
case "scientific":
|
|
1005
|
-
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l,
|
|
1006
|
-
return y(y({}, l),
|
|
970
|
+
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l, a) {
|
|
971
|
+
return y(y({}, l), tt(a));
|
|
1007
972
|
}, {}));
|
|
1008
973
|
continue;
|
|
1009
974
|
case "engineering":
|
|
1010
|
-
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l,
|
|
1011
|
-
return y(y({}, l),
|
|
975
|
+
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l, a) {
|
|
976
|
+
return y(y({}, l), tt(a));
|
|
1012
977
|
}, {}));
|
|
1013
978
|
continue;
|
|
1014
979
|
case "notation-simple":
|
|
@@ -1053,45 +1018,45 @@ function cn(e) {
|
|
|
1053
1018
|
case "integer-width":
|
|
1054
1019
|
if (i.options.length > 1)
|
|
1055
1020
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1056
|
-
i.options[0].replace(
|
|
1057
|
-
if (
|
|
1058
|
-
t.minimumIntegerDigits =
|
|
1021
|
+
i.options[0].replace(Yr, function(l, a, h, f, c, d) {
|
|
1022
|
+
if (a)
|
|
1023
|
+
t.minimumIntegerDigits = h.length;
|
|
1059
1024
|
else {
|
|
1060
1025
|
if (f && c)
|
|
1061
1026
|
throw new Error("We currently do not support maximum integer digits");
|
|
1062
|
-
if (
|
|
1027
|
+
if (d)
|
|
1063
1028
|
throw new Error("We currently do not support exact integer digits");
|
|
1064
1029
|
}
|
|
1065
1030
|
return "";
|
|
1066
1031
|
});
|
|
1067
1032
|
continue;
|
|
1068
1033
|
}
|
|
1069
|
-
if (
|
|
1034
|
+
if (Rt.test(i.stem)) {
|
|
1070
1035
|
t.minimumIntegerDigits = i.stem.length;
|
|
1071
1036
|
continue;
|
|
1072
1037
|
}
|
|
1073
|
-
if (
|
|
1038
|
+
if (Ke.test(i.stem)) {
|
|
1074
1039
|
if (i.options.length > 1)
|
|
1075
1040
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1076
|
-
i.stem.replace(
|
|
1077
|
-
return
|
|
1041
|
+
i.stem.replace(Ke, function(l, a, h, f, c, d) {
|
|
1042
|
+
return h === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1078
1043
|
});
|
|
1079
1044
|
var s = i.options[0];
|
|
1080
|
-
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t),
|
|
1045
|
+
s === "w" ? t = y(y({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = y(y({}, t), et(s)));
|
|
1081
1046
|
continue;
|
|
1082
1047
|
}
|
|
1083
|
-
if (
|
|
1084
|
-
t = y(y({}, t),
|
|
1048
|
+
if ($t.test(i.stem)) {
|
|
1049
|
+
t = y(y({}, t), et(i.stem));
|
|
1085
1050
|
continue;
|
|
1086
1051
|
}
|
|
1087
|
-
var
|
|
1088
|
-
|
|
1089
|
-
var o =
|
|
1052
|
+
var u = Ut(i.stem);
|
|
1053
|
+
u && (t = y(y({}, t), u));
|
|
1054
|
+
var o = Kr(i.stem);
|
|
1090
1055
|
o && (t = y(y({}, t), o));
|
|
1091
1056
|
}
|
|
1092
1057
|
return t;
|
|
1093
1058
|
}
|
|
1094
|
-
var
|
|
1059
|
+
var se = {
|
|
1095
1060
|
"001": [
|
|
1096
1061
|
"H",
|
|
1097
1062
|
"h"
|
|
@@ -2506,22 +2471,22 @@ var oe = {
|
|
|
2506
2471
|
"h"
|
|
2507
2472
|
]
|
|
2508
2473
|
};
|
|
2509
|
-
function
|
|
2474
|
+
function tn(e, t) {
|
|
2510
2475
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2511
2476
|
var i = e.charAt(n);
|
|
2512
2477
|
if (i === "j") {
|
|
2513
2478
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2514
2479
|
s++, n++;
|
|
2515
|
-
var
|
|
2516
|
-
for ((
|
|
2480
|
+
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", a = rn(t);
|
|
2481
|
+
for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
|
|
2517
2482
|
r += l;
|
|
2518
|
-
for (;
|
|
2519
|
-
r =
|
|
2483
|
+
for (; u-- > 0; )
|
|
2484
|
+
r = a + r;
|
|
2520
2485
|
} else i === "J" ? r += "H" : r += i;
|
|
2521
2486
|
}
|
|
2522
2487
|
return r;
|
|
2523
2488
|
}
|
|
2524
|
-
function
|
|
2489
|
+
function rn(e) {
|
|
2525
2490
|
var t = e.hourCycle;
|
|
2526
2491
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2527
2492
|
e.hourCycles && // @ts-ignore
|
|
@@ -2540,23 +2505,23 @@ function pn(e) {
|
|
|
2540
2505
|
}
|
|
2541
2506
|
var r = e.language, n;
|
|
2542
2507
|
r !== "root" && (n = e.maximize().region);
|
|
2543
|
-
var i =
|
|
2508
|
+
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
2544
2509
|
return i[0];
|
|
2545
2510
|
}
|
|
2546
|
-
var
|
|
2511
|
+
var Ae, nn = new RegExp("^".concat(Mt.source, "*")), sn = new RegExp("".concat(Mt.source, "*$"));
|
|
2547
2512
|
function b(e, t) {
|
|
2548
2513
|
return { start: e, end: t };
|
|
2549
2514
|
}
|
|
2550
|
-
var
|
|
2515
|
+
var on = !!String.prototype.startsWith && "_a".startsWith("a", 1), an = !!String.fromCodePoint, un = !!Object.fromEntries, hn = !!String.prototype.codePointAt, ln = !!String.prototype.trimStart, fn = !!String.prototype.trimEnd, cn = !!Number.isSafeInteger, mn = cn ? Number.isSafeInteger : function(e) {
|
|
2551
2516
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2552
|
-
},
|
|
2517
|
+
}, $e = !0;
|
|
2553
2518
|
try {
|
|
2554
|
-
var
|
|
2555
|
-
|
|
2556
|
-
} catch
|
|
2557
|
-
|
|
2519
|
+
var dn = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2520
|
+
$e = ((Ae = dn.exec("a")) === null || Ae === void 0 ? void 0 : Ae[0]) === "a";
|
|
2521
|
+
} catch {
|
|
2522
|
+
$e = !1;
|
|
2558
2523
|
}
|
|
2559
|
-
var
|
|
2524
|
+
var rt = on ? (
|
|
2560
2525
|
// Native
|
|
2561
2526
|
function(t, r, n) {
|
|
2562
2527
|
return t.startsWith(r, n);
|
|
@@ -2566,31 +2531,31 @@ var ut = gn ? (
|
|
|
2566
2531
|
function(t, r, n) {
|
|
2567
2532
|
return t.slice(n, n + r.length) === r;
|
|
2568
2533
|
}
|
|
2569
|
-
),
|
|
2534
|
+
), Re = an ? String.fromCodePoint : (
|
|
2570
2535
|
// IE11
|
|
2571
2536
|
function() {
|
|
2572
2537
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2573
2538
|
t[r] = arguments[r];
|
|
2574
|
-
for (var n = "", i = t.length, s = 0,
|
|
2575
|
-
if (
|
|
2576
|
-
throw RangeError(
|
|
2577
|
-
n +=
|
|
2539
|
+
for (var n = "", i = t.length, s = 0, u; i > s; ) {
|
|
2540
|
+
if (u = t[s++], u > 1114111)
|
|
2541
|
+
throw RangeError(u + " is not a valid code point");
|
|
2542
|
+
n += u < 65536 ? String.fromCharCode(u) : String.fromCharCode(((u -= 65536) >> 10) + 55296, u % 1024 + 56320);
|
|
2578
2543
|
}
|
|
2579
2544
|
return n;
|
|
2580
2545
|
}
|
|
2581
|
-
),
|
|
2546
|
+
), nt = (
|
|
2582
2547
|
// native
|
|
2583
|
-
|
|
2548
|
+
un ? Object.fromEntries : (
|
|
2584
2549
|
// Ponyfill
|
|
2585
2550
|
function(t) {
|
|
2586
2551
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2587
|
-
var s = i[n],
|
|
2588
|
-
r[
|
|
2552
|
+
var s = i[n], u = s[0], o = s[1];
|
|
2553
|
+
r[u] = o;
|
|
2589
2554
|
}
|
|
2590
2555
|
return r;
|
|
2591
2556
|
}
|
|
2592
2557
|
)
|
|
2593
|
-
),
|
|
2558
|
+
), Dt = hn ? (
|
|
2594
2559
|
// Native
|
|
2595
2560
|
function(t, r) {
|
|
2596
2561
|
return t.codePointAt(r);
|
|
@@ -2604,7 +2569,7 @@ var ut = gn ? (
|
|
|
2604
2569
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2605
2570
|
}
|
|
2606
2571
|
}
|
|
2607
|
-
),
|
|
2572
|
+
), pn = ln ? (
|
|
2608
2573
|
// Native
|
|
2609
2574
|
function(t) {
|
|
2610
2575
|
return t.trimStart();
|
|
@@ -2612,9 +2577,9 @@ var ut = gn ? (
|
|
|
2612
2577
|
) : (
|
|
2613
2578
|
// Ponyfill
|
|
2614
2579
|
function(t) {
|
|
2615
|
-
return t.replace(
|
|
2580
|
+
return t.replace(nn, "");
|
|
2616
2581
|
}
|
|
2617
|
-
),
|
|
2582
|
+
), bn = fn ? (
|
|
2618
2583
|
// Native
|
|
2619
2584
|
function(t) {
|
|
2620
2585
|
return t.trimEnd();
|
|
@@ -2622,32 +2587,32 @@ var ut = gn ? (
|
|
|
2622
2587
|
) : (
|
|
2623
2588
|
// Ponyfill
|
|
2624
2589
|
function(t) {
|
|
2625
|
-
return t.replace(
|
|
2590
|
+
return t.replace(sn, "");
|
|
2626
2591
|
}
|
|
2627
2592
|
);
|
|
2628
|
-
function
|
|
2593
|
+
function Gt(e, t) {
|
|
2629
2594
|
return new RegExp(e, t);
|
|
2630
2595
|
}
|
|
2631
|
-
var
|
|
2632
|
-
if (
|
|
2633
|
-
var
|
|
2634
|
-
|
|
2596
|
+
var Ue;
|
|
2597
|
+
if ($e) {
|
|
2598
|
+
var it = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2599
|
+
Ue = function(t, r) {
|
|
2635
2600
|
var n;
|
|
2636
|
-
|
|
2637
|
-
var i =
|
|
2601
|
+
it.lastIndex = r;
|
|
2602
|
+
var i = it.exec(t);
|
|
2638
2603
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2639
2604
|
};
|
|
2640
2605
|
} else
|
|
2641
|
-
|
|
2606
|
+
Ue = function(t, r) {
|
|
2642
2607
|
for (var n = []; ; ) {
|
|
2643
|
-
var i =
|
|
2644
|
-
if (i === void 0 ||
|
|
2608
|
+
var i = Dt(t, r);
|
|
2609
|
+
if (i === void 0 || Ft(i) || xn(i))
|
|
2645
2610
|
break;
|
|
2646
2611
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2647
2612
|
}
|
|
2648
|
-
return
|
|
2613
|
+
return Re.apply(void 0, n);
|
|
2649
2614
|
};
|
|
2650
|
-
var
|
|
2615
|
+
var gn = (
|
|
2651
2616
|
/** @class */
|
|
2652
2617
|
function() {
|
|
2653
2618
|
function e(t, r) {
|
|
@@ -2661,33 +2626,33 @@ var An = (
|
|
|
2661
2626
|
for (var i = []; !this.isEOF(); ) {
|
|
2662
2627
|
var s = this.char();
|
|
2663
2628
|
if (s === 123) {
|
|
2664
|
-
var
|
|
2665
|
-
if (
|
|
2666
|
-
return
|
|
2667
|
-
i.push(
|
|
2629
|
+
var u = this.parseArgument(t, n);
|
|
2630
|
+
if (u.err)
|
|
2631
|
+
return u;
|
|
2632
|
+
i.push(u.val);
|
|
2668
2633
|
} else {
|
|
2669
2634
|
if (s === 125 && t > 0)
|
|
2670
2635
|
break;
|
|
2671
2636
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2672
2637
|
var o = this.clonePosition();
|
|
2673
2638
|
this.bump(), i.push({
|
|
2674
|
-
type:
|
|
2639
|
+
type: x.pound,
|
|
2675
2640
|
location: b(o, this.clonePosition())
|
|
2676
2641
|
});
|
|
2677
2642
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2678
2643
|
if (n)
|
|
2679
2644
|
break;
|
|
2680
|
-
return this.error(
|
|
2681
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2682
|
-
var
|
|
2683
|
-
if (
|
|
2684
|
-
return
|
|
2685
|
-
i.push(
|
|
2645
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2646
|
+
} else if (s === 60 && !this.ignoreTag && De(this.peek() || 0)) {
|
|
2647
|
+
var u = this.parseTag(t, r);
|
|
2648
|
+
if (u.err)
|
|
2649
|
+
return u;
|
|
2650
|
+
i.push(u.val);
|
|
2686
2651
|
} else {
|
|
2687
|
-
var
|
|
2688
|
-
if (
|
|
2689
|
-
return
|
|
2690
|
-
i.push(
|
|
2652
|
+
var u = this.parseLiteral(t, r);
|
|
2653
|
+
if (u.err)
|
|
2654
|
+
return u;
|
|
2655
|
+
i.push(u.val);
|
|
2691
2656
|
}
|
|
2692
2657
|
}
|
|
2693
2658
|
}
|
|
@@ -2699,7 +2664,7 @@ var An = (
|
|
|
2699
2664
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2700
2665
|
return {
|
|
2701
2666
|
val: {
|
|
2702
|
-
type:
|
|
2667
|
+
type: x.literal,
|
|
2703
2668
|
value: "<".concat(i, "/>"),
|
|
2704
2669
|
location: b(n, this.clonePosition())
|
|
2705
2670
|
},
|
|
@@ -2709,27 +2674,27 @@ var An = (
|
|
|
2709
2674
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2710
2675
|
if (s.err)
|
|
2711
2676
|
return s;
|
|
2712
|
-
var
|
|
2677
|
+
var u = s.val, o = this.clonePosition();
|
|
2713
2678
|
if (this.bumpIf("</")) {
|
|
2714
|
-
if (this.isEOF() || !
|
|
2715
|
-
return this.error(
|
|
2716
|
-
var l = this.clonePosition(),
|
|
2717
|
-
return i !==
|
|
2679
|
+
if (this.isEOF() || !De(this.char()))
|
|
2680
|
+
return this.error(p.INVALID_TAG, b(o, this.clonePosition()));
|
|
2681
|
+
var l = this.clonePosition(), a = this.parseTagName();
|
|
2682
|
+
return i !== a ? this.error(p.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2718
2683
|
val: {
|
|
2719
|
-
type:
|
|
2684
|
+
type: x.tag,
|
|
2720
2685
|
value: i,
|
|
2721
|
-
children:
|
|
2686
|
+
children: u,
|
|
2722
2687
|
location: b(n, this.clonePosition())
|
|
2723
2688
|
},
|
|
2724
2689
|
err: null
|
|
2725
|
-
} : this.error(
|
|
2690
|
+
} : this.error(p.INVALID_TAG, b(o, this.clonePosition())));
|
|
2726
2691
|
} else
|
|
2727
|
-
return this.error(
|
|
2692
|
+
return this.error(p.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
2728
2693
|
} else
|
|
2729
|
-
return this.error(
|
|
2694
|
+
return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
|
|
2730
2695
|
}, e.prototype.parseTagName = function() {
|
|
2731
2696
|
var t = this.offset();
|
|
2732
|
-
for (this.bump(); !this.isEOF() &&
|
|
2697
|
+
for (this.bump(); !this.isEOF() && yn(this.char()); )
|
|
2733
2698
|
this.bump();
|
|
2734
2699
|
return this.message.slice(t, this.offset());
|
|
2735
2700
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2739,9 +2704,9 @@ var An = (
|
|
|
2739
2704
|
i += s;
|
|
2740
2705
|
continue;
|
|
2741
2706
|
}
|
|
2742
|
-
var
|
|
2743
|
-
if (
|
|
2744
|
-
i +=
|
|
2707
|
+
var u = this.tryParseUnquoted(t, r);
|
|
2708
|
+
if (u) {
|
|
2709
|
+
i += u;
|
|
2745
2710
|
continue;
|
|
2746
2711
|
}
|
|
2747
2712
|
var o = this.tryParseLeftAngleBracket();
|
|
@@ -2753,12 +2718,12 @@ var An = (
|
|
|
2753
2718
|
}
|
|
2754
2719
|
var l = b(n, this.clonePosition());
|
|
2755
2720
|
return {
|
|
2756
|
-
val: { type:
|
|
2721
|
+
val: { type: x.literal, value: i, location: l },
|
|
2757
2722
|
err: null
|
|
2758
2723
|
};
|
|
2759
2724
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2760
2725
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2761
|
-
!
|
|
2726
|
+
!_n(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2762
2727
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2763
2728
|
if (this.isEOF() || this.char() !== 39)
|
|
2764
2729
|
return null;
|
|
@@ -2792,28 +2757,28 @@ var An = (
|
|
|
2792
2757
|
r.push(n);
|
|
2793
2758
|
this.bump();
|
|
2794
2759
|
}
|
|
2795
|
-
return
|
|
2760
|
+
return Re.apply(void 0, r);
|
|
2796
2761
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2797
2762
|
if (this.isEOF())
|
|
2798
2763
|
return null;
|
|
2799
2764
|
var n = this.char();
|
|
2800
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2765
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Re(n));
|
|
2801
2766
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2802
2767
|
var n = this.clonePosition();
|
|
2803
2768
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2804
|
-
return this.error(
|
|
2769
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2805
2770
|
if (this.char() === 125)
|
|
2806
|
-
return this.bump(), this.error(
|
|
2771
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
2807
2772
|
var i = this.parseIdentifierIfPossible().value;
|
|
2808
2773
|
if (!i)
|
|
2809
|
-
return this.error(
|
|
2774
|
+
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2810
2775
|
if (this.bumpSpace(), this.isEOF())
|
|
2811
|
-
return this.error(
|
|
2776
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2812
2777
|
switch (this.char()) {
|
|
2813
2778
|
case 125:
|
|
2814
2779
|
return this.bump(), {
|
|
2815
2780
|
val: {
|
|
2816
|
-
type:
|
|
2781
|
+
type: x.argument,
|
|
2817
2782
|
// value does not include the opening and closing braces.
|
|
2818
2783
|
value: i,
|
|
2819
2784
|
location: b(n, this.clonePosition())
|
|
@@ -2821,71 +2786,71 @@ var An = (
|
|
|
2821
2786
|
err: null
|
|
2822
2787
|
};
|
|
2823
2788
|
case 44:
|
|
2824
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2789
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2825
2790
|
default:
|
|
2826
|
-
return this.error(
|
|
2791
|
+
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2827
2792
|
}
|
|
2828
2793
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2829
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2794
|
+
var t = this.clonePosition(), r = this.offset(), n = Ue(this.message, r), i = r + n.length;
|
|
2830
2795
|
this.bumpTo(i);
|
|
2831
|
-
var s = this.clonePosition(),
|
|
2832
|
-
return { value: n, location:
|
|
2796
|
+
var s = this.clonePosition(), u = b(t, s);
|
|
2797
|
+
return { value: n, location: u };
|
|
2833
2798
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2834
|
-
var s,
|
|
2799
|
+
var s, u = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2835
2800
|
switch (o) {
|
|
2836
2801
|
case "":
|
|
2837
|
-
return this.error(
|
|
2802
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, b(u, l));
|
|
2838
2803
|
case "number":
|
|
2839
2804
|
case "date":
|
|
2840
2805
|
case "time": {
|
|
2841
2806
|
this.bumpSpace();
|
|
2842
|
-
var
|
|
2807
|
+
var a = null;
|
|
2843
2808
|
if (this.bumpIf(",")) {
|
|
2844
2809
|
this.bumpSpace();
|
|
2845
|
-
var
|
|
2810
|
+
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2846
2811
|
if (f.err)
|
|
2847
2812
|
return f;
|
|
2848
|
-
var c =
|
|
2813
|
+
var c = bn(f.val);
|
|
2849
2814
|
if (c.length === 0)
|
|
2850
|
-
return this.error(
|
|
2851
|
-
var
|
|
2852
|
-
|
|
2815
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2816
|
+
var d = b(h, this.clonePosition());
|
|
2817
|
+
a = { style: c, styleLocation: d };
|
|
2853
2818
|
}
|
|
2854
2819
|
var m = this.tryParseArgumentClose(i);
|
|
2855
2820
|
if (m.err)
|
|
2856
2821
|
return m;
|
|
2857
2822
|
var g = b(i, this.clonePosition());
|
|
2858
|
-
if (
|
|
2859
|
-
var v =
|
|
2823
|
+
if (a && rt(a?.style, "::", 0)) {
|
|
2824
|
+
var v = pn(a.style.slice(2));
|
|
2860
2825
|
if (o === "number") {
|
|
2861
|
-
var f = this.parseNumberSkeletonFromString(v,
|
|
2826
|
+
var f = this.parseNumberSkeletonFromString(v, a.styleLocation);
|
|
2862
2827
|
return f.err ? f : {
|
|
2863
|
-
val: { type:
|
|
2828
|
+
val: { type: x.number, value: n, location: g, style: f.val },
|
|
2864
2829
|
err: null
|
|
2865
2830
|
};
|
|
2866
2831
|
} else {
|
|
2867
2832
|
if (v.length === 0)
|
|
2868
|
-
return this.error(
|
|
2869
|
-
var
|
|
2870
|
-
this.locale && (
|
|
2833
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
|
|
2834
|
+
var L = v;
|
|
2835
|
+
this.locale && (L = tn(v, this.locale));
|
|
2871
2836
|
var c = {
|
|
2872
|
-
type:
|
|
2873
|
-
pattern:
|
|
2874
|
-
location:
|
|
2875
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2876
|
-
},
|
|
2837
|
+
type: k.dateTime,
|
|
2838
|
+
pattern: L,
|
|
2839
|
+
location: a.styleLocation,
|
|
2840
|
+
parsedOptions: this.shouldParseSkeletons ? Zr(L) : {}
|
|
2841
|
+
}, A = o === "date" ? x.date : x.time;
|
|
2877
2842
|
return {
|
|
2878
|
-
val: { type:
|
|
2843
|
+
val: { type: A, value: n, location: g, style: c },
|
|
2879
2844
|
err: null
|
|
2880
2845
|
};
|
|
2881
2846
|
}
|
|
2882
2847
|
}
|
|
2883
2848
|
return {
|
|
2884
2849
|
val: {
|
|
2885
|
-
type: o === "number" ?
|
|
2850
|
+
type: o === "number" ? x.number : o === "date" ? x.date : x.time,
|
|
2886
2851
|
value: n,
|
|
2887
2852
|
location: g,
|
|
2888
|
-
style: (s =
|
|
2853
|
+
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
2889
2854
|
},
|
|
2890
2855
|
err: null
|
|
2891
2856
|
};
|
|
@@ -2895,50 +2860,50 @@ var An = (
|
|
|
2895
2860
|
case "select": {
|
|
2896
2861
|
var H = this.clonePosition();
|
|
2897
2862
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2898
|
-
return this.error(
|
|
2863
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, y({}, H)));
|
|
2899
2864
|
this.bumpSpace();
|
|
2900
|
-
var
|
|
2901
|
-
if (o !== "select" &&
|
|
2865
|
+
var N = this.parseIdentifierIfPossible(), T = 0;
|
|
2866
|
+
if (o !== "select" && N.value === "offset") {
|
|
2902
2867
|
if (!this.bumpIf(":"))
|
|
2903
|
-
return this.error(
|
|
2868
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2904
2869
|
this.bumpSpace();
|
|
2905
|
-
var f = this.tryParseDecimalInteger(
|
|
2870
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2906
2871
|
if (f.err)
|
|
2907
2872
|
return f;
|
|
2908
|
-
this.bumpSpace(),
|
|
2873
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), T = f.val;
|
|
2909
2874
|
}
|
|
2910
|
-
var
|
|
2911
|
-
if (
|
|
2912
|
-
return
|
|
2875
|
+
var $ = this.tryParsePluralOrSelectOptions(t, o, r, N);
|
|
2876
|
+
if ($.err)
|
|
2877
|
+
return $;
|
|
2913
2878
|
var m = this.tryParseArgumentClose(i);
|
|
2914
2879
|
if (m.err)
|
|
2915
2880
|
return m;
|
|
2916
|
-
var
|
|
2881
|
+
var ie = b(i, this.clonePosition());
|
|
2917
2882
|
return o === "select" ? {
|
|
2918
2883
|
val: {
|
|
2919
|
-
type:
|
|
2884
|
+
type: x.select,
|
|
2920
2885
|
value: n,
|
|
2921
|
-
options:
|
|
2922
|
-
location:
|
|
2886
|
+
options: nt($.val),
|
|
2887
|
+
location: ie
|
|
2923
2888
|
},
|
|
2924
2889
|
err: null
|
|
2925
2890
|
} : {
|
|
2926
2891
|
val: {
|
|
2927
|
-
type:
|
|
2892
|
+
type: x.plural,
|
|
2928
2893
|
value: n,
|
|
2929
|
-
options:
|
|
2930
|
-
offset:
|
|
2894
|
+
options: nt($.val),
|
|
2895
|
+
offset: T,
|
|
2931
2896
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2932
|
-
location:
|
|
2897
|
+
location: ie
|
|
2933
2898
|
},
|
|
2934
2899
|
err: null
|
|
2935
2900
|
};
|
|
2936
2901
|
}
|
|
2937
2902
|
default:
|
|
2938
|
-
return this.error(
|
|
2903
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, b(u, l));
|
|
2939
2904
|
}
|
|
2940
2905
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2941
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2906
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2942
2907
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2943
2908
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2944
2909
|
var n = this.char();
|
|
@@ -2947,7 +2912,7 @@ var An = (
|
|
|
2947
2912
|
this.bump();
|
|
2948
2913
|
var i = this.clonePosition();
|
|
2949
2914
|
if (!this.bumpUntil("'"))
|
|
2950
|
-
return this.error(
|
|
2915
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
2951
2916
|
this.bump();
|
|
2952
2917
|
break;
|
|
2953
2918
|
}
|
|
@@ -2977,64 +2942,64 @@ var An = (
|
|
|
2977
2942
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2978
2943
|
var n = [];
|
|
2979
2944
|
try {
|
|
2980
|
-
n =
|
|
2981
|
-
} catch
|
|
2982
|
-
return this.error(
|
|
2945
|
+
n = Jr(t);
|
|
2946
|
+
} catch {
|
|
2947
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
2983
2948
|
}
|
|
2984
2949
|
return {
|
|
2985
2950
|
val: {
|
|
2986
|
-
type:
|
|
2951
|
+
type: k.number,
|
|
2987
2952
|
tokens: n,
|
|
2988
2953
|
location: r,
|
|
2989
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2954
|
+
parsedOptions: this.shouldParseSkeletons ? en(n) : {}
|
|
2990
2955
|
},
|
|
2991
2956
|
err: null
|
|
2992
2957
|
};
|
|
2993
2958
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2994
|
-
for (var s,
|
|
2995
|
-
if (
|
|
2959
|
+
for (var s, u = !1, o = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
|
|
2960
|
+
if (a.length === 0) {
|
|
2996
2961
|
var f = this.clonePosition();
|
|
2997
2962
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2998
|
-
var c = this.tryParseDecimalInteger(
|
|
2963
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2999
2964
|
if (c.err)
|
|
3000
2965
|
return c;
|
|
3001
|
-
|
|
2966
|
+
h = b(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
|
|
3002
2967
|
} else
|
|
3003
2968
|
break;
|
|
3004
2969
|
}
|
|
3005
|
-
if (l.has(
|
|
3006
|
-
return this.error(r === "select" ?
|
|
3007
|
-
|
|
3008
|
-
var
|
|
2970
|
+
if (l.has(a))
|
|
2971
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2972
|
+
a === "other" && (u = !0), this.bumpSpace();
|
|
2973
|
+
var d = this.clonePosition();
|
|
3009
2974
|
if (!this.bumpIf("{"))
|
|
3010
|
-
return this.error(r === "select" ?
|
|
2975
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
3011
2976
|
var m = this.parseMessage(t + 1, r, n);
|
|
3012
2977
|
if (m.err)
|
|
3013
2978
|
return m;
|
|
3014
|
-
var g = this.tryParseArgumentClose(
|
|
2979
|
+
var g = this.tryParseArgumentClose(d);
|
|
3015
2980
|
if (g.err)
|
|
3016
2981
|
return g;
|
|
3017
2982
|
o.push([
|
|
3018
|
-
|
|
2983
|
+
a,
|
|
3019
2984
|
{
|
|
3020
2985
|
value: m.val,
|
|
3021
|
-
location: b(
|
|
2986
|
+
location: b(d, this.clonePosition())
|
|
3022
2987
|
}
|
|
3023
|
-
]), l.add(
|
|
2988
|
+
]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
|
|
3024
2989
|
}
|
|
3025
|
-
return o.length === 0 ? this.error(r === "select" ?
|
|
2990
|
+
return o.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(p.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3026
2991
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3027
2992
|
var n = 1, i = this.clonePosition();
|
|
3028
2993
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3029
|
-
for (var s = !1,
|
|
2994
|
+
for (var s = !1, u = 0; !this.isEOF(); ) {
|
|
3030
2995
|
var o = this.char();
|
|
3031
2996
|
if (o >= 48 && o <= 57)
|
|
3032
|
-
s = !0,
|
|
2997
|
+
s = !0, u = u * 10 + (o - 48), this.bump();
|
|
3033
2998
|
else
|
|
3034
2999
|
break;
|
|
3035
3000
|
}
|
|
3036
3001
|
var l = b(i, this.clonePosition());
|
|
3037
|
-
return s ? (
|
|
3002
|
+
return s ? (u *= n, mn(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3038
3003
|
}, e.prototype.offset = function() {
|
|
3039
3004
|
return this.position.offset;
|
|
3040
3005
|
}, e.prototype.isEOF = function() {
|
|
@@ -3049,7 +3014,7 @@ var An = (
|
|
|
3049
3014
|
var t = this.position.offset;
|
|
3050
3015
|
if (t >= this.message.length)
|
|
3051
3016
|
throw Error("out of bound");
|
|
3052
|
-
var r =
|
|
3017
|
+
var r = Dt(this.message, t);
|
|
3053
3018
|
if (r === void 0)
|
|
3054
3019
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3055
3020
|
return r;
|
|
@@ -3068,7 +3033,7 @@ var An = (
|
|
|
3068
3033
|
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);
|
|
3069
3034
|
}
|
|
3070
3035
|
}, e.prototype.bumpIf = function(t) {
|
|
3071
|
-
if (
|
|
3036
|
+
if (rt(this.message, t, this.offset())) {
|
|
3072
3037
|
for (var r = 0; r < t.length; r++)
|
|
3073
3038
|
this.bump();
|
|
3074
3039
|
return !0;
|
|
@@ -3090,56 +3055,56 @@ var An = (
|
|
|
3090
3055
|
break;
|
|
3091
3056
|
}
|
|
3092
3057
|
}, e.prototype.bumpSpace = function() {
|
|
3093
|
-
for (; !this.isEOF() &&
|
|
3058
|
+
for (; !this.isEOF() && Ft(this.char()); )
|
|
3094
3059
|
this.bump();
|
|
3095
3060
|
}, e.prototype.peek = function() {
|
|
3096
3061
|
if (this.isEOF())
|
|
3097
3062
|
return null;
|
|
3098
3063
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3099
|
-
return n
|
|
3064
|
+
return n ?? null;
|
|
3100
3065
|
}, e;
|
|
3101
3066
|
}()
|
|
3102
3067
|
);
|
|
3103
|
-
function
|
|
3068
|
+
function De(e) {
|
|
3104
3069
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3105
3070
|
}
|
|
3106
|
-
function
|
|
3107
|
-
return
|
|
3071
|
+
function _n(e) {
|
|
3072
|
+
return De(e) || e === 47;
|
|
3108
3073
|
}
|
|
3109
|
-
function
|
|
3074
|
+
function yn(e) {
|
|
3110
3075
|
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;
|
|
3111
3076
|
}
|
|
3112
|
-
function
|
|
3077
|
+
function Ft(e) {
|
|
3113
3078
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3114
3079
|
}
|
|
3115
|
-
function
|
|
3080
|
+
function xn(e) {
|
|
3116
3081
|
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;
|
|
3117
3082
|
}
|
|
3118
|
-
function
|
|
3083
|
+
function Ge(e) {
|
|
3119
3084
|
e.forEach(function(t) {
|
|
3120
|
-
if (delete t.location,
|
|
3085
|
+
if (delete t.location, Pt(t) || Lt(t))
|
|
3121
3086
|
for (var r in t.options)
|
|
3122
|
-
delete t.options[r].location,
|
|
3123
|
-
else
|
|
3087
|
+
delete t.options[r].location, Ge(t.options[r].value);
|
|
3088
|
+
else At(t) && It(t.style) || (Ct(t) || Ot(t)) && Me(t.style) ? delete t.style.location : Nt(t) && Ge(t.children);
|
|
3124
3089
|
});
|
|
3125
3090
|
}
|
|
3126
|
-
function
|
|
3091
|
+
function En(e, t) {
|
|
3127
3092
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3128
|
-
var r = new
|
|
3093
|
+
var r = new gn(e, t).parse();
|
|
3129
3094
|
if (r.err) {
|
|
3130
|
-
var n = SyntaxError(
|
|
3095
|
+
var n = SyntaxError(p[r.err.kind]);
|
|
3131
3096
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3132
3097
|
}
|
|
3133
|
-
return t
|
|
3098
|
+
return t?.captureLocation || Ge(r.val), r.val;
|
|
3134
3099
|
}
|
|
3135
|
-
var
|
|
3100
|
+
var V;
|
|
3136
3101
|
(function(e) {
|
|
3137
3102
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3138
|
-
})(
|
|
3139
|
-
var
|
|
3103
|
+
})(V || (V = {}));
|
|
3104
|
+
var ge = (
|
|
3140
3105
|
/** @class */
|
|
3141
3106
|
function(e) {
|
|
3142
|
-
|
|
3107
|
+
be(t, e);
|
|
3143
3108
|
function t(r, n, i) {
|
|
3144
3109
|
var s = e.call(this, r) || this;
|
|
3145
3110
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3148,155 +3113,155 @@ var _e = (
|
|
|
3148
3113
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3149
3114
|
}, t;
|
|
3150
3115
|
}(Error)
|
|
3151
|
-
),
|
|
3116
|
+
), st = (
|
|
3152
3117
|
/** @class */
|
|
3153
3118
|
function(e) {
|
|
3154
|
-
|
|
3119
|
+
be(t, e);
|
|
3155
3120
|
function t(r, n, i, s) {
|
|
3156
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3121
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, s) || this;
|
|
3157
3122
|
}
|
|
3158
3123
|
return t;
|
|
3159
|
-
}(
|
|
3160
|
-
),
|
|
3124
|
+
}(ge)
|
|
3125
|
+
), vn = (
|
|
3161
3126
|
/** @class */
|
|
3162
3127
|
function(e) {
|
|
3163
|
-
|
|
3128
|
+
be(t, e);
|
|
3164
3129
|
function t(r, n, i) {
|
|
3165
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3130
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
|
3166
3131
|
}
|
|
3167
3132
|
return t;
|
|
3168
|
-
}(
|
|
3169
|
-
),
|
|
3133
|
+
}(ge)
|
|
3134
|
+
), Hn = (
|
|
3170
3135
|
/** @class */
|
|
3171
3136
|
function(e) {
|
|
3172
|
-
|
|
3137
|
+
be(t, e);
|
|
3173
3138
|
function t(r, n) {
|
|
3174
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3139
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
|
|
3175
3140
|
}
|
|
3176
3141
|
return t;
|
|
3177
|
-
}(
|
|
3178
|
-
),
|
|
3142
|
+
}(ge)
|
|
3143
|
+
), E;
|
|
3179
3144
|
(function(e) {
|
|
3180
3145
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3181
|
-
})(
|
|
3182
|
-
function
|
|
3146
|
+
})(E || (E = {}));
|
|
3147
|
+
function Bn(e) {
|
|
3183
3148
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3184
3149
|
var n = t[t.length - 1];
|
|
3185
|
-
return !n || n.type !==
|
|
3150
|
+
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3186
3151
|
}, []);
|
|
3187
3152
|
}
|
|
3188
|
-
function
|
|
3153
|
+
function Tn(e) {
|
|
3189
3154
|
return typeof e == "function";
|
|
3190
3155
|
}
|
|
3191
|
-
function
|
|
3192
|
-
if (e.length === 1 &&
|
|
3156
|
+
function he(e, t, r, n, i, s, u) {
|
|
3157
|
+
if (e.length === 1 && Ye(e[0]))
|
|
3193
3158
|
return [
|
|
3194
3159
|
{
|
|
3195
|
-
type:
|
|
3160
|
+
type: E.literal,
|
|
3196
3161
|
value: e[0].value
|
|
3197
3162
|
}
|
|
3198
3163
|
];
|
|
3199
|
-
for (var o = [], l = 0,
|
|
3200
|
-
var
|
|
3201
|
-
if (
|
|
3164
|
+
for (var o = [], l = 0, a = e; l < a.length; l++) {
|
|
3165
|
+
var h = a[l];
|
|
3166
|
+
if (Ye(h)) {
|
|
3202
3167
|
o.push({
|
|
3203
|
-
type:
|
|
3204
|
-
value:
|
|
3168
|
+
type: E.literal,
|
|
3169
|
+
value: h.value
|
|
3205
3170
|
});
|
|
3206
3171
|
continue;
|
|
3207
3172
|
}
|
|
3208
|
-
if (
|
|
3173
|
+
if (Wr(h)) {
|
|
3209
3174
|
typeof s == "number" && o.push({
|
|
3210
|
-
type:
|
|
3175
|
+
type: E.literal,
|
|
3211
3176
|
value: r.getNumberFormat(t).format(s)
|
|
3212
3177
|
});
|
|
3213
3178
|
continue;
|
|
3214
3179
|
}
|
|
3215
|
-
var f =
|
|
3180
|
+
var f = h.value;
|
|
3216
3181
|
if (!(i && f in i))
|
|
3217
|
-
throw new
|
|
3182
|
+
throw new Hn(f, u);
|
|
3218
3183
|
var c = i[f];
|
|
3219
|
-
if (
|
|
3184
|
+
if (Xr(h)) {
|
|
3220
3185
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3221
|
-
type: typeof c == "string" ?
|
|
3186
|
+
type: typeof c == "string" ? E.literal : E.object,
|
|
3222
3187
|
value: c
|
|
3223
3188
|
});
|
|
3224
3189
|
continue;
|
|
3225
3190
|
}
|
|
3226
|
-
if (
|
|
3227
|
-
var
|
|
3191
|
+
if (Ct(h)) {
|
|
3192
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Me(h.style) ? h.style.parsedOptions : void 0;
|
|
3228
3193
|
o.push({
|
|
3229
|
-
type:
|
|
3230
|
-
value: r.getDateTimeFormat(t,
|
|
3194
|
+
type: E.literal,
|
|
3195
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3231
3196
|
});
|
|
3232
3197
|
continue;
|
|
3233
3198
|
}
|
|
3234
|
-
if (
|
|
3235
|
-
var
|
|
3199
|
+
if (Ot(h)) {
|
|
3200
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Me(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3236
3201
|
o.push({
|
|
3237
|
-
type:
|
|
3238
|
-
value: r.getDateTimeFormat(t,
|
|
3202
|
+
type: E.literal,
|
|
3203
|
+
value: r.getDateTimeFormat(t, d).format(c)
|
|
3239
3204
|
});
|
|
3240
3205
|
continue;
|
|
3241
3206
|
}
|
|
3242
|
-
if (
|
|
3243
|
-
var
|
|
3244
|
-
|
|
3245
|
-
type:
|
|
3246
|
-
value: r.getNumberFormat(t,
|
|
3207
|
+
if (At(h)) {
|
|
3208
|
+
var d = typeof h.style == "string" ? n.number[h.style] : It(h.style) ? h.style.parsedOptions : void 0;
|
|
3209
|
+
d && d.scale && (c = c * (d.scale || 1)), o.push({
|
|
3210
|
+
type: E.literal,
|
|
3211
|
+
value: r.getNumberFormat(t, d).format(c)
|
|
3247
3212
|
});
|
|
3248
3213
|
continue;
|
|
3249
3214
|
}
|
|
3250
|
-
if (
|
|
3251
|
-
var m =
|
|
3252
|
-
if (
|
|
3253
|
-
throw new
|
|
3254
|
-
var
|
|
3255
|
-
return
|
|
3215
|
+
if (Nt(h)) {
|
|
3216
|
+
var m = h.children, g = h.value, v = i[g];
|
|
3217
|
+
if (!Tn(v))
|
|
3218
|
+
throw new vn(g, "function", u);
|
|
3219
|
+
var L = he(m, t, r, n, i, s), A = v(L.map(function(T) {
|
|
3220
|
+
return T.value;
|
|
3256
3221
|
}));
|
|
3257
|
-
Array.isArray(
|
|
3222
|
+
Array.isArray(A) || (A = [A]), o.push.apply(o, A.map(function(T) {
|
|
3258
3223
|
return {
|
|
3259
|
-
type: typeof
|
|
3260
|
-
value:
|
|
3224
|
+
type: typeof T == "string" ? E.literal : E.object,
|
|
3225
|
+
value: T
|
|
3261
3226
|
};
|
|
3262
3227
|
}));
|
|
3263
3228
|
}
|
|
3264
|
-
if (
|
|
3265
|
-
var H =
|
|
3229
|
+
if (Pt(h)) {
|
|
3230
|
+
var H = h.options[c] || h.options.other;
|
|
3266
3231
|
if (!H)
|
|
3267
|
-
throw new
|
|
3268
|
-
o.push.apply(o,
|
|
3232
|
+
throw new st(h.value, c, Object.keys(h.options), u);
|
|
3233
|
+
o.push.apply(o, he(H.value, t, r, n, i));
|
|
3269
3234
|
continue;
|
|
3270
3235
|
}
|
|
3271
|
-
if (
|
|
3272
|
-
var H =
|
|
3236
|
+
if (Lt(h)) {
|
|
3237
|
+
var H = h.options["=".concat(c)];
|
|
3273
3238
|
if (!H) {
|
|
3274
3239
|
if (!Intl.PluralRules)
|
|
3275
|
-
throw new
|
|
3240
|
+
throw new ge(`Intl.PluralRules is not available in this environment.
|
|
3276
3241
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3277
|
-
`,
|
|
3278
|
-
var
|
|
3279
|
-
H =
|
|
3242
|
+
`, V.MISSING_INTL_API, u);
|
|
3243
|
+
var N = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3244
|
+
H = h.options[N] || h.options.other;
|
|
3280
3245
|
}
|
|
3281
3246
|
if (!H)
|
|
3282
|
-
throw new
|
|
3283
|
-
o.push.apply(o,
|
|
3247
|
+
throw new st(h.value, c, Object.keys(h.options), u);
|
|
3248
|
+
o.push.apply(o, he(H.value, t, r, n, i, c - (h.offset || 0)));
|
|
3284
3249
|
continue;
|
|
3285
3250
|
}
|
|
3286
3251
|
}
|
|
3287
|
-
return
|
|
3252
|
+
return Bn(o);
|
|
3288
3253
|
}
|
|
3289
|
-
function
|
|
3254
|
+
function wn(e, t) {
|
|
3290
3255
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3291
3256
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3292
3257
|
}, {})) : e;
|
|
3293
3258
|
}
|
|
3294
|
-
function
|
|
3259
|
+
function Sn(e, t) {
|
|
3295
3260
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3296
|
-
return r[n] =
|
|
3261
|
+
return r[n] = wn(e[n], t[n]), r;
|
|
3297
3262
|
}, y({}, e)) : e;
|
|
3298
3263
|
}
|
|
3299
|
-
function
|
|
3264
|
+
function Ce(e) {
|
|
3300
3265
|
return {
|
|
3301
3266
|
create: function() {
|
|
3302
3267
|
return {
|
|
@@ -3310,39 +3275,39 @@ function Pe(e) {
|
|
|
3310
3275
|
}
|
|
3311
3276
|
};
|
|
3312
3277
|
}
|
|
3313
|
-
function
|
|
3278
|
+
function An(e) {
|
|
3314
3279
|
return e === void 0 && (e = {
|
|
3315
3280
|
number: {},
|
|
3316
3281
|
dateTime: {},
|
|
3317
3282
|
pluralRules: {}
|
|
3318
3283
|
}), {
|
|
3319
|
-
getNumberFormat:
|
|
3284
|
+
getNumberFormat: we(function() {
|
|
3320
3285
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3321
3286
|
r[n] = arguments[n];
|
|
3322
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3287
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Te([void 0], r, !1)))();
|
|
3323
3288
|
}, {
|
|
3324
|
-
cache:
|
|
3325
|
-
strategy:
|
|
3289
|
+
cache: Ce(e.number),
|
|
3290
|
+
strategy: Se.variadic
|
|
3326
3291
|
}),
|
|
3327
|
-
getDateTimeFormat:
|
|
3292
|
+
getDateTimeFormat: we(function() {
|
|
3328
3293
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3329
3294
|
r[n] = arguments[n];
|
|
3330
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3295
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Te([void 0], r, !1)))();
|
|
3331
3296
|
}, {
|
|
3332
|
-
cache:
|
|
3333
|
-
strategy:
|
|
3297
|
+
cache: Ce(e.dateTime),
|
|
3298
|
+
strategy: Se.variadic
|
|
3334
3299
|
}),
|
|
3335
|
-
getPluralRules:
|
|
3300
|
+
getPluralRules: we(function() {
|
|
3336
3301
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3337
3302
|
r[n] = arguments[n];
|
|
3338
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3303
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Te([void 0], r, !1)))();
|
|
3339
3304
|
}, {
|
|
3340
|
-
cache:
|
|
3341
|
-
strategy:
|
|
3305
|
+
cache: Ce(e.pluralRules),
|
|
3306
|
+
strategy: Se.variadic
|
|
3342
3307
|
})
|
|
3343
3308
|
};
|
|
3344
3309
|
}
|
|
3345
|
-
var
|
|
3310
|
+
var jt = (
|
|
3346
3311
|
/** @class */
|
|
3347
3312
|
function() {
|
|
3348
3313
|
function e(t, r, n, i) {
|
|
@@ -3353,15 +3318,15 @@ var Qt = (
|
|
|
3353
3318
|
dateTime: {},
|
|
3354
3319
|
pluralRules: {}
|
|
3355
3320
|
}, this.format = function(l) {
|
|
3356
|
-
var
|
|
3357
|
-
if (
|
|
3358
|
-
return
|
|
3359
|
-
var
|
|
3360
|
-
return !f.length || c.type !==
|
|
3321
|
+
var a = s.formatToParts(l);
|
|
3322
|
+
if (a.length === 1)
|
|
3323
|
+
return a[0].value;
|
|
3324
|
+
var h = a.reduce(function(f, c) {
|
|
3325
|
+
return !f.length || c.type !== E.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3361
3326
|
}, []);
|
|
3362
|
-
return
|
|
3327
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
3363
3328
|
}, this.formatToParts = function(l) {
|
|
3364
|
-
return
|
|
3329
|
+
return he(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3365
3330
|
}, this.resolvedOptions = function() {
|
|
3366
3331
|
var l;
|
|
3367
3332
|
return {
|
|
@@ -3372,15 +3337,15 @@ var Qt = (
|
|
|
3372
3337
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3373
3338
|
if (this.message = t, !e.__parse)
|
|
3374
3339
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3375
|
-
var
|
|
3376
|
-
|
|
3377
|
-
var o =
|
|
3340
|
+
var u = i || {};
|
|
3341
|
+
u.formatters;
|
|
3342
|
+
var o = Rr(u, ["formatters"]);
|
|
3378
3343
|
this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
|
|
3379
3344
|
} else
|
|
3380
3345
|
this.ast = t;
|
|
3381
3346
|
if (!Array.isArray(this.ast))
|
|
3382
3347
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3383
|
-
this.formats =
|
|
3348
|
+
this.formats = Sn(e.formats, n), this.formatters = i && i.formatters || An(this.formatterCache);
|
|
3384
3349
|
}
|
|
3385
3350
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3386
3351
|
get: function() {
|
|
@@ -3389,11 +3354,11 @@ var Qt = (
|
|
|
3389
3354
|
enumerable: !1,
|
|
3390
3355
|
configurable: !0
|
|
3391
3356
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3392
|
-
if (typeof Intl.Locale
|
|
3357
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
3393
3358
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3394
3359
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3395
3360
|
}
|
|
3396
|
-
}, e.__parse =
|
|
3361
|
+
}, e.__parse = En, e.formats = {
|
|
3397
3362
|
number: {
|
|
3398
3363
|
integer: {
|
|
3399
3364
|
maximumFractionDigits: 0
|
|
@@ -3454,7 +3419,7 @@ var Qt = (
|
|
|
3454
3419
|
}, e;
|
|
3455
3420
|
}()
|
|
3456
3421
|
);
|
|
3457
|
-
function
|
|
3422
|
+
function Cn(e, t) {
|
|
3458
3423
|
if (t == null)
|
|
3459
3424
|
return;
|
|
3460
3425
|
if (t in e)
|
|
@@ -3475,101 +3440,101 @@ function Gn(e, t) {
|
|
|
3475
3440
|
n = void 0;
|
|
3476
3441
|
return n;
|
|
3477
3442
|
}
|
|
3478
|
-
const
|
|
3443
|
+
const C = {}, On = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), kt = (e, t) => {
|
|
3479
3444
|
if (t == null)
|
|
3480
3445
|
return;
|
|
3481
|
-
if (t in
|
|
3482
|
-
return
|
|
3483
|
-
const r =
|
|
3446
|
+
if (t in C && e in C[t])
|
|
3447
|
+
return C[t][e];
|
|
3448
|
+
const r = ne(t);
|
|
3484
3449
|
for (let n = 0; n < r.length; n++) {
|
|
3485
|
-
const i = r[n], s =
|
|
3450
|
+
const i = r[n], s = Ln(i, e);
|
|
3486
3451
|
if (s)
|
|
3487
|
-
return
|
|
3452
|
+
return On(e, t, s);
|
|
3488
3453
|
}
|
|
3489
3454
|
};
|
|
3490
|
-
let
|
|
3491
|
-
const
|
|
3492
|
-
function
|
|
3493
|
-
return
|
|
3455
|
+
let We;
|
|
3456
|
+
const re = pe({});
|
|
3457
|
+
function Pn(e) {
|
|
3458
|
+
return We[e] || null;
|
|
3494
3459
|
}
|
|
3495
|
-
function
|
|
3496
|
-
return e in
|
|
3460
|
+
function Vt(e) {
|
|
3461
|
+
return e in We;
|
|
3497
3462
|
}
|
|
3498
|
-
function
|
|
3499
|
-
if (!
|
|
3463
|
+
function Ln(e, t) {
|
|
3464
|
+
if (!Vt(e))
|
|
3500
3465
|
return null;
|
|
3501
|
-
const r =
|
|
3502
|
-
return
|
|
3466
|
+
const r = Pn(e);
|
|
3467
|
+
return Cn(r, t);
|
|
3503
3468
|
}
|
|
3504
|
-
function
|
|
3469
|
+
function Nn(e) {
|
|
3505
3470
|
if (e == null)
|
|
3506
3471
|
return;
|
|
3507
|
-
const t =
|
|
3472
|
+
const t = ne(e);
|
|
3508
3473
|
for (let r = 0; r < t.length; r++) {
|
|
3509
3474
|
const n = t[r];
|
|
3510
|
-
if (
|
|
3475
|
+
if (Vt(n))
|
|
3511
3476
|
return n;
|
|
3512
3477
|
}
|
|
3513
3478
|
}
|
|
3514
|
-
function
|
|
3515
|
-
delete
|
|
3479
|
+
function Xt(e, ...t) {
|
|
3480
|
+
delete C[e], re.update((r) => (r[e] = $r.all([r[e] || {}, ...t]), r));
|
|
3516
3481
|
}
|
|
3517
|
-
|
|
3518
|
-
[
|
|
3482
|
+
z(
|
|
3483
|
+
[re],
|
|
3519
3484
|
([e]) => Object.keys(e)
|
|
3520
3485
|
);
|
|
3521
|
-
|
|
3522
|
-
const
|
|
3523
|
-
function
|
|
3524
|
-
|
|
3486
|
+
re.subscribe((e) => We = e);
|
|
3487
|
+
const le = {};
|
|
3488
|
+
function In(e, t) {
|
|
3489
|
+
le[e].delete(t), le[e].size === 0 && delete le[e];
|
|
3525
3490
|
}
|
|
3526
|
-
function
|
|
3527
|
-
return
|
|
3491
|
+
function Wt(e) {
|
|
3492
|
+
return le[e];
|
|
3528
3493
|
}
|
|
3529
|
-
function
|
|
3530
|
-
return
|
|
3531
|
-
const r =
|
|
3494
|
+
function Mn(e) {
|
|
3495
|
+
return ne(e).map((t) => {
|
|
3496
|
+
const r = Wt(t);
|
|
3532
3497
|
return [t, r ? [...r] : []];
|
|
3533
3498
|
}).filter(([, t]) => t.length > 0);
|
|
3534
3499
|
}
|
|
3535
|
-
function
|
|
3536
|
-
return e == null ? !1 :
|
|
3500
|
+
function ce(e) {
|
|
3501
|
+
return e == null ? !1 : ne(e).some(
|
|
3537
3502
|
(t) => {
|
|
3538
3503
|
var r;
|
|
3539
|
-
return (r =
|
|
3504
|
+
return (r = Wt(t)) == null ? void 0 : r.size;
|
|
3540
3505
|
}
|
|
3541
3506
|
);
|
|
3542
3507
|
}
|
|
3543
|
-
function
|
|
3508
|
+
function $n(e, t) {
|
|
3544
3509
|
return Promise.all(
|
|
3545
|
-
t.map((n) => (
|
|
3546
|
-
).then((n) =>
|
|
3547
|
-
}
|
|
3548
|
-
const
|
|
3549
|
-
function
|
|
3550
|
-
if (!
|
|
3551
|
-
return e in
|
|
3552
|
-
const t =
|
|
3553
|
-
return
|
|
3510
|
+
t.map((n) => (In(e, n), n().then((i) => i.default || i)))
|
|
3511
|
+
).then((n) => Xt(e, ...n));
|
|
3512
|
+
}
|
|
3513
|
+
const Q = {};
|
|
3514
|
+
function zt(e) {
|
|
3515
|
+
if (!ce(e))
|
|
3516
|
+
return e in Q ? Q[e] : Promise.resolve();
|
|
3517
|
+
const t = Mn(e);
|
|
3518
|
+
return Q[e] = Promise.all(
|
|
3554
3519
|
t.map(
|
|
3555
|
-
([r, n]) =>
|
|
3520
|
+
([r, n]) => $n(r, n)
|
|
3556
3521
|
)
|
|
3557
3522
|
).then(() => {
|
|
3558
|
-
if (
|
|
3559
|
-
return
|
|
3560
|
-
delete
|
|
3561
|
-
}),
|
|
3523
|
+
if (ce(e))
|
|
3524
|
+
return zt(e);
|
|
3525
|
+
delete Q[e];
|
|
3526
|
+
}), Q[e];
|
|
3562
3527
|
}
|
|
3563
|
-
var
|
|
3528
|
+
var ot = Object.getOwnPropertySymbols, Rn = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, Dn = (e, t) => {
|
|
3564
3529
|
var r = {};
|
|
3565
3530
|
for (var n in e)
|
|
3566
|
-
|
|
3567
|
-
if (e != null &&
|
|
3568
|
-
for (var n of
|
|
3569
|
-
t.indexOf(n) < 0 &&
|
|
3531
|
+
Rn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3532
|
+
if (e != null && ot)
|
|
3533
|
+
for (var n of ot(e))
|
|
3534
|
+
t.indexOf(n) < 0 && Un.call(e, n) && (r[n] = e[n]);
|
|
3570
3535
|
return r;
|
|
3571
3536
|
};
|
|
3572
|
-
const
|
|
3537
|
+
const Gn = {
|
|
3573
3538
|
number: {
|
|
3574
3539
|
scientific: { notation: "scientific" },
|
|
3575
3540
|
engineering: { notation: "engineering" },
|
|
@@ -3599,183 +3564,183 @@ const qn = {
|
|
|
3599
3564
|
}
|
|
3600
3565
|
}
|
|
3601
3566
|
};
|
|
3602
|
-
function
|
|
3567
|
+
function Fn({ locale: e, id: t }) {
|
|
3603
3568
|
console.warn(
|
|
3604
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3569
|
+
`[svelte-i18n] The message "${t}" was not found in "${ne(
|
|
3605
3570
|
e
|
|
3606
|
-
).join('", "')}".${
|
|
3571
|
+
).join('", "')}".${ce(P()) ? `
|
|
3607
3572
|
|
|
3608
3573
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3609
3574
|
);
|
|
3610
3575
|
}
|
|
3611
|
-
const
|
|
3576
|
+
const jn = {
|
|
3612
3577
|
fallbackLocale: null,
|
|
3613
3578
|
loadingDelay: 200,
|
|
3614
|
-
formats:
|
|
3579
|
+
formats: Gn,
|
|
3615
3580
|
warnOnMissingMessages: !0,
|
|
3616
3581
|
handleMissingMessage: void 0,
|
|
3617
3582
|
ignoreTag: !0
|
|
3618
|
-
},
|
|
3619
|
-
function
|
|
3620
|
-
return
|
|
3583
|
+
}, J = jn;
|
|
3584
|
+
function X() {
|
|
3585
|
+
return J;
|
|
3621
3586
|
}
|
|
3622
|
-
function
|
|
3623
|
-
const t = e, { formats: r } = t, n =
|
|
3587
|
+
function kn(e) {
|
|
3588
|
+
const t = e, { formats: r } = t, n = Dn(t, ["formats"]);
|
|
3624
3589
|
let i = e.fallbackLocale;
|
|
3625
3590
|
if (e.initialLocale)
|
|
3626
3591
|
try {
|
|
3627
|
-
|
|
3628
|
-
} catch
|
|
3592
|
+
jt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3593
|
+
} catch {
|
|
3629
3594
|
console.warn(
|
|
3630
3595
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3631
3596
|
);
|
|
3632
3597
|
}
|
|
3633
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3598
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Fn : console.warn(
|
|
3634
3599
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3635
|
-
)), Object.assign(
|
|
3636
|
-
}
|
|
3637
|
-
const
|
|
3638
|
-
var
|
|
3639
|
-
for (var r in t
|
|
3640
|
-
|
|
3641
|
-
if (
|
|
3642
|
-
for (var r of
|
|
3643
|
-
|
|
3600
|
+
)), Object.assign(J, n, { initialLocale: i }), r && ("number" in r && Object.assign(J.formats.number, r.number), "date" in r && Object.assign(J.formats.date, r.date), "time" in r && Object.assign(J.formats.time, r.time)), M.set(i);
|
|
3601
|
+
}
|
|
3602
|
+
const Oe = pe(!1);
|
|
3603
|
+
var Vn = Object.defineProperty, Xn = Object.defineProperties, Wn = Object.getOwnPropertyDescriptors, at = Object.getOwnPropertySymbols, zn = Object.prototype.hasOwnProperty, Zn = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? Vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qn = (e, t) => {
|
|
3604
|
+
for (var r in t)
|
|
3605
|
+
zn.call(t, r) && ut(e, r, t[r]);
|
|
3606
|
+
if (at)
|
|
3607
|
+
for (var r of at(t))
|
|
3608
|
+
Zn.call(t, r) && ut(e, r, t[r]);
|
|
3644
3609
|
return e;
|
|
3645
|
-
},
|
|
3646
|
-
let
|
|
3647
|
-
const
|
|
3648
|
-
function
|
|
3610
|
+
}, Jn = (e, t) => Xn(e, Wn(t));
|
|
3611
|
+
let Fe;
|
|
3612
|
+
const me = pe(null);
|
|
3613
|
+
function ht(e) {
|
|
3649
3614
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3650
3615
|
}
|
|
3651
|
-
function
|
|
3652
|
-
const r =
|
|
3653
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3616
|
+
function ne(e, t = X().fallbackLocale) {
|
|
3617
|
+
const r = ht(e);
|
|
3618
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ht(t)])] : r;
|
|
3654
3619
|
}
|
|
3655
|
-
function
|
|
3656
|
-
return
|
|
3620
|
+
function P() {
|
|
3621
|
+
return Fe ?? void 0;
|
|
3657
3622
|
}
|
|
3658
|
-
|
|
3659
|
-
|
|
3623
|
+
me.subscribe((e) => {
|
|
3624
|
+
Fe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3660
3625
|
});
|
|
3661
|
-
const
|
|
3662
|
-
if (e &&
|
|
3663
|
-
const { loadingDelay: t } =
|
|
3626
|
+
const qn = (e) => {
|
|
3627
|
+
if (e && Nn(e) && ce(e)) {
|
|
3628
|
+
const { loadingDelay: t } = X();
|
|
3664
3629
|
let r;
|
|
3665
|
-
return typeof window
|
|
3666
|
-
() =>
|
|
3630
|
+
return typeof window < "u" && P() != null && t ? r = window.setTimeout(
|
|
3631
|
+
() => Oe.set(!0),
|
|
3667
3632
|
t
|
|
3668
|
-
) :
|
|
3669
|
-
|
|
3633
|
+
) : Oe.set(!0), zt(e).then(() => {
|
|
3634
|
+
me.set(e);
|
|
3670
3635
|
}).finally(() => {
|
|
3671
|
-
clearTimeout(r),
|
|
3636
|
+
clearTimeout(r), Oe.set(!1);
|
|
3672
3637
|
});
|
|
3673
3638
|
}
|
|
3674
|
-
return
|
|
3675
|
-
},
|
|
3676
|
-
set:
|
|
3677
|
-
}),
|
|
3639
|
+
return me.set(e);
|
|
3640
|
+
}, M = Jn(Qn({}, me), {
|
|
3641
|
+
set: qn
|
|
3642
|
+
}), _e = (e) => {
|
|
3678
3643
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3679
3644
|
return (n) => {
|
|
3680
3645
|
const i = JSON.stringify(n);
|
|
3681
3646
|
return i in t ? t[i] : t[i] = e(n);
|
|
3682
3647
|
};
|
|
3683
3648
|
};
|
|
3684
|
-
var
|
|
3649
|
+
var Yn = Object.defineProperty, de = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ze = (e, t) => {
|
|
3685
3650
|
for (var r in t || (t = {}))
|
|
3686
|
-
|
|
3651
|
+
Zt.call(t, r) && lt(e, r, t[r]);
|
|
3687
3652
|
if (de)
|
|
3688
3653
|
for (var r of de(t))
|
|
3689
|
-
|
|
3654
|
+
Qt.call(t, r) && lt(e, r, t[r]);
|
|
3690
3655
|
return e;
|
|
3691
|
-
},
|
|
3656
|
+
}, Z = (e, t) => {
|
|
3692
3657
|
var r = {};
|
|
3693
3658
|
for (var n in e)
|
|
3694
|
-
|
|
3659
|
+
Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3695
3660
|
if (e != null && de)
|
|
3696
3661
|
for (var n of de(e))
|
|
3697
|
-
t.indexOf(n) < 0 &&
|
|
3662
|
+
t.indexOf(n) < 0 && Qt.call(e, n) && (r[n] = e[n]);
|
|
3698
3663
|
return r;
|
|
3699
3664
|
};
|
|
3700
|
-
const
|
|
3701
|
-
const { formats: r } =
|
|
3665
|
+
const K = (e, t) => {
|
|
3666
|
+
const { formats: r } = X();
|
|
3702
3667
|
if (e in r && t in r[e])
|
|
3703
3668
|
return r[e][t];
|
|
3704
3669
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3705
|
-
},
|
|
3670
|
+
}, Kn = _e(
|
|
3706
3671
|
(e) => {
|
|
3707
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3672
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3708
3673
|
if (r == null)
|
|
3709
3674
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3710
|
-
return n && (i =
|
|
3675
|
+
return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
|
|
3711
3676
|
}
|
|
3712
|
-
),
|
|
3677
|
+
), ei = _e(
|
|
3713
3678
|
(e) => {
|
|
3714
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3679
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3715
3680
|
if (r == null)
|
|
3716
3681
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3717
|
-
return n ? i =
|
|
3682
|
+
return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3718
3683
|
}
|
|
3719
|
-
),
|
|
3684
|
+
), ti = _e(
|
|
3720
3685
|
(e) => {
|
|
3721
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3686
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3722
3687
|
if (r == null)
|
|
3723
3688
|
throw new Error(
|
|
3724
3689
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3725
3690
|
);
|
|
3726
|
-
return n ? i =
|
|
3691
|
+
return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3727
3692
|
}
|
|
3728
|
-
),
|
|
3693
|
+
), ri = (e = {}) => {
|
|
3729
3694
|
var t = e, {
|
|
3730
|
-
locale: r =
|
|
3731
|
-
} = t, n =
|
|
3695
|
+
locale: r = P()
|
|
3696
|
+
} = t, n = Z(t, [
|
|
3732
3697
|
"locale"
|
|
3733
3698
|
]);
|
|
3734
|
-
return
|
|
3735
|
-
},
|
|
3699
|
+
return Kn(ze({ locale: r }, n));
|
|
3700
|
+
}, ni = (e = {}) => {
|
|
3736
3701
|
var t = e, {
|
|
3737
|
-
locale: r =
|
|
3738
|
-
} = t, n =
|
|
3702
|
+
locale: r = P()
|
|
3703
|
+
} = t, n = Z(t, [
|
|
3739
3704
|
"locale"
|
|
3740
3705
|
]);
|
|
3741
|
-
return
|
|
3742
|
-
},
|
|
3706
|
+
return ei(ze({ locale: r }, n));
|
|
3707
|
+
}, ii = (e = {}) => {
|
|
3743
3708
|
var t = e, {
|
|
3744
|
-
locale: r =
|
|
3745
|
-
} = t, n =
|
|
3709
|
+
locale: r = P()
|
|
3710
|
+
} = t, n = Z(t, [
|
|
3746
3711
|
"locale"
|
|
3747
3712
|
]);
|
|
3748
|
-
return
|
|
3749
|
-
},
|
|
3713
|
+
return ti(ze({ locale: r }, n));
|
|
3714
|
+
}, si = _e(
|
|
3750
3715
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3751
|
-
(e, t =
|
|
3752
|
-
ignoreTag:
|
|
3716
|
+
(e, t = P()) => new jt(e, t, X().formats, {
|
|
3717
|
+
ignoreTag: X().ignoreTag
|
|
3753
3718
|
})
|
|
3754
|
-
),
|
|
3719
|
+
), oi = (e, t = {}) => {
|
|
3755
3720
|
var r, n, i, s;
|
|
3756
|
-
let
|
|
3757
|
-
typeof e == "object" && (
|
|
3721
|
+
let u = t;
|
|
3722
|
+
typeof e == "object" && (u = e, e = u.id);
|
|
3758
3723
|
const {
|
|
3759
3724
|
values: o,
|
|
3760
|
-
locale: l =
|
|
3761
|
-
default:
|
|
3762
|
-
} =
|
|
3725
|
+
locale: l = P(),
|
|
3726
|
+
default: a
|
|
3727
|
+
} = u;
|
|
3763
3728
|
if (l == null)
|
|
3764
3729
|
throw new Error(
|
|
3765
3730
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3766
3731
|
);
|
|
3767
|
-
let
|
|
3768
|
-
if (!
|
|
3769
|
-
|
|
3770
|
-
else if (typeof
|
|
3732
|
+
let h = kt(e, l);
|
|
3733
|
+
if (!h)
|
|
3734
|
+
h = (s = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3735
|
+
else if (typeof h != "string")
|
|
3771
3736
|
return console.warn(
|
|
3772
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3773
|
-
),
|
|
3737
|
+
`[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.`
|
|
3738
|
+
), h;
|
|
3774
3739
|
if (!o)
|
|
3775
|
-
return
|
|
3776
|
-
let f =
|
|
3740
|
+
return h;
|
|
3741
|
+
let f = h;
|
|
3777
3742
|
try {
|
|
3778
|
-
f =
|
|
3743
|
+
f = si(h, l).format(o);
|
|
3779
3744
|
} catch (c) {
|
|
3780
3745
|
c instanceof Error && console.warn(
|
|
3781
3746
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3783,20 +3748,20 @@ const ee = (e, t) => {
|
|
|
3783
3748
|
);
|
|
3784
3749
|
}
|
|
3785
3750
|
return f;
|
|
3786
|
-
},
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
function
|
|
3792
|
-
|
|
3793
|
-
}
|
|
3794
|
-
function
|
|
3795
|
-
|
|
3751
|
+
}, ai = (e, t) => ii(t).format(e), ui = (e, t) => ni(t).format(e), hi = (e, t) => ri(t).format(e), li = (e, t = P()) => kt(e, t), fi = z([M, re], () => oi);
|
|
3752
|
+
z([M], () => ai);
|
|
3753
|
+
z([M], () => ui);
|
|
3754
|
+
z([M], () => hi);
|
|
3755
|
+
z([M, re], () => li);
|
|
3756
|
+
function ft(e, t) {
|
|
3757
|
+
Xt(e, t);
|
|
3758
|
+
}
|
|
3759
|
+
function ci(e) {
|
|
3760
|
+
kn({
|
|
3796
3761
|
fallbackLocale: "en"
|
|
3797
|
-
}),
|
|
3762
|
+
}), M.set(e);
|
|
3798
3763
|
}
|
|
3799
|
-
const
|
|
3764
|
+
const ct = {
|
|
3800
3765
|
en: {
|
|
3801
3766
|
header: {
|
|
3802
3767
|
general: "Cashier",
|
|
@@ -3819,52 +3784,52 @@ const yt = {
|
|
|
3819
3784
|
}
|
|
3820
3785
|
}
|
|
3821
3786
|
};
|
|
3822
|
-
function
|
|
3823
|
-
|
|
3787
|
+
function mi(e) {
|
|
3788
|
+
rr(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}");
|
|
3824
3789
|
}
|
|
3825
|
-
const
|
|
3826
|
-
function
|
|
3790
|
+
const di = (e) => ({}), mt = (e) => ({}), pi = (e) => ({}), dt = (e) => ({}), bi = (e) => ({}), pt = (e) => ({});
|
|
3791
|
+
function bt(e) {
|
|
3827
3792
|
let t, r, n;
|
|
3828
3793
|
return {
|
|
3829
3794
|
c() {
|
|
3830
|
-
t = W("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>',
|
|
3795
|
+
t = W("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");
|
|
3831
3796
|
},
|
|
3832
3797
|
m(i, s) {
|
|
3833
|
-
|
|
3798
|
+
I(i, t, s), r || (n = Ht(
|
|
3834
3799
|
t,
|
|
3835
3800
|
"click",
|
|
3836
3801
|
/*back*/
|
|
3837
3802
|
e[6]
|
|
3838
3803
|
), r = !0);
|
|
3839
3804
|
},
|
|
3840
|
-
p:
|
|
3805
|
+
p: B,
|
|
3841
3806
|
d(i) {
|
|
3842
|
-
i &&
|
|
3807
|
+
i && O(t), r = !1, n();
|
|
3843
3808
|
}
|
|
3844
3809
|
};
|
|
3845
3810
|
}
|
|
3846
|
-
function
|
|
3811
|
+
function gi(e) {
|
|
3847
3812
|
let t, r = (
|
|
3848
3813
|
/*backButton*/
|
|
3849
|
-
e[1] &&
|
|
3814
|
+
e[1] && bt(e)
|
|
3850
3815
|
);
|
|
3851
3816
|
return {
|
|
3852
3817
|
c() {
|
|
3853
|
-
r && r.c(), t =
|
|
3818
|
+
r && r.c(), t = vt();
|
|
3854
3819
|
},
|
|
3855
3820
|
m(n, i) {
|
|
3856
|
-
r && r.m(n, i),
|
|
3821
|
+
r && r.m(n, i), I(n, t, i);
|
|
3857
3822
|
},
|
|
3858
3823
|
p(n, i) {
|
|
3859
3824
|
/*backButton*/
|
|
3860
|
-
n[1] ? r ? r.p(n, i) : (r =
|
|
3825
|
+
n[1] ? r ? r.p(n, i) : (r = bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3861
3826
|
},
|
|
3862
3827
|
d(n) {
|
|
3863
|
-
n &&
|
|
3828
|
+
n && O(t), r && r.d(n);
|
|
3864
3829
|
}
|
|
3865
3830
|
};
|
|
3866
3831
|
}
|
|
3867
|
-
function
|
|
3832
|
+
function _i(e) {
|
|
3868
3833
|
let t, r = (
|
|
3869
3834
|
/*$_*/
|
|
3870
3835
|
e[4](
|
|
@@ -3874,10 +3839,10 @@ function Ci(e) {
|
|
|
3874
3839
|
), n;
|
|
3875
3840
|
return {
|
|
3876
3841
|
c() {
|
|
3877
|
-
t = W("span"), n =
|
|
3842
|
+
t = W("span"), n = ke(r), te(t, "class", "CashierHeaderTitle");
|
|
3878
3843
|
},
|
|
3879
3844
|
m(i, s) {
|
|
3880
|
-
|
|
3845
|
+
I(i, t, s), fe(t, n);
|
|
3881
3846
|
},
|
|
3882
3847
|
p(i, s) {
|
|
3883
3848
|
s & /*$_, titleText*/
|
|
@@ -3885,249 +3850,249 @@ function Ci(e) {
|
|
|
3885
3850
|
i[4](
|
|
3886
3851
|
/*titleText*/
|
|
3887
3852
|
i[2]
|
|
3888
|
-
) + "") &&
|
|
3853
|
+
) + "") && or(n, r);
|
|
3889
3854
|
},
|
|
3890
3855
|
d(i) {
|
|
3891
|
-
i &&
|
|
3856
|
+
i && O(t);
|
|
3892
3857
|
}
|
|
3893
3858
|
};
|
|
3894
3859
|
}
|
|
3895
|
-
function
|
|
3860
|
+
function gt(e) {
|
|
3896
3861
|
let t, r, n;
|
|
3897
3862
|
return {
|
|
3898
3863
|
c() {
|
|
3899
|
-
t = W("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>',
|
|
3864
|
+
t = W("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");
|
|
3900
3865
|
},
|
|
3901
3866
|
m(i, s) {
|
|
3902
|
-
|
|
3867
|
+
I(i, t, s), r || (n = Ht(
|
|
3903
3868
|
t,
|
|
3904
3869
|
"click",
|
|
3905
3870
|
/*close*/
|
|
3906
3871
|
e[5]
|
|
3907
3872
|
), r = !0);
|
|
3908
3873
|
},
|
|
3909
|
-
p:
|
|
3874
|
+
p: B,
|
|
3910
3875
|
d(i) {
|
|
3911
|
-
i &&
|
|
3876
|
+
i && O(t), r = !1, n();
|
|
3912
3877
|
}
|
|
3913
3878
|
};
|
|
3914
3879
|
}
|
|
3915
|
-
function
|
|
3880
|
+
function yi(e) {
|
|
3916
3881
|
let t, r = (
|
|
3917
3882
|
/*closeButton*/
|
|
3918
|
-
e[3] &&
|
|
3883
|
+
e[3] && gt(e)
|
|
3919
3884
|
);
|
|
3920
3885
|
return {
|
|
3921
3886
|
c() {
|
|
3922
|
-
r && r.c(), t =
|
|
3887
|
+
r && r.c(), t = vt();
|
|
3923
3888
|
},
|
|
3924
3889
|
m(n, i) {
|
|
3925
|
-
r && r.m(n, i),
|
|
3890
|
+
r && r.m(n, i), I(n, t, i);
|
|
3926
3891
|
},
|
|
3927
3892
|
p(n, i) {
|
|
3928
3893
|
/*closeButton*/
|
|
3929
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
3894
|
+
n[3] ? r ? r.p(n, i) : (r = gt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3930
3895
|
},
|
|
3931
3896
|
d(n) {
|
|
3932
|
-
n &&
|
|
3897
|
+
n && O(t), r && r.d(n);
|
|
3933
3898
|
}
|
|
3934
3899
|
};
|
|
3935
3900
|
}
|
|
3936
|
-
function
|
|
3901
|
+
function xi(e) {
|
|
3937
3902
|
let t, r, n, i;
|
|
3938
3903
|
const s = (
|
|
3939
3904
|
/*#slots*/
|
|
3940
3905
|
e[15].leftButton
|
|
3941
|
-
),
|
|
3906
|
+
), u = ye(
|
|
3942
3907
|
s,
|
|
3943
3908
|
e,
|
|
3944
3909
|
/*$$scope*/
|
|
3945
3910
|
e[14],
|
|
3946
|
-
|
|
3947
|
-
), o =
|
|
3911
|
+
pt
|
|
3912
|
+
), o = u || gi(e), l = (
|
|
3948
3913
|
/*#slots*/
|
|
3949
3914
|
e[15].title
|
|
3950
|
-
),
|
|
3915
|
+
), a = ye(
|
|
3951
3916
|
l,
|
|
3952
3917
|
e,
|
|
3953
3918
|
/*$$scope*/
|
|
3954
3919
|
e[14],
|
|
3955
|
-
|
|
3956
|
-
),
|
|
3920
|
+
dt
|
|
3921
|
+
), h = a || _i(e), f = (
|
|
3957
3922
|
/*#slots*/
|
|
3958
3923
|
e[15].rightButton
|
|
3959
|
-
), c =
|
|
3924
|
+
), c = ye(
|
|
3960
3925
|
f,
|
|
3961
3926
|
e,
|
|
3962
3927
|
/*$$scope*/
|
|
3963
3928
|
e[14],
|
|
3964
|
-
|
|
3965
|
-
),
|
|
3929
|
+
mt
|
|
3930
|
+
), d = c || yi(e);
|
|
3966
3931
|
return {
|
|
3967
3932
|
c() {
|
|
3968
|
-
t = W("div"), o
|
|
3933
|
+
t = W("div"), o.c(), r = Qe(), h.c(), n = Qe(), d.c(), te(t, "class", "CashierHeader");
|
|
3969
3934
|
},
|
|
3970
3935
|
m(m, g) {
|
|
3971
|
-
|
|
3936
|
+
I(m, t, g), o.m(t, null), fe(t, r), h.m(t, null), fe(t, n), d.m(t, null), e[16](t), i = !0;
|
|
3972
3937
|
},
|
|
3973
3938
|
p(m, [g]) {
|
|
3974
|
-
|
|
3975
|
-
16384) &&
|
|
3976
|
-
|
|
3939
|
+
u ? u.p && (!i || g & /*$$scope*/
|
|
3940
|
+
16384) && Ee(
|
|
3941
|
+
u,
|
|
3977
3942
|
s,
|
|
3978
3943
|
m,
|
|
3979
3944
|
/*$$scope*/
|
|
3980
3945
|
m[14],
|
|
3981
|
-
i ?
|
|
3946
|
+
i ? xe(
|
|
3982
3947
|
s,
|
|
3983
3948
|
/*$$scope*/
|
|
3984
3949
|
m[14],
|
|
3985
3950
|
g,
|
|
3986
|
-
|
|
3987
|
-
) :
|
|
3951
|
+
bi
|
|
3952
|
+
) : ve(
|
|
3988
3953
|
/*$$scope*/
|
|
3989
3954
|
m[14]
|
|
3990
3955
|
),
|
|
3991
|
-
|
|
3992
|
-
) : o
|
|
3993
|
-
2) && o.p(m, i ? g : -1),
|
|
3994
|
-
16384) &&
|
|
3995
|
-
|
|
3956
|
+
pt
|
|
3957
|
+
) : o.p && (!i || g & /*backButton*/
|
|
3958
|
+
2) && o.p(m, i ? g : -1), a ? a.p && (!i || g & /*$$scope*/
|
|
3959
|
+
16384) && Ee(
|
|
3960
|
+
a,
|
|
3996
3961
|
l,
|
|
3997
3962
|
m,
|
|
3998
3963
|
/*$$scope*/
|
|
3999
3964
|
m[14],
|
|
4000
|
-
i ?
|
|
3965
|
+
i ? xe(
|
|
4001
3966
|
l,
|
|
4002
3967
|
/*$$scope*/
|
|
4003
3968
|
m[14],
|
|
4004
3969
|
g,
|
|
4005
|
-
|
|
4006
|
-
) :
|
|
3970
|
+
pi
|
|
3971
|
+
) : ve(
|
|
4007
3972
|
/*$$scope*/
|
|
4008
3973
|
m[14]
|
|
4009
3974
|
),
|
|
4010
|
-
|
|
4011
|
-
) :
|
|
4012
|
-
20) &&
|
|
4013
|
-
16384) &&
|
|
3975
|
+
dt
|
|
3976
|
+
) : h.p && (!i || g & /*$_, titleText*/
|
|
3977
|
+
20) && h.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
|
|
3978
|
+
16384) && Ee(
|
|
4014
3979
|
c,
|
|
4015
3980
|
f,
|
|
4016
3981
|
m,
|
|
4017
3982
|
/*$$scope*/
|
|
4018
3983
|
m[14],
|
|
4019
|
-
i ?
|
|
3984
|
+
i ? xe(
|
|
4020
3985
|
f,
|
|
4021
3986
|
/*$$scope*/
|
|
4022
3987
|
m[14],
|
|
4023
3988
|
g,
|
|
4024
|
-
|
|
4025
|
-
) :
|
|
3989
|
+
di
|
|
3990
|
+
) : ve(
|
|
4026
3991
|
/*$$scope*/
|
|
4027
3992
|
m[14]
|
|
4028
3993
|
),
|
|
4029
|
-
|
|
4030
|
-
) :
|
|
4031
|
-
8) &&
|
|
3994
|
+
mt
|
|
3995
|
+
) : d.p && (!i || g & /*closeButton*/
|
|
3996
|
+
8) && d.p(m, i ? g : -1);
|
|
4032
3997
|
},
|
|
4033
3998
|
i(m) {
|
|
4034
|
-
i || (
|
|
3999
|
+
i || (ae(o, m), ae(h, m), ae(d, m), i = !0);
|
|
4035
4000
|
},
|
|
4036
4001
|
o(m) {
|
|
4037
|
-
|
|
4002
|
+
Be(o, m), Be(h, m), Be(d, m), i = !1;
|
|
4038
4003
|
},
|
|
4039
4004
|
d(m) {
|
|
4040
|
-
m &&
|
|
4005
|
+
m && O(t), o.d(m), h.d(m), d.d(m), e[16](null);
|
|
4041
4006
|
}
|
|
4042
4007
|
};
|
|
4043
4008
|
}
|
|
4044
|
-
function
|
|
4009
|
+
function Ei(e, t, r) {
|
|
4045
4010
|
let n;
|
|
4046
|
-
|
|
4047
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling:
|
|
4048
|
-
const
|
|
4011
|
+
tr(e, fi, (_) => r(4, n = _));
|
|
4012
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: u = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: a = "" } = t, { title: h = "header.general" } = t, { lang: f = "en" } = t, { showclosebutton: c = "" } = t, d, m = !1, g, v = !1;
|
|
4013
|
+
const L = () => {
|
|
4049
4014
|
let _ = l;
|
|
4050
|
-
_ && fetch(_).then((
|
|
4051
|
-
Object.keys(
|
|
4052
|
-
|
|
4015
|
+
_ && fetch(_).then((w) => w.json()).then((w) => {
|
|
4016
|
+
Object.keys(w).forEach((R) => {
|
|
4017
|
+
ft(R, w[R]);
|
|
4053
4018
|
});
|
|
4054
|
-
}).catch((
|
|
4055
|
-
console.log(
|
|
4019
|
+
}).catch((w) => {
|
|
4020
|
+
console.log(w);
|
|
4056
4021
|
});
|
|
4057
4022
|
};
|
|
4058
|
-
Object.keys(
|
|
4059
|
-
|
|
4023
|
+
Object.keys(ct).forEach((_) => {
|
|
4024
|
+
ft(_, ct[_]);
|
|
4060
4025
|
});
|
|
4061
|
-
const
|
|
4026
|
+
const A = () => {
|
|
4062
4027
|
let _ = document.createElement("style");
|
|
4063
|
-
_.innerHTML =
|
|
4028
|
+
_.innerHTML = u, d.appendChild(_);
|
|
4064
4029
|
}, H = () => {
|
|
4065
|
-
let _ = new URL(o),
|
|
4066
|
-
fetch(_.href).then((
|
|
4067
|
-
|
|
4030
|
+
let _ = new URL(o), w = document.createElement("style");
|
|
4031
|
+
fetch(_.href).then((R) => R.text()).then((R) => {
|
|
4032
|
+
w.innerHTML = R, setTimeout(
|
|
4068
4033
|
() => {
|
|
4069
|
-
|
|
4034
|
+
d.appendChild(w);
|
|
4070
4035
|
},
|
|
4071
4036
|
1
|
|
4072
4037
|
);
|
|
4073
4038
|
});
|
|
4074
|
-
},
|
|
4075
|
-
|
|
4076
|
-
},
|
|
4039
|
+
}, N = () => {
|
|
4040
|
+
ci(f);
|
|
4041
|
+
}, T = () => {
|
|
4077
4042
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4078
|
-
},
|
|
4043
|
+
}, $ = () => {
|
|
4079
4044
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4080
|
-
},
|
|
4081
|
-
r(1, m = !!
|
|
4082
|
-
},
|
|
4045
|
+
}, ie = () => {
|
|
4046
|
+
r(1, m = !!a && a !== "false");
|
|
4047
|
+
}, Jt = () => {
|
|
4083
4048
|
r(3, v = !!c && c !== "false");
|
|
4084
|
-
},
|
|
4085
|
-
r(2, g =
|
|
4049
|
+
}, qt = () => {
|
|
4050
|
+
r(2, g = h || "header.general");
|
|
4086
4051
|
};
|
|
4087
|
-
function
|
|
4088
|
-
|
|
4089
|
-
|
|
4052
|
+
function Yt(_) {
|
|
4053
|
+
Pe[_ ? "unshift" : "push"](() => {
|
|
4054
|
+
d = _, r(0, d);
|
|
4090
4055
|
});
|
|
4091
4056
|
}
|
|
4092
4057
|
return e.$$set = (_) => {
|
|
4093
|
-
"clientstyling" in _ && r(7,
|
|
4058
|
+
"clientstyling" in _ && r(7, u = _.clientstyling), "clientstylingurl" in _ && r(8, o = _.clientstylingurl), "translationurl" in _ && r(9, l = _.translationurl), "showbackbutton" in _ && r(10, a = _.showbackbutton), "title" in _ && r(11, h = _.title), "lang" in _ && r(12, f = _.lang), "showclosebutton" in _ && r(13, c = _.showclosebutton), "$$scope" in _ && r(14, s = _.$$scope);
|
|
4094
4059
|
}, e.$$.update = () => {
|
|
4095
4060
|
e.$$.dirty & /*lang*/
|
|
4096
|
-
4096 && f &&
|
|
4097
|
-
6144 && f &&
|
|
4098
|
-
129 &&
|
|
4099
|
-
257 && o &&
|
|
4100
|
-
4608 && f && l &&
|
|
4101
|
-
1024 &&
|
|
4102
|
-
8192 && c &&
|
|
4061
|
+
4096 && f && N(), e.$$.dirty & /*lang, title*/
|
|
4062
|
+
6144 && f && h && qt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4063
|
+
129 && u && d && A(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4064
|
+
257 && o && d && H(), e.$$.dirty & /*lang, translationurl*/
|
|
4065
|
+
4608 && f && l && L(), e.$$.dirty & /*showbackbutton*/
|
|
4066
|
+
1024 && a && ie(), e.$$.dirty & /*showclosebutton*/
|
|
4067
|
+
8192 && c && Jt();
|
|
4103
4068
|
}, [
|
|
4104
|
-
|
|
4069
|
+
d,
|
|
4105
4070
|
m,
|
|
4106
4071
|
g,
|
|
4107
4072
|
v,
|
|
4108
4073
|
n,
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4074
|
+
T,
|
|
4075
|
+
$,
|
|
4076
|
+
u,
|
|
4112
4077
|
o,
|
|
4113
4078
|
l,
|
|
4079
|
+
a,
|
|
4114
4080
|
h,
|
|
4115
|
-
u,
|
|
4116
4081
|
f,
|
|
4117
4082
|
c,
|
|
4118
4083
|
s,
|
|
4119
4084
|
i,
|
|
4120
|
-
|
|
4085
|
+
Yt
|
|
4121
4086
|
];
|
|
4122
4087
|
}
|
|
4123
|
-
class
|
|
4088
|
+
class vi extends _r {
|
|
4124
4089
|
constructor(t) {
|
|
4125
|
-
super(),
|
|
4090
|
+
super(), br(
|
|
4126
4091
|
this,
|
|
4127
4092
|
t,
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4093
|
+
Ei,
|
|
4094
|
+
xi,
|
|
4095
|
+
yt,
|
|
4131
4096
|
{
|
|
4132
4097
|
clientstyling: 7,
|
|
4133
4098
|
clientstylingurl: 8,
|
|
@@ -4137,53 +4102,53 @@ class Ni extends Or {
|
|
|
4137
4102
|
lang: 12,
|
|
4138
4103
|
showclosebutton: 13
|
|
4139
4104
|
},
|
|
4140
|
-
|
|
4105
|
+
mi
|
|
4141
4106
|
);
|
|
4142
4107
|
}
|
|
4143
4108
|
get clientstyling() {
|
|
4144
4109
|
return this.$$.ctx[7];
|
|
4145
4110
|
}
|
|
4146
4111
|
set clientstyling(t) {
|
|
4147
|
-
this.$$set({ clientstyling: t }),
|
|
4112
|
+
this.$$set({ clientstyling: t }), S();
|
|
4148
4113
|
}
|
|
4149
4114
|
get clientstylingurl() {
|
|
4150
4115
|
return this.$$.ctx[8];
|
|
4151
4116
|
}
|
|
4152
4117
|
set clientstylingurl(t) {
|
|
4153
|
-
this.$$set({ clientstylingurl: t }),
|
|
4118
|
+
this.$$set({ clientstylingurl: t }), S();
|
|
4154
4119
|
}
|
|
4155
4120
|
get translationurl() {
|
|
4156
4121
|
return this.$$.ctx[9];
|
|
4157
4122
|
}
|
|
4158
4123
|
set translationurl(t) {
|
|
4159
|
-
this.$$set({ translationurl: t }),
|
|
4124
|
+
this.$$set({ translationurl: t }), S();
|
|
4160
4125
|
}
|
|
4161
4126
|
get showbackbutton() {
|
|
4162
4127
|
return this.$$.ctx[10];
|
|
4163
4128
|
}
|
|
4164
4129
|
set showbackbutton(t) {
|
|
4165
|
-
this.$$set({ showbackbutton: t }),
|
|
4130
|
+
this.$$set({ showbackbutton: t }), S();
|
|
4166
4131
|
}
|
|
4167
4132
|
get title() {
|
|
4168
4133
|
return this.$$.ctx[11];
|
|
4169
4134
|
}
|
|
4170
4135
|
set title(t) {
|
|
4171
|
-
this.$$set({ title: t }),
|
|
4136
|
+
this.$$set({ title: t }), S();
|
|
4172
4137
|
}
|
|
4173
4138
|
get lang() {
|
|
4174
4139
|
return this.$$.ctx[12];
|
|
4175
4140
|
}
|
|
4176
4141
|
set lang(t) {
|
|
4177
|
-
this.$$set({ lang: t }),
|
|
4142
|
+
this.$$set({ lang: t }), S();
|
|
4178
4143
|
}
|
|
4179
4144
|
get showclosebutton() {
|
|
4180
4145
|
return this.$$.ctx[13];
|
|
4181
4146
|
}
|
|
4182
4147
|
set showclosebutton(t) {
|
|
4183
|
-
this.$$set({ showclosebutton: t }),
|
|
4148
|
+
this.$$set({ showclosebutton: t }), S();
|
|
4184
4149
|
}
|
|
4185
4150
|
}
|
|
4186
|
-
|
|
4151
|
+
gr(vi, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4187
4152
|
export {
|
|
4188
|
-
|
|
4153
|
+
vi as C
|
|
4189
4154
|
};
|