@everymatrix/cashier-video-modal 1.76.13 → 1.76.14
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-B8Oh8rwr.js} +700 -721
- package/components/{CashierVideoModal-DpT89WDt.js → CashierVideoModal-CAxILc6g.js} +717 -738
- package/components/CashierVideoModal-CoxcU2kH.cjs +18 -0
- 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,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var fr = Object.defineProperty, cr = Object.defineProperties;
|
|
2
|
+
var pr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var qe = Object.getOwnPropertySymbols;
|
|
4
|
+
var dr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var _e = (e, t, r) => t in e ? fr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
dr.call(t, r) && _e(e, r, t[r]);
|
|
8
|
+
if (qe)
|
|
9
|
+
for (var r of qe(t))
|
|
10
|
+
mr.call(t, r) && _e(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, Ke = (e, t) => cr(e, pr(t));
|
|
13
|
+
var H = (e, t, r) => (_e(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(h));
|
|
@@ -29,29 +29,29 @@ var rt = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function S() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Ct(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function tt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function ee(e) {
|
|
39
|
+
e.forEach(Ct);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Xe(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ot(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
let oe;
|
|
48
|
-
function
|
|
48
|
+
function rt(e, t) {
|
|
49
49
|
return e === t ? !0 : (oe || (oe = document.createElement("a")), oe.href = t, e === oe.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function br(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function vr(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -60,17 +60,17 @@ function gr(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function B(e, t) {
|
|
64
64
|
e.appendChild(t);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
const n =
|
|
66
|
+
function gr(e, t, r) {
|
|
67
|
+
const n = yr(e);
|
|
68
68
|
if (!n.getElementById(t)) {
|
|
69
69
|
const i = L("style");
|
|
70
|
-
i.id = t, i.textContent = r,
|
|
70
|
+
i.id = t, i.textContent = r, _r(n, i);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function yr(e) {
|
|
74
74
|
if (!e)
|
|
75
75
|
return document;
|
|
76
76
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -80,17 +80,17 @@ function _r(e) {
|
|
|
80
80
|
t
|
|
81
81
|
) : e.ownerDocument;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return
|
|
83
|
+
function _r(e, t) {
|
|
84
|
+
return B(
|
|
85
85
|
/** @type {Document} */
|
|
86
86
|
e.head || e,
|
|
87
87
|
t
|
|
88
88
|
), t.sheet;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function te(e, t, r) {
|
|
91
91
|
e.insertBefore(t, r || null);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function X(e) {
|
|
94
94
|
e.parentNode && e.parentNode.removeChild(e);
|
|
95
95
|
}
|
|
96
96
|
function L(e) {
|
|
@@ -99,28 +99,28 @@ function L(e) {
|
|
|
99
99
|
function ce(e) {
|
|
100
100
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Lt(e) {
|
|
103
103
|
return document.createTextNode(e);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
return
|
|
105
|
+
function nt() {
|
|
106
|
+
return Lt(" ");
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
108
|
+
function Er() {
|
|
109
|
+
return Lt("");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function It(e, t, r, n) {
|
|
112
112
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
113
113
|
}
|
|
114
114
|
function _(e, t, r) {
|
|
115
115
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function xr(e) {
|
|
118
118
|
return Array.from(e.childNodes);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function it(e, t, r) {
|
|
121
121
|
e.classList.toggle(t, !!r);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Sr(e) {
|
|
124
124
|
const t = {};
|
|
125
125
|
return e.childNodes.forEach(
|
|
126
126
|
/** @param {Element} node */
|
|
@@ -129,87 +129,87 @@ function wr(e) {
|
|
|
129
129
|
}
|
|
130
130
|
), t;
|
|
131
131
|
}
|
|
132
|
-
let
|
|
133
|
-
function
|
|
134
|
-
|
|
132
|
+
let q;
|
|
133
|
+
function J(e) {
|
|
134
|
+
q = e;
|
|
135
135
|
}
|
|
136
136
|
function Hr() {
|
|
137
|
-
if (!
|
|
137
|
+
if (!q)
|
|
138
138
|
throw new Error("Function called outside component initialization");
|
|
139
|
-
return
|
|
139
|
+
return q;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function wr(e) {
|
|
142
142
|
Hr().$$.on_mount.push(e);
|
|
143
143
|
}
|
|
144
|
-
const R = [],
|
|
144
|
+
const R = [], Pe = [];
|
|
145
145
|
let D = [];
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
146
|
+
const ot = [], Tr = /* @__PURE__ */ Promise.resolve();
|
|
147
|
+
let Ce = !1;
|
|
148
|
+
function Br() {
|
|
149
|
+
Ce || (Ce = !0, Tr.then(U));
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Oe(e) {
|
|
152
152
|
D.push(e);
|
|
153
153
|
}
|
|
154
|
-
const
|
|
154
|
+
const Ee = /* @__PURE__ */ new Set();
|
|
155
155
|
let M = 0;
|
|
156
156
|
function U() {
|
|
157
157
|
if (M !== 0)
|
|
158
158
|
return;
|
|
159
|
-
const e =
|
|
159
|
+
const e = q;
|
|
160
160
|
do {
|
|
161
161
|
try {
|
|
162
162
|
for (; M < R.length; ) {
|
|
163
163
|
const t = R[M];
|
|
164
|
-
M++,
|
|
164
|
+
M++, J(t), Ar(t.$$);
|
|
165
165
|
}
|
|
166
166
|
} catch (t) {
|
|
167
167
|
throw R.length = 0, M = 0, t;
|
|
168
168
|
}
|
|
169
|
-
for (
|
|
170
|
-
|
|
169
|
+
for (J(null), R.length = 0, M = 0; Pe.length; )
|
|
170
|
+
Pe.pop()();
|
|
171
171
|
for (let t = 0; t < D.length; t += 1) {
|
|
172
172
|
const r = D[t];
|
|
173
|
-
|
|
173
|
+
Ee.has(r) || (Ee.add(r), r());
|
|
174
174
|
}
|
|
175
175
|
D.length = 0;
|
|
176
176
|
} while (R.length);
|
|
177
|
-
for (;
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
for (; ot.length; )
|
|
178
|
+
ot.pop()();
|
|
179
|
+
Ce = !1, Ee.clear(), J(e);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Ar(e) {
|
|
182
182
|
if (e.fragment !== null) {
|
|
183
|
-
e.update(),
|
|
183
|
+
e.update(), ee(e.before_update);
|
|
184
184
|
const t = e.dirty;
|
|
185
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
185
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Oe);
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Pr(e) {
|
|
189
189
|
const t = [], r = [];
|
|
190
190
|
D.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), D = t;
|
|
191
191
|
}
|
|
192
192
|
const Cr = /* @__PURE__ */ new Set();
|
|
193
|
-
function
|
|
193
|
+
function Or(e, t) {
|
|
194
194
|
e && e.i && (Cr.delete(e), e.i(t));
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Lr(e, t, r) {
|
|
197
197
|
const { fragment: n, after_update: i } = e.$$;
|
|
198
|
-
n && n.m(t, r),
|
|
199
|
-
const o = e.$$.on_mount.map(
|
|
200
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
201
|
-
}), i.forEach(
|
|
198
|
+
n && n.m(t, r), Oe(() => {
|
|
199
|
+
const o = e.$$.on_mount.map(Ct).filter(Xe);
|
|
200
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ee(o), e.$$.on_mount = [];
|
|
201
|
+
}), i.forEach(Oe);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Ir(e, t) {
|
|
204
204
|
const r = e.$$;
|
|
205
|
-
r.fragment !== null && (
|
|
205
|
+
r.fragment !== null && (Pr(r.after_update), ee(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
e.$$.dirty[0] === -1 && (R.push(e),
|
|
207
|
+
function Nr(e, t) {
|
|
208
|
+
e.$$.dirty[0] === -1 && (R.push(e), Br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
const h =
|
|
212
|
-
|
|
210
|
+
function Mr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
211
|
+
const h = q;
|
|
212
|
+
J(e);
|
|
213
213
|
const u = e.$$ = {
|
|
214
214
|
fragment: null,
|
|
215
215
|
ctx: [],
|
|
@@ -217,7 +217,7 @@ function $r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
217
217
|
props: o,
|
|
218
218
|
update: S,
|
|
219
219
|
not_equal: i,
|
|
220
|
-
bound:
|
|
220
|
+
bound: tt(),
|
|
221
221
|
// lifecycle
|
|
222
222
|
on_mount: [],
|
|
223
223
|
on_destroy: [],
|
|
@@ -226,48 +226,48 @@ function $r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
226
226
|
after_update: [],
|
|
227
227
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
228
228
|
// everything else
|
|
229
|
-
callbacks:
|
|
229
|
+
callbacks: tt(),
|
|
230
230
|
dirty: a,
|
|
231
231
|
skip_bound: !1,
|
|
232
232
|
root: t.target || h.$$.root
|
|
233
233
|
};
|
|
234
234
|
s && s(u.root);
|
|
235
235
|
let l = !1;
|
|
236
|
-
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...
|
|
237
|
-
const
|
|
238
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
239
|
-
}) : [], u.update(), l = !0,
|
|
236
|
+
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...b) => {
|
|
237
|
+
const g = b.length ? b[0] : c;
|
|
238
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = g) && (!u.skip_bound && u.bound[f] && u.bound[f](g), l && Nr(e, f)), c;
|
|
239
|
+
}) : [], u.update(), l = !0, ee(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
240
240
|
if (t.hydrate) {
|
|
241
|
-
const f =
|
|
242
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
241
|
+
const f = xr(t.target);
|
|
242
|
+
u.fragment && u.fragment.l(f), f.forEach(X);
|
|
243
243
|
} else
|
|
244
244
|
u.fragment && u.fragment.c();
|
|
245
|
-
t.intro &&
|
|
245
|
+
t.intro && Or(e.$$.fragment), Lr(e, t.target, t.anchor), U();
|
|
246
246
|
}
|
|
247
|
-
|
|
247
|
+
J(h);
|
|
248
248
|
}
|
|
249
|
-
let
|
|
250
|
-
typeof HTMLElement == "function" && (
|
|
249
|
+
let Nt;
|
|
250
|
+
typeof HTMLElement == "function" && (Nt = class extends HTMLElement {
|
|
251
251
|
constructor(t, r, n) {
|
|
252
252
|
super();
|
|
253
253
|
/** The Svelte component constructor */
|
|
254
|
-
|
|
254
|
+
H(this, "$$ctor");
|
|
255
255
|
/** Slots */
|
|
256
|
-
|
|
256
|
+
H(this, "$$s");
|
|
257
257
|
/** The Svelte component instance */
|
|
258
|
-
|
|
258
|
+
H(this, "$$c");
|
|
259
259
|
/** Whether or not the custom element is connected */
|
|
260
|
-
|
|
260
|
+
H(this, "$$cn", !1);
|
|
261
261
|
/** Component props data */
|
|
262
|
-
|
|
262
|
+
H(this, "$$d", {});
|
|
263
263
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
264
|
-
|
|
264
|
+
H(this, "$$r", !1);
|
|
265
265
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
266
|
-
|
|
266
|
+
H(this, "$$p_d", {});
|
|
267
267
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
268
|
-
|
|
268
|
+
H(this, "$$l", {});
|
|
269
269
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
270
|
-
|
|
270
|
+
H(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
271
271
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
272
272
|
}
|
|
273
273
|
addEventListener(t, r, n) {
|
|
@@ -284,7 +284,7 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
connectedCallback() {
|
|
287
|
-
return
|
|
287
|
+
return et(this, null, function* () {
|
|
288
288
|
if (this.$$cn = !0, !this.$$c) {
|
|
289
289
|
let t = function(o) {
|
|
290
290
|
return () => {
|
|
@@ -298,17 +298,17 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
|
298
298
|
* @param {HTMLElement} [anchor]
|
|
299
299
|
*/
|
|
300
300
|
m: function(u, l) {
|
|
301
|
-
|
|
301
|
+
te(u, s, l);
|
|
302
302
|
},
|
|
303
303
|
d: function(u) {
|
|
304
|
-
u &&
|
|
304
|
+
u && X(s);
|
|
305
305
|
}
|
|
306
306
|
};
|
|
307
307
|
};
|
|
308
308
|
};
|
|
309
309
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
310
310
|
return;
|
|
311
|
-
const r = {}, n =
|
|
311
|
+
const r = {}, n = Sr(this);
|
|
312
312
|
for (const o of this.$$s)
|
|
313
313
|
o in n && (r[o] = [t(o)]);
|
|
314
314
|
for (const o of this.attributes) {
|
|
@@ -319,7 +319,7 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
|
319
319
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
320
320
|
this.$$c = new this.$$ctor({
|
|
321
321
|
target: this.shadowRoot || this,
|
|
322
|
-
props:
|
|
322
|
+
props: Ke(Ye({}, this.$$d), {
|
|
323
323
|
$$slots: r,
|
|
324
324
|
$$scope: {
|
|
325
325
|
ctx: []
|
|
@@ -397,8 +397,8 @@ function ue(e, t, r, n) {
|
|
|
397
397
|
return t;
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
let s = class extends
|
|
400
|
+
function $r(e, t, r, n, i, o) {
|
|
401
|
+
let s = class extends Nt {
|
|
402
402
|
constructor() {
|
|
403
403
|
super(e, r, i), this.$$p_d = t;
|
|
404
404
|
}
|
|
@@ -428,7 +428,7 @@ function Rr(e, t, r, n, i, o) {
|
|
|
428
428
|
}), e.element = /** @type {any} */
|
|
429
429
|
s, s;
|
|
430
430
|
}
|
|
431
|
-
class
|
|
431
|
+
class Rr {
|
|
432
432
|
constructor() {
|
|
433
433
|
/**
|
|
434
434
|
* ### PRIVATE API
|
|
@@ -437,7 +437,7 @@ class Ur {
|
|
|
437
437
|
*
|
|
438
438
|
* @type {any}
|
|
439
439
|
*/
|
|
440
|
-
|
|
440
|
+
H(this, "$$");
|
|
441
441
|
/**
|
|
442
442
|
* ### PRIVATE API
|
|
443
443
|
*
|
|
@@ -445,11 +445,11 @@ class Ur {
|
|
|
445
445
|
*
|
|
446
446
|
* @type {any}
|
|
447
447
|
*/
|
|
448
|
-
|
|
448
|
+
H(this, "$$set");
|
|
449
449
|
}
|
|
450
450
|
/** @returns {void} */
|
|
451
451
|
$destroy() {
|
|
452
|
-
|
|
452
|
+
Ir(this, 1), this.$destroy = S;
|
|
453
453
|
}
|
|
454
454
|
/**
|
|
455
455
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -458,7 +458,7 @@ class Ur {
|
|
|
458
458
|
* @returns {() => void}
|
|
459
459
|
*/
|
|
460
460
|
$on(t, r) {
|
|
461
|
-
if (!
|
|
461
|
+
if (!Xe(r))
|
|
462
462
|
return S;
|
|
463
463
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
464
464
|
return n.push(r), () => {
|
|
@@ -471,18 +471,18 @@ class Ur {
|
|
|
471
471
|
* @returns {void}
|
|
472
472
|
*/
|
|
473
473
|
$set(t) {
|
|
474
|
-
this.$$set && !
|
|
474
|
+
this.$$set && !br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
const
|
|
478
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
479
|
-
function
|
|
477
|
+
const Ur = "4";
|
|
478
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ur);
|
|
479
|
+
function Dr(e, t) {
|
|
480
480
|
if (e) {
|
|
481
481
|
const r = document.createElement("style");
|
|
482
482
|
r.innerHTML = t, e.appendChild(r);
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function Gr(e, t) {
|
|
486
486
|
const r = new URL(t);
|
|
487
487
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
488
488
|
const i = document.createElement("style");
|
|
@@ -491,7 +491,7 @@ function Fr(e, t) {
|
|
|
491
491
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
492
492
|
});
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function Fr(e, t, r) {
|
|
495
495
|
if (window.emMessageBus) {
|
|
496
496
|
const n = document.createElement("style");
|
|
497
497
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -513,24 +513,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
513
513
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
514
514
|
PERFORMANCE OF THIS SOFTWARE.
|
|
515
515
|
***************************************************************************** */
|
|
516
|
-
var
|
|
517
|
-
return
|
|
516
|
+
var Le = function(e, t) {
|
|
517
|
+
return Le = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
518
518
|
r.__proto__ = n;
|
|
519
519
|
} || function(r, n) {
|
|
520
520
|
for (var i in n)
|
|
521
521
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
522
|
-
},
|
|
522
|
+
}, Le(e, t);
|
|
523
523
|
};
|
|
524
|
-
function
|
|
524
|
+
function P(e, t) {
|
|
525
525
|
if (typeof t != "function" && t !== null)
|
|
526
526
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
527
|
-
|
|
527
|
+
Le(e, t);
|
|
528
528
|
function r() {
|
|
529
529
|
this.constructor = e;
|
|
530
530
|
}
|
|
531
531
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
var m = function() {
|
|
534
|
+
return m = Object.assign || function(t) {
|
|
535
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
536
|
+
r = arguments[n];
|
|
537
|
+
for (var o in r)
|
|
538
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
539
|
+
}
|
|
540
|
+
return t;
|
|
541
|
+
}, m.apply(this, arguments);
|
|
542
|
+
};
|
|
543
|
+
function jr(e, t) {
|
|
544
|
+
var r = {};
|
|
545
|
+
for (var n in e)
|
|
546
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
547
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
548
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
549
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
550
|
+
return r;
|
|
551
|
+
}
|
|
552
|
+
function Ie(e) {
|
|
534
553
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
535
554
|
if (r)
|
|
536
555
|
return r.call(e);
|
|
@@ -542,7 +561,7 @@ function Me(e) {
|
|
|
542
561
|
};
|
|
543
562
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
544
563
|
}
|
|
545
|
-
function
|
|
564
|
+
function Ne(e, t) {
|
|
546
565
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
547
566
|
if (!r)
|
|
548
567
|
return e;
|
|
@@ -562,22 +581,22 @@ function $e(e, t) {
|
|
|
562
581
|
}
|
|
563
582
|
return o;
|
|
564
583
|
}
|
|
565
|
-
function
|
|
566
|
-
if (arguments.length === 2)
|
|
584
|
+
function G(e, t, r) {
|
|
585
|
+
if (r || arguments.length === 2)
|
|
567
586
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
568
587
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
569
588
|
return e.concat(o || t);
|
|
570
589
|
}
|
|
571
|
-
function
|
|
590
|
+
function A(e) {
|
|
572
591
|
return typeof e == "function";
|
|
573
592
|
}
|
|
574
|
-
function
|
|
593
|
+
function Mt(e) {
|
|
575
594
|
var t = function(n) {
|
|
576
595
|
Error.call(n), n.stack = new Error().stack;
|
|
577
596
|
}, r = e(t);
|
|
578
597
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
579
598
|
}
|
|
580
|
-
var
|
|
599
|
+
var xe = Mt(function(e) {
|
|
581
600
|
return function(r) {
|
|
582
601
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
583
602
|
` + r.map(function(n, i) {
|
|
@@ -586,13 +605,13 @@ var we = Rt(function(e) {
|
|
|
586
605
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
587
606
|
};
|
|
588
607
|
});
|
|
589
|
-
function
|
|
608
|
+
function Me(e, t) {
|
|
590
609
|
if (e) {
|
|
591
610
|
var r = e.indexOf(t);
|
|
592
611
|
0 <= r && e.splice(r, 1);
|
|
593
612
|
}
|
|
594
613
|
}
|
|
595
|
-
var
|
|
614
|
+
var me = function() {
|
|
596
615
|
function e(t) {
|
|
597
616
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
598
617
|
}
|
|
@@ -604,12 +623,12 @@ var be = function() {
|
|
|
604
623
|
if (s)
|
|
605
624
|
if (this._parentage = null, Array.isArray(s))
|
|
606
625
|
try {
|
|
607
|
-
for (var a =
|
|
626
|
+
for (var a = Ie(s), h = a.next(); !h.done; h = a.next()) {
|
|
608
627
|
var u = h.value;
|
|
609
628
|
u.remove(this);
|
|
610
629
|
}
|
|
611
|
-
} catch (
|
|
612
|
-
t = { error:
|
|
630
|
+
} catch (v) {
|
|
631
|
+
t = { error: v };
|
|
613
632
|
} finally {
|
|
614
633
|
try {
|
|
615
634
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -621,29 +640,29 @@ var be = function() {
|
|
|
621
640
|
else
|
|
622
641
|
s.remove(this);
|
|
623
642
|
var l = this.initialTeardown;
|
|
624
|
-
if (
|
|
643
|
+
if (A(l))
|
|
625
644
|
try {
|
|
626
645
|
l();
|
|
627
|
-
} catch (
|
|
628
|
-
o =
|
|
646
|
+
} catch (v) {
|
|
647
|
+
o = v instanceof xe ? v.errors : [v];
|
|
629
648
|
}
|
|
630
649
|
var f = this._finalizers;
|
|
631
650
|
if (f) {
|
|
632
651
|
this._finalizers = null;
|
|
633
652
|
try {
|
|
634
|
-
for (var c =
|
|
635
|
-
var
|
|
653
|
+
for (var c = Ie(f), b = c.next(); !b.done; b = c.next()) {
|
|
654
|
+
var g = b.value;
|
|
636
655
|
try {
|
|
637
|
-
|
|
638
|
-
} catch (
|
|
639
|
-
o = o != null ? o : [],
|
|
656
|
+
st(g);
|
|
657
|
+
} catch (v) {
|
|
658
|
+
o = o != null ? o : [], v instanceof xe ? o = G(G([], Ne(o)), Ne(v.errors)) : o.push(v);
|
|
640
659
|
}
|
|
641
660
|
}
|
|
642
|
-
} catch (
|
|
643
|
-
n = { error:
|
|
661
|
+
} catch (v) {
|
|
662
|
+
n = { error: v };
|
|
644
663
|
} finally {
|
|
645
664
|
try {
|
|
646
|
-
|
|
665
|
+
b && !b.done && (i = c.return) && i.call(c);
|
|
647
666
|
} finally {
|
|
648
667
|
if (n)
|
|
649
668
|
throw n.error;
|
|
@@ -651,13 +670,13 @@ var be = function() {
|
|
|
651
670
|
}
|
|
652
671
|
}
|
|
653
672
|
if (o)
|
|
654
|
-
throw new
|
|
673
|
+
throw new xe(o);
|
|
655
674
|
}
|
|
656
675
|
}, e.prototype.add = function(t) {
|
|
657
676
|
var r;
|
|
658
677
|
if (t && t !== this)
|
|
659
678
|
if (this.closed)
|
|
660
|
-
|
|
679
|
+
st(t);
|
|
661
680
|
else {
|
|
662
681
|
if (t instanceof e) {
|
|
663
682
|
if (t.closed || t._hasParent(this))
|
|
@@ -674,52 +693,56 @@ var be = function() {
|
|
|
674
693
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
675
694
|
}, e.prototype._removeParent = function(t) {
|
|
676
695
|
var r = this._parentage;
|
|
677
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
696
|
+
r === t ? this._parentage = null : Array.isArray(r) && Me(r, t);
|
|
678
697
|
}, e.prototype.remove = function(t) {
|
|
679
698
|
var r = this._finalizers;
|
|
680
|
-
r &&
|
|
699
|
+
r && Me(r, t), t instanceof e && t._removeParent(this);
|
|
681
700
|
}, e.EMPTY = function() {
|
|
682
701
|
var t = new e();
|
|
683
702
|
return t.closed = !0, t;
|
|
684
703
|
}(), e;
|
|
685
|
-
}(),
|
|
686
|
-
function
|
|
687
|
-
return e instanceof
|
|
688
|
-
}
|
|
689
|
-
function
|
|
690
|
-
|
|
691
|
-
}
|
|
692
|
-
var
|
|
693
|
-
|
|
694
|
-
|
|
704
|
+
}(), $t = me.EMPTY;
|
|
705
|
+
function Rt(e) {
|
|
706
|
+
return e instanceof me || e && "closed" in e && A(e.remove) && A(e.add) && A(e.unsubscribe);
|
|
707
|
+
}
|
|
708
|
+
function st(e) {
|
|
709
|
+
A(e) ? e() : e.unsubscribe();
|
|
710
|
+
}
|
|
711
|
+
var Ut = {
|
|
712
|
+
onUnhandledError: null,
|
|
713
|
+
onStoppedNotification: null,
|
|
714
|
+
Promise: void 0,
|
|
715
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
716
|
+
useDeprecatedNextContext: !1
|
|
717
|
+
}, Vr = {
|
|
695
718
|
setTimeout: function(e, t) {
|
|
696
719
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
697
720
|
r[n - 2] = arguments[n];
|
|
698
|
-
return setTimeout.apply(void 0,
|
|
721
|
+
return setTimeout.apply(void 0, G([e, t], Ne(r)));
|
|
699
722
|
},
|
|
700
723
|
clearTimeout: function(e) {
|
|
701
724
|
return clearTimeout(e);
|
|
702
725
|
},
|
|
703
726
|
delegate: void 0
|
|
704
727
|
};
|
|
705
|
-
function
|
|
706
|
-
|
|
728
|
+
function kr(e) {
|
|
729
|
+
Vr.setTimeout(function() {
|
|
707
730
|
throw e;
|
|
708
731
|
});
|
|
709
732
|
}
|
|
710
|
-
function
|
|
733
|
+
function at() {
|
|
711
734
|
}
|
|
712
735
|
function he(e) {
|
|
713
736
|
e();
|
|
714
737
|
}
|
|
715
|
-
var
|
|
716
|
-
|
|
738
|
+
var Dt = function(e) {
|
|
739
|
+
P(t, e);
|
|
717
740
|
function t(r) {
|
|
718
741
|
var n = e.call(this) || this;
|
|
719
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
742
|
+
return n.isStopped = !1, r ? (n.destination = r, Rt(r) && r.add(n)) : n.destination = Zr, n;
|
|
720
743
|
}
|
|
721
744
|
return t.create = function(r, n, i) {
|
|
722
|
-
return new
|
|
745
|
+
return new $e(r, n, i);
|
|
723
746
|
}, t.prototype.next = function(r) {
|
|
724
747
|
this.isStopped || this._next(r);
|
|
725
748
|
}, t.prototype.error = function(r) {
|
|
@@ -743,7 +766,11 @@ var Gt = function(e) {
|
|
|
743
766
|
this.unsubscribe();
|
|
744
767
|
}
|
|
745
768
|
}, t;
|
|
746
|
-
}(
|
|
769
|
+
}(me), Xr = Function.prototype.bind;
|
|
770
|
+
function Se(e, t) {
|
|
771
|
+
return Xr.call(e, t);
|
|
772
|
+
}
|
|
773
|
+
var Wr = function() {
|
|
747
774
|
function e(t) {
|
|
748
775
|
this.partialObserver = t;
|
|
749
776
|
}
|
|
@@ -774,29 +801,41 @@ var Gt = function(e) {
|
|
|
774
801
|
se(r);
|
|
775
802
|
}
|
|
776
803
|
}, e;
|
|
777
|
-
}(),
|
|
778
|
-
|
|
804
|
+
}(), $e = function(e) {
|
|
805
|
+
P(t, e);
|
|
779
806
|
function t(r, n, i) {
|
|
780
807
|
var o = e.call(this) || this, s;
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
808
|
+
if (A(r) || !r)
|
|
809
|
+
s = {
|
|
810
|
+
next: r != null ? r : void 0,
|
|
811
|
+
error: n != null ? n : void 0,
|
|
812
|
+
complete: i != null ? i : void 0
|
|
813
|
+
};
|
|
814
|
+
else {
|
|
815
|
+
var a;
|
|
816
|
+
o && Ut.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
817
|
+
return o.unsubscribe();
|
|
818
|
+
}, s = {
|
|
819
|
+
next: r.next && Se(r.next, a),
|
|
820
|
+
error: r.error && Se(r.error, a),
|
|
821
|
+
complete: r.complete && Se(r.complete, a)
|
|
822
|
+
}) : s = r;
|
|
823
|
+
}
|
|
824
|
+
return o.destination = new Wr(s), o;
|
|
786
825
|
}
|
|
787
826
|
return t;
|
|
788
|
-
}(
|
|
827
|
+
}(Dt);
|
|
789
828
|
function se(e) {
|
|
790
|
-
|
|
829
|
+
kr(e);
|
|
791
830
|
}
|
|
792
831
|
function zr(e) {
|
|
793
832
|
throw e;
|
|
794
833
|
}
|
|
795
834
|
var Zr = {
|
|
796
835
|
closed: !0,
|
|
797
|
-
next:
|
|
836
|
+
next: at,
|
|
798
837
|
error: zr,
|
|
799
|
-
complete:
|
|
838
|
+
complete: at
|
|
800
839
|
}, Qr = function() {
|
|
801
840
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
802
841
|
}();
|
|
@@ -810,7 +849,7 @@ function qr(e) {
|
|
|
810
849
|
}, r);
|
|
811
850
|
};
|
|
812
851
|
}
|
|
813
|
-
var
|
|
852
|
+
var ut = function() {
|
|
814
853
|
function e(t) {
|
|
815
854
|
t && (this._subscribe = t);
|
|
816
855
|
}
|
|
@@ -818,7 +857,7 @@ var lt = function() {
|
|
|
818
857
|
var r = new e();
|
|
819
858
|
return r.source = this, r.operator = t, r;
|
|
820
859
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
821
|
-
var i = this, o = Kr(t) ? t : new
|
|
860
|
+
var i = this, o = Kr(t) ? t : new $e(t, r, n);
|
|
822
861
|
return he(function() {
|
|
823
862
|
var s = i, a = s.operator, h = s.source;
|
|
824
863
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -831,8 +870,8 @@ var lt = function() {
|
|
|
831
870
|
}
|
|
832
871
|
}, e.prototype.forEach = function(t, r) {
|
|
833
872
|
var n = this;
|
|
834
|
-
return r =
|
|
835
|
-
var s = new
|
|
873
|
+
return r = ht(r), new r(function(i, o) {
|
|
874
|
+
var s = new $e({
|
|
836
875
|
next: function(a) {
|
|
837
876
|
try {
|
|
838
877
|
t(a);
|
|
@@ -856,7 +895,7 @@ var lt = function() {
|
|
|
856
895
|
return qr(t)(this);
|
|
857
896
|
}, e.prototype.toPromise = function(t) {
|
|
858
897
|
var r = this;
|
|
859
|
-
return t =
|
|
898
|
+
return t = ht(t), new t(function(n, i) {
|
|
860
899
|
var o;
|
|
861
900
|
r.subscribe(function(s) {
|
|
862
901
|
return o = s;
|
|
@@ -870,28 +909,28 @@ var lt = function() {
|
|
|
870
909
|
return new e(t);
|
|
871
910
|
}, e;
|
|
872
911
|
}();
|
|
873
|
-
function
|
|
912
|
+
function ht(e) {
|
|
874
913
|
var t;
|
|
875
|
-
return (t = e != null ? e :
|
|
914
|
+
return (t = e != null ? e : Ut.Promise) !== null && t !== void 0 ? t : Promise;
|
|
876
915
|
}
|
|
877
916
|
function Yr(e) {
|
|
878
|
-
return e &&
|
|
917
|
+
return e && A(e.next) && A(e.error) && A(e.complete);
|
|
879
918
|
}
|
|
880
919
|
function Kr(e) {
|
|
881
|
-
return e && e instanceof
|
|
920
|
+
return e && e instanceof Dt || Yr(e) && Rt(e);
|
|
882
921
|
}
|
|
883
|
-
var en =
|
|
922
|
+
var en = Mt(function(e) {
|
|
884
923
|
return function() {
|
|
885
924
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
886
925
|
};
|
|
887
|
-
}),
|
|
888
|
-
|
|
926
|
+
}), Gt = function(e) {
|
|
927
|
+
P(t, e);
|
|
889
928
|
function t() {
|
|
890
929
|
var r = e.call(this) || this;
|
|
891
930
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
892
931
|
}
|
|
893
932
|
return t.prototype.lift = function(r) {
|
|
894
|
-
var n = new
|
|
933
|
+
var n = new lt(this, this);
|
|
895
934
|
return n.operator = r, n;
|
|
896
935
|
}, t.prototype._throwIfClosed = function() {
|
|
897
936
|
if (this.closed)
|
|
@@ -903,7 +942,7 @@ var en = Rt(function(e) {
|
|
|
903
942
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
904
943
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
905
944
|
try {
|
|
906
|
-
for (var s =
|
|
945
|
+
for (var s = Ie(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
907
946
|
var h = a.value;
|
|
908
947
|
h.next(r);
|
|
909
948
|
}
|
|
@@ -952,20 +991,20 @@ var en = Rt(function(e) {
|
|
|
952
991
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
953
992
|
}, t.prototype._innerSubscribe = function(r) {
|
|
954
993
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
955
|
-
return o || s ?
|
|
956
|
-
n.currentObservers = null,
|
|
994
|
+
return o || s ? $t : (this.currentObservers = null, a.push(r), new me(function() {
|
|
995
|
+
n.currentObservers = null, Me(a, r);
|
|
957
996
|
}));
|
|
958
997
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
959
998
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
960
999
|
i ? r.error(o) : s && r.complete();
|
|
961
1000
|
}, t.prototype.asObservable = function() {
|
|
962
|
-
var r = new
|
|
1001
|
+
var r = new ut();
|
|
963
1002
|
return r.source = this, r;
|
|
964
1003
|
}, t.create = function(r, n) {
|
|
965
|
-
return new
|
|
1004
|
+
return new lt(r, n);
|
|
966
1005
|
}, t;
|
|
967
|
-
}(
|
|
968
|
-
|
|
1006
|
+
}(ut), lt = function(e) {
|
|
1007
|
+
P(t, e);
|
|
969
1008
|
function t(r, n) {
|
|
970
1009
|
var i = e.call(this) || this;
|
|
971
1010
|
return i.destination = r, i.source = n, i;
|
|
@@ -981,17 +1020,17 @@ var en = Rt(function(e) {
|
|
|
981
1020
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
982
1021
|
}, t.prototype._subscribe = function(r) {
|
|
983
1022
|
var n, i;
|
|
984
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
1023
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : $t;
|
|
985
1024
|
}, t;
|
|
986
|
-
}(
|
|
1025
|
+
}(Gt), Ft = {
|
|
987
1026
|
now: function() {
|
|
988
|
-
return (
|
|
1027
|
+
return (Ft.delegate || Date).now();
|
|
989
1028
|
},
|
|
990
1029
|
delegate: void 0
|
|
991
1030
|
}, tn = function(e) {
|
|
992
|
-
|
|
1031
|
+
P(t, e);
|
|
993
1032
|
function t(r, n, i) {
|
|
994
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1033
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Ft);
|
|
995
1034
|
var o = e.call(this) || this;
|
|
996
1035
|
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;
|
|
997
1036
|
}
|
|
@@ -1011,24 +1050,24 @@ var en = Rt(function(e) {
|
|
|
1011
1050
|
u && o.splice(0, u + 1);
|
|
1012
1051
|
}
|
|
1013
1052
|
}, t;
|
|
1014
|
-
}(
|
|
1015
|
-
const
|
|
1016
|
-
if (
|
|
1053
|
+
}(Gt);
|
|
1054
|
+
const ft = [], ct = {}, rn = (e, t = 0) => {
|
|
1055
|
+
if (ft.indexOf(e) == -1) {
|
|
1017
1056
|
const r = new tn(t);
|
|
1018
|
-
|
|
1057
|
+
ct[e] = r, ft.push(e);
|
|
1019
1058
|
}
|
|
1020
|
-
return
|
|
1059
|
+
return ct[e];
|
|
1021
1060
|
}, $ = [];
|
|
1022
1061
|
function nn(e, t) {
|
|
1023
1062
|
return {
|
|
1024
|
-
subscribe:
|
|
1063
|
+
subscribe: be(e, t).subscribe
|
|
1025
1064
|
};
|
|
1026
1065
|
}
|
|
1027
|
-
function
|
|
1066
|
+
function be(e, t = S) {
|
|
1028
1067
|
let r;
|
|
1029
1068
|
const n = /* @__PURE__ */ new Set();
|
|
1030
1069
|
function i(a) {
|
|
1031
|
-
if (
|
|
1070
|
+
if (Ot(e, a) && (e = a, r)) {
|
|
1032
1071
|
const h = !$.length;
|
|
1033
1072
|
for (const u of n)
|
|
1034
1073
|
u[1](), $.push(u, e);
|
|
@@ -1050,7 +1089,7 @@ function ve(e, t = S) {
|
|
|
1050
1089
|
}
|
|
1051
1090
|
return { set: i, update: o, subscribe: s };
|
|
1052
1091
|
}
|
|
1053
|
-
function
|
|
1092
|
+
function W(e, t, r) {
|
|
1054
1093
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1055
1094
|
if (!i.every(Boolean))
|
|
1056
1095
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -1063,21 +1102,21 @@ function X(e, t, r) {
|
|
|
1063
1102
|
if (l)
|
|
1064
1103
|
return;
|
|
1065
1104
|
f();
|
|
1066
|
-
const
|
|
1067
|
-
o ? s(
|
|
1068
|
-
},
|
|
1069
|
-
(
|
|
1070
|
-
|
|
1071
|
-
(
|
|
1072
|
-
u[
|
|
1105
|
+
const g = t(n ? u[0] : u, s, a);
|
|
1106
|
+
o ? s(g) : f = Xe(g) ? g : S;
|
|
1107
|
+
}, b = i.map(
|
|
1108
|
+
(g, v) => vr(
|
|
1109
|
+
g,
|
|
1110
|
+
(w) => {
|
|
1111
|
+
u[v] = w, l &= ~(1 << v), h && c();
|
|
1073
1112
|
},
|
|
1074
1113
|
() => {
|
|
1075
|
-
l |= 1 <<
|
|
1114
|
+
l |= 1 << v;
|
|
1076
1115
|
}
|
|
1077
1116
|
)
|
|
1078
1117
|
);
|
|
1079
1118
|
return h = !0, c(), function() {
|
|
1080
|
-
|
|
1119
|
+
ee(b), f(), h = !1;
|
|
1081
1120
|
};
|
|
1082
1121
|
});
|
|
1083
1122
|
}
|
|
@@ -1101,29 +1140,29 @@ function fn(e) {
|
|
|
1101
1140
|
function cn(e) {
|
|
1102
1141
|
return Array.isArray(e) ? [] : {};
|
|
1103
1142
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1143
|
+
function Y(e, t) {
|
|
1144
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(cn(e), e, t) : e;
|
|
1106
1145
|
}
|
|
1107
1146
|
function pn(e, t, r) {
|
|
1108
1147
|
return e.concat(t).map(function(n) {
|
|
1109
|
-
return
|
|
1148
|
+
return Y(n, r);
|
|
1110
1149
|
});
|
|
1111
1150
|
}
|
|
1112
1151
|
function dn(e, t) {
|
|
1113
1152
|
if (!t.customMerge)
|
|
1114
|
-
return
|
|
1153
|
+
return F;
|
|
1115
1154
|
var r = t.customMerge(e);
|
|
1116
|
-
return typeof r == "function" ? r :
|
|
1155
|
+
return typeof r == "function" ? r : F;
|
|
1117
1156
|
}
|
|
1118
1157
|
function mn(e) {
|
|
1119
1158
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1120
1159
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1121
1160
|
}) : [];
|
|
1122
1161
|
}
|
|
1123
|
-
function
|
|
1162
|
+
function pt(e) {
|
|
1124
1163
|
return Object.keys(e).concat(mn(e));
|
|
1125
1164
|
}
|
|
1126
|
-
function
|
|
1165
|
+
function jt(e, t) {
|
|
1127
1166
|
try {
|
|
1128
1167
|
return t in e;
|
|
1129
1168
|
} catch (r) {
|
|
@@ -1131,179 +1170,129 @@ function Vt(e, t) {
|
|
|
1131
1170
|
}
|
|
1132
1171
|
}
|
|
1133
1172
|
function bn(e, t) {
|
|
1134
|
-
return
|
|
1173
|
+
return jt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1135
1174
|
}
|
|
1136
1175
|
function vn(e, t, r) {
|
|
1137
1176
|
var n = {};
|
|
1138
|
-
return r.isMergeableObject(e) &&
|
|
1139
|
-
n[i] =
|
|
1140
|
-
}),
|
|
1141
|
-
bn(e, i) || (
|
|
1177
|
+
return r.isMergeableObject(e) && pt(e).forEach(function(i) {
|
|
1178
|
+
n[i] = Y(e[i], r);
|
|
1179
|
+
}), pt(t).forEach(function(i) {
|
|
1180
|
+
bn(e, i) || (jt(e, i) && r.isMergeableObject(t[i]) ? n[i] = dn(i, r)(e[i], t[i], r) : n[i] = Y(t[i], r));
|
|
1142
1181
|
}), n;
|
|
1143
1182
|
}
|
|
1144
|
-
function
|
|
1145
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || pn, r.isMergeableObject = r.isMergeableObject || sn, r.cloneUnlessOtherwiseSpecified =
|
|
1183
|
+
function F(e, t, r) {
|
|
1184
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || pn, r.isMergeableObject = r.isMergeableObject || sn, r.cloneUnlessOtherwiseSpecified = Y;
|
|
1146
1185
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1147
|
-
return o ? n ? r.arrayMerge(e, t, r) : vn(e, t, r) :
|
|
1186
|
+
return o ? n ? r.arrayMerge(e, t, r) : vn(e, t, r) : Y(t, r);
|
|
1148
1187
|
}
|
|
1149
|
-
|
|
1188
|
+
F.all = function(t, r) {
|
|
1150
1189
|
if (!Array.isArray(t))
|
|
1151
1190
|
throw new Error("first argument should be an array");
|
|
1152
1191
|
return t.reduce(function(n, i) {
|
|
1153
|
-
return
|
|
1192
|
+
return F(n, i, r);
|
|
1154
1193
|
}, {});
|
|
1155
1194
|
};
|
|
1156
|
-
var gn =
|
|
1195
|
+
var gn = F, yn = gn;
|
|
1157
1196
|
const _n = /* @__PURE__ */ on(yn);
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
r.__proto__ = n;
|
|
1161
|
-
} || function(r, n) {
|
|
1162
|
-
for (var i in n)
|
|
1163
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1164
|
-
}, Ge(e, t);
|
|
1165
|
-
};
|
|
1166
|
-
function ge(e, t) {
|
|
1167
|
-
if (typeof t != "function" && t !== null)
|
|
1168
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1169
|
-
Ge(e, t);
|
|
1170
|
-
function r() {
|
|
1171
|
-
this.constructor = e;
|
|
1172
|
-
}
|
|
1173
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1174
|
-
}
|
|
1175
|
-
var B = function() {
|
|
1176
|
-
return B = Object.assign || function(t) {
|
|
1177
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1178
|
-
r = arguments[n];
|
|
1179
|
-
for (var o in r)
|
|
1180
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1181
|
-
}
|
|
1182
|
-
return t;
|
|
1183
|
-
}, B.apply(this, arguments);
|
|
1184
|
-
};
|
|
1185
|
-
function En(e, t) {
|
|
1186
|
-
var r = {};
|
|
1187
|
-
for (var n in e)
|
|
1188
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1189
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1190
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1191
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1192
|
-
return r;
|
|
1193
|
-
}
|
|
1194
|
-
function He(e, t, r) {
|
|
1195
|
-
if (r || arguments.length === 2)
|
|
1196
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1197
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1198
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1199
|
-
}
|
|
1200
|
-
function Te(e, t) {
|
|
1201
|
-
var r = t && t.cache ? t.cache : An, n = t && t.serializer ? t.serializer : Tn, i = t && t.strategy ? t.strategy : wn;
|
|
1197
|
+
function He(e, t) {
|
|
1198
|
+
var r = t && t.cache ? t.cache : Tn, n = t && t.serializer ? t.serializer : wn, i = t && t.strategy ? t.strategy : xn;
|
|
1202
1199
|
return i(e, {
|
|
1203
1200
|
cache: r,
|
|
1204
1201
|
serializer: n
|
|
1205
1202
|
});
|
|
1206
1203
|
}
|
|
1207
|
-
function
|
|
1204
|
+
function En(e) {
|
|
1208
1205
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1209
1206
|
}
|
|
1210
|
-
function
|
|
1211
|
-
var i =
|
|
1207
|
+
function Vt(e, t, r, n) {
|
|
1208
|
+
var i = En(n) ? n : r(n), o = t.get(i);
|
|
1212
1209
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1213
1210
|
}
|
|
1214
1211
|
function kt(e, t, r) {
|
|
1215
1212
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1216
1213
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1217
1214
|
}
|
|
1218
|
-
function
|
|
1215
|
+
function We(e, t, r, n, i) {
|
|
1219
1216
|
return r.bind(t, e, n, i);
|
|
1220
1217
|
}
|
|
1221
|
-
function
|
|
1222
|
-
var r = e.length === 1 ?
|
|
1223
|
-
return
|
|
1218
|
+
function xn(e, t) {
|
|
1219
|
+
var r = e.length === 1 ? Vt : kt;
|
|
1220
|
+
return We(e, this, r, t.cache.create(), t.serializer);
|
|
1221
|
+
}
|
|
1222
|
+
function Sn(e, t) {
|
|
1223
|
+
return We(e, this, kt, t.cache.create(), t.serializer);
|
|
1224
1224
|
}
|
|
1225
1225
|
function Hn(e, t) {
|
|
1226
|
-
return
|
|
1226
|
+
return We(e, this, Vt, t.cache.create(), t.serializer);
|
|
1227
1227
|
}
|
|
1228
|
-
var
|
|
1228
|
+
var wn = function() {
|
|
1229
1229
|
return JSON.stringify(arguments);
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
}()
|
|
1242
|
-
), An = {
|
|
1230
|
+
};
|
|
1231
|
+
function ze() {
|
|
1232
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1233
|
+
}
|
|
1234
|
+
ze.prototype.get = function(e) {
|
|
1235
|
+
return this.cache[e];
|
|
1236
|
+
};
|
|
1237
|
+
ze.prototype.set = function(e, t) {
|
|
1238
|
+
this.cache[e] = t;
|
|
1239
|
+
};
|
|
1240
|
+
var Tn = {
|
|
1243
1241
|
create: function() {
|
|
1244
|
-
return new
|
|
1242
|
+
return new ze();
|
|
1245
1243
|
}
|
|
1246
|
-
},
|
|
1247
|
-
variadic:
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1251
|
-
r = arguments[n];
|
|
1252
|
-
for (var o in r)
|
|
1253
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1254
|
-
}
|
|
1255
|
-
return t;
|
|
1256
|
-
}, pe.apply(this, arguments);
|
|
1257
|
-
};
|
|
1258
|
-
var p;
|
|
1244
|
+
}, we = {
|
|
1245
|
+
variadic: Sn,
|
|
1246
|
+
monadic: Hn
|
|
1247
|
+
}, p;
|
|
1259
1248
|
(function(e) {
|
|
1260
1249
|
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";
|
|
1261
1250
|
})(p || (p = {}));
|
|
1262
|
-
var
|
|
1251
|
+
var y;
|
|
1263
1252
|
(function(e) {
|
|
1264
1253
|
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";
|
|
1265
|
-
})(
|
|
1266
|
-
var
|
|
1254
|
+
})(y || (y = {}));
|
|
1255
|
+
var j;
|
|
1267
1256
|
(function(e) {
|
|
1268
1257
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1269
|
-
})(
|
|
1270
|
-
function
|
|
1271
|
-
return e.type ===
|
|
1258
|
+
})(j || (j = {}));
|
|
1259
|
+
function dt(e) {
|
|
1260
|
+
return e.type === y.literal;
|
|
1261
|
+
}
|
|
1262
|
+
function Bn(e) {
|
|
1263
|
+
return e.type === y.argument;
|
|
1272
1264
|
}
|
|
1273
|
-
function
|
|
1274
|
-
return e.type ===
|
|
1265
|
+
function Xt(e) {
|
|
1266
|
+
return e.type === y.number;
|
|
1275
1267
|
}
|
|
1276
1268
|
function Wt(e) {
|
|
1277
|
-
return e.type ===
|
|
1269
|
+
return e.type === y.date;
|
|
1278
1270
|
}
|
|
1279
1271
|
function zt(e) {
|
|
1280
|
-
return e.type ===
|
|
1272
|
+
return e.type === y.time;
|
|
1281
1273
|
}
|
|
1282
1274
|
function Zt(e) {
|
|
1283
|
-
return e.type ===
|
|
1275
|
+
return e.type === y.select;
|
|
1284
1276
|
}
|
|
1285
1277
|
function Qt(e) {
|
|
1286
|
-
return e.type ===
|
|
1278
|
+
return e.type === y.plural;
|
|
1287
1279
|
}
|
|
1288
|
-
function
|
|
1289
|
-
return e.type ===
|
|
1280
|
+
function An(e) {
|
|
1281
|
+
return e.type === y.pound;
|
|
1290
1282
|
}
|
|
1291
|
-
function
|
|
1292
|
-
return e.type ===
|
|
1283
|
+
function Jt(e) {
|
|
1284
|
+
return e.type === y.tag;
|
|
1293
1285
|
}
|
|
1294
1286
|
function qt(e) {
|
|
1295
|
-
return e.type ===
|
|
1287
|
+
return !!(e && typeof e == "object" && e.type === j.number);
|
|
1296
1288
|
}
|
|
1297
|
-
function
|
|
1298
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1289
|
+
function Re(e) {
|
|
1290
|
+
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
1299
1291
|
}
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
}
|
|
1303
|
-
var Kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Cn = /(?:[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;
|
|
1304
|
-
function Ln(e) {
|
|
1292
|
+
var Yt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pn = /(?:[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;
|
|
1293
|
+
function Cn(e) {
|
|
1305
1294
|
var t = {};
|
|
1306
|
-
return e.replace(
|
|
1295
|
+
return e.replace(Pn, function(r) {
|
|
1307
1296
|
var n = r.length;
|
|
1308
1297
|
switch (r[0]) {
|
|
1309
1298
|
case "G":
|
|
@@ -1392,21 +1381,11 @@ function Ln(e) {
|
|
|
1392
1381
|
return "";
|
|
1393
1382
|
}), t;
|
|
1394
1383
|
}
|
|
1395
|
-
var
|
|
1396
|
-
|
|
1397
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1398
|
-
r = arguments[n];
|
|
1399
|
-
for (var o in r)
|
|
1400
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1401
|
-
}
|
|
1402
|
-
return t;
|
|
1403
|
-
}, y.apply(this, arguments);
|
|
1404
|
-
};
|
|
1405
|
-
var In = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1406
|
-
function Nn(e) {
|
|
1384
|
+
var On = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1385
|
+
function Ln(e) {
|
|
1407
1386
|
if (e.length === 0)
|
|
1408
1387
|
throw new Error("Number skeleton cannot be empty");
|
|
1409
|
-
for (var t = e.split(
|
|
1388
|
+
for (var t = e.split(On).filter(function(c) {
|
|
1410
1389
|
return c.length > 0;
|
|
1411
1390
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1412
1391
|
var o = i[n], s = o.split("/");
|
|
@@ -1421,17 +1400,17 @@ function Nn(e) {
|
|
|
1421
1400
|
}
|
|
1422
1401
|
return r;
|
|
1423
1402
|
}
|
|
1424
|
-
function
|
|
1403
|
+
function In(e) {
|
|
1425
1404
|
return e.replace(/^(.*?)-/, "");
|
|
1426
1405
|
}
|
|
1427
|
-
var
|
|
1428
|
-
function
|
|
1406
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Kt = /^(@+)?(\+|#+)?[rs]?$/g, Nn = /(\*)(0+)|(#+)(0+)|(0+)/g, er = /^(0+)$/;
|
|
1407
|
+
function bt(e) {
|
|
1429
1408
|
var t = {};
|
|
1430
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1409
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Kt, function(r, n, i) {
|
|
1431
1410
|
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)), "";
|
|
1432
1411
|
}), t;
|
|
1433
1412
|
}
|
|
1434
|
-
function
|
|
1413
|
+
function tr(e) {
|
|
1435
1414
|
switch (e) {
|
|
1436
1415
|
case "sign-auto":
|
|
1437
1416
|
return {
|
|
@@ -1471,7 +1450,7 @@ function rr(e) {
|
|
|
1471
1450
|
};
|
|
1472
1451
|
}
|
|
1473
1452
|
}
|
|
1474
|
-
function
|
|
1453
|
+
function Mn(e) {
|
|
1475
1454
|
var t;
|
|
1476
1455
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1477
1456
|
notation: "engineering"
|
|
@@ -1479,17 +1458,17 @@ function Rn(e) {
|
|
|
1479
1458
|
notation: "scientific"
|
|
1480
1459
|
}, e = e.slice(1)), t) {
|
|
1481
1460
|
var r = e.slice(0, 2);
|
|
1482
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1461
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !er.test(e))
|
|
1483
1462
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1484
1463
|
t.minimumIntegerDigits = e.length;
|
|
1485
1464
|
}
|
|
1486
1465
|
return t;
|
|
1487
1466
|
}
|
|
1488
|
-
function
|
|
1489
|
-
var t = {}, r =
|
|
1467
|
+
function vt(e) {
|
|
1468
|
+
var t = {}, r = tr(e);
|
|
1490
1469
|
return r || t;
|
|
1491
1470
|
}
|
|
1492
|
-
function
|
|
1471
|
+
function $n(e) {
|
|
1493
1472
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1494
1473
|
var i = n[r];
|
|
1495
1474
|
switch (i.stem) {
|
|
@@ -1513,7 +1492,7 @@ function Un(e) {
|
|
|
1513
1492
|
continue;
|
|
1514
1493
|
case "measure-unit":
|
|
1515
1494
|
case "unit":
|
|
1516
|
-
t.style = "unit", t.unit =
|
|
1495
|
+
t.style = "unit", t.unit = In(i.options[0]);
|
|
1517
1496
|
continue;
|
|
1518
1497
|
case "compact-short":
|
|
1519
1498
|
case "K":
|
|
@@ -1524,13 +1503,13 @@ function Un(e) {
|
|
|
1524
1503
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1525
1504
|
continue;
|
|
1526
1505
|
case "scientific":
|
|
1527
|
-
t =
|
|
1528
|
-
return
|
|
1506
|
+
t = m(m(m({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1507
|
+
return m(m({}, h), vt(u));
|
|
1529
1508
|
}, {}));
|
|
1530
1509
|
continue;
|
|
1531
1510
|
case "engineering":
|
|
1532
|
-
t =
|
|
1533
|
-
return
|
|
1511
|
+
t = m(m(m({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1512
|
+
return m(m({}, h), vt(u));
|
|
1534
1513
|
}, {}));
|
|
1535
1514
|
continue;
|
|
1536
1515
|
case "notation-simple":
|
|
@@ -1575,41 +1554,41 @@ function Un(e) {
|
|
|
1575
1554
|
case "integer-width":
|
|
1576
1555
|
if (i.options.length > 1)
|
|
1577
1556
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1578
|
-
i.options[0].replace(
|
|
1557
|
+
i.options[0].replace(Nn, function(h, u, l, f, c, b) {
|
|
1579
1558
|
if (u)
|
|
1580
1559
|
t.minimumIntegerDigits = l.length;
|
|
1581
1560
|
else {
|
|
1582
1561
|
if (f && c)
|
|
1583
1562
|
throw new Error("We currently do not support maximum integer digits");
|
|
1584
|
-
if (
|
|
1563
|
+
if (b)
|
|
1585
1564
|
throw new Error("We currently do not support exact integer digits");
|
|
1586
1565
|
}
|
|
1587
1566
|
return "";
|
|
1588
1567
|
});
|
|
1589
1568
|
continue;
|
|
1590
1569
|
}
|
|
1591
|
-
if (
|
|
1570
|
+
if (er.test(i.stem)) {
|
|
1592
1571
|
t.minimumIntegerDigits = i.stem.length;
|
|
1593
1572
|
continue;
|
|
1594
1573
|
}
|
|
1595
|
-
if (
|
|
1574
|
+
if (mt.test(i.stem)) {
|
|
1596
1575
|
if (i.options.length > 1)
|
|
1597
1576
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1598
|
-
i.stem.replace(
|
|
1599
|
-
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c &&
|
|
1577
|
+
i.stem.replace(mt, function(h, u, l, f, c, b) {
|
|
1578
|
+
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), "";
|
|
1600
1579
|
});
|
|
1601
1580
|
var o = i.options[0];
|
|
1602
|
-
o === "w" ? t =
|
|
1581
|
+
o === "w" ? t = m(m({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = m(m({}, t), bt(o)));
|
|
1603
1582
|
continue;
|
|
1604
1583
|
}
|
|
1605
|
-
if (
|
|
1606
|
-
t =
|
|
1584
|
+
if (Kt.test(i.stem)) {
|
|
1585
|
+
t = m(m({}, t), bt(i.stem));
|
|
1607
1586
|
continue;
|
|
1608
1587
|
}
|
|
1609
|
-
var s =
|
|
1610
|
-
s && (t =
|
|
1611
|
-
var a =
|
|
1612
|
-
a && (t =
|
|
1588
|
+
var s = tr(i.stem);
|
|
1589
|
+
s && (t = m(m({}, t), s));
|
|
1590
|
+
var a = Mn(i.stem);
|
|
1591
|
+
a && (t = m(m({}, t), a));
|
|
1613
1592
|
}
|
|
1614
1593
|
return t;
|
|
1615
1594
|
}
|
|
@@ -3028,13 +3007,13 @@ var ae = {
|
|
|
3028
3007
|
"h"
|
|
3029
3008
|
]
|
|
3030
3009
|
};
|
|
3031
|
-
function
|
|
3010
|
+
function Rn(e, t) {
|
|
3032
3011
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3033
3012
|
var i = e.charAt(n);
|
|
3034
3013
|
if (i === "j") {
|
|
3035
3014
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3036
3015
|
o++, n++;
|
|
3037
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
3016
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Un(t);
|
|
3038
3017
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3039
3018
|
r += h;
|
|
3040
3019
|
for (; s-- > 0; )
|
|
@@ -3044,7 +3023,7 @@ function Dn(e, t) {
|
|
|
3044
3023
|
}
|
|
3045
3024
|
return r;
|
|
3046
3025
|
}
|
|
3047
|
-
function
|
|
3026
|
+
function Un(e) {
|
|
3048
3027
|
var t = e.hourCycle;
|
|
3049
3028
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3050
3029
|
e.hourCycles && // @ts-ignore
|
|
@@ -3066,20 +3045,20 @@ function Gn(e) {
|
|
|
3066
3045
|
var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
|
|
3067
3046
|
return i[0];
|
|
3068
3047
|
}
|
|
3069
|
-
var
|
|
3048
|
+
var Te, Dn = new RegExp("^".concat(Yt.source, "*")), Gn = new RegExp("".concat(Yt.source, "*$"));
|
|
3070
3049
|
function d(e, t) {
|
|
3071
3050
|
return { start: e, end: t };
|
|
3072
3051
|
}
|
|
3073
|
-
var
|
|
3052
|
+
var Fn = !!String.prototype.startsWith && "_a".startsWith("a", 1), jn = !!String.fromCodePoint, Vn = !!Object.fromEntries, kn = !!String.prototype.codePointAt, Xn = !!String.prototype.trimStart, Wn = !!String.prototype.trimEnd, zn = !!Number.isSafeInteger, Zn = zn ? Number.isSafeInteger : function(e) {
|
|
3074
3053
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3075
|
-
},
|
|
3054
|
+
}, Ue = !0;
|
|
3076
3055
|
try {
|
|
3077
|
-
var
|
|
3078
|
-
|
|
3056
|
+
var Qn = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3057
|
+
Ue = ((Te = Qn.exec("a")) === null || Te === void 0 ? void 0 : Te[0]) === "a";
|
|
3079
3058
|
} catch (e) {
|
|
3080
|
-
|
|
3059
|
+
Ue = !1;
|
|
3081
3060
|
}
|
|
3082
|
-
var
|
|
3061
|
+
var gt = Fn ? (
|
|
3083
3062
|
// Native
|
|
3084
3063
|
function(t, r, n) {
|
|
3085
3064
|
return t.startsWith(r, n);
|
|
@@ -3089,7 +3068,7 @@ var _t = Vn ? (
|
|
|
3089
3068
|
function(t, r, n) {
|
|
3090
3069
|
return t.slice(n, n + r.length) === r;
|
|
3091
3070
|
}
|
|
3092
|
-
),
|
|
3071
|
+
), De = jn ? String.fromCodePoint : (
|
|
3093
3072
|
// IE11
|
|
3094
3073
|
function() {
|
|
3095
3074
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3101,9 +3080,9 @@ var _t = Vn ? (
|
|
|
3101
3080
|
}
|
|
3102
3081
|
return n;
|
|
3103
3082
|
}
|
|
3104
|
-
),
|
|
3083
|
+
), yt = (
|
|
3105
3084
|
// native
|
|
3106
|
-
|
|
3085
|
+
Vn ? Object.fromEntries : (
|
|
3107
3086
|
// Ponyfill
|
|
3108
3087
|
function(t) {
|
|
3109
3088
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3113,7 +3092,7 @@ var _t = Vn ? (
|
|
|
3113
3092
|
return r;
|
|
3114
3093
|
}
|
|
3115
3094
|
)
|
|
3116
|
-
),
|
|
3095
|
+
), rr = kn ? (
|
|
3117
3096
|
// Native
|
|
3118
3097
|
function(t, r) {
|
|
3119
3098
|
return t.codePointAt(r);
|
|
@@ -3127,7 +3106,7 @@ var _t = Vn ? (
|
|
|
3127
3106
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3128
3107
|
}
|
|
3129
3108
|
}
|
|
3130
|
-
),
|
|
3109
|
+
), Jn = Xn ? (
|
|
3131
3110
|
// Native
|
|
3132
3111
|
function(t) {
|
|
3133
3112
|
return t.trimStart();
|
|
@@ -3135,9 +3114,9 @@ var _t = Vn ? (
|
|
|
3135
3114
|
) : (
|
|
3136
3115
|
// Ponyfill
|
|
3137
3116
|
function(t) {
|
|
3138
|
-
return t.replace(
|
|
3117
|
+
return t.replace(Dn, "");
|
|
3139
3118
|
}
|
|
3140
|
-
),
|
|
3119
|
+
), qn = Wn ? (
|
|
3141
3120
|
// Native
|
|
3142
3121
|
function(t) {
|
|
3143
3122
|
return t.trimEnd();
|
|
@@ -3145,32 +3124,32 @@ var _t = Vn ? (
|
|
|
3145
3124
|
) : (
|
|
3146
3125
|
// Ponyfill
|
|
3147
3126
|
function(t) {
|
|
3148
|
-
return t.replace(
|
|
3127
|
+
return t.replace(Gn, "");
|
|
3149
3128
|
}
|
|
3150
3129
|
);
|
|
3151
|
-
function
|
|
3130
|
+
function nr(e, t) {
|
|
3152
3131
|
return new RegExp(e, t);
|
|
3153
3132
|
}
|
|
3154
|
-
var
|
|
3155
|
-
if (
|
|
3156
|
-
var
|
|
3157
|
-
|
|
3133
|
+
var Ge;
|
|
3134
|
+
if (Ue) {
|
|
3135
|
+
var _t = nr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3136
|
+
Ge = function(t, r) {
|
|
3158
3137
|
var n;
|
|
3159
|
-
|
|
3160
|
-
var i =
|
|
3138
|
+
_t.lastIndex = r;
|
|
3139
|
+
var i = _t.exec(t);
|
|
3161
3140
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3162
3141
|
};
|
|
3163
3142
|
} else
|
|
3164
|
-
|
|
3143
|
+
Ge = function(t, r) {
|
|
3165
3144
|
for (var n = []; ; ) {
|
|
3166
|
-
var i =
|
|
3167
|
-
if (i === void 0 ||
|
|
3145
|
+
var i = rr(t, r);
|
|
3146
|
+
if (i === void 0 || ir(i) || ti(i))
|
|
3168
3147
|
break;
|
|
3169
3148
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3170
3149
|
}
|
|
3171
|
-
return
|
|
3150
|
+
return De.apply(void 0, n);
|
|
3172
3151
|
};
|
|
3173
|
-
var
|
|
3152
|
+
var Yn = (
|
|
3174
3153
|
/** @class */
|
|
3175
3154
|
function() {
|
|
3176
3155
|
function e(t, r) {
|
|
@@ -3194,14 +3173,14 @@ var ei = (
|
|
|
3194
3173
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3195
3174
|
var a = this.clonePosition();
|
|
3196
3175
|
this.bump(), i.push({
|
|
3197
|
-
type:
|
|
3176
|
+
type: y.pound,
|
|
3198
3177
|
location: d(a, this.clonePosition())
|
|
3199
3178
|
});
|
|
3200
3179
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3201
3180
|
if (n)
|
|
3202
3181
|
break;
|
|
3203
3182
|
return this.error(p.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
3204
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3183
|
+
} else if (o === 60 && !this.ignoreTag && Fe(this.peek() || 0)) {
|
|
3205
3184
|
var s = this.parseTag(t, r);
|
|
3206
3185
|
if (s.err)
|
|
3207
3186
|
return s;
|
|
@@ -3222,7 +3201,7 @@ var ei = (
|
|
|
3222
3201
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3223
3202
|
return {
|
|
3224
3203
|
val: {
|
|
3225
|
-
type:
|
|
3204
|
+
type: y.literal,
|
|
3226
3205
|
value: "<".concat(i, "/>"),
|
|
3227
3206
|
location: d(n, this.clonePosition())
|
|
3228
3207
|
},
|
|
@@ -3234,12 +3213,12 @@ var ei = (
|
|
|
3234
3213
|
return o;
|
|
3235
3214
|
var s = o.val, a = this.clonePosition();
|
|
3236
3215
|
if (this.bumpIf("</")) {
|
|
3237
|
-
if (this.isEOF() || !
|
|
3216
|
+
if (this.isEOF() || !Fe(this.char()))
|
|
3238
3217
|
return this.error(p.INVALID_TAG, d(a, this.clonePosition()));
|
|
3239
3218
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3240
3219
|
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, d(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3241
3220
|
val: {
|
|
3242
|
-
type:
|
|
3221
|
+
type: y.tag,
|
|
3243
3222
|
value: i,
|
|
3244
3223
|
children: s,
|
|
3245
3224
|
location: d(n, this.clonePosition())
|
|
@@ -3252,7 +3231,7 @@ var ei = (
|
|
|
3252
3231
|
return this.error(p.INVALID_TAG, d(n, this.clonePosition()));
|
|
3253
3232
|
}, e.prototype.parseTagName = function() {
|
|
3254
3233
|
var t = this.offset();
|
|
3255
|
-
for (this.bump(); !this.isEOF() &&
|
|
3234
|
+
for (this.bump(); !this.isEOF() && ei(this.char()); )
|
|
3256
3235
|
this.bump();
|
|
3257
3236
|
return this.message.slice(t, this.offset());
|
|
3258
3237
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3276,12 +3255,12 @@ var ei = (
|
|
|
3276
3255
|
}
|
|
3277
3256
|
var h = d(n, this.clonePosition());
|
|
3278
3257
|
return {
|
|
3279
|
-
val: { type:
|
|
3258
|
+
val: { type: y.literal, value: i, location: h },
|
|
3280
3259
|
err: null
|
|
3281
3260
|
};
|
|
3282
3261
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3283
3262
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3284
|
-
!
|
|
3263
|
+
!Kn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3285
3264
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3286
3265
|
if (this.isEOF() || this.char() !== 39)
|
|
3287
3266
|
return null;
|
|
@@ -3315,12 +3294,12 @@ var ei = (
|
|
|
3315
3294
|
r.push(n);
|
|
3316
3295
|
this.bump();
|
|
3317
3296
|
}
|
|
3318
|
-
return
|
|
3297
|
+
return De.apply(void 0, r);
|
|
3319
3298
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3320
3299
|
if (this.isEOF())
|
|
3321
3300
|
return null;
|
|
3322
3301
|
var n = this.char();
|
|
3323
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3302
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), De(n));
|
|
3324
3303
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3325
3304
|
var n = this.clonePosition();
|
|
3326
3305
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3336,7 +3315,7 @@ var ei = (
|
|
|
3336
3315
|
case 125:
|
|
3337
3316
|
return this.bump(), {
|
|
3338
3317
|
val: {
|
|
3339
|
-
type:
|
|
3318
|
+
type: y.argument,
|
|
3340
3319
|
// value does not include the opening and closing braces.
|
|
3341
3320
|
value: i,
|
|
3342
3321
|
location: d(n, this.clonePosition())
|
|
@@ -3349,7 +3328,7 @@ var ei = (
|
|
|
3349
3328
|
return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3350
3329
|
}
|
|
3351
3330
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3352
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3331
|
+
var t = this.clonePosition(), r = this.offset(), n = Ge(this.message, r), i = r + n.length;
|
|
3353
3332
|
this.bumpTo(i);
|
|
3354
3333
|
var o = this.clonePosition(), s = d(t, o);
|
|
3355
3334
|
return { value: n, location: s };
|
|
@@ -3368,46 +3347,46 @@ var ei = (
|
|
|
3368
3347
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3369
3348
|
if (f.err)
|
|
3370
3349
|
return f;
|
|
3371
|
-
var c =
|
|
3350
|
+
var c = qn(f.val);
|
|
3372
3351
|
if (c.length === 0)
|
|
3373
3352
|
return this.error(p.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
3374
|
-
var
|
|
3375
|
-
u = { style: c, styleLocation:
|
|
3353
|
+
var b = d(l, this.clonePosition());
|
|
3354
|
+
u = { style: c, styleLocation: b };
|
|
3376
3355
|
}
|
|
3377
|
-
var
|
|
3378
|
-
if (
|
|
3379
|
-
return
|
|
3380
|
-
var
|
|
3381
|
-
if (u &&
|
|
3382
|
-
var
|
|
3356
|
+
var g = this.tryParseArgumentClose(i);
|
|
3357
|
+
if (g.err)
|
|
3358
|
+
return g;
|
|
3359
|
+
var v = d(i, this.clonePosition());
|
|
3360
|
+
if (u && gt(u == null ? void 0 : u.style, "::", 0)) {
|
|
3361
|
+
var w = Jn(u.style.slice(2));
|
|
3383
3362
|
if (a === "number") {
|
|
3384
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3363
|
+
var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3385
3364
|
return f.err ? f : {
|
|
3386
|
-
val: { type:
|
|
3365
|
+
val: { type: y.number, value: n, location: v, style: f.val },
|
|
3387
3366
|
err: null
|
|
3388
3367
|
};
|
|
3389
3368
|
} else {
|
|
3390
|
-
if (
|
|
3391
|
-
return this.error(p.EXPECT_DATE_TIME_SKELETON,
|
|
3392
|
-
var E =
|
|
3393
|
-
this.locale && (E =
|
|
3369
|
+
if (w.length === 0)
|
|
3370
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, v);
|
|
3371
|
+
var E = w;
|
|
3372
|
+
this.locale && (E = Rn(w, this.locale));
|
|
3394
3373
|
var c = {
|
|
3395
|
-
type:
|
|
3374
|
+
type: j.dateTime,
|
|
3396
3375
|
pattern: E,
|
|
3397
3376
|
location: u.styleLocation,
|
|
3398
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3399
|
-
}, N = a === "date" ?
|
|
3377
|
+
parsedOptions: this.shouldParseSkeletons ? Cn(E) : {}
|
|
3378
|
+
}, N = a === "date" ? y.date : y.time;
|
|
3400
3379
|
return {
|
|
3401
|
-
val: { type: N, value: n, location:
|
|
3380
|
+
val: { type: N, value: n, location: v, style: c },
|
|
3402
3381
|
err: null
|
|
3403
3382
|
};
|
|
3404
3383
|
}
|
|
3405
3384
|
}
|
|
3406
3385
|
return {
|
|
3407
3386
|
val: {
|
|
3408
|
-
type: a === "number" ?
|
|
3387
|
+
type: a === "number" ? y.number : a === "date" ? y.date : y.time,
|
|
3409
3388
|
value: n,
|
|
3410
|
-
location:
|
|
3389
|
+
location: v,
|
|
3411
3390
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3412
3391
|
},
|
|
3413
3392
|
err: null
|
|
@@ -3418,41 +3397,41 @@ var ei = (
|
|
|
3418
3397
|
case "select": {
|
|
3419
3398
|
var T = this.clonePosition();
|
|
3420
3399
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3421
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(T,
|
|
3400
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(T, m({}, T)));
|
|
3422
3401
|
this.bumpSpace();
|
|
3423
|
-
var
|
|
3424
|
-
if (a !== "select" &&
|
|
3402
|
+
var Z = this.parseIdentifierIfPossible(), O = 0;
|
|
3403
|
+
if (a !== "select" && Z.value === "offset") {
|
|
3425
3404
|
if (!this.bumpIf(":"))
|
|
3426
3405
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
|
3427
3406
|
this.bumpSpace();
|
|
3428
3407
|
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3429
3408
|
if (f.err)
|
|
3430
3409
|
return f;
|
|
3431
|
-
this.bumpSpace(),
|
|
3410
|
+
this.bumpSpace(), Z = this.parseIdentifierIfPossible(), O = f.val;
|
|
3432
3411
|
}
|
|
3433
|
-
var ie = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3412
|
+
var ie = this.tryParsePluralOrSelectOptions(t, a, r, Z);
|
|
3434
3413
|
if (ie.err)
|
|
3435
3414
|
return ie;
|
|
3436
|
-
var
|
|
3437
|
-
if (
|
|
3438
|
-
return
|
|
3439
|
-
var
|
|
3415
|
+
var g = this.tryParseArgumentClose(i);
|
|
3416
|
+
if (g.err)
|
|
3417
|
+
return g;
|
|
3418
|
+
var Je = d(i, this.clonePosition());
|
|
3440
3419
|
return a === "select" ? {
|
|
3441
3420
|
val: {
|
|
3442
|
-
type:
|
|
3421
|
+
type: y.select,
|
|
3443
3422
|
value: n,
|
|
3444
|
-
options:
|
|
3445
|
-
location:
|
|
3423
|
+
options: yt(ie.val),
|
|
3424
|
+
location: Je
|
|
3446
3425
|
},
|
|
3447
3426
|
err: null
|
|
3448
3427
|
} : {
|
|
3449
3428
|
val: {
|
|
3450
|
-
type:
|
|
3429
|
+
type: y.plural,
|
|
3451
3430
|
value: n,
|
|
3452
|
-
options:
|
|
3453
|
-
offset:
|
|
3431
|
+
options: yt(ie.val),
|
|
3432
|
+
offset: O,
|
|
3454
3433
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3455
|
-
location:
|
|
3434
|
+
location: Je
|
|
3456
3435
|
},
|
|
3457
3436
|
err: null
|
|
3458
3437
|
};
|
|
@@ -3500,16 +3479,16 @@ var ei = (
|
|
|
3500
3479
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3501
3480
|
var n = [];
|
|
3502
3481
|
try {
|
|
3503
|
-
n =
|
|
3482
|
+
n = Ln(t);
|
|
3504
3483
|
} catch (i) {
|
|
3505
3484
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3506
3485
|
}
|
|
3507
3486
|
return {
|
|
3508
3487
|
val: {
|
|
3509
|
-
type:
|
|
3488
|
+
type: j.number,
|
|
3510
3489
|
tokens: n,
|
|
3511
3490
|
location: r,
|
|
3512
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3491
|
+
parsedOptions: this.shouldParseSkeletons ? $n(n) : {}
|
|
3513
3492
|
},
|
|
3514
3493
|
err: null
|
|
3515
3494
|
};
|
|
@@ -3528,20 +3507,20 @@ var ei = (
|
|
|
3528
3507
|
if (h.has(u))
|
|
3529
3508
|
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3530
3509
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3531
|
-
var
|
|
3510
|
+
var b = this.clonePosition();
|
|
3532
3511
|
if (!this.bumpIf("{"))
|
|
3533
3512
|
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
|
3534
|
-
var
|
|
3513
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
3514
|
+
if (g.err)
|
|
3515
|
+
return g;
|
|
3516
|
+
var v = this.tryParseArgumentClose(b);
|
|
3535
3517
|
if (v.err)
|
|
3536
3518
|
return v;
|
|
3537
|
-
var b = this.tryParseArgumentClose(m);
|
|
3538
|
-
if (b.err)
|
|
3539
|
-
return b;
|
|
3540
3519
|
a.push([
|
|
3541
3520
|
u,
|
|
3542
3521
|
{
|
|
3543
|
-
value:
|
|
3544
|
-
location: d(
|
|
3522
|
+
value: g.val,
|
|
3523
|
+
location: d(b, this.clonePosition())
|
|
3545
3524
|
}
|
|
3546
3525
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3547
3526
|
}
|
|
@@ -3557,7 +3536,7 @@ var ei = (
|
|
|
3557
3536
|
break;
|
|
3558
3537
|
}
|
|
3559
3538
|
var h = d(i, this.clonePosition());
|
|
3560
|
-
return o ? (s *= n,
|
|
3539
|
+
return o ? (s *= n, Zn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3561
3540
|
}, e.prototype.offset = function() {
|
|
3562
3541
|
return this.position.offset;
|
|
3563
3542
|
}, e.prototype.isEOF = function() {
|
|
@@ -3572,7 +3551,7 @@ var ei = (
|
|
|
3572
3551
|
var t = this.position.offset;
|
|
3573
3552
|
if (t >= this.message.length)
|
|
3574
3553
|
throw Error("out of bound");
|
|
3575
|
-
var r =
|
|
3554
|
+
var r = rr(this.message, t);
|
|
3576
3555
|
if (r === void 0)
|
|
3577
3556
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3578
3557
|
return r;
|
|
@@ -3591,7 +3570,7 @@ var ei = (
|
|
|
3591
3570
|
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);
|
|
3592
3571
|
}
|
|
3593
3572
|
}, e.prototype.bumpIf = function(t) {
|
|
3594
|
-
if (
|
|
3573
|
+
if (gt(this.message, t, this.offset())) {
|
|
3595
3574
|
for (var r = 0; r < t.length; r++)
|
|
3596
3575
|
this.bump();
|
|
3597
3576
|
return !0;
|
|
@@ -3613,7 +3592,7 @@ var ei = (
|
|
|
3613
3592
|
break;
|
|
3614
3593
|
}
|
|
3615
3594
|
}, e.prototype.bumpSpace = function() {
|
|
3616
|
-
for (; !this.isEOF() &&
|
|
3595
|
+
for (; !this.isEOF() && ir(this.char()); )
|
|
3617
3596
|
this.bump();
|
|
3618
3597
|
}, e.prototype.peek = function() {
|
|
3619
3598
|
if (this.isEOF())
|
|
@@ -3623,47 +3602,47 @@ var ei = (
|
|
|
3623
3602
|
}, e;
|
|
3624
3603
|
}()
|
|
3625
3604
|
);
|
|
3626
|
-
function
|
|
3605
|
+
function Fe(e) {
|
|
3627
3606
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3628
3607
|
}
|
|
3629
|
-
function
|
|
3630
|
-
return
|
|
3608
|
+
function Kn(e) {
|
|
3609
|
+
return Fe(e) || e === 47;
|
|
3631
3610
|
}
|
|
3632
|
-
function
|
|
3611
|
+
function ei(e) {
|
|
3633
3612
|
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;
|
|
3634
3613
|
}
|
|
3635
|
-
function
|
|
3614
|
+
function ir(e) {
|
|
3636
3615
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3637
3616
|
}
|
|
3638
|
-
function
|
|
3617
|
+
function ti(e) {
|
|
3639
3618
|
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;
|
|
3640
3619
|
}
|
|
3641
|
-
function
|
|
3620
|
+
function je(e) {
|
|
3642
3621
|
e.forEach(function(t) {
|
|
3643
|
-
if (delete t.location,
|
|
3622
|
+
if (delete t.location, Zt(t) || Qt(t))
|
|
3644
3623
|
for (var r in t.options)
|
|
3645
|
-
delete t.options[r].location,
|
|
3624
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3646
3625
|
else
|
|
3647
|
-
|
|
3626
|
+
Xt(t) && qt(t.style) || (Wt(t) || zt(t)) && Re(t.style) ? delete t.style.location : Jt(t) && je(t.children);
|
|
3648
3627
|
});
|
|
3649
3628
|
}
|
|
3650
|
-
function
|
|
3651
|
-
t === void 0 && (t = {}), t =
|
|
3652
|
-
var r = new
|
|
3629
|
+
function ri(e, t) {
|
|
3630
|
+
t === void 0 && (t = {}), t = m({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3631
|
+
var r = new Yn(e, t).parse();
|
|
3653
3632
|
if (r.err) {
|
|
3654
3633
|
var n = SyntaxError(p[r.err.kind]);
|
|
3655
3634
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3656
3635
|
}
|
|
3657
|
-
return t != null && t.captureLocation ||
|
|
3636
|
+
return t != null && t.captureLocation || je(r.val), r.val;
|
|
3658
3637
|
}
|
|
3659
|
-
var
|
|
3638
|
+
var V;
|
|
3660
3639
|
(function(e) {
|
|
3661
3640
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3662
|
-
})(
|
|
3663
|
-
var
|
|
3641
|
+
})(V || (V = {}));
|
|
3642
|
+
var ve = (
|
|
3664
3643
|
/** @class */
|
|
3665
3644
|
function(e) {
|
|
3666
|
-
|
|
3645
|
+
P(t, e);
|
|
3667
3646
|
function t(r, n, i) {
|
|
3668
3647
|
var o = e.call(this, r) || this;
|
|
3669
3648
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3672,48 +3651,48 @@ var ye = (
|
|
|
3672
3651
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3673
3652
|
}, t;
|
|
3674
3653
|
}(Error)
|
|
3675
|
-
),
|
|
3654
|
+
), Et = (
|
|
3676
3655
|
/** @class */
|
|
3677
3656
|
function(e) {
|
|
3678
|
-
|
|
3657
|
+
P(t, e);
|
|
3679
3658
|
function t(r, n, i, o) {
|
|
3680
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3659
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), V.INVALID_VALUE, o) || this;
|
|
3681
3660
|
}
|
|
3682
3661
|
return t;
|
|
3683
|
-
}(
|
|
3684
|
-
),
|
|
3662
|
+
}(ve)
|
|
3663
|
+
), ni = (
|
|
3685
3664
|
/** @class */
|
|
3686
3665
|
function(e) {
|
|
3687
|
-
|
|
3666
|
+
P(t, e);
|
|
3688
3667
|
function t(r, n, i) {
|
|
3689
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3668
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), V.INVALID_VALUE, i) || this;
|
|
3690
3669
|
}
|
|
3691
3670
|
return t;
|
|
3692
|
-
}(
|
|
3693
|
-
),
|
|
3671
|
+
}(ve)
|
|
3672
|
+
), ii = (
|
|
3694
3673
|
/** @class */
|
|
3695
3674
|
function(e) {
|
|
3696
|
-
|
|
3675
|
+
P(t, e);
|
|
3697
3676
|
function t(r, n) {
|
|
3698
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3677
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), V.MISSING_VALUE, n) || this;
|
|
3699
3678
|
}
|
|
3700
3679
|
return t;
|
|
3701
|
-
}(
|
|
3680
|
+
}(ve)
|
|
3702
3681
|
), x;
|
|
3703
3682
|
(function(e) {
|
|
3704
3683
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3705
3684
|
})(x || (x = {}));
|
|
3706
|
-
function
|
|
3685
|
+
function oi(e) {
|
|
3707
3686
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3708
3687
|
var n = t[t.length - 1];
|
|
3709
3688
|
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3710
3689
|
}, []);
|
|
3711
3690
|
}
|
|
3712
|
-
function
|
|
3691
|
+
function si(e) {
|
|
3713
3692
|
return typeof e == "function";
|
|
3714
3693
|
}
|
|
3715
3694
|
function le(e, t, r, n, i, o, s) {
|
|
3716
|
-
if (e.length === 1 &&
|
|
3695
|
+
if (e.length === 1 && dt(e[0]))
|
|
3717
3696
|
return [
|
|
3718
3697
|
{
|
|
3719
3698
|
type: x.literal,
|
|
@@ -3722,14 +3701,14 @@ function le(e, t, r, n, i, o, s) {
|
|
|
3722
3701
|
];
|
|
3723
3702
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3724
3703
|
var l = u[h];
|
|
3725
|
-
if (
|
|
3704
|
+
if (dt(l)) {
|
|
3726
3705
|
a.push({
|
|
3727
3706
|
type: x.literal,
|
|
3728
3707
|
value: l.value
|
|
3729
3708
|
});
|
|
3730
3709
|
continue;
|
|
3731
3710
|
}
|
|
3732
|
-
if (
|
|
3711
|
+
if (An(l)) {
|
|
3733
3712
|
typeof o == "number" && a.push({
|
|
3734
3713
|
type: x.literal,
|
|
3735
3714
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3738,89 +3717,89 @@ function le(e, t, r, n, i, o, s) {
|
|
|
3738
3717
|
}
|
|
3739
3718
|
var f = l.value;
|
|
3740
3719
|
if (!(i && f in i))
|
|
3741
|
-
throw new
|
|
3720
|
+
throw new ii(f, s);
|
|
3742
3721
|
var c = i[f];
|
|
3743
|
-
if (
|
|
3722
|
+
if (Bn(l)) {
|
|
3744
3723
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3745
3724
|
type: typeof c == "string" ? x.literal : x.object,
|
|
3746
3725
|
value: c
|
|
3747
3726
|
});
|
|
3748
3727
|
continue;
|
|
3749
3728
|
}
|
|
3750
|
-
if (
|
|
3751
|
-
var
|
|
3729
|
+
if (Wt(l)) {
|
|
3730
|
+
var b = typeof l.style == "string" ? n.date[l.style] : Re(l.style) ? l.style.parsedOptions : void 0;
|
|
3752
3731
|
a.push({
|
|
3753
3732
|
type: x.literal,
|
|
3754
|
-
value: r.getDateTimeFormat(t,
|
|
3733
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
|
3755
3734
|
});
|
|
3756
3735
|
continue;
|
|
3757
3736
|
}
|
|
3758
|
-
if (
|
|
3759
|
-
var
|
|
3737
|
+
if (zt(l)) {
|
|
3738
|
+
var b = typeof l.style == "string" ? n.time[l.style] : Re(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3760
3739
|
a.push({
|
|
3761
3740
|
type: x.literal,
|
|
3762
|
-
value: r.getDateTimeFormat(t,
|
|
3741
|
+
value: r.getDateTimeFormat(t, b).format(c)
|
|
3763
3742
|
});
|
|
3764
3743
|
continue;
|
|
3765
3744
|
}
|
|
3766
|
-
if (
|
|
3767
|
-
var
|
|
3768
|
-
|
|
3745
|
+
if (Xt(l)) {
|
|
3746
|
+
var b = typeof l.style == "string" ? n.number[l.style] : qt(l.style) ? l.style.parsedOptions : void 0;
|
|
3747
|
+
b && b.scale && (c = c * (b.scale || 1)), a.push({
|
|
3769
3748
|
type: x.literal,
|
|
3770
|
-
value: r.getNumberFormat(t,
|
|
3749
|
+
value: r.getNumberFormat(t, b).format(c)
|
|
3771
3750
|
});
|
|
3772
3751
|
continue;
|
|
3773
3752
|
}
|
|
3774
|
-
if (
|
|
3775
|
-
var
|
|
3776
|
-
if (!
|
|
3777
|
-
throw new
|
|
3778
|
-
var E = le(
|
|
3779
|
-
return
|
|
3753
|
+
if (Jt(l)) {
|
|
3754
|
+
var g = l.children, v = l.value, w = i[v];
|
|
3755
|
+
if (!si(w))
|
|
3756
|
+
throw new ni(v, "function", s);
|
|
3757
|
+
var E = le(g, t, r, n, i, o), N = w(E.map(function(O) {
|
|
3758
|
+
return O.value;
|
|
3780
3759
|
}));
|
|
3781
|
-
Array.isArray(N) || (N = [N]), a.push.apply(a, N.map(function(
|
|
3760
|
+
Array.isArray(N) || (N = [N]), a.push.apply(a, N.map(function(O) {
|
|
3782
3761
|
return {
|
|
3783
|
-
type: typeof
|
|
3784
|
-
value:
|
|
3762
|
+
type: typeof O == "string" ? x.literal : x.object,
|
|
3763
|
+
value: O
|
|
3785
3764
|
};
|
|
3786
3765
|
}));
|
|
3787
3766
|
}
|
|
3788
|
-
if (
|
|
3767
|
+
if (Zt(l)) {
|
|
3789
3768
|
var T = l.options[c] || l.options.other;
|
|
3790
3769
|
if (!T)
|
|
3791
|
-
throw new
|
|
3770
|
+
throw new Et(l.value, c, Object.keys(l.options), s);
|
|
3792
3771
|
a.push.apply(a, le(T.value, t, r, n, i));
|
|
3793
3772
|
continue;
|
|
3794
3773
|
}
|
|
3795
|
-
if (
|
|
3774
|
+
if (Qt(l)) {
|
|
3796
3775
|
var T = l.options["=".concat(c)];
|
|
3797
3776
|
if (!T) {
|
|
3798
3777
|
if (!Intl.PluralRules)
|
|
3799
|
-
throw new
|
|
3778
|
+
throw new ve(`Intl.PluralRules is not available in this environment.
|
|
3800
3779
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3801
|
-
`,
|
|
3802
|
-
var
|
|
3803
|
-
T = l.options[
|
|
3780
|
+
`, V.MISSING_INTL_API, s);
|
|
3781
|
+
var Z = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3782
|
+
T = l.options[Z] || l.options.other;
|
|
3804
3783
|
}
|
|
3805
3784
|
if (!T)
|
|
3806
|
-
throw new
|
|
3785
|
+
throw new Et(l.value, c, Object.keys(l.options), s);
|
|
3807
3786
|
a.push.apply(a, le(T.value, t, r, n, i, c - (l.offset || 0)));
|
|
3808
3787
|
continue;
|
|
3809
3788
|
}
|
|
3810
3789
|
}
|
|
3811
|
-
return
|
|
3790
|
+
return oi(a);
|
|
3812
3791
|
}
|
|
3813
|
-
function
|
|
3814
|
-
return t ?
|
|
3815
|
-
return r[n] =
|
|
3792
|
+
function ai(e, t) {
|
|
3793
|
+
return t ? m(m(m({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3794
|
+
return r[n] = m(m({}, e[n]), t[n] || {}), r;
|
|
3816
3795
|
}, {})) : e;
|
|
3817
3796
|
}
|
|
3818
|
-
function
|
|
3797
|
+
function ui(e, t) {
|
|
3819
3798
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3820
|
-
return r[n] =
|
|
3821
|
-
},
|
|
3799
|
+
return r[n] = ai(e[n], t[n]), r;
|
|
3800
|
+
}, m({}, e)) : e;
|
|
3822
3801
|
}
|
|
3823
|
-
function
|
|
3802
|
+
function Be(e) {
|
|
3824
3803
|
return {
|
|
3825
3804
|
create: function() {
|
|
3826
3805
|
return {
|
|
@@ -3834,39 +3813,39 @@ function Pe(e) {
|
|
|
3834
3813
|
}
|
|
3835
3814
|
};
|
|
3836
3815
|
}
|
|
3837
|
-
function
|
|
3816
|
+
function hi(e) {
|
|
3838
3817
|
return e === void 0 && (e = {
|
|
3839
3818
|
number: {},
|
|
3840
3819
|
dateTime: {},
|
|
3841
3820
|
pluralRules: {}
|
|
3842
3821
|
}), {
|
|
3843
|
-
getNumberFormat:
|
|
3822
|
+
getNumberFormat: He(function() {
|
|
3844
3823
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3845
3824
|
r[n] = arguments[n];
|
|
3846
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3825
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, G([void 0], r, !1)))();
|
|
3847
3826
|
}, {
|
|
3848
|
-
cache:
|
|
3849
|
-
strategy:
|
|
3827
|
+
cache: Be(e.number),
|
|
3828
|
+
strategy: we.variadic
|
|
3850
3829
|
}),
|
|
3851
|
-
getDateTimeFormat:
|
|
3830
|
+
getDateTimeFormat: He(function() {
|
|
3852
3831
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3853
3832
|
r[n] = arguments[n];
|
|
3854
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3833
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, G([void 0], r, !1)))();
|
|
3855
3834
|
}, {
|
|
3856
|
-
cache:
|
|
3857
|
-
strategy:
|
|
3835
|
+
cache: Be(e.dateTime),
|
|
3836
|
+
strategy: we.variadic
|
|
3858
3837
|
}),
|
|
3859
|
-
getPluralRules:
|
|
3838
|
+
getPluralRules: He(function() {
|
|
3860
3839
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3861
3840
|
r[n] = arguments[n];
|
|
3862
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3841
|
+
return new ((t = Intl.PluralRules).bind.apply(t, G([void 0], r, !1)))();
|
|
3863
3842
|
}, {
|
|
3864
|
-
cache:
|
|
3865
|
-
strategy:
|
|
3843
|
+
cache: Be(e.pluralRules),
|
|
3844
|
+
strategy: we.variadic
|
|
3866
3845
|
})
|
|
3867
3846
|
};
|
|
3868
3847
|
}
|
|
3869
|
-
var
|
|
3848
|
+
var li = (
|
|
3870
3849
|
/** @class */
|
|
3871
3850
|
function() {
|
|
3872
3851
|
function e(t, r, n, i) {
|
|
@@ -3898,13 +3877,13 @@ var ci = (
|
|
|
3898
3877
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3899
3878
|
var s = i || {};
|
|
3900
3879
|
s.formatters;
|
|
3901
|
-
var a =
|
|
3902
|
-
this.ast = e.__parse(t,
|
|
3880
|
+
var a = jr(s, ["formatters"]);
|
|
3881
|
+
this.ast = e.__parse(t, m(m({}, a), { locale: this.resolvedLocale }));
|
|
3903
3882
|
} else
|
|
3904
3883
|
this.ast = t;
|
|
3905
3884
|
if (!Array.isArray(this.ast))
|
|
3906
3885
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3907
|
-
this.formats =
|
|
3886
|
+
this.formats = ui(e.formats, n), this.formatters = i && i.formatters || hi(this.formatterCache);
|
|
3908
3887
|
}
|
|
3909
3888
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3910
3889
|
get: function() {
|
|
@@ -3917,7 +3896,7 @@ var ci = (
|
|
|
3917
3896
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3918
3897
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3919
3898
|
}
|
|
3920
|
-
}, e.__parse =
|
|
3899
|
+
}, e.__parse = ri, e.formats = {
|
|
3921
3900
|
number: {
|
|
3922
3901
|
integer: {
|
|
3923
3902
|
maximumFractionDigits: 0
|
|
@@ -3978,7 +3957,7 @@ var ci = (
|
|
|
3978
3957
|
}, e;
|
|
3979
3958
|
}()
|
|
3980
3959
|
);
|
|
3981
|
-
function
|
|
3960
|
+
function fi(e, t) {
|
|
3982
3961
|
if (t == null)
|
|
3983
3962
|
return;
|
|
3984
3963
|
if (t in e)
|
|
@@ -3999,92 +3978,92 @@ function pi(e, t) {
|
|
|
3999
3978
|
n = void 0;
|
|
4000
3979
|
return n;
|
|
4001
3980
|
}
|
|
4002
|
-
const
|
|
3981
|
+
const C = {}, ci = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), or = (e, t) => {
|
|
4003
3982
|
if (t == null)
|
|
4004
3983
|
return;
|
|
4005
|
-
if (t in
|
|
4006
|
-
return
|
|
4007
|
-
const r =
|
|
3984
|
+
if (t in C && e in C[t])
|
|
3985
|
+
return C[t][e];
|
|
3986
|
+
const r = ge(t);
|
|
4008
3987
|
for (let n = 0; n < r.length; n++) {
|
|
4009
|
-
const i = r[n], o =
|
|
3988
|
+
const i = r[n], o = di(i, e);
|
|
4010
3989
|
if (o)
|
|
4011
|
-
return
|
|
3990
|
+
return ci(e, t, o);
|
|
4012
3991
|
}
|
|
4013
3992
|
};
|
|
4014
|
-
let
|
|
4015
|
-
const re =
|
|
4016
|
-
function
|
|
4017
|
-
return
|
|
3993
|
+
let Ze;
|
|
3994
|
+
const re = be({});
|
|
3995
|
+
function pi(e) {
|
|
3996
|
+
return Ze[e] || null;
|
|
4018
3997
|
}
|
|
4019
|
-
function
|
|
4020
|
-
return e in
|
|
3998
|
+
function sr(e) {
|
|
3999
|
+
return e in Ze;
|
|
4021
4000
|
}
|
|
4022
|
-
function
|
|
4023
|
-
if (!
|
|
4001
|
+
function di(e, t) {
|
|
4002
|
+
if (!sr(e))
|
|
4024
4003
|
return null;
|
|
4025
|
-
const r =
|
|
4026
|
-
return
|
|
4004
|
+
const r = pi(e);
|
|
4005
|
+
return fi(r, t);
|
|
4027
4006
|
}
|
|
4028
|
-
function
|
|
4007
|
+
function mi(e) {
|
|
4029
4008
|
if (e == null)
|
|
4030
4009
|
return;
|
|
4031
|
-
const t =
|
|
4010
|
+
const t = ge(e);
|
|
4032
4011
|
for (let r = 0; r < t.length; r++) {
|
|
4033
4012
|
const n = t[r];
|
|
4034
|
-
if (
|
|
4013
|
+
if (sr(n))
|
|
4035
4014
|
return n;
|
|
4036
4015
|
}
|
|
4037
4016
|
}
|
|
4038
|
-
function
|
|
4039
|
-
delete
|
|
4017
|
+
function bi(e, ...t) {
|
|
4018
|
+
delete C[e], re.update((r) => (r[e] = _n.all([r[e] || {}, ...t]), r));
|
|
4040
4019
|
}
|
|
4041
|
-
|
|
4020
|
+
W(
|
|
4042
4021
|
[re],
|
|
4043
4022
|
([e]) => Object.keys(e)
|
|
4044
4023
|
);
|
|
4045
|
-
re.subscribe((e) =>
|
|
4024
|
+
re.subscribe((e) => Ze = e);
|
|
4046
4025
|
const fe = {};
|
|
4047
|
-
function
|
|
4026
|
+
function vi(e, t) {
|
|
4048
4027
|
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
4049
4028
|
}
|
|
4050
|
-
function
|
|
4029
|
+
function ar(e) {
|
|
4051
4030
|
return fe[e];
|
|
4052
4031
|
}
|
|
4053
|
-
function
|
|
4054
|
-
return
|
|
4055
|
-
const r =
|
|
4032
|
+
function gi(e) {
|
|
4033
|
+
return ge(e).map((t) => {
|
|
4034
|
+
const r = ar(t);
|
|
4056
4035
|
return [t, r ? [...r] : []];
|
|
4057
4036
|
}).filter(([, t]) => t.length > 0);
|
|
4058
4037
|
}
|
|
4059
|
-
function
|
|
4060
|
-
return e == null ? !1 :
|
|
4038
|
+
function Ve(e) {
|
|
4039
|
+
return e == null ? !1 : ge(e).some(
|
|
4061
4040
|
(t) => {
|
|
4062
4041
|
var r;
|
|
4063
|
-
return (r =
|
|
4042
|
+
return (r = ar(t)) == null ? void 0 : r.size;
|
|
4064
4043
|
}
|
|
4065
4044
|
);
|
|
4066
4045
|
}
|
|
4067
|
-
function
|
|
4046
|
+
function yi(e, t) {
|
|
4068
4047
|
return Promise.all(
|
|
4069
|
-
t.map((n) => (
|
|
4070
|
-
).then((n) =>
|
|
4071
|
-
}
|
|
4072
|
-
const
|
|
4073
|
-
function
|
|
4074
|
-
if (!
|
|
4075
|
-
return e in
|
|
4076
|
-
const t =
|
|
4077
|
-
return
|
|
4048
|
+
t.map((n) => (vi(e, n), n().then((i) => i.default || i)))
|
|
4049
|
+
).then((n) => bi(e, ...n));
|
|
4050
|
+
}
|
|
4051
|
+
const Q = {};
|
|
4052
|
+
function ur(e) {
|
|
4053
|
+
if (!Ve(e))
|
|
4054
|
+
return e in Q ? Q[e] : Promise.resolve();
|
|
4055
|
+
const t = gi(e);
|
|
4056
|
+
return Q[e] = Promise.all(
|
|
4078
4057
|
t.map(
|
|
4079
|
-
([r, n]) =>
|
|
4058
|
+
([r, n]) => yi(r, n)
|
|
4080
4059
|
)
|
|
4081
4060
|
).then(() => {
|
|
4082
|
-
if (
|
|
4083
|
-
return
|
|
4084
|
-
delete
|
|
4085
|
-
}),
|
|
4061
|
+
if (Ve(e))
|
|
4062
|
+
return ur(e);
|
|
4063
|
+
delete Q[e];
|
|
4064
|
+
}), Q[e];
|
|
4086
4065
|
}
|
|
4087
|
-
const
|
|
4066
|
+
const _i = {
|
|
4088
4067
|
number: {
|
|
4089
4068
|
scientific: { notation: "scientific" },
|
|
4090
4069
|
engineering: { notation: "engineering" },
|
|
@@ -4113,135 +4092,135 @@ const xi = {
|
|
|
4113
4092
|
timeZoneName: "short"
|
|
4114
4093
|
}
|
|
4115
4094
|
}
|
|
4116
|
-
},
|
|
4095
|
+
}, Ei = {
|
|
4117
4096
|
fallbackLocale: null,
|
|
4118
4097
|
loadingDelay: 200,
|
|
4119
|
-
formats:
|
|
4098
|
+
formats: _i,
|
|
4120
4099
|
warnOnMissingMessages: !0,
|
|
4121
4100
|
handleMissingMessage: void 0,
|
|
4122
4101
|
ignoreTag: !0
|
|
4123
|
-
},
|
|
4124
|
-
function
|
|
4125
|
-
return
|
|
4102
|
+
}, xi = Ei;
|
|
4103
|
+
function k() {
|
|
4104
|
+
return xi;
|
|
4126
4105
|
}
|
|
4127
|
-
const
|
|
4128
|
-
var
|
|
4106
|
+
const Ae = be(!1);
|
|
4107
|
+
var Si = Object.defineProperty, Hi = Object.defineProperties, wi = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, Bi = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ai = (e, t) => {
|
|
4129
4108
|
for (var r in t || (t = {}))
|
|
4130
|
-
|
|
4131
|
-
if (
|
|
4132
|
-
for (var r of
|
|
4133
|
-
|
|
4109
|
+
Ti.call(t, r) && St(e, r, t[r]);
|
|
4110
|
+
if (xt)
|
|
4111
|
+
for (var r of xt(t))
|
|
4112
|
+
Bi.call(t, r) && St(e, r, t[r]);
|
|
4134
4113
|
return e;
|
|
4135
|
-
},
|
|
4136
|
-
let
|
|
4137
|
-
const
|
|
4138
|
-
function
|
|
4114
|
+
}, Pi = (e, t) => Hi(e, wi(t));
|
|
4115
|
+
let ke;
|
|
4116
|
+
const pe = be(null);
|
|
4117
|
+
function Ht(e) {
|
|
4139
4118
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4140
4119
|
}
|
|
4141
|
-
function
|
|
4142
|
-
const r =
|
|
4143
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4120
|
+
function ge(e, t = k().fallbackLocale) {
|
|
4121
|
+
const r = Ht(e);
|
|
4122
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ht(t)])] : r;
|
|
4144
4123
|
}
|
|
4145
4124
|
function I() {
|
|
4146
|
-
return
|
|
4125
|
+
return ke != null ? ke : void 0;
|
|
4147
4126
|
}
|
|
4148
|
-
|
|
4149
|
-
|
|
4127
|
+
pe.subscribe((e) => {
|
|
4128
|
+
ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4150
4129
|
});
|
|
4151
|
-
const
|
|
4152
|
-
if (e &&
|
|
4153
|
-
const { loadingDelay: t } =
|
|
4130
|
+
const Ci = (e) => {
|
|
4131
|
+
if (e && mi(e) && Ve(e)) {
|
|
4132
|
+
const { loadingDelay: t } = k();
|
|
4154
4133
|
let r;
|
|
4155
4134
|
return typeof window != "undefined" && I() != null && t ? r = window.setTimeout(
|
|
4156
|
-
() =>
|
|
4135
|
+
() => Ae.set(!0),
|
|
4157
4136
|
t
|
|
4158
|
-
) :
|
|
4159
|
-
|
|
4137
|
+
) : Ae.set(!0), ur(e).then(() => {
|
|
4138
|
+
pe.set(e);
|
|
4160
4139
|
}).finally(() => {
|
|
4161
|
-
clearTimeout(r),
|
|
4140
|
+
clearTimeout(r), Ae.set(!1);
|
|
4162
4141
|
});
|
|
4163
4142
|
}
|
|
4164
|
-
return
|
|
4165
|
-
}, ne =
|
|
4166
|
-
set:
|
|
4167
|
-
}),
|
|
4143
|
+
return pe.set(e);
|
|
4144
|
+
}, ne = Pi(Ai({}, pe), {
|
|
4145
|
+
set: Ci
|
|
4146
|
+
}), ye = (e) => {
|
|
4168
4147
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4169
4148
|
return (n) => {
|
|
4170
4149
|
const i = JSON.stringify(n);
|
|
4171
4150
|
return i in t ? t[i] : t[i] = e(n);
|
|
4172
4151
|
};
|
|
4173
4152
|
};
|
|
4174
|
-
var
|
|
4153
|
+
var Oi = Object.defineProperty, de = Object.getOwnPropertySymbols, hr = Object.prototype.hasOwnProperty, lr = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? Oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
4175
4154
|
for (var r in t || (t = {}))
|
|
4176
|
-
|
|
4177
|
-
if (
|
|
4178
|
-
for (var r of
|
|
4179
|
-
|
|
4155
|
+
hr.call(t, r) && wt(e, r, t[r]);
|
|
4156
|
+
if (de)
|
|
4157
|
+
for (var r of de(t))
|
|
4158
|
+
lr.call(t, r) && wt(e, r, t[r]);
|
|
4180
4159
|
return e;
|
|
4181
|
-
},
|
|
4160
|
+
}, z = (e, t) => {
|
|
4182
4161
|
var r = {};
|
|
4183
4162
|
for (var n in e)
|
|
4184
|
-
|
|
4185
|
-
if (e != null &&
|
|
4186
|
-
for (var n of
|
|
4187
|
-
t.indexOf(n) < 0 &&
|
|
4163
|
+
hr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4164
|
+
if (e != null && de)
|
|
4165
|
+
for (var n of de(e))
|
|
4166
|
+
t.indexOf(n) < 0 && lr.call(e, n) && (r[n] = e[n]);
|
|
4188
4167
|
return r;
|
|
4189
4168
|
};
|
|
4190
|
-
const
|
|
4191
|
-
const { formats: r } =
|
|
4169
|
+
const K = (e, t) => {
|
|
4170
|
+
const { formats: r } = k();
|
|
4192
4171
|
if (e in r && t in r[e])
|
|
4193
4172
|
return r[e][t];
|
|
4194
4173
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4195
|
-
},
|
|
4174
|
+
}, Li = ye(
|
|
4196
4175
|
(e) => {
|
|
4197
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4176
|
+
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
|
4198
4177
|
if (r == null)
|
|
4199
4178
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4200
|
-
return n && (i =
|
|
4179
|
+
return n && (i = K("number", n)), new Intl.NumberFormat(r, i);
|
|
4201
4180
|
}
|
|
4202
|
-
),
|
|
4181
|
+
), Ii = ye(
|
|
4203
4182
|
(e) => {
|
|
4204
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4183
|
+
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
|
4205
4184
|
if (r == null)
|
|
4206
4185
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4207
|
-
return n ? i =
|
|
4186
|
+
return n ? i = K("date", n) : Object.keys(i).length === 0 && (i = K("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4208
4187
|
}
|
|
4209
|
-
),
|
|
4188
|
+
), Ni = ye(
|
|
4210
4189
|
(e) => {
|
|
4211
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4190
|
+
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
|
4212
4191
|
if (r == null)
|
|
4213
4192
|
throw new Error(
|
|
4214
4193
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4215
4194
|
);
|
|
4216
|
-
return n ? i =
|
|
4195
|
+
return n ? i = K("time", n) : Object.keys(i).length === 0 && (i = K("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4217
4196
|
}
|
|
4218
|
-
),
|
|
4197
|
+
), Mi = (e = {}) => {
|
|
4219
4198
|
var t = e, {
|
|
4220
4199
|
locale: r = I()
|
|
4221
|
-
} = t, n =
|
|
4200
|
+
} = t, n = z(t, [
|
|
4222
4201
|
"locale"
|
|
4223
4202
|
]);
|
|
4224
|
-
return
|
|
4225
|
-
},
|
|
4203
|
+
return Li(Qe({ locale: r }, n));
|
|
4204
|
+
}, $i = (e = {}) => {
|
|
4226
4205
|
var t = e, {
|
|
4227
4206
|
locale: r = I()
|
|
4228
|
-
} = t, n =
|
|
4207
|
+
} = t, n = z(t, [
|
|
4229
4208
|
"locale"
|
|
4230
4209
|
]);
|
|
4231
|
-
return
|
|
4232
|
-
},
|
|
4210
|
+
return Ii(Qe({ locale: r }, n));
|
|
4211
|
+
}, Ri = (e = {}) => {
|
|
4233
4212
|
var t = e, {
|
|
4234
4213
|
locale: r = I()
|
|
4235
|
-
} = t, n =
|
|
4214
|
+
} = t, n = z(t, [
|
|
4236
4215
|
"locale"
|
|
4237
4216
|
]);
|
|
4238
|
-
return
|
|
4239
|
-
},
|
|
4217
|
+
return Ni(Qe({ locale: r }, n));
|
|
4218
|
+
}, Ui = ye(
|
|
4240
4219
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4241
|
-
(e, t = I()) => new
|
|
4242
|
-
ignoreTag:
|
|
4220
|
+
(e, t = I()) => new li(e, t, k().formats, {
|
|
4221
|
+
ignoreTag: k().ignoreTag
|
|
4243
4222
|
})
|
|
4244
|
-
),
|
|
4223
|
+
), Di = (e, t = {}) => {
|
|
4245
4224
|
var r, n, i, o;
|
|
4246
4225
|
let s = t;
|
|
4247
4226
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4254,9 +4233,9 @@ const Y = (e, t) => {
|
|
|
4254
4233
|
throw new Error(
|
|
4255
4234
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4256
4235
|
);
|
|
4257
|
-
let l =
|
|
4236
|
+
let l = or(e, h);
|
|
4258
4237
|
if (!l)
|
|
4259
|
-
l = (o = (i = (n = (r =
|
|
4238
|
+
l = (o = (i = (n = (r = k()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4260
4239
|
else if (typeof l != "string")
|
|
4261
4240
|
return console.warn(
|
|
4262
4241
|
`[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.`
|
|
@@ -4265,7 +4244,7 @@ const Y = (e, t) => {
|
|
|
4265
4244
|
return l;
|
|
4266
4245
|
let f = l;
|
|
4267
4246
|
try {
|
|
4268
|
-
f =
|
|
4247
|
+
f = Ui(l, h).format(a);
|
|
4269
4248
|
} catch (c) {
|
|
4270
4249
|
c instanceof Error && console.warn(
|
|
4271
4250
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4273,27 +4252,27 @@ const Y = (e, t) => {
|
|
|
4273
4252
|
);
|
|
4274
4253
|
}
|
|
4275
4254
|
return f;
|
|
4276
|
-
},
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4255
|
+
}, Gi = (e, t) => Ri(t).format(e), Fi = (e, t) => $i(t).format(e), ji = (e, t) => Mi(t).format(e), Vi = (e, t = I()) => or(e, t);
|
|
4256
|
+
W([ne, re], () => Di);
|
|
4257
|
+
W([ne], () => Gi);
|
|
4258
|
+
W([ne], () => Fi);
|
|
4259
|
+
W([ne], () => ji);
|
|
4260
|
+
W([ne, re], () => Vi);
|
|
4282
4261
|
window.emWidgets = { topic: rn };
|
|
4283
|
-
const
|
|
4284
|
-
function
|
|
4285
|
-
|
|
4262
|
+
const Tt = (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));
|
|
4263
|
+
function ki(e) {
|
|
4264
|
+
gr(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}");
|
|
4286
4265
|
}
|
|
4287
|
-
function
|
|
4266
|
+
function Bt(e) {
|
|
4288
4267
|
let t, r, n, i, o, s, a, h = !/*desktopView*/
|
|
4289
|
-
e[2] &&
|
|
4268
|
+
e[2] && At(e), u = (
|
|
4290
4269
|
/*desktopView*/
|
|
4291
|
-
e[2] &&
|
|
4270
|
+
e[2] && Pt(e)
|
|
4292
4271
|
);
|
|
4293
4272
|
return {
|
|
4294
4273
|
c() {
|
|
4295
|
-
t = L("div"), h && h.c(), r =
|
|
4296
|
-
e[0]) || _(s, "src", a), o.autoplay = !0, o.controls = !0, _(o, "controlslist", "nodownload"), _(o, "disablepictureinpicture", ""), _(n, "class", "CashierVideo"), _(t, "class", "CashierVideoWrapper"),
|
|
4274
|
+
t = L("div"), h && h.c(), r = nt(), n = L("div"), u && u.c(), i = nt(), o = L("video"), s = L("source"), rt(s.src, a = /*videosrc*/
|
|
4275
|
+
e[0]) || _(s, "src", a), o.autoplay = !0, o.controls = !0, _(o, "controlslist", "nodownload"), _(o, "disablepictureinpicture", ""), _(n, "class", "CashierVideo"), _(t, "class", "CashierVideoWrapper"), it(
|
|
4297
4276
|
t,
|
|
4298
4277
|
"CashierVideoWrapperDesktop",
|
|
4299
4278
|
/*desktopView*/
|
|
@@ -4301,15 +4280,15 @@ function Pt(e) {
|
|
|
4301
4280
|
);
|
|
4302
4281
|
},
|
|
4303
4282
|
m(l, f) {
|
|
4304
|
-
|
|
4283
|
+
te(l, t, f), h && h.m(t, null), B(t, r), B(t, n), u && u.m(n, null), B(n, i), B(n, o), B(o, s), e[10](t);
|
|
4305
4284
|
},
|
|
4306
4285
|
p(l, f) {
|
|
4307
4286
|
/*desktopView*/
|
|
4308
|
-
l[2] ? h && (h.d(1), h = null) : h ? h.p(l, f) : (h =
|
|
4309
|
-
l[2] ? u ? u.p(l, f) : (u =
|
|
4310
|
-
1 && !
|
|
4287
|
+
l[2] ? h && (h.d(1), h = null) : h ? h.p(l, f) : (h = At(l), h.c(), h.m(t, r)), /*desktopView*/
|
|
4288
|
+
l[2] ? u ? u.p(l, f) : (u = Pt(l), u.c(), u.m(n, i)) : u && (u.d(1), u = null), f & /*videosrc*/
|
|
4289
|
+
1 && !rt(s.src, a = /*videosrc*/
|
|
4311
4290
|
l[0]) && _(s, "src", a), f & /*desktopView*/
|
|
4312
|
-
4 &&
|
|
4291
|
+
4 && it(
|
|
4313
4292
|
t,
|
|
4314
4293
|
"CashierVideoWrapperDesktop",
|
|
4315
4294
|
/*desktopView*/
|
|
@@ -4317,18 +4296,18 @@ function Pt(e) {
|
|
|
4317
4296
|
);
|
|
4318
4297
|
},
|
|
4319
4298
|
d(l) {
|
|
4320
|
-
l &&
|
|
4299
|
+
l && X(t), h && h.d(), u && u.d(), e[10](null);
|
|
4321
4300
|
}
|
|
4322
4301
|
};
|
|
4323
4302
|
}
|
|
4324
|
-
function
|
|
4303
|
+
function At(e) {
|
|
4325
4304
|
let t, r, n, i, o;
|
|
4326
4305
|
return {
|
|
4327
4306
|
c() {
|
|
4328
4307
|
t = L("div"), r = ce("svg"), n = ce("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");
|
|
4329
4308
|
},
|
|
4330
4309
|
m(s, a) {
|
|
4331
|
-
|
|
4310
|
+
te(s, t, a), B(t, r), B(r, n), i || (o = It(
|
|
4332
4311
|
r,
|
|
4333
4312
|
"click",
|
|
4334
4313
|
/*click_handler*/
|
|
@@ -4337,18 +4316,18 @@ function Ot(e) {
|
|
|
4337
4316
|
},
|
|
4338
4317
|
p: S,
|
|
4339
4318
|
d(s) {
|
|
4340
|
-
s &&
|
|
4319
|
+
s && X(t), i = !1, o();
|
|
4341
4320
|
}
|
|
4342
4321
|
};
|
|
4343
4322
|
}
|
|
4344
|
-
function
|
|
4323
|
+
function Pt(e) {
|
|
4345
4324
|
let t, r, n, i;
|
|
4346
4325
|
return {
|
|
4347
4326
|
c() {
|
|
4348
4327
|
t = ce("svg"), r = ce("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");
|
|
4349
4328
|
},
|
|
4350
4329
|
m(o, s) {
|
|
4351
|
-
|
|
4330
|
+
te(o, t, s), B(t, r), n || (i = It(
|
|
4352
4331
|
t,
|
|
4353
4332
|
"click",
|
|
4354
4333
|
/*click_handler_1*/
|
|
@@ -4357,48 +4336,48 @@ function Ct(e) {
|
|
|
4357
4336
|
},
|
|
4358
4337
|
p: S,
|
|
4359
4338
|
d(o) {
|
|
4360
|
-
o &&
|
|
4339
|
+
o && X(t), n = !1, i();
|
|
4361
4340
|
}
|
|
4362
4341
|
};
|
|
4363
4342
|
}
|
|
4364
|
-
function
|
|
4343
|
+
function Xi(e) {
|
|
4365
4344
|
let t, r = (
|
|
4366
4345
|
/*show*/
|
|
4367
|
-
e[3] &&
|
|
4346
|
+
e[3] && Bt(e)
|
|
4368
4347
|
);
|
|
4369
4348
|
return {
|
|
4370
4349
|
c() {
|
|
4371
|
-
r && r.c(), t =
|
|
4350
|
+
r && r.c(), t = Er();
|
|
4372
4351
|
},
|
|
4373
4352
|
m(n, i) {
|
|
4374
|
-
r && r.m(n, i),
|
|
4353
|
+
r && r.m(n, i), te(n, t, i);
|
|
4375
4354
|
},
|
|
4376
4355
|
p(n, [i]) {
|
|
4377
4356
|
/*show*/
|
|
4378
|
-
n[3] ? r ? r.p(n, i) : (r =
|
|
4357
|
+
n[3] ? r ? r.p(n, i) : (r = Bt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
4379
4358
|
},
|
|
4380
4359
|
i: S,
|
|
4381
4360
|
o: S,
|
|
4382
4361
|
d(n) {
|
|
4383
|
-
n &&
|
|
4362
|
+
n && X(t), r && r.d(n);
|
|
4384
4363
|
}
|
|
4385
4364
|
};
|
|
4386
4365
|
}
|
|
4387
|
-
function
|
|
4366
|
+
function Wi(e, t, r) {
|
|
4388
4367
|
let { clientstyling: n = "" } = t, { clientstylingurl: i = "" } = t, { videosrc: o } = t, { mbsource: s = "" } = t, a = window.navigator.userAgent, h = !0, u = !1, l;
|
|
4389
4368
|
const f = () => {
|
|
4390
4369
|
r(3, u = !1), window.postMessage({ type: "ClosedCashierVideoModal" }, window.location.href), window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
4391
4370
|
}, c = (E) => {
|
|
4392
4371
|
E.data.type == "ShowCashierVideoModal" && (r(3, u = !0), window.postMessage({ type: "DisableScroll" }, window.location.href)), E.data.type == "HideCashierVideoModal" && f();
|
|
4393
|
-
},
|
|
4394
|
-
r(2, h = !
|
|
4372
|
+
}, b = () => {
|
|
4373
|
+
r(2, h = !Tt(a));
|
|
4395
4374
|
};
|
|
4396
|
-
|
|
4375
|
+
wr(() => (window.addEventListener("message", c, !1), () => {
|
|
4397
4376
|
window.removeEventListener("message", c);
|
|
4398
4377
|
}));
|
|
4399
|
-
const
|
|
4400
|
-
function
|
|
4401
|
-
|
|
4378
|
+
const g = () => f(), v = () => f();
|
|
4379
|
+
function w(E) {
|
|
4380
|
+
Pe[E ? "unshift" : "push"](() => {
|
|
4402
4381
|
l = E, r(1, l);
|
|
4403
4382
|
});
|
|
4404
4383
|
}
|
|
@@ -4406,10 +4385,10 @@ function Zi(e, t, r) {
|
|
|
4406
4385
|
"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);
|
|
4407
4386
|
}, e.$$.update = () => {
|
|
4408
4387
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4409
|
-
34 && n && l &&
|
|
4410
|
-
66 && i && l &&
|
|
4411
|
-
130 && s && l &&
|
|
4412
|
-
},
|
|
4388
|
+
34 && n && l && Dr(l, n), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4389
|
+
66 && i && l && Gr(l, i), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4390
|
+
130 && s && l && Fr(l, `${s}.Style`);
|
|
4391
|
+
}, Tt(a) && b(), [
|
|
4413
4392
|
o,
|
|
4414
4393
|
l,
|
|
4415
4394
|
h,
|
|
@@ -4418,26 +4397,26 @@ function Zi(e, t, r) {
|
|
|
4418
4397
|
n,
|
|
4419
4398
|
i,
|
|
4420
4399
|
s,
|
|
4400
|
+
g,
|
|
4421
4401
|
v,
|
|
4422
|
-
|
|
4423
|
-
H
|
|
4402
|
+
w
|
|
4424
4403
|
];
|
|
4425
4404
|
}
|
|
4426
|
-
class
|
|
4405
|
+
class zi extends Rr {
|
|
4427
4406
|
constructor(t) {
|
|
4428
|
-
super(),
|
|
4407
|
+
super(), Mr(
|
|
4429
4408
|
this,
|
|
4430
4409
|
t,
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4410
|
+
Wi,
|
|
4411
|
+
Xi,
|
|
4412
|
+
Ot,
|
|
4434
4413
|
{
|
|
4435
4414
|
clientstyling: 5,
|
|
4436
4415
|
clientstylingurl: 6,
|
|
4437
4416
|
videosrc: 0,
|
|
4438
4417
|
mbsource: 7
|
|
4439
4418
|
},
|
|
4440
|
-
|
|
4419
|
+
ki
|
|
4441
4420
|
);
|
|
4442
4421
|
}
|
|
4443
4422
|
get clientstyling() {
|
|
@@ -4465,7 +4444,7 @@ class Qi extends Ur {
|
|
|
4465
4444
|
this.$$set({ mbsource: t }), U();
|
|
4466
4445
|
}
|
|
4467
4446
|
}
|
|
4468
|
-
|
|
4447
|
+
$r(zi, { clientstyling: {}, clientstylingurl: {}, videosrc: {}, mbsource: {} }, [], [], !0);
|
|
4469
4448
|
export {
|
|
4470
|
-
|
|
4449
|
+
zi as default
|
|
4471
4450
|
};
|