@everymatrix/cashier-video-modal 1.77.18 → 1.77.20
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/{CashierVideoModal-BVyIb_bz.js → CashierVideoModal-C2264P-G.js} +708 -751
- package/components/CashierVideoModal-Cdoz-vOp.cjs +18 -0
- package/components/{CashierVideoModal-DpT89WDt.js → CashierVideoModal-DWm2kDz2.js} +723 -766
- package/es2015/cashier-video-modal.cjs +1 -1
- package/es2015/cashier-video-modal.js +1 -1
- package/esnext/cashier-video-modal.js +1 -1
- package/package.json +1 -1
- package/components/CashierVideoModal-D0hHtkXg.cjs +0 -18
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function S() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Et(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function We() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function K(e) {
|
|
10
|
+
e.forEach(Et);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function je(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function xt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let ie;
|
|
19
|
-
function
|
|
19
|
+
function ze(e, t) {
|
|
20
20
|
return e === t ? !0 : (ie || (ie = document.createElement("a")), ie.href = t, e === ie.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function tr(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function rr(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,17 +31,17 @@ function ar(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function T(e, t) {
|
|
35
35
|
e.appendChild(t);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
const n =
|
|
37
|
+
function nr(e, t, r) {
|
|
38
|
+
const n = ir(e);
|
|
39
39
|
if (!n.getElementById(t)) {
|
|
40
|
-
const i =
|
|
41
|
-
i.id = t, i.textContent = r,
|
|
40
|
+
const i = O("style");
|
|
41
|
+
i.id = t, i.textContent = r, or(n, i);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function ir(e) {
|
|
45
45
|
if (!e)
|
|
46
46
|
return document;
|
|
47
47
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -51,47 +51,47 @@ function hr(e) {
|
|
|
51
51
|
t
|
|
52
52
|
) : e.ownerDocument;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
return
|
|
54
|
+
function or(e, t) {
|
|
55
|
+
return T(
|
|
56
56
|
/** @type {Document} */
|
|
57
57
|
e.head || e,
|
|
58
58
|
t
|
|
59
59
|
), t.sheet;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function ee(e, t, r) {
|
|
62
62
|
e.insertBefore(t, r || null);
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function k(e) {
|
|
65
65
|
e.parentNode && e.parentNode.removeChild(e);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function O(e) {
|
|
68
68
|
return document.createElement(e);
|
|
69
69
|
}
|
|
70
70
|
function fe(e) {
|
|
71
71
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function St(e) {
|
|
74
74
|
return document.createTextNode(e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return
|
|
76
|
+
function Ze() {
|
|
77
|
+
return St(" ");
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function sr() {
|
|
80
|
+
return St("");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Ht(e, t, r, n) {
|
|
83
83
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
84
84
|
}
|
|
85
85
|
function _(e, t, r) {
|
|
86
86
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function ar(e) {
|
|
89
89
|
return Array.from(e.childNodes);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Qe(e, t, r) {
|
|
92
92
|
e.classList.toggle(t, !!r);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function ur(e) {
|
|
95
95
|
const t = {};
|
|
96
96
|
return e.childNodes.forEach(
|
|
97
97
|
/** @param {Element} node */
|
|
@@ -100,87 +100,87 @@ function pr(e) {
|
|
|
100
100
|
}
|
|
101
101
|
), t;
|
|
102
102
|
}
|
|
103
|
-
let
|
|
104
|
-
function
|
|
105
|
-
|
|
103
|
+
let J;
|
|
104
|
+
function Q(e) {
|
|
105
|
+
J = e;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
if (!
|
|
107
|
+
function hr() {
|
|
108
|
+
if (!J)
|
|
109
109
|
throw new Error("Function called outside component initialization");
|
|
110
|
-
return
|
|
110
|
+
return J;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
112
|
+
function lr(e) {
|
|
113
|
+
hr().$$.on_mount.push(e);
|
|
114
114
|
}
|
|
115
|
-
const $ = [],
|
|
115
|
+
const $ = [], Te = [];
|
|
116
116
|
let U = [];
|
|
117
|
-
const
|
|
118
|
-
let
|
|
119
|
-
function
|
|
120
|
-
|
|
117
|
+
const Je = [], fr = /* @__PURE__ */ Promise.resolve();
|
|
118
|
+
let Be = !1;
|
|
119
|
+
function cr() {
|
|
120
|
+
Be || (Be = !0, fr.then(R));
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Ae(e) {
|
|
123
123
|
U.push(e);
|
|
124
124
|
}
|
|
125
|
-
const
|
|
125
|
+
const ye = /* @__PURE__ */ new Set();
|
|
126
126
|
let N = 0;
|
|
127
127
|
function R() {
|
|
128
128
|
if (N !== 0)
|
|
129
129
|
return;
|
|
130
|
-
const e =
|
|
130
|
+
const e = J;
|
|
131
131
|
do {
|
|
132
132
|
try {
|
|
133
133
|
for (; N < $.length; ) {
|
|
134
134
|
const t = $[N];
|
|
135
|
-
N++,
|
|
135
|
+
N++, Q(t), pr(t.$$);
|
|
136
136
|
}
|
|
137
137
|
} catch (t) {
|
|
138
138
|
throw $.length = 0, N = 0, t;
|
|
139
139
|
}
|
|
140
|
-
for (
|
|
141
|
-
|
|
140
|
+
for (Q(null), $.length = 0, N = 0; Te.length; )
|
|
141
|
+
Te.pop()();
|
|
142
142
|
for (let t = 0; t < U.length; t += 1) {
|
|
143
143
|
const r = U[t];
|
|
144
|
-
|
|
144
|
+
ye.has(r) || (ye.add(r), r());
|
|
145
145
|
}
|
|
146
146
|
U.length = 0;
|
|
147
147
|
} while ($.length);
|
|
148
|
-
for (;
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
for (; Je.length; )
|
|
149
|
+
Je.pop()();
|
|
150
|
+
Be = !1, ye.clear(), Q(e);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function pr(e) {
|
|
153
153
|
if (e.fragment !== null) {
|
|
154
|
-
e.update(),
|
|
154
|
+
e.update(), K(e.before_update);
|
|
155
155
|
const t = e.dirty;
|
|
156
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
156
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ae);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function dr(e) {
|
|
160
160
|
const t = [], r = [];
|
|
161
161
|
U.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), U = t;
|
|
162
162
|
}
|
|
163
|
-
const
|
|
164
|
-
function
|
|
165
|
-
e && e.i && (
|
|
163
|
+
const mr = /* @__PURE__ */ new Set();
|
|
164
|
+
function br(e, t) {
|
|
165
|
+
e && e.i && (mr.delete(e), e.i(t));
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function vr(e, t, r) {
|
|
168
168
|
const { fragment: n, after_update: i } = e.$$;
|
|
169
|
-
n && n.m(t, r),
|
|
170
|
-
const o = e.$$.on_mount.map(
|
|
171
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
172
|
-
}), i.forEach(
|
|
169
|
+
n && n.m(t, r), Ae(() => {
|
|
170
|
+
const o = e.$$.on_mount.map(Et).filter(je);
|
|
171
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : K(o), e.$$.on_mount = [];
|
|
172
|
+
}), i.forEach(Ae);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function gr(e, t) {
|
|
175
175
|
const r = e.$$;
|
|
176
|
-
r.fragment !== null && (
|
|
176
|
+
r.fragment !== null && (dr(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
e.$$.dirty[0] === -1 && ($.push(e),
|
|
178
|
+
function yr(e, t) {
|
|
179
|
+
e.$$.dirty[0] === -1 && ($.push(e), cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
const h =
|
|
183
|
-
|
|
181
|
+
function _r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
182
|
+
const h = J;
|
|
183
|
+
Q(e);
|
|
184
184
|
const u = e.$$ = {
|
|
185
185
|
fragment: null,
|
|
186
186
|
ctx: [],
|
|
@@ -188,7 +188,7 @@ function Hr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
188
188
|
props: o,
|
|
189
189
|
update: S,
|
|
190
190
|
not_equal: i,
|
|
191
|
-
bound:
|
|
191
|
+
bound: We(),
|
|
192
192
|
// lifecycle
|
|
193
193
|
on_mount: [],
|
|
194
194
|
on_destroy: [],
|
|
@@ -197,28 +197,28 @@ function Hr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
197
197
|
after_update: [],
|
|
198
198
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
199
199
|
// everything else
|
|
200
|
-
callbacks:
|
|
200
|
+
callbacks: We(),
|
|
201
201
|
dirty: a,
|
|
202
202
|
skip_bound: !1,
|
|
203
203
|
root: t.target || h.$$.root
|
|
204
204
|
};
|
|
205
205
|
s && s(u.root);
|
|
206
206
|
let l = !1;
|
|
207
|
-
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
208
|
-
const
|
|
209
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
210
|
-
}) : [], u.update(), l = !0,
|
|
207
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...b) => {
|
|
208
|
+
const g = b.length ? b[0] : c;
|
|
209
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = g) && (!u.skip_bound && u.bound[f] && u.bound[f](g), l && yr(e, f)), c;
|
|
210
|
+
}) : [], u.update(), l = !0, K(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
211
211
|
if (t.hydrate) {
|
|
212
|
-
const f =
|
|
213
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
212
|
+
const f = ar(t.target);
|
|
213
|
+
u.fragment && u.fragment.l(f), f.forEach(k);
|
|
214
214
|
} else
|
|
215
215
|
u.fragment && u.fragment.c();
|
|
216
|
-
t.intro &&
|
|
216
|
+
t.intro && br(e.$$.fragment), vr(e, t.target, t.anchor), R();
|
|
217
217
|
}
|
|
218
|
-
|
|
218
|
+
Q(h);
|
|
219
219
|
}
|
|
220
|
-
let
|
|
221
|
-
typeof HTMLElement == "function" && (
|
|
220
|
+
let wt;
|
|
221
|
+
typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
222
222
|
/** The Svelte component constructor */
|
|
223
223
|
$$ctor;
|
|
224
224
|
/** Slots */
|
|
@@ -260,24 +260,24 @@ typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
|
260
260
|
let o;
|
|
261
261
|
return {
|
|
262
262
|
c: function() {
|
|
263
|
-
o =
|
|
263
|
+
o = O("slot"), i !== "default" && _(o, "name", i);
|
|
264
264
|
},
|
|
265
265
|
/**
|
|
266
266
|
* @param {HTMLElement} target
|
|
267
267
|
* @param {HTMLElement} [anchor]
|
|
268
268
|
*/
|
|
269
269
|
m: function(h, u) {
|
|
270
|
-
|
|
270
|
+
ee(h, o, u);
|
|
271
271
|
},
|
|
272
272
|
d: function(h) {
|
|
273
|
-
h &&
|
|
273
|
+
h && k(o);
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
};
|
|
277
277
|
};
|
|
278
278
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
279
279
|
return;
|
|
280
|
-
const t = {}, r =
|
|
280
|
+
const t = {}, r = ur(this);
|
|
281
281
|
for (const i of this.$$s)
|
|
282
282
|
i in r && (t[i] = [e(i)]);
|
|
283
283
|
for (const i of this.attributes) {
|
|
@@ -364,8 +364,8 @@ function ae(e, t, r, n) {
|
|
|
364
364
|
return t;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
let s = class extends
|
|
367
|
+
function Er(e, t, r, n, i, o) {
|
|
368
|
+
let s = class extends wt {
|
|
369
369
|
constructor() {
|
|
370
370
|
super(e, r, i), this.$$p_d = t;
|
|
371
371
|
}
|
|
@@ -393,7 +393,7 @@ function Tr(e, t, r, n, i, o) {
|
|
|
393
393
|
}), e.element = /** @type {any} */
|
|
394
394
|
s, s;
|
|
395
395
|
}
|
|
396
|
-
class
|
|
396
|
+
class xr {
|
|
397
397
|
/**
|
|
398
398
|
* ### PRIVATE API
|
|
399
399
|
*
|
|
@@ -412,7 +412,7 @@ class Br {
|
|
|
412
412
|
$$set = void 0;
|
|
413
413
|
/** @returns {void} */
|
|
414
414
|
$destroy() {
|
|
415
|
-
|
|
415
|
+
gr(this, 1), this.$destroy = S;
|
|
416
416
|
}
|
|
417
417
|
/**
|
|
418
418
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -421,7 +421,7 @@ class Br {
|
|
|
421
421
|
* @returns {() => void}
|
|
422
422
|
*/
|
|
423
423
|
$on(t, r) {
|
|
424
|
-
if (!
|
|
424
|
+
if (!je(r))
|
|
425
425
|
return S;
|
|
426
426
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
427
427
|
return n.push(r), () => {
|
|
@@ -434,18 +434,18 @@ class Br {
|
|
|
434
434
|
* @returns {void}
|
|
435
435
|
*/
|
|
436
436
|
$set(t) {
|
|
437
|
-
this.$$set && !
|
|
437
|
+
this.$$set && !tr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
const
|
|
441
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
442
|
-
function
|
|
440
|
+
const Sr = "4";
|
|
441
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Sr);
|
|
442
|
+
function Hr(e, t) {
|
|
443
443
|
if (e) {
|
|
444
444
|
const r = document.createElement("style");
|
|
445
445
|
r.innerHTML = t, e.appendChild(r);
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function wr(e, t) {
|
|
449
449
|
const r = new URL(t);
|
|
450
450
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
451
451
|
const i = document.createElement("style");
|
|
@@ -454,7 +454,7 @@ function Or(e, t) {
|
|
|
454
454
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
455
455
|
});
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function Tr(e, t, r) {
|
|
458
458
|
if (window.emMessageBus) {
|
|
459
459
|
const n = document.createElement("style");
|
|
460
460
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -476,24 +476,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
476
476
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
477
477
|
PERFORMANCE OF THIS SOFTWARE.
|
|
478
478
|
***************************************************************************** */
|
|
479
|
-
var
|
|
480
|
-
return
|
|
479
|
+
var Pe = function(e, t) {
|
|
480
|
+
return Pe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
481
481
|
r.__proto__ = n;
|
|
482
482
|
} || function(r, n) {
|
|
483
483
|
for (var i in n)
|
|
484
484
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
485
|
-
},
|
|
485
|
+
}, Pe(e, t);
|
|
486
486
|
};
|
|
487
|
-
function
|
|
487
|
+
function A(e, t) {
|
|
488
488
|
if (typeof t != "function" && t !== null)
|
|
489
489
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
490
|
-
|
|
490
|
+
Pe(e, t);
|
|
491
491
|
function r() {
|
|
492
492
|
this.constructor = e;
|
|
493
493
|
}
|
|
494
494
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
var m = function() {
|
|
497
|
+
return m = Object.assign || function(t) {
|
|
498
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
499
|
+
r = arguments[n];
|
|
500
|
+
for (var o in r)
|
|
501
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
502
|
+
}
|
|
503
|
+
return t;
|
|
504
|
+
}, m.apply(this, arguments);
|
|
505
|
+
};
|
|
506
|
+
function Br(e, t) {
|
|
507
|
+
var r = {};
|
|
508
|
+
for (var n in e)
|
|
509
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
510
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
511
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
512
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
513
|
+
return r;
|
|
514
|
+
}
|
|
515
|
+
function Ce(e) {
|
|
497
516
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
498
517
|
if (r)
|
|
499
518
|
return r.call(e);
|
|
@@ -505,7 +524,7 @@ function Ie(e) {
|
|
|
505
524
|
};
|
|
506
525
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
507
526
|
}
|
|
508
|
-
function
|
|
527
|
+
function Oe(e, t) {
|
|
509
528
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
510
529
|
if (!r)
|
|
511
530
|
return e;
|
|
@@ -525,22 +544,22 @@ function Ne(e, t) {
|
|
|
525
544
|
}
|
|
526
545
|
return o;
|
|
527
546
|
}
|
|
528
|
-
function
|
|
529
|
-
if (arguments.length === 2)
|
|
547
|
+
function D(e, t, r) {
|
|
548
|
+
if (r || arguments.length === 2)
|
|
530
549
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
531
550
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
532
551
|
return e.concat(o || t);
|
|
533
552
|
}
|
|
534
|
-
function
|
|
553
|
+
function B(e) {
|
|
535
554
|
return typeof e == "function";
|
|
536
555
|
}
|
|
537
|
-
function
|
|
556
|
+
function Tt(e) {
|
|
538
557
|
var t = function(n) {
|
|
539
558
|
Error.call(n), n.stack = new Error().stack;
|
|
540
559
|
}, r = e(t);
|
|
541
560
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
542
561
|
}
|
|
543
|
-
var
|
|
562
|
+
var _e = Tt(function(e) {
|
|
544
563
|
return function(r) {
|
|
545
564
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
546
565
|
` + r.map(function(n, i) {
|
|
@@ -549,13 +568,13 @@ var xe = Ct(function(e) {
|
|
|
549
568
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
550
569
|
};
|
|
551
570
|
});
|
|
552
|
-
function
|
|
571
|
+
function Le(e, t) {
|
|
553
572
|
if (e) {
|
|
554
573
|
var r = e.indexOf(t);
|
|
555
574
|
0 <= r && e.splice(r, 1);
|
|
556
575
|
}
|
|
557
576
|
}
|
|
558
|
-
var
|
|
577
|
+
var de = function() {
|
|
559
578
|
function e(t) {
|
|
560
579
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
561
580
|
}
|
|
@@ -567,12 +586,12 @@ var me = function() {
|
|
|
567
586
|
if (s)
|
|
568
587
|
if (this._parentage = null, Array.isArray(s))
|
|
569
588
|
try {
|
|
570
|
-
for (var a =
|
|
589
|
+
for (var a = Ce(s), h = a.next(); !h.done; h = a.next()) {
|
|
571
590
|
var u = h.value;
|
|
572
591
|
u.remove(this);
|
|
573
592
|
}
|
|
574
|
-
} catch (
|
|
575
|
-
t = { error:
|
|
593
|
+
} catch (v) {
|
|
594
|
+
t = { error: v };
|
|
576
595
|
} finally {
|
|
577
596
|
try {
|
|
578
597
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -584,29 +603,29 @@ var me = function() {
|
|
|
584
603
|
else
|
|
585
604
|
s.remove(this);
|
|
586
605
|
var l = this.initialTeardown;
|
|
587
|
-
if (
|
|
606
|
+
if (B(l))
|
|
588
607
|
try {
|
|
589
608
|
l();
|
|
590
|
-
} catch (
|
|
591
|
-
o =
|
|
609
|
+
} catch (v) {
|
|
610
|
+
o = v instanceof _e ? v.errors : [v];
|
|
592
611
|
}
|
|
593
612
|
var f = this._finalizers;
|
|
594
613
|
if (f) {
|
|
595
614
|
this._finalizers = null;
|
|
596
615
|
try {
|
|
597
|
-
for (var c =
|
|
598
|
-
var
|
|
616
|
+
for (var c = Ce(f), b = c.next(); !b.done; b = c.next()) {
|
|
617
|
+
var g = b.value;
|
|
599
618
|
try {
|
|
600
|
-
|
|
601
|
-
} catch (
|
|
602
|
-
o = o ?? [],
|
|
619
|
+
qe(g);
|
|
620
|
+
} catch (v) {
|
|
621
|
+
o = o ?? [], v instanceof _e ? o = D(D([], Oe(o)), Oe(v.errors)) : o.push(v);
|
|
603
622
|
}
|
|
604
623
|
}
|
|
605
|
-
} catch (
|
|
606
|
-
n = { error:
|
|
624
|
+
} catch (v) {
|
|
625
|
+
n = { error: v };
|
|
607
626
|
} finally {
|
|
608
627
|
try {
|
|
609
|
-
|
|
628
|
+
b && !b.done && (i = c.return) && i.call(c);
|
|
610
629
|
} finally {
|
|
611
630
|
if (n)
|
|
612
631
|
throw n.error;
|
|
@@ -614,13 +633,13 @@ var me = function() {
|
|
|
614
633
|
}
|
|
615
634
|
}
|
|
616
635
|
if (o)
|
|
617
|
-
throw new
|
|
636
|
+
throw new _e(o);
|
|
618
637
|
}
|
|
619
638
|
}, e.prototype.add = function(t) {
|
|
620
639
|
var r;
|
|
621
640
|
if (t && t !== this)
|
|
622
641
|
if (this.closed)
|
|
623
|
-
|
|
642
|
+
qe(t);
|
|
624
643
|
else {
|
|
625
644
|
if (t instanceof e) {
|
|
626
645
|
if (t.closed || t._hasParent(this))
|
|
@@ -637,52 +656,52 @@ var me = function() {
|
|
|
637
656
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
638
657
|
}, e.prototype._removeParent = function(t) {
|
|
639
658
|
var r = this._parentage;
|
|
640
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
659
|
+
r === t ? this._parentage = null : Array.isArray(r) && Le(r, t);
|
|
641
660
|
}, e.prototype.remove = function(t) {
|
|
642
661
|
var r = this._finalizers;
|
|
643
|
-
r &&
|
|
662
|
+
r && Le(r, t), t instanceof e && t._removeParent(this);
|
|
644
663
|
}, e.EMPTY = function() {
|
|
645
664
|
var t = new e();
|
|
646
665
|
return t.closed = !0, t;
|
|
647
666
|
}(), e;
|
|
648
|
-
}(),
|
|
649
|
-
function
|
|
650
|
-
return e instanceof
|
|
667
|
+
}(), Bt = de.EMPTY;
|
|
668
|
+
function At(e) {
|
|
669
|
+
return e instanceof de || e && "closed" in e && B(e.remove) && B(e.add) && B(e.unsubscribe);
|
|
651
670
|
}
|
|
652
|
-
function
|
|
653
|
-
|
|
671
|
+
function qe(e) {
|
|
672
|
+
B(e) ? e() : e.unsubscribe();
|
|
654
673
|
}
|
|
655
|
-
var
|
|
674
|
+
var Ar = {
|
|
656
675
|
Promise: void 0
|
|
657
|
-
},
|
|
676
|
+
}, Pr = {
|
|
658
677
|
setTimeout: function(e, t) {
|
|
659
678
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
660
679
|
r[n - 2] = arguments[n];
|
|
661
|
-
return setTimeout.apply(void 0,
|
|
680
|
+
return setTimeout.apply(void 0, D([e, t], Oe(r)));
|
|
662
681
|
},
|
|
663
682
|
clearTimeout: function(e) {
|
|
664
683
|
return clearTimeout(e);
|
|
665
684
|
},
|
|
666
685
|
delegate: void 0
|
|
667
686
|
};
|
|
668
|
-
function
|
|
669
|
-
|
|
687
|
+
function Cr(e) {
|
|
688
|
+
Pr.setTimeout(function() {
|
|
670
689
|
throw e;
|
|
671
690
|
});
|
|
672
691
|
}
|
|
673
|
-
function
|
|
692
|
+
function Ye() {
|
|
674
693
|
}
|
|
675
694
|
function ue(e) {
|
|
676
695
|
e();
|
|
677
696
|
}
|
|
678
|
-
var
|
|
679
|
-
|
|
697
|
+
var Pt = function(e) {
|
|
698
|
+
A(t, e);
|
|
680
699
|
function t(r) {
|
|
681
700
|
var n = e.call(this) || this;
|
|
682
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
701
|
+
return n.isStopped = !1, r ? (n.destination = r, At(r) && r.add(n)) : n.destination = Ir, n;
|
|
683
702
|
}
|
|
684
703
|
return t.create = function(r, n, i) {
|
|
685
|
-
return new
|
|
704
|
+
return new Ie(r, n, i);
|
|
686
705
|
}, t.prototype.next = function(r) {
|
|
687
706
|
this.isStopped || this._next(r);
|
|
688
707
|
}, t.prototype.error = function(r) {
|
|
@@ -706,7 +725,7 @@ var Nt = function(e) {
|
|
|
706
725
|
this.unsubscribe();
|
|
707
726
|
}
|
|
708
727
|
}, t;
|
|
709
|
-
}(
|
|
728
|
+
}(de), Or = function() {
|
|
710
729
|
function e(t) {
|
|
711
730
|
this.partialObserver = t;
|
|
712
731
|
}
|
|
@@ -737,43 +756,43 @@ var Nt = function(e) {
|
|
|
737
756
|
oe(r);
|
|
738
757
|
}
|
|
739
758
|
}, e;
|
|
740
|
-
}(),
|
|
741
|
-
|
|
759
|
+
}(), Ie = function(e) {
|
|
760
|
+
A(t, e);
|
|
742
761
|
function t(r, n, i) {
|
|
743
762
|
var o = e.call(this) || this, s;
|
|
744
|
-
return
|
|
763
|
+
return B(r) || !r ? s = {
|
|
745
764
|
next: r ?? void 0,
|
|
746
765
|
error: n ?? void 0,
|
|
747
766
|
complete: i ?? void 0
|
|
748
|
-
} : s = r, o.destination = new
|
|
767
|
+
} : s = r, o.destination = new Or(s), o;
|
|
749
768
|
}
|
|
750
769
|
return t;
|
|
751
|
-
}(
|
|
770
|
+
}(Pt);
|
|
752
771
|
function oe(e) {
|
|
753
|
-
|
|
772
|
+
Cr(e);
|
|
754
773
|
}
|
|
755
|
-
function
|
|
774
|
+
function Lr(e) {
|
|
756
775
|
throw e;
|
|
757
776
|
}
|
|
758
|
-
var
|
|
777
|
+
var Ir = {
|
|
759
778
|
closed: !0,
|
|
760
|
-
next:
|
|
761
|
-
error:
|
|
762
|
-
complete:
|
|
763
|
-
},
|
|
779
|
+
next: Ye,
|
|
780
|
+
error: Lr,
|
|
781
|
+
complete: Ye
|
|
782
|
+
}, Nr = function() {
|
|
764
783
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
765
784
|
}();
|
|
766
|
-
function
|
|
785
|
+
function Mr(e) {
|
|
767
786
|
return e;
|
|
768
787
|
}
|
|
769
|
-
function
|
|
770
|
-
return e.length === 0 ?
|
|
788
|
+
function $r(e) {
|
|
789
|
+
return e.length === 0 ? Mr : e.length === 1 ? e[0] : function(r) {
|
|
771
790
|
return e.reduce(function(n, i) {
|
|
772
791
|
return i(n);
|
|
773
792
|
}, r);
|
|
774
793
|
};
|
|
775
794
|
}
|
|
776
|
-
var
|
|
795
|
+
var Ke = function() {
|
|
777
796
|
function e(t) {
|
|
778
797
|
t && (this._subscribe = t);
|
|
779
798
|
}
|
|
@@ -781,7 +800,7 @@ var it = function() {
|
|
|
781
800
|
var r = new e();
|
|
782
801
|
return r.source = this, r.operator = t, r;
|
|
783
802
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
784
|
-
var i = this, o =
|
|
803
|
+
var i = this, o = Ur(t) ? t : new Ie(t, r, n);
|
|
785
804
|
return ue(function() {
|
|
786
805
|
var s = i, a = s.operator, h = s.source;
|
|
787
806
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -794,8 +813,8 @@ var it = function() {
|
|
|
794
813
|
}
|
|
795
814
|
}, e.prototype.forEach = function(t, r) {
|
|
796
815
|
var n = this;
|
|
797
|
-
return r =
|
|
798
|
-
var s = new
|
|
816
|
+
return r = et(r), new r(function(i, o) {
|
|
817
|
+
var s = new Ie({
|
|
799
818
|
next: function(a) {
|
|
800
819
|
try {
|
|
801
820
|
t(a);
|
|
@@ -811,15 +830,15 @@ var it = function() {
|
|
|
811
830
|
}, e.prototype._subscribe = function(t) {
|
|
812
831
|
var r;
|
|
813
832
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
814
|
-
}, e.prototype[
|
|
833
|
+
}, e.prototype[Nr] = function() {
|
|
815
834
|
return this;
|
|
816
835
|
}, e.prototype.pipe = function() {
|
|
817
836
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
818
837
|
t[r] = arguments[r];
|
|
819
|
-
return
|
|
838
|
+
return $r(t)(this);
|
|
820
839
|
}, e.prototype.toPromise = function(t) {
|
|
821
840
|
var r = this;
|
|
822
|
-
return t =
|
|
841
|
+
return t = et(t), new t(function(n, i) {
|
|
823
842
|
var o;
|
|
824
843
|
r.subscribe(function(s) {
|
|
825
844
|
return o = s;
|
|
@@ -833,32 +852,32 @@ var it = function() {
|
|
|
833
852
|
return new e(t);
|
|
834
853
|
}, e;
|
|
835
854
|
}();
|
|
836
|
-
function
|
|
855
|
+
function et(e) {
|
|
837
856
|
var t;
|
|
838
|
-
return (t = e ??
|
|
857
|
+
return (t = e ?? Ar.Promise) !== null && t !== void 0 ? t : Promise;
|
|
839
858
|
}
|
|
840
|
-
function
|
|
841
|
-
return e &&
|
|
859
|
+
function Rr(e) {
|
|
860
|
+
return e && B(e.next) && B(e.error) && B(e.complete);
|
|
842
861
|
}
|
|
843
|
-
function
|
|
844
|
-
return e && e instanceof
|
|
862
|
+
function Ur(e) {
|
|
863
|
+
return e && e instanceof Pt || Rr(e) && At(e);
|
|
845
864
|
}
|
|
846
|
-
var
|
|
865
|
+
var Dr = Tt(function(e) {
|
|
847
866
|
return function() {
|
|
848
867
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
849
868
|
};
|
|
850
|
-
}),
|
|
851
|
-
|
|
869
|
+
}), Ct = function(e) {
|
|
870
|
+
A(t, e);
|
|
852
871
|
function t() {
|
|
853
872
|
var r = e.call(this) || this;
|
|
854
873
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
855
874
|
}
|
|
856
875
|
return t.prototype.lift = function(r) {
|
|
857
|
-
var n = new
|
|
876
|
+
var n = new tt(this, this);
|
|
858
877
|
return n.operator = r, n;
|
|
859
878
|
}, t.prototype._throwIfClosed = function() {
|
|
860
879
|
if (this.closed)
|
|
861
|
-
throw new
|
|
880
|
+
throw new Dr();
|
|
862
881
|
}, t.prototype.next = function(r) {
|
|
863
882
|
var n = this;
|
|
864
883
|
ue(function() {
|
|
@@ -866,7 +885,7 @@ var Vr = Ct(function(e) {
|
|
|
866
885
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
867
886
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
868
887
|
try {
|
|
869
|
-
for (var s =
|
|
888
|
+
for (var s = Ce(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
870
889
|
var h = a.value;
|
|
871
890
|
h.next(r);
|
|
872
891
|
}
|
|
@@ -915,20 +934,20 @@ var Vr = Ct(function(e) {
|
|
|
915
934
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
916
935
|
}, t.prototype._innerSubscribe = function(r) {
|
|
917
936
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
918
|
-
return o || s ?
|
|
919
|
-
n.currentObservers = null,
|
|
937
|
+
return o || s ? Bt : (this.currentObservers = null, a.push(r), new de(function() {
|
|
938
|
+
n.currentObservers = null, Le(a, r);
|
|
920
939
|
}));
|
|
921
940
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
922
941
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
923
942
|
i ? r.error(o) : s && r.complete();
|
|
924
943
|
}, t.prototype.asObservable = function() {
|
|
925
|
-
var r = new
|
|
944
|
+
var r = new Ke();
|
|
926
945
|
return r.source = this, r;
|
|
927
946
|
}, t.create = function(r, n) {
|
|
928
|
-
return new
|
|
947
|
+
return new tt(r, n);
|
|
929
948
|
}, t;
|
|
930
|
-
}(
|
|
931
|
-
|
|
949
|
+
}(Ke), tt = function(e) {
|
|
950
|
+
A(t, e);
|
|
932
951
|
function t(r, n) {
|
|
933
952
|
var i = e.call(this) || this;
|
|
934
953
|
return i.destination = r, i.source = n, i;
|
|
@@ -944,17 +963,17 @@ var Vr = Ct(function(e) {
|
|
|
944
963
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
945
964
|
}, t.prototype._subscribe = function(r) {
|
|
946
965
|
var n, i;
|
|
947
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
966
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Bt;
|
|
948
967
|
}, t;
|
|
949
|
-
}(
|
|
968
|
+
}(Ct), Ot = {
|
|
950
969
|
now: function() {
|
|
951
|
-
return (
|
|
970
|
+
return (Ot.delegate || Date).now();
|
|
952
971
|
},
|
|
953
972
|
delegate: void 0
|
|
954
|
-
},
|
|
955
|
-
|
|
973
|
+
}, Gr = function(e) {
|
|
974
|
+
A(t, e);
|
|
956
975
|
function t(r, n, i) {
|
|
957
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
976
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ot);
|
|
958
977
|
var o = e.call(this) || this;
|
|
959
978
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
960
979
|
}
|
|
@@ -974,24 +993,24 @@ var Vr = Ct(function(e) {
|
|
|
974
993
|
u && o.splice(0, u + 1);
|
|
975
994
|
}
|
|
976
995
|
}, t;
|
|
977
|
-
}(
|
|
978
|
-
const
|
|
979
|
-
if (
|
|
980
|
-
const r = new
|
|
981
|
-
|
|
996
|
+
}(Ct);
|
|
997
|
+
const rt = [], nt = {}, Fr = (e, t = 0) => {
|
|
998
|
+
if (rt.indexOf(e) == -1) {
|
|
999
|
+
const r = new Gr(t);
|
|
1000
|
+
nt[e] = r, rt.push(e);
|
|
982
1001
|
}
|
|
983
|
-
return
|
|
1002
|
+
return nt[e];
|
|
984
1003
|
}, M = [];
|
|
985
|
-
function
|
|
1004
|
+
function jr(e, t) {
|
|
986
1005
|
return {
|
|
987
|
-
subscribe:
|
|
1006
|
+
subscribe: me(e, t).subscribe
|
|
988
1007
|
};
|
|
989
1008
|
}
|
|
990
|
-
function
|
|
1009
|
+
function me(e, t = S) {
|
|
991
1010
|
let r;
|
|
992
1011
|
const n = /* @__PURE__ */ new Set();
|
|
993
1012
|
function i(a) {
|
|
994
|
-
if (
|
|
1013
|
+
if (xt(e, a) && (e = a, r)) {
|
|
995
1014
|
const h = !M.length;
|
|
996
1015
|
for (const u of n)
|
|
997
1016
|
u[1](), M.push(u, e);
|
|
@@ -1013,12 +1032,12 @@ function be(e, t = S) {
|
|
|
1013
1032
|
}
|
|
1014
1033
|
return { set: i, update: o, subscribe: s };
|
|
1015
1034
|
}
|
|
1016
|
-
function
|
|
1035
|
+
function X(e, t, r) {
|
|
1017
1036
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1018
1037
|
if (!i.every(Boolean))
|
|
1019
1038
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1020
1039
|
const o = t.length < 2;
|
|
1021
|
-
return
|
|
1040
|
+
return jr(r, (s, a) => {
|
|
1022
1041
|
let h = !1;
|
|
1023
1042
|
const u = [];
|
|
1024
1043
|
let l = 0, f = S;
|
|
@@ -1026,171 +1045,129 @@ function k(e, t, r) {
|
|
|
1026
1045
|
if (l)
|
|
1027
1046
|
return;
|
|
1028
1047
|
f();
|
|
1029
|
-
const
|
|
1030
|
-
o ? s(
|
|
1031
|
-
},
|
|
1032
|
-
(
|
|
1033
|
-
|
|
1034
|
-
(
|
|
1035
|
-
u[
|
|
1048
|
+
const g = t(n ? u[0] : u, s, a);
|
|
1049
|
+
o ? s(g) : f = je(g) ? g : S;
|
|
1050
|
+
}, b = i.map(
|
|
1051
|
+
(g, v) => rr(
|
|
1052
|
+
g,
|
|
1053
|
+
(H) => {
|
|
1054
|
+
u[v] = H, l &= ~(1 << v), h && c();
|
|
1036
1055
|
},
|
|
1037
1056
|
() => {
|
|
1038
|
-
l |= 1 <<
|
|
1057
|
+
l |= 1 << v;
|
|
1039
1058
|
}
|
|
1040
1059
|
)
|
|
1041
1060
|
);
|
|
1042
1061
|
return h = !0, c(), function() {
|
|
1043
|
-
|
|
1062
|
+
K(b), f(), h = !1;
|
|
1044
1063
|
};
|
|
1045
1064
|
});
|
|
1046
1065
|
}
|
|
1047
|
-
function
|
|
1066
|
+
function Vr(e) {
|
|
1048
1067
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1049
1068
|
}
|
|
1050
|
-
var
|
|
1051
|
-
return
|
|
1069
|
+
var kr = function(t) {
|
|
1070
|
+
return Xr(t) && !Wr(t);
|
|
1052
1071
|
};
|
|
1053
|
-
function
|
|
1072
|
+
function Xr(e) {
|
|
1054
1073
|
return !!e && typeof e == "object";
|
|
1055
1074
|
}
|
|
1056
|
-
function
|
|
1075
|
+
function Wr(e) {
|
|
1057
1076
|
var t = Object.prototype.toString.call(e);
|
|
1058
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1077
|
+
return t === "[object RegExp]" || t === "[object Date]" || Qr(e);
|
|
1059
1078
|
}
|
|
1060
|
-
var
|
|
1061
|
-
function
|
|
1062
|
-
return e.$$typeof ===
|
|
1079
|
+
var zr = typeof Symbol == "function" && Symbol.for, Zr = zr ? Symbol.for("react.element") : 60103;
|
|
1080
|
+
function Qr(e) {
|
|
1081
|
+
return e.$$typeof === Zr;
|
|
1063
1082
|
}
|
|
1064
|
-
function
|
|
1083
|
+
function Jr(e) {
|
|
1065
1084
|
return Array.isArray(e) ? [] : {};
|
|
1066
1085
|
}
|
|
1067
|
-
function
|
|
1068
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1086
|
+
function q(e, t) {
|
|
1087
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? G(Jr(e), e, t) : e;
|
|
1069
1088
|
}
|
|
1070
|
-
function
|
|
1089
|
+
function qr(e, t, r) {
|
|
1071
1090
|
return e.concat(t).map(function(n) {
|
|
1072
|
-
return
|
|
1091
|
+
return q(n, r);
|
|
1073
1092
|
});
|
|
1074
1093
|
}
|
|
1075
|
-
function
|
|
1094
|
+
function Yr(e, t) {
|
|
1076
1095
|
if (!t.customMerge)
|
|
1077
|
-
return
|
|
1096
|
+
return G;
|
|
1078
1097
|
var r = t.customMerge(e);
|
|
1079
|
-
return typeof r == "function" ? r :
|
|
1098
|
+
return typeof r == "function" ? r : G;
|
|
1080
1099
|
}
|
|
1081
|
-
function
|
|
1100
|
+
function Kr(e) {
|
|
1082
1101
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1083
1102
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1084
1103
|
}) : [];
|
|
1085
1104
|
}
|
|
1086
|
-
function
|
|
1087
|
-
return Object.keys(e).concat(
|
|
1105
|
+
function it(e) {
|
|
1106
|
+
return Object.keys(e).concat(Kr(e));
|
|
1088
1107
|
}
|
|
1089
|
-
function
|
|
1108
|
+
function Lt(e, t) {
|
|
1090
1109
|
try {
|
|
1091
1110
|
return t in e;
|
|
1092
1111
|
} catch {
|
|
1093
1112
|
return !1;
|
|
1094
1113
|
}
|
|
1095
1114
|
}
|
|
1096
|
-
function
|
|
1097
|
-
return
|
|
1115
|
+
function en(e, t) {
|
|
1116
|
+
return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1098
1117
|
}
|
|
1099
|
-
function
|
|
1118
|
+
function tn(e, t, r) {
|
|
1100
1119
|
var n = {};
|
|
1101
|
-
return r.isMergeableObject(e) &&
|
|
1102
|
-
n[i] =
|
|
1103
|
-
}),
|
|
1104
|
-
|
|
1120
|
+
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
1121
|
+
n[i] = q(e[i], r);
|
|
1122
|
+
}), it(t).forEach(function(i) {
|
|
1123
|
+
en(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Yr(i, r)(e[i], t[i], r) : n[i] = q(t[i], r));
|
|
1105
1124
|
}), n;
|
|
1106
1125
|
}
|
|
1107
|
-
function
|
|
1108
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1126
|
+
function G(e, t, r) {
|
|
1127
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || qr, r.isMergeableObject = r.isMergeableObject || kr, r.cloneUnlessOtherwiseSpecified = q;
|
|
1109
1128
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1110
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1129
|
+
return o ? n ? r.arrayMerge(e, t, r) : tn(e, t, r) : q(t, r);
|
|
1111
1130
|
}
|
|
1112
|
-
|
|
1131
|
+
G.all = function(t, r) {
|
|
1113
1132
|
if (!Array.isArray(t))
|
|
1114
1133
|
throw new Error("first argument should be an array");
|
|
1115
1134
|
return t.reduce(function(n, i) {
|
|
1116
|
-
return
|
|
1135
|
+
return G(n, i, r);
|
|
1117
1136
|
}, {});
|
|
1118
1137
|
};
|
|
1119
|
-
var
|
|
1120
|
-
const
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
r.__proto__ = n;
|
|
1124
|
-
} || function(r, n) {
|
|
1125
|
-
for (var i in n)
|
|
1126
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1127
|
-
}, Ue(e, t);
|
|
1128
|
-
};
|
|
1129
|
-
function ve(e, t) {
|
|
1130
|
-
if (typeof t != "function" && t !== null)
|
|
1131
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1132
|
-
Ue(e, t);
|
|
1133
|
-
function r() {
|
|
1134
|
-
this.constructor = e;
|
|
1135
|
-
}
|
|
1136
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1137
|
-
}
|
|
1138
|
-
var T = function() {
|
|
1139
|
-
return T = Object.assign || function(t) {
|
|
1140
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1141
|
-
r = arguments[n];
|
|
1142
|
-
for (var o in r)
|
|
1143
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1144
|
-
}
|
|
1145
|
-
return t;
|
|
1146
|
-
}, T.apply(this, arguments);
|
|
1147
|
-
};
|
|
1148
|
-
function ln(e, t) {
|
|
1149
|
-
var r = {};
|
|
1150
|
-
for (var n in e)
|
|
1151
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1152
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1153
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1154
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1155
|
-
return r;
|
|
1156
|
-
}
|
|
1157
|
-
function Se(e, t, r) {
|
|
1158
|
-
if (r || arguments.length === 2)
|
|
1159
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1160
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1161
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1162
|
-
}
|
|
1163
|
-
function we(e, t) {
|
|
1164
|
-
var r = t && t.cache ? t.cache : vn, n = t && t.serializer ? t.serializer : mn, i = t && t.strategy ? t.strategy : pn;
|
|
1138
|
+
var rn = G, nn = rn;
|
|
1139
|
+
const on = /* @__PURE__ */ Vr(nn);
|
|
1140
|
+
function Ee(e, t) {
|
|
1141
|
+
var r = t && t.cache ? t.cache : cn, n = t && t.serializer ? t.serializer : ln, i = t && t.strategy ? t.strategy : un;
|
|
1165
1142
|
return i(e, {
|
|
1166
1143
|
cache: r,
|
|
1167
1144
|
serializer: n
|
|
1168
1145
|
});
|
|
1169
1146
|
}
|
|
1170
|
-
function
|
|
1147
|
+
function sn(e) {
|
|
1171
1148
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1172
1149
|
}
|
|
1173
|
-
function
|
|
1174
|
-
var i =
|
|
1150
|
+
function an(e, t, r, n) {
|
|
1151
|
+
var i = sn(n) ? n : r(n), o = t.get(i);
|
|
1175
1152
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1176
1153
|
}
|
|
1177
|
-
function
|
|
1154
|
+
function It(e, t, r) {
|
|
1178
1155
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1179
1156
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1180
1157
|
}
|
|
1181
|
-
function
|
|
1158
|
+
function Nt(e, t, r, n, i) {
|
|
1182
1159
|
return r.bind(t, e, n, i);
|
|
1183
1160
|
}
|
|
1184
|
-
function
|
|
1185
|
-
var r = e.length === 1 ?
|
|
1186
|
-
return
|
|
1161
|
+
function un(e, t) {
|
|
1162
|
+
var r = e.length === 1 ? an : It;
|
|
1163
|
+
return Nt(e, this, r, t.cache.create(), t.serializer);
|
|
1187
1164
|
}
|
|
1188
|
-
function
|
|
1189
|
-
return
|
|
1165
|
+
function hn(e, t) {
|
|
1166
|
+
return Nt(e, this, It, t.cache.create(), t.serializer);
|
|
1190
1167
|
}
|
|
1191
|
-
var
|
|
1168
|
+
var ln = function() {
|
|
1192
1169
|
return JSON.stringify(arguments);
|
|
1193
|
-
},
|
|
1170
|
+
}, fn = (
|
|
1194
1171
|
/** @class */
|
|
1195
1172
|
function() {
|
|
1196
1173
|
function e() {
|
|
@@ -1202,71 +1179,61 @@ var mn = function() {
|
|
|
1202
1179
|
this.cache[t] = r;
|
|
1203
1180
|
}, e;
|
|
1204
1181
|
}()
|
|
1205
|
-
),
|
|
1182
|
+
), cn = {
|
|
1206
1183
|
create: function() {
|
|
1207
|
-
return new
|
|
1184
|
+
return new fn();
|
|
1208
1185
|
}
|
|
1209
|
-
},
|
|
1210
|
-
variadic:
|
|
1211
|
-
},
|
|
1212
|
-
return ce = Object.assign || function(t) {
|
|
1213
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1214
|
-
r = arguments[n];
|
|
1215
|
-
for (var o in r)
|
|
1216
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1217
|
-
}
|
|
1218
|
-
return t;
|
|
1219
|
-
}, ce.apply(this, arguments);
|
|
1220
|
-
};
|
|
1221
|
-
var p;
|
|
1186
|
+
}, xe = {
|
|
1187
|
+
variadic: hn
|
|
1188
|
+
}, p;
|
|
1222
1189
|
(function(e) {
|
|
1223
1190
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
1224
1191
|
})(p || (p = {}));
|
|
1225
|
-
var
|
|
1192
|
+
var y;
|
|
1226
1193
|
(function(e) {
|
|
1227
1194
|
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";
|
|
1228
|
-
})(
|
|
1229
|
-
var
|
|
1195
|
+
})(y || (y = {}));
|
|
1196
|
+
var F;
|
|
1230
1197
|
(function(e) {
|
|
1231
1198
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1232
|
-
})(
|
|
1233
|
-
function
|
|
1234
|
-
return e.type ===
|
|
1199
|
+
})(F || (F = {}));
|
|
1200
|
+
function ot(e) {
|
|
1201
|
+
return e.type === y.literal;
|
|
1235
1202
|
}
|
|
1236
|
-
function
|
|
1237
|
-
return e.type ===
|
|
1203
|
+
function pn(e) {
|
|
1204
|
+
return e.type === y.argument;
|
|
1238
1205
|
}
|
|
1239
|
-
function
|
|
1240
|
-
return e.type ===
|
|
1206
|
+
function Mt(e) {
|
|
1207
|
+
return e.type === y.number;
|
|
1241
1208
|
}
|
|
1242
|
-
function
|
|
1243
|
-
return e.type ===
|
|
1209
|
+
function $t(e) {
|
|
1210
|
+
return e.type === y.date;
|
|
1244
1211
|
}
|
|
1245
|
-
function
|
|
1246
|
-
return e.type ===
|
|
1212
|
+
function Rt(e) {
|
|
1213
|
+
return e.type === y.time;
|
|
1247
1214
|
}
|
|
1248
|
-
function
|
|
1249
|
-
return e.type ===
|
|
1215
|
+
function Ut(e) {
|
|
1216
|
+
return e.type === y.select;
|
|
1250
1217
|
}
|
|
1251
|
-
function
|
|
1252
|
-
return e.type ===
|
|
1218
|
+
function Dt(e) {
|
|
1219
|
+
return e.type === y.plural;
|
|
1253
1220
|
}
|
|
1254
|
-
function
|
|
1255
|
-
return e.type ===
|
|
1221
|
+
function dn(e) {
|
|
1222
|
+
return e.type === y.pound;
|
|
1256
1223
|
}
|
|
1257
|
-
function
|
|
1258
|
-
return e.type ===
|
|
1224
|
+
function Gt(e) {
|
|
1225
|
+
return e.type === y.tag;
|
|
1259
1226
|
}
|
|
1260
|
-
function
|
|
1261
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1227
|
+
function Ft(e) {
|
|
1228
|
+
return !!(e && typeof e == "object" && e.type === F.number);
|
|
1262
1229
|
}
|
|
1263
|
-
function
|
|
1264
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1230
|
+
function Ne(e) {
|
|
1231
|
+
return !!(e && typeof e == "object" && e.type === F.dateTime);
|
|
1265
1232
|
}
|
|
1266
|
-
var
|
|
1267
|
-
function
|
|
1233
|
+
var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, mn = /(?:[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;
|
|
1234
|
+
function bn(e) {
|
|
1268
1235
|
var t = {};
|
|
1269
|
-
return e.replace(
|
|
1236
|
+
return e.replace(mn, function(r) {
|
|
1270
1237
|
var n = r.length;
|
|
1271
1238
|
switch (r[0]) {
|
|
1272
1239
|
case "G":
|
|
@@ -1355,21 +1322,11 @@ function En(e) {
|
|
|
1355
1322
|
return "";
|
|
1356
1323
|
}), t;
|
|
1357
1324
|
}
|
|
1358
|
-
var
|
|
1359
|
-
|
|
1360
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1361
|
-
r = arguments[n];
|
|
1362
|
-
for (var o in r)
|
|
1363
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1364
|
-
}
|
|
1365
|
-
return t;
|
|
1366
|
-
}, y.apply(this, arguments);
|
|
1367
|
-
};
|
|
1368
|
-
var xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1369
|
-
function Sn(e) {
|
|
1325
|
+
var vn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1326
|
+
function gn(e) {
|
|
1370
1327
|
if (e.length === 0)
|
|
1371
1328
|
throw new Error("Number skeleton cannot be empty");
|
|
1372
|
-
for (var t = e.split(
|
|
1329
|
+
for (var t = e.split(vn).filter(function(c) {
|
|
1373
1330
|
return c.length > 0;
|
|
1374
1331
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1375
1332
|
var o = i[n], s = o.split("/");
|
|
@@ -1384,17 +1341,17 @@ function Sn(e) {
|
|
|
1384
1341
|
}
|
|
1385
1342
|
return r;
|
|
1386
1343
|
}
|
|
1387
|
-
function
|
|
1344
|
+
function yn(e) {
|
|
1388
1345
|
return e.replace(/^(.*?)-/, "");
|
|
1389
1346
|
}
|
|
1390
|
-
var
|
|
1391
|
-
function
|
|
1347
|
+
var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Vt = /^(@+)?(\+|#+)?[rs]?$/g, _n = /(\*)(0+)|(#+)(0+)|(0+)/g, kt = /^(0+)$/;
|
|
1348
|
+
function at(e) {
|
|
1392
1349
|
var t = {};
|
|
1393
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1350
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Vt, function(r, n, i) {
|
|
1394
1351
|
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)), "";
|
|
1395
1352
|
}), t;
|
|
1396
1353
|
}
|
|
1397
|
-
function
|
|
1354
|
+
function Xt(e) {
|
|
1398
1355
|
switch (e) {
|
|
1399
1356
|
case "sign-auto":
|
|
1400
1357
|
return {
|
|
@@ -1434,7 +1391,7 @@ function Jt(e) {
|
|
|
1434
1391
|
};
|
|
1435
1392
|
}
|
|
1436
1393
|
}
|
|
1437
|
-
function
|
|
1394
|
+
function En(e) {
|
|
1438
1395
|
var t;
|
|
1439
1396
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1440
1397
|
notation: "engineering"
|
|
@@ -1442,17 +1399,17 @@ function Tn(e) {
|
|
|
1442
1399
|
notation: "scientific"
|
|
1443
1400
|
}, e = e.slice(1)), t) {
|
|
1444
1401
|
var r = e.slice(0, 2);
|
|
1445
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1402
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !kt.test(e))
|
|
1446
1403
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1447
1404
|
t.minimumIntegerDigits = e.length;
|
|
1448
1405
|
}
|
|
1449
1406
|
return t;
|
|
1450
1407
|
}
|
|
1451
|
-
function
|
|
1452
|
-
var t = {}, r =
|
|
1408
|
+
function ut(e) {
|
|
1409
|
+
var t = {}, r = Xt(e);
|
|
1453
1410
|
return r || t;
|
|
1454
1411
|
}
|
|
1455
|
-
function
|
|
1412
|
+
function xn(e) {
|
|
1456
1413
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1457
1414
|
var i = n[r];
|
|
1458
1415
|
switch (i.stem) {
|
|
@@ -1476,7 +1433,7 @@ function Bn(e) {
|
|
|
1476
1433
|
continue;
|
|
1477
1434
|
case "measure-unit":
|
|
1478
1435
|
case "unit":
|
|
1479
|
-
t.style = "unit", t.unit =
|
|
1436
|
+
t.style = "unit", t.unit = yn(i.options[0]);
|
|
1480
1437
|
continue;
|
|
1481
1438
|
case "compact-short":
|
|
1482
1439
|
case "K":
|
|
@@ -1487,13 +1444,13 @@ function Bn(e) {
|
|
|
1487
1444
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1488
1445
|
continue;
|
|
1489
1446
|
case "scientific":
|
|
1490
|
-
t =
|
|
1491
|
-
return
|
|
1447
|
+
t = m(m(m({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1448
|
+
return m(m({}, h), ut(u));
|
|
1492
1449
|
}, {}));
|
|
1493
1450
|
continue;
|
|
1494
1451
|
case "engineering":
|
|
1495
|
-
t =
|
|
1496
|
-
return
|
|
1452
|
+
t = m(m(m({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1453
|
+
return m(m({}, h), ut(u));
|
|
1497
1454
|
}, {}));
|
|
1498
1455
|
continue;
|
|
1499
1456
|
case "notation-simple":
|
|
@@ -1538,41 +1495,41 @@ function Bn(e) {
|
|
|
1538
1495
|
case "integer-width":
|
|
1539
1496
|
if (i.options.length > 1)
|
|
1540
1497
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1541
|
-
i.options[0].replace(
|
|
1498
|
+
i.options[0].replace(_n, function(h, u, l, f, c, b) {
|
|
1542
1499
|
if (u)
|
|
1543
1500
|
t.minimumIntegerDigits = l.length;
|
|
1544
1501
|
else {
|
|
1545
1502
|
if (f && c)
|
|
1546
1503
|
throw new Error("We currently do not support maximum integer digits");
|
|
1547
|
-
if (
|
|
1504
|
+
if (b)
|
|
1548
1505
|
throw new Error("We currently do not support exact integer digits");
|
|
1549
1506
|
}
|
|
1550
1507
|
return "";
|
|
1551
1508
|
});
|
|
1552
1509
|
continue;
|
|
1553
1510
|
}
|
|
1554
|
-
if (
|
|
1511
|
+
if (kt.test(i.stem)) {
|
|
1555
1512
|
t.minimumIntegerDigits = i.stem.length;
|
|
1556
1513
|
continue;
|
|
1557
1514
|
}
|
|
1558
|
-
if (
|
|
1515
|
+
if (st.test(i.stem)) {
|
|
1559
1516
|
if (i.options.length > 1)
|
|
1560
1517
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1561
|
-
i.stem.replace(
|
|
1562
|
-
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1518
|
+
i.stem.replace(st, function(h, u, l, f, c, b) {
|
|
1519
|
+
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1563
1520
|
});
|
|
1564
1521
|
var o = i.options[0];
|
|
1565
|
-
o === "w" ? t =
|
|
1522
|
+
o === "w" ? t = m(m({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = m(m({}, t), at(o)));
|
|
1566
1523
|
continue;
|
|
1567
1524
|
}
|
|
1568
|
-
if (
|
|
1569
|
-
t =
|
|
1525
|
+
if (Vt.test(i.stem)) {
|
|
1526
|
+
t = m(m({}, t), at(i.stem));
|
|
1570
1527
|
continue;
|
|
1571
1528
|
}
|
|
1572
|
-
var s =
|
|
1573
|
-
s && (t =
|
|
1574
|
-
var a =
|
|
1575
|
-
a && (t =
|
|
1529
|
+
var s = Xt(i.stem);
|
|
1530
|
+
s && (t = m(m({}, t), s));
|
|
1531
|
+
var a = En(i.stem);
|
|
1532
|
+
a && (t = m(m({}, t), a));
|
|
1576
1533
|
}
|
|
1577
1534
|
return t;
|
|
1578
1535
|
}
|
|
@@ -2991,13 +2948,13 @@ var se = {
|
|
|
2991
2948
|
"h"
|
|
2992
2949
|
]
|
|
2993
2950
|
};
|
|
2994
|
-
function
|
|
2951
|
+
function Sn(e, t) {
|
|
2995
2952
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2996
2953
|
var i = e.charAt(n);
|
|
2997
2954
|
if (i === "j") {
|
|
2998
2955
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2999
2956
|
o++, n++;
|
|
3000
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2957
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Hn(t);
|
|
3001
2958
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3002
2959
|
r += h;
|
|
3003
2960
|
for (; s-- > 0; )
|
|
@@ -3007,7 +2964,7 @@ function An(e, t) {
|
|
|
3007
2964
|
}
|
|
3008
2965
|
return r;
|
|
3009
2966
|
}
|
|
3010
|
-
function
|
|
2967
|
+
function Hn(e) {
|
|
3011
2968
|
var t = e.hourCycle;
|
|
3012
2969
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3013
2970
|
e.hourCycles && // @ts-ignore
|
|
@@ -3029,20 +2986,20 @@ function Pn(e) {
|
|
|
3029
2986
|
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
3030
2987
|
return i[0];
|
|
3031
2988
|
}
|
|
3032
|
-
var
|
|
2989
|
+
var Se, wn = new RegExp("^".concat(jt.source, "*")), Tn = new RegExp("".concat(jt.source, "*$"));
|
|
3033
2990
|
function d(e, t) {
|
|
3034
2991
|
return { start: e, end: t };
|
|
3035
2992
|
}
|
|
3036
|
-
var
|
|
2993
|
+
var Bn = !!String.prototype.startsWith && "_a".startsWith("a", 1), An = !!String.fromCodePoint, Pn = !!Object.fromEntries, Cn = !!String.prototype.codePointAt, On = !!String.prototype.trimStart, Ln = !!String.prototype.trimEnd, In = !!Number.isSafeInteger, Nn = In ? Number.isSafeInteger : function(e) {
|
|
3037
2994
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3038
|
-
},
|
|
2995
|
+
}, Me = !0;
|
|
3039
2996
|
try {
|
|
3040
|
-
var
|
|
3041
|
-
|
|
2997
|
+
var Mn = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2998
|
+
Me = ((Se = Mn.exec("a")) === null || Se === void 0 ? void 0 : Se[0]) === "a";
|
|
3042
2999
|
} catch {
|
|
3043
|
-
|
|
3000
|
+
Me = !1;
|
|
3044
3001
|
}
|
|
3045
|
-
var
|
|
3002
|
+
var ht = Bn ? (
|
|
3046
3003
|
// Native
|
|
3047
3004
|
function(t, r, n) {
|
|
3048
3005
|
return t.startsWith(r, n);
|
|
@@ -3052,7 +3009,7 @@ var dt = Ln ? (
|
|
|
3052
3009
|
function(t, r, n) {
|
|
3053
3010
|
return t.slice(n, n + r.length) === r;
|
|
3054
3011
|
}
|
|
3055
|
-
),
|
|
3012
|
+
), $e = An ? String.fromCodePoint : (
|
|
3056
3013
|
// IE11
|
|
3057
3014
|
function() {
|
|
3058
3015
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3064,9 +3021,9 @@ var dt = Ln ? (
|
|
|
3064
3021
|
}
|
|
3065
3022
|
return n;
|
|
3066
3023
|
}
|
|
3067
|
-
),
|
|
3024
|
+
), lt = (
|
|
3068
3025
|
// native
|
|
3069
|
-
|
|
3026
|
+
Pn ? Object.fromEntries : (
|
|
3070
3027
|
// Ponyfill
|
|
3071
3028
|
function(t) {
|
|
3072
3029
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3076,7 +3033,7 @@ var dt = Ln ? (
|
|
|
3076
3033
|
return r;
|
|
3077
3034
|
}
|
|
3078
3035
|
)
|
|
3079
|
-
),
|
|
3036
|
+
), Wt = Cn ? (
|
|
3080
3037
|
// Native
|
|
3081
3038
|
function(t, r) {
|
|
3082
3039
|
return t.codePointAt(r);
|
|
@@ -3090,7 +3047,7 @@ var dt = Ln ? (
|
|
|
3090
3047
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3091
3048
|
}
|
|
3092
3049
|
}
|
|
3093
|
-
),
|
|
3050
|
+
), $n = On ? (
|
|
3094
3051
|
// Native
|
|
3095
3052
|
function(t) {
|
|
3096
3053
|
return t.trimStart();
|
|
@@ -3098,9 +3055,9 @@ var dt = Ln ? (
|
|
|
3098
3055
|
) : (
|
|
3099
3056
|
// Ponyfill
|
|
3100
3057
|
function(t) {
|
|
3101
|
-
return t.replace(
|
|
3058
|
+
return t.replace(wn, "");
|
|
3102
3059
|
}
|
|
3103
|
-
),
|
|
3060
|
+
), Rn = Ln ? (
|
|
3104
3061
|
// Native
|
|
3105
3062
|
function(t) {
|
|
3106
3063
|
return t.trimEnd();
|
|
@@ -3108,32 +3065,32 @@ var dt = Ln ? (
|
|
|
3108
3065
|
) : (
|
|
3109
3066
|
// Ponyfill
|
|
3110
3067
|
function(t) {
|
|
3111
|
-
return t.replace(
|
|
3068
|
+
return t.replace(Tn, "");
|
|
3112
3069
|
}
|
|
3113
3070
|
);
|
|
3114
|
-
function
|
|
3071
|
+
function zt(e, t) {
|
|
3115
3072
|
return new RegExp(e, t);
|
|
3116
3073
|
}
|
|
3117
|
-
var
|
|
3118
|
-
if (
|
|
3119
|
-
var
|
|
3120
|
-
|
|
3074
|
+
var Re;
|
|
3075
|
+
if (Me) {
|
|
3076
|
+
var ft = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3077
|
+
Re = function(t, r) {
|
|
3121
3078
|
var n;
|
|
3122
|
-
|
|
3123
|
-
var i =
|
|
3079
|
+
ft.lastIndex = r;
|
|
3080
|
+
var i = ft.exec(t);
|
|
3124
3081
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3125
3082
|
};
|
|
3126
3083
|
} else
|
|
3127
|
-
|
|
3084
|
+
Re = function(t, r) {
|
|
3128
3085
|
for (var n = []; ; ) {
|
|
3129
|
-
var i =
|
|
3130
|
-
if (i === void 0 ||
|
|
3086
|
+
var i = Wt(t, r);
|
|
3087
|
+
if (i === void 0 || Zt(i) || Fn(i))
|
|
3131
3088
|
break;
|
|
3132
3089
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3133
3090
|
}
|
|
3134
|
-
return
|
|
3091
|
+
return $e.apply(void 0, n);
|
|
3135
3092
|
};
|
|
3136
|
-
var
|
|
3093
|
+
var Un = (
|
|
3137
3094
|
/** @class */
|
|
3138
3095
|
function() {
|
|
3139
3096
|
function e(t, r) {
|
|
@@ -3157,14 +3114,14 @@ var Vn = (
|
|
|
3157
3114
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3158
3115
|
var a = this.clonePosition();
|
|
3159
3116
|
this.bump(), i.push({
|
|
3160
|
-
type:
|
|
3117
|
+
type: y.pound,
|
|
3161
3118
|
location: d(a, this.clonePosition())
|
|
3162
3119
|
});
|
|
3163
3120
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3164
3121
|
if (n)
|
|
3165
3122
|
break;
|
|
3166
3123
|
return this.error(p.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
3167
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3124
|
+
} else if (o === 60 && !this.ignoreTag && Ue(this.peek() || 0)) {
|
|
3168
3125
|
var s = this.parseTag(t, r);
|
|
3169
3126
|
if (s.err)
|
|
3170
3127
|
return s;
|
|
@@ -3185,7 +3142,7 @@ var Vn = (
|
|
|
3185
3142
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3186
3143
|
return {
|
|
3187
3144
|
val: {
|
|
3188
|
-
type:
|
|
3145
|
+
type: y.literal,
|
|
3189
3146
|
value: "<".concat(i, "/>"),
|
|
3190
3147
|
location: d(n, this.clonePosition())
|
|
3191
3148
|
},
|
|
@@ -3197,12 +3154,12 @@ var Vn = (
|
|
|
3197
3154
|
return o;
|
|
3198
3155
|
var s = o.val, a = this.clonePosition();
|
|
3199
3156
|
if (this.bumpIf("</")) {
|
|
3200
|
-
if (this.isEOF() || !
|
|
3157
|
+
if (this.isEOF() || !Ue(this.char()))
|
|
3201
3158
|
return this.error(p.INVALID_TAG, d(a, this.clonePosition()));
|
|
3202
3159
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3203
3160
|
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, d(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3204
3161
|
val: {
|
|
3205
|
-
type:
|
|
3162
|
+
type: y.tag,
|
|
3206
3163
|
value: i,
|
|
3207
3164
|
children: s,
|
|
3208
3165
|
location: d(n, this.clonePosition())
|
|
@@ -3215,7 +3172,7 @@ var Vn = (
|
|
|
3215
3172
|
return this.error(p.INVALID_TAG, d(n, this.clonePosition()));
|
|
3216
3173
|
}, e.prototype.parseTagName = function() {
|
|
3217
3174
|
var t = this.offset();
|
|
3218
|
-
for (this.bump(); !this.isEOF() &&
|
|
3175
|
+
for (this.bump(); !this.isEOF() && Gn(this.char()); )
|
|
3219
3176
|
this.bump();
|
|
3220
3177
|
return this.message.slice(t, this.offset());
|
|
3221
3178
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3239,12 +3196,12 @@ var Vn = (
|
|
|
3239
3196
|
}
|
|
3240
3197
|
var h = d(n, this.clonePosition());
|
|
3241
3198
|
return {
|
|
3242
|
-
val: { type:
|
|
3199
|
+
val: { type: y.literal, value: i, location: h },
|
|
3243
3200
|
err: null
|
|
3244
3201
|
};
|
|
3245
3202
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3246
3203
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3247
|
-
!
|
|
3204
|
+
!Dn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3248
3205
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3249
3206
|
if (this.isEOF() || this.char() !== 39)
|
|
3250
3207
|
return null;
|
|
@@ -3278,12 +3235,12 @@ var Vn = (
|
|
|
3278
3235
|
r.push(n);
|
|
3279
3236
|
this.bump();
|
|
3280
3237
|
}
|
|
3281
|
-
return
|
|
3238
|
+
return $e.apply(void 0, r);
|
|
3282
3239
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3283
3240
|
if (this.isEOF())
|
|
3284
3241
|
return null;
|
|
3285
3242
|
var n = this.char();
|
|
3286
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3243
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), $e(n));
|
|
3287
3244
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3288
3245
|
var n = this.clonePosition();
|
|
3289
3246
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3299,7 +3256,7 @@ var Vn = (
|
|
|
3299
3256
|
case 125:
|
|
3300
3257
|
return this.bump(), {
|
|
3301
3258
|
val: {
|
|
3302
|
-
type:
|
|
3259
|
+
type: y.argument,
|
|
3303
3260
|
// value does not include the opening and closing braces.
|
|
3304
3261
|
value: i,
|
|
3305
3262
|
location: d(n, this.clonePosition())
|
|
@@ -3312,7 +3269,7 @@ var Vn = (
|
|
|
3312
3269
|
return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3313
3270
|
}
|
|
3314
3271
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3315
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3272
|
+
var t = this.clonePosition(), r = this.offset(), n = Re(this.message, r), i = r + n.length;
|
|
3316
3273
|
this.bumpTo(i);
|
|
3317
3274
|
var o = this.clonePosition(), s = d(t, o);
|
|
3318
3275
|
return { value: n, location: s };
|
|
@@ -3331,46 +3288,46 @@ var Vn = (
|
|
|
3331
3288
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3332
3289
|
if (f.err)
|
|
3333
3290
|
return f;
|
|
3334
|
-
var c =
|
|
3291
|
+
var c = Rn(f.val);
|
|
3335
3292
|
if (c.length === 0)
|
|
3336
3293
|
return this.error(p.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
3337
|
-
var
|
|
3338
|
-
u = { style: c, styleLocation:
|
|
3294
|
+
var b = d(l, this.clonePosition());
|
|
3295
|
+
u = { style: c, styleLocation: b };
|
|
3339
3296
|
}
|
|
3340
|
-
var
|
|
3341
|
-
if (
|
|
3342
|
-
return
|
|
3343
|
-
var
|
|
3344
|
-
if (u &&
|
|
3345
|
-
var
|
|
3297
|
+
var g = this.tryParseArgumentClose(i);
|
|
3298
|
+
if (g.err)
|
|
3299
|
+
return g;
|
|
3300
|
+
var v = d(i, this.clonePosition());
|
|
3301
|
+
if (u && ht(u?.style, "::", 0)) {
|
|
3302
|
+
var H = $n(u.style.slice(2));
|
|
3346
3303
|
if (a === "number") {
|
|
3347
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3304
|
+
var f = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
|
3348
3305
|
return f.err ? f : {
|
|
3349
|
-
val: { type:
|
|
3306
|
+
val: { type: y.number, value: n, location: v, style: f.val },
|
|
3350
3307
|
err: null
|
|
3351
3308
|
};
|
|
3352
3309
|
} else {
|
|
3353
|
-
if (
|
|
3354
|
-
return this.error(p.EXPECT_DATE_TIME_SKELETON,
|
|
3355
|
-
var E =
|
|
3356
|
-
this.locale && (E =
|
|
3310
|
+
if (H.length === 0)
|
|
3311
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, v);
|
|
3312
|
+
var E = H;
|
|
3313
|
+
this.locale && (E = Sn(H, this.locale));
|
|
3357
3314
|
var c = {
|
|
3358
|
-
type:
|
|
3315
|
+
type: F.dateTime,
|
|
3359
3316
|
pattern: E,
|
|
3360
3317
|
location: u.styleLocation,
|
|
3361
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3362
|
-
}, I = a === "date" ?
|
|
3318
|
+
parsedOptions: this.shouldParseSkeletons ? bn(E) : {}
|
|
3319
|
+
}, I = a === "date" ? y.date : y.time;
|
|
3363
3320
|
return {
|
|
3364
|
-
val: { type: I, value: n, location:
|
|
3321
|
+
val: { type: I, value: n, location: v, style: c },
|
|
3365
3322
|
err: null
|
|
3366
3323
|
};
|
|
3367
3324
|
}
|
|
3368
3325
|
}
|
|
3369
3326
|
return {
|
|
3370
3327
|
val: {
|
|
3371
|
-
type: a === "number" ?
|
|
3328
|
+
type: a === "number" ? y.number : a === "date" ? y.date : y.time,
|
|
3372
3329
|
value: n,
|
|
3373
|
-
location:
|
|
3330
|
+
location: v,
|
|
3374
3331
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3375
3332
|
},
|
|
3376
3333
|
err: null
|
|
@@ -3379,43 +3336,43 @@ var Vn = (
|
|
|
3379
3336
|
case "plural":
|
|
3380
3337
|
case "selectordinal":
|
|
3381
3338
|
case "select": {
|
|
3382
|
-
var
|
|
3339
|
+
var w = this.clonePosition();
|
|
3383
3340
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3384
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(
|
|
3341
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(w, m({}, w)));
|
|
3385
3342
|
this.bumpSpace();
|
|
3386
|
-
var
|
|
3387
|
-
if (a !== "select" &&
|
|
3343
|
+
var z = this.parseIdentifierIfPossible(), C = 0;
|
|
3344
|
+
if (a !== "select" && z.value === "offset") {
|
|
3388
3345
|
if (!this.bumpIf(":"))
|
|
3389
3346
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
|
3390
3347
|
this.bumpSpace();
|
|
3391
3348
|
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3392
3349
|
if (f.err)
|
|
3393
3350
|
return f;
|
|
3394
|
-
this.bumpSpace(),
|
|
3351
|
+
this.bumpSpace(), z = this.parseIdentifierIfPossible(), C = f.val;
|
|
3395
3352
|
}
|
|
3396
|
-
var ne = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3353
|
+
var ne = this.tryParsePluralOrSelectOptions(t, a, r, z);
|
|
3397
3354
|
if (ne.err)
|
|
3398
3355
|
return ne;
|
|
3399
|
-
var
|
|
3400
|
-
if (
|
|
3401
|
-
return
|
|
3402
|
-
var
|
|
3356
|
+
var g = this.tryParseArgumentClose(i);
|
|
3357
|
+
if (g.err)
|
|
3358
|
+
return g;
|
|
3359
|
+
var Xe = d(i, this.clonePosition());
|
|
3403
3360
|
return a === "select" ? {
|
|
3404
3361
|
val: {
|
|
3405
|
-
type:
|
|
3362
|
+
type: y.select,
|
|
3406
3363
|
value: n,
|
|
3407
|
-
options:
|
|
3408
|
-
location:
|
|
3364
|
+
options: lt(ne.val),
|
|
3365
|
+
location: Xe
|
|
3409
3366
|
},
|
|
3410
3367
|
err: null
|
|
3411
3368
|
} : {
|
|
3412
3369
|
val: {
|
|
3413
|
-
type:
|
|
3370
|
+
type: y.plural,
|
|
3414
3371
|
value: n,
|
|
3415
|
-
options:
|
|
3416
|
-
offset:
|
|
3372
|
+
options: lt(ne.val),
|
|
3373
|
+
offset: C,
|
|
3417
3374
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3418
|
-
location:
|
|
3375
|
+
location: Xe
|
|
3419
3376
|
},
|
|
3420
3377
|
err: null
|
|
3421
3378
|
};
|
|
@@ -3463,16 +3420,16 @@ var Vn = (
|
|
|
3463
3420
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3464
3421
|
var n = [];
|
|
3465
3422
|
try {
|
|
3466
|
-
n =
|
|
3423
|
+
n = gn(t);
|
|
3467
3424
|
} catch {
|
|
3468
3425
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3469
3426
|
}
|
|
3470
3427
|
return {
|
|
3471
3428
|
val: {
|
|
3472
|
-
type:
|
|
3429
|
+
type: F.number,
|
|
3473
3430
|
tokens: n,
|
|
3474
3431
|
location: r,
|
|
3475
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3432
|
+
parsedOptions: this.shouldParseSkeletons ? xn(n) : {}
|
|
3476
3433
|
},
|
|
3477
3434
|
err: null
|
|
3478
3435
|
};
|
|
@@ -3491,20 +3448,20 @@ var Vn = (
|
|
|
3491
3448
|
if (h.has(u))
|
|
3492
3449
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3493
3450
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3494
|
-
var
|
|
3451
|
+
var b = this.clonePosition();
|
|
3495
3452
|
if (!this.bumpIf("{"))
|
|
3496
3453
|
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
|
3497
|
-
var
|
|
3454
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
3455
|
+
if (g.err)
|
|
3456
|
+
return g;
|
|
3457
|
+
var v = this.tryParseArgumentClose(b);
|
|
3498
3458
|
if (v.err)
|
|
3499
3459
|
return v;
|
|
3500
|
-
var b = this.tryParseArgumentClose(m);
|
|
3501
|
-
if (b.err)
|
|
3502
|
-
return b;
|
|
3503
3460
|
a.push([
|
|
3504
3461
|
u,
|
|
3505
3462
|
{
|
|
3506
|
-
value:
|
|
3507
|
-
location: d(
|
|
3463
|
+
value: g.val,
|
|
3464
|
+
location: d(b, this.clonePosition())
|
|
3508
3465
|
}
|
|
3509
3466
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3510
3467
|
}
|
|
@@ -3520,7 +3477,7 @@ var Vn = (
|
|
|
3520
3477
|
break;
|
|
3521
3478
|
}
|
|
3522
3479
|
var h = d(i, this.clonePosition());
|
|
3523
|
-
return o ? (s *= n,
|
|
3480
|
+
return o ? (s *= n, Nn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3524
3481
|
}, e.prototype.offset = function() {
|
|
3525
3482
|
return this.position.offset;
|
|
3526
3483
|
}, e.prototype.isEOF = function() {
|
|
@@ -3535,7 +3492,7 @@ var Vn = (
|
|
|
3535
3492
|
var t = this.position.offset;
|
|
3536
3493
|
if (t >= this.message.length)
|
|
3537
3494
|
throw Error("out of bound");
|
|
3538
|
-
var r =
|
|
3495
|
+
var r = Wt(this.message, t);
|
|
3539
3496
|
if (r === void 0)
|
|
3540
3497
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3541
3498
|
return r;
|
|
@@ -3554,7 +3511,7 @@ var Vn = (
|
|
|
3554
3511
|
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);
|
|
3555
3512
|
}
|
|
3556
3513
|
}, e.prototype.bumpIf = function(t) {
|
|
3557
|
-
if (
|
|
3514
|
+
if (ht(this.message, t, this.offset())) {
|
|
3558
3515
|
for (var r = 0; r < t.length; r++)
|
|
3559
3516
|
this.bump();
|
|
3560
3517
|
return !0;
|
|
@@ -3576,7 +3533,7 @@ var Vn = (
|
|
|
3576
3533
|
break;
|
|
3577
3534
|
}
|
|
3578
3535
|
}, e.prototype.bumpSpace = function() {
|
|
3579
|
-
for (; !this.isEOF() &&
|
|
3536
|
+
for (; !this.isEOF() && Zt(this.char()); )
|
|
3580
3537
|
this.bump();
|
|
3581
3538
|
}, e.prototype.peek = function() {
|
|
3582
3539
|
if (this.isEOF())
|
|
@@ -3586,47 +3543,47 @@ var Vn = (
|
|
|
3586
3543
|
}, e;
|
|
3587
3544
|
}()
|
|
3588
3545
|
);
|
|
3589
|
-
function
|
|
3546
|
+
function Ue(e) {
|
|
3590
3547
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3591
3548
|
}
|
|
3592
|
-
function
|
|
3593
|
-
return
|
|
3549
|
+
function Dn(e) {
|
|
3550
|
+
return Ue(e) || e === 47;
|
|
3594
3551
|
}
|
|
3595
|
-
function
|
|
3552
|
+
function Gn(e) {
|
|
3596
3553
|
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;
|
|
3597
3554
|
}
|
|
3598
|
-
function
|
|
3555
|
+
function Zt(e) {
|
|
3599
3556
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3600
3557
|
}
|
|
3601
|
-
function
|
|
3558
|
+
function Fn(e) {
|
|
3602
3559
|
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;
|
|
3603
3560
|
}
|
|
3604
|
-
function
|
|
3561
|
+
function De(e) {
|
|
3605
3562
|
e.forEach(function(t) {
|
|
3606
|
-
if (delete t.location,
|
|
3563
|
+
if (delete t.location, Ut(t) || Dt(t))
|
|
3607
3564
|
for (var r in t.options)
|
|
3608
|
-
delete t.options[r].location,
|
|
3565
|
+
delete t.options[r].location, De(t.options[r].value);
|
|
3609
3566
|
else
|
|
3610
|
-
|
|
3567
|
+
Mt(t) && Ft(t.style) || ($t(t) || Rt(t)) && Ne(t.style) ? delete t.style.location : Gt(t) && De(t.children);
|
|
3611
3568
|
});
|
|
3612
3569
|
}
|
|
3613
|
-
function
|
|
3614
|
-
t === void 0 && (t = {}), t =
|
|
3615
|
-
var r = new
|
|
3570
|
+
function jn(e, t) {
|
|
3571
|
+
t === void 0 && (t = {}), t = m({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3572
|
+
var r = new Un(e, t).parse();
|
|
3616
3573
|
if (r.err) {
|
|
3617
3574
|
var n = SyntaxError(p[r.err.kind]);
|
|
3618
3575
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3619
3576
|
}
|
|
3620
|
-
return t?.captureLocation ||
|
|
3577
|
+
return t?.captureLocation || De(r.val), r.val;
|
|
3621
3578
|
}
|
|
3622
|
-
var
|
|
3579
|
+
var j;
|
|
3623
3580
|
(function(e) {
|
|
3624
3581
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3625
|
-
})(
|
|
3626
|
-
var
|
|
3582
|
+
})(j || (j = {}));
|
|
3583
|
+
var be = (
|
|
3627
3584
|
/** @class */
|
|
3628
3585
|
function(e) {
|
|
3629
|
-
|
|
3586
|
+
A(t, e);
|
|
3630
3587
|
function t(r, n, i) {
|
|
3631
3588
|
var o = e.call(this, r) || this;
|
|
3632
3589
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3635,48 +3592,48 @@ var ge = (
|
|
|
3635
3592
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3636
3593
|
}, t;
|
|
3637
3594
|
}(Error)
|
|
3638
|
-
),
|
|
3595
|
+
), ct = (
|
|
3639
3596
|
/** @class */
|
|
3640
3597
|
function(e) {
|
|
3641
|
-
|
|
3598
|
+
A(t, e);
|
|
3642
3599
|
function t(r, n, i, o) {
|
|
3643
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3600
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, o) || this;
|
|
3644
3601
|
}
|
|
3645
3602
|
return t;
|
|
3646
|
-
}(
|
|
3647
|
-
),
|
|
3603
|
+
}(be)
|
|
3604
|
+
), Vn = (
|
|
3648
3605
|
/** @class */
|
|
3649
3606
|
function(e) {
|
|
3650
|
-
|
|
3607
|
+
A(t, e);
|
|
3651
3608
|
function t(r, n, i) {
|
|
3652
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3609
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
|
|
3653
3610
|
}
|
|
3654
3611
|
return t;
|
|
3655
|
-
}(
|
|
3656
|
-
),
|
|
3612
|
+
}(be)
|
|
3613
|
+
), kn = (
|
|
3657
3614
|
/** @class */
|
|
3658
3615
|
function(e) {
|
|
3659
|
-
|
|
3616
|
+
A(t, e);
|
|
3660
3617
|
function t(r, n) {
|
|
3661
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3618
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), j.MISSING_VALUE, n) || this;
|
|
3662
3619
|
}
|
|
3663
3620
|
return t;
|
|
3664
|
-
}(
|
|
3621
|
+
}(be)
|
|
3665
3622
|
), x;
|
|
3666
3623
|
(function(e) {
|
|
3667
3624
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3668
3625
|
})(x || (x = {}));
|
|
3669
|
-
function
|
|
3626
|
+
function Xn(e) {
|
|
3670
3627
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3671
3628
|
var n = t[t.length - 1];
|
|
3672
3629
|
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3673
3630
|
}, []);
|
|
3674
3631
|
}
|
|
3675
|
-
function
|
|
3632
|
+
function Wn(e) {
|
|
3676
3633
|
return typeof e == "function";
|
|
3677
3634
|
}
|
|
3678
3635
|
function he(e, t, r, n, i, o, s) {
|
|
3679
|
-
if (e.length === 1 &&
|
|
3636
|
+
if (e.length === 1 && ot(e[0]))
|
|
3680
3637
|
return [
|
|
3681
3638
|
{
|
|
3682
3639
|
type: x.literal,
|
|
@@ -3685,14 +3642,14 @@ function he(e, t, r, n, i, o, s) {
|
|
|
3685
3642
|
];
|
|
3686
3643
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3687
3644
|
var l = u[h];
|
|
3688
|
-
if (
|
|
3645
|
+
if (ot(l)) {
|
|
3689
3646
|
a.push({
|
|
3690
3647
|
type: x.literal,
|
|
3691
3648
|
value: l.value
|
|
3692
3649
|
});
|
|
3693
3650
|
continue;
|
|
3694
3651
|
}
|
|
3695
|
-
if (
|
|
3652
|
+
if (dn(l)) {
|
|
3696
3653
|
typeof o == "number" && a.push({
|
|
3697
3654
|
type: x.literal,
|
|
3698
3655
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3701,89 +3658,89 @@ function he(e, t, r, n, i, o, s) {
|
|
|
3701
3658
|
}
|
|
3702
3659
|
var f = l.value;
|
|
3703
3660
|
if (!(i && f in i))
|
|
3704
|
-
throw new
|
|
3661
|
+
throw new kn(f, s);
|
|
3705
3662
|
var c = i[f];
|
|
3706
|
-
if (
|
|
3663
|
+
if (pn(l)) {
|
|
3707
3664
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3708
3665
|
type: typeof c == "string" ? x.literal : x.object,
|
|
3709
3666
|
value: c
|
|
3710
3667
|
});
|
|
3711
3668
|
continue;
|
|
3712
3669
|
}
|
|
3713
|
-
if (
|
|
3714
|
-
var
|
|
3670
|
+
if ($t(l)) {
|
|
3671
|
+
var b = typeof l.style == "string" ? n.date[l.style] : Ne(l.style) ? l.style.parsedOptions : void 0;
|
|
3715
3672
|
a.push({
|
|
3716
3673
|
type: x.literal,
|
|
3717
|
-
value: r.getDateTimeFormat(t,
|
|
3674
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
|
3718
3675
|
});
|
|
3719
3676
|
continue;
|
|
3720
3677
|
}
|
|
3721
|
-
if (
|
|
3722
|
-
var
|
|
3678
|
+
if (Rt(l)) {
|
|
3679
|
+
var b = typeof l.style == "string" ? n.time[l.style] : Ne(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3723
3680
|
a.push({
|
|
3724
3681
|
type: x.literal,
|
|
3725
|
-
value: r.getDateTimeFormat(t,
|
|
3682
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
|
3726
3683
|
});
|
|
3727
3684
|
continue;
|
|
3728
3685
|
}
|
|
3729
|
-
if (
|
|
3730
|
-
var
|
|
3731
|
-
|
|
3686
|
+
if (Mt(l)) {
|
|
3687
|
+
var b = typeof l.style == "string" ? n.number[l.style] : Ft(l.style) ? l.style.parsedOptions : void 0;
|
|
3688
|
+
b && b.scale && (c = c * (b.scale || 1)), a.push({
|
|
3732
3689
|
type: x.literal,
|
|
3733
|
-
value: r.getNumberFormat(t,
|
|
3690
|
+
value: r.getNumberFormat(t, b).format(c)
|
|
3734
3691
|
});
|
|
3735
3692
|
continue;
|
|
3736
3693
|
}
|
|
3737
|
-
if (
|
|
3738
|
-
var
|
|
3739
|
-
if (!
|
|
3740
|
-
throw new
|
|
3741
|
-
var E = he(
|
|
3742
|
-
return
|
|
3694
|
+
if (Gt(l)) {
|
|
3695
|
+
var g = l.children, v = l.value, H = i[v];
|
|
3696
|
+
if (!Wn(H))
|
|
3697
|
+
throw new Vn(v, "function", s);
|
|
3698
|
+
var E = he(g, t, r, n, i, o), I = H(E.map(function(C) {
|
|
3699
|
+
return C.value;
|
|
3743
3700
|
}));
|
|
3744
|
-
Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(
|
|
3701
|
+
Array.isArray(I) || (I = [I]), a.push.apply(a, I.map(function(C) {
|
|
3745
3702
|
return {
|
|
3746
|
-
type: typeof
|
|
3747
|
-
value:
|
|
3703
|
+
type: typeof C == "string" ? x.literal : x.object,
|
|
3704
|
+
value: C
|
|
3748
3705
|
};
|
|
3749
3706
|
}));
|
|
3750
3707
|
}
|
|
3751
|
-
if (
|
|
3752
|
-
var
|
|
3753
|
-
if (!
|
|
3754
|
-
throw new
|
|
3755
|
-
a.push.apply(a, he(
|
|
3708
|
+
if (Ut(l)) {
|
|
3709
|
+
var w = l.options[c] || l.options.other;
|
|
3710
|
+
if (!w)
|
|
3711
|
+
throw new ct(l.value, c, Object.keys(l.options), s);
|
|
3712
|
+
a.push.apply(a, he(w.value, t, r, n, i));
|
|
3756
3713
|
continue;
|
|
3757
3714
|
}
|
|
3758
|
-
if (
|
|
3759
|
-
var
|
|
3760
|
-
if (!
|
|
3715
|
+
if (Dt(l)) {
|
|
3716
|
+
var w = l.options["=".concat(c)];
|
|
3717
|
+
if (!w) {
|
|
3761
3718
|
if (!Intl.PluralRules)
|
|
3762
|
-
throw new
|
|
3719
|
+
throw new be(`Intl.PluralRules is not available in this environment.
|
|
3763
3720
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3764
|
-
`,
|
|
3765
|
-
var
|
|
3766
|
-
|
|
3721
|
+
`, j.MISSING_INTL_API, s);
|
|
3722
|
+
var z = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3723
|
+
w = l.options[z] || l.options.other;
|
|
3767
3724
|
}
|
|
3768
|
-
if (!
|
|
3769
|
-
throw new
|
|
3770
|
-
a.push.apply(a, he(
|
|
3725
|
+
if (!w)
|
|
3726
|
+
throw new ct(l.value, c, Object.keys(l.options), s);
|
|
3727
|
+
a.push.apply(a, he(w.value, t, r, n, i, c - (l.offset || 0)));
|
|
3771
3728
|
continue;
|
|
3772
3729
|
}
|
|
3773
3730
|
}
|
|
3774
|
-
return
|
|
3731
|
+
return Xn(a);
|
|
3775
3732
|
}
|
|
3776
|
-
function
|
|
3777
|
-
return t ?
|
|
3778
|
-
return r[n] =
|
|
3733
|
+
function zn(e, t) {
|
|
3734
|
+
return t ? m(m(m({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3735
|
+
return r[n] = m(m({}, e[n]), t[n] || {}), r;
|
|
3779
3736
|
}, {})) : e;
|
|
3780
3737
|
}
|
|
3781
|
-
function
|
|
3738
|
+
function Zn(e, t) {
|
|
3782
3739
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3783
|
-
return r[n] =
|
|
3784
|
-
},
|
|
3740
|
+
return r[n] = zn(e[n], t[n]), r;
|
|
3741
|
+
}, m({}, e)) : e;
|
|
3785
3742
|
}
|
|
3786
|
-
function
|
|
3743
|
+
function He(e) {
|
|
3787
3744
|
return {
|
|
3788
3745
|
create: function() {
|
|
3789
3746
|
return {
|
|
@@ -3797,39 +3754,39 @@ function Be(e) {
|
|
|
3797
3754
|
}
|
|
3798
3755
|
};
|
|
3799
3756
|
}
|
|
3800
|
-
function
|
|
3757
|
+
function Qn(e) {
|
|
3801
3758
|
return e === void 0 && (e = {
|
|
3802
3759
|
number: {},
|
|
3803
3760
|
dateTime: {},
|
|
3804
3761
|
pluralRules: {}
|
|
3805
3762
|
}), {
|
|
3806
|
-
getNumberFormat:
|
|
3763
|
+
getNumberFormat: Ee(function() {
|
|
3807
3764
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3808
3765
|
r[n] = arguments[n];
|
|
3809
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3766
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, D([void 0], r, !1)))();
|
|
3810
3767
|
}, {
|
|
3811
|
-
cache:
|
|
3812
|
-
strategy:
|
|
3768
|
+
cache: He(e.number),
|
|
3769
|
+
strategy: xe.variadic
|
|
3813
3770
|
}),
|
|
3814
|
-
getDateTimeFormat:
|
|
3771
|
+
getDateTimeFormat: Ee(function() {
|
|
3815
3772
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3816
3773
|
r[n] = arguments[n];
|
|
3817
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3774
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, D([void 0], r, !1)))();
|
|
3818
3775
|
}, {
|
|
3819
|
-
cache:
|
|
3820
|
-
strategy:
|
|
3776
|
+
cache: He(e.dateTime),
|
|
3777
|
+
strategy: xe.variadic
|
|
3821
3778
|
}),
|
|
3822
|
-
getPluralRules:
|
|
3779
|
+
getPluralRules: Ee(function() {
|
|
3823
3780
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3824
3781
|
r[n] = arguments[n];
|
|
3825
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3782
|
+
return new ((t = Intl.PluralRules).bind.apply(t, D([void 0], r, !1)))();
|
|
3826
3783
|
}, {
|
|
3827
|
-
cache:
|
|
3828
|
-
strategy:
|
|
3784
|
+
cache: He(e.pluralRules),
|
|
3785
|
+
strategy: xe.variadic
|
|
3829
3786
|
})
|
|
3830
3787
|
};
|
|
3831
3788
|
}
|
|
3832
|
-
var
|
|
3789
|
+
var Jn = (
|
|
3833
3790
|
/** @class */
|
|
3834
3791
|
function() {
|
|
3835
3792
|
function e(t, r, n, i) {
|
|
@@ -3861,13 +3818,13 @@ var ti = (
|
|
|
3861
3818
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3862
3819
|
var s = i || {};
|
|
3863
3820
|
s.formatters;
|
|
3864
|
-
var a =
|
|
3865
|
-
this.ast = e.__parse(t,
|
|
3821
|
+
var a = Br(s, ["formatters"]);
|
|
3822
|
+
this.ast = e.__parse(t, m(m({}, a), { locale: this.resolvedLocale }));
|
|
3866
3823
|
} else
|
|
3867
3824
|
this.ast = t;
|
|
3868
3825
|
if (!Array.isArray(this.ast))
|
|
3869
3826
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3870
|
-
this.formats =
|
|
3827
|
+
this.formats = Zn(e.formats, n), this.formatters = i && i.formatters || Qn(this.formatterCache);
|
|
3871
3828
|
}
|
|
3872
3829
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3873
3830
|
get: function() {
|
|
@@ -3880,7 +3837,7 @@ var ti = (
|
|
|
3880
3837
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3881
3838
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3882
3839
|
}
|
|
3883
|
-
}, e.__parse =
|
|
3840
|
+
}, e.__parse = jn, e.formats = {
|
|
3884
3841
|
number: {
|
|
3885
3842
|
integer: {
|
|
3886
3843
|
maximumFractionDigits: 0
|
|
@@ -3941,7 +3898,7 @@ var ti = (
|
|
|
3941
3898
|
}, e;
|
|
3942
3899
|
}()
|
|
3943
3900
|
);
|
|
3944
|
-
function
|
|
3901
|
+
function qn(e, t) {
|
|
3945
3902
|
if (t == null)
|
|
3946
3903
|
return;
|
|
3947
3904
|
if (t in e)
|
|
@@ -3962,92 +3919,92 @@ function ri(e, t) {
|
|
|
3962
3919
|
n = void 0;
|
|
3963
3920
|
return n;
|
|
3964
3921
|
}
|
|
3965
|
-
const P = {},
|
|
3922
|
+
const P = {}, Yn = (e, t, r) => r && (t in P || (P[t] = {}), e in P[t] || (P[t][e] = r), r), Qt = (e, t) => {
|
|
3966
3923
|
if (t == null)
|
|
3967
3924
|
return;
|
|
3968
3925
|
if (t in P && e in P[t])
|
|
3969
3926
|
return P[t][e];
|
|
3970
|
-
const r =
|
|
3927
|
+
const r = ve(t);
|
|
3971
3928
|
for (let n = 0; n < r.length; n++) {
|
|
3972
|
-
const i = r[n], o =
|
|
3929
|
+
const i = r[n], o = ei(i, e);
|
|
3973
3930
|
if (o)
|
|
3974
|
-
return
|
|
3931
|
+
return Yn(e, t, o);
|
|
3975
3932
|
}
|
|
3976
3933
|
};
|
|
3977
|
-
let
|
|
3978
|
-
const te =
|
|
3979
|
-
function
|
|
3980
|
-
return
|
|
3934
|
+
let Ve;
|
|
3935
|
+
const te = me({});
|
|
3936
|
+
function Kn(e) {
|
|
3937
|
+
return Ve[e] || null;
|
|
3981
3938
|
}
|
|
3982
|
-
function
|
|
3983
|
-
return e in
|
|
3939
|
+
function Jt(e) {
|
|
3940
|
+
return e in Ve;
|
|
3984
3941
|
}
|
|
3985
|
-
function
|
|
3986
|
-
if (!
|
|
3942
|
+
function ei(e, t) {
|
|
3943
|
+
if (!Jt(e))
|
|
3987
3944
|
return null;
|
|
3988
|
-
const r =
|
|
3989
|
-
return
|
|
3945
|
+
const r = Kn(e);
|
|
3946
|
+
return qn(r, t);
|
|
3990
3947
|
}
|
|
3991
|
-
function
|
|
3948
|
+
function ti(e) {
|
|
3992
3949
|
if (e == null)
|
|
3993
3950
|
return;
|
|
3994
|
-
const t =
|
|
3951
|
+
const t = ve(e);
|
|
3995
3952
|
for (let r = 0; r < t.length; r++) {
|
|
3996
3953
|
const n = t[r];
|
|
3997
|
-
if (
|
|
3954
|
+
if (Jt(n))
|
|
3998
3955
|
return n;
|
|
3999
3956
|
}
|
|
4000
3957
|
}
|
|
4001
|
-
function
|
|
4002
|
-
delete P[e], te.update((r) => (r[e] =
|
|
3958
|
+
function ri(e, ...t) {
|
|
3959
|
+
delete P[e], te.update((r) => (r[e] = on.all([r[e] || {}, ...t]), r));
|
|
4003
3960
|
}
|
|
4004
|
-
|
|
3961
|
+
X(
|
|
4005
3962
|
[te],
|
|
4006
3963
|
([e]) => Object.keys(e)
|
|
4007
3964
|
);
|
|
4008
|
-
te.subscribe((e) =>
|
|
3965
|
+
te.subscribe((e) => Ve = e);
|
|
4009
3966
|
const le = {};
|
|
4010
|
-
function
|
|
3967
|
+
function ni(e, t) {
|
|
4011
3968
|
le[e].delete(t), le[e].size === 0 && delete le[e];
|
|
4012
3969
|
}
|
|
4013
|
-
function
|
|
3970
|
+
function qt(e) {
|
|
4014
3971
|
return le[e];
|
|
4015
3972
|
}
|
|
4016
|
-
function
|
|
4017
|
-
return
|
|
4018
|
-
const r =
|
|
3973
|
+
function ii(e) {
|
|
3974
|
+
return ve(e).map((t) => {
|
|
3975
|
+
const r = qt(t);
|
|
4019
3976
|
return [t, r ? [...r] : []];
|
|
4020
3977
|
}).filter(([, t]) => t.length > 0);
|
|
4021
3978
|
}
|
|
4022
|
-
function
|
|
4023
|
-
return e == null ? !1 :
|
|
3979
|
+
function Ge(e) {
|
|
3980
|
+
return e == null ? !1 : ve(e).some(
|
|
4024
3981
|
(t) => {
|
|
4025
3982
|
var r;
|
|
4026
|
-
return (r =
|
|
3983
|
+
return (r = qt(t)) == null ? void 0 : r.size;
|
|
4027
3984
|
}
|
|
4028
3985
|
);
|
|
4029
3986
|
}
|
|
4030
|
-
function
|
|
3987
|
+
function oi(e, t) {
|
|
4031
3988
|
return Promise.all(
|
|
4032
|
-
t.map((n) => (
|
|
4033
|
-
).then((n) =>
|
|
4034
|
-
}
|
|
4035
|
-
const
|
|
4036
|
-
function
|
|
4037
|
-
if (!
|
|
4038
|
-
return e in
|
|
4039
|
-
const t =
|
|
4040
|
-
return
|
|
3989
|
+
t.map((n) => (ni(e, n), n().then((i) => i.default || i)))
|
|
3990
|
+
).then((n) => ri(e, ...n));
|
|
3991
|
+
}
|
|
3992
|
+
const Z = {};
|
|
3993
|
+
function Yt(e) {
|
|
3994
|
+
if (!Ge(e))
|
|
3995
|
+
return e in Z ? Z[e] : Promise.resolve();
|
|
3996
|
+
const t = ii(e);
|
|
3997
|
+
return Z[e] = Promise.all(
|
|
4041
3998
|
t.map(
|
|
4042
|
-
([r, n]) =>
|
|
3999
|
+
([r, n]) => oi(r, n)
|
|
4043
4000
|
)
|
|
4044
4001
|
).then(() => {
|
|
4045
|
-
if (
|
|
4046
|
-
return
|
|
4047
|
-
delete
|
|
4048
|
-
}),
|
|
4002
|
+
if (Ge(e))
|
|
4003
|
+
return Yt(e);
|
|
4004
|
+
delete Z[e];
|
|
4005
|
+
}), Z[e];
|
|
4049
4006
|
}
|
|
4050
|
-
const
|
|
4007
|
+
const si = {
|
|
4051
4008
|
number: {
|
|
4052
4009
|
scientific: { notation: "scientific" },
|
|
4053
4010
|
engineering: { notation: "engineering" },
|
|
@@ -4076,135 +4033,135 @@ const fi = {
|
|
|
4076
4033
|
timeZoneName: "short"
|
|
4077
4034
|
}
|
|
4078
4035
|
}
|
|
4079
|
-
},
|
|
4036
|
+
}, ai = {
|
|
4080
4037
|
fallbackLocale: null,
|
|
4081
4038
|
loadingDelay: 200,
|
|
4082
|
-
formats:
|
|
4039
|
+
formats: si,
|
|
4083
4040
|
warnOnMissingMessages: !0,
|
|
4084
4041
|
handleMissingMessage: void 0,
|
|
4085
4042
|
ignoreTag: !0
|
|
4086
|
-
},
|
|
4087
|
-
function
|
|
4088
|
-
return
|
|
4043
|
+
}, ui = ai;
|
|
4044
|
+
function V() {
|
|
4045
|
+
return ui;
|
|
4089
4046
|
}
|
|
4090
|
-
const
|
|
4091
|
-
var
|
|
4047
|
+
const we = me(!1);
|
|
4048
|
+
var hi = Object.defineProperty, li = Object.defineProperties, fi = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, ci = Object.prototype.hasOwnProperty, pi = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, di = (e, t) => {
|
|
4092
4049
|
for (var r in t || (t = {}))
|
|
4093
|
-
|
|
4094
|
-
if (
|
|
4095
|
-
for (var r of
|
|
4096
|
-
|
|
4050
|
+
ci.call(t, r) && dt(e, r, t[r]);
|
|
4051
|
+
if (pt)
|
|
4052
|
+
for (var r of pt(t))
|
|
4053
|
+
pi.call(t, r) && dt(e, r, t[r]);
|
|
4097
4054
|
return e;
|
|
4098
|
-
},
|
|
4099
|
-
let
|
|
4100
|
-
const
|
|
4101
|
-
function
|
|
4055
|
+
}, mi = (e, t) => li(e, fi(t));
|
|
4056
|
+
let Fe;
|
|
4057
|
+
const ce = me(null);
|
|
4058
|
+
function mt(e) {
|
|
4102
4059
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4103
4060
|
}
|
|
4104
|
-
function
|
|
4105
|
-
const r =
|
|
4106
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4061
|
+
function ve(e, t = V().fallbackLocale) {
|
|
4062
|
+
const r = mt(e);
|
|
4063
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...mt(t)])] : r;
|
|
4107
4064
|
}
|
|
4108
4065
|
function L() {
|
|
4109
|
-
return
|
|
4066
|
+
return Fe ?? void 0;
|
|
4110
4067
|
}
|
|
4111
|
-
|
|
4112
|
-
|
|
4068
|
+
ce.subscribe((e) => {
|
|
4069
|
+
Fe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4113
4070
|
});
|
|
4114
|
-
const
|
|
4115
|
-
if (e &&
|
|
4116
|
-
const { loadingDelay: t } =
|
|
4071
|
+
const bi = (e) => {
|
|
4072
|
+
if (e && ti(e) && Ge(e)) {
|
|
4073
|
+
const { loadingDelay: t } = V();
|
|
4117
4074
|
let r;
|
|
4118
4075
|
return typeof window < "u" && L() != null && t ? r = window.setTimeout(
|
|
4119
|
-
() =>
|
|
4076
|
+
() => we.set(!0),
|
|
4120
4077
|
t
|
|
4121
|
-
) :
|
|
4122
|
-
|
|
4078
|
+
) : we.set(!0), Yt(e).then(() => {
|
|
4079
|
+
ce.set(e);
|
|
4123
4080
|
}).finally(() => {
|
|
4124
|
-
clearTimeout(r),
|
|
4081
|
+
clearTimeout(r), we.set(!1);
|
|
4125
4082
|
});
|
|
4126
4083
|
}
|
|
4127
|
-
return
|
|
4128
|
-
}, re =
|
|
4129
|
-
set:
|
|
4130
|
-
}),
|
|
4084
|
+
return ce.set(e);
|
|
4085
|
+
}, re = mi(di({}, ce), {
|
|
4086
|
+
set: bi
|
|
4087
|
+
}), ge = (e) => {
|
|
4131
4088
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4132
4089
|
return (n) => {
|
|
4133
4090
|
const i = JSON.stringify(n);
|
|
4134
4091
|
return i in t ? t[i] : t[i] = e(n);
|
|
4135
4092
|
};
|
|
4136
4093
|
};
|
|
4137
|
-
var
|
|
4094
|
+
var vi = Object.defineProperty, pe = Object.getOwnPropertySymbols, Kt = Object.prototype.hasOwnProperty, er = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ke = (e, t) => {
|
|
4138
4095
|
for (var r in t || (t = {}))
|
|
4139
|
-
|
|
4140
|
-
if (
|
|
4141
|
-
for (var r of
|
|
4142
|
-
|
|
4096
|
+
Kt.call(t, r) && bt(e, r, t[r]);
|
|
4097
|
+
if (pe)
|
|
4098
|
+
for (var r of pe(t))
|
|
4099
|
+
er.call(t, r) && bt(e, r, t[r]);
|
|
4143
4100
|
return e;
|
|
4144
|
-
},
|
|
4101
|
+
}, W = (e, t) => {
|
|
4145
4102
|
var r = {};
|
|
4146
4103
|
for (var n in e)
|
|
4147
|
-
|
|
4148
|
-
if (e != null &&
|
|
4149
|
-
for (var n of
|
|
4150
|
-
t.indexOf(n) < 0 &&
|
|
4104
|
+
Kt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4105
|
+
if (e != null && pe)
|
|
4106
|
+
for (var n of pe(e))
|
|
4107
|
+
t.indexOf(n) < 0 && er.call(e, n) && (r[n] = e[n]);
|
|
4151
4108
|
return r;
|
|
4152
4109
|
};
|
|
4153
|
-
const
|
|
4154
|
-
const { formats: r } =
|
|
4110
|
+
const Y = (e, t) => {
|
|
4111
|
+
const { formats: r } = V();
|
|
4155
4112
|
if (e in r && t in r[e])
|
|
4156
4113
|
return r[e][t];
|
|
4157
4114
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4158
|
-
},
|
|
4115
|
+
}, gi = ge(
|
|
4159
4116
|
(e) => {
|
|
4160
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4117
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4161
4118
|
if (r == null)
|
|
4162
4119
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4163
|
-
return n && (i =
|
|
4120
|
+
return n && (i = Y("number", n)), new Intl.NumberFormat(r, i);
|
|
4164
4121
|
}
|
|
4165
|
-
),
|
|
4122
|
+
), yi = ge(
|
|
4166
4123
|
(e) => {
|
|
4167
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4124
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4168
4125
|
if (r == null)
|
|
4169
4126
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4170
|
-
return n ? i =
|
|
4127
|
+
return n ? i = Y("date", n) : Object.keys(i).length === 0 && (i = Y("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4171
4128
|
}
|
|
4172
|
-
),
|
|
4129
|
+
), _i = ge(
|
|
4173
4130
|
(e) => {
|
|
4174
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4131
|
+
var t = e, { locale: r, format: n } = t, i = W(t, ["locale", "format"]);
|
|
4175
4132
|
if (r == null)
|
|
4176
4133
|
throw new Error(
|
|
4177
4134
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4178
4135
|
);
|
|
4179
|
-
return n ? i =
|
|
4136
|
+
return n ? i = Y("time", n) : Object.keys(i).length === 0 && (i = Y("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4180
4137
|
}
|
|
4181
|
-
),
|
|
4138
|
+
), Ei = (e = {}) => {
|
|
4182
4139
|
var t = e, {
|
|
4183
4140
|
locale: r = L()
|
|
4184
|
-
} = t, n =
|
|
4141
|
+
} = t, n = W(t, [
|
|
4185
4142
|
"locale"
|
|
4186
4143
|
]);
|
|
4187
|
-
return
|
|
4188
|
-
},
|
|
4144
|
+
return gi(ke({ locale: r }, n));
|
|
4145
|
+
}, xi = (e = {}) => {
|
|
4189
4146
|
var t = e, {
|
|
4190
4147
|
locale: r = L()
|
|
4191
|
-
} = t, n =
|
|
4148
|
+
} = t, n = W(t, [
|
|
4192
4149
|
"locale"
|
|
4193
4150
|
]);
|
|
4194
|
-
return
|
|
4195
|
-
},
|
|
4151
|
+
return yi(ke({ locale: r }, n));
|
|
4152
|
+
}, Si = (e = {}) => {
|
|
4196
4153
|
var t = e, {
|
|
4197
4154
|
locale: r = L()
|
|
4198
|
-
} = t, n =
|
|
4155
|
+
} = t, n = W(t, [
|
|
4199
4156
|
"locale"
|
|
4200
4157
|
]);
|
|
4201
|
-
return
|
|
4202
|
-
},
|
|
4158
|
+
return _i(ke({ locale: r }, n));
|
|
4159
|
+
}, Hi = ge(
|
|
4203
4160
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4204
|
-
(e, t = L()) => new
|
|
4205
|
-
ignoreTag:
|
|
4161
|
+
(e, t = L()) => new Jn(e, t, V().formats, {
|
|
4162
|
+
ignoreTag: V().ignoreTag
|
|
4206
4163
|
})
|
|
4207
|
-
),
|
|
4164
|
+
), wi = (e, t = {}) => {
|
|
4208
4165
|
var r, n, i, o;
|
|
4209
4166
|
let s = t;
|
|
4210
4167
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4217,9 +4174,9 @@ const q = (e, t) => {
|
|
|
4217
4174
|
throw new Error(
|
|
4218
4175
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4219
4176
|
);
|
|
4220
|
-
let l =
|
|
4177
|
+
let l = Qt(e, h);
|
|
4221
4178
|
if (!l)
|
|
4222
|
-
l = (o = (i = (n = (r =
|
|
4179
|
+
l = (o = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4223
4180
|
else if (typeof l != "string")
|
|
4224
4181
|
return console.warn(
|
|
4225
4182
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4228,7 +4185,7 @@ const q = (e, t) => {
|
|
|
4228
4185
|
return l;
|
|
4229
4186
|
let f = l;
|
|
4230
4187
|
try {
|
|
4231
|
-
f =
|
|
4188
|
+
f = Hi(l, h).format(a);
|
|
4232
4189
|
} catch (c) {
|
|
4233
4190
|
c instanceof Error && console.warn(
|
|
4234
4191
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4236,27 +4193,27 @@ const q = (e, t) => {
|
|
|
4236
4193
|
);
|
|
4237
4194
|
}
|
|
4238
4195
|
return f;
|
|
4239
|
-
},
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
window.emWidgets = { topic:
|
|
4246
|
-
const
|
|
4247
|
-
function
|
|
4248
|
-
|
|
4249
|
-
}
|
|
4250
|
-
function
|
|
4196
|
+
}, Ti = (e, t) => Si(t).format(e), Bi = (e, t) => xi(t).format(e), Ai = (e, t) => Ei(t).format(e), Pi = (e, t = L()) => Qt(e, t);
|
|
4197
|
+
X([re, te], () => wi);
|
|
4198
|
+
X([re], () => Ti);
|
|
4199
|
+
X([re], () => Bi);
|
|
4200
|
+
X([re], () => Ai);
|
|
4201
|
+
X([re, te], () => Pi);
|
|
4202
|
+
window.emWidgets = { topic: Fr };
|
|
4203
|
+
const vt = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4204
|
+
function Ci(e) {
|
|
4205
|
+
nr(e, "svelte-1d17c9c", ".CashierVideoWrapper{position:absolute;width:100%;height:100%;left:0;top:0;z-index:8;background-color:var(--mmw--color-grey-light, #f3f6f9)}.CashierVideoHeader{width:100%;height:29px;position:relative;text-transform:uppercase;text-align:right;background-color:var(--mmw--color-grey-light, #f3f6f9);font-size:var(--emw--font-size-medium, 16px);z-index:6}.CashierVideoHeader svg{padding:8px 8px 8px 15px}.CashierVideo video{object-fit:contain;width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.CashierVideo svg{cursor:pointer;margin-left:auto;position:absolute;right:0;z-index:6;padding:5px 13px}");
|
|
4206
|
+
}
|
|
4207
|
+
function gt(e) {
|
|
4251
4208
|
let t, r, n, i, o, s, a, h = !/*desktopView*/
|
|
4252
|
-
e[2] &&
|
|
4209
|
+
e[2] && yt(e), u = (
|
|
4253
4210
|
/*desktopView*/
|
|
4254
|
-
e[2] &&
|
|
4211
|
+
e[2] && _t(e)
|
|
4255
4212
|
);
|
|
4256
4213
|
return {
|
|
4257
4214
|
c() {
|
|
4258
|
-
t =
|
|
4259
|
-
e[0]) || _(s, "src", a), o.autoplay = !0, o.controls = !0, _(o, "controlslist", "nodownload"), _(o, "disablepictureinpicture", ""), _(n, "class", "CashierVideo"), _(t, "class", "CashierVideoWrapper"),
|
|
4215
|
+
t = O("div"), h && h.c(), r = Ze(), n = O("div"), u && u.c(), i = Ze(), o = O("video"), s = O("source"), ze(s.src, a = /*videosrc*/
|
|
4216
|
+
e[0]) || _(s, "src", a), o.autoplay = !0, o.controls = !0, _(o, "controlslist", "nodownload"), _(o, "disablepictureinpicture", ""), _(n, "class", "CashierVideo"), _(t, "class", "CashierVideoWrapper"), Qe(
|
|
4260
4217
|
t,
|
|
4261
4218
|
"CashierVideoWrapperDesktop",
|
|
4262
4219
|
/*desktopView*/
|
|
@@ -4264,15 +4221,15 @@ function St(e) {
|
|
|
4264
4221
|
);
|
|
4265
4222
|
},
|
|
4266
4223
|
m(l, f) {
|
|
4267
|
-
|
|
4224
|
+
ee(l, t, f), h && h.m(t, null), T(t, r), T(t, n), u && u.m(n, null), T(n, i), T(n, o), T(o, s), e[10](t);
|
|
4268
4225
|
},
|
|
4269
4226
|
p(l, f) {
|
|
4270
4227
|
/*desktopView*/
|
|
4271
|
-
l[2] ? h && (h.d(1), h = null) : h ? h.p(l, f) : (h =
|
|
4272
|
-
l[2] ? u ? u.p(l, f) : (u =
|
|
4273
|
-
1 && !
|
|
4228
|
+
l[2] ? h && (h.d(1), h = null) : h ? h.p(l, f) : (h = yt(l), h.c(), h.m(t, r)), /*desktopView*/
|
|
4229
|
+
l[2] ? u ? u.p(l, f) : (u = _t(l), u.c(), u.m(n, i)) : u && (u.d(1), u = null), f & /*videosrc*/
|
|
4230
|
+
1 && !ze(s.src, a = /*videosrc*/
|
|
4274
4231
|
l[0]) && _(s, "src", a), f & /*desktopView*/
|
|
4275
|
-
4 &&
|
|
4232
|
+
4 && Qe(
|
|
4276
4233
|
t,
|
|
4277
4234
|
"CashierVideoWrapperDesktop",
|
|
4278
4235
|
/*desktopView*/
|
|
@@ -4280,18 +4237,18 @@ function St(e) {
|
|
|
4280
4237
|
);
|
|
4281
4238
|
},
|
|
4282
4239
|
d(l) {
|
|
4283
|
-
l &&
|
|
4240
|
+
l && k(t), h && h.d(), u && u.d(), e[10](null);
|
|
4284
4241
|
}
|
|
4285
4242
|
};
|
|
4286
4243
|
}
|
|
4287
|
-
function
|
|
4244
|
+
function yt(e) {
|
|
4288
4245
|
let t, r, n, i, o;
|
|
4289
4246
|
return {
|
|
4290
4247
|
c() {
|
|
4291
|
-
t =
|
|
4248
|
+
t = O("div"), r = fe("svg"), n = fe("path"), _(n, "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"), _(n, "fill", "#111111"), _(r, "xmlns", "http://www.w3.org/2000/svg"), _(r, "width", "13"), _(r, "height", "13"), _(r, "viewBox", "0 0 13 13"), _(r, "fill", "none"), _(t, "class", "CashierVideoHeader");
|
|
4292
4249
|
},
|
|
4293
4250
|
m(s, a) {
|
|
4294
|
-
|
|
4251
|
+
ee(s, t, a), T(t, r), T(r, n), i || (o = Ht(
|
|
4295
4252
|
r,
|
|
4296
4253
|
"click",
|
|
4297
4254
|
/*click_handler*/
|
|
@@ -4300,18 +4257,18 @@ function wt(e) {
|
|
|
4300
4257
|
},
|
|
4301
4258
|
p: S,
|
|
4302
4259
|
d(s) {
|
|
4303
|
-
s &&
|
|
4260
|
+
s && k(t), i = !1, o();
|
|
4304
4261
|
}
|
|
4305
4262
|
};
|
|
4306
4263
|
}
|
|
4307
|
-
function
|
|
4264
|
+
function _t(e) {
|
|
4308
4265
|
let t, r, n, i;
|
|
4309
4266
|
return {
|
|
4310
4267
|
c() {
|
|
4311
4268
|
t = fe("svg"), r = fe("path"), _(r, "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"), _(r, "fill", "#111111"), _(t, "xmlns", "http://www.w3.org/2000/svg"), _(t, "width", "13"), _(t, "height", "13"), _(t, "viewBox", "0 0 13 13"), _(t, "fill", "none");
|
|
4312
4269
|
},
|
|
4313
4270
|
m(o, s) {
|
|
4314
|
-
|
|
4271
|
+
ee(o, t, s), T(t, r), n || (i = Ht(
|
|
4315
4272
|
t,
|
|
4316
4273
|
"click",
|
|
4317
4274
|
/*click_handler_1*/
|
|
@@ -4320,48 +4277,48 @@ function Ht(e) {
|
|
|
4320
4277
|
},
|
|
4321
4278
|
p: S,
|
|
4322
4279
|
d(o) {
|
|
4323
|
-
o &&
|
|
4280
|
+
o && k(t), n = !1, i();
|
|
4324
4281
|
}
|
|
4325
4282
|
};
|
|
4326
4283
|
}
|
|
4327
|
-
function
|
|
4284
|
+
function Oi(e) {
|
|
4328
4285
|
let t, r = (
|
|
4329
4286
|
/*show*/
|
|
4330
|
-
e[3] &&
|
|
4287
|
+
e[3] && gt(e)
|
|
4331
4288
|
);
|
|
4332
4289
|
return {
|
|
4333
4290
|
c() {
|
|
4334
|
-
r && r.c(), t =
|
|
4291
|
+
r && r.c(), t = sr();
|
|
4335
4292
|
},
|
|
4336
4293
|
m(n, i) {
|
|
4337
|
-
r && r.m(n, i),
|
|
4294
|
+
r && r.m(n, i), ee(n, t, i);
|
|
4338
4295
|
},
|
|
4339
4296
|
p(n, [i]) {
|
|
4340
4297
|
/*show*/
|
|
4341
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
4298
|
+
n[3] ? r ? r.p(n, i) : (r = gt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4342
4299
|
},
|
|
4343
4300
|
i: S,
|
|
4344
4301
|
o: S,
|
|
4345
4302
|
d(n) {
|
|
4346
|
-
n &&
|
|
4303
|
+
n && k(t), r && r.d(n);
|
|
4347
4304
|
}
|
|
4348
4305
|
};
|
|
4349
4306
|
}
|
|
4350
|
-
function
|
|
4307
|
+
function Li(e, t, r) {
|
|
4351
4308
|
let { clientstyling: n = "" } = t, { clientstylingurl: i = "" } = t, { videosrc: o } = t, { mbsource: s = "" } = t, a = window.navigator.userAgent, h = !0, u = !1, l;
|
|
4352
4309
|
const f = () => {
|
|
4353
4310
|
r(3, u = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
4354
4311
|
}, c = (E) => {
|
|
4355
4312
|
E.data.type == "ShowCashierVideoModal" && (r(3, u = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), E.data.type == "HideCashierVideoModal" && f();
|
|
4356
|
-
},
|
|
4357
|
-
r(2, h = !
|
|
4313
|
+
}, b = () => {
|
|
4314
|
+
r(2, h = !vt(a));
|
|
4358
4315
|
};
|
|
4359
|
-
|
|
4316
|
+
lr(() => (window.addEventListener("message", c, !1), () => {
|
|
4360
4317
|
window.removeEventListener("message", c);
|
|
4361
4318
|
}));
|
|
4362
|
-
const
|
|
4363
|
-
function
|
|
4364
|
-
|
|
4319
|
+
const g = () => f(), v = () => f();
|
|
4320
|
+
function H(E) {
|
|
4321
|
+
Te[E ? "unshift" : "push"](() => {
|
|
4365
4322
|
l = E, r(1, l);
|
|
4366
4323
|
});
|
|
4367
4324
|
}
|
|
@@ -4369,10 +4326,10 @@ function Ri(e, t, r) {
|
|
|
4369
4326
|
"clientstyling" in E && r(5, n = E.clientstyling), "clientstylingurl" in E && r(6, i = E.clientstylingurl), "videosrc" in E && r(0, o = E.videosrc), "mbsource" in E && r(7, s = E.mbsource);
|
|
4370
4327
|
}, e.$$.update = () => {
|
|
4371
4328
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4372
|
-
34 && n && l &&
|
|
4373
|
-
66 && i && l &&
|
|
4374
|
-
130 && s && l &&
|
|
4375
|
-
},
|
|
4329
|
+
34 && n && l && Hr(l, n), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4330
|
+
66 && i && l && wr(l, i), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4331
|
+
130 && s && l && Tr(l, `${s}.Style`);
|
|
4332
|
+
}, vt(a) && b(), [
|
|
4376
4333
|
o,
|
|
4377
4334
|
l,
|
|
4378
4335
|
h,
|
|
@@ -4381,26 +4338,26 @@ function Ri(e, t, r) {
|
|
|
4381
4338
|
n,
|
|
4382
4339
|
i,
|
|
4383
4340
|
s,
|
|
4341
|
+
g,
|
|
4384
4342
|
v,
|
|
4385
|
-
|
|
4386
|
-
w
|
|
4343
|
+
H
|
|
4387
4344
|
];
|
|
4388
4345
|
}
|
|
4389
|
-
class
|
|
4346
|
+
class Ii extends xr {
|
|
4390
4347
|
constructor(t) {
|
|
4391
|
-
super(),
|
|
4348
|
+
super(), _r(
|
|
4392
4349
|
this,
|
|
4393
4350
|
t,
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4351
|
+
Li,
|
|
4352
|
+
Oi,
|
|
4353
|
+
xt,
|
|
4397
4354
|
{
|
|
4398
4355
|
clientstyling: 5,
|
|
4399
4356
|
clientstylingurl: 6,
|
|
4400
4357
|
videosrc: 0,
|
|
4401
4358
|
mbsource: 7
|
|
4402
4359
|
},
|
|
4403
|
-
|
|
4360
|
+
Ci
|
|
4404
4361
|
);
|
|
4405
4362
|
}
|
|
4406
4363
|
get clientstyling() {
|
|
@@ -4428,7 +4385,7 @@ class Ui extends Br {
|
|
|
4428
4385
|
this.$$set({ mbsource: t }), R();
|
|
4429
4386
|
}
|
|
4430
4387
|
}
|
|
4431
|
-
|
|
4388
|
+
Er(Ii, { clientstyling: {}, clientstylingurl: {}, videosrc: {}, mbsource: {} }, [], [], !0);
|
|
4432
4389
|
export {
|
|
4433
|
-
|
|
4390
|
+
Ii as C
|
|
4434
4391
|
};
|