@everymatrix/cashier-header 1.87.25 → 1.87.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CashierHeader-BOyZAhWT.cjs +5 -0
- package/components/{CashierHeader-BimbWnMq.js → CashierHeader-CXow1th-.js} +672 -644
- package/components/{CashierHeader-DxQ1A6Wj.js → CashierHeader-CrD00HbH.js} +765 -738
- package/es2015/cashier-header.cjs +1 -1
- package/es2015/cashier-header.js +1 -1
- package/esnext/cashier-header.js +1 -1
- package/package.json +1 -1
- package/components/CashierHeader-Cu-8sLy3.cjs +0 -5
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var or = Object.defineProperty, ar = Object.defineProperties;
|
|
2
|
+
var ur = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var qe = Object.getOwnPropertySymbols;
|
|
4
|
+
var hr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ve = (e, t, r) => t in e ? or(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
hr.call(t, r) && ve(e, r, t[r]);
|
|
8
|
+
if (qe)
|
|
9
|
+
for (var r of qe(t))
|
|
10
|
+
lr.call(t, r) && ve(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, Ke = (e, t) => ar(e, ur(t));
|
|
13
|
+
var w = (e, t, r) => (ve(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
o(r.next(l));
|
|
@@ -27,9 +27,9 @@ var Ke = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, a);
|
|
28
28
|
o((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function B() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function fr(e, t) {
|
|
33
33
|
for (const r in t)
|
|
34
34
|
e[r] = t[r];
|
|
35
35
|
return (
|
|
@@ -40,43 +40,43 @@ function hr(e, t) {
|
|
|
40
40
|
function Bt(e) {
|
|
41
41
|
return e();
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function tt() {
|
|
44
44
|
return /* @__PURE__ */ Object.create(null);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function re(e) {
|
|
47
47
|
e.forEach(Bt);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function We(e) {
|
|
50
50
|
return typeof e == "function";
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function St(e, t) {
|
|
53
53
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function cr(e) {
|
|
56
56
|
return Object.keys(e).length === 0;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Tt(e, ...t) {
|
|
59
59
|
if (e == null) {
|
|
60
60
|
for (const n of t)
|
|
61
61
|
n(void 0);
|
|
62
|
-
return
|
|
62
|
+
return B;
|
|
63
63
|
}
|
|
64
64
|
const r = e.subscribe(...t);
|
|
65
65
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
e.$$.on_destroy.push(
|
|
67
|
+
function mr(e, t, r) {
|
|
68
|
+
e.$$.on_destroy.push(Tt(t, r));
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function He(e, t, r, n) {
|
|
71
71
|
if (e) {
|
|
72
|
-
const i =
|
|
72
|
+
const i = At(e, t, r, n);
|
|
73
73
|
return e[0](i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return e[1] && n ?
|
|
76
|
+
function At(e, t, r, n) {
|
|
77
|
+
return e[1] && n ? fr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function we(e, t, r, n) {
|
|
80
80
|
if (e[2] && n) {
|
|
81
81
|
const i = e[2](n(r));
|
|
82
82
|
if (t.dirty === void 0)
|
|
@@ -93,11 +93,11 @@ function He(e, t, r, n) {
|
|
|
93
93
|
}
|
|
94
94
|
function Be(e, t, r, n, i, s) {
|
|
95
95
|
if (i) {
|
|
96
|
-
const a =
|
|
96
|
+
const a = At(t, r, n, s);
|
|
97
97
|
e.p(a, i);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Se(e) {
|
|
101
101
|
if (e.ctx.length > 32) {
|
|
102
102
|
const t = [], r = e.ctx.length / 32;
|
|
103
103
|
for (let n = 0; n < r; n++)
|
|
@@ -106,17 +106,17 @@ function Te(e) {
|
|
|
106
106
|
}
|
|
107
107
|
return -1;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function me(e, t) {
|
|
110
110
|
e.appendChild(t);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
const n =
|
|
112
|
+
function pr(e, t, r) {
|
|
113
|
+
const n = dr(e);
|
|
114
114
|
if (!n.getElementById(t)) {
|
|
115
115
|
const i = z("style");
|
|
116
|
-
i.id = t, i.textContent = r,
|
|
116
|
+
i.id = t, i.textContent = r, br(n, i);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function dr(e) {
|
|
120
120
|
if (!e)
|
|
121
121
|
return document;
|
|
122
122
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -126,8 +126,8 @@ function mr(e) {
|
|
|
126
126
|
t
|
|
127
127
|
) : e.ownerDocument;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
return
|
|
129
|
+
function br(e, t) {
|
|
130
|
+
return me(
|
|
131
131
|
/** @type {Document} */
|
|
132
132
|
e.head || e,
|
|
133
133
|
t
|
|
@@ -145,26 +145,26 @@ function z(e) {
|
|
|
145
145
|
function ze(e) {
|
|
146
146
|
return document.createTextNode(e);
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function rt() {
|
|
149
149
|
return ze(" ");
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Ct() {
|
|
152
152
|
return ze("");
|
|
153
153
|
}
|
|
154
154
|
function Ot(e, t, r, n) {
|
|
155
155
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function ne(e, t, r) {
|
|
158
158
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function gr(e) {
|
|
161
161
|
return Array.from(e.childNodes);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function _r(e, t) {
|
|
164
164
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
165
165
|
t);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function yr(e) {
|
|
168
168
|
const t = {};
|
|
169
169
|
return e.childNodes.forEach(
|
|
170
170
|
/** @param {Element} node */
|
|
@@ -173,105 +173,105 @@ function gr(e) {
|
|
|
173
173
|
}
|
|
174
174
|
), t;
|
|
175
175
|
}
|
|
176
|
-
let
|
|
177
|
-
function
|
|
178
|
-
|
|
176
|
+
let K;
|
|
177
|
+
function Y(e) {
|
|
178
|
+
K = e;
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
if (!
|
|
180
|
+
function Er() {
|
|
181
|
+
if (!K)
|
|
182
182
|
throw new Error("Function called outside component initialization");
|
|
183
|
-
return
|
|
183
|
+
return K;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
|
|
185
|
+
function xr(e) {
|
|
186
|
+
Er().$$.on_mount.push(e);
|
|
187
187
|
}
|
|
188
|
-
const G = [],
|
|
189
|
-
let
|
|
190
|
-
const
|
|
191
|
-
let
|
|
192
|
-
function
|
|
193
|
-
|
|
188
|
+
const G = [], Me = [];
|
|
189
|
+
let j = [];
|
|
190
|
+
const nt = [], vr = /* @__PURE__ */ Promise.resolve();
|
|
191
|
+
let Re = !1;
|
|
192
|
+
function Hr() {
|
|
193
|
+
Re || (Re = !0, vr.then(S));
|
|
194
194
|
}
|
|
195
195
|
function $e(e) {
|
|
196
|
-
|
|
196
|
+
j.push(e);
|
|
197
197
|
}
|
|
198
|
-
const
|
|
198
|
+
const Te = /* @__PURE__ */ new Set();
|
|
199
199
|
let U = 0;
|
|
200
|
-
function
|
|
200
|
+
function S() {
|
|
201
201
|
if (U !== 0)
|
|
202
202
|
return;
|
|
203
|
-
const e =
|
|
203
|
+
const e = K;
|
|
204
204
|
do {
|
|
205
205
|
try {
|
|
206
206
|
for (; U < G.length; ) {
|
|
207
207
|
const t = G[U];
|
|
208
|
-
U++,
|
|
208
|
+
U++, Y(t), wr(t.$$);
|
|
209
209
|
}
|
|
210
210
|
} catch (t) {
|
|
211
211
|
throw G.length = 0, U = 0, t;
|
|
212
212
|
}
|
|
213
|
-
for (
|
|
214
|
-
|
|
215
|
-
for (let t = 0; t <
|
|
216
|
-
const r =
|
|
217
|
-
|
|
213
|
+
for (Y(null), G.length = 0, U = 0; Me.length; )
|
|
214
|
+
Me.pop()();
|
|
215
|
+
for (let t = 0; t < j.length; t += 1) {
|
|
216
|
+
const r = j[t];
|
|
217
|
+
Te.has(r) || (Te.add(r), r());
|
|
218
218
|
}
|
|
219
|
-
|
|
219
|
+
j.length = 0;
|
|
220
220
|
} while (G.length);
|
|
221
|
-
for (;
|
|
222
|
-
|
|
223
|
-
|
|
221
|
+
for (; nt.length; )
|
|
222
|
+
nt.pop()();
|
|
223
|
+
Re = !1, Te.clear(), Y(e);
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function wr(e) {
|
|
226
226
|
if (e.fragment !== null) {
|
|
227
|
-
e.update(),
|
|
227
|
+
e.update(), re(e.before_update);
|
|
228
228
|
const t = e.dirty;
|
|
229
229
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function Br(e) {
|
|
233
233
|
const t = [], r = [];
|
|
234
|
-
|
|
234
|
+
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
235
235
|
}
|
|
236
|
-
const
|
|
237
|
-
let
|
|
238
|
-
function
|
|
239
|
-
e && e.i && (
|
|
236
|
+
const ue = /* @__PURE__ */ new Set();
|
|
237
|
+
let Sr;
|
|
238
|
+
function he(e, t) {
|
|
239
|
+
e && e.i && (ue.delete(e), e.i(t));
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function Ae(e, t, r, n) {
|
|
242
242
|
if (e && e.o) {
|
|
243
|
-
if (
|
|
243
|
+
if (ue.has(e))
|
|
244
244
|
return;
|
|
245
|
-
|
|
246
|
-
|
|
245
|
+
ue.add(e), Sr.c.push(() => {
|
|
246
|
+
ue.delete(e);
|
|
247
247
|
}), e.o(t);
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
function Tr(e, t, r) {
|
|
251
251
|
const { fragment: n, after_update: i } = e.$$;
|
|
252
252
|
n && n.m(t, r), $e(() => {
|
|
253
|
-
const s = e.$$.on_mount.map(Bt).filter(
|
|
254
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
253
|
+
const s = e.$$.on_mount.map(Bt).filter(We);
|
|
254
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
|
|
255
255
|
}), i.forEach($e);
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function Ar(e, t) {
|
|
258
258
|
const r = e.$$;
|
|
259
|
-
r.fragment !== null && (
|
|
259
|
+
r.fragment !== null && (Br(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
e.$$.dirty[0] === -1 && (G.push(e),
|
|
261
|
+
function Cr(e, t) {
|
|
262
|
+
e.$$.dirty[0] === -1 && (G.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
const l =
|
|
266
|
-
|
|
264
|
+
function Or(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
265
|
+
const l = K;
|
|
266
|
+
Y(e);
|
|
267
267
|
const u = e.$$ = {
|
|
268
268
|
fragment: null,
|
|
269
269
|
ctx: [],
|
|
270
270
|
// state
|
|
271
271
|
props: s,
|
|
272
|
-
update:
|
|
272
|
+
update: B,
|
|
273
273
|
not_equal: i,
|
|
274
|
-
bound:
|
|
274
|
+
bound: tt(),
|
|
275
275
|
// lifecycle
|
|
276
276
|
on_mount: [],
|
|
277
277
|
on_destroy: [],
|
|
@@ -280,7 +280,7 @@ function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
280
280
|
after_update: [],
|
|
281
281
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
282
282
|
// everything else
|
|
283
|
-
callbacks:
|
|
283
|
+
callbacks: tt(),
|
|
284
284
|
dirty: o,
|
|
285
285
|
skip_bound: !1,
|
|
286
286
|
root: t.target || l.$$.root
|
|
@@ -289,39 +289,39 @@ function Ar(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
|
289
289
|
let h = !1;
|
|
290
290
|
if (u.ctx = r ? r(e, t.props || {}, (c, m, ...p) => {
|
|
291
291
|
const f = p.length ? p[0] : m;
|
|
292
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = f) && (!u.skip_bound && u.bound[c] && u.bound[c](f), h &&
|
|
293
|
-
}) : [], u.update(), h = !0,
|
|
292
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = f) && (!u.skip_bound && u.bound[c] && u.bound[c](f), h && Cr(e, c)), m;
|
|
293
|
+
}) : [], u.update(), h = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
294
294
|
if (t.hydrate) {
|
|
295
|
-
const c =
|
|
295
|
+
const c = gr(t.target);
|
|
296
296
|
u.fragment && u.fragment.l(c), c.forEach(L);
|
|
297
297
|
} else
|
|
298
298
|
u.fragment && u.fragment.c();
|
|
299
|
-
t.intro &&
|
|
299
|
+
t.intro && he(e.$$.fragment), Tr(e, t.target, t.anchor), S();
|
|
300
300
|
}
|
|
301
|
-
|
|
301
|
+
Y(l);
|
|
302
302
|
}
|
|
303
|
-
let
|
|
304
|
-
typeof HTMLElement == "function" && (
|
|
303
|
+
let Pt;
|
|
304
|
+
typeof HTMLElement == "function" && (Pt = class extends HTMLElement {
|
|
305
305
|
constructor(t, r, n) {
|
|
306
306
|
super();
|
|
307
307
|
/** The Svelte component constructor */
|
|
308
|
-
|
|
308
|
+
w(this, "$$ctor");
|
|
309
309
|
/** Slots */
|
|
310
|
-
|
|
310
|
+
w(this, "$$s");
|
|
311
311
|
/** The Svelte component instance */
|
|
312
|
-
|
|
312
|
+
w(this, "$$c");
|
|
313
313
|
/** Whether or not the custom element is connected */
|
|
314
|
-
|
|
314
|
+
w(this, "$$cn", !1);
|
|
315
315
|
/** Component props data */
|
|
316
|
-
|
|
316
|
+
w(this, "$$d", {});
|
|
317
317
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
318
|
-
|
|
318
|
+
w(this, "$$r", !1);
|
|
319
319
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
320
|
-
|
|
320
|
+
w(this, "$$p_d", {});
|
|
321
321
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
322
|
-
|
|
322
|
+
w(this, "$$l", {});
|
|
323
323
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
324
|
-
|
|
324
|
+
w(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
325
325
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
326
326
|
}
|
|
327
327
|
addEventListener(t, r, n) {
|
|
@@ -338,14 +338,14 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
connectedCallback() {
|
|
341
|
-
return
|
|
341
|
+
return et(this, null, function* () {
|
|
342
342
|
if (this.$$cn = !0, !this.$$c) {
|
|
343
343
|
let t = function(s) {
|
|
344
344
|
return () => {
|
|
345
345
|
let a;
|
|
346
346
|
return {
|
|
347
347
|
c: function() {
|
|
348
|
-
a = z("slot"), s !== "default" &&
|
|
348
|
+
a = z("slot"), s !== "default" && ne(a, "name", s);
|
|
349
349
|
},
|
|
350
350
|
/**
|
|
351
351
|
* @param {HTMLElement} target
|
|
@@ -362,18 +362,18 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
362
362
|
};
|
|
363
363
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
364
364
|
return;
|
|
365
|
-
const r = {}, n =
|
|
365
|
+
const r = {}, n = yr(this);
|
|
366
366
|
for (const s of this.$$s)
|
|
367
367
|
s in n && (r[s] = [t(s)]);
|
|
368
368
|
for (const s of this.attributes) {
|
|
369
369
|
const a = this.$$g_p(s.name);
|
|
370
|
-
a in this.$$d || (this.$$d[a] =
|
|
370
|
+
a in this.$$d || (this.$$d[a] = le(a, s.value, this.$$p_d, "toProp"));
|
|
371
371
|
}
|
|
372
372
|
for (const s in this.$$p_d)
|
|
373
373
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
374
374
|
this.$$c = new this.$$ctor({
|
|
375
375
|
target: this.shadowRoot || this,
|
|
376
|
-
props: Ye(
|
|
376
|
+
props: Ke(Ye({}, this.$$d), {
|
|
377
377
|
$$slots: r,
|
|
378
378
|
$$scope: {
|
|
379
379
|
ctx: []
|
|
@@ -384,7 +384,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
384
384
|
this.$$r = !0;
|
|
385
385
|
for (const s in this.$$p_d)
|
|
386
386
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
387
|
-
const a =
|
|
387
|
+
const a = le(
|
|
388
388
|
s,
|
|
389
389
|
this.$$d[s],
|
|
390
390
|
this.$$p_d,
|
|
@@ -408,7 +408,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
408
408
|
// and setting attributes through setAttribute etc, this is helpful
|
|
409
409
|
attributeChangedCallback(t, r, n) {
|
|
410
410
|
var i;
|
|
411
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
411
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = le(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
412
412
|
}
|
|
413
413
|
disconnectedCallback() {
|
|
414
414
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -421,7 +421,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
421
421
|
) || t;
|
|
422
422
|
}
|
|
423
423
|
});
|
|
424
|
-
function
|
|
424
|
+
function le(e, t, r, n) {
|
|
425
425
|
var s;
|
|
426
426
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
427
427
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -451,8 +451,8 @@ function he(e, t, r, n) {
|
|
|
451
451
|
return t;
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
function
|
|
455
|
-
let a = class extends
|
|
454
|
+
function Pr(e, t, r, n, i, s) {
|
|
455
|
+
let a = class extends Pt {
|
|
456
456
|
constructor() {
|
|
457
457
|
super(e, r, i), this.$$p_d = t;
|
|
458
458
|
}
|
|
@@ -469,7 +469,7 @@ function Or(e, t, r, n, i, s) {
|
|
|
469
469
|
},
|
|
470
470
|
set(l) {
|
|
471
471
|
var u;
|
|
472
|
-
l =
|
|
472
|
+
l = le(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
|
|
473
473
|
}
|
|
474
474
|
});
|
|
475
475
|
}), n.forEach((o) => {
|
|
@@ -482,7 +482,7 @@ function Or(e, t, r, n, i, s) {
|
|
|
482
482
|
}), e.element = /** @type {any} */
|
|
483
483
|
a, a;
|
|
484
484
|
}
|
|
485
|
-
class
|
|
485
|
+
class Lr {
|
|
486
486
|
constructor() {
|
|
487
487
|
/**
|
|
488
488
|
* ### PRIVATE API
|
|
@@ -491,7 +491,7 @@ class Cr {
|
|
|
491
491
|
*
|
|
492
492
|
* @type {any}
|
|
493
493
|
*/
|
|
494
|
-
|
|
494
|
+
w(this, "$$");
|
|
495
495
|
/**
|
|
496
496
|
* ### PRIVATE API
|
|
497
497
|
*
|
|
@@ -499,11 +499,11 @@ class Cr {
|
|
|
499
499
|
*
|
|
500
500
|
* @type {any}
|
|
501
501
|
*/
|
|
502
|
-
|
|
502
|
+
w(this, "$$set");
|
|
503
503
|
}
|
|
504
504
|
/** @returns {void} */
|
|
505
505
|
$destroy() {
|
|
506
|
-
|
|
506
|
+
Ar(this, 1), this.$destroy = B;
|
|
507
507
|
}
|
|
508
508
|
/**
|
|
509
509
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -512,8 +512,8 @@ class Cr {
|
|
|
512
512
|
* @returns {() => void}
|
|
513
513
|
*/
|
|
514
514
|
$on(t, r) {
|
|
515
|
-
if (!
|
|
516
|
-
return
|
|
515
|
+
if (!We(r))
|
|
516
|
+
return B;
|
|
517
517
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
518
518
|
return n.push(r), () => {
|
|
519
519
|
const i = n.indexOf(r);
|
|
@@ -525,22 +525,22 @@ class Cr {
|
|
|
525
525
|
* @returns {void}
|
|
526
526
|
*/
|
|
527
527
|
$set(t) {
|
|
528
|
-
this.$$set && !
|
|
528
|
+
this.$$set && !cr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
-
const
|
|
532
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
531
|
+
const Nr = "4";
|
|
532
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nr);
|
|
533
533
|
const D = [];
|
|
534
|
-
function
|
|
534
|
+
function Ir(e, t) {
|
|
535
535
|
return {
|
|
536
|
-
subscribe:
|
|
536
|
+
subscribe: _e(e, t).subscribe
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function _e(e, t = B) {
|
|
540
540
|
let r;
|
|
541
541
|
const n = /* @__PURE__ */ new Set();
|
|
542
542
|
function i(o) {
|
|
543
|
-
if (
|
|
543
|
+
if (St(e, o) && (e = o, r)) {
|
|
544
544
|
const l = !D.length;
|
|
545
545
|
for (const u of n)
|
|
546
546
|
u[1](), D.push(u, e);
|
|
@@ -554,31 +554,31 @@ function ge(e, t = T) {
|
|
|
554
554
|
function s(o) {
|
|
555
555
|
i(o(e));
|
|
556
556
|
}
|
|
557
|
-
function a(o, l =
|
|
557
|
+
function a(o, l = B) {
|
|
558
558
|
const u = [o, l];
|
|
559
|
-
return n.add(u), n.size === 1 && (r = t(i, s) ||
|
|
559
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || B), o(e), () => {
|
|
560
560
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
561
561
|
};
|
|
562
562
|
}
|
|
563
563
|
return { set: i, update: s, subscribe: a };
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function Z(e, t, r) {
|
|
566
566
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
567
567
|
if (!i.every(Boolean))
|
|
568
568
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
569
569
|
const s = t.length < 2;
|
|
570
|
-
return
|
|
570
|
+
return Ir(r, (a, o) => {
|
|
571
571
|
let l = !1;
|
|
572
572
|
const u = [];
|
|
573
|
-
let h = 0, c =
|
|
573
|
+
let h = 0, c = B;
|
|
574
574
|
const m = () => {
|
|
575
575
|
if (h)
|
|
576
576
|
return;
|
|
577
577
|
c();
|
|
578
578
|
const f = t(n ? u[0] : u, a, o);
|
|
579
|
-
s ? a(f) : c =
|
|
579
|
+
s ? a(f) : c = We(f) ? f : B;
|
|
580
580
|
}, p = i.map(
|
|
581
|
-
(f, _) =>
|
|
581
|
+
(f, _) => Tt(
|
|
582
582
|
f,
|
|
583
583
|
(v) => {
|
|
584
584
|
u[_] = v, h &= ~(1 << _), l && m();
|
|
@@ -589,112 +589,112 @@ function W(e, t, r) {
|
|
|
589
589
|
)
|
|
590
590
|
);
|
|
591
591
|
return l = !0, m(), function() {
|
|
592
|
-
|
|
592
|
+
re(p), c(), l = !1;
|
|
593
593
|
};
|
|
594
594
|
});
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function Mr(e) {
|
|
597
597
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
598
598
|
}
|
|
599
|
-
var
|
|
600
|
-
return
|
|
599
|
+
var Rr = function(t) {
|
|
600
|
+
return $r(t) && !Ur(t);
|
|
601
601
|
};
|
|
602
|
-
function
|
|
602
|
+
function $r(e) {
|
|
603
603
|
return !!e && typeof e == "object";
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function Ur(e) {
|
|
606
606
|
var t = Object.prototype.toString.call(e);
|
|
607
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
607
|
+
return t === "[object RegExp]" || t === "[object Date]" || Fr(e);
|
|
608
608
|
}
|
|
609
|
-
var
|
|
610
|
-
function
|
|
611
|
-
return e.$$typeof ===
|
|
609
|
+
var Dr = typeof Symbol == "function" && Symbol.for, Gr = Dr ? Symbol.for("react.element") : 60103;
|
|
610
|
+
function Fr(e) {
|
|
611
|
+
return e.$$typeof === Gr;
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function jr(e) {
|
|
614
614
|
return Array.isArray(e) ? [] : {};
|
|
615
615
|
}
|
|
616
|
-
function
|
|
617
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
616
|
+
function ee(e, t) {
|
|
617
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(jr(e), e, t) : e;
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function kr(e, t, r) {
|
|
620
620
|
return e.concat(t).map(function(n) {
|
|
621
|
-
return
|
|
621
|
+
return ee(n, r);
|
|
622
622
|
});
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Vr(e, t) {
|
|
625
625
|
if (!t.customMerge)
|
|
626
|
-
return
|
|
626
|
+
return k;
|
|
627
627
|
var r = t.customMerge(e);
|
|
628
|
-
return typeof r == "function" ? r :
|
|
628
|
+
return typeof r == "function" ? r : k;
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function Xr(e) {
|
|
631
631
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
632
632
|
return Object.propertyIsEnumerable.call(e, t);
|
|
633
633
|
}) : [];
|
|
634
634
|
}
|
|
635
|
-
function
|
|
636
|
-
return Object.keys(e).concat(
|
|
635
|
+
function it(e) {
|
|
636
|
+
return Object.keys(e).concat(Xr(e));
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function Lt(e, t) {
|
|
639
639
|
try {
|
|
640
640
|
return t in e;
|
|
641
641
|
} catch (r) {
|
|
642
642
|
return !1;
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
return
|
|
645
|
+
function Wr(e, t) {
|
|
646
|
+
return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function zr(e, t, r) {
|
|
649
649
|
var n = {};
|
|
650
|
-
return r.isMergeableObject(e) &&
|
|
651
|
-
n[i] =
|
|
652
|
-
}),
|
|
653
|
-
|
|
650
|
+
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
651
|
+
n[i] = ee(e[i], r);
|
|
652
|
+
}), it(t).forEach(function(i) {
|
|
653
|
+
Wr(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Vr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
|
|
654
654
|
}), n;
|
|
655
655
|
}
|
|
656
|
-
function
|
|
657
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
656
|
+
function k(e, t, r) {
|
|
657
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || kr, r.isMergeableObject = r.isMergeableObject || Rr, r.cloneUnlessOtherwiseSpecified = ee;
|
|
658
658
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
659
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
659
|
+
return s ? n ? r.arrayMerge(e, t, r) : zr(e, t, r) : ee(t, r);
|
|
660
660
|
}
|
|
661
|
-
|
|
661
|
+
k.all = function(t, r) {
|
|
662
662
|
if (!Array.isArray(t))
|
|
663
663
|
throw new Error("first argument should be an array");
|
|
664
664
|
return t.reduce(function(n, i) {
|
|
665
|
-
return
|
|
665
|
+
return k(n, i, r);
|
|
666
666
|
}, {});
|
|
667
667
|
};
|
|
668
|
-
var
|
|
669
|
-
const
|
|
670
|
-
var
|
|
671
|
-
return
|
|
668
|
+
var Zr = k, Qr = Zr;
|
|
669
|
+
const Jr = /* @__PURE__ */ Mr(Qr);
|
|
670
|
+
var Ue = function(e, t) {
|
|
671
|
+
return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
672
672
|
r.__proto__ = n;
|
|
673
673
|
} || function(r, n) {
|
|
674
674
|
for (var i in n)
|
|
675
675
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
676
|
-
},
|
|
676
|
+
}, Ue(e, t);
|
|
677
677
|
};
|
|
678
|
-
function
|
|
678
|
+
function ye(e, t) {
|
|
679
679
|
if (typeof t != "function" && t !== null)
|
|
680
680
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
681
|
-
|
|
681
|
+
Ue(e, t);
|
|
682
682
|
function r() {
|
|
683
683
|
this.constructor = e;
|
|
684
684
|
}
|
|
685
685
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
686
686
|
}
|
|
687
|
-
var
|
|
688
|
-
return
|
|
687
|
+
var T = function() {
|
|
688
|
+
return T = Object.assign || function(t) {
|
|
689
689
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
690
690
|
r = arguments[n];
|
|
691
691
|
for (var s in r)
|
|
692
692
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
693
693
|
}
|
|
694
694
|
return t;
|
|
695
|
-
},
|
|
695
|
+
}, T.apply(this, arguments);
|
|
696
696
|
};
|
|
697
|
-
function
|
|
697
|
+
function qr(e, t) {
|
|
698
698
|
var r = {};
|
|
699
699
|
for (var n in e)
|
|
700
700
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -703,43 +703,43 @@ function Qr(e, t) {
|
|
|
703
703
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
704
704
|
return r;
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function Ce(e, t, r) {
|
|
707
707
|
if (r || arguments.length === 2)
|
|
708
708
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
709
709
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
710
710
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
711
711
|
}
|
|
712
712
|
function Oe(e, t) {
|
|
713
|
-
var r = t && t.cache ? t.cache :
|
|
713
|
+
var r = t && t.cache ? t.cache : sn, n = t && t.serializer ? t.serializer : rn, i = t && t.strategy ? t.strategy : en;
|
|
714
714
|
return i(e, {
|
|
715
715
|
cache: r,
|
|
716
716
|
serializer: n
|
|
717
717
|
});
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function Yr(e) {
|
|
720
720
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
721
721
|
}
|
|
722
|
-
function
|
|
723
|
-
var i =
|
|
722
|
+
function Kr(e, t, r, n) {
|
|
723
|
+
var i = Yr(n) ? n : r(n), s = t.get(i);
|
|
724
724
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
725
725
|
}
|
|
726
|
-
function
|
|
726
|
+
function Nt(e, t, r) {
|
|
727
727
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
728
728
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
729
729
|
}
|
|
730
|
-
function
|
|
730
|
+
function It(e, t, r, n, i) {
|
|
731
731
|
return r.bind(t, e, n, i);
|
|
732
732
|
}
|
|
733
|
-
function
|
|
734
|
-
var r = e.length === 1 ?
|
|
735
|
-
return
|
|
733
|
+
function en(e, t) {
|
|
734
|
+
var r = e.length === 1 ? Kr : Nt;
|
|
735
|
+
return It(e, this, r, t.cache.create(), t.serializer);
|
|
736
736
|
}
|
|
737
|
-
function
|
|
738
|
-
return
|
|
737
|
+
function tn(e, t) {
|
|
738
|
+
return It(e, this, Nt, t.cache.create(), t.serializer);
|
|
739
739
|
}
|
|
740
|
-
var
|
|
740
|
+
var rn = function() {
|
|
741
741
|
return JSON.stringify(arguments);
|
|
742
|
-
},
|
|
742
|
+
}, nn = (
|
|
743
743
|
/** @class */
|
|
744
744
|
function() {
|
|
745
745
|
function e() {
|
|
@@ -751,21 +751,21 @@ var en = function() {
|
|
|
751
751
|
this.cache[t] = r;
|
|
752
752
|
}, e;
|
|
753
753
|
}()
|
|
754
|
-
),
|
|
754
|
+
), sn = {
|
|
755
755
|
create: function() {
|
|
756
|
-
return new
|
|
756
|
+
return new nn();
|
|
757
757
|
}
|
|
758
|
-
},
|
|
759
|
-
variadic:
|
|
760
|
-
},
|
|
761
|
-
return
|
|
758
|
+
}, Pe = {
|
|
759
|
+
variadic: tn
|
|
760
|
+
}, pe = function() {
|
|
761
|
+
return pe = Object.assign || function(t) {
|
|
762
762
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
763
763
|
r = arguments[n];
|
|
764
764
|
for (var s in r)
|
|
765
765
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
766
766
|
}
|
|
767
767
|
return t;
|
|
768
|
-
},
|
|
768
|
+
}, pe.apply(this, arguments);
|
|
769
769
|
};
|
|
770
770
|
var d;
|
|
771
771
|
(function(e) {
|
|
@@ -775,47 +775,47 @@ var y;
|
|
|
775
775
|
(function(e) {
|
|
776
776
|
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";
|
|
777
777
|
})(y || (y = {}));
|
|
778
|
-
var
|
|
778
|
+
var V;
|
|
779
779
|
(function(e) {
|
|
780
780
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
781
|
-
})(
|
|
782
|
-
function
|
|
781
|
+
})(V || (V = {}));
|
|
782
|
+
function st(e) {
|
|
783
783
|
return e.type === y.literal;
|
|
784
784
|
}
|
|
785
|
-
function
|
|
785
|
+
function on(e) {
|
|
786
786
|
return e.type === y.argument;
|
|
787
787
|
}
|
|
788
|
-
function
|
|
788
|
+
function Mt(e) {
|
|
789
789
|
return e.type === y.number;
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function Rt(e) {
|
|
792
792
|
return e.type === y.date;
|
|
793
793
|
}
|
|
794
794
|
function $t(e) {
|
|
795
795
|
return e.type === y.time;
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function Ut(e) {
|
|
798
798
|
return e.type === y.select;
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function Dt(e) {
|
|
801
801
|
return e.type === y.plural;
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function an(e) {
|
|
804
804
|
return e.type === y.pound;
|
|
805
805
|
}
|
|
806
|
-
function
|
|
806
|
+
function Gt(e) {
|
|
807
807
|
return e.type === y.tag;
|
|
808
808
|
}
|
|
809
|
-
function
|
|
810
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
809
|
+
function Ft(e) {
|
|
810
|
+
return !!(e && typeof e == "object" && e.type === V.number);
|
|
811
811
|
}
|
|
812
|
-
function
|
|
813
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
812
|
+
function De(e) {
|
|
813
|
+
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
814
814
|
}
|
|
815
|
-
var
|
|
816
|
-
function
|
|
815
|
+
var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, un = /(?:[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;
|
|
816
|
+
function hn(e) {
|
|
817
817
|
var t = {};
|
|
818
|
-
return e.replace(
|
|
818
|
+
return e.replace(un, function(r) {
|
|
819
819
|
var n = r.length;
|
|
820
820
|
switch (r[0]) {
|
|
821
821
|
case "G":
|
|
@@ -914,11 +914,11 @@ var E = function() {
|
|
|
914
914
|
return t;
|
|
915
915
|
}, E.apply(this, arguments);
|
|
916
916
|
};
|
|
917
|
-
var
|
|
918
|
-
function
|
|
917
|
+
var ln = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
918
|
+
function fn(e) {
|
|
919
919
|
if (e.length === 0)
|
|
920
920
|
throw new Error("Number skeleton cannot be empty");
|
|
921
|
-
for (var t = e.split(
|
|
921
|
+
for (var t = e.split(ln).filter(function(m) {
|
|
922
922
|
return m.length > 0;
|
|
923
923
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
924
924
|
var s = i[n], a = s.split("/");
|
|
@@ -933,17 +933,17 @@ function hn(e) {
|
|
|
933
933
|
}
|
|
934
934
|
return r;
|
|
935
935
|
}
|
|
936
|
-
function
|
|
936
|
+
function cn(e) {
|
|
937
937
|
return e.replace(/^(.*?)-/, "");
|
|
938
938
|
}
|
|
939
|
-
var
|
|
940
|
-
function
|
|
939
|
+
var ot = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kt = /^(@+)?(\+|#+)?[rs]?$/g, mn = /(\*)(0+)|(#+)(0+)|(0+)/g, Vt = /^(0+)$/;
|
|
940
|
+
function at(e) {
|
|
941
941
|
var t = {};
|
|
942
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
942
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kt, function(r, n, i) {
|
|
943
943
|
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)), "";
|
|
944
944
|
}), t;
|
|
945
945
|
}
|
|
946
|
-
function
|
|
946
|
+
function Xt(e) {
|
|
947
947
|
switch (e) {
|
|
948
948
|
case "sign-auto":
|
|
949
949
|
return {
|
|
@@ -983,7 +983,7 @@ function Vt(e) {
|
|
|
983
983
|
};
|
|
984
984
|
}
|
|
985
985
|
}
|
|
986
|
-
function
|
|
986
|
+
function pn(e) {
|
|
987
987
|
var t;
|
|
988
988
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
989
989
|
notation: "engineering"
|
|
@@ -991,17 +991,17 @@ function cn(e) {
|
|
|
991
991
|
notation: "scientific"
|
|
992
992
|
}, e = e.slice(1)), t) {
|
|
993
993
|
var r = e.slice(0, 2);
|
|
994
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
994
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Vt.test(e))
|
|
995
995
|
throw new Error("Malformed concise eng/scientific notation");
|
|
996
996
|
t.minimumIntegerDigits = e.length;
|
|
997
997
|
}
|
|
998
998
|
return t;
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1001
|
-
var t = {}, r =
|
|
1000
|
+
function ut(e) {
|
|
1001
|
+
var t = {}, r = Xt(e);
|
|
1002
1002
|
return r || t;
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1004
|
+
function dn(e) {
|
|
1005
1005
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1006
1006
|
var i = n[r];
|
|
1007
1007
|
switch (i.stem) {
|
|
@@ -1025,7 +1025,7 @@ function mn(e) {
|
|
|
1025
1025
|
continue;
|
|
1026
1026
|
case "measure-unit":
|
|
1027
1027
|
case "unit":
|
|
1028
|
-
t.style = "unit", t.unit =
|
|
1028
|
+
t.style = "unit", t.unit = cn(i.options[0]);
|
|
1029
1029
|
continue;
|
|
1030
1030
|
case "compact-short":
|
|
1031
1031
|
case "K":
|
|
@@ -1037,12 +1037,12 @@ function mn(e) {
|
|
|
1037
1037
|
continue;
|
|
1038
1038
|
case "scientific":
|
|
1039
1039
|
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1040
|
-
return E(E({}, l),
|
|
1040
|
+
return E(E({}, l), ut(u));
|
|
1041
1041
|
}, {}));
|
|
1042
1042
|
continue;
|
|
1043
1043
|
case "engineering":
|
|
1044
1044
|
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1045
|
-
return E(E({}, l),
|
|
1045
|
+
return E(E({}, l), ut(u));
|
|
1046
1046
|
}, {}));
|
|
1047
1047
|
continue;
|
|
1048
1048
|
case "notation-simple":
|
|
@@ -1087,7 +1087,7 @@ function mn(e) {
|
|
|
1087
1087
|
case "integer-width":
|
|
1088
1088
|
if (i.options.length > 1)
|
|
1089
1089
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1090
|
-
i.options[0].replace(
|
|
1090
|
+
i.options[0].replace(mn, function(l, u, h, c, m, p) {
|
|
1091
1091
|
if (u)
|
|
1092
1092
|
t.minimumIntegerDigits = h.length;
|
|
1093
1093
|
else {
|
|
@@ -1100,32 +1100,32 @@ function mn(e) {
|
|
|
1100
1100
|
});
|
|
1101
1101
|
continue;
|
|
1102
1102
|
}
|
|
1103
|
-
if (
|
|
1103
|
+
if (Vt.test(i.stem)) {
|
|
1104
1104
|
t.minimumIntegerDigits = i.stem.length;
|
|
1105
1105
|
continue;
|
|
1106
1106
|
}
|
|
1107
|
-
if (
|
|
1107
|
+
if (ot.test(i.stem)) {
|
|
1108
1108
|
if (i.options.length > 1)
|
|
1109
1109
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1110
|
-
i.stem.replace(
|
|
1110
|
+
i.stem.replace(ot, function(l, u, h, c, m, p) {
|
|
1111
1111
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : m && p ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1112
1112
|
});
|
|
1113
1113
|
var s = i.options[0];
|
|
1114
|
-
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t),
|
|
1114
|
+
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), at(s)));
|
|
1115
1115
|
continue;
|
|
1116
1116
|
}
|
|
1117
|
-
if (
|
|
1118
|
-
t = E(E({}, t),
|
|
1117
|
+
if (kt.test(i.stem)) {
|
|
1118
|
+
t = E(E({}, t), at(i.stem));
|
|
1119
1119
|
continue;
|
|
1120
1120
|
}
|
|
1121
|
-
var a =
|
|
1121
|
+
var a = Xt(i.stem);
|
|
1122
1122
|
a && (t = E(E({}, t), a));
|
|
1123
|
-
var o =
|
|
1123
|
+
var o = pn(i.stem);
|
|
1124
1124
|
o && (t = E(E({}, t), o));
|
|
1125
1125
|
}
|
|
1126
1126
|
return t;
|
|
1127
1127
|
}
|
|
1128
|
-
var
|
|
1128
|
+
var ae = {
|
|
1129
1129
|
"001": [
|
|
1130
1130
|
"H",
|
|
1131
1131
|
"h"
|
|
@@ -2540,13 +2540,13 @@ var oe = {
|
|
|
2540
2540
|
"h"
|
|
2541
2541
|
]
|
|
2542
2542
|
};
|
|
2543
|
-
function
|
|
2543
|
+
function bn(e, t) {
|
|
2544
2544
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2545
2545
|
var i = e.charAt(n);
|
|
2546
2546
|
if (i === "j") {
|
|
2547
2547
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2548
2548
|
s++, n++;
|
|
2549
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u =
|
|
2549
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = gn(t);
|
|
2550
2550
|
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2551
2551
|
r += l;
|
|
2552
2552
|
for (; a-- > 0; )
|
|
@@ -2556,7 +2556,7 @@ function pn(e, t) {
|
|
|
2556
2556
|
}
|
|
2557
2557
|
return r;
|
|
2558
2558
|
}
|
|
2559
|
-
function
|
|
2559
|
+
function gn(e) {
|
|
2560
2560
|
var t = e.hourCycle;
|
|
2561
2561
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2562
2562
|
e.hourCycles && // @ts-ignore
|
|
@@ -2575,23 +2575,23 @@ function dn(e) {
|
|
|
2575
2575
|
}
|
|
2576
2576
|
var r = e.language, n;
|
|
2577
2577
|
r !== "root" && (n = e.maximize().region);
|
|
2578
|
-
var i =
|
|
2578
|
+
var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
|
|
2579
2579
|
return i[0];
|
|
2580
2580
|
}
|
|
2581
|
-
var
|
|
2581
|
+
var Le, _n = new RegExp("^".concat(jt.source, "*")), yn = new RegExp("".concat(jt.source, "*$"));
|
|
2582
2582
|
function b(e, t) {
|
|
2583
2583
|
return { start: e, end: t };
|
|
2584
2584
|
}
|
|
2585
|
-
var
|
|
2585
|
+
var En = !!String.prototype.startsWith && "_a".startsWith("a", 1), xn = !!String.fromCodePoint, vn = !!Object.fromEntries, Hn = !!String.prototype.codePointAt, wn = !!String.prototype.trimStart, Bn = !!String.prototype.trimEnd, Sn = !!Number.isSafeInteger, Tn = Sn ? Number.isSafeInteger : function(e) {
|
|
2586
2586
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2587
|
-
},
|
|
2587
|
+
}, Ge = !0;
|
|
2588
2588
|
try {
|
|
2589
|
-
var
|
|
2590
|
-
|
|
2589
|
+
var An = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2590
|
+
Ge = ((Le = An.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
|
|
2591
2591
|
} catch (e) {
|
|
2592
|
-
|
|
2592
|
+
Ge = !1;
|
|
2593
2593
|
}
|
|
2594
|
-
var
|
|
2594
|
+
var ht = En ? (
|
|
2595
2595
|
// Native
|
|
2596
2596
|
function(t, r, n) {
|
|
2597
2597
|
return t.startsWith(r, n);
|
|
@@ -2601,7 +2601,7 @@ var ut = _n ? (
|
|
|
2601
2601
|
function(t, r, n) {
|
|
2602
2602
|
return t.slice(n, n + r.length) === r;
|
|
2603
2603
|
}
|
|
2604
|
-
),
|
|
2604
|
+
), Fe = xn ? String.fromCodePoint : (
|
|
2605
2605
|
// IE11
|
|
2606
2606
|
function() {
|
|
2607
2607
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2613,9 +2613,9 @@ var ut = _n ? (
|
|
|
2613
2613
|
}
|
|
2614
2614
|
return n;
|
|
2615
2615
|
}
|
|
2616
|
-
),
|
|
2616
|
+
), lt = (
|
|
2617
2617
|
// native
|
|
2618
|
-
|
|
2618
|
+
vn ? Object.fromEntries : (
|
|
2619
2619
|
// Ponyfill
|
|
2620
2620
|
function(t) {
|
|
2621
2621
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2625,7 +2625,7 @@ var ut = _n ? (
|
|
|
2625
2625
|
return r;
|
|
2626
2626
|
}
|
|
2627
2627
|
)
|
|
2628
|
-
),
|
|
2628
|
+
), Wt = Hn ? (
|
|
2629
2629
|
// Native
|
|
2630
2630
|
function(t, r) {
|
|
2631
2631
|
return t.codePointAt(r);
|
|
@@ -2639,7 +2639,7 @@ var ut = _n ? (
|
|
|
2639
2639
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2640
2640
|
}
|
|
2641
2641
|
}
|
|
2642
|
-
),
|
|
2642
|
+
), Cn = wn ? (
|
|
2643
2643
|
// Native
|
|
2644
2644
|
function(t) {
|
|
2645
2645
|
return t.trimStart();
|
|
@@ -2647,9 +2647,9 @@ var ut = _n ? (
|
|
|
2647
2647
|
) : (
|
|
2648
2648
|
// Ponyfill
|
|
2649
2649
|
function(t) {
|
|
2650
|
-
return t.replace(
|
|
2650
|
+
return t.replace(_n, "");
|
|
2651
2651
|
}
|
|
2652
|
-
),
|
|
2652
|
+
), On = Bn ? (
|
|
2653
2653
|
// Native
|
|
2654
2654
|
function(t) {
|
|
2655
2655
|
return t.trimEnd();
|
|
@@ -2657,32 +2657,32 @@ var ut = _n ? (
|
|
|
2657
2657
|
) : (
|
|
2658
2658
|
// Ponyfill
|
|
2659
2659
|
function(t) {
|
|
2660
|
-
return t.replace(
|
|
2660
|
+
return t.replace(yn, "");
|
|
2661
2661
|
}
|
|
2662
2662
|
);
|
|
2663
2663
|
function zt(e, t) {
|
|
2664
2664
|
return new RegExp(e, t);
|
|
2665
2665
|
}
|
|
2666
|
-
var
|
|
2667
|
-
if (
|
|
2668
|
-
var
|
|
2669
|
-
|
|
2666
|
+
var je;
|
|
2667
|
+
if (Ge) {
|
|
2668
|
+
var ft = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2669
|
+
je = function(t, r) {
|
|
2670
2670
|
var n;
|
|
2671
|
-
|
|
2672
|
-
var i =
|
|
2671
|
+
ft.lastIndex = r;
|
|
2672
|
+
var i = ft.exec(t);
|
|
2673
2673
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2674
2674
|
};
|
|
2675
2675
|
} else
|
|
2676
|
-
|
|
2676
|
+
je = function(t, r) {
|
|
2677
2677
|
for (var n = []; ; ) {
|
|
2678
|
-
var i =
|
|
2679
|
-
if (i === void 0 ||
|
|
2678
|
+
var i = Wt(t, r);
|
|
2679
|
+
if (i === void 0 || Zt(i) || In(i))
|
|
2680
2680
|
break;
|
|
2681
2681
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2682
2682
|
}
|
|
2683
|
-
return
|
|
2683
|
+
return Fe.apply(void 0, n);
|
|
2684
2684
|
};
|
|
2685
|
-
var
|
|
2685
|
+
var Pn = (
|
|
2686
2686
|
/** @class */
|
|
2687
2687
|
function() {
|
|
2688
2688
|
function e(t, r) {
|
|
@@ -2713,7 +2713,7 @@ var On = (
|
|
|
2713
2713
|
if (n)
|
|
2714
2714
|
break;
|
|
2715
2715
|
return this.error(d.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2716
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2716
|
+
} else if (s === 60 && !this.ignoreTag && ke(this.peek() || 0)) {
|
|
2717
2717
|
var a = this.parseTag(t, r);
|
|
2718
2718
|
if (a.err)
|
|
2719
2719
|
return a;
|
|
@@ -2746,7 +2746,7 @@ var On = (
|
|
|
2746
2746
|
return s;
|
|
2747
2747
|
var a = s.val, o = this.clonePosition();
|
|
2748
2748
|
if (this.bumpIf("</")) {
|
|
2749
|
-
if (this.isEOF() || !
|
|
2749
|
+
if (this.isEOF() || !ke(this.char()))
|
|
2750
2750
|
return this.error(d.INVALID_TAG, b(o, this.clonePosition()));
|
|
2751
2751
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2752
2752
|
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -2764,7 +2764,7 @@ var On = (
|
|
|
2764
2764
|
return this.error(d.INVALID_TAG, b(n, this.clonePosition()));
|
|
2765
2765
|
}, e.prototype.parseTagName = function() {
|
|
2766
2766
|
var t = this.offset();
|
|
2767
|
-
for (this.bump(); !this.isEOF() &&
|
|
2767
|
+
for (this.bump(); !this.isEOF() && Nn(this.char()); )
|
|
2768
2768
|
this.bump();
|
|
2769
2769
|
return this.message.slice(t, this.offset());
|
|
2770
2770
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2793,7 +2793,7 @@ var On = (
|
|
|
2793
2793
|
};
|
|
2794
2794
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2795
2795
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2796
|
-
!
|
|
2796
|
+
!Ln(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2797
2797
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2798
2798
|
if (this.isEOF() || this.char() !== 39)
|
|
2799
2799
|
return null;
|
|
@@ -2827,12 +2827,12 @@ var On = (
|
|
|
2827
2827
|
r.push(n);
|
|
2828
2828
|
this.bump();
|
|
2829
2829
|
}
|
|
2830
|
-
return
|
|
2830
|
+
return Fe.apply(void 0, r);
|
|
2831
2831
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2832
2832
|
if (this.isEOF())
|
|
2833
2833
|
return null;
|
|
2834
2834
|
var n = this.char();
|
|
2835
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2835
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Fe(n));
|
|
2836
2836
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2837
2837
|
var n = this.clonePosition();
|
|
2838
2838
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2861,7 +2861,7 @@ var On = (
|
|
|
2861
2861
|
return this.error(d.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2862
2862
|
}
|
|
2863
2863
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2864
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2864
|
+
var t = this.clonePosition(), r = this.offset(), n = je(this.message, r), i = r + n.length;
|
|
2865
2865
|
this.bumpTo(i);
|
|
2866
2866
|
var s = this.clonePosition(), a = b(t, s);
|
|
2867
2867
|
return { value: n, location: a };
|
|
@@ -2880,7 +2880,7 @@ var On = (
|
|
|
2880
2880
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2881
2881
|
if (c.err)
|
|
2882
2882
|
return c;
|
|
2883
|
-
var m =
|
|
2883
|
+
var m = On(c.val);
|
|
2884
2884
|
if (m.length === 0)
|
|
2885
2885
|
return this.error(d.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2886
2886
|
var p = b(h, this.clonePosition());
|
|
@@ -2890,8 +2890,8 @@ var On = (
|
|
|
2890
2890
|
if (f.err)
|
|
2891
2891
|
return f;
|
|
2892
2892
|
var _ = b(i, this.clonePosition());
|
|
2893
|
-
if (u &&
|
|
2894
|
-
var v =
|
|
2893
|
+
if (u && ht(u == null ? void 0 : u.style, "::", 0)) {
|
|
2894
|
+
var v = Cn(u.style.slice(2));
|
|
2895
2895
|
if (o === "number") {
|
|
2896
2896
|
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
2897
2897
|
return c.err ? c : {
|
|
@@ -2902,15 +2902,15 @@ var On = (
|
|
|
2902
2902
|
if (v.length === 0)
|
|
2903
2903
|
return this.error(d.EXPECT_DATE_TIME_SKELETON, _);
|
|
2904
2904
|
var O = v;
|
|
2905
|
-
this.locale && (O =
|
|
2905
|
+
this.locale && (O = bn(v, this.locale));
|
|
2906
2906
|
var m = {
|
|
2907
|
-
type:
|
|
2907
|
+
type: V.dateTime,
|
|
2908
2908
|
pattern: O,
|
|
2909
2909
|
location: u.styleLocation,
|
|
2910
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2911
|
-
},
|
|
2910
|
+
parsedOptions: this.shouldParseSkeletons ? hn(O) : {}
|
|
2911
|
+
}, A = o === "date" ? y.date : y.time;
|
|
2912
2912
|
return {
|
|
2913
|
-
val: { type:
|
|
2913
|
+
val: { type: A, value: n, location: _, style: m },
|
|
2914
2914
|
err: null
|
|
2915
2915
|
};
|
|
2916
2916
|
}
|
|
@@ -2930,9 +2930,9 @@ var On = (
|
|
|
2930
2930
|
case "select": {
|
|
2931
2931
|
var H = this.clonePosition();
|
|
2932
2932
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2933
|
-
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H,
|
|
2933
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, b(H, pe({}, H)));
|
|
2934
2934
|
this.bumpSpace();
|
|
2935
|
-
var I = this.parseIdentifierIfPossible(),
|
|
2935
|
+
var I = this.parseIdentifierIfPossible(), C = 0;
|
|
2936
2936
|
if (o !== "select" && I.value === "offset") {
|
|
2937
2937
|
if (!this.bumpIf(":"))
|
|
2938
2938
|
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
@@ -2940,31 +2940,31 @@ var On = (
|
|
|
2940
2940
|
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2941
2941
|
if (c.err)
|
|
2942
2942
|
return c;
|
|
2943
|
-
this.bumpSpace(), I = this.parseIdentifierIfPossible(),
|
|
2943
|
+
this.bumpSpace(), I = this.parseIdentifierIfPossible(), C = c.val;
|
|
2944
2944
|
}
|
|
2945
|
-
var
|
|
2946
|
-
if (
|
|
2947
|
-
return
|
|
2945
|
+
var $ = this.tryParsePluralOrSelectOptions(t, o, r, I);
|
|
2946
|
+
if ($.err)
|
|
2947
|
+
return $;
|
|
2948
2948
|
var f = this.tryParseArgumentClose(i);
|
|
2949
2949
|
if (f.err)
|
|
2950
2950
|
return f;
|
|
2951
|
-
var
|
|
2951
|
+
var oe = b(i, this.clonePosition());
|
|
2952
2952
|
return o === "select" ? {
|
|
2953
2953
|
val: {
|
|
2954
2954
|
type: y.select,
|
|
2955
2955
|
value: n,
|
|
2956
|
-
options:
|
|
2957
|
-
location:
|
|
2956
|
+
options: lt($.val),
|
|
2957
|
+
location: oe
|
|
2958
2958
|
},
|
|
2959
2959
|
err: null
|
|
2960
2960
|
} : {
|
|
2961
2961
|
val: {
|
|
2962
2962
|
type: y.plural,
|
|
2963
2963
|
value: n,
|
|
2964
|
-
options:
|
|
2965
|
-
offset:
|
|
2964
|
+
options: lt($.val),
|
|
2965
|
+
offset: C,
|
|
2966
2966
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2967
|
-
location:
|
|
2967
|
+
location: oe
|
|
2968
2968
|
},
|
|
2969
2969
|
err: null
|
|
2970
2970
|
};
|
|
@@ -3012,16 +3012,16 @@ var On = (
|
|
|
3012
3012
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3013
3013
|
var n = [];
|
|
3014
3014
|
try {
|
|
3015
|
-
n =
|
|
3015
|
+
n = fn(t);
|
|
3016
3016
|
} catch (i) {
|
|
3017
3017
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3018
3018
|
}
|
|
3019
3019
|
return {
|
|
3020
3020
|
val: {
|
|
3021
|
-
type:
|
|
3021
|
+
type: V.number,
|
|
3022
3022
|
tokens: n,
|
|
3023
3023
|
location: r,
|
|
3024
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3024
|
+
parsedOptions: this.shouldParseSkeletons ? dn(n) : {}
|
|
3025
3025
|
},
|
|
3026
3026
|
err: null
|
|
3027
3027
|
};
|
|
@@ -3084,7 +3084,7 @@ var On = (
|
|
|
3084
3084
|
var t = this.position.offset;
|
|
3085
3085
|
if (t >= this.message.length)
|
|
3086
3086
|
throw Error("out of bound");
|
|
3087
|
-
var r =
|
|
3087
|
+
var r = Wt(this.message, t);
|
|
3088
3088
|
if (r === void 0)
|
|
3089
3089
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3090
3090
|
return r;
|
|
@@ -3103,7 +3103,7 @@ var On = (
|
|
|
3103
3103
|
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);
|
|
3104
3104
|
}
|
|
3105
3105
|
}, e.prototype.bumpIf = function(t) {
|
|
3106
|
-
if (
|
|
3106
|
+
if (ht(this.message, t, this.offset())) {
|
|
3107
3107
|
for (var r = 0; r < t.length; r++)
|
|
3108
3108
|
this.bump();
|
|
3109
3109
|
return !0;
|
|
@@ -3125,7 +3125,7 @@ var On = (
|
|
|
3125
3125
|
break;
|
|
3126
3126
|
}
|
|
3127
3127
|
}, e.prototype.bumpSpace = function() {
|
|
3128
|
-
for (; !this.isEOF() &&
|
|
3128
|
+
for (; !this.isEOF() && Zt(this.char()); )
|
|
3129
3129
|
this.bump();
|
|
3130
3130
|
}, e.prototype.peek = function() {
|
|
3131
3131
|
if (this.isEOF())
|
|
@@ -3135,47 +3135,47 @@ var On = (
|
|
|
3135
3135
|
}, e;
|
|
3136
3136
|
}()
|
|
3137
3137
|
);
|
|
3138
|
-
function
|
|
3138
|
+
function ke(e) {
|
|
3139
3139
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3140
3140
|
}
|
|
3141
|
-
function
|
|
3142
|
-
return
|
|
3141
|
+
function Ln(e) {
|
|
3142
|
+
return ke(e) || e === 47;
|
|
3143
3143
|
}
|
|
3144
|
-
function
|
|
3144
|
+
function Nn(e) {
|
|
3145
3145
|
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;
|
|
3146
3146
|
}
|
|
3147
|
-
function
|
|
3147
|
+
function Zt(e) {
|
|
3148
3148
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3149
3149
|
}
|
|
3150
|
-
function
|
|
3150
|
+
function In(e) {
|
|
3151
3151
|
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;
|
|
3152
3152
|
}
|
|
3153
|
-
function
|
|
3153
|
+
function Ve(e) {
|
|
3154
3154
|
e.forEach(function(t) {
|
|
3155
|
-
if (delete t.location,
|
|
3155
|
+
if (delete t.location, Ut(t) || Dt(t))
|
|
3156
3156
|
for (var r in t.options)
|
|
3157
|
-
delete t.options[r].location,
|
|
3157
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3158
3158
|
else
|
|
3159
|
-
|
|
3159
|
+
Mt(t) && Ft(t.style) || (Rt(t) || $t(t)) && De(t.style) ? delete t.style.location : Gt(t) && Ve(t.children);
|
|
3160
3160
|
});
|
|
3161
3161
|
}
|
|
3162
|
-
function
|
|
3163
|
-
t === void 0 && (t = {}), t =
|
|
3164
|
-
var r = new
|
|
3162
|
+
function Mn(e, t) {
|
|
3163
|
+
t === void 0 && (t = {}), t = pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3164
|
+
var r = new Pn(e, t).parse();
|
|
3165
3165
|
if (r.err) {
|
|
3166
3166
|
var n = SyntaxError(d[r.err.kind]);
|
|
3167
3167
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3168
3168
|
}
|
|
3169
|
-
return t != null && t.captureLocation ||
|
|
3169
|
+
return t != null && t.captureLocation || Ve(r.val), r.val;
|
|
3170
3170
|
}
|
|
3171
|
-
var
|
|
3171
|
+
var X;
|
|
3172
3172
|
(function(e) {
|
|
3173
3173
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3174
|
-
})(
|
|
3175
|
-
var
|
|
3174
|
+
})(X || (X = {}));
|
|
3175
|
+
var Ee = (
|
|
3176
3176
|
/** @class */
|
|
3177
3177
|
function(e) {
|
|
3178
|
-
|
|
3178
|
+
ye(t, e);
|
|
3179
3179
|
function t(r, n, i) {
|
|
3180
3180
|
var s = e.call(this, r) || this;
|
|
3181
3181
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3184,48 +3184,48 @@ var ye = (
|
|
|
3184
3184
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3185
3185
|
}, t;
|
|
3186
3186
|
}(Error)
|
|
3187
|
-
),
|
|
3187
|
+
), ct = (
|
|
3188
3188
|
/** @class */
|
|
3189
3189
|
function(e) {
|
|
3190
|
-
|
|
3190
|
+
ye(t, e);
|
|
3191
3191
|
function t(r, n, i, s) {
|
|
3192
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3192
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), X.INVALID_VALUE, s) || this;
|
|
3193
3193
|
}
|
|
3194
3194
|
return t;
|
|
3195
|
-
}(
|
|
3196
|
-
),
|
|
3195
|
+
}(Ee)
|
|
3196
|
+
), Rn = (
|
|
3197
3197
|
/** @class */
|
|
3198
3198
|
function(e) {
|
|
3199
|
-
|
|
3199
|
+
ye(t, e);
|
|
3200
3200
|
function t(r, n, i) {
|
|
3201
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3201
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), X.INVALID_VALUE, i) || this;
|
|
3202
3202
|
}
|
|
3203
3203
|
return t;
|
|
3204
|
-
}(
|
|
3205
|
-
),
|
|
3204
|
+
}(Ee)
|
|
3205
|
+
), $n = (
|
|
3206
3206
|
/** @class */
|
|
3207
3207
|
function(e) {
|
|
3208
|
-
|
|
3208
|
+
ye(t, e);
|
|
3209
3209
|
function t(r, n) {
|
|
3210
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3210
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), X.MISSING_VALUE, n) || this;
|
|
3211
3211
|
}
|
|
3212
3212
|
return t;
|
|
3213
|
-
}(
|
|
3213
|
+
}(Ee)
|
|
3214
3214
|
), x;
|
|
3215
3215
|
(function(e) {
|
|
3216
3216
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3217
3217
|
})(x || (x = {}));
|
|
3218
|
-
function
|
|
3218
|
+
function Un(e) {
|
|
3219
3219
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3220
3220
|
var n = t[t.length - 1];
|
|
3221
3221
|
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3222
3222
|
}, []);
|
|
3223
3223
|
}
|
|
3224
|
-
function
|
|
3224
|
+
function Dn(e) {
|
|
3225
3225
|
return typeof e == "function";
|
|
3226
3226
|
}
|
|
3227
|
-
function
|
|
3228
|
-
if (e.length === 1 &&
|
|
3227
|
+
function fe(e, t, r, n, i, s, a) {
|
|
3228
|
+
if (e.length === 1 && st(e[0]))
|
|
3229
3229
|
return [
|
|
3230
3230
|
{
|
|
3231
3231
|
type: x.literal,
|
|
@@ -3234,14 +3234,14 @@ function le(e, t, r, n, i, s, a) {
|
|
|
3234
3234
|
];
|
|
3235
3235
|
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
|
3236
3236
|
var h = u[l];
|
|
3237
|
-
if (
|
|
3237
|
+
if (st(h)) {
|
|
3238
3238
|
o.push({
|
|
3239
3239
|
type: x.literal,
|
|
3240
3240
|
value: h.value
|
|
3241
3241
|
});
|
|
3242
3242
|
continue;
|
|
3243
3243
|
}
|
|
3244
|
-
if (
|
|
3244
|
+
if (an(h)) {
|
|
3245
3245
|
typeof s == "number" && o.push({
|
|
3246
3246
|
type: x.literal,
|
|
3247
3247
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3250,17 +3250,17 @@ function le(e, t, r, n, i, s, a) {
|
|
|
3250
3250
|
}
|
|
3251
3251
|
var c = h.value;
|
|
3252
3252
|
if (!(i && c in i))
|
|
3253
|
-
throw new
|
|
3253
|
+
throw new $n(c, a);
|
|
3254
3254
|
var m = i[c];
|
|
3255
|
-
if (
|
|
3255
|
+
if (on(h)) {
|
|
3256
3256
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), o.push({
|
|
3257
3257
|
type: typeof m == "string" ? x.literal : x.object,
|
|
3258
3258
|
value: m
|
|
3259
3259
|
});
|
|
3260
3260
|
continue;
|
|
3261
3261
|
}
|
|
3262
|
-
if (
|
|
3263
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3262
|
+
if (Rt(h)) {
|
|
3263
|
+
var p = typeof h.style == "string" ? n.date[h.style] : De(h.style) ? h.style.parsedOptions : void 0;
|
|
3264
3264
|
o.push({
|
|
3265
3265
|
type: x.literal,
|
|
3266
3266
|
value: r.getDateTimeFormat(t, p).format(m)
|
|
@@ -3268,71 +3268,71 @@ function le(e, t, r, n, i, s, a) {
|
|
|
3268
3268
|
continue;
|
|
3269
3269
|
}
|
|
3270
3270
|
if ($t(h)) {
|
|
3271
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3271
|
+
var p = typeof h.style == "string" ? n.time[h.style] : De(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3272
3272
|
o.push({
|
|
3273
3273
|
type: x.literal,
|
|
3274
3274
|
value: r.getDateTimeFormat(t, p).format(m)
|
|
3275
3275
|
});
|
|
3276
3276
|
continue;
|
|
3277
3277
|
}
|
|
3278
|
-
if (
|
|
3279
|
-
var p = typeof h.style == "string" ? n.number[h.style] :
|
|
3278
|
+
if (Mt(h)) {
|
|
3279
|
+
var p = typeof h.style == "string" ? n.number[h.style] : Ft(h.style) ? h.style.parsedOptions : void 0;
|
|
3280
3280
|
p && p.scale && (m = m * (p.scale || 1)), o.push({
|
|
3281
3281
|
type: x.literal,
|
|
3282
3282
|
value: r.getNumberFormat(t, p).format(m)
|
|
3283
3283
|
});
|
|
3284
3284
|
continue;
|
|
3285
3285
|
}
|
|
3286
|
-
if (
|
|
3286
|
+
if (Gt(h)) {
|
|
3287
3287
|
var f = h.children, _ = h.value, v = i[_];
|
|
3288
|
-
if (!
|
|
3289
|
-
throw new
|
|
3290
|
-
var O =
|
|
3291
|
-
return
|
|
3288
|
+
if (!Dn(v))
|
|
3289
|
+
throw new Rn(_, "function", a);
|
|
3290
|
+
var O = fe(f, t, r, n, i, s), A = v(O.map(function(C) {
|
|
3291
|
+
return C.value;
|
|
3292
3292
|
}));
|
|
3293
|
-
Array.isArray(
|
|
3293
|
+
Array.isArray(A) || (A = [A]), o.push.apply(o, A.map(function(C) {
|
|
3294
3294
|
return {
|
|
3295
|
-
type: typeof
|
|
3296
|
-
value:
|
|
3295
|
+
type: typeof C == "string" ? x.literal : x.object,
|
|
3296
|
+
value: C
|
|
3297
3297
|
};
|
|
3298
3298
|
}));
|
|
3299
3299
|
}
|
|
3300
|
-
if (
|
|
3300
|
+
if (Ut(h)) {
|
|
3301
3301
|
var H = h.options[m] || h.options.other;
|
|
3302
3302
|
if (!H)
|
|
3303
|
-
throw new
|
|
3304
|
-
o.push.apply(o,
|
|
3303
|
+
throw new ct(h.value, m, Object.keys(h.options), a);
|
|
3304
|
+
o.push.apply(o, fe(H.value, t, r, n, i));
|
|
3305
3305
|
continue;
|
|
3306
3306
|
}
|
|
3307
|
-
if (
|
|
3307
|
+
if (Dt(h)) {
|
|
3308
3308
|
var H = h.options["=".concat(m)];
|
|
3309
3309
|
if (!H) {
|
|
3310
3310
|
if (!Intl.PluralRules)
|
|
3311
|
-
throw new
|
|
3311
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3312
3312
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3313
|
-
`,
|
|
3313
|
+
`, X.MISSING_INTL_API, a);
|
|
3314
3314
|
var I = r.getPluralRules(t, { type: h.pluralType }).select(m - (h.offset || 0));
|
|
3315
3315
|
H = h.options[I] || h.options.other;
|
|
3316
3316
|
}
|
|
3317
3317
|
if (!H)
|
|
3318
|
-
throw new
|
|
3319
|
-
o.push.apply(o,
|
|
3318
|
+
throw new ct(h.value, m, Object.keys(h.options), a);
|
|
3319
|
+
o.push.apply(o, fe(H.value, t, r, n, i, m - (h.offset || 0)));
|
|
3320
3320
|
continue;
|
|
3321
3321
|
}
|
|
3322
3322
|
}
|
|
3323
|
-
return
|
|
3323
|
+
return Un(o);
|
|
3324
3324
|
}
|
|
3325
|
-
function
|
|
3326
|
-
return t ?
|
|
3327
|
-
return r[n] =
|
|
3325
|
+
function Gn(e, t) {
|
|
3326
|
+
return t ? T(T(T({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3327
|
+
return r[n] = T(T({}, e[n]), t[n] || {}), r;
|
|
3328
3328
|
}, {})) : e;
|
|
3329
3329
|
}
|
|
3330
|
-
function
|
|
3330
|
+
function Fn(e, t) {
|
|
3331
3331
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3332
|
-
return r[n] =
|
|
3333
|
-
},
|
|
3332
|
+
return r[n] = Gn(e[n], t[n]), r;
|
|
3333
|
+
}, T({}, e)) : e;
|
|
3334
3334
|
}
|
|
3335
|
-
function
|
|
3335
|
+
function Ne(e) {
|
|
3336
3336
|
return {
|
|
3337
3337
|
create: function() {
|
|
3338
3338
|
return {
|
|
@@ -3346,7 +3346,7 @@ function Le(e) {
|
|
|
3346
3346
|
}
|
|
3347
3347
|
};
|
|
3348
3348
|
}
|
|
3349
|
-
function
|
|
3349
|
+
function jn(e) {
|
|
3350
3350
|
return e === void 0 && (e = {
|
|
3351
3351
|
number: {},
|
|
3352
3352
|
dateTime: {},
|
|
@@ -3355,30 +3355,30 @@ function Gn(e) {
|
|
|
3355
3355
|
getNumberFormat: Oe(function() {
|
|
3356
3356
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3357
3357
|
r[n] = arguments[n];
|
|
3358
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3358
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ce([void 0], r, !1)))();
|
|
3359
3359
|
}, {
|
|
3360
|
-
cache:
|
|
3361
|
-
strategy:
|
|
3360
|
+
cache: Ne(e.number),
|
|
3361
|
+
strategy: Pe.variadic
|
|
3362
3362
|
}),
|
|
3363
3363
|
getDateTimeFormat: Oe(function() {
|
|
3364
3364
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3365
3365
|
r[n] = arguments[n];
|
|
3366
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3366
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ce([void 0], r, !1)))();
|
|
3367
3367
|
}, {
|
|
3368
|
-
cache:
|
|
3369
|
-
strategy:
|
|
3368
|
+
cache: Ne(e.dateTime),
|
|
3369
|
+
strategy: Pe.variadic
|
|
3370
3370
|
}),
|
|
3371
3371
|
getPluralRules: Oe(function() {
|
|
3372
3372
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3373
3373
|
r[n] = arguments[n];
|
|
3374
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3374
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ce([void 0], r, !1)))();
|
|
3375
3375
|
}, {
|
|
3376
|
-
cache:
|
|
3377
|
-
strategy:
|
|
3376
|
+
cache: Ne(e.pluralRules),
|
|
3377
|
+
strategy: Pe.variadic
|
|
3378
3378
|
})
|
|
3379
3379
|
};
|
|
3380
3380
|
}
|
|
3381
|
-
var
|
|
3381
|
+
var Qt = (
|
|
3382
3382
|
/** @class */
|
|
3383
3383
|
function() {
|
|
3384
3384
|
function e(t, r, n, i) {
|
|
@@ -3397,7 +3397,7 @@ var Zt = (
|
|
|
3397
3397
|
}, []);
|
|
3398
3398
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3399
3399
|
}, this.formatToParts = function(l) {
|
|
3400
|
-
return
|
|
3400
|
+
return fe(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3401
3401
|
}, this.resolvedOptions = function() {
|
|
3402
3402
|
var l;
|
|
3403
3403
|
return {
|
|
@@ -3410,13 +3410,13 @@ var Zt = (
|
|
|
3410
3410
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3411
3411
|
var a = i || {};
|
|
3412
3412
|
a.formatters;
|
|
3413
|
-
var o =
|
|
3414
|
-
this.ast = e.__parse(t,
|
|
3413
|
+
var o = qr(a, ["formatters"]);
|
|
3414
|
+
this.ast = e.__parse(t, T(T({}, o), { locale: this.resolvedLocale }));
|
|
3415
3415
|
} else
|
|
3416
3416
|
this.ast = t;
|
|
3417
3417
|
if (!Array.isArray(this.ast))
|
|
3418
3418
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3419
|
-
this.formats =
|
|
3419
|
+
this.formats = Fn(e.formats, n), this.formatters = i && i.formatters || jn(this.formatterCache);
|
|
3420
3420
|
}
|
|
3421
3421
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3422
3422
|
get: function() {
|
|
@@ -3429,7 +3429,7 @@ var Zt = (
|
|
|
3429
3429
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3430
3430
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3431
3431
|
}
|
|
3432
|
-
}, e.__parse =
|
|
3432
|
+
}, e.__parse = Mn, e.formats = {
|
|
3433
3433
|
number: {
|
|
3434
3434
|
integer: {
|
|
3435
3435
|
maximumFractionDigits: 0
|
|
@@ -3490,7 +3490,7 @@ var Zt = (
|
|
|
3490
3490
|
}, e;
|
|
3491
3491
|
}()
|
|
3492
3492
|
);
|
|
3493
|
-
function
|
|
3493
|
+
function kn(e, t) {
|
|
3494
3494
|
if (t == null)
|
|
3495
3495
|
return;
|
|
3496
3496
|
if (t in e)
|
|
@@ -3511,101 +3511,101 @@ function Fn(e, t) {
|
|
|
3511
3511
|
n = void 0;
|
|
3512
3512
|
return n;
|
|
3513
3513
|
}
|
|
3514
|
-
const P = {},
|
|
3514
|
+
const P = {}, Vn = (e, t, r) => r && (t in P || (P[t] = {}), e in P[t] || (P[t][e] = r), r), Jt = (e, t) => {
|
|
3515
3515
|
if (t == null)
|
|
3516
3516
|
return;
|
|
3517
3517
|
if (t in P && e in P[t])
|
|
3518
3518
|
return P[t][e];
|
|
3519
|
-
const r =
|
|
3519
|
+
const r = se(t);
|
|
3520
3520
|
for (let n = 0; n < r.length; n++) {
|
|
3521
|
-
const i = r[n], s =
|
|
3521
|
+
const i = r[n], s = Wn(i, e);
|
|
3522
3522
|
if (s)
|
|
3523
|
-
return
|
|
3523
|
+
return Vn(e, t, s);
|
|
3524
3524
|
}
|
|
3525
3525
|
};
|
|
3526
|
-
let
|
|
3527
|
-
const
|
|
3528
|
-
function
|
|
3529
|
-
return
|
|
3526
|
+
let Ze;
|
|
3527
|
+
const ie = _e({});
|
|
3528
|
+
function Xn(e) {
|
|
3529
|
+
return Ze[e] || null;
|
|
3530
3530
|
}
|
|
3531
|
-
function
|
|
3532
|
-
return e in
|
|
3531
|
+
function qt(e) {
|
|
3532
|
+
return e in Ze;
|
|
3533
3533
|
}
|
|
3534
|
-
function
|
|
3535
|
-
if (!
|
|
3534
|
+
function Wn(e, t) {
|
|
3535
|
+
if (!qt(e))
|
|
3536
3536
|
return null;
|
|
3537
|
-
const r =
|
|
3538
|
-
return
|
|
3537
|
+
const r = Xn(e);
|
|
3538
|
+
return kn(r, t);
|
|
3539
3539
|
}
|
|
3540
|
-
function
|
|
3540
|
+
function zn(e) {
|
|
3541
3541
|
if (e == null)
|
|
3542
3542
|
return;
|
|
3543
|
-
const t =
|
|
3543
|
+
const t = se(e);
|
|
3544
3544
|
for (let r = 0; r < t.length; r++) {
|
|
3545
3545
|
const n = t[r];
|
|
3546
|
-
if (
|
|
3546
|
+
if (qt(n))
|
|
3547
3547
|
return n;
|
|
3548
3548
|
}
|
|
3549
3549
|
}
|
|
3550
|
-
function
|
|
3551
|
-
delete P[e],
|
|
3550
|
+
function Yt(e, ...t) {
|
|
3551
|
+
delete P[e], ie.update((r) => (r[e] = Jr.all([r[e] || {}, ...t]), r));
|
|
3552
3552
|
}
|
|
3553
|
-
|
|
3554
|
-
[
|
|
3553
|
+
Z(
|
|
3554
|
+
[ie],
|
|
3555
3555
|
([e]) => Object.keys(e)
|
|
3556
3556
|
);
|
|
3557
|
-
|
|
3558
|
-
const
|
|
3559
|
-
function
|
|
3560
|
-
|
|
3557
|
+
ie.subscribe((e) => Ze = e);
|
|
3558
|
+
const ce = {};
|
|
3559
|
+
function Zn(e, t) {
|
|
3560
|
+
ce[e].delete(t), ce[e].size === 0 && delete ce[e];
|
|
3561
3561
|
}
|
|
3562
|
-
function
|
|
3563
|
-
return
|
|
3562
|
+
function Kt(e) {
|
|
3563
|
+
return ce[e];
|
|
3564
3564
|
}
|
|
3565
|
-
function
|
|
3566
|
-
return
|
|
3567
|
-
const r =
|
|
3565
|
+
function Qn(e) {
|
|
3566
|
+
return se(e).map((t) => {
|
|
3567
|
+
const r = Kt(t);
|
|
3568
3568
|
return [t, r ? [...r] : []];
|
|
3569
3569
|
}).filter(([, t]) => t.length > 0);
|
|
3570
3570
|
}
|
|
3571
|
-
function
|
|
3572
|
-
return e == null ? !1 :
|
|
3571
|
+
function de(e) {
|
|
3572
|
+
return e == null ? !1 : se(e).some(
|
|
3573
3573
|
(t) => {
|
|
3574
3574
|
var r;
|
|
3575
|
-
return (r =
|
|
3575
|
+
return (r = Kt(t)) == null ? void 0 : r.size;
|
|
3576
3576
|
}
|
|
3577
3577
|
);
|
|
3578
3578
|
}
|
|
3579
|
-
function
|
|
3579
|
+
function Jn(e, t) {
|
|
3580
3580
|
return Promise.all(
|
|
3581
|
-
t.map((n) => (
|
|
3582
|
-
).then((n) =>
|
|
3583
|
-
}
|
|
3584
|
-
const
|
|
3585
|
-
function
|
|
3586
|
-
if (!
|
|
3587
|
-
return e in
|
|
3588
|
-
const t =
|
|
3589
|
-
return
|
|
3581
|
+
t.map((n) => (Zn(e, n), n().then((i) => i.default || i)))
|
|
3582
|
+
).then((n) => Yt(e, ...n));
|
|
3583
|
+
}
|
|
3584
|
+
const J = {};
|
|
3585
|
+
function er(e) {
|
|
3586
|
+
if (!de(e))
|
|
3587
|
+
return e in J ? J[e] : Promise.resolve();
|
|
3588
|
+
const t = Qn(e);
|
|
3589
|
+
return J[e] = Promise.all(
|
|
3590
3590
|
t.map(
|
|
3591
|
-
([r, n]) =>
|
|
3591
|
+
([r, n]) => Jn(r, n)
|
|
3592
3592
|
)
|
|
3593
3593
|
).then(() => {
|
|
3594
|
-
if (
|
|
3595
|
-
return
|
|
3596
|
-
delete
|
|
3597
|
-
}),
|
|
3594
|
+
if (de(e))
|
|
3595
|
+
return er(e);
|
|
3596
|
+
delete J[e];
|
|
3597
|
+
}), J[e];
|
|
3598
3598
|
}
|
|
3599
|
-
var
|
|
3599
|
+
var mt = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, Kn = (e, t) => {
|
|
3600
3600
|
var r = {};
|
|
3601
3601
|
for (var n in e)
|
|
3602
|
-
|
|
3603
|
-
if (e != null &&
|
|
3604
|
-
for (var n of
|
|
3605
|
-
t.indexOf(n) < 0 &&
|
|
3602
|
+
qn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3603
|
+
if (e != null && mt)
|
|
3604
|
+
for (var n of mt(e))
|
|
3605
|
+
t.indexOf(n) < 0 && Yn.call(e, n) && (r[n] = e[n]);
|
|
3606
3606
|
return r;
|
|
3607
3607
|
};
|
|
3608
|
-
const
|
|
3608
|
+
const ei = {
|
|
3609
3609
|
number: {
|
|
3610
3610
|
scientific: { notation: "scientific" },
|
|
3611
3611
|
engineering: { notation: "engineering" },
|
|
@@ -3635,159 +3635,159 @@ const Yn = {
|
|
|
3635
3635
|
}
|
|
3636
3636
|
}
|
|
3637
3637
|
};
|
|
3638
|
-
function
|
|
3638
|
+
function ti({ locale: e, id: t }) {
|
|
3639
3639
|
console.warn(
|
|
3640
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3640
|
+
`[svelte-i18n] The message "${t}" was not found in "${se(
|
|
3641
3641
|
e
|
|
3642
|
-
).join('", "')}".${
|
|
3642
|
+
).join('", "')}".${de(N()) ? `
|
|
3643
3643
|
|
|
3644
3644
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3645
3645
|
);
|
|
3646
3646
|
}
|
|
3647
|
-
const
|
|
3647
|
+
const ri = {
|
|
3648
3648
|
fallbackLocale: null,
|
|
3649
3649
|
loadingDelay: 200,
|
|
3650
|
-
formats:
|
|
3650
|
+
formats: ei,
|
|
3651
3651
|
warnOnMissingMessages: !0,
|
|
3652
3652
|
handleMissingMessage: void 0,
|
|
3653
3653
|
ignoreTag: !0
|
|
3654
|
-
},
|
|
3655
|
-
function
|
|
3656
|
-
return
|
|
3654
|
+
}, q = ri;
|
|
3655
|
+
function W() {
|
|
3656
|
+
return q;
|
|
3657
3657
|
}
|
|
3658
|
-
function
|
|
3659
|
-
const t = e, { formats: r } = t, n =
|
|
3658
|
+
function ni(e) {
|
|
3659
|
+
const t = e, { formats: r } = t, n = Kn(t, ["formats"]);
|
|
3660
3660
|
let i = e.fallbackLocale;
|
|
3661
3661
|
if (e.initialLocale)
|
|
3662
3662
|
try {
|
|
3663
|
-
|
|
3663
|
+
Qt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3664
3664
|
} catch (s) {
|
|
3665
3665
|
console.warn(
|
|
3666
3666
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3667
3667
|
);
|
|
3668
3668
|
}
|
|
3669
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3669
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = ti : console.warn(
|
|
3670
3670
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3671
|
-
)), Object.assign(
|
|
3671
|
+
)), Object.assign(q, n, { initialLocale: i }), r && ("number" in r && Object.assign(q.formats.number, r.number), "date" in r && Object.assign(q.formats.date, r.date), "time" in r && Object.assign(q.formats.time, r.time)), R.set(i);
|
|
3672
3672
|
}
|
|
3673
|
-
const
|
|
3674
|
-
var
|
|
3673
|
+
const Ie = _e(!1);
|
|
3674
|
+
var ii = Object.defineProperty, si = Object.defineProperties, oi = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, ai = Object.prototype.hasOwnProperty, ui = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, hi = (e, t) => {
|
|
3675
3675
|
for (var r in t || (t = {}))
|
|
3676
|
-
|
|
3677
|
-
if (
|
|
3678
|
-
for (var r of
|
|
3679
|
-
|
|
3676
|
+
ai.call(t, r) && dt(e, r, t[r]);
|
|
3677
|
+
if (pt)
|
|
3678
|
+
for (var r of pt(t))
|
|
3679
|
+
ui.call(t, r) && dt(e, r, t[r]);
|
|
3680
3680
|
return e;
|
|
3681
|
-
},
|
|
3682
|
-
let
|
|
3683
|
-
const
|
|
3684
|
-
function
|
|
3681
|
+
}, li = (e, t) => si(e, oi(t));
|
|
3682
|
+
let Xe;
|
|
3683
|
+
const be = _e(null);
|
|
3684
|
+
function bt(e) {
|
|
3685
3685
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3686
3686
|
}
|
|
3687
|
-
function
|
|
3688
|
-
const r =
|
|
3689
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3687
|
+
function se(e, t = W().fallbackLocale) {
|
|
3688
|
+
const r = bt(e);
|
|
3689
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...bt(t)])] : r;
|
|
3690
3690
|
}
|
|
3691
3691
|
function N() {
|
|
3692
|
-
return
|
|
3692
|
+
return Xe != null ? Xe : void 0;
|
|
3693
3693
|
}
|
|
3694
|
-
|
|
3695
|
-
|
|
3694
|
+
be.subscribe((e) => {
|
|
3695
|
+
Xe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3696
3696
|
});
|
|
3697
|
-
const
|
|
3698
|
-
if (e &&
|
|
3699
|
-
const { loadingDelay: t } =
|
|
3697
|
+
const fi = (e) => {
|
|
3698
|
+
if (e && zn(e) && de(e)) {
|
|
3699
|
+
const { loadingDelay: t } = W();
|
|
3700
3700
|
let r;
|
|
3701
3701
|
return typeof window != "undefined" && N() != null && t ? r = window.setTimeout(
|
|
3702
|
-
() =>
|
|
3702
|
+
() => Ie.set(!0),
|
|
3703
3703
|
t
|
|
3704
|
-
) :
|
|
3705
|
-
|
|
3704
|
+
) : Ie.set(!0), er(e).then(() => {
|
|
3705
|
+
be.set(e);
|
|
3706
3706
|
}).finally(() => {
|
|
3707
|
-
clearTimeout(r),
|
|
3707
|
+
clearTimeout(r), Ie.set(!1);
|
|
3708
3708
|
});
|
|
3709
3709
|
}
|
|
3710
|
-
return
|
|
3711
|
-
},
|
|
3712
|
-
set:
|
|
3713
|
-
}),
|
|
3710
|
+
return be.set(e);
|
|
3711
|
+
}, R = li(hi({}, be), {
|
|
3712
|
+
set: fi
|
|
3713
|
+
}), xe = (e) => {
|
|
3714
3714
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3715
3715
|
return (n) => {
|
|
3716
3716
|
const i = JSON.stringify(n);
|
|
3717
3717
|
return i in t ? t[i] : t[i] = e(n);
|
|
3718
3718
|
};
|
|
3719
3719
|
};
|
|
3720
|
-
var
|
|
3720
|
+
var ci = Object.defineProperty, ge = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
3721
3721
|
for (var r in t || (t = {}))
|
|
3722
|
-
|
|
3723
|
-
if (
|
|
3724
|
-
for (var r of
|
|
3725
|
-
|
|
3722
|
+
tr.call(t, r) && gt(e, r, t[r]);
|
|
3723
|
+
if (ge)
|
|
3724
|
+
for (var r of ge(t))
|
|
3725
|
+
rr.call(t, r) && gt(e, r, t[r]);
|
|
3726
3726
|
return e;
|
|
3727
|
-
},
|
|
3727
|
+
}, Q = (e, t) => {
|
|
3728
3728
|
var r = {};
|
|
3729
3729
|
for (var n in e)
|
|
3730
|
-
|
|
3731
|
-
if (e != null &&
|
|
3732
|
-
for (var n of
|
|
3733
|
-
t.indexOf(n) < 0 &&
|
|
3730
|
+
tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3731
|
+
if (e != null && ge)
|
|
3732
|
+
for (var n of ge(e))
|
|
3733
|
+
t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
|
|
3734
3734
|
return r;
|
|
3735
3735
|
};
|
|
3736
|
-
const
|
|
3737
|
-
const { formats: r } =
|
|
3736
|
+
const te = (e, t) => {
|
|
3737
|
+
const { formats: r } = W();
|
|
3738
3738
|
if (e in r && t in r[e])
|
|
3739
3739
|
return r[e][t];
|
|
3740
3740
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3741
|
-
},
|
|
3741
|
+
}, mi = xe(
|
|
3742
3742
|
(e) => {
|
|
3743
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3743
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3744
3744
|
if (r == null)
|
|
3745
3745
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3746
|
-
return n && (i =
|
|
3746
|
+
return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
|
|
3747
3747
|
}
|
|
3748
|
-
),
|
|
3748
|
+
), pi = xe(
|
|
3749
3749
|
(e) => {
|
|
3750
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3750
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3751
3751
|
if (r == null)
|
|
3752
3752
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3753
|
-
return n ? i =
|
|
3753
|
+
return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3754
3754
|
}
|
|
3755
|
-
),
|
|
3755
|
+
), di = xe(
|
|
3756
3756
|
(e) => {
|
|
3757
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3757
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3758
3758
|
if (r == null)
|
|
3759
3759
|
throw new Error(
|
|
3760
3760
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3761
3761
|
);
|
|
3762
|
-
return n ? i =
|
|
3762
|
+
return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3763
3763
|
}
|
|
3764
|
-
),
|
|
3764
|
+
), bi = (e = {}) => {
|
|
3765
3765
|
var t = e, {
|
|
3766
3766
|
locale: r = N()
|
|
3767
|
-
} = t, n =
|
|
3767
|
+
} = t, n = Q(t, [
|
|
3768
3768
|
"locale"
|
|
3769
3769
|
]);
|
|
3770
|
-
return
|
|
3771
|
-
},
|
|
3770
|
+
return mi(Qe({ locale: r }, n));
|
|
3771
|
+
}, gi = (e = {}) => {
|
|
3772
3772
|
var t = e, {
|
|
3773
3773
|
locale: r = N()
|
|
3774
|
-
} = t, n =
|
|
3774
|
+
} = t, n = Q(t, [
|
|
3775
3775
|
"locale"
|
|
3776
3776
|
]);
|
|
3777
|
-
return
|
|
3778
|
-
},
|
|
3777
|
+
return pi(Qe({ locale: r }, n));
|
|
3778
|
+
}, _i = (e = {}) => {
|
|
3779
3779
|
var t = e, {
|
|
3780
3780
|
locale: r = N()
|
|
3781
|
-
} = t, n =
|
|
3781
|
+
} = t, n = Q(t, [
|
|
3782
3782
|
"locale"
|
|
3783
3783
|
]);
|
|
3784
|
-
return
|
|
3785
|
-
},
|
|
3784
|
+
return di(Qe({ locale: r }, n));
|
|
3785
|
+
}, yi = xe(
|
|
3786
3786
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3787
|
-
(e, t = N()) => new
|
|
3788
|
-
ignoreTag:
|
|
3787
|
+
(e, t = N()) => new Qt(e, t, W().formats, {
|
|
3788
|
+
ignoreTag: W().ignoreTag
|
|
3789
3789
|
})
|
|
3790
|
-
),
|
|
3790
|
+
), Ei = (e, t = {}) => {
|
|
3791
3791
|
var r, n, i, s;
|
|
3792
3792
|
let a = t;
|
|
3793
3793
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -3800,9 +3800,9 @@ const ee = (e, t) => {
|
|
|
3800
3800
|
throw new Error(
|
|
3801
3801
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3802
3802
|
);
|
|
3803
|
-
let h =
|
|
3803
|
+
let h = Jt(e, l);
|
|
3804
3804
|
if (!h)
|
|
3805
|
-
h = (s = (i = (n = (r =
|
|
3805
|
+
h = (s = (i = (n = (r = W()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3806
3806
|
else if (typeof h != "string")
|
|
3807
3807
|
return console.warn(
|
|
3808
3808
|
`[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.`
|
|
@@ -3811,7 +3811,7 @@ const ee = (e, t) => {
|
|
|
3811
3811
|
return h;
|
|
3812
3812
|
let c = h;
|
|
3813
3813
|
try {
|
|
3814
|
-
c =
|
|
3814
|
+
c = yi(h, l).format(o);
|
|
3815
3815
|
} catch (m) {
|
|
3816
3816
|
m instanceof Error && console.warn(
|
|
3817
3817
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3819,20 +3819,20 @@ const ee = (e, t) => {
|
|
|
3819
3819
|
);
|
|
3820
3820
|
}
|
|
3821
3821
|
return c;
|
|
3822
|
-
},
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
function
|
|
3828
|
-
|
|
3829
|
-
}
|
|
3830
|
-
function
|
|
3831
|
-
|
|
3822
|
+
}, xi = (e, t) => _i(t).format(e), vi = (e, t) => gi(t).format(e), Hi = (e, t) => bi(t).format(e), wi = (e, t = N()) => Jt(e, t), Bi = Z([R, ie], () => Ei);
|
|
3823
|
+
Z([R], () => xi);
|
|
3824
|
+
Z([R], () => vi);
|
|
3825
|
+
Z([R], () => Hi);
|
|
3826
|
+
Z([R, ie], () => wi);
|
|
3827
|
+
function _t(e, t) {
|
|
3828
|
+
Yt(e, t);
|
|
3829
|
+
}
|
|
3830
|
+
function Si(e) {
|
|
3831
|
+
ni({
|
|
3832
3832
|
fallbackLocale: "en"
|
|
3833
|
-
}),
|
|
3833
|
+
}), R.set(e);
|
|
3834
3834
|
}
|
|
3835
|
-
const
|
|
3835
|
+
const yt = {
|
|
3836
3836
|
en: {
|
|
3837
3837
|
header: {
|
|
3838
3838
|
general: "Cashier",
|
|
@@ -3854,14 +3854,14 @@ const _t = {
|
|
|
3854
3854
|
withdraw: "Retrait"
|
|
3855
3855
|
}
|
|
3856
3856
|
}
|
|
3857
|
-
};
|
|
3857
|
+
}, F = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
3858
3858
|
function Ti(e, t) {
|
|
3859
3859
|
if (e) {
|
|
3860
3860
|
const r = document.createElement("style");
|
|
3861
3861
|
r.innerHTML = t, e.appendChild(r);
|
|
3862
3862
|
}
|
|
3863
3863
|
}
|
|
3864
|
-
function
|
|
3864
|
+
function Ai(e, t) {
|
|
3865
3865
|
if (!e || !t)
|
|
3866
3866
|
return;
|
|
3867
3867
|
const r = new URL(t);
|
|
@@ -3872,23 +3872,51 @@ function wi(e, t) {
|
|
|
3872
3872
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3873
3873
|
});
|
|
3874
3874
|
}
|
|
3875
|
-
function
|
|
3876
|
-
if (window.emMessageBus)
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3875
|
+
function Ci(e, t, r, n = !1) {
|
|
3876
|
+
if (!window.emMessageBus)
|
|
3877
|
+
return;
|
|
3878
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
3879
|
+
return r = Oi(e, t), r;
|
|
3880
|
+
window[F] || (window[F] = {}), r = Pi(e, t);
|
|
3881
|
+
const s = r.unsubscribe.bind(r), a = () => {
|
|
3882
|
+
if (window[F][t]) {
|
|
3883
|
+
const o = window[F][t];
|
|
3884
|
+
o.refCount > 1 ? o.refCount = o.refCount - 1 : delete window[F][t];
|
|
3885
|
+
}
|
|
3886
|
+
s();
|
|
3887
|
+
};
|
|
3888
|
+
return r.unsubscribe = a, r;
|
|
3889
|
+
}
|
|
3890
|
+
function Oi(e, t) {
|
|
3891
|
+
const r = document.createElement("style");
|
|
3892
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
3893
|
+
e && (r.innerHTML = n, e.appendChild(r));
|
|
3894
|
+
});
|
|
3895
|
+
}
|
|
3896
|
+
function Pi(e, t) {
|
|
3897
|
+
return window.emMessageBus.subscribe(t, (r) => {
|
|
3898
|
+
var o;
|
|
3899
|
+
if (!e)
|
|
3900
|
+
return;
|
|
3901
|
+
const n = e.getRootNode(), i = window[F];
|
|
3902
|
+
let s = (o = i[t]) == null ? void 0 : o.sheet;
|
|
3903
|
+
s ? i[t].refCount = i[t].refCount + 1 : (s = new CSSStyleSheet(), s.replaceSync(r), i[t] = {
|
|
3904
|
+
sheet: s,
|
|
3905
|
+
refCount: 1
|
|
3880
3906
|
});
|
|
3881
|
-
|
|
3907
|
+
const a = n.adoptedStyleSheets || [];
|
|
3908
|
+
a.includes(s) || (n.adoptedStyleSheets = [...a, s]);
|
|
3909
|
+
});
|
|
3882
3910
|
}
|
|
3883
|
-
function
|
|
3884
|
-
|
|
3911
|
+
function Li(e) {
|
|
3912
|
+
pr(e, "svelte-1p7ag40", ".CashierHeader{display:flex;position:relative;align-items:center;height:var(--emw--header-height, 40px);background-color:var(--emw--color-background, #F9FAFF);padding:10px 0;width:100vw}.CashierHeaderLeftButton{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);margin-bottom:0;display:flex;align-items:center;font-variant:all-small-caps;height:32px;margin-left:5px;gap:2px;cursor:pointer;stroke:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton svg path{fill:var(--emw--color-primary, #F9C405)}.CashierHeaderLeftButton.disabled{pointer-events:none}.CashierHeaderTitle{color:var(--emw--color-primary, #F9C405);font-size:var(--emw--font-size-medium, 16px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin-left:15px;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;fill:var(--emw--color-primary, #F9C405)}");
|
|
3885
3913
|
}
|
|
3886
|
-
const
|
|
3887
|
-
function
|
|
3914
|
+
const Ni = (e) => ({}), Et = (e) => ({}), Ii = (e) => ({}), xt = (e) => ({}), Mi = (e) => ({}), vt = (e) => ({});
|
|
3915
|
+
function Ht(e) {
|
|
3888
3916
|
let t, r, n;
|
|
3889
3917
|
return {
|
|
3890
3918
|
c() {
|
|
3891
|
-
t = z("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><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"></path></svg>',
|
|
3919
|
+
t = z("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><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"></path></svg>', ne(t, "class", "CashierHeaderLeftButton");
|
|
3892
3920
|
},
|
|
3893
3921
|
m(i, s) {
|
|
3894
3922
|
M(i, t, s), r || (n = Ot(
|
|
@@ -3898,34 +3926,34 @@ function vt(e) {
|
|
|
3898
3926
|
e[6]
|
|
3899
3927
|
), r = !0);
|
|
3900
3928
|
},
|
|
3901
|
-
p:
|
|
3929
|
+
p: B,
|
|
3902
3930
|
d(i) {
|
|
3903
3931
|
i && L(t), r = !1, n();
|
|
3904
3932
|
}
|
|
3905
3933
|
};
|
|
3906
3934
|
}
|
|
3907
|
-
function
|
|
3935
|
+
function Ri(e) {
|
|
3908
3936
|
let t, r = (
|
|
3909
3937
|
/*backButton*/
|
|
3910
|
-
e[1] &&
|
|
3938
|
+
e[1] && Ht(e)
|
|
3911
3939
|
);
|
|
3912
3940
|
return {
|
|
3913
3941
|
c() {
|
|
3914
|
-
r && r.c(), t =
|
|
3942
|
+
r && r.c(), t = Ct();
|
|
3915
3943
|
},
|
|
3916
3944
|
m(n, i) {
|
|
3917
3945
|
r && r.m(n, i), M(n, t, i);
|
|
3918
3946
|
},
|
|
3919
3947
|
p(n, i) {
|
|
3920
3948
|
/*backButton*/
|
|
3921
|
-
n[1] ? r ? r.p(n, i) : (r =
|
|
3949
|
+
n[1] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3922
3950
|
},
|
|
3923
3951
|
d(n) {
|
|
3924
3952
|
n && L(t), r && r.d(n);
|
|
3925
3953
|
}
|
|
3926
3954
|
};
|
|
3927
3955
|
}
|
|
3928
|
-
function
|
|
3956
|
+
function $i(e) {
|
|
3929
3957
|
let t, r = (
|
|
3930
3958
|
/*$_*/
|
|
3931
3959
|
e[4](
|
|
@@ -3935,10 +3963,10 @@ function Ni(e) {
|
|
|
3935
3963
|
), n;
|
|
3936
3964
|
return {
|
|
3937
3965
|
c() {
|
|
3938
|
-
t = z("span"), n = ze(r),
|
|
3966
|
+
t = z("span"), n = ze(r), ne(t, "class", "CashierHeaderTitle");
|
|
3939
3967
|
},
|
|
3940
3968
|
m(i, s) {
|
|
3941
|
-
M(i, t, s),
|
|
3969
|
+
M(i, t, s), me(t, n);
|
|
3942
3970
|
},
|
|
3943
3971
|
p(i, s) {
|
|
3944
3972
|
s & /*$_, titleText*/
|
|
@@ -3946,18 +3974,18 @@ function Ni(e) {
|
|
|
3946
3974
|
i[4](
|
|
3947
3975
|
/*titleText*/
|
|
3948
3976
|
i[2]
|
|
3949
|
-
) + "") &&
|
|
3977
|
+
) + "") && _r(n, r);
|
|
3950
3978
|
},
|
|
3951
3979
|
d(i) {
|
|
3952
3980
|
i && L(t);
|
|
3953
3981
|
}
|
|
3954
3982
|
};
|
|
3955
3983
|
}
|
|
3956
|
-
function
|
|
3984
|
+
function wt(e) {
|
|
3957
3985
|
let t, r, n;
|
|
3958
3986
|
return {
|
|
3959
3987
|
c() {
|
|
3960
|
-
t = z("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><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"></path></svg>',
|
|
3988
|
+
t = z("span"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="20" viewBox="0 0 13 13"><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"></path></svg>', ne(t, "class", "CashierHeaderRightButton");
|
|
3961
3989
|
},
|
|
3962
3990
|
m(i, s) {
|
|
3963
3991
|
M(i, t, s), r || (n = Ot(
|
|
@@ -3967,69 +3995,69 @@ function Ht(e) {
|
|
|
3967
3995
|
e[5]
|
|
3968
3996
|
), r = !0);
|
|
3969
3997
|
},
|
|
3970
|
-
p:
|
|
3998
|
+
p: B,
|
|
3971
3999
|
d(i) {
|
|
3972
4000
|
i && L(t), r = !1, n();
|
|
3973
4001
|
}
|
|
3974
4002
|
};
|
|
3975
4003
|
}
|
|
3976
|
-
function
|
|
4004
|
+
function Ui(e) {
|
|
3977
4005
|
let t, r = (
|
|
3978
4006
|
/*closeButton*/
|
|
3979
|
-
e[3] &&
|
|
4007
|
+
e[3] && wt(e)
|
|
3980
4008
|
);
|
|
3981
4009
|
return {
|
|
3982
4010
|
c() {
|
|
3983
|
-
r && r.c(), t =
|
|
4011
|
+
r && r.c(), t = Ct();
|
|
3984
4012
|
},
|
|
3985
4013
|
m(n, i) {
|
|
3986
4014
|
r && r.m(n, i), M(n, t, i);
|
|
3987
4015
|
},
|
|
3988
4016
|
p(n, i) {
|
|
3989
4017
|
/*closeButton*/
|
|
3990
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
4018
|
+
n[3] ? r ? r.p(n, i) : (r = wt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3991
4019
|
},
|
|
3992
4020
|
d(n) {
|
|
3993
4021
|
n && L(t), r && r.d(n);
|
|
3994
4022
|
}
|
|
3995
4023
|
};
|
|
3996
4024
|
}
|
|
3997
|
-
function
|
|
4025
|
+
function Di(e) {
|
|
3998
4026
|
let t, r, n, i;
|
|
3999
4027
|
const s = (
|
|
4000
4028
|
/*#slots*/
|
|
4001
4029
|
e[16].leftButton
|
|
4002
|
-
), a =
|
|
4030
|
+
), a = He(
|
|
4003
4031
|
s,
|
|
4004
4032
|
e,
|
|
4005
4033
|
/*$$scope*/
|
|
4006
4034
|
e[15],
|
|
4007
|
-
|
|
4008
|
-
), o = a ||
|
|
4035
|
+
vt
|
|
4036
|
+
), o = a || Ri(e), l = (
|
|
4009
4037
|
/*#slots*/
|
|
4010
4038
|
e[16].title
|
|
4011
|
-
), u =
|
|
4039
|
+
), u = He(
|
|
4012
4040
|
l,
|
|
4013
4041
|
e,
|
|
4014
4042
|
/*$$scope*/
|
|
4015
4043
|
e[15],
|
|
4016
|
-
|
|
4017
|
-
), h = u ||
|
|
4044
|
+
xt
|
|
4045
|
+
), h = u || $i(e), c = (
|
|
4018
4046
|
/*#slots*/
|
|
4019
4047
|
e[16].rightButton
|
|
4020
|
-
), m =
|
|
4048
|
+
), m = He(
|
|
4021
4049
|
c,
|
|
4022
4050
|
e,
|
|
4023
4051
|
/*$$scope*/
|
|
4024
4052
|
e[15],
|
|
4025
|
-
|
|
4026
|
-
), p = m ||
|
|
4053
|
+
Et
|
|
4054
|
+
), p = m || Ui(e);
|
|
4027
4055
|
return {
|
|
4028
4056
|
c() {
|
|
4029
|
-
t = z("div"), o && o.c(), r =
|
|
4057
|
+
t = z("div"), o && o.c(), r = rt(), h && h.c(), n = rt(), p && p.c(), ne(t, "class", "CashierHeader");
|
|
4030
4058
|
},
|
|
4031
4059
|
m(f, _) {
|
|
4032
|
-
M(f, t, _), o && o.m(t, null),
|
|
4060
|
+
M(f, t, _), o && o.m(t, null), me(t, r), h && h.m(t, null), me(t, n), p && p.m(t, null), e[17](t), i = !0;
|
|
4033
4061
|
},
|
|
4034
4062
|
p(f, [_]) {
|
|
4035
4063
|
a ? a.p && (!i || _ & /*$$scope*/
|
|
@@ -4039,17 +4067,17 @@ function Mi(e) {
|
|
|
4039
4067
|
f,
|
|
4040
4068
|
/*$$scope*/
|
|
4041
4069
|
f[15],
|
|
4042
|
-
i ?
|
|
4070
|
+
i ? we(
|
|
4043
4071
|
s,
|
|
4044
4072
|
/*$$scope*/
|
|
4045
4073
|
f[15],
|
|
4046
4074
|
_,
|
|
4047
|
-
|
|
4048
|
-
) :
|
|
4075
|
+
Mi
|
|
4076
|
+
) : Se(
|
|
4049
4077
|
/*$$scope*/
|
|
4050
4078
|
f[15]
|
|
4051
4079
|
),
|
|
4052
|
-
|
|
4080
|
+
vt
|
|
4053
4081
|
) : o && o.p && (!i || _ & /*backButton*/
|
|
4054
4082
|
2) && o.p(f, i ? _ : -1), u ? u.p && (!i || _ & /*$$scope*/
|
|
4055
4083
|
32768) && Be(
|
|
@@ -4058,17 +4086,17 @@ function Mi(e) {
|
|
|
4058
4086
|
f,
|
|
4059
4087
|
/*$$scope*/
|
|
4060
4088
|
f[15],
|
|
4061
|
-
i ?
|
|
4089
|
+
i ? we(
|
|
4062
4090
|
l,
|
|
4063
4091
|
/*$$scope*/
|
|
4064
4092
|
f[15],
|
|
4065
4093
|
_,
|
|
4066
|
-
|
|
4067
|
-
) :
|
|
4094
|
+
Ii
|
|
4095
|
+
) : Se(
|
|
4068
4096
|
/*$$scope*/
|
|
4069
4097
|
f[15]
|
|
4070
4098
|
),
|
|
4071
|
-
|
|
4099
|
+
xt
|
|
4072
4100
|
) : h && h.p && (!i || _ & /*$_, titleText*/
|
|
4073
4101
|
20) && h.p(f, i ? _ : -1), m ? m.p && (!i || _ & /*$$scope*/
|
|
4074
4102
|
32768) && Be(
|
|
@@ -4077,64 +4105,64 @@ function Mi(e) {
|
|
|
4077
4105
|
f,
|
|
4078
4106
|
/*$$scope*/
|
|
4079
4107
|
f[15],
|
|
4080
|
-
i ?
|
|
4108
|
+
i ? we(
|
|
4081
4109
|
c,
|
|
4082
4110
|
/*$$scope*/
|
|
4083
4111
|
f[15],
|
|
4084
4112
|
_,
|
|
4085
|
-
|
|
4086
|
-
) :
|
|
4113
|
+
Ni
|
|
4114
|
+
) : Se(
|
|
4087
4115
|
/*$$scope*/
|
|
4088
4116
|
f[15]
|
|
4089
4117
|
),
|
|
4090
|
-
|
|
4118
|
+
Et
|
|
4091
4119
|
) : p && p.p && (!i || _ & /*closeButton*/
|
|
4092
4120
|
8) && p.p(f, i ? _ : -1);
|
|
4093
4121
|
},
|
|
4094
4122
|
i(f) {
|
|
4095
|
-
i || (
|
|
4123
|
+
i || (he(o, f), he(h, f), he(p, f), i = !0);
|
|
4096
4124
|
},
|
|
4097
4125
|
o(f) {
|
|
4098
|
-
|
|
4126
|
+
Ae(o, f), Ae(h, f), Ae(p, f), i = !1;
|
|
4099
4127
|
},
|
|
4100
4128
|
d(f) {
|
|
4101
4129
|
f && L(t), o && o.d(f), h && h.d(f), p && p.d(f), e[17](null);
|
|
4102
4130
|
}
|
|
4103
4131
|
};
|
|
4104
4132
|
}
|
|
4105
|
-
function
|
|
4133
|
+
function Gi(e, t, r) {
|
|
4106
4134
|
let n;
|
|
4107
|
-
|
|
4108
|
-
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: p = "" } = t, f, _ = !1,
|
|
4109
|
-
const
|
|
4135
|
+
mr(e, Bi, (g) => r(4, n = g));
|
|
4136
|
+
let { $$slots: i = {}, $$scope: s } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: l = "" } = t, { showbackbutton: u = "" } = t, { title: h = "header.general" } = t, { lang: c = "en" } = t, { showclosebutton: m = "" } = t, { mbsource: p = "" } = t, f, _, v = !1, O, A = !1;
|
|
4137
|
+
const H = () => {
|
|
4110
4138
|
fetch(l).then((g) => g.json()).then((g) => {
|
|
4111
|
-
Object.keys(g).forEach((
|
|
4112
|
-
|
|
4139
|
+
Object.keys(g).forEach((Je) => {
|
|
4140
|
+
_t(Je, g[Je]);
|
|
4113
4141
|
});
|
|
4114
4142
|
}).catch((g) => {
|
|
4115
4143
|
console.log(g);
|
|
4116
4144
|
});
|
|
4117
4145
|
};
|
|
4118
|
-
Object.keys(
|
|
4119
|
-
|
|
4146
|
+
Object.keys(yt).forEach((g) => {
|
|
4147
|
+
_t(g, yt[g]);
|
|
4120
4148
|
});
|
|
4121
|
-
const
|
|
4122
|
-
|
|
4123
|
-
},
|
|
4149
|
+
const I = () => {
|
|
4150
|
+
Si(c);
|
|
4151
|
+
}, C = () => {
|
|
4124
4152
|
window.postMessage({ type: "CloseCashier" }, window.location.href);
|
|
4125
|
-
},
|
|
4153
|
+
}, $ = () => {
|
|
4126
4154
|
window.postMessage({ type: "BackCashier" }, window.location.href);
|
|
4127
|
-
},
|
|
4128
|
-
r(1,
|
|
4129
|
-
},
|
|
4130
|
-
r(3,
|
|
4131
|
-
},
|
|
4132
|
-
r(2,
|
|
4155
|
+
}, oe = () => {
|
|
4156
|
+
r(1, v = !!u && u !== "false");
|
|
4157
|
+
}, nr = () => {
|
|
4158
|
+
r(3, A = !!m && m !== "false");
|
|
4159
|
+
}, ir = () => {
|
|
4160
|
+
r(2, O = h || "header.general");
|
|
4133
4161
|
};
|
|
4134
|
-
|
|
4162
|
+
xr(() => () => {
|
|
4135
4163
|
});
|
|
4136
|
-
function
|
|
4137
|
-
|
|
4164
|
+
function sr(g) {
|
|
4165
|
+
Me[g ? "unshift" : "push"](() => {
|
|
4138
4166
|
f = g, r(0, f);
|
|
4139
4167
|
});
|
|
4140
4168
|
}
|
|
@@ -4142,22 +4170,22 @@ function $i(e, t, r) {
|
|
|
4142
4170
|
"clientstyling" in g && r(7, a = g.clientstyling), "clientstylingurl" in g && r(8, o = g.clientstylingurl), "translationurl" in g && r(9, l = g.translationurl), "showbackbutton" in g && r(10, u = g.showbackbutton), "title" in g && r(11, h = g.title), "lang" in g && r(12, c = g.lang), "showclosebutton" in g && r(13, m = g.showclosebutton), "mbsource" in g && r(14, p = g.mbsource), "$$scope" in g && r(15, s = g.$$scope);
|
|
4143
4171
|
}, e.$$.update = () => {
|
|
4144
4172
|
e.$$.dirty & /*lang*/
|
|
4145
|
-
4096 && c &&
|
|
4146
|
-
6144 && c && h &&
|
|
4173
|
+
4096 && c && I(), e.$$.dirty & /*lang, title*/
|
|
4174
|
+
6144 && c && h && ir(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4147
4175
|
129 && a && f && Ti(f, a), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4148
|
-
257 && o && f &&
|
|
4149
|
-
16385 && p && f &&
|
|
4150
|
-
4608 && c && l &&
|
|
4151
|
-
1024 && u &&
|
|
4152
|
-
8192 && m &&
|
|
4176
|
+
257 && o && f && Ai(f, o), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4177
|
+
16385 && p && f && Ci(f, `${p}.Style`, _), e.$$.dirty & /*lang, translationurl*/
|
|
4178
|
+
4608 && c && l && H(), e.$$.dirty & /*showbackbutton*/
|
|
4179
|
+
1024 && u && oe(), e.$$.dirty & /*showclosebutton*/
|
|
4180
|
+
8192 && m && nr();
|
|
4153
4181
|
}, [
|
|
4154
4182
|
f,
|
|
4155
|
-
_,
|
|
4156
4183
|
v,
|
|
4157
4184
|
O,
|
|
4158
|
-
n,
|
|
4159
|
-
I,
|
|
4160
4185
|
A,
|
|
4186
|
+
n,
|
|
4187
|
+
C,
|
|
4188
|
+
$,
|
|
4161
4189
|
a,
|
|
4162
4190
|
o,
|
|
4163
4191
|
l,
|
|
@@ -4168,17 +4196,17 @@ function $i(e, t, r) {
|
|
|
4168
4196
|
p,
|
|
4169
4197
|
s,
|
|
4170
4198
|
i,
|
|
4171
|
-
|
|
4199
|
+
sr
|
|
4172
4200
|
];
|
|
4173
4201
|
}
|
|
4174
|
-
class
|
|
4202
|
+
class Fi extends Lr {
|
|
4175
4203
|
constructor(t) {
|
|
4176
|
-
super(),
|
|
4204
|
+
super(), Or(
|
|
4177
4205
|
this,
|
|
4178
4206
|
t,
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4207
|
+
Gi,
|
|
4208
|
+
Di,
|
|
4209
|
+
St,
|
|
4182
4210
|
{
|
|
4183
4211
|
clientstyling: 7,
|
|
4184
4212
|
clientstylingurl: 8,
|
|
@@ -4189,59 +4217,59 @@ class Ri extends Cr {
|
|
|
4189
4217
|
showclosebutton: 13,
|
|
4190
4218
|
mbsource: 14
|
|
4191
4219
|
},
|
|
4192
|
-
|
|
4220
|
+
Li
|
|
4193
4221
|
);
|
|
4194
4222
|
}
|
|
4195
4223
|
get clientstyling() {
|
|
4196
4224
|
return this.$$.ctx[7];
|
|
4197
4225
|
}
|
|
4198
4226
|
set clientstyling(t) {
|
|
4199
|
-
this.$$set({ clientstyling: t }),
|
|
4227
|
+
this.$$set({ clientstyling: t }), S();
|
|
4200
4228
|
}
|
|
4201
4229
|
get clientstylingurl() {
|
|
4202
4230
|
return this.$$.ctx[8];
|
|
4203
4231
|
}
|
|
4204
4232
|
set clientstylingurl(t) {
|
|
4205
|
-
this.$$set({ clientstylingurl: t }),
|
|
4233
|
+
this.$$set({ clientstylingurl: t }), S();
|
|
4206
4234
|
}
|
|
4207
4235
|
get translationurl() {
|
|
4208
4236
|
return this.$$.ctx[9];
|
|
4209
4237
|
}
|
|
4210
4238
|
set translationurl(t) {
|
|
4211
|
-
this.$$set({ translationurl: t }),
|
|
4239
|
+
this.$$set({ translationurl: t }), S();
|
|
4212
4240
|
}
|
|
4213
4241
|
get showbackbutton() {
|
|
4214
4242
|
return this.$$.ctx[10];
|
|
4215
4243
|
}
|
|
4216
4244
|
set showbackbutton(t) {
|
|
4217
|
-
this.$$set({ showbackbutton: t }),
|
|
4245
|
+
this.$$set({ showbackbutton: t }), S();
|
|
4218
4246
|
}
|
|
4219
4247
|
get title() {
|
|
4220
4248
|
return this.$$.ctx[11];
|
|
4221
4249
|
}
|
|
4222
4250
|
set title(t) {
|
|
4223
|
-
this.$$set({ title: t }),
|
|
4251
|
+
this.$$set({ title: t }), S();
|
|
4224
4252
|
}
|
|
4225
4253
|
get lang() {
|
|
4226
4254
|
return this.$$.ctx[12];
|
|
4227
4255
|
}
|
|
4228
4256
|
set lang(t) {
|
|
4229
|
-
this.$$set({ lang: t }),
|
|
4257
|
+
this.$$set({ lang: t }), S();
|
|
4230
4258
|
}
|
|
4231
4259
|
get showclosebutton() {
|
|
4232
4260
|
return this.$$.ctx[13];
|
|
4233
4261
|
}
|
|
4234
4262
|
set showclosebutton(t) {
|
|
4235
|
-
this.$$set({ showclosebutton: t }),
|
|
4263
|
+
this.$$set({ showclosebutton: t }), S();
|
|
4236
4264
|
}
|
|
4237
4265
|
get mbsource() {
|
|
4238
4266
|
return this.$$.ctx[14];
|
|
4239
4267
|
}
|
|
4240
4268
|
set mbsource(t) {
|
|
4241
|
-
this.$$set({ mbsource: t }),
|
|
4269
|
+
this.$$set({ mbsource: t }), S();
|
|
4242
4270
|
}
|
|
4243
4271
|
}
|
|
4244
|
-
|
|
4272
|
+
Pr(Fi, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, showbackbutton: {}, title: {}, lang: {}, showclosebutton: {}, mbsource: {} }, ["leftButton", "title", "rightButton"], [], !0);
|
|
4245
4273
|
export {
|
|
4246
|
-
|
|
4274
|
+
Fi as default
|
|
4247
4275
|
};
|