@everymatrix/cashier-header 1.54.0 → 1.54.2
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,102 +1,73 @@
|
|
|
1
|
-
|
|
2
|
-
var ar = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var Je = Object.getOwnPropertySymbols;
|
|
4
|
-
var ur = Object.prototype.hasOwnProperty, hr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var xe = (e, t, r) => t in e ? sr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
6
|
-
for (var r in t || (t = {}))
|
|
7
|
-
ur.call(t, r) && xe(e, r, t[r]);
|
|
8
|
-
if (Je)
|
|
9
|
-
for (var r of Je(t))
|
|
10
|
-
hr.call(t, r) && xe(e, r, t[r]);
|
|
11
|
-
return e;
|
|
12
|
-
}, Ye = (e, t) => or(e, ar(t));
|
|
13
|
-
var B = (e, t, r) => xe(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var Ke = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var s = (l) => {
|
|
16
|
-
try {
|
|
17
|
-
a(r.next(l));
|
|
18
|
-
} catch (u) {
|
|
19
|
-
i(u);
|
|
20
|
-
}
|
|
21
|
-
}, o = (l) => {
|
|
22
|
-
try {
|
|
23
|
-
a(r.throw(l));
|
|
24
|
-
} catch (u) {
|
|
25
|
-
i(u);
|
|
26
|
-
}
|
|
27
|
-
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, o);
|
|
28
|
-
a((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
|
|
86
|
-
s[
|
|
55
|
+
const s = [], u = Math.max(t.dirty.length, i.length);
|
|
56
|
+
for (let o = 0; o < u; o += 1)
|
|
57
|
+
s[o] = t.dirty[o] | i[o];
|
|
87
58
|
return s;
|
|
88
59
|
}
|
|
89
60
|
return t.dirty | i;
|
|
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
|
-
const i =
|
|
115
|
-
i.id = t, i.textContent = r,
|
|
85
|
+
const i = W("style");
|
|
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
|
-
function
|
|
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 _r(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 Sr(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
268
239
|
after_update: [],
|
|
269
240
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
270
241
|
// everything else
|
|
271
|
-
callbacks:
|
|
272
|
-
dirty:
|
|
242
|
+
callbacks: Ze(),
|
|
243
|
+
dirty: o,
|
|
273
244
|
skip_bound: !1,
|
|
274
245
|
root: t.target || l.$$.root
|
|
275
246
|
};
|
|
276
|
-
|
|
247
|
+
u && u(a.root);
|
|
277
248
|
let h = !1;
|
|
278
|
-
if (
|
|
249
|
+
if (a.ctx = r(e, t.props || {}, (f, c, ...d) => {
|
|
279
250
|
const m = d.length ? d[0] : c;
|
|
280
|
-
return
|
|
281
|
-
}),
|
|
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 o = he(
|
|
376
|
-
s,
|
|
377
|
-
this.$$d[s],
|
|
378
|
-
this.$$p_d,
|
|
379
|
-
"toAttribute"
|
|
380
|
-
);
|
|
381
|
-
o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
|
|
382
|
-
}
|
|
383
|
-
this.$$r = !1;
|
|
384
|
-
};
|
|
385
|
-
this.$$c.$$.after_update.push(i), i();
|
|
386
|
-
for (const s in this.$$l)
|
|
387
|
-
for (const o of this.$$l[s]) {
|
|
388
|
-
const a = this.$$c.$on(s, o);
|
|
389
|
-
this.$$l_u.set(o, a);
|
|
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] = he(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
|
-
function
|
|
413
|
-
|
|
414
|
-
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
380
|
+
function ue(e, t, r, n) {
|
|
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 he(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,59 +406,55 @@ function he(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
|
}
|
|
447
414
|
static get observedAttributes() {
|
|
448
415
|
return Object.keys(t).map(
|
|
449
|
-
(
|
|
416
|
+
(o) => (t[o].attribute || o).toLowerCase()
|
|
450
417
|
);
|
|
451
418
|
}
|
|
452
419
|
};
|
|
453
|
-
return Object.keys(t).forEach((
|
|
454
|
-
Object.defineProperty(
|
|
420
|
+
return Object.keys(t).forEach((o) => {
|
|
421
|
+
Object.defineProperty(u.prototype, o, {
|
|
455
422
|
get() {
|
|
456
|
-
return this.$$c &&
|
|
423
|
+
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
457
424
|
},
|
|
458
425
|
set(l) {
|
|
459
|
-
|
|
460
|
-
l = he(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
426
|
+
l = ue(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
|
|
461
427
|
}
|
|
462
428
|
});
|
|
463
|
-
}), n.forEach((
|
|
464
|
-
Object.defineProperty(
|
|
429
|
+
}), n.forEach((o) => {
|
|
430
|
+
Object.defineProperty(u.prototype, o, {
|
|
465
431
|
get() {
|
|
466
|
-
|
|
467
|
-
return (l = this.$$c) == null ? void 0 : l[a];
|
|
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 Cr {
|
|
|
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,63 +476,63 @@ class Cr {
|
|
|
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
|
-
function i(
|
|
531
|
-
if (
|
|
532
|
-
const l = !
|
|
533
|
-
for (const
|
|
534
|
-
|
|
493
|
+
function i(o) {
|
|
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
|
-
function s(
|
|
543
|
-
i(
|
|
505
|
+
function s(o) {
|
|
506
|
+
i(o(e));
|
|
544
507
|
}
|
|
545
|
-
function o
|
|
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 h = 0, f =
|
|
523
|
+
const a = [];
|
|
524
|
+
let h = 0, f = B;
|
|
562
525
|
const c = () => {
|
|
563
526
|
if (h)
|
|
564
527
|
return;
|
|
565
528
|
f();
|
|
566
|
-
const m = t(n ?
|
|
567
|
-
s ?
|
|
529
|
+
const m = t(n ? a[0] : a, u, o);
|
|
530
|
+
s ? u(m) : f = je(m) ? m : B;
|
|
568
531
|
}, d = i.map(
|
|
569
|
-
(m, g) =>
|
|
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;
|
|
@@ -577,95 +540,95 @@ function Z(e, t, r) {
|
|
|
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
|
|
547
|
+
function Er(e) {
|
|
585
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,45 +651,45 @@ function Zr(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
|
-
},
|
|
692
|
+
}, kr = (
|
|
730
693
|
/** @class */
|
|
731
694
|
function() {
|
|
732
695
|
function e() {
|
|
@@ -738,13 +701,13 @@ var Kr = function() {
|
|
|
738
701
|
this.cache[t] = r;
|
|
739
702
|
}, e;
|
|
740
703
|
}()
|
|
741
|
-
),
|
|
704
|
+
), Vr = {
|
|
742
705
|
create: function() {
|
|
743
|
-
return new
|
|
706
|
+
return new kr();
|
|
744
707
|
}
|
|
745
|
-
},
|
|
746
|
-
variadic:
|
|
747
|
-
monadic:
|
|
708
|
+
}, Se = {
|
|
709
|
+
variadic: Gr,
|
|
710
|
+
monadic: Fr
|
|
748
711
|
}, p;
|
|
749
712
|
(function(e) {
|
|
750
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";
|
|
@@ -753,47 +716,47 @@ var x;
|
|
|
753
716
|
(function(e) {
|
|
754
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";
|
|
755
718
|
})(x || (x = {}));
|
|
756
|
-
var
|
|
719
|
+
var k;
|
|
757
720
|
(function(e) {
|
|
758
721
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
759
|
-
})(
|
|
760
|
-
function
|
|
722
|
+
})(k || (k = {}));
|
|
723
|
+
function Ye(e) {
|
|
761
724
|
return e.type === x.literal;
|
|
762
725
|
}
|
|
763
|
-
function
|
|
726
|
+
function Xr(e) {
|
|
764
727
|
return e.type === x.argument;
|
|
765
728
|
}
|
|
766
|
-
function
|
|
729
|
+
function At(e) {
|
|
767
730
|
return e.type === x.number;
|
|
768
731
|
}
|
|
769
|
-
function
|
|
732
|
+
function Ct(e) {
|
|
770
733
|
return e.type === x.date;
|
|
771
734
|
}
|
|
772
|
-
function
|
|
735
|
+
function Ot(e) {
|
|
773
736
|
return e.type === x.time;
|
|
774
737
|
}
|
|
775
|
-
function
|
|
738
|
+
function Pt(e) {
|
|
776
739
|
return e.type === x.select;
|
|
777
740
|
}
|
|
778
|
-
function
|
|
741
|
+
function Lt(e) {
|
|
779
742
|
return e.type === x.plural;
|
|
780
743
|
}
|
|
781
|
-
function
|
|
744
|
+
function Wr(e) {
|
|
782
745
|
return e.type === x.pound;
|
|
783
746
|
}
|
|
784
|
-
function
|
|
747
|
+
function Nt(e) {
|
|
785
748
|
return e.type === x.tag;
|
|
786
749
|
}
|
|
787
|
-
function
|
|
788
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
750
|
+
function It(e) {
|
|
751
|
+
return !!(e && typeof e == "object" && e.type === k.number);
|
|
789
752
|
}
|
|
790
|
-
function
|
|
791
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
753
|
+
function Me(e) {
|
|
754
|
+
return !!(e && typeof e == "object" && e.type === k.dateTime);
|
|
792
755
|
}
|
|
793
|
-
var
|
|
794
|
-
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) {
|
|
795
758
|
var t = {};
|
|
796
|
-
return e.replace(
|
|
759
|
+
return e.replace(zr, function(r) {
|
|
797
760
|
var n = r.length;
|
|
798
761
|
switch (r[0]) {
|
|
799
762
|
case "G":
|
|
@@ -882,36 +845,36 @@ function on(e) {
|
|
|
882
845
|
return "";
|
|
883
846
|
}), t;
|
|
884
847
|
}
|
|
885
|
-
var
|
|
886
|
-
function
|
|
848
|
+
var Qr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
849
|
+
function Jr(e) {
|
|
887
850
|
if (e.length === 0)
|
|
888
851
|
throw new Error("Number skeleton cannot be empty");
|
|
889
|
-
for (var t = e.split(
|
|
852
|
+
for (var t = e.split(Qr).filter(function(c) {
|
|
890
853
|
return c.length > 0;
|
|
891
854
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
892
|
-
var s = i[n],
|
|
893
|
-
if (
|
|
855
|
+
var s = i[n], u = s.split("/");
|
|
856
|
+
if (u.length === 0)
|
|
894
857
|
throw new Error("Invalid number skeleton");
|
|
895
|
-
for (var
|
|
896
|
-
var f = h[
|
|
858
|
+
for (var o = u[0], l = u.slice(1), a = 0, h = l; a < h.length; a++) {
|
|
859
|
+
var f = h[a];
|
|
897
860
|
if (f.length === 0)
|
|
898
861
|
throw new Error("Invalid number skeleton");
|
|
899
862
|
}
|
|
900
|
-
r.push({ stem:
|
|
863
|
+
r.push({ stem: o, options: l });
|
|
901
864
|
}
|
|
902
865
|
return r;
|
|
903
866
|
}
|
|
904
|
-
function
|
|
867
|
+
function qr(e) {
|
|
905
868
|
return e.replace(/^(.*?)-/, "");
|
|
906
869
|
}
|
|
907
|
-
var
|
|
908
|
-
function
|
|
870
|
+
var Ke = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, Yr = /(\*)(0+)|(#+)(0+)|(0+)/g, Rt = /^(0+)$/;
|
|
871
|
+
function et(e) {
|
|
909
872
|
var t = {};
|
|
910
|
-
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) {
|
|
911
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)), "";
|
|
912
875
|
}), t;
|
|
913
876
|
}
|
|
914
|
-
function
|
|
877
|
+
function Ut(e) {
|
|
915
878
|
switch (e) {
|
|
916
879
|
case "sign-auto":
|
|
917
880
|
return {
|
|
@@ -951,7 +914,7 @@ function Vt(e) {
|
|
|
951
914
|
};
|
|
952
915
|
}
|
|
953
916
|
}
|
|
954
|
-
function
|
|
917
|
+
function Kr(e) {
|
|
955
918
|
var t;
|
|
956
919
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
957
920
|
notation: "engineering"
|
|
@@ -959,17 +922,17 @@ function fn(e) {
|
|
|
959
922
|
notation: "scientific"
|
|
960
923
|
}, e = e.slice(1)), t) {
|
|
961
924
|
var r = e.slice(0, 2);
|
|
962
|
-
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))
|
|
963
926
|
throw new Error("Malformed concise eng/scientific notation");
|
|
964
927
|
t.minimumIntegerDigits = e.length;
|
|
965
928
|
}
|
|
966
929
|
return t;
|
|
967
930
|
}
|
|
968
|
-
function
|
|
969
|
-
var t = {}, r =
|
|
931
|
+
function tt(e) {
|
|
932
|
+
var t = {}, r = Ut(e);
|
|
970
933
|
return r || t;
|
|
971
934
|
}
|
|
972
|
-
function
|
|
935
|
+
function en(e) {
|
|
973
936
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
974
937
|
var i = n[r];
|
|
975
938
|
switch (i.stem) {
|
|
@@ -993,7 +956,7 @@ function cn(e) {
|
|
|
993
956
|
continue;
|
|
994
957
|
case "measure-unit":
|
|
995
958
|
case "unit":
|
|
996
|
-
t.style = "unit", t.unit =
|
|
959
|
+
t.style = "unit", t.unit = qr(i.options[0]);
|
|
997
960
|
continue;
|
|
998
961
|
case "compact-short":
|
|
999
962
|
case "K":
|
|
@@ -1004,13 +967,13 @@ function cn(e) {
|
|
|
1004
967
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1005
968
|
continue;
|
|
1006
969
|
case "scientific":
|
|
1007
|
-
t = y(y(y({}, t), { notation: "scientific" }), i.options.reduce(function(l,
|
|
1008
|
-
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));
|
|
1009
972
|
}, {}));
|
|
1010
973
|
continue;
|
|
1011
974
|
case "engineering":
|
|
1012
|
-
t = y(y(y({}, t), { notation: "engineering" }), i.options.reduce(function(l,
|
|
1013
|
-
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));
|
|
1014
977
|
}, {}));
|
|
1015
978
|
continue;
|
|
1016
979
|
case "notation-simple":
|
|
@@ -1055,8 +1018,8 @@ function cn(e) {
|
|
|
1055
1018
|
case "integer-width":
|
|
1056
1019
|
if (i.options.length > 1)
|
|
1057
1020
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1058
|
-
i.options[0].replace(
|
|
1059
|
-
if (
|
|
1021
|
+
i.options[0].replace(Yr, function(l, a, h, f, c, d) {
|
|
1022
|
+
if (a)
|
|
1060
1023
|
t.minimumIntegerDigits = h.length;
|
|
1061
1024
|
else {
|
|
1062
1025
|
if (f && c)
|
|
@@ -1068,32 +1031,32 @@ function cn(e) {
|
|
|
1068
1031
|
});
|
|
1069
1032
|
continue;
|
|
1070
1033
|
}
|
|
1071
|
-
if (
|
|
1034
|
+
if (Rt.test(i.stem)) {
|
|
1072
1035
|
t.minimumIntegerDigits = i.stem.length;
|
|
1073
1036
|
continue;
|
|
1074
1037
|
}
|
|
1075
|
-
if (
|
|
1038
|
+
if (Ke.test(i.stem)) {
|
|
1076
1039
|
if (i.options.length > 1)
|
|
1077
1040
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1078
|
-
i.stem.replace(
|
|
1079
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
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), "";
|
|
1080
1043
|
});
|
|
1081
1044
|
var s = i.options[0];
|
|
1082
|
-
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)));
|
|
1083
1046
|
continue;
|
|
1084
1047
|
}
|
|
1085
|
-
if (
|
|
1086
|
-
t = y(y({}, t),
|
|
1048
|
+
if ($t.test(i.stem)) {
|
|
1049
|
+
t = y(y({}, t), et(i.stem));
|
|
1087
1050
|
continue;
|
|
1088
1051
|
}
|
|
1089
|
-
var
|
|
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
|
-
var a = fn(i.stem);
|
|
1092
|
-
a && (t = y(y({}, t), a));
|
|
1093
1056
|
}
|
|
1094
1057
|
return t;
|
|
1095
1058
|
}
|
|
1096
|
-
var
|
|
1059
|
+
var se = {
|
|
1097
1060
|
"001": [
|
|
1098
1061
|
"H",
|
|
1099
1062
|
"h"
|
|
@@ -2508,22 +2471,22 @@ var oe = {
|
|
|
2508
2471
|
"h"
|
|
2509
2472
|
]
|
|
2510
2473
|
};
|
|
2511
|
-
function
|
|
2474
|
+
function tn(e, t) {
|
|
2512
2475
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2513
2476
|
var i = e.charAt(n);
|
|
2514
2477
|
if (i === "j") {
|
|
2515
2478
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2516
2479
|
s++, n++;
|
|
2517
|
-
var
|
|
2518
|
-
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; )
|
|
2519
2482
|
r += l;
|
|
2520
|
-
for (;
|
|
2521
|
-
r =
|
|
2483
|
+
for (; u-- > 0; )
|
|
2484
|
+
r = a + r;
|
|
2522
2485
|
} else i === "J" ? r += "H" : r += i;
|
|
2523
2486
|
}
|
|
2524
2487
|
return r;
|
|
2525
2488
|
}
|
|
2526
|
-
function
|
|
2489
|
+
function rn(e) {
|
|
2527
2490
|
var t = e.hourCycle;
|
|
2528
2491
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2529
2492
|
e.hourCycles && // @ts-ignore
|
|
@@ -2542,23 +2505,23 @@ function dn(e) {
|
|
|
2542
2505
|
}
|
|
2543
2506
|
var r = e.language, n;
|
|
2544
2507
|
r !== "root" && (n = e.maximize().region);
|
|
2545
|
-
var i =
|
|
2508
|
+
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
2546
2509
|
return i[0];
|
|
2547
2510
|
}
|
|
2548
|
-
var
|
|
2511
|
+
var Ae, nn = new RegExp("^".concat(Mt.source, "*")), sn = new RegExp("".concat(Mt.source, "*$"));
|
|
2549
2512
|
function b(e, t) {
|
|
2550
2513
|
return { start: e, end: t };
|
|
2551
2514
|
}
|
|
2552
|
-
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) {
|
|
2553
2516
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2554
|
-
},
|
|
2517
|
+
}, $e = !0;
|
|
2555
2518
|
try {
|
|
2556
|
-
var
|
|
2557
|
-
|
|
2558
|
-
} catch
|
|
2559
|
-
|
|
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;
|
|
2560
2523
|
}
|
|
2561
|
-
var
|
|
2524
|
+
var rt = on ? (
|
|
2562
2525
|
// Native
|
|
2563
2526
|
function(t, r, n) {
|
|
2564
2527
|
return t.startsWith(r, n);
|
|
@@ -2568,31 +2531,31 @@ var ut = gn ? (
|
|
|
2568
2531
|
function(t, r, n) {
|
|
2569
2532
|
return t.slice(n, n + r.length) === r;
|
|
2570
2533
|
}
|
|
2571
|
-
),
|
|
2534
|
+
), Re = an ? String.fromCodePoint : (
|
|
2572
2535
|
// IE11
|
|
2573
2536
|
function() {
|
|
2574
2537
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2575
2538
|
t[r] = arguments[r];
|
|
2576
|
-
for (var n = "", i = t.length, s = 0,
|
|
2577
|
-
if (
|
|
2578
|
-
throw RangeError(
|
|
2579
|
-
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);
|
|
2580
2543
|
}
|
|
2581
2544
|
return n;
|
|
2582
2545
|
}
|
|
2583
|
-
),
|
|
2546
|
+
), nt = (
|
|
2584
2547
|
// native
|
|
2585
|
-
|
|
2548
|
+
un ? Object.fromEntries : (
|
|
2586
2549
|
// Ponyfill
|
|
2587
2550
|
function(t) {
|
|
2588
2551
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2589
|
-
var s = i[n],
|
|
2590
|
-
r[
|
|
2552
|
+
var s = i[n], u = s[0], o = s[1];
|
|
2553
|
+
r[u] = o;
|
|
2591
2554
|
}
|
|
2592
2555
|
return r;
|
|
2593
2556
|
}
|
|
2594
2557
|
)
|
|
2595
|
-
),
|
|
2558
|
+
), Dt = hn ? (
|
|
2596
2559
|
// Native
|
|
2597
2560
|
function(t, r) {
|
|
2598
2561
|
return t.codePointAt(r);
|
|
@@ -2606,7 +2569,7 @@ var ut = gn ? (
|
|
|
2606
2569
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2607
2570
|
}
|
|
2608
2571
|
}
|
|
2609
|
-
),
|
|
2572
|
+
), pn = ln ? (
|
|
2610
2573
|
// Native
|
|
2611
2574
|
function(t) {
|
|
2612
2575
|
return t.trimStart();
|
|
@@ -2614,9 +2577,9 @@ var ut = gn ? (
|
|
|
2614
2577
|
) : (
|
|
2615
2578
|
// Ponyfill
|
|
2616
2579
|
function(t) {
|
|
2617
|
-
return t.replace(
|
|
2580
|
+
return t.replace(nn, "");
|
|
2618
2581
|
}
|
|
2619
|
-
),
|
|
2582
|
+
), bn = fn ? (
|
|
2620
2583
|
// Native
|
|
2621
2584
|
function(t) {
|
|
2622
2585
|
return t.trimEnd();
|
|
@@ -2624,32 +2587,32 @@ var ut = gn ? (
|
|
|
2624
2587
|
) : (
|
|
2625
2588
|
// Ponyfill
|
|
2626
2589
|
function(t) {
|
|
2627
|
-
return t.replace(
|
|
2590
|
+
return t.replace(sn, "");
|
|
2628
2591
|
}
|
|
2629
2592
|
);
|
|
2630
|
-
function
|
|
2593
|
+
function Gt(e, t) {
|
|
2631
2594
|
return new RegExp(e, t);
|
|
2632
2595
|
}
|
|
2633
|
-
var
|
|
2634
|
-
if (
|
|
2635
|
-
var
|
|
2636
|
-
|
|
2596
|
+
var Ue;
|
|
2597
|
+
if ($e) {
|
|
2598
|
+
var it = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2599
|
+
Ue = function(t, r) {
|
|
2637
2600
|
var n;
|
|
2638
|
-
|
|
2639
|
-
var i =
|
|
2601
|
+
it.lastIndex = r;
|
|
2602
|
+
var i = it.exec(t);
|
|
2640
2603
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2641
2604
|
};
|
|
2642
2605
|
} else
|
|
2643
|
-
|
|
2606
|
+
Ue = function(t, r) {
|
|
2644
2607
|
for (var n = []; ; ) {
|
|
2645
|
-
var i =
|
|
2646
|
-
if (i === void 0 ||
|
|
2608
|
+
var i = Dt(t, r);
|
|
2609
|
+
if (i === void 0 || Ft(i) || xn(i))
|
|
2647
2610
|
break;
|
|
2648
2611
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2649
2612
|
}
|
|
2650
|
-
return
|
|
2613
|
+
return Re.apply(void 0, n);
|
|
2651
2614
|
};
|
|
2652
|
-
var
|
|
2615
|
+
var gn = (
|
|
2653
2616
|
/** @class */
|
|
2654
2617
|
function() {
|
|
2655
2618
|
function e(t, r) {
|
|
@@ -2663,33 +2626,33 @@ var An = (
|
|
|
2663
2626
|
for (var i = []; !this.isEOF(); ) {
|
|
2664
2627
|
var s = this.char();
|
|
2665
2628
|
if (s === 123) {
|
|
2666
|
-
var
|
|
2667
|
-
if (
|
|
2668
|
-
return
|
|
2669
|
-
i.push(
|
|
2629
|
+
var u = this.parseArgument(t, n);
|
|
2630
|
+
if (u.err)
|
|
2631
|
+
return u;
|
|
2632
|
+
i.push(u.val);
|
|
2670
2633
|
} else {
|
|
2671
2634
|
if (s === 125 && t > 0)
|
|
2672
2635
|
break;
|
|
2673
2636
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2674
|
-
var
|
|
2637
|
+
var o = this.clonePosition();
|
|
2675
2638
|
this.bump(), i.push({
|
|
2676
2639
|
type: x.pound,
|
|
2677
|
-
location: b(
|
|
2640
|
+
location: b(o, this.clonePosition())
|
|
2678
2641
|
});
|
|
2679
2642
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2680
2643
|
if (n)
|
|
2681
2644
|
break;
|
|
2682
2645
|
return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2683
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2684
|
-
var
|
|
2685
|
-
if (
|
|
2686
|
-
return
|
|
2687
|
-
i.push(
|
|
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);
|
|
2688
2651
|
} else {
|
|
2689
|
-
var
|
|
2690
|
-
if (
|
|
2691
|
-
return
|
|
2692
|
-
i.push(
|
|
2652
|
+
var u = this.parseLiteral(t, r);
|
|
2653
|
+
if (u.err)
|
|
2654
|
+
return u;
|
|
2655
|
+
i.push(u.val);
|
|
2693
2656
|
}
|
|
2694
2657
|
}
|
|
2695
2658
|
}
|
|
@@ -2711,27 +2674,27 @@ var An = (
|
|
|
2711
2674
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2712
2675
|
if (s.err)
|
|
2713
2676
|
return s;
|
|
2714
|
-
var
|
|
2677
|
+
var u = s.val, o = this.clonePosition();
|
|
2715
2678
|
if (this.bumpIf("</")) {
|
|
2716
|
-
if (this.isEOF() || !
|
|
2717
|
-
return this.error(p.INVALID_TAG, b(
|
|
2718
|
-
var l = this.clonePosition(),
|
|
2719
|
-
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(">") ? {
|
|
2720
2683
|
val: {
|
|
2721
2684
|
type: x.tag,
|
|
2722
2685
|
value: i,
|
|
2723
|
-
children:
|
|
2686
|
+
children: u,
|
|
2724
2687
|
location: b(n, this.clonePosition())
|
|
2725
2688
|
},
|
|
2726
2689
|
err: null
|
|
2727
|
-
} : this.error(p.INVALID_TAG, b(
|
|
2690
|
+
} : this.error(p.INVALID_TAG, b(o, this.clonePosition())));
|
|
2728
2691
|
} else
|
|
2729
2692
|
return this.error(p.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
2730
2693
|
} else
|
|
2731
2694
|
return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
|
|
2732
2695
|
}, e.prototype.parseTagName = function() {
|
|
2733
2696
|
var t = this.offset();
|
|
2734
|
-
for (this.bump(); !this.isEOF() &&
|
|
2697
|
+
for (this.bump(); !this.isEOF() && yn(this.char()); )
|
|
2735
2698
|
this.bump();
|
|
2736
2699
|
return this.message.slice(t, this.offset());
|
|
2737
2700
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2741,14 +2704,14 @@ var An = (
|
|
|
2741
2704
|
i += s;
|
|
2742
2705
|
continue;
|
|
2743
2706
|
}
|
|
2744
|
-
var
|
|
2745
|
-
if (
|
|
2746
|
-
i +=
|
|
2707
|
+
var u = this.tryParseUnquoted(t, r);
|
|
2708
|
+
if (u) {
|
|
2709
|
+
i += u;
|
|
2747
2710
|
continue;
|
|
2748
2711
|
}
|
|
2749
|
-
var
|
|
2750
|
-
if (
|
|
2751
|
-
i +=
|
|
2712
|
+
var o = this.tryParseLeftAngleBracket();
|
|
2713
|
+
if (o) {
|
|
2714
|
+
i += o;
|
|
2752
2715
|
continue;
|
|
2753
2716
|
}
|
|
2754
2717
|
break;
|
|
@@ -2760,7 +2723,7 @@ var An = (
|
|
|
2760
2723
|
};
|
|
2761
2724
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2762
2725
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2763
|
-
!
|
|
2726
|
+
!_n(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2764
2727
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2765
2728
|
if (this.isEOF() || this.char() !== 39)
|
|
2766
2729
|
return null;
|
|
@@ -2794,12 +2757,12 @@ var An = (
|
|
|
2794
2757
|
r.push(n);
|
|
2795
2758
|
this.bump();
|
|
2796
2759
|
}
|
|
2797
|
-
return
|
|
2760
|
+
return Re.apply(void 0, r);
|
|
2798
2761
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2799
2762
|
if (this.isEOF())
|
|
2800
2763
|
return null;
|
|
2801
2764
|
var n = this.char();
|
|
2802
|
-
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));
|
|
2803
2766
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2804
2767
|
var n = this.clonePosition();
|
|
2805
2768
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2828,39 +2791,39 @@ var An = (
|
|
|
2828
2791
|
return this.error(p.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2829
2792
|
}
|
|
2830
2793
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2831
|
-
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;
|
|
2832
2795
|
this.bumpTo(i);
|
|
2833
|
-
var s = this.clonePosition(),
|
|
2834
|
-
return { value: n, location:
|
|
2796
|
+
var s = this.clonePosition(), u = b(t, s);
|
|
2797
|
+
return { value: n, location: u };
|
|
2835
2798
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2836
|
-
var s,
|
|
2837
|
-
switch (
|
|
2799
|
+
var s, u = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2800
|
+
switch (o) {
|
|
2838
2801
|
case "":
|
|
2839
|
-
return this.error(p.EXPECT_ARGUMENT_TYPE, b(
|
|
2802
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, b(u, l));
|
|
2840
2803
|
case "number":
|
|
2841
2804
|
case "date":
|
|
2842
2805
|
case "time": {
|
|
2843
2806
|
this.bumpSpace();
|
|
2844
|
-
var
|
|
2807
|
+
var a = null;
|
|
2845
2808
|
if (this.bumpIf(",")) {
|
|
2846
2809
|
this.bumpSpace();
|
|
2847
2810
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2848
2811
|
if (f.err)
|
|
2849
2812
|
return f;
|
|
2850
|
-
var c =
|
|
2813
|
+
var c = bn(f.val);
|
|
2851
2814
|
if (c.length === 0)
|
|
2852
2815
|
return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2853
2816
|
var d = b(h, this.clonePosition());
|
|
2854
|
-
|
|
2817
|
+
a = { style: c, styleLocation: d };
|
|
2855
2818
|
}
|
|
2856
2819
|
var m = this.tryParseArgumentClose(i);
|
|
2857
2820
|
if (m.err)
|
|
2858
2821
|
return m;
|
|
2859
2822
|
var g = b(i, this.clonePosition());
|
|
2860
|
-
if (
|
|
2861
|
-
var v =
|
|
2862
|
-
if (
|
|
2863
|
-
var f = this.parseNumberSkeletonFromString(v,
|
|
2823
|
+
if (a && rt(a?.style, "::", 0)) {
|
|
2824
|
+
var v = pn(a.style.slice(2));
|
|
2825
|
+
if (o === "number") {
|
|
2826
|
+
var f = this.parseNumberSkeletonFromString(v, a.styleLocation);
|
|
2864
2827
|
return f.err ? f : {
|
|
2865
2828
|
val: { type: x.number, value: n, location: g, style: f.val },
|
|
2866
2829
|
err: null
|
|
@@ -2868,26 +2831,26 @@ var An = (
|
|
|
2868
2831
|
} else {
|
|
2869
2832
|
if (v.length === 0)
|
|
2870
2833
|
return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
|
|
2871
|
-
var
|
|
2872
|
-
this.locale && (
|
|
2834
|
+
var L = v;
|
|
2835
|
+
this.locale && (L = tn(v, this.locale));
|
|
2873
2836
|
var c = {
|
|
2874
|
-
type:
|
|
2875
|
-
pattern:
|
|
2876
|
-
location:
|
|
2877
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2878
|
-
},
|
|
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;
|
|
2879
2842
|
return {
|
|
2880
|
-
val: { type:
|
|
2843
|
+
val: { type: A, value: n, location: g, style: c },
|
|
2881
2844
|
err: null
|
|
2882
2845
|
};
|
|
2883
2846
|
}
|
|
2884
2847
|
}
|
|
2885
2848
|
return {
|
|
2886
2849
|
val: {
|
|
2887
|
-
type:
|
|
2850
|
+
type: o === "number" ? x.number : o === "date" ? x.date : x.time,
|
|
2888
2851
|
value: n,
|
|
2889
2852
|
location: g,
|
|
2890
|
-
style: (s =
|
|
2853
|
+
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
2891
2854
|
},
|
|
2892
2855
|
err: null
|
|
2893
2856
|
};
|
|
@@ -2899,45 +2862,45 @@ var An = (
|
|
|
2899
2862
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2900
2863
|
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, y({}, H)));
|
|
2901
2864
|
this.bumpSpace();
|
|
2902
|
-
var
|
|
2903
|
-
if (
|
|
2865
|
+
var N = this.parseIdentifierIfPossible(), T = 0;
|
|
2866
|
+
if (o !== "select" && N.value === "offset") {
|
|
2904
2867
|
if (!this.bumpIf(":"))
|
|
2905
2868
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2906
2869
|
this.bumpSpace();
|
|
2907
2870
|
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2908
2871
|
if (f.err)
|
|
2909
2872
|
return f;
|
|
2910
|
-
this.bumpSpace(),
|
|
2873
|
+
this.bumpSpace(), N = this.parseIdentifierIfPossible(), T = f.val;
|
|
2911
2874
|
}
|
|
2912
|
-
var
|
|
2913
|
-
if (
|
|
2914
|
-
return
|
|
2875
|
+
var $ = this.tryParsePluralOrSelectOptions(t, o, r, N);
|
|
2876
|
+
if ($.err)
|
|
2877
|
+
return $;
|
|
2915
2878
|
var m = this.tryParseArgumentClose(i);
|
|
2916
2879
|
if (m.err)
|
|
2917
2880
|
return m;
|
|
2918
|
-
var
|
|
2919
|
-
return
|
|
2881
|
+
var ie = b(i, this.clonePosition());
|
|
2882
|
+
return o === "select" ? {
|
|
2920
2883
|
val: {
|
|
2921
2884
|
type: x.select,
|
|
2922
2885
|
value: n,
|
|
2923
|
-
options:
|
|
2924
|
-
location:
|
|
2886
|
+
options: nt($.val),
|
|
2887
|
+
location: ie
|
|
2925
2888
|
},
|
|
2926
2889
|
err: null
|
|
2927
2890
|
} : {
|
|
2928
2891
|
val: {
|
|
2929
2892
|
type: x.plural,
|
|
2930
2893
|
value: n,
|
|
2931
|
-
options:
|
|
2932
|
-
offset:
|
|
2933
|
-
pluralType:
|
|
2934
|
-
location:
|
|
2894
|
+
options: nt($.val),
|
|
2895
|
+
offset: T,
|
|
2896
|
+
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2897
|
+
location: ie
|
|
2935
2898
|
},
|
|
2936
2899
|
err: null
|
|
2937
2900
|
};
|
|
2938
2901
|
}
|
|
2939
2902
|
default:
|
|
2940
|
-
return this.error(p.INVALID_ARGUMENT_TYPE, b(
|
|
2903
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, b(u, l));
|
|
2941
2904
|
}
|
|
2942
2905
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2943
2906
|
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -2979,34 +2942,34 @@ var An = (
|
|
|
2979
2942
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2980
2943
|
var n = [];
|
|
2981
2944
|
try {
|
|
2982
|
-
n =
|
|
2983
|
-
} catch
|
|
2945
|
+
n = Jr(t);
|
|
2946
|
+
} catch {
|
|
2984
2947
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
2985
2948
|
}
|
|
2986
2949
|
return {
|
|
2987
2950
|
val: {
|
|
2988
|
-
type:
|
|
2951
|
+
type: k.number,
|
|
2989
2952
|
tokens: n,
|
|
2990
2953
|
location: r,
|
|
2991
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2954
|
+
parsedOptions: this.shouldParseSkeletons ? en(n) : {}
|
|
2992
2955
|
},
|
|
2993
2956
|
err: null
|
|
2994
2957
|
};
|
|
2995
2958
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2996
|
-
for (var s,
|
|
2997
|
-
if (
|
|
2959
|
+
for (var s, u = !1, o = [], l = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
|
|
2960
|
+
if (a.length === 0) {
|
|
2998
2961
|
var f = this.clonePosition();
|
|
2999
2962
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3000
2963
|
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3001
2964
|
if (c.err)
|
|
3002
2965
|
return c;
|
|
3003
|
-
h = b(f, this.clonePosition()),
|
|
2966
|
+
h = b(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
|
|
3004
2967
|
} else
|
|
3005
2968
|
break;
|
|
3006
2969
|
}
|
|
3007
|
-
if (l.has(
|
|
2970
|
+
if (l.has(a))
|
|
3008
2971
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3009
|
-
|
|
2972
|
+
a === "other" && (u = !0), this.bumpSpace();
|
|
3010
2973
|
var d = this.clonePosition();
|
|
3011
2974
|
if (!this.bumpIf("{"))
|
|
3012
2975
|
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
@@ -3016,27 +2979,27 @@ var An = (
|
|
|
3016
2979
|
var g = this.tryParseArgumentClose(d);
|
|
3017
2980
|
if (g.err)
|
|
3018
2981
|
return g;
|
|
3019
|
-
|
|
3020
|
-
|
|
2982
|
+
o.push([
|
|
2983
|
+
a,
|
|
3021
2984
|
{
|
|
3022
2985
|
value: m.val,
|
|
3023
2986
|
location: b(d, this.clonePosition())
|
|
3024
2987
|
}
|
|
3025
|
-
]), l.add(
|
|
2988
|
+
]), l.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
|
|
3026
2989
|
}
|
|
3027
|
-
return
|
|
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 };
|
|
3028
2991
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3029
2992
|
var n = 1, i = this.clonePosition();
|
|
3030
2993
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3031
|
-
for (var s = !1,
|
|
3032
|
-
var
|
|
3033
|
-
if (
|
|
3034
|
-
s = !0,
|
|
2994
|
+
for (var s = !1, u = 0; !this.isEOF(); ) {
|
|
2995
|
+
var o = this.char();
|
|
2996
|
+
if (o >= 48 && o <= 57)
|
|
2997
|
+
s = !0, u = u * 10 + (o - 48), this.bump();
|
|
3035
2998
|
else
|
|
3036
2999
|
break;
|
|
3037
3000
|
}
|
|
3038
3001
|
var l = b(i, this.clonePosition());
|
|
3039
|
-
return s ? (
|
|
3002
|
+
return s ? (u *= n, mn(u) ? { val: u, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3040
3003
|
}, e.prototype.offset = function() {
|
|
3041
3004
|
return this.position.offset;
|
|
3042
3005
|
}, e.prototype.isEOF = function() {
|
|
@@ -3051,7 +3014,7 @@ var An = (
|
|
|
3051
3014
|
var t = this.position.offset;
|
|
3052
3015
|
if (t >= this.message.length)
|
|
3053
3016
|
throw Error("out of bound");
|
|
3054
|
-
var r =
|
|
3017
|
+
var r = Dt(this.message, t);
|
|
3055
3018
|
if (r === void 0)
|
|
3056
3019
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3057
3020
|
return r;
|
|
@@ -3070,7 +3033,7 @@ var An = (
|
|
|
3070
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);
|
|
3071
3034
|
}
|
|
3072
3035
|
}, e.prototype.bumpIf = function(t) {
|
|
3073
|
-
if (
|
|
3036
|
+
if (rt(this.message, t, this.offset())) {
|
|
3074
3037
|
for (var r = 0; r < t.length; r++)
|
|
3075
3038
|
this.bump();
|
|
3076
3039
|
return !0;
|
|
@@ -3092,56 +3055,56 @@ var An = (
|
|
|
3092
3055
|
break;
|
|
3093
3056
|
}
|
|
3094
3057
|
}, e.prototype.bumpSpace = function() {
|
|
3095
|
-
for (; !this.isEOF() &&
|
|
3058
|
+
for (; !this.isEOF() && Ft(this.char()); )
|
|
3096
3059
|
this.bump();
|
|
3097
3060
|
}, e.prototype.peek = function() {
|
|
3098
3061
|
if (this.isEOF())
|
|
3099
3062
|
return null;
|
|
3100
3063
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3101
|
-
return n
|
|
3064
|
+
return n ?? null;
|
|
3102
3065
|
}, e;
|
|
3103
3066
|
}()
|
|
3104
3067
|
);
|
|
3105
|
-
function
|
|
3068
|
+
function De(e) {
|
|
3106
3069
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3107
3070
|
}
|
|
3108
|
-
function
|
|
3109
|
-
return
|
|
3071
|
+
function _n(e) {
|
|
3072
|
+
return De(e) || e === 47;
|
|
3110
3073
|
}
|
|
3111
|
-
function
|
|
3074
|
+
function yn(e) {
|
|
3112
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;
|
|
3113
3076
|
}
|
|
3114
|
-
function
|
|
3077
|
+
function Ft(e) {
|
|
3115
3078
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3116
3079
|
}
|
|
3117
|
-
function
|
|
3080
|
+
function xn(e) {
|
|
3118
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;
|
|
3119
3082
|
}
|
|
3120
|
-
function
|
|
3083
|
+
function Ge(e) {
|
|
3121
3084
|
e.forEach(function(t) {
|
|
3122
|
-
if (delete t.location,
|
|
3085
|
+
if (delete t.location, Pt(t) || Lt(t))
|
|
3123
3086
|
for (var r in t.options)
|
|
3124
|
-
delete t.options[r].location,
|
|
3125
|
-
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);
|
|
3126
3089
|
});
|
|
3127
3090
|
}
|
|
3128
|
-
function
|
|
3091
|
+
function En(e, t) {
|
|
3129
3092
|
t === void 0 && (t = {}), t = y({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3130
|
-
var r = new
|
|
3093
|
+
var r = new gn(e, t).parse();
|
|
3131
3094
|
if (r.err) {
|
|
3132
3095
|
var n = SyntaxError(p[r.err.kind]);
|
|
3133
3096
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3134
3097
|
}
|
|
3135
|
-
return t
|
|
3098
|
+
return t?.captureLocation || Ge(r.val), r.val;
|
|
3136
3099
|
}
|
|
3137
|
-
var
|
|
3100
|
+
var V;
|
|
3138
3101
|
(function(e) {
|
|
3139
3102
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3140
|
-
})(
|
|
3141
|
-
var
|
|
3103
|
+
})(V || (V = {}));
|
|
3104
|
+
var ge = (
|
|
3142
3105
|
/** @class */
|
|
3143
3106
|
function(e) {
|
|
3144
|
-
|
|
3107
|
+
be(t, e);
|
|
3145
3108
|
function t(r, n, i) {
|
|
3146
3109
|
var s = e.call(this, r) || this;
|
|
3147
3110
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3150,65 +3113,65 @@ var _e = (
|
|
|
3150
3113
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3151
3114
|
}, t;
|
|
3152
3115
|
}(Error)
|
|
3153
|
-
),
|
|
3116
|
+
), st = (
|
|
3154
3117
|
/** @class */
|
|
3155
3118
|
function(e) {
|
|
3156
|
-
|
|
3119
|
+
be(t, e);
|
|
3157
3120
|
function t(r, n, i, s) {
|
|
3158
|
-
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;
|
|
3159
3122
|
}
|
|
3160
3123
|
return t;
|
|
3161
|
-
}(
|
|
3162
|
-
),
|
|
3124
|
+
}(ge)
|
|
3125
|
+
), vn = (
|
|
3163
3126
|
/** @class */
|
|
3164
3127
|
function(e) {
|
|
3165
|
-
|
|
3128
|
+
be(t, e);
|
|
3166
3129
|
function t(r, n, i) {
|
|
3167
|
-
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;
|
|
3168
3131
|
}
|
|
3169
3132
|
return t;
|
|
3170
|
-
}(
|
|
3171
|
-
),
|
|
3133
|
+
}(ge)
|
|
3134
|
+
), Hn = (
|
|
3172
3135
|
/** @class */
|
|
3173
3136
|
function(e) {
|
|
3174
|
-
|
|
3137
|
+
be(t, e);
|
|
3175
3138
|
function t(r, n) {
|
|
3176
|
-
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;
|
|
3177
3140
|
}
|
|
3178
3141
|
return t;
|
|
3179
|
-
}(
|
|
3142
|
+
}(ge)
|
|
3180
3143
|
), E;
|
|
3181
3144
|
(function(e) {
|
|
3182
3145
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3183
3146
|
})(E || (E = {}));
|
|
3184
|
-
function
|
|
3147
|
+
function Bn(e) {
|
|
3185
3148
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3186
3149
|
var n = t[t.length - 1];
|
|
3187
3150
|
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3188
3151
|
}, []);
|
|
3189
3152
|
}
|
|
3190
|
-
function
|
|
3153
|
+
function Tn(e) {
|
|
3191
3154
|
return typeof e == "function";
|
|
3192
3155
|
}
|
|
3193
|
-
function
|
|
3194
|
-
if (e.length === 1 &&
|
|
3156
|
+
function he(e, t, r, n, i, s, u) {
|
|
3157
|
+
if (e.length === 1 && Ye(e[0]))
|
|
3195
3158
|
return [
|
|
3196
3159
|
{
|
|
3197
3160
|
type: E.literal,
|
|
3198
3161
|
value: e[0].value
|
|
3199
3162
|
}
|
|
3200
3163
|
];
|
|
3201
|
-
for (var
|
|
3202
|
-
var h =
|
|
3203
|
-
if (
|
|
3204
|
-
|
|
3164
|
+
for (var o = [], l = 0, a = e; l < a.length; l++) {
|
|
3165
|
+
var h = a[l];
|
|
3166
|
+
if (Ye(h)) {
|
|
3167
|
+
o.push({
|
|
3205
3168
|
type: E.literal,
|
|
3206
3169
|
value: h.value
|
|
3207
3170
|
});
|
|
3208
3171
|
continue;
|
|
3209
3172
|
}
|
|
3210
|
-
if (
|
|
3211
|
-
typeof s == "number" &&
|
|
3173
|
+
if (Wr(h)) {
|
|
3174
|
+
typeof s == "number" && o.push({
|
|
3212
3175
|
type: E.literal,
|
|
3213
3176
|
value: r.getNumberFormat(t).format(s)
|
|
3214
3177
|
});
|
|
@@ -3216,89 +3179,89 @@ function le(e, t, r, n, i, s, o) {
|
|
|
3216
3179
|
}
|
|
3217
3180
|
var f = h.value;
|
|
3218
3181
|
if (!(i && f in i))
|
|
3219
|
-
throw new
|
|
3182
|
+
throw new Hn(f, u);
|
|
3220
3183
|
var c = i[f];
|
|
3221
|
-
if (
|
|
3222
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""),
|
|
3184
|
+
if (Xr(h)) {
|
|
3185
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3223
3186
|
type: typeof c == "string" ? E.literal : E.object,
|
|
3224
3187
|
value: c
|
|
3225
3188
|
});
|
|
3226
3189
|
continue;
|
|
3227
3190
|
}
|
|
3228
|
-
if (
|
|
3229
|
-
var d = typeof h.style == "string" ? n.date[h.style] :
|
|
3230
|
-
|
|
3191
|
+
if (Ct(h)) {
|
|
3192
|
+
var d = typeof h.style == "string" ? n.date[h.style] : Me(h.style) ? h.style.parsedOptions : void 0;
|
|
3193
|
+
o.push({
|
|
3231
3194
|
type: E.literal,
|
|
3232
3195
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3233
3196
|
});
|
|
3234
3197
|
continue;
|
|
3235
3198
|
}
|
|
3236
|
-
if (
|
|
3237
|
-
var d = typeof h.style == "string" ? n.time[h.style] :
|
|
3238
|
-
|
|
3199
|
+
if (Ot(h)) {
|
|
3200
|
+
var d = typeof h.style == "string" ? n.time[h.style] : Me(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3201
|
+
o.push({
|
|
3239
3202
|
type: E.literal,
|
|
3240
3203
|
value: r.getDateTimeFormat(t, d).format(c)
|
|
3241
3204
|
});
|
|
3242
3205
|
continue;
|
|
3243
3206
|
}
|
|
3244
|
-
if (
|
|
3245
|
-
var d = typeof h.style == "string" ? n.number[h.style] :
|
|
3246
|
-
d && d.scale && (c = c * (d.scale || 1)),
|
|
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({
|
|
3247
3210
|
type: E.literal,
|
|
3248
3211
|
value: r.getNumberFormat(t, d).format(c)
|
|
3249
3212
|
});
|
|
3250
3213
|
continue;
|
|
3251
3214
|
}
|
|
3252
|
-
if (
|
|
3215
|
+
if (Nt(h)) {
|
|
3253
3216
|
var m = h.children, g = h.value, v = i[g];
|
|
3254
|
-
if (
|
|
3255
|
-
throw new
|
|
3256
|
-
var
|
|
3257
|
-
return
|
|
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;
|
|
3258
3221
|
}));
|
|
3259
|
-
Array.isArray(
|
|
3222
|
+
Array.isArray(A) || (A = [A]), o.push.apply(o, A.map(function(T) {
|
|
3260
3223
|
return {
|
|
3261
|
-
type: typeof
|
|
3262
|
-
value:
|
|
3224
|
+
type: typeof T == "string" ? E.literal : E.object,
|
|
3225
|
+
value: T
|
|
3263
3226
|
};
|
|
3264
3227
|
}));
|
|
3265
3228
|
}
|
|
3266
|
-
if (
|
|
3229
|
+
if (Pt(h)) {
|
|
3267
3230
|
var H = h.options[c] || h.options.other;
|
|
3268
3231
|
if (!H)
|
|
3269
|
-
throw new
|
|
3270
|
-
|
|
3232
|
+
throw new st(h.value, c, Object.keys(h.options), u);
|
|
3233
|
+
o.push.apply(o, he(H.value, t, r, n, i));
|
|
3271
3234
|
continue;
|
|
3272
3235
|
}
|
|
3273
|
-
if (
|
|
3236
|
+
if (Lt(h)) {
|
|
3274
3237
|
var H = h.options["=".concat(c)];
|
|
3275
3238
|
if (!H) {
|
|
3276
3239
|
if (!Intl.PluralRules)
|
|
3277
|
-
throw new
|
|
3240
|
+
throw new ge(`Intl.PluralRules is not available in this environment.
|
|
3278
3241
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3279
|
-
`,
|
|
3280
|
-
var
|
|
3281
|
-
H = h.options[
|
|
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;
|
|
3282
3245
|
}
|
|
3283
3246
|
if (!H)
|
|
3284
|
-
throw new
|
|
3285
|
-
|
|
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)));
|
|
3286
3249
|
continue;
|
|
3287
3250
|
}
|
|
3288
3251
|
}
|
|
3289
|
-
return
|
|
3252
|
+
return Bn(o);
|
|
3290
3253
|
}
|
|
3291
|
-
function
|
|
3254
|
+
function wn(e, t) {
|
|
3292
3255
|
return t ? y(y(y({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3293
3256
|
return r[n] = y(y({}, e[n]), t[n] || {}), r;
|
|
3294
3257
|
}, {})) : e;
|
|
3295
3258
|
}
|
|
3296
|
-
function
|
|
3259
|
+
function Sn(e, t) {
|
|
3297
3260
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3298
|
-
return r[n] =
|
|
3261
|
+
return r[n] = wn(e[n], t[n]), r;
|
|
3299
3262
|
}, y({}, e)) : e;
|
|
3300
3263
|
}
|
|
3301
|
-
function
|
|
3264
|
+
function Ce(e) {
|
|
3302
3265
|
return {
|
|
3303
3266
|
create: function() {
|
|
3304
3267
|
return {
|
|
@@ -3312,39 +3275,39 @@ function Pe(e) {
|
|
|
3312
3275
|
}
|
|
3313
3276
|
};
|
|
3314
3277
|
}
|
|
3315
|
-
function
|
|
3278
|
+
function An(e) {
|
|
3316
3279
|
return e === void 0 && (e = {
|
|
3317
3280
|
number: {},
|
|
3318
3281
|
dateTime: {},
|
|
3319
3282
|
pluralRules: {}
|
|
3320
3283
|
}), {
|
|
3321
|
-
getNumberFormat:
|
|
3284
|
+
getNumberFormat: we(function() {
|
|
3322
3285
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3323
3286
|
r[n] = arguments[n];
|
|
3324
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3287
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Te([void 0], r, !1)))();
|
|
3325
3288
|
}, {
|
|
3326
|
-
cache:
|
|
3327
|
-
strategy:
|
|
3289
|
+
cache: Ce(e.number),
|
|
3290
|
+
strategy: Se.variadic
|
|
3328
3291
|
}),
|
|
3329
|
-
getDateTimeFormat:
|
|
3292
|
+
getDateTimeFormat: we(function() {
|
|
3330
3293
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3331
3294
|
r[n] = arguments[n];
|
|
3332
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3295
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Te([void 0], r, !1)))();
|
|
3333
3296
|
}, {
|
|
3334
|
-
cache:
|
|
3335
|
-
strategy:
|
|
3297
|
+
cache: Ce(e.dateTime),
|
|
3298
|
+
strategy: Se.variadic
|
|
3336
3299
|
}),
|
|
3337
|
-
getPluralRules:
|
|
3300
|
+
getPluralRules: we(function() {
|
|
3338
3301
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3339
3302
|
r[n] = arguments[n];
|
|
3340
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3303
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Te([void 0], r, !1)))();
|
|
3341
3304
|
}, {
|
|
3342
|
-
cache:
|
|
3343
|
-
strategy:
|
|
3305
|
+
cache: Ce(e.pluralRules),
|
|
3306
|
+
strategy: Se.variadic
|
|
3344
3307
|
})
|
|
3345
3308
|
};
|
|
3346
3309
|
}
|
|
3347
|
-
var
|
|
3310
|
+
var jt = (
|
|
3348
3311
|
/** @class */
|
|
3349
3312
|
function() {
|
|
3350
3313
|
function e(t, r, n, i) {
|
|
@@ -3355,15 +3318,15 @@ var Zt = (
|
|
|
3355
3318
|
dateTime: {},
|
|
3356
3319
|
pluralRules: {}
|
|
3357
3320
|
}, this.format = function(l) {
|
|
3358
|
-
var
|
|
3359
|
-
if (
|
|
3360
|
-
return
|
|
3361
|
-
var h =
|
|
3321
|
+
var a = s.formatToParts(l);
|
|
3322
|
+
if (a.length === 1)
|
|
3323
|
+
return a[0].value;
|
|
3324
|
+
var h = a.reduce(function(f, c) {
|
|
3362
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;
|
|
3363
3326
|
}, []);
|
|
3364
3327
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3365
3328
|
}, this.formatToParts = function(l) {
|
|
3366
|
-
return
|
|
3329
|
+
return he(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3367
3330
|
}, this.resolvedOptions = function() {
|
|
3368
3331
|
var l;
|
|
3369
3332
|
return {
|
|
@@ -3374,15 +3337,15 @@ var Zt = (
|
|
|
3374
3337
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3375
3338
|
if (this.message = t, !e.__parse)
|
|
3376
3339
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3377
|
-
var
|
|
3378
|
-
|
|
3379
|
-
var
|
|
3380
|
-
this.ast = e.__parse(t, y(y({},
|
|
3340
|
+
var u = i || {};
|
|
3341
|
+
u.formatters;
|
|
3342
|
+
var o = Rr(u, ["formatters"]);
|
|
3343
|
+
this.ast = e.__parse(t, y(y({}, o), { locale: this.resolvedLocale }));
|
|
3381
3344
|
} else
|
|
3382
3345
|
this.ast = t;
|
|
3383
3346
|
if (!Array.isArray(this.ast))
|
|
3384
3347
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3385
|
-
this.formats =
|
|
3348
|
+
this.formats = Sn(e.formats, n), this.formatters = i && i.formatters || An(this.formatterCache);
|
|
3386
3349
|
}
|
|
3387
3350
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3388
3351
|
get: function() {
|
|
@@ -3391,11 +3354,11 @@ var Zt = (
|
|
|
3391
3354
|
enumerable: !1,
|
|
3392
3355
|
configurable: !0
|
|
3393
3356
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3394
|
-
if (typeof Intl.Locale
|
|
3357
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
3395
3358
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3396
3359
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3397
3360
|
}
|
|
3398
|
-
}, e.__parse =
|
|
3361
|
+
}, e.__parse = En, e.formats = {
|
|
3399
3362
|
number: {
|
|
3400
3363
|
integer: {
|
|
3401
3364
|
maximumFractionDigits: 0
|
|
@@ -3456,7 +3419,7 @@ var Zt = (
|
|
|
3456
3419
|
}, e;
|
|
3457
3420
|
}()
|
|
3458
3421
|
);
|
|
3459
|
-
function
|
|
3422
|
+
function Cn(e, t) {
|
|
3460
3423
|
if (t == null)
|
|
3461
3424
|
return;
|
|
3462
3425
|
if (t in e)
|
|
@@ -3477,101 +3440,101 @@ function Gn(e, t) {
|
|
|
3477
3440
|
n = void 0;
|
|
3478
3441
|
return n;
|
|
3479
3442
|
}
|
|
3480
|
-
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) => {
|
|
3481
3444
|
if (t == null)
|
|
3482
3445
|
return;
|
|
3483
|
-
if (t in
|
|
3484
|
-
return
|
|
3485
|
-
const r =
|
|
3446
|
+
if (t in C && e in C[t])
|
|
3447
|
+
return C[t][e];
|
|
3448
|
+
const r = ne(t);
|
|
3486
3449
|
for (let n = 0; n < r.length; n++) {
|
|
3487
|
-
const i = r[n], s =
|
|
3450
|
+
const i = r[n], s = Ln(i, e);
|
|
3488
3451
|
if (s)
|
|
3489
|
-
return
|
|
3452
|
+
return On(e, t, s);
|
|
3490
3453
|
}
|
|
3491
3454
|
};
|
|
3492
|
-
let
|
|
3493
|
-
const
|
|
3494
|
-
function
|
|
3495
|
-
return
|
|
3455
|
+
let We;
|
|
3456
|
+
const re = pe({});
|
|
3457
|
+
function Pn(e) {
|
|
3458
|
+
return We[e] || null;
|
|
3496
3459
|
}
|
|
3497
|
-
function
|
|
3498
|
-
return e in
|
|
3460
|
+
function Vt(e) {
|
|
3461
|
+
return e in We;
|
|
3499
3462
|
}
|
|
3500
|
-
function
|
|
3501
|
-
if (!
|
|
3463
|
+
function Ln(e, t) {
|
|
3464
|
+
if (!Vt(e))
|
|
3502
3465
|
return null;
|
|
3503
|
-
const r =
|
|
3504
|
-
return
|
|
3466
|
+
const r = Pn(e);
|
|
3467
|
+
return Cn(r, t);
|
|
3505
3468
|
}
|
|
3506
|
-
function
|
|
3469
|
+
function Nn(e) {
|
|
3507
3470
|
if (e == null)
|
|
3508
3471
|
return;
|
|
3509
|
-
const t =
|
|
3472
|
+
const t = ne(e);
|
|
3510
3473
|
for (let r = 0; r < t.length; r++) {
|
|
3511
3474
|
const n = t[r];
|
|
3512
|
-
if (
|
|
3475
|
+
if (Vt(n))
|
|
3513
3476
|
return n;
|
|
3514
3477
|
}
|
|
3515
3478
|
}
|
|
3516
|
-
function
|
|
3517
|
-
delete
|
|
3479
|
+
function Xt(e, ...t) {
|
|
3480
|
+
delete C[e], re.update((r) => (r[e] = $r.all([r[e] || {}, ...t]), r));
|
|
3518
3481
|
}
|
|
3519
|
-
|
|
3520
|
-
[
|
|
3482
|
+
z(
|
|
3483
|
+
[re],
|
|
3521
3484
|
([e]) => Object.keys(e)
|
|
3522
3485
|
);
|
|
3523
|
-
|
|
3524
|
-
const
|
|
3525
|
-
function
|
|
3526
|
-
|
|
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];
|
|
3527
3490
|
}
|
|
3528
|
-
function
|
|
3529
|
-
return
|
|
3491
|
+
function Wt(e) {
|
|
3492
|
+
return le[e];
|
|
3530
3493
|
}
|
|
3531
|
-
function
|
|
3532
|
-
return
|
|
3533
|
-
const r =
|
|
3494
|
+
function Mn(e) {
|
|
3495
|
+
return ne(e).map((t) => {
|
|
3496
|
+
const r = Wt(t);
|
|
3534
3497
|
return [t, r ? [...r] : []];
|
|
3535
3498
|
}).filter(([, t]) => t.length > 0);
|
|
3536
3499
|
}
|
|
3537
|
-
function
|
|
3538
|
-
return e == null ? !1 :
|
|
3500
|
+
function ce(e) {
|
|
3501
|
+
return e == null ? !1 : ne(e).some(
|
|
3539
3502
|
(t) => {
|
|
3540
3503
|
var r;
|
|
3541
|
-
return (r =
|
|
3504
|
+
return (r = Wt(t)) == null ? void 0 : r.size;
|
|
3542
3505
|
}
|
|
3543
3506
|
);
|
|
3544
3507
|
}
|
|
3545
|
-
function
|
|
3508
|
+
function $n(e, t) {
|
|
3546
3509
|
return Promise.all(
|
|
3547
|
-
t.map((n) => (
|
|
3548
|
-
).then((n) =>
|
|
3549
|
-
}
|
|
3550
|
-
const
|
|
3551
|
-
function
|
|
3552
|
-
if (!
|
|
3553
|
-
return e in
|
|
3554
|
-
const t =
|
|
3555
|
-
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(
|
|
3556
3519
|
t.map(
|
|
3557
|
-
([r, n]) =>
|
|
3520
|
+
([r, n]) => $n(r, n)
|
|
3558
3521
|
)
|
|
3559
3522
|
).then(() => {
|
|
3560
|
-
if (
|
|
3561
|
-
return
|
|
3562
|
-
delete
|
|
3563
|
-
}),
|
|
3523
|
+
if (ce(e))
|
|
3524
|
+
return zt(e);
|
|
3525
|
+
delete Q[e];
|
|
3526
|
+
}), Q[e];
|
|
3564
3527
|
}
|
|
3565
|
-
var
|
|
3528
|
+
var ot = Object.getOwnPropertySymbols, Rn = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, Dn = (e, t) => {
|
|
3566
3529
|
var r = {};
|
|
3567
3530
|
for (var n in e)
|
|
3568
|
-
|
|
3569
|
-
if (e != null &&
|
|
3570
|
-
for (var n of
|
|
3571
|
-
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]);
|
|
3572
3535
|
return r;
|
|
3573
3536
|
};
|
|
3574
|
-
const
|
|
3537
|
+
const Gn = {
|
|
3575
3538
|
number: {
|
|
3576
3539
|
scientific: { notation: "scientific" },
|
|
3577
3540
|
engineering: { notation: "engineering" },
|
|
@@ -3601,183 +3564,183 @@ const qn = {
|
|
|
3601
3564
|
}
|
|
3602
3565
|
}
|
|
3603
3566
|
};
|
|
3604
|
-
function
|
|
3567
|
+
function Fn({ locale: e, id: t }) {
|
|
3605
3568
|
console.warn(
|
|
3606
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3569
|
+
`[svelte-i18n] The message "${t}" was not found in "${ne(
|
|
3607
3570
|
e
|
|
3608
|
-
).join('", "')}".${
|
|
3571
|
+
).join('", "')}".${ce(P()) ? `
|
|
3609
3572
|
|
|
3610
3573
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3611
3574
|
);
|
|
3612
3575
|
}
|
|
3613
|
-
const
|
|
3576
|
+
const jn = {
|
|
3614
3577
|
fallbackLocale: null,
|
|
3615
3578
|
loadingDelay: 200,
|
|
3616
|
-
formats:
|
|
3579
|
+
formats: Gn,
|
|
3617
3580
|
warnOnMissingMessages: !0,
|
|
3618
3581
|
handleMissingMessage: void 0,
|
|
3619
3582
|
ignoreTag: !0
|
|
3620
|
-
},
|
|
3621
|
-
function
|
|
3622
|
-
return
|
|
3583
|
+
}, J = jn;
|
|
3584
|
+
function X() {
|
|
3585
|
+
return J;
|
|
3623
3586
|
}
|
|
3624
|
-
function
|
|
3625
|
-
const t = e, { formats: r } = t, n =
|
|
3587
|
+
function kn(e) {
|
|
3588
|
+
const t = e, { formats: r } = t, n = Dn(t, ["formats"]);
|
|
3626
3589
|
let i = e.fallbackLocale;
|
|
3627
3590
|
if (e.initialLocale)
|
|
3628
3591
|
try {
|
|
3629
|
-
|
|
3630
|
-
} catch
|
|
3592
|
+
jt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3593
|
+
} catch {
|
|
3631
3594
|
console.warn(
|
|
3632
3595
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3633
3596
|
);
|
|
3634
3597
|
}
|
|
3635
|
-
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(
|
|
3636
3599
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3637
|
-
)), Object.assign(
|
|
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);
|
|
3638
3601
|
}
|
|
3639
|
-
const
|
|
3640
|
-
var
|
|
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) => {
|
|
3641
3604
|
for (var r in t)
|
|
3642
|
-
|
|
3643
|
-
if (
|
|
3644
|
-
for (var r of
|
|
3645
|
-
|
|
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]);
|
|
3646
3609
|
return e;
|
|
3647
|
-
},
|
|
3648
|
-
let
|
|
3649
|
-
const
|
|
3650
|
-
function
|
|
3610
|
+
}, Jn = (e, t) => Xn(e, Wn(t));
|
|
3611
|
+
let Fe;
|
|
3612
|
+
const me = pe(null);
|
|
3613
|
+
function ht(e) {
|
|
3651
3614
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3652
3615
|
}
|
|
3653
|
-
function
|
|
3654
|
-
const r =
|
|
3655
|
-
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;
|
|
3656
3619
|
}
|
|
3657
|
-
function
|
|
3658
|
-
return
|
|
3620
|
+
function P() {
|
|
3621
|
+
return Fe ?? void 0;
|
|
3659
3622
|
}
|
|
3660
|
-
|
|
3661
|
-
|
|
3623
|
+
me.subscribe((e) => {
|
|
3624
|
+
Fe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3662
3625
|
});
|
|
3663
|
-
const
|
|
3664
|
-
if (e &&
|
|
3665
|
-
const { loadingDelay: t } =
|
|
3626
|
+
const qn = (e) => {
|
|
3627
|
+
if (e && Nn(e) && ce(e)) {
|
|
3628
|
+
const { loadingDelay: t } = X();
|
|
3666
3629
|
let r;
|
|
3667
|
-
return typeof window
|
|
3668
|
-
() =>
|
|
3630
|
+
return typeof window < "u" && P() != null && t ? r = window.setTimeout(
|
|
3631
|
+
() => Oe.set(!0),
|
|
3669
3632
|
t
|
|
3670
|
-
) :
|
|
3671
|
-
|
|
3633
|
+
) : Oe.set(!0), zt(e).then(() => {
|
|
3634
|
+
me.set(e);
|
|
3672
3635
|
}).finally(() => {
|
|
3673
|
-
clearTimeout(r),
|
|
3636
|
+
clearTimeout(r), Oe.set(!1);
|
|
3674
3637
|
});
|
|
3675
3638
|
}
|
|
3676
|
-
return
|
|
3677
|
-
},
|
|
3678
|
-
set:
|
|
3679
|
-
}),
|
|
3639
|
+
return me.set(e);
|
|
3640
|
+
}, M = Jn(Qn({}, me), {
|
|
3641
|
+
set: qn
|
|
3642
|
+
}), _e = (e) => {
|
|
3680
3643
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3681
3644
|
return (n) => {
|
|
3682
3645
|
const i = JSON.stringify(n);
|
|
3683
3646
|
return i in t ? t[i] : t[i] = e(n);
|
|
3684
3647
|
};
|
|
3685
3648
|
};
|
|
3686
|
-
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) => {
|
|
3687
3650
|
for (var r in t || (t = {}))
|
|
3688
|
-
|
|
3689
|
-
if (
|
|
3690
|
-
for (var r of
|
|
3691
|
-
|
|
3651
|
+
Zt.call(t, r) && lt(e, r, t[r]);
|
|
3652
|
+
if (de)
|
|
3653
|
+
for (var r of de(t))
|
|
3654
|
+
Qt.call(t, r) && lt(e, r, t[r]);
|
|
3692
3655
|
return e;
|
|
3693
|
-
},
|
|
3656
|
+
}, Z = (e, t) => {
|
|
3694
3657
|
var r = {};
|
|
3695
3658
|
for (var n in e)
|
|
3696
|
-
|
|
3697
|
-
if (e != null &&
|
|
3698
|
-
for (var n of
|
|
3699
|
-
t.indexOf(n) < 0 &&
|
|
3659
|
+
Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3660
|
+
if (e != null && de)
|
|
3661
|
+
for (var n of de(e))
|
|
3662
|
+
t.indexOf(n) < 0 && Qt.call(e, n) && (r[n] = e[n]);
|
|
3700
3663
|
return r;
|
|
3701
3664
|
};
|
|
3702
|
-
const
|
|
3703
|
-
const { formats: r } =
|
|
3665
|
+
const K = (e, t) => {
|
|
3666
|
+
const { formats: r } = X();
|
|
3704
3667
|
if (e in r && t in r[e])
|
|
3705
3668
|
return r[e][t];
|
|
3706
3669
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3707
|
-
},
|
|
3670
|
+
}, Kn = _e(
|
|
3708
3671
|
(e) => {
|
|
3709
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3672
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3710
3673
|
if (r == null)
|
|
3711
3674
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3712
|
-
return n && (i =
|
|
3675
|
+
return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
|
|
3713
3676
|
}
|
|
3714
|
-
),
|
|
3677
|
+
), ei = _e(
|
|
3715
3678
|
(e) => {
|
|
3716
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3679
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3717
3680
|
if (r == null)
|
|
3718
3681
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3719
|
-
return n ? i =
|
|
3682
|
+
return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3720
3683
|
}
|
|
3721
|
-
),
|
|
3684
|
+
), ti = _e(
|
|
3722
3685
|
(e) => {
|
|
3723
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3686
|
+
var t = e, { locale: r, format: n } = t, i = Z(t, ["locale", "format"]);
|
|
3724
3687
|
if (r == null)
|
|
3725
3688
|
throw new Error(
|
|
3726
3689
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3727
3690
|
);
|
|
3728
|
-
return n ? i =
|
|
3691
|
+
return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3729
3692
|
}
|
|
3730
|
-
),
|
|
3693
|
+
), ri = (e = {}) => {
|
|
3731
3694
|
var t = e, {
|
|
3732
|
-
locale: r =
|
|
3733
|
-
} = t, n =
|
|
3695
|
+
locale: r = P()
|
|
3696
|
+
} = t, n = Z(t, [
|
|
3734
3697
|
"locale"
|
|
3735
3698
|
]);
|
|
3736
|
-
return
|
|
3737
|
-
},
|
|
3699
|
+
return Kn(ze({ locale: r }, n));
|
|
3700
|
+
}, ni = (e = {}) => {
|
|
3738
3701
|
var t = e, {
|
|
3739
|
-
locale: r =
|
|
3740
|
-
} = t, n =
|
|
3702
|
+
locale: r = P()
|
|
3703
|
+
} = t, n = Z(t, [
|
|
3741
3704
|
"locale"
|
|
3742
3705
|
]);
|
|
3743
|
-
return
|
|
3744
|
-
},
|
|
3706
|
+
return ei(ze({ locale: r }, n));
|
|
3707
|
+
}, ii = (e = {}) => {
|
|
3745
3708
|
var t = e, {
|
|
3746
|
-
locale: r =
|
|
3747
|
-
} = t, n =
|
|
3709
|
+
locale: r = P()
|
|
3710
|
+
} = t, n = Z(t, [
|
|
3748
3711
|
"locale"
|
|
3749
3712
|
]);
|
|
3750
|
-
return
|
|
3751
|
-
},
|
|
3713
|
+
return ti(ze({ locale: r }, n));
|
|
3714
|
+
}, si = _e(
|
|
3752
3715
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3753
|
-
(e, t =
|
|
3754
|
-
ignoreTag:
|
|
3716
|
+
(e, t = P()) => new jt(e, t, X().formats, {
|
|
3717
|
+
ignoreTag: X().ignoreTag
|
|
3755
3718
|
})
|
|
3756
|
-
),
|
|
3719
|
+
), oi = (e, t = {}) => {
|
|
3757
3720
|
var r, n, i, s;
|
|
3758
|
-
let
|
|
3759
|
-
typeof e == "object" && (
|
|
3721
|
+
let u = t;
|
|
3722
|
+
typeof e == "object" && (u = e, e = u.id);
|
|
3760
3723
|
const {
|
|
3761
|
-
values:
|
|
3762
|
-
locale: l =
|
|
3763
|
-
default:
|
|
3764
|
-
} =
|
|
3724
|
+
values: o,
|
|
3725
|
+
locale: l = P(),
|
|
3726
|
+
default: a
|
|
3727
|
+
} = u;
|
|
3765
3728
|
if (l == null)
|
|
3766
3729
|
throw new Error(
|
|
3767
3730
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3768
3731
|
);
|
|
3769
|
-
let h =
|
|
3732
|
+
let h = kt(e, l);
|
|
3770
3733
|
if (!h)
|
|
3771
|
-
h = (s = (i = (n = (r =
|
|
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;
|
|
3772
3735
|
else if (typeof h != "string")
|
|
3773
3736
|
return console.warn(
|
|
3774
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.`
|
|
3775
3738
|
), h;
|
|
3776
|
-
if (!
|
|
3739
|
+
if (!o)
|
|
3777
3740
|
return h;
|
|
3778
3741
|
let f = h;
|
|
3779
3742
|
try {
|
|
3780
|
-
f =
|
|
3743
|
+
f = si(h, l).format(o);
|
|
3781
3744
|
} catch (c) {
|
|
3782
3745
|
c instanceof Error && console.warn(
|
|
3783
3746
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3785,20 +3748,20 @@ const ee = (e, t) => {
|
|
|
3785
3748
|
);
|
|
3786
3749
|
}
|
|
3787
3750
|
return f;
|
|
3788
|
-
},
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
function
|
|
3794
|
-
|
|
3795
|
-
}
|
|
3796
|
-
function
|
|
3797
|
-
|
|
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({
|
|
3798
3761
|
fallbackLocale: "en"
|
|
3799
|
-
}),
|
|
3762
|
+
}), M.set(e);
|
|
3800
3763
|
}
|
|
3801
|
-
const
|
|
3764
|
+
const ct = {
|
|
3802
3765
|
en: {
|
|
3803
3766
|
header: {
|
|
3804
3767
|
general: "Cashier",
|
|
@@ -3821,52 +3784,52 @@ const _t = {
|
|
|
3821
3784
|
}
|
|
3822
3785
|
}
|
|
3823
3786
|
};
|
|
3824
|
-
function
|
|
3825
|
-
|
|
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}");
|
|
3826
3789
|
}
|
|
3827
|
-
const
|
|
3828
|
-
function
|
|
3790
|
+
const di = (e) => ({}), mt = (e) => ({}), pi = (e) => ({}), dt = (e) => ({}), bi = (e) => ({}), pt = (e) => ({});
|
|
3791
|
+
function bt(e) {
|
|
3829
3792
|
let t, r, n;
|
|
3830
3793
|
return {
|
|
3831
3794
|
c() {
|
|
3832
|
-
t =
|
|
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");
|
|
3833
3796
|
},
|
|
3834
3797
|
m(i, s) {
|
|
3835
|
-
|
|
3798
|
+
I(i, t, s), r || (n = Ht(
|
|
3836
3799
|
t,
|
|
3837
3800
|
"click",
|
|
3838
3801
|
/*back*/
|
|
3839
3802
|
e[6]
|
|
3840
3803
|
), r = !0);
|
|
3841
3804
|
},
|
|
3842
|
-
p:
|
|
3805
|
+
p: B,
|
|
3843
3806
|
d(i) {
|
|
3844
|
-
i &&
|
|
3807
|
+
i && O(t), r = !1, n();
|
|
3845
3808
|
}
|
|
3846
3809
|
};
|
|
3847
3810
|
}
|
|
3848
|
-
function
|
|
3811
|
+
function gi(e) {
|
|
3849
3812
|
let t, r = (
|
|
3850
3813
|
/*backButton*/
|
|
3851
|
-
e[1] &&
|
|
3814
|
+
e[1] && bt(e)
|
|
3852
3815
|
);
|
|
3853
3816
|
return {
|
|
3854
3817
|
c() {
|
|
3855
|
-
r && r.c(), t =
|
|
3818
|
+
r && r.c(), t = vt();
|
|
3856
3819
|
},
|
|
3857
3820
|
m(n, i) {
|
|
3858
|
-
r && r.m(n, i),
|
|
3821
|
+
r && r.m(n, i), I(n, t, i);
|
|
3859
3822
|
},
|
|
3860
3823
|
p(n, i) {
|
|
3861
3824
|
/*backButton*/
|
|
3862
|
-
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);
|
|
3863
3826
|
},
|
|
3864
3827
|
d(n) {
|
|
3865
|
-
n &&
|
|
3828
|
+
n && O(t), r && r.d(n);
|
|
3866
3829
|
}
|
|
3867
3830
|
};
|
|
3868
3831
|
}
|
|
3869
|
-
function
|
|
3832
|
+
function _i(e) {
|
|
3870
3833
|
let t, r = (
|
|
3871
3834
|
/*$_*/
|
|
3872
3835
|
e[4](
|
|
@@ -3876,10 +3839,10 @@ function Ci(e) {
|
|
|
3876
3839
|
), n;
|
|
3877
3840
|
return {
|
|
3878
3841
|
c() {
|
|
3879
|
-
t =
|
|
3842
|
+
t = W("span"), n = ke(r), te(t, "class", "CashierHeaderTitle");
|
|
3880
3843
|
},
|
|
3881
3844
|
m(i, s) {
|
|
3882
|
-
|
|
3845
|
+
I(i, t, s), fe(t, n);
|
|
3883
3846
|
},
|
|
3884
3847
|
p(i, s) {
|
|
3885
3848
|
s & /*$_, titleText*/
|
|
@@ -3887,249 +3850,249 @@ function Ci(e) {
|
|
|
3887
3850
|
i[4](
|
|
3888
3851
|
/*titleText*/
|
|
3889
3852
|
i[2]
|
|
3890
|
-
) + "") &&
|
|
3853
|
+
) + "") && or(n, r);
|
|
3891
3854
|
},
|
|
3892
3855
|
d(i) {
|
|
3893
|
-
i &&
|
|
3856
|
+
i && O(t);
|
|
3894
3857
|
}
|
|
3895
3858
|
};
|
|
3896
3859
|
}
|
|
3897
|
-
function
|
|
3860
|
+
function gt(e) {
|
|
3898
3861
|
let t, r, n;
|
|
3899
3862
|
return {
|
|
3900
3863
|
c() {
|
|
3901
|
-
t =
|
|
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");
|
|
3902
3865
|
},
|
|
3903
3866
|
m(i, s) {
|
|
3904
|
-
|
|
3867
|
+
I(i, t, s), r || (n = Ht(
|
|
3905
3868
|
t,
|
|
3906
3869
|
"click",
|
|
3907
3870
|
/*close*/
|
|
3908
3871
|
e[5]
|
|
3909
3872
|
), r = !0);
|
|
3910
3873
|
},
|
|
3911
|
-
p:
|
|
3874
|
+
p: B,
|
|
3912
3875
|
d(i) {
|
|
3913
|
-
i &&
|
|
3876
|
+
i && O(t), r = !1, n();
|
|
3914
3877
|
}
|
|
3915
3878
|
};
|
|
3916
3879
|
}
|
|
3917
|
-
function
|
|
3880
|
+
function yi(e) {
|
|
3918
3881
|
let t, r = (
|
|
3919
3882
|
/*closeButton*/
|
|
3920
|
-
e[3] &&
|
|
3883
|
+
e[3] && gt(e)
|
|
3921
3884
|
);
|
|
3922
3885
|
return {
|
|
3923
3886
|
c() {
|
|
3924
|
-
r && r.c(), t =
|
|
3887
|
+
r && r.c(), t = vt();
|
|
3925
3888
|
},
|
|
3926
3889
|
m(n, i) {
|
|
3927
|
-
r && r.m(n, i),
|
|
3890
|
+
r && r.m(n, i), I(n, t, i);
|
|
3928
3891
|
},
|
|
3929
3892
|
p(n, i) {
|
|
3930
3893
|
/*closeButton*/
|
|
3931
|
-
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);
|
|
3932
3895
|
},
|
|
3933
3896
|
d(n) {
|
|
3934
|
-
n &&
|
|
3897
|
+
n && O(t), r && r.d(n);
|
|
3935
3898
|
}
|
|
3936
3899
|
};
|
|
3937
3900
|
}
|
|
3938
|
-
function
|
|
3901
|
+
function xi(e) {
|
|
3939
3902
|
let t, r, n, i;
|
|
3940
3903
|
const s = (
|
|
3941
3904
|
/*#slots*/
|
|
3942
3905
|
e[15].leftButton
|
|
3943
|
-
),
|
|
3906
|
+
), u = ye(
|
|
3944
3907
|
s,
|
|
3945
3908
|
e,
|
|
3946
3909
|
/*$$scope*/
|
|
3947
3910
|
e[14],
|
|
3948
|
-
|
|
3949
|
-
),
|
|
3911
|
+
pt
|
|
3912
|
+
), o = u || gi(e), l = (
|
|
3950
3913
|
/*#slots*/
|
|
3951
3914
|
e[15].title
|
|
3952
|
-
),
|
|
3915
|
+
), a = ye(
|
|
3953
3916
|
l,
|
|
3954
3917
|
e,
|
|
3955
3918
|
/*$$scope*/
|
|
3956
3919
|
e[14],
|
|
3957
|
-
|
|
3958
|
-
), h =
|
|
3920
|
+
dt
|
|
3921
|
+
), h = a || _i(e), f = (
|
|
3959
3922
|
/*#slots*/
|
|
3960
3923
|
e[15].rightButton
|
|
3961
|
-
), c =
|
|
3924
|
+
), c = ye(
|
|
3962
3925
|
f,
|
|
3963
3926
|
e,
|
|
3964
3927
|
/*$$scope*/
|
|
3965
3928
|
e[14],
|
|
3966
|
-
|
|
3967
|
-
), d = c ||
|
|
3929
|
+
mt
|
|
3930
|
+
), d = c || yi(e);
|
|
3968
3931
|
return {
|
|
3969
3932
|
c() {
|
|
3970
|
-
t =
|
|
3933
|
+
t = W("div"), o.c(), r = Qe(), h.c(), n = Qe(), d.c(), te(t, "class", "CashierHeader");
|
|
3971
3934
|
},
|
|
3972
3935
|
m(m, g) {
|
|
3973
|
-
|
|
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;
|
|
3974
3937
|
},
|
|
3975
3938
|
p(m, [g]) {
|
|
3976
|
-
|
|
3977
|
-
16384) &&
|
|
3978
|
-
|
|
3939
|
+
u ? u.p && (!i || g & /*$$scope*/
|
|
3940
|
+
16384) && Ee(
|
|
3941
|
+
u,
|
|
3979
3942
|
s,
|
|
3980
3943
|
m,
|
|
3981
3944
|
/*$$scope*/
|
|
3982
3945
|
m[14],
|
|
3983
|
-
i ?
|
|
3946
|
+
i ? xe(
|
|
3984
3947
|
s,
|
|
3985
3948
|
/*$$scope*/
|
|
3986
3949
|
m[14],
|
|
3987
3950
|
g,
|
|
3988
|
-
|
|
3989
|
-
) :
|
|
3951
|
+
bi
|
|
3952
|
+
) : ve(
|
|
3990
3953
|
/*$$scope*/
|
|
3991
3954
|
m[14]
|
|
3992
3955
|
),
|
|
3993
|
-
|
|
3994
|
-
) :
|
|
3995
|
-
2) &&
|
|
3996
|
-
16384) &&
|
|
3997
|
-
|
|
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,
|
|
3998
3961
|
l,
|
|
3999
3962
|
m,
|
|
4000
3963
|
/*$$scope*/
|
|
4001
3964
|
m[14],
|
|
4002
|
-
i ?
|
|
3965
|
+
i ? xe(
|
|
4003
3966
|
l,
|
|
4004
3967
|
/*$$scope*/
|
|
4005
3968
|
m[14],
|
|
4006
3969
|
g,
|
|
4007
|
-
|
|
4008
|
-
) :
|
|
3970
|
+
pi
|
|
3971
|
+
) : ve(
|
|
4009
3972
|
/*$$scope*/
|
|
4010
3973
|
m[14]
|
|
4011
3974
|
),
|
|
4012
|
-
|
|
3975
|
+
dt
|
|
4013
3976
|
) : h.p && (!i || g & /*$_, titleText*/
|
|
4014
3977
|
20) && h.p(m, i ? g : -1), c ? c.p && (!i || g & /*$$scope*/
|
|
4015
|
-
16384) &&
|
|
3978
|
+
16384) && Ee(
|
|
4016
3979
|
c,
|
|
4017
3980
|
f,
|
|
4018
3981
|
m,
|
|
4019
3982
|
/*$$scope*/
|
|
4020
3983
|
m[14],
|
|
4021
|
-
i ?
|
|
3984
|
+
i ? xe(
|
|
4022
3985
|
f,
|
|
4023
3986
|
/*$$scope*/
|
|
4024
3987
|
m[14],
|
|
4025
3988
|
g,
|
|
4026
|
-
|
|
4027
|
-
) :
|
|
3989
|
+
di
|
|
3990
|
+
) : ve(
|
|
4028
3991
|
/*$$scope*/
|
|
4029
3992
|
m[14]
|
|
4030
3993
|
),
|
|
4031
|
-
|
|
3994
|
+
mt
|
|
4032
3995
|
) : d.p && (!i || g & /*closeButton*/
|
|
4033
3996
|
8) && d.p(m, i ? g : -1);
|
|
4034
3997
|
},
|
|
4035
3998
|
i(m) {
|
|
4036
|
-
i || (
|
|
3999
|
+
i || (ae(o, m), ae(h, m), ae(d, m), i = !0);
|
|
4037
4000
|
},
|
|
4038
4001
|
o(m) {
|
|
4039
|
-
|
|
4002
|
+
Be(o, m), Be(h, m), Be(d, m), i = !1;
|
|
4040
4003
|
},
|
|
4041
4004
|
d(m) {
|
|
4042
|
-
m &&
|
|
4005
|
+
m && O(t), o.d(m), h.d(m), d.d(m), e[16](null);
|
|
4043
4006
|
}
|
|
4044
4007
|
};
|
|
4045
4008
|
}
|
|
4046
|
-
function
|
|
4009
|
+
function Ei(e, t, r) {
|
|
4047
4010
|
let n;
|
|
4048
|
-
|
|
4049
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling:
|
|
4050
|
-
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 = () => {
|
|
4051
4014
|
let _ = l;
|
|
4052
|
-
_ && fetch(_).then((
|
|
4053
|
-
Object.keys(
|
|
4054
|
-
|
|
4015
|
+
_ && fetch(_).then((w) => w.json()).then((w) => {
|
|
4016
|
+
Object.keys(w).forEach((R) => {
|
|
4017
|
+
ft(R, w[R]);
|
|
4055
4018
|
});
|
|
4056
|
-
}).catch((
|
|
4057
|
-
console.log(
|
|
4019
|
+
}).catch((w) => {
|
|
4020
|
+
console.log(w);
|
|
4058
4021
|
});
|
|
4059
4022
|
};
|
|
4060
|
-
Object.keys(
|
|
4061
|
-
|
|
4023
|
+
Object.keys(ct).forEach((_) => {
|
|
4024
|
+
ft(_, ct[_]);
|
|
4062
4025
|
});
|
|
4063
|
-
const
|
|
4026
|
+
const A = () => {
|
|
4064
4027
|
let _ = document.createElement("style");
|
|
4065
|
-
_.innerHTML =
|
|
4028
|
+
_.innerHTML = u, d.appendChild(_);
|
|
4066
4029
|
}, H = () => {
|
|
4067
|
-
let _ = new URL(
|
|
4068
|
-
fetch(_.href).then((
|
|
4069
|
-
|
|
4030
|
+
let _ = new URL(o), w = document.createElement("style");
|
|
4031
|
+
fetch(_.href).then((R) => R.text()).then((R) => {
|
|
4032
|
+
w.innerHTML = R, setTimeout(
|
|
4070
4033
|
() => {
|
|
4071
|
-
d.appendChild(
|
|
4034
|
+
d.appendChild(w);
|
|
4072
4035
|
},
|
|
4073
4036
|
1
|
|
4074
4037
|
);
|
|
4075
4038
|
});
|
|
4076
|
-
},
|
|
4077
|
-
|
|
4078
|
-
},
|
|
4039
|
+
}, N = () => {
|
|
4040
|
+
ci(f);
|
|
4041
|
+
}, T = () => {
|
|
4079
4042
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4080
|
-
},
|
|
4043
|
+
}, $ = () => {
|
|
4081
4044
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4082
|
-
},
|
|
4083
|
-
r(1, m = !!
|
|
4084
|
-
},
|
|
4045
|
+
}, ie = () => {
|
|
4046
|
+
r(1, m = !!a && a !== "false");
|
|
4047
|
+
}, Jt = () => {
|
|
4085
4048
|
r(3, v = !!c && c !== "false");
|
|
4086
|
-
},
|
|
4049
|
+
}, qt = () => {
|
|
4087
4050
|
r(2, g = h || "header.general");
|
|
4088
4051
|
};
|
|
4089
|
-
function
|
|
4090
|
-
|
|
4052
|
+
function Yt(_) {
|
|
4053
|
+
Pe[_ ? "unshift" : "push"](() => {
|
|
4091
4054
|
d = _, r(0, d);
|
|
4092
4055
|
});
|
|
4093
4056
|
}
|
|
4094
4057
|
return e.$$set = (_) => {
|
|
4095
|
-
"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);
|
|
4096
4059
|
}, e.$$.update = () => {
|
|
4097
4060
|
e.$$.dirty & /*lang*/
|
|
4098
|
-
4096 && f &&
|
|
4099
|
-
6144 && f && h &&
|
|
4100
|
-
129 &&
|
|
4101
|
-
257 &&
|
|
4102
|
-
4608 && f && l &&
|
|
4103
|
-
1024 &&
|
|
4104
|
-
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();
|
|
4105
4068
|
}, [
|
|
4106
4069
|
d,
|
|
4107
4070
|
m,
|
|
4108
4071
|
g,
|
|
4109
4072
|
v,
|
|
4110
4073
|
n,
|
|
4111
|
-
|
|
4112
|
-
|
|
4074
|
+
T,
|
|
4075
|
+
$,
|
|
4076
|
+
u,
|
|
4113
4077
|
o,
|
|
4114
|
-
a,
|
|
4115
4078
|
l,
|
|
4116
|
-
|
|
4079
|
+
a,
|
|
4117
4080
|
h,
|
|
4118
4081
|
f,
|
|
4119
4082
|
c,
|
|
4120
4083
|
s,
|
|
4121
4084
|
i,
|
|
4122
|
-
|
|
4085
|
+
Yt
|
|
4123
4086
|
];
|
|
4124
4087
|
}
|
|
4125
|
-
class
|
|
4088
|
+
class vi extends _r {
|
|
4126
4089
|
constructor(t) {
|
|
4127
|
-
super(),
|
|
4090
|
+
super(), br(
|
|
4128
4091
|
this,
|
|
4129
4092
|
t,
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4093
|
+
Ei,
|
|
4094
|
+
xi,
|
|
4095
|
+
yt,
|
|
4133
4096
|
{
|
|
4134
4097
|
clientstyling: 7,
|
|
4135
4098
|
clientstylingurl: 8,
|
|
@@ -4139,53 +4102,53 @@ class Ni extends Cr {
|
|
|
4139
4102
|
lang: 12,
|
|
4140
4103
|
showclosebutton: 13
|
|
4141
4104
|
},
|
|
4142
|
-
|
|
4105
|
+
mi
|
|
4143
4106
|
);
|
|
4144
4107
|
}
|
|
4145
4108
|
get clientstyling() {
|
|
4146
4109
|
return this.$$.ctx[7];
|
|
4147
4110
|
}
|
|
4148
4111
|
set clientstyling(t) {
|
|
4149
|
-
this.$$set({ clientstyling: t }),
|
|
4112
|
+
this.$$set({ clientstyling: t }), S();
|
|
4150
4113
|
}
|
|
4151
4114
|
get clientstylingurl() {
|
|
4152
4115
|
return this.$$.ctx[8];
|
|
4153
4116
|
}
|
|
4154
4117
|
set clientstylingurl(t) {
|
|
4155
|
-
this.$$set({ clientstylingurl: t }),
|
|
4118
|
+
this.$$set({ clientstylingurl: t }), S();
|
|
4156
4119
|
}
|
|
4157
4120
|
get translationurl() {
|
|
4158
4121
|
return this.$$.ctx[9];
|
|
4159
4122
|
}
|
|
4160
4123
|
set translationurl(t) {
|
|
4161
|
-
this.$$set({ translationurl: t }),
|
|
4124
|
+
this.$$set({ translationurl: t }), S();
|
|
4162
4125
|
}
|
|
4163
4126
|
get showbackbutton() {
|
|
4164
4127
|
return this.$$.ctx[10];
|
|
4165
4128
|
}
|
|
4166
4129
|
set showbackbutton(t) {
|
|
4167
|
-
this.$$set({ showbackbutton: t }),
|
|
4130
|
+
this.$$set({ showbackbutton: t }), S();
|
|
4168
4131
|
}
|
|
4169
4132
|
get title() {
|
|
4170
4133
|
return this.$$.ctx[11];
|
|
4171
4134
|
}
|
|
4172
4135
|
set title(t) {
|
|
4173
|
-
this.$$set({ title: t }),
|
|
4136
|
+
this.$$set({ title: t }), S();
|
|
4174
4137
|
}
|
|
4175
4138
|
get lang() {
|
|
4176
4139
|
return this.$$.ctx[12];
|
|
4177
4140
|
}
|
|
4178
4141
|
set lang(t) {
|
|
4179
|
-
this.$$set({ lang: t }),
|
|
4142
|
+
this.$$set({ lang: t }), S();
|
|
4180
4143
|
}
|
|
4181
4144
|
get showclosebutton() {
|
|
4182
4145
|
return this.$$.ctx[13];
|
|
4183
4146
|
}
|
|
4184
4147
|
set showclosebutton(t) {
|
|
4185
|
-
this.$$set({ showclosebutton: t }),
|
|
4148
|
+
this.$$set({ showclosebutton: t }), S();
|
|
4186
4149
|
}
|
|
4187
4150
|
}
|
|
4188
|
-
|
|
4151
|
+
gr(vi, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4189
4152
|
export {
|
|
4190
|
-
|
|
4153
|
+
vi as C
|
|
4191
4154
|
};
|