@everymatrix/casino-header-bets-button 1.87.26 → 1.87.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoHeaderBetsButton-Cs_XFGBv.js → CasinoHeaderBetsButton-DO5081im.js} +656 -627
- package/components/CasinoHeaderBetsButton-DzRdh6MA.cjs +3 -0
- package/components/{CasinoHeaderBetsButton-BhYJRX5v.js → CasinoHeaderBetsButton-iG-aGV9s.js} +619 -591
- package/es2015/casino-header-bets-button.cjs +1 -1
- package/es2015/casino-header-bets-button.js +1 -1
- package/esnext/casino-header-bets-button.js +1 -1
- package/package.json +1 -1
- package/components/CasinoHeaderBetsButton-DWCOP-uF.cjs +0 -3
package/components/{CasinoHeaderBetsButton-Cs_XFGBv.js → CasinoHeaderBetsButton-DO5081im.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Rt = Object.defineProperty, Ut = Object.defineProperties;
|
|
2
|
+
var Dt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ge = Object.getOwnPropertySymbols;
|
|
4
|
+
var Gt = Object.prototype.hasOwnProperty, Ft = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var pe = (e, t, r) => t in e ? Rt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fe = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Gt.call(t, r) && pe(e, r, t[r]);
|
|
8
|
+
if (Ge)
|
|
9
|
+
for (var r of Ge(t))
|
|
10
|
+
Ft.call(t, r) && pe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, je = (e, t) => Ut(e, Dt(t));
|
|
13
|
+
var H = (e, t, r) => (pe(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var ke = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
u(r.next(h));
|
|
@@ -27,49 +27,49 @@ var je = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, a);
|
|
28
28
|
u((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function T() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function ut(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Ve() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function K(e) {
|
|
39
|
+
e.forEach(ut);
|
|
40
40
|
}
|
|
41
41
|
function Le(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function ht(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function jt(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function lt(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
54
|
-
return
|
|
54
|
+
return T;
|
|
55
55
|
}
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function kt(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(lt(t, r));
|
|
61
61
|
}
|
|
62
62
|
function A(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function Vt(e, t, r) {
|
|
66
|
+
const n = Xt(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
|
-
const i =
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
68
|
+
const i = O("style");
|
|
69
|
+
i.id = t, i.textContent = r, Wt(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Xt(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,42 +79,42 @@ function Vt(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Wt(e, t) {
|
|
83
83
|
return A(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function ft(e, t, r) {
|
|
90
90
|
e.insertBefore(t, r || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function $e(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function O(e) {
|
|
96
96
|
return document.createElement(e);
|
|
97
97
|
}
|
|
98
98
|
function ve(e) {
|
|
99
99
|
return document.createTextNode(e);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function zt() {
|
|
102
102
|
return ve(" ");
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Zt(e, t, r, n) {
|
|
105
105
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
106
106
|
}
|
|
107
107
|
function R(e, t, r) {
|
|
108
108
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Qt(e) {
|
|
111
111
|
return Array.from(e.childNodes);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Xe(e, t) {
|
|
114
114
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
115
115
|
t);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Jt(e) {
|
|
118
118
|
const t = {};
|
|
119
119
|
return e.childNodes.forEach(
|
|
120
120
|
/** @param {Element} node */
|
|
@@ -123,95 +123,95 @@ function Qt(e) {
|
|
|
123
123
|
}
|
|
124
124
|
), t;
|
|
125
125
|
}
|
|
126
|
-
let
|
|
127
|
-
function
|
|
128
|
-
|
|
126
|
+
let J;
|
|
127
|
+
function Q(e) {
|
|
128
|
+
J = e;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
if (!
|
|
130
|
+
function qt() {
|
|
131
|
+
if (!J)
|
|
132
132
|
throw new Error("Function called outside component initialization");
|
|
133
|
-
return
|
|
133
|
+
return J;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
|
|
135
|
+
function Yt(e) {
|
|
136
|
+
qt().$$.on_mount.push(e);
|
|
137
137
|
}
|
|
138
|
-
const U = [],
|
|
139
|
-
let
|
|
140
|
-
const
|
|
141
|
-
let
|
|
142
|
-
function
|
|
143
|
-
|
|
138
|
+
const U = [], Be = [];
|
|
139
|
+
let G = [];
|
|
140
|
+
const We = [], Kt = /* @__PURE__ */ Promise.resolve();
|
|
141
|
+
let Se = !1;
|
|
142
|
+
function er() {
|
|
143
|
+
Se || (Se = !0, Kt.then(I));
|
|
144
144
|
}
|
|
145
145
|
function He(e) {
|
|
146
|
-
|
|
146
|
+
G.push(e);
|
|
147
147
|
}
|
|
148
|
-
const
|
|
149
|
-
let
|
|
148
|
+
const be = /* @__PURE__ */ new Set();
|
|
149
|
+
let L = 0;
|
|
150
150
|
function I() {
|
|
151
|
-
if (
|
|
151
|
+
if (L !== 0)
|
|
152
152
|
return;
|
|
153
|
-
const e =
|
|
153
|
+
const e = J;
|
|
154
154
|
do {
|
|
155
155
|
try {
|
|
156
|
-
for (;
|
|
157
|
-
const t = U[
|
|
158
|
-
|
|
156
|
+
for (; L < U.length; ) {
|
|
157
|
+
const t = U[L];
|
|
158
|
+
L++, Q(t), tr(t.$$);
|
|
159
159
|
}
|
|
160
160
|
} catch (t) {
|
|
161
|
-
throw U.length = 0,
|
|
161
|
+
throw U.length = 0, L = 0, t;
|
|
162
162
|
}
|
|
163
|
-
for (
|
|
164
|
-
|
|
165
|
-
for (let t = 0; t <
|
|
166
|
-
const r =
|
|
167
|
-
|
|
163
|
+
for (Q(null), U.length = 0, L = 0; Be.length; )
|
|
164
|
+
Be.pop()();
|
|
165
|
+
for (let t = 0; t < G.length; t += 1) {
|
|
166
|
+
const r = G[t];
|
|
167
|
+
be.has(r) || (be.add(r), r());
|
|
168
168
|
}
|
|
169
|
-
|
|
169
|
+
G.length = 0;
|
|
170
170
|
} while (U.length);
|
|
171
|
-
for (;
|
|
172
|
-
|
|
173
|
-
|
|
171
|
+
for (; We.length; )
|
|
172
|
+
We.pop()();
|
|
173
|
+
Se = !1, be.clear(), Q(e);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function tr(e) {
|
|
176
176
|
if (e.fragment !== null) {
|
|
177
|
-
e.update(),
|
|
177
|
+
e.update(), K(e.before_update);
|
|
178
178
|
const t = e.dirty;
|
|
179
179
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(He);
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function rr(e) {
|
|
183
183
|
const t = [], r = [];
|
|
184
|
-
|
|
184
|
+
G.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), G = t;
|
|
185
185
|
}
|
|
186
|
-
const
|
|
187
|
-
function
|
|
188
|
-
e && e.i && (
|
|
186
|
+
const nr = /* @__PURE__ */ new Set();
|
|
187
|
+
function ir(e, t) {
|
|
188
|
+
e && e.i && (nr.delete(e), e.i(t));
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function sr(e, t, r) {
|
|
191
191
|
const { fragment: n, after_update: i } = e.$$;
|
|
192
192
|
n && n.m(t, r), He(() => {
|
|
193
|
-
const s = e.$$.on_mount.map(
|
|
194
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
193
|
+
const s = e.$$.on_mount.map(ut).filter(Le);
|
|
194
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : K(s), e.$$.on_mount = [];
|
|
195
195
|
}), i.forEach(He);
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function or(e, t) {
|
|
198
198
|
const r = e.$$;
|
|
199
|
-
r.fragment !== null && (
|
|
199
|
+
r.fragment !== null && (rr(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
e.$$.dirty[0] === -1 && (U.push(e),
|
|
201
|
+
function ar(e, t) {
|
|
202
|
+
e.$$.dirty[0] === -1 && (U.push(e), er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
const h =
|
|
206
|
-
|
|
204
|
+
function ur(e, t, r, n, i, s, a = null, u = [-1]) {
|
|
205
|
+
const h = J;
|
|
206
|
+
Q(e);
|
|
207
207
|
const o = e.$$ = {
|
|
208
208
|
fragment: null,
|
|
209
209
|
ctx: [],
|
|
210
210
|
// state
|
|
211
211
|
props: s,
|
|
212
|
-
update:
|
|
212
|
+
update: T,
|
|
213
213
|
not_equal: i,
|
|
214
|
-
bound:
|
|
214
|
+
bound: Ve(),
|
|
215
215
|
// lifecycle
|
|
216
216
|
on_mount: [],
|
|
217
217
|
on_destroy: [],
|
|
@@ -220,7 +220,7 @@ function ar(e, t, r, n, i, s, a = null, u = [-1]) {
|
|
|
220
220
|
after_update: [],
|
|
221
221
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
222
222
|
// everything else
|
|
223
|
-
callbacks:
|
|
223
|
+
callbacks: Ve(),
|
|
224
224
|
dirty: u,
|
|
225
225
|
skip_bound: !1,
|
|
226
226
|
root: t.target || h.$$.root
|
|
@@ -229,39 +229,39 @@ function ar(e, t, r, n, i, s, a = null, u = [-1]) {
|
|
|
229
229
|
let l = !1;
|
|
230
230
|
if (o.ctx = r ? r(e, t.props || {}, (f, c, ...g) => {
|
|
231
231
|
const d = g.length ? g[0] : c;
|
|
232
|
-
return o.ctx && i(o.ctx[f], o.ctx[f] = d) && (!o.skip_bound && o.bound[f] && o.bound[f](d), l &&
|
|
233
|
-
}) : [], o.update(), l = !0,
|
|
232
|
+
return o.ctx && i(o.ctx[f], o.ctx[f] = d) && (!o.skip_bound && o.bound[f] && o.bound[f](d), l && ar(e, f)), c;
|
|
233
|
+
}) : [], o.update(), l = !0, K(o.before_update), o.fragment = n ? n(o.ctx) : !1, t.target) {
|
|
234
234
|
if (t.hydrate) {
|
|
235
|
-
const f =
|
|
236
|
-
o.fragment && o.fragment.l(f), f.forEach(
|
|
235
|
+
const f = Qt(t.target);
|
|
236
|
+
o.fragment && o.fragment.l(f), f.forEach($e);
|
|
237
237
|
} else
|
|
238
238
|
o.fragment && o.fragment.c();
|
|
239
|
-
t.intro &&
|
|
239
|
+
t.intro && ir(e.$$.fragment), sr(e, t.target, t.anchor), I();
|
|
240
240
|
}
|
|
241
|
-
|
|
241
|
+
Q(h);
|
|
242
242
|
}
|
|
243
|
-
let
|
|
244
|
-
typeof HTMLElement == "function" && (
|
|
243
|
+
let ct;
|
|
244
|
+
typeof HTMLElement == "function" && (ct = class extends HTMLElement {
|
|
245
245
|
constructor(t, r, n) {
|
|
246
246
|
super();
|
|
247
247
|
/** The Svelte component constructor */
|
|
248
|
-
|
|
248
|
+
H(this, "$$ctor");
|
|
249
249
|
/** Slots */
|
|
250
|
-
|
|
250
|
+
H(this, "$$s");
|
|
251
251
|
/** The Svelte component instance */
|
|
252
|
-
|
|
252
|
+
H(this, "$$c");
|
|
253
253
|
/** Whether or not the custom element is connected */
|
|
254
|
-
|
|
254
|
+
H(this, "$$cn", !1);
|
|
255
255
|
/** Component props data */
|
|
256
|
-
|
|
256
|
+
H(this, "$$d", {});
|
|
257
257
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
258
|
-
|
|
258
|
+
H(this, "$$r", !1);
|
|
259
259
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
260
|
-
|
|
260
|
+
H(this, "$$p_d", {});
|
|
261
261
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
262
|
-
|
|
262
|
+
H(this, "$$l", {});
|
|
263
263
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
264
|
-
|
|
264
|
+
H(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
265
265
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
266
266
|
}
|
|
267
267
|
addEventListener(t, r, n) {
|
|
@@ -278,42 +278,42 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
connectedCallback() {
|
|
281
|
-
return
|
|
281
|
+
return ke(this, null, function* () {
|
|
282
282
|
if (this.$$cn = !0, !this.$$c) {
|
|
283
283
|
let t = function(s) {
|
|
284
284
|
return () => {
|
|
285
285
|
let a;
|
|
286
286
|
return {
|
|
287
287
|
c: function() {
|
|
288
|
-
a =
|
|
288
|
+
a = O("slot"), s !== "default" && R(a, "name", s);
|
|
289
289
|
},
|
|
290
290
|
/**
|
|
291
291
|
* @param {HTMLElement} target
|
|
292
292
|
* @param {HTMLElement} [anchor]
|
|
293
293
|
*/
|
|
294
294
|
m: function(o, l) {
|
|
295
|
-
|
|
295
|
+
ft(o, a, l);
|
|
296
296
|
},
|
|
297
297
|
d: function(o) {
|
|
298
|
-
o &&
|
|
298
|
+
o && $e(a);
|
|
299
299
|
}
|
|
300
300
|
};
|
|
301
301
|
};
|
|
302
302
|
};
|
|
303
303
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
304
304
|
return;
|
|
305
|
-
const r = {}, n =
|
|
305
|
+
const r = {}, n = Jt(this);
|
|
306
306
|
for (const s of this.$$s)
|
|
307
307
|
s in n && (r[s] = [t(s)]);
|
|
308
308
|
for (const s of this.attributes) {
|
|
309
309
|
const a = this.$$g_p(s.name);
|
|
310
|
-
a in this.$$d || (this.$$d[a] =
|
|
310
|
+
a in this.$$d || (this.$$d[a] = ne(a, s.value, this.$$p_d, "toProp"));
|
|
311
311
|
}
|
|
312
312
|
for (const s in this.$$p_d)
|
|
313
313
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
314
314
|
this.$$c = new this.$$ctor({
|
|
315
315
|
target: this.shadowRoot || this,
|
|
316
|
-
props: Fe(
|
|
316
|
+
props: je(Fe({}, this.$$d), {
|
|
317
317
|
$$slots: r,
|
|
318
318
|
$$scope: {
|
|
319
319
|
ctx: []
|
|
@@ -324,7 +324,7 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
324
324
|
this.$$r = !0;
|
|
325
325
|
for (const s in this.$$p_d)
|
|
326
326
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
327
|
-
const a =
|
|
327
|
+
const a = ne(
|
|
328
328
|
s,
|
|
329
329
|
this.$$d[s],
|
|
330
330
|
this.$$p_d,
|
|
@@ -348,7 +348,7 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
348
348
|
// and setting attributes through setAttribute etc, this is helpful
|
|
349
349
|
attributeChangedCallback(t, r, n) {
|
|
350
350
|
var i;
|
|
351
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
351
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ne(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
352
352
|
}
|
|
353
353
|
disconnectedCallback() {
|
|
354
354
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -361,7 +361,7 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
361
361
|
) || t;
|
|
362
362
|
}
|
|
363
363
|
});
|
|
364
|
-
function
|
|
364
|
+
function ne(e, t, r, n) {
|
|
365
365
|
var s;
|
|
366
366
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
367
367
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -391,8 +391,8 @@ function re(e, t, r, n) {
|
|
|
391
391
|
return t;
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
let a = class extends
|
|
394
|
+
function hr(e, t, r, n, i, s) {
|
|
395
|
+
let a = class extends ct {
|
|
396
396
|
constructor() {
|
|
397
397
|
super(e, r, i), this.$$p_d = t;
|
|
398
398
|
}
|
|
@@ -409,7 +409,7 @@ function ur(e, t, r, n, i, s) {
|
|
|
409
409
|
},
|
|
410
410
|
set(h) {
|
|
411
411
|
var o;
|
|
412
|
-
h =
|
|
412
|
+
h = ne(u, h, t), this.$$d[u] = h, (o = this.$$c) == null || o.$set({ [u]: h });
|
|
413
413
|
}
|
|
414
414
|
});
|
|
415
415
|
}), n.forEach((u) => {
|
|
@@ -422,7 +422,7 @@ function ur(e, t, r, n, i, s) {
|
|
|
422
422
|
}), e.element = /** @type {any} */
|
|
423
423
|
a, a;
|
|
424
424
|
}
|
|
425
|
-
class
|
|
425
|
+
class lr {
|
|
426
426
|
constructor() {
|
|
427
427
|
/**
|
|
428
428
|
* ### PRIVATE API
|
|
@@ -431,7 +431,7 @@ class hr {
|
|
|
431
431
|
*
|
|
432
432
|
* @type {any}
|
|
433
433
|
*/
|
|
434
|
-
|
|
434
|
+
H(this, "$$");
|
|
435
435
|
/**
|
|
436
436
|
* ### PRIVATE API
|
|
437
437
|
*
|
|
@@ -439,11 +439,11 @@ class hr {
|
|
|
439
439
|
*
|
|
440
440
|
* @type {any}
|
|
441
441
|
*/
|
|
442
|
-
|
|
442
|
+
H(this, "$$set");
|
|
443
443
|
}
|
|
444
444
|
/** @returns {void} */
|
|
445
445
|
$destroy() {
|
|
446
|
-
|
|
446
|
+
or(this, 1), this.$destroy = T;
|
|
447
447
|
}
|
|
448
448
|
/**
|
|
449
449
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -453,7 +453,7 @@ class hr {
|
|
|
453
453
|
*/
|
|
454
454
|
$on(t, r) {
|
|
455
455
|
if (!Le(r))
|
|
456
|
-
return
|
|
456
|
+
return T;
|
|
457
457
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
458
458
|
return n.push(r), () => {
|
|
459
459
|
const i = n.indexOf(r);
|
|
@@ -465,18 +465,19 @@ class hr {
|
|
|
465
465
|
* @returns {void}
|
|
466
466
|
*/
|
|
467
467
|
$set(t) {
|
|
468
|
-
this.$$set && !
|
|
468
|
+
this.$$set && !jt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
const
|
|
472
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
473
|
-
|
|
471
|
+
const fr = "4";
|
|
472
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(fr);
|
|
473
|
+
const D = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
474
|
+
function cr(e, t) {
|
|
474
475
|
if (e) {
|
|
475
476
|
const r = document.createElement("style");
|
|
476
477
|
r.innerHTML = t, e.appendChild(r);
|
|
477
478
|
}
|
|
478
479
|
}
|
|
479
|
-
function
|
|
480
|
+
function mr(e, t) {
|
|
480
481
|
if (!e || !t)
|
|
481
482
|
return;
|
|
482
483
|
const r = new URL(t);
|
|
@@ -487,25 +488,53 @@ function cr(e, t) {
|
|
|
487
488
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
488
489
|
});
|
|
489
490
|
}
|
|
490
|
-
function
|
|
491
|
-
if (window.emMessageBus)
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
491
|
+
function pr(e, t, r, n = !1) {
|
|
492
|
+
if (!window.emMessageBus)
|
|
493
|
+
return;
|
|
494
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
495
|
+
return r = br(e, t), r;
|
|
496
|
+
window[D] || (window[D] = {}), r = dr(e, t);
|
|
497
|
+
const s = r.unsubscribe.bind(r), a = () => {
|
|
498
|
+
if (window[D][t]) {
|
|
499
|
+
const u = window[D][t];
|
|
500
|
+
u.refCount > 1 ? u.refCount = u.refCount - 1 : delete window[D][t];
|
|
501
|
+
}
|
|
502
|
+
s();
|
|
503
|
+
};
|
|
504
|
+
return r.unsubscribe = a, r;
|
|
505
|
+
}
|
|
506
|
+
function br(e, t) {
|
|
507
|
+
const r = document.createElement("style");
|
|
508
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
509
|
+
e && (r.innerHTML = n, e.appendChild(r));
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
function dr(e, t) {
|
|
513
|
+
return window.emMessageBus.subscribe(t, (r) => {
|
|
514
|
+
var u;
|
|
515
|
+
if (!e)
|
|
516
|
+
return;
|
|
517
|
+
const n = e.getRootNode(), i = window[D];
|
|
518
|
+
let s = (u = i[t]) == null ? void 0 : u.sheet;
|
|
519
|
+
s ? i[t].refCount = i[t].refCount + 1 : (s = new CSSStyleSheet(), s.replaceSync(r), i[t] = {
|
|
520
|
+
sheet: s,
|
|
521
|
+
refCount: 1
|
|
495
522
|
});
|
|
496
|
-
|
|
523
|
+
const a = n.adoptedStyleSheets || [];
|
|
524
|
+
a.includes(s) || (n.adoptedStyleSheets = [...a, s]);
|
|
525
|
+
});
|
|
497
526
|
}
|
|
498
527
|
const $ = [];
|
|
499
|
-
function
|
|
528
|
+
function gr(e, t) {
|
|
500
529
|
return {
|
|
501
|
-
subscribe:
|
|
530
|
+
subscribe: he(e, t).subscribe
|
|
502
531
|
};
|
|
503
532
|
}
|
|
504
|
-
function
|
|
533
|
+
function he(e, t = T) {
|
|
505
534
|
let r;
|
|
506
535
|
const n = /* @__PURE__ */ new Set();
|
|
507
536
|
function i(u) {
|
|
508
|
-
if (
|
|
537
|
+
if (ht(e, u) && (e = u, r)) {
|
|
509
538
|
const h = !$.length;
|
|
510
539
|
for (const o of n)
|
|
511
540
|
o[1](), $.push(o, e);
|
|
@@ -519,147 +548,147 @@ function ue(e, t = S) {
|
|
|
519
548
|
function s(u) {
|
|
520
549
|
i(u(e));
|
|
521
550
|
}
|
|
522
|
-
function a(u, h =
|
|
551
|
+
function a(u, h = T) {
|
|
523
552
|
const o = [u, h];
|
|
524
|
-
return n.add(o), n.size === 1 && (r = t(i, s) ||
|
|
553
|
+
return n.add(o), n.size === 1 && (r = t(i, s) || T), u(e), () => {
|
|
525
554
|
n.delete(o), n.size === 0 && r && (r(), r = null);
|
|
526
555
|
};
|
|
527
556
|
}
|
|
528
557
|
return { set: i, update: s, subscribe: a };
|
|
529
558
|
}
|
|
530
|
-
function
|
|
559
|
+
function X(e, t, r) {
|
|
531
560
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
532
561
|
if (!i.every(Boolean))
|
|
533
562
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
534
563
|
const s = t.length < 2;
|
|
535
|
-
return
|
|
564
|
+
return gr(r, (a, u) => {
|
|
536
565
|
let h = !1;
|
|
537
566
|
const o = [];
|
|
538
|
-
let l = 0, f =
|
|
567
|
+
let l = 0, f = T;
|
|
539
568
|
const c = () => {
|
|
540
569
|
if (l)
|
|
541
570
|
return;
|
|
542
571
|
f();
|
|
543
572
|
const d = t(n ? o[0] : o, a, u);
|
|
544
|
-
s ? a(d) : f = Le(d) ? d :
|
|
573
|
+
s ? a(d) : f = Le(d) ? d : T;
|
|
545
574
|
}, g = i.map(
|
|
546
|
-
(d,
|
|
575
|
+
(d, x) => lt(
|
|
547
576
|
d,
|
|
548
|
-
(
|
|
549
|
-
o[
|
|
577
|
+
(B) => {
|
|
578
|
+
o[x] = B, l &= ~(1 << x), h && c();
|
|
550
579
|
},
|
|
551
580
|
() => {
|
|
552
|
-
l |= 1 <<
|
|
581
|
+
l |= 1 << x;
|
|
553
582
|
}
|
|
554
583
|
)
|
|
555
584
|
);
|
|
556
585
|
return h = !0, c(), function() {
|
|
557
|
-
|
|
586
|
+
K(g), f(), h = !1;
|
|
558
587
|
};
|
|
559
588
|
});
|
|
560
589
|
}
|
|
561
|
-
function
|
|
590
|
+
function yr(e) {
|
|
562
591
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
563
592
|
}
|
|
564
|
-
var
|
|
565
|
-
return
|
|
593
|
+
var Er = function(t) {
|
|
594
|
+
return xr(t) && !_r(t);
|
|
566
595
|
};
|
|
567
|
-
function
|
|
596
|
+
function xr(e) {
|
|
568
597
|
return !!e && typeof e == "object";
|
|
569
598
|
}
|
|
570
|
-
function
|
|
599
|
+
function _r(e) {
|
|
571
600
|
var t = Object.prototype.toString.call(e);
|
|
572
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
601
|
+
return t === "[object RegExp]" || t === "[object Date]" || Sr(e);
|
|
573
602
|
}
|
|
574
|
-
var
|
|
575
|
-
function
|
|
576
|
-
return e.$$typeof ===
|
|
603
|
+
var vr = typeof Symbol == "function" && Symbol.for, Br = vr ? Symbol.for("react.element") : 60103;
|
|
604
|
+
function Sr(e) {
|
|
605
|
+
return e.$$typeof === Br;
|
|
577
606
|
}
|
|
578
|
-
function
|
|
607
|
+
function Hr(e) {
|
|
579
608
|
return Array.isArray(e) ? [] : {};
|
|
580
609
|
}
|
|
581
|
-
function
|
|
582
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
610
|
+
function q(e, t) {
|
|
611
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(Hr(e), e, t) : e;
|
|
583
612
|
}
|
|
584
|
-
function
|
|
613
|
+
function Tr(e, t, r) {
|
|
585
614
|
return e.concat(t).map(function(n) {
|
|
586
|
-
return
|
|
615
|
+
return q(n, r);
|
|
587
616
|
});
|
|
588
617
|
}
|
|
589
|
-
function
|
|
618
|
+
function Ar(e, t) {
|
|
590
619
|
if (!t.customMerge)
|
|
591
|
-
return
|
|
620
|
+
return F;
|
|
592
621
|
var r = t.customMerge(e);
|
|
593
|
-
return typeof r == "function" ? r :
|
|
622
|
+
return typeof r == "function" ? r : F;
|
|
594
623
|
}
|
|
595
|
-
function
|
|
624
|
+
function wr(e) {
|
|
596
625
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
597
626
|
return Object.propertyIsEnumerable.call(e, t);
|
|
598
627
|
}) : [];
|
|
599
628
|
}
|
|
600
|
-
function
|
|
601
|
-
return Object.keys(e).concat(
|
|
629
|
+
function ze(e) {
|
|
630
|
+
return Object.keys(e).concat(wr(e));
|
|
602
631
|
}
|
|
603
|
-
function
|
|
632
|
+
function mt(e, t) {
|
|
604
633
|
try {
|
|
605
634
|
return t in e;
|
|
606
635
|
} catch (r) {
|
|
607
636
|
return !1;
|
|
608
637
|
}
|
|
609
638
|
}
|
|
610
|
-
function
|
|
611
|
-
return
|
|
639
|
+
function Or(e, t) {
|
|
640
|
+
return mt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
612
641
|
}
|
|
613
|
-
function
|
|
642
|
+
function Mr(e, t, r) {
|
|
614
643
|
var n = {};
|
|
615
|
-
return r.isMergeableObject(e) &&
|
|
616
|
-
n[i] =
|
|
617
|
-
}),
|
|
618
|
-
|
|
644
|
+
return r.isMergeableObject(e) && ze(e).forEach(function(i) {
|
|
645
|
+
n[i] = q(e[i], r);
|
|
646
|
+
}), ze(t).forEach(function(i) {
|
|
647
|
+
Or(e, i) || (mt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Ar(i, r)(e[i], t[i], r) : n[i] = q(t[i], r));
|
|
619
648
|
}), n;
|
|
620
649
|
}
|
|
621
|
-
function
|
|
622
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
650
|
+
function F(e, t, r) {
|
|
651
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Tr, r.isMergeableObject = r.isMergeableObject || Er, r.cloneUnlessOtherwiseSpecified = q;
|
|
623
652
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
624
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
653
|
+
return s ? n ? r.arrayMerge(e, t, r) : Mr(e, t, r) : q(t, r);
|
|
625
654
|
}
|
|
626
|
-
|
|
655
|
+
F.all = function(t, r) {
|
|
627
656
|
if (!Array.isArray(t))
|
|
628
657
|
throw new Error("first argument should be an array");
|
|
629
658
|
return t.reduce(function(n, i) {
|
|
630
|
-
return
|
|
659
|
+
return F(n, i, r);
|
|
631
660
|
}, {});
|
|
632
661
|
};
|
|
633
|
-
var Pr =
|
|
634
|
-
const
|
|
635
|
-
var
|
|
636
|
-
return
|
|
662
|
+
var Pr = F, Nr = Pr;
|
|
663
|
+
const Ir = /* @__PURE__ */ yr(Nr);
|
|
664
|
+
var Te = function(e, t) {
|
|
665
|
+
return Te = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
637
666
|
r.__proto__ = n;
|
|
638
667
|
} || function(r, n) {
|
|
639
668
|
for (var i in n)
|
|
640
669
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
641
|
-
},
|
|
670
|
+
}, Te(e, t);
|
|
642
671
|
};
|
|
643
|
-
function
|
|
672
|
+
function le(e, t) {
|
|
644
673
|
if (typeof t != "function" && t !== null)
|
|
645
674
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
646
|
-
|
|
675
|
+
Te(e, t);
|
|
647
676
|
function r() {
|
|
648
677
|
this.constructor = e;
|
|
649
678
|
}
|
|
650
679
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
651
680
|
}
|
|
652
|
-
var
|
|
653
|
-
return
|
|
681
|
+
var w = function() {
|
|
682
|
+
return w = Object.assign || function(t) {
|
|
654
683
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
655
684
|
r = arguments[n];
|
|
656
685
|
for (var s in r)
|
|
657
686
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
658
687
|
}
|
|
659
688
|
return t;
|
|
660
|
-
},
|
|
689
|
+
}, w.apply(this, arguments);
|
|
661
690
|
};
|
|
662
|
-
function
|
|
691
|
+
function Cr(e, t) {
|
|
663
692
|
var r = {};
|
|
664
693
|
for (var n in e)
|
|
665
694
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -668,43 +697,43 @@ function Nr(e, t) {
|
|
|
668
697
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
669
698
|
return r;
|
|
670
699
|
}
|
|
671
|
-
function
|
|
700
|
+
function de(e, t, r) {
|
|
672
701
|
if (r || arguments.length === 2)
|
|
673
702
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
674
703
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
675
704
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
676
705
|
}
|
|
677
|
-
function
|
|
678
|
-
var r = t && t.cache ? t.cache :
|
|
706
|
+
function ge(e, t) {
|
|
707
|
+
var r = t && t.cache ? t.cache : Fr, n = t && t.serializer ? t.serializer : Dr, i = t && t.strategy ? t.strategy : Rr;
|
|
679
708
|
return i(e, {
|
|
680
709
|
cache: r,
|
|
681
710
|
serializer: n
|
|
682
711
|
});
|
|
683
712
|
}
|
|
684
|
-
function
|
|
713
|
+
function Lr(e) {
|
|
685
714
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
686
715
|
}
|
|
687
|
-
function
|
|
688
|
-
var i =
|
|
716
|
+
function $r(e, t, r, n) {
|
|
717
|
+
var i = Lr(n) ? n : r(n), s = t.get(i);
|
|
689
718
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
690
719
|
}
|
|
691
|
-
function
|
|
720
|
+
function pt(e, t, r) {
|
|
692
721
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
693
722
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
694
723
|
}
|
|
695
|
-
function
|
|
724
|
+
function bt(e, t, r, n, i) {
|
|
696
725
|
return r.bind(t, e, n, i);
|
|
697
726
|
}
|
|
698
|
-
function
|
|
699
|
-
var r = e.length === 1 ?
|
|
700
|
-
return
|
|
727
|
+
function Rr(e, t) {
|
|
728
|
+
var r = e.length === 1 ? $r : pt;
|
|
729
|
+
return bt(e, this, r, t.cache.create(), t.serializer);
|
|
701
730
|
}
|
|
702
|
-
function
|
|
703
|
-
return
|
|
731
|
+
function Ur(e, t) {
|
|
732
|
+
return bt(e, this, pt, t.cache.create(), t.serializer);
|
|
704
733
|
}
|
|
705
|
-
var
|
|
734
|
+
var Dr = function() {
|
|
706
735
|
return JSON.stringify(arguments);
|
|
707
|
-
},
|
|
736
|
+
}, Gr = (
|
|
708
737
|
/** @class */
|
|
709
738
|
function() {
|
|
710
739
|
function e() {
|
|
@@ -716,21 +745,21 @@ var $r = function() {
|
|
|
716
745
|
this.cache[t] = r;
|
|
717
746
|
}, e;
|
|
718
747
|
}()
|
|
719
|
-
),
|
|
748
|
+
), Fr = {
|
|
720
749
|
create: function() {
|
|
721
|
-
return new
|
|
750
|
+
return new Gr();
|
|
722
751
|
}
|
|
723
|
-
},
|
|
724
|
-
variadic:
|
|
725
|
-
},
|
|
726
|
-
return
|
|
752
|
+
}, ye = {
|
|
753
|
+
variadic: Ur
|
|
754
|
+
}, oe = function() {
|
|
755
|
+
return oe = Object.assign || function(t) {
|
|
727
756
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
728
757
|
r = arguments[n];
|
|
729
758
|
for (var s in r)
|
|
730
759
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
731
760
|
}
|
|
732
761
|
return t;
|
|
733
|
-
},
|
|
762
|
+
}, oe.apply(this, arguments);
|
|
734
763
|
};
|
|
735
764
|
var p;
|
|
736
765
|
(function(e) {
|
|
@@ -740,47 +769,47 @@ var y;
|
|
|
740
769
|
(function(e) {
|
|
741
770
|
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";
|
|
742
771
|
})(y || (y = {}));
|
|
743
|
-
var
|
|
772
|
+
var j;
|
|
744
773
|
(function(e) {
|
|
745
774
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
746
|
-
})(
|
|
747
|
-
function
|
|
775
|
+
})(j || (j = {}));
|
|
776
|
+
function Ze(e) {
|
|
748
777
|
return e.type === y.literal;
|
|
749
778
|
}
|
|
750
|
-
function
|
|
779
|
+
function jr(e) {
|
|
751
780
|
return e.type === y.argument;
|
|
752
781
|
}
|
|
753
|
-
function
|
|
782
|
+
function dt(e) {
|
|
754
783
|
return e.type === y.number;
|
|
755
784
|
}
|
|
756
|
-
function
|
|
785
|
+
function gt(e) {
|
|
757
786
|
return e.type === y.date;
|
|
758
787
|
}
|
|
759
|
-
function
|
|
788
|
+
function yt(e) {
|
|
760
789
|
return e.type === y.time;
|
|
761
790
|
}
|
|
762
|
-
function
|
|
791
|
+
function Et(e) {
|
|
763
792
|
return e.type === y.select;
|
|
764
793
|
}
|
|
765
|
-
function
|
|
794
|
+
function xt(e) {
|
|
766
795
|
return e.type === y.plural;
|
|
767
796
|
}
|
|
768
|
-
function
|
|
797
|
+
function kr(e) {
|
|
769
798
|
return e.type === y.pound;
|
|
770
799
|
}
|
|
771
|
-
function
|
|
800
|
+
function _t(e) {
|
|
772
801
|
return e.type === y.tag;
|
|
773
802
|
}
|
|
774
803
|
function vt(e) {
|
|
775
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
804
|
+
return !!(e && typeof e == "object" && e.type === j.number);
|
|
776
805
|
}
|
|
777
|
-
function
|
|
778
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
806
|
+
function Ae(e) {
|
|
807
|
+
return !!(e && typeof e == "object" && e.type === j.dateTime);
|
|
779
808
|
}
|
|
780
|
-
var
|
|
781
|
-
function
|
|
809
|
+
var Bt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Vr = /(?:[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;
|
|
810
|
+
function Xr(e) {
|
|
782
811
|
var t = {};
|
|
783
|
-
return e.replace(
|
|
812
|
+
return e.replace(Vr, function(r) {
|
|
784
813
|
var n = r.length;
|
|
785
814
|
switch (r[0]) {
|
|
786
815
|
case "G":
|
|
@@ -869,21 +898,21 @@ function jr(e) {
|
|
|
869
898
|
return "";
|
|
870
899
|
}), t;
|
|
871
900
|
}
|
|
872
|
-
var
|
|
873
|
-
return
|
|
901
|
+
var E = function() {
|
|
902
|
+
return E = Object.assign || function(t) {
|
|
874
903
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
875
904
|
r = arguments[n];
|
|
876
905
|
for (var s in r)
|
|
877
906
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
878
907
|
}
|
|
879
908
|
return t;
|
|
880
|
-
},
|
|
909
|
+
}, E.apply(this, arguments);
|
|
881
910
|
};
|
|
882
|
-
var
|
|
883
|
-
function
|
|
911
|
+
var Wr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
912
|
+
function zr(e) {
|
|
884
913
|
if (e.length === 0)
|
|
885
914
|
throw new Error("Number skeleton cannot be empty");
|
|
886
|
-
for (var t = e.split(
|
|
915
|
+
for (var t = e.split(Wr).filter(function(c) {
|
|
887
916
|
return c.length > 0;
|
|
888
917
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
889
918
|
var s = i[n], a = s.split("/");
|
|
@@ -898,17 +927,17 @@ function Vr(e) {
|
|
|
898
927
|
}
|
|
899
928
|
return r;
|
|
900
929
|
}
|
|
901
|
-
function
|
|
930
|
+
function Zr(e) {
|
|
902
931
|
return e.replace(/^(.*?)-/, "");
|
|
903
932
|
}
|
|
904
|
-
var
|
|
905
|
-
function
|
|
933
|
+
var Qe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, St = /^(@+)?(\+|#+)?[rs]?$/g, Qr = /(\*)(0+)|(#+)(0+)|(0+)/g, Ht = /^(0+)$/;
|
|
934
|
+
function Je(e) {
|
|
906
935
|
var t = {};
|
|
907
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
936
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(St, function(r, n, i) {
|
|
908
937
|
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)), "";
|
|
909
938
|
}), t;
|
|
910
939
|
}
|
|
911
|
-
function
|
|
940
|
+
function Tt(e) {
|
|
912
941
|
switch (e) {
|
|
913
942
|
case "sign-auto":
|
|
914
943
|
return {
|
|
@@ -948,7 +977,7 @@ function St(e) {
|
|
|
948
977
|
};
|
|
949
978
|
}
|
|
950
979
|
}
|
|
951
|
-
function
|
|
980
|
+
function Jr(e) {
|
|
952
981
|
var t;
|
|
953
982
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
954
983
|
notation: "engineering"
|
|
@@ -962,11 +991,11 @@ function zr(e) {
|
|
|
962
991
|
}
|
|
963
992
|
return t;
|
|
964
993
|
}
|
|
965
|
-
function
|
|
966
|
-
var t = {}, r =
|
|
994
|
+
function qe(e) {
|
|
995
|
+
var t = {}, r = Tt(e);
|
|
967
996
|
return r || t;
|
|
968
997
|
}
|
|
969
|
-
function
|
|
998
|
+
function qr(e) {
|
|
970
999
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
971
1000
|
var i = n[r];
|
|
972
1001
|
switch (i.stem) {
|
|
@@ -990,7 +1019,7 @@ function Zr(e) {
|
|
|
990
1019
|
continue;
|
|
991
1020
|
case "measure-unit":
|
|
992
1021
|
case "unit":
|
|
993
|
-
t.style = "unit", t.unit =
|
|
1022
|
+
t.style = "unit", t.unit = Zr(i.options[0]);
|
|
994
1023
|
continue;
|
|
995
1024
|
case "compact-short":
|
|
996
1025
|
case "K":
|
|
@@ -1001,13 +1030,13 @@ function Zr(e) {
|
|
|
1001
1030
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1002
1031
|
continue;
|
|
1003
1032
|
case "scientific":
|
|
1004
|
-
t =
|
|
1005
|
-
return
|
|
1033
|
+
t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(h, o) {
|
|
1034
|
+
return E(E({}, h), qe(o));
|
|
1006
1035
|
}, {}));
|
|
1007
1036
|
continue;
|
|
1008
1037
|
case "engineering":
|
|
1009
|
-
t =
|
|
1010
|
-
return
|
|
1038
|
+
t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(h, o) {
|
|
1039
|
+
return E(E({}, h), qe(o));
|
|
1011
1040
|
}, {}));
|
|
1012
1041
|
continue;
|
|
1013
1042
|
case "notation-simple":
|
|
@@ -1052,7 +1081,7 @@ function Zr(e) {
|
|
|
1052
1081
|
case "integer-width":
|
|
1053
1082
|
if (i.options.length > 1)
|
|
1054
1083
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1055
|
-
i.options[0].replace(
|
|
1084
|
+
i.options[0].replace(Qr, function(h, o, l, f, c, g) {
|
|
1056
1085
|
if (o)
|
|
1057
1086
|
t.minimumIntegerDigits = l.length;
|
|
1058
1087
|
else {
|
|
@@ -1069,28 +1098,28 @@ function Zr(e) {
|
|
|
1069
1098
|
t.minimumIntegerDigits = i.stem.length;
|
|
1070
1099
|
continue;
|
|
1071
1100
|
}
|
|
1072
|
-
if (
|
|
1101
|
+
if (Qe.test(i.stem)) {
|
|
1073
1102
|
if (i.options.length > 1)
|
|
1074
1103
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1075
|
-
i.stem.replace(
|
|
1104
|
+
i.stem.replace(Qe, function(h, o, l, f, c, g) {
|
|
1076
1105
|
return l === "*" ? t.minimumFractionDigits = o.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && g ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + g.length) : (t.minimumFractionDigits = o.length, t.maximumFractionDigits = o.length), "";
|
|
1077
1106
|
});
|
|
1078
1107
|
var s = i.options[0];
|
|
1079
|
-
s === "w" ? t =
|
|
1108
|
+
s === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = E(E({}, t), Je(s)));
|
|
1080
1109
|
continue;
|
|
1081
1110
|
}
|
|
1082
|
-
if (
|
|
1083
|
-
t =
|
|
1111
|
+
if (St.test(i.stem)) {
|
|
1112
|
+
t = E(E({}, t), Je(i.stem));
|
|
1084
1113
|
continue;
|
|
1085
1114
|
}
|
|
1086
|
-
var a =
|
|
1087
|
-
a && (t =
|
|
1088
|
-
var u =
|
|
1089
|
-
u && (t =
|
|
1115
|
+
var a = Tt(i.stem);
|
|
1116
|
+
a && (t = E(E({}, t), a));
|
|
1117
|
+
var u = Jr(i.stem);
|
|
1118
|
+
u && (t = E(E({}, t), u));
|
|
1090
1119
|
}
|
|
1091
1120
|
return t;
|
|
1092
1121
|
}
|
|
1093
|
-
var
|
|
1122
|
+
var re = {
|
|
1094
1123
|
"001": [
|
|
1095
1124
|
"H",
|
|
1096
1125
|
"h"
|
|
@@ -2505,13 +2534,13 @@ var te = {
|
|
|
2505
2534
|
"h"
|
|
2506
2535
|
]
|
|
2507
2536
|
};
|
|
2508
|
-
function
|
|
2537
|
+
function Yr(e, t) {
|
|
2509
2538
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2510
2539
|
var i = e.charAt(n);
|
|
2511
2540
|
if (i === "j") {
|
|
2512
2541
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2513
2542
|
s++, n++;
|
|
2514
|
-
var a = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", o =
|
|
2543
|
+
var a = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", o = Kr(t);
|
|
2515
2544
|
for ((o == "H" || o == "k") && (u = 0); u-- > 0; )
|
|
2516
2545
|
r += h;
|
|
2517
2546
|
for (; a-- > 0; )
|
|
@@ -2521,7 +2550,7 @@ function Qr(e, t) {
|
|
|
2521
2550
|
}
|
|
2522
2551
|
return r;
|
|
2523
2552
|
}
|
|
2524
|
-
function
|
|
2553
|
+
function Kr(e) {
|
|
2525
2554
|
var t = e.hourCycle;
|
|
2526
2555
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2527
2556
|
e.hourCycles && // @ts-ignore
|
|
@@ -2540,23 +2569,23 @@ function Jr(e) {
|
|
|
2540
2569
|
}
|
|
2541
2570
|
var r = e.language, n;
|
|
2542
2571
|
r !== "root" && (n = e.maximize().region);
|
|
2543
|
-
var i =
|
|
2572
|
+
var i = re[n || ""] || re[r || ""] || re["".concat(r, "-001")] || re["001"];
|
|
2544
2573
|
return i[0];
|
|
2545
2574
|
}
|
|
2546
|
-
var
|
|
2575
|
+
var Ee, en = new RegExp("^".concat(Bt.source, "*")), tn = new RegExp("".concat(Bt.source, "*$"));
|
|
2547
2576
|
function b(e, t) {
|
|
2548
2577
|
return { start: e, end: t };
|
|
2549
2578
|
}
|
|
2550
|
-
var
|
|
2579
|
+
var rn = !!String.prototype.startsWith && "_a".startsWith("a", 1), nn = !!String.fromCodePoint, sn = !!Object.fromEntries, on = !!String.prototype.codePointAt, an = !!String.prototype.trimStart, un = !!String.prototype.trimEnd, hn = !!Number.isSafeInteger, ln = hn ? Number.isSafeInteger : function(e) {
|
|
2551
2580
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2552
|
-
},
|
|
2581
|
+
}, we = !0;
|
|
2553
2582
|
try {
|
|
2554
|
-
var
|
|
2555
|
-
|
|
2583
|
+
var fn = wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2584
|
+
we = ((Ee = fn.exec("a")) === null || Ee === void 0 ? void 0 : Ee[0]) === "a";
|
|
2556
2585
|
} catch (e) {
|
|
2557
|
-
|
|
2586
|
+
we = !1;
|
|
2558
2587
|
}
|
|
2559
|
-
var
|
|
2588
|
+
var Ye = rn ? (
|
|
2560
2589
|
// Native
|
|
2561
2590
|
function(t, r, n) {
|
|
2562
2591
|
return t.startsWith(r, n);
|
|
@@ -2566,7 +2595,7 @@ var qe = Kr ? (
|
|
|
2566
2595
|
function(t, r, n) {
|
|
2567
2596
|
return t.slice(n, n + r.length) === r;
|
|
2568
2597
|
}
|
|
2569
|
-
),
|
|
2598
|
+
), Oe = nn ? String.fromCodePoint : (
|
|
2570
2599
|
// IE11
|
|
2571
2600
|
function() {
|
|
2572
2601
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2578,9 +2607,9 @@ var qe = Kr ? (
|
|
|
2578
2607
|
}
|
|
2579
2608
|
return n;
|
|
2580
2609
|
}
|
|
2581
|
-
),
|
|
2610
|
+
), Ke = (
|
|
2582
2611
|
// native
|
|
2583
|
-
|
|
2612
|
+
sn ? Object.fromEntries : (
|
|
2584
2613
|
// Ponyfill
|
|
2585
2614
|
function(t) {
|
|
2586
2615
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2590,7 +2619,7 @@ var qe = Kr ? (
|
|
|
2590
2619
|
return r;
|
|
2591
2620
|
}
|
|
2592
2621
|
)
|
|
2593
|
-
),
|
|
2622
|
+
), At = on ? (
|
|
2594
2623
|
// Native
|
|
2595
2624
|
function(t, r) {
|
|
2596
2625
|
return t.codePointAt(r);
|
|
@@ -2604,7 +2633,7 @@ var qe = Kr ? (
|
|
|
2604
2633
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2605
2634
|
}
|
|
2606
2635
|
}
|
|
2607
|
-
),
|
|
2636
|
+
), cn = an ? (
|
|
2608
2637
|
// Native
|
|
2609
2638
|
function(t) {
|
|
2610
2639
|
return t.trimStart();
|
|
@@ -2612,9 +2641,9 @@ var qe = Kr ? (
|
|
|
2612
2641
|
) : (
|
|
2613
2642
|
// Ponyfill
|
|
2614
2643
|
function(t) {
|
|
2615
|
-
return t.replace(
|
|
2644
|
+
return t.replace(en, "");
|
|
2616
2645
|
}
|
|
2617
|
-
),
|
|
2646
|
+
), mn = un ? (
|
|
2618
2647
|
// Native
|
|
2619
2648
|
function(t) {
|
|
2620
2649
|
return t.trimEnd();
|
|
@@ -2622,32 +2651,32 @@ var qe = Kr ? (
|
|
|
2622
2651
|
) : (
|
|
2623
2652
|
// Ponyfill
|
|
2624
2653
|
function(t) {
|
|
2625
|
-
return t.replace(
|
|
2654
|
+
return t.replace(tn, "");
|
|
2626
2655
|
}
|
|
2627
2656
|
);
|
|
2628
|
-
function
|
|
2657
|
+
function wt(e, t) {
|
|
2629
2658
|
return new RegExp(e, t);
|
|
2630
2659
|
}
|
|
2631
2660
|
var Me;
|
|
2632
|
-
if (
|
|
2633
|
-
var
|
|
2661
|
+
if (we) {
|
|
2662
|
+
var et = wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2634
2663
|
Me = function(t, r) {
|
|
2635
2664
|
var n;
|
|
2636
|
-
|
|
2637
|
-
var i =
|
|
2665
|
+
et.lastIndex = r;
|
|
2666
|
+
var i = et.exec(t);
|
|
2638
2667
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2639
2668
|
};
|
|
2640
2669
|
} else
|
|
2641
2670
|
Me = function(t, r) {
|
|
2642
2671
|
for (var n = []; ; ) {
|
|
2643
|
-
var i =
|
|
2644
|
-
if (i === void 0 ||
|
|
2672
|
+
var i = At(t, r);
|
|
2673
|
+
if (i === void 0 || Ot(i) || gn(i))
|
|
2645
2674
|
break;
|
|
2646
2675
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2647
2676
|
}
|
|
2648
|
-
return
|
|
2677
|
+
return Oe.apply(void 0, n);
|
|
2649
2678
|
};
|
|
2650
|
-
var
|
|
2679
|
+
var pn = (
|
|
2651
2680
|
/** @class */
|
|
2652
2681
|
function() {
|
|
2653
2682
|
function e(t, r) {
|
|
@@ -2678,7 +2707,7 @@ var fn = (
|
|
|
2678
2707
|
if (n)
|
|
2679
2708
|
break;
|
|
2680
2709
|
return this.error(p.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2681
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2710
|
+
} else if (s === 60 && !this.ignoreTag && Pe(this.peek() || 0)) {
|
|
2682
2711
|
var a = this.parseTag(t, r);
|
|
2683
2712
|
if (a.err)
|
|
2684
2713
|
return a;
|
|
@@ -2711,7 +2740,7 @@ var fn = (
|
|
|
2711
2740
|
return s;
|
|
2712
2741
|
var a = s.val, u = this.clonePosition();
|
|
2713
2742
|
if (this.bumpIf("</")) {
|
|
2714
|
-
if (this.isEOF() || !
|
|
2743
|
+
if (this.isEOF() || !Pe(this.char()))
|
|
2715
2744
|
return this.error(p.INVALID_TAG, b(u, this.clonePosition()));
|
|
2716
2745
|
var h = this.clonePosition(), o = this.parseTagName();
|
|
2717
2746
|
return i !== o ? this.error(p.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -2729,7 +2758,7 @@ var fn = (
|
|
|
2729
2758
|
return this.error(p.INVALID_TAG, b(n, this.clonePosition()));
|
|
2730
2759
|
}, e.prototype.parseTagName = function() {
|
|
2731
2760
|
var t = this.offset();
|
|
2732
|
-
for (this.bump(); !this.isEOF() &&
|
|
2761
|
+
for (this.bump(); !this.isEOF() && dn(this.char()); )
|
|
2733
2762
|
this.bump();
|
|
2734
2763
|
return this.message.slice(t, this.offset());
|
|
2735
2764
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2758,7 +2787,7 @@ var fn = (
|
|
|
2758
2787
|
};
|
|
2759
2788
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2760
2789
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2761
|
-
!
|
|
2790
|
+
!bn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2762
2791
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2763
2792
|
if (this.isEOF() || this.char() !== 39)
|
|
2764
2793
|
return null;
|
|
@@ -2792,12 +2821,12 @@ var fn = (
|
|
|
2792
2821
|
r.push(n);
|
|
2793
2822
|
this.bump();
|
|
2794
2823
|
}
|
|
2795
|
-
return
|
|
2824
|
+
return Oe.apply(void 0, r);
|
|
2796
2825
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2797
2826
|
if (this.isEOF())
|
|
2798
2827
|
return null;
|
|
2799
2828
|
var n = this.char();
|
|
2800
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2829
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Oe(n));
|
|
2801
2830
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2802
2831
|
var n = this.clonePosition();
|
|
2803
2832
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2845,7 +2874,7 @@ var fn = (
|
|
|
2845
2874
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2846
2875
|
if (f.err)
|
|
2847
2876
|
return f;
|
|
2848
|
-
var c =
|
|
2877
|
+
var c = mn(f.val);
|
|
2849
2878
|
if (c.length === 0)
|
|
2850
2879
|
return this.error(p.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2851
2880
|
var g = b(l, this.clonePosition());
|
|
@@ -2854,28 +2883,28 @@ var fn = (
|
|
|
2854
2883
|
var d = this.tryParseArgumentClose(i);
|
|
2855
2884
|
if (d.err)
|
|
2856
2885
|
return d;
|
|
2857
|
-
var
|
|
2858
|
-
if (o &&
|
|
2859
|
-
var
|
|
2886
|
+
var x = b(i, this.clonePosition());
|
|
2887
|
+
if (o && Ye(o == null ? void 0 : o.style, "::", 0)) {
|
|
2888
|
+
var B = cn(o.style.slice(2));
|
|
2860
2889
|
if (u === "number") {
|
|
2861
|
-
var f = this.parseNumberSkeletonFromString(
|
|
2890
|
+
var f = this.parseNumberSkeletonFromString(B, o.styleLocation);
|
|
2862
2891
|
return f.err ? f : {
|
|
2863
|
-
val: { type: y.number, value: n, location:
|
|
2892
|
+
val: { type: y.number, value: n, location: x, style: f.val },
|
|
2864
2893
|
err: null
|
|
2865
2894
|
};
|
|
2866
2895
|
} else {
|
|
2867
|
-
if (
|
|
2868
|
-
return this.error(p.EXPECT_DATE_TIME_SKELETON,
|
|
2869
|
-
var N =
|
|
2870
|
-
this.locale && (N =
|
|
2896
|
+
if (B.length === 0)
|
|
2897
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, x);
|
|
2898
|
+
var N = B;
|
|
2899
|
+
this.locale && (N = Yr(B, this.locale));
|
|
2871
2900
|
var c = {
|
|
2872
|
-
type:
|
|
2901
|
+
type: j.dateTime,
|
|
2873
2902
|
pattern: N,
|
|
2874
2903
|
location: o.styleLocation,
|
|
2875
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2876
|
-
},
|
|
2904
|
+
parsedOptions: this.shouldParseSkeletons ? Xr(N) : {}
|
|
2905
|
+
}, M = u === "date" ? y.date : y.time;
|
|
2877
2906
|
return {
|
|
2878
|
-
val: { type:
|
|
2907
|
+
val: { type: M, value: n, location: x, style: c },
|
|
2879
2908
|
err: null
|
|
2880
2909
|
};
|
|
2881
2910
|
}
|
|
@@ -2884,7 +2913,7 @@ var fn = (
|
|
|
2884
2913
|
val: {
|
|
2885
2914
|
type: u === "number" ? y.number : u === "date" ? y.date : y.time,
|
|
2886
2915
|
value: n,
|
|
2887
|
-
location:
|
|
2916
|
+
location: x,
|
|
2888
2917
|
style: (s = o == null ? void 0 : o.style) !== null && s !== void 0 ? s : null
|
|
2889
2918
|
},
|
|
2890
2919
|
err: null
|
|
@@ -2893,43 +2922,43 @@ var fn = (
|
|
|
2893
2922
|
case "plural":
|
|
2894
2923
|
case "selectordinal":
|
|
2895
2924
|
case "select": {
|
|
2896
|
-
var
|
|
2925
|
+
var m = this.clonePosition();
|
|
2897
2926
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2898
|
-
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
2927
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, b(m, oe({}, m)));
|
|
2899
2928
|
this.bumpSpace();
|
|
2900
|
-
var
|
|
2901
|
-
if (u !== "select" &&
|
|
2929
|
+
var _ = this.parseIdentifierIfPossible(), S = 0;
|
|
2930
|
+
if (u !== "select" && _.value === "offset") {
|
|
2902
2931
|
if (!this.bumpIf(":"))
|
|
2903
2932
|
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2904
2933
|
this.bumpSpace();
|
|
2905
2934
|
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2906
2935
|
if (f.err)
|
|
2907
2936
|
return f;
|
|
2908
|
-
this.bumpSpace(),
|
|
2937
|
+
this.bumpSpace(), _ = this.parseIdentifierIfPossible(), S = f.val;
|
|
2909
2938
|
}
|
|
2910
|
-
var
|
|
2911
|
-
if (
|
|
2912
|
-
return
|
|
2939
|
+
var te = this.tryParsePluralOrSelectOptions(t, u, r, _);
|
|
2940
|
+
if (te.err)
|
|
2941
|
+
return te;
|
|
2913
2942
|
var d = this.tryParseArgumentClose(i);
|
|
2914
2943
|
if (d.err)
|
|
2915
2944
|
return d;
|
|
2916
|
-
var
|
|
2945
|
+
var De = b(i, this.clonePosition());
|
|
2917
2946
|
return u === "select" ? {
|
|
2918
2947
|
val: {
|
|
2919
2948
|
type: y.select,
|
|
2920
2949
|
value: n,
|
|
2921
|
-
options:
|
|
2922
|
-
location:
|
|
2950
|
+
options: Ke(te.val),
|
|
2951
|
+
location: De
|
|
2923
2952
|
},
|
|
2924
2953
|
err: null
|
|
2925
2954
|
} : {
|
|
2926
2955
|
val: {
|
|
2927
2956
|
type: y.plural,
|
|
2928
2957
|
value: n,
|
|
2929
|
-
options:
|
|
2930
|
-
offset:
|
|
2958
|
+
options: Ke(te.val),
|
|
2959
|
+
offset: S,
|
|
2931
2960
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2932
|
-
location:
|
|
2961
|
+
location: De
|
|
2933
2962
|
},
|
|
2934
2963
|
err: null
|
|
2935
2964
|
};
|
|
@@ -2977,16 +3006,16 @@ var fn = (
|
|
|
2977
3006
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2978
3007
|
var n = [];
|
|
2979
3008
|
try {
|
|
2980
|
-
n =
|
|
3009
|
+
n = zr(t);
|
|
2981
3010
|
} catch (i) {
|
|
2982
3011
|
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
2983
3012
|
}
|
|
2984
3013
|
return {
|
|
2985
3014
|
val: {
|
|
2986
|
-
type:
|
|
3015
|
+
type: j.number,
|
|
2987
3016
|
tokens: n,
|
|
2988
3017
|
location: r,
|
|
2989
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3018
|
+
parsedOptions: this.shouldParseSkeletons ? qr(n) : {}
|
|
2990
3019
|
},
|
|
2991
3020
|
err: null
|
|
2992
3021
|
};
|
|
@@ -3011,9 +3040,9 @@ var fn = (
|
|
|
3011
3040
|
var d = this.parseMessage(t + 1, r, n);
|
|
3012
3041
|
if (d.err)
|
|
3013
3042
|
return d;
|
|
3014
|
-
var
|
|
3015
|
-
if (
|
|
3016
|
-
return
|
|
3043
|
+
var x = this.tryParseArgumentClose(g);
|
|
3044
|
+
if (x.err)
|
|
3045
|
+
return x;
|
|
3017
3046
|
u.push([
|
|
3018
3047
|
o,
|
|
3019
3048
|
{
|
|
@@ -3034,7 +3063,7 @@ var fn = (
|
|
|
3034
3063
|
break;
|
|
3035
3064
|
}
|
|
3036
3065
|
var h = b(i, this.clonePosition());
|
|
3037
|
-
return s ? (a *= n,
|
|
3066
|
+
return s ? (a *= n, ln(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3038
3067
|
}, e.prototype.offset = function() {
|
|
3039
3068
|
return this.position.offset;
|
|
3040
3069
|
}, e.prototype.isEOF = function() {
|
|
@@ -3049,7 +3078,7 @@ var fn = (
|
|
|
3049
3078
|
var t = this.position.offset;
|
|
3050
3079
|
if (t >= this.message.length)
|
|
3051
3080
|
throw Error("out of bound");
|
|
3052
|
-
var r =
|
|
3081
|
+
var r = At(this.message, t);
|
|
3053
3082
|
if (r === void 0)
|
|
3054
3083
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3055
3084
|
return r;
|
|
@@ -3068,7 +3097,7 @@ var fn = (
|
|
|
3068
3097
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3069
3098
|
}
|
|
3070
3099
|
}, e.prototype.bumpIf = function(t) {
|
|
3071
|
-
if (
|
|
3100
|
+
if (Ye(this.message, t, this.offset())) {
|
|
3072
3101
|
for (var r = 0; r < t.length; r++)
|
|
3073
3102
|
this.bump();
|
|
3074
3103
|
return !0;
|
|
@@ -3090,7 +3119,7 @@ var fn = (
|
|
|
3090
3119
|
break;
|
|
3091
3120
|
}
|
|
3092
3121
|
}, e.prototype.bumpSpace = function() {
|
|
3093
|
-
for (; !this.isEOF() &&
|
|
3122
|
+
for (; !this.isEOF() && Ot(this.char()); )
|
|
3094
3123
|
this.bump();
|
|
3095
3124
|
}, e.prototype.peek = function() {
|
|
3096
3125
|
if (this.isEOF())
|
|
@@ -3100,47 +3129,47 @@ var fn = (
|
|
|
3100
3129
|
}, e;
|
|
3101
3130
|
}()
|
|
3102
3131
|
);
|
|
3103
|
-
function
|
|
3132
|
+
function Pe(e) {
|
|
3104
3133
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3105
3134
|
}
|
|
3106
|
-
function
|
|
3107
|
-
return
|
|
3135
|
+
function bn(e) {
|
|
3136
|
+
return Pe(e) || e === 47;
|
|
3108
3137
|
}
|
|
3109
|
-
function
|
|
3138
|
+
function dn(e) {
|
|
3110
3139
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3111
3140
|
}
|
|
3112
|
-
function
|
|
3141
|
+
function Ot(e) {
|
|
3113
3142
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3114
3143
|
}
|
|
3115
|
-
function
|
|
3144
|
+
function gn(e) {
|
|
3116
3145
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3117
3146
|
}
|
|
3118
3147
|
function Ne(e) {
|
|
3119
3148
|
e.forEach(function(t) {
|
|
3120
|
-
if (delete t.location,
|
|
3149
|
+
if (delete t.location, Et(t) || xt(t))
|
|
3121
3150
|
for (var r in t.options)
|
|
3122
3151
|
delete t.options[r].location, Ne(t.options[r].value);
|
|
3123
3152
|
else
|
|
3124
|
-
|
|
3153
|
+
dt(t) && vt(t.style) || (gt(t) || yt(t)) && Ae(t.style) ? delete t.style.location : _t(t) && Ne(t.children);
|
|
3125
3154
|
});
|
|
3126
3155
|
}
|
|
3127
|
-
function
|
|
3128
|
-
t === void 0 && (t = {}), t =
|
|
3129
|
-
var r = new
|
|
3156
|
+
function yn(e, t) {
|
|
3157
|
+
t === void 0 && (t = {}), t = oe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3158
|
+
var r = new pn(e, t).parse();
|
|
3130
3159
|
if (r.err) {
|
|
3131
3160
|
var n = SyntaxError(p[r.err.kind]);
|
|
3132
3161
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3133
3162
|
}
|
|
3134
3163
|
return t != null && t.captureLocation || Ne(r.val), r.val;
|
|
3135
3164
|
}
|
|
3136
|
-
var
|
|
3165
|
+
var k;
|
|
3137
3166
|
(function(e) {
|
|
3138
3167
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3139
|
-
})(
|
|
3140
|
-
var
|
|
3168
|
+
})(k || (k = {}));
|
|
3169
|
+
var fe = (
|
|
3141
3170
|
/** @class */
|
|
3142
3171
|
function(e) {
|
|
3143
|
-
|
|
3172
|
+
le(t, e);
|
|
3144
3173
|
function t(r, n, i) {
|
|
3145
3174
|
var s = e.call(this, r) || this;
|
|
3146
3175
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3149,155 +3178,155 @@ var le = (
|
|
|
3149
3178
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3150
3179
|
}, t;
|
|
3151
3180
|
}(Error)
|
|
3152
|
-
),
|
|
3181
|
+
), tt = (
|
|
3153
3182
|
/** @class */
|
|
3154
3183
|
function(e) {
|
|
3155
|
-
|
|
3184
|
+
le(t, e);
|
|
3156
3185
|
function t(r, n, i, s) {
|
|
3157
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3186
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), k.INVALID_VALUE, s) || this;
|
|
3158
3187
|
}
|
|
3159
3188
|
return t;
|
|
3160
|
-
}(
|
|
3161
|
-
),
|
|
3189
|
+
}(fe)
|
|
3190
|
+
), En = (
|
|
3162
3191
|
/** @class */
|
|
3163
3192
|
function(e) {
|
|
3164
|
-
|
|
3193
|
+
le(t, e);
|
|
3165
3194
|
function t(r, n, i) {
|
|
3166
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3195
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), k.INVALID_VALUE, i) || this;
|
|
3167
3196
|
}
|
|
3168
3197
|
return t;
|
|
3169
|
-
}(
|
|
3170
|
-
),
|
|
3198
|
+
}(fe)
|
|
3199
|
+
), xn = (
|
|
3171
3200
|
/** @class */
|
|
3172
3201
|
function(e) {
|
|
3173
|
-
|
|
3202
|
+
le(t, e);
|
|
3174
3203
|
function t(r, n) {
|
|
3175
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3204
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), k.MISSING_VALUE, n) || this;
|
|
3176
3205
|
}
|
|
3177
3206
|
return t;
|
|
3178
|
-
}(
|
|
3179
|
-
),
|
|
3207
|
+
}(fe)
|
|
3208
|
+
), v;
|
|
3180
3209
|
(function(e) {
|
|
3181
3210
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3182
|
-
})(
|
|
3183
|
-
function
|
|
3211
|
+
})(v || (v = {}));
|
|
3212
|
+
function _n(e) {
|
|
3184
3213
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3185
3214
|
var n = t[t.length - 1];
|
|
3186
|
-
return !n || n.type !==
|
|
3215
|
+
return !n || n.type !== v.literal || r.type !== v.literal ? t.push(r) : n.value += r.value, t;
|
|
3187
3216
|
}, []);
|
|
3188
3217
|
}
|
|
3189
|
-
function
|
|
3218
|
+
function vn(e) {
|
|
3190
3219
|
return typeof e == "function";
|
|
3191
3220
|
}
|
|
3192
|
-
function
|
|
3193
|
-
if (e.length === 1 &&
|
|
3221
|
+
function ie(e, t, r, n, i, s, a) {
|
|
3222
|
+
if (e.length === 1 && Ze(e[0]))
|
|
3194
3223
|
return [
|
|
3195
3224
|
{
|
|
3196
|
-
type:
|
|
3225
|
+
type: v.literal,
|
|
3197
3226
|
value: e[0].value
|
|
3198
3227
|
}
|
|
3199
3228
|
];
|
|
3200
3229
|
for (var u = [], h = 0, o = e; h < o.length; h++) {
|
|
3201
3230
|
var l = o[h];
|
|
3202
|
-
if (
|
|
3231
|
+
if (Ze(l)) {
|
|
3203
3232
|
u.push({
|
|
3204
|
-
type:
|
|
3233
|
+
type: v.literal,
|
|
3205
3234
|
value: l.value
|
|
3206
3235
|
});
|
|
3207
3236
|
continue;
|
|
3208
3237
|
}
|
|
3209
|
-
if (
|
|
3238
|
+
if (kr(l)) {
|
|
3210
3239
|
typeof s == "number" && u.push({
|
|
3211
|
-
type:
|
|
3240
|
+
type: v.literal,
|
|
3212
3241
|
value: r.getNumberFormat(t).format(s)
|
|
3213
3242
|
});
|
|
3214
3243
|
continue;
|
|
3215
3244
|
}
|
|
3216
3245
|
var f = l.value;
|
|
3217
3246
|
if (!(i && f in i))
|
|
3218
|
-
throw new
|
|
3247
|
+
throw new xn(f, a);
|
|
3219
3248
|
var c = i[f];
|
|
3220
|
-
if (
|
|
3249
|
+
if (jr(l)) {
|
|
3221
3250
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), u.push({
|
|
3222
|
-
type: typeof c == "string" ?
|
|
3251
|
+
type: typeof c == "string" ? v.literal : v.object,
|
|
3223
3252
|
value: c
|
|
3224
3253
|
});
|
|
3225
3254
|
continue;
|
|
3226
3255
|
}
|
|
3227
|
-
if (
|
|
3228
|
-
var g = typeof l.style == "string" ? n.date[l.style] :
|
|
3256
|
+
if (gt(l)) {
|
|
3257
|
+
var g = typeof l.style == "string" ? n.date[l.style] : Ae(l.style) ? l.style.parsedOptions : void 0;
|
|
3229
3258
|
u.push({
|
|
3230
|
-
type:
|
|
3259
|
+
type: v.literal,
|
|
3231
3260
|
value: r.getDateTimeFormat(t, g).format(c)
|
|
3232
3261
|
});
|
|
3233
3262
|
continue;
|
|
3234
3263
|
}
|
|
3235
|
-
if (
|
|
3236
|
-
var g = typeof l.style == "string" ? n.time[l.style] :
|
|
3264
|
+
if (yt(l)) {
|
|
3265
|
+
var g = typeof l.style == "string" ? n.time[l.style] : Ae(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3237
3266
|
u.push({
|
|
3238
|
-
type:
|
|
3267
|
+
type: v.literal,
|
|
3239
3268
|
value: r.getDateTimeFormat(t, g).format(c)
|
|
3240
3269
|
});
|
|
3241
3270
|
continue;
|
|
3242
3271
|
}
|
|
3243
|
-
if (
|
|
3272
|
+
if (dt(l)) {
|
|
3244
3273
|
var g = typeof l.style == "string" ? n.number[l.style] : vt(l.style) ? l.style.parsedOptions : void 0;
|
|
3245
3274
|
g && g.scale && (c = c * (g.scale || 1)), u.push({
|
|
3246
|
-
type:
|
|
3275
|
+
type: v.literal,
|
|
3247
3276
|
value: r.getNumberFormat(t, g).format(c)
|
|
3248
3277
|
});
|
|
3249
3278
|
continue;
|
|
3250
3279
|
}
|
|
3251
|
-
if (
|
|
3252
|
-
var d = l.children,
|
|
3253
|
-
if (!
|
|
3254
|
-
throw new
|
|
3255
|
-
var N =
|
|
3256
|
-
return
|
|
3280
|
+
if (_t(l)) {
|
|
3281
|
+
var d = l.children, x = l.value, B = i[x];
|
|
3282
|
+
if (!vn(B))
|
|
3283
|
+
throw new En(x, "function", a);
|
|
3284
|
+
var N = ie(d, t, r, n, i, s), M = B(N.map(function(S) {
|
|
3285
|
+
return S.value;
|
|
3257
3286
|
}));
|
|
3258
|
-
Array.isArray(
|
|
3287
|
+
Array.isArray(M) || (M = [M]), u.push.apply(u, M.map(function(S) {
|
|
3259
3288
|
return {
|
|
3260
|
-
type: typeof
|
|
3261
|
-
value:
|
|
3289
|
+
type: typeof S == "string" ? v.literal : v.object,
|
|
3290
|
+
value: S
|
|
3262
3291
|
};
|
|
3263
3292
|
}));
|
|
3264
3293
|
}
|
|
3265
|
-
if (
|
|
3266
|
-
var
|
|
3267
|
-
if (!
|
|
3268
|
-
throw new
|
|
3269
|
-
u.push.apply(u,
|
|
3294
|
+
if (Et(l)) {
|
|
3295
|
+
var m = l.options[c] || l.options.other;
|
|
3296
|
+
if (!m)
|
|
3297
|
+
throw new tt(l.value, c, Object.keys(l.options), a);
|
|
3298
|
+
u.push.apply(u, ie(m.value, t, r, n, i));
|
|
3270
3299
|
continue;
|
|
3271
3300
|
}
|
|
3272
|
-
if (
|
|
3273
|
-
var
|
|
3274
|
-
if (!
|
|
3301
|
+
if (xt(l)) {
|
|
3302
|
+
var m = l.options["=".concat(c)];
|
|
3303
|
+
if (!m) {
|
|
3275
3304
|
if (!Intl.PluralRules)
|
|
3276
|
-
throw new
|
|
3305
|
+
throw new fe(`Intl.PluralRules is not available in this environment.
|
|
3277
3306
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3278
|
-
`,
|
|
3279
|
-
var
|
|
3280
|
-
|
|
3307
|
+
`, k.MISSING_INTL_API, a);
|
|
3308
|
+
var _ = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3309
|
+
m = l.options[_] || l.options.other;
|
|
3281
3310
|
}
|
|
3282
|
-
if (!
|
|
3283
|
-
throw new
|
|
3284
|
-
u.push.apply(u,
|
|
3311
|
+
if (!m)
|
|
3312
|
+
throw new tt(l.value, c, Object.keys(l.options), a);
|
|
3313
|
+
u.push.apply(u, ie(m.value, t, r, n, i, c - (l.offset || 0)));
|
|
3285
3314
|
continue;
|
|
3286
3315
|
}
|
|
3287
3316
|
}
|
|
3288
|
-
return
|
|
3317
|
+
return _n(u);
|
|
3289
3318
|
}
|
|
3290
|
-
function
|
|
3291
|
-
return t ?
|
|
3292
|
-
return r[n] =
|
|
3319
|
+
function Bn(e, t) {
|
|
3320
|
+
return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3321
|
+
return r[n] = w(w({}, e[n]), t[n] || {}), r;
|
|
3293
3322
|
}, {})) : e;
|
|
3294
3323
|
}
|
|
3295
|
-
function
|
|
3324
|
+
function Sn(e, t) {
|
|
3296
3325
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3297
|
-
return r[n] =
|
|
3298
|
-
},
|
|
3326
|
+
return r[n] = Bn(e[n], t[n]), r;
|
|
3327
|
+
}, w({}, e)) : e;
|
|
3299
3328
|
}
|
|
3300
|
-
function
|
|
3329
|
+
function xe(e) {
|
|
3301
3330
|
return {
|
|
3302
3331
|
create: function() {
|
|
3303
3332
|
return {
|
|
@@ -3311,39 +3340,39 @@ function Ee(e) {
|
|
|
3311
3340
|
}
|
|
3312
3341
|
};
|
|
3313
3342
|
}
|
|
3314
|
-
function
|
|
3343
|
+
function Hn(e) {
|
|
3315
3344
|
return e === void 0 && (e = {
|
|
3316
3345
|
number: {},
|
|
3317
3346
|
dateTime: {},
|
|
3318
3347
|
pluralRules: {}
|
|
3319
3348
|
}), {
|
|
3320
|
-
getNumberFormat:
|
|
3349
|
+
getNumberFormat: ge(function() {
|
|
3321
3350
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3322
3351
|
r[n] = arguments[n];
|
|
3323
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3352
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, de([void 0], r, !1)))();
|
|
3324
3353
|
}, {
|
|
3325
|
-
cache:
|
|
3326
|
-
strategy:
|
|
3354
|
+
cache: xe(e.number),
|
|
3355
|
+
strategy: ye.variadic
|
|
3327
3356
|
}),
|
|
3328
|
-
getDateTimeFormat:
|
|
3357
|
+
getDateTimeFormat: ge(function() {
|
|
3329
3358
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3330
3359
|
r[n] = arguments[n];
|
|
3331
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3360
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, de([void 0], r, !1)))();
|
|
3332
3361
|
}, {
|
|
3333
|
-
cache:
|
|
3334
|
-
strategy:
|
|
3362
|
+
cache: xe(e.dateTime),
|
|
3363
|
+
strategy: ye.variadic
|
|
3335
3364
|
}),
|
|
3336
|
-
getPluralRules:
|
|
3365
|
+
getPluralRules: ge(function() {
|
|
3337
3366
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3338
3367
|
r[n] = arguments[n];
|
|
3339
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3368
|
+
return new ((t = Intl.PluralRules).bind.apply(t, de([void 0], r, !1)))();
|
|
3340
3369
|
}, {
|
|
3341
|
-
cache:
|
|
3342
|
-
strategy:
|
|
3370
|
+
cache: xe(e.pluralRules),
|
|
3371
|
+
strategy: ye.variadic
|
|
3343
3372
|
})
|
|
3344
3373
|
};
|
|
3345
3374
|
}
|
|
3346
|
-
var
|
|
3375
|
+
var Tn = (
|
|
3347
3376
|
/** @class */
|
|
3348
3377
|
function() {
|
|
3349
3378
|
function e(t, r, n, i) {
|
|
@@ -3358,11 +3387,11 @@ var Bn = (
|
|
|
3358
3387
|
if (o.length === 1)
|
|
3359
3388
|
return o[0].value;
|
|
3360
3389
|
var l = o.reduce(function(f, c) {
|
|
3361
|
-
return !f.length || c.type !==
|
|
3390
|
+
return !f.length || c.type !== v.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3362
3391
|
}, []);
|
|
3363
3392
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3364
3393
|
}, this.formatToParts = function(h) {
|
|
3365
|
-
return
|
|
3394
|
+
return ie(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3366
3395
|
}, this.resolvedOptions = function() {
|
|
3367
3396
|
var h;
|
|
3368
3397
|
return {
|
|
@@ -3375,13 +3404,13 @@ var Bn = (
|
|
|
3375
3404
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3376
3405
|
var a = i || {};
|
|
3377
3406
|
a.formatters;
|
|
3378
|
-
var u =
|
|
3379
|
-
this.ast = e.__parse(t,
|
|
3407
|
+
var u = Cr(a, ["formatters"]);
|
|
3408
|
+
this.ast = e.__parse(t, w(w({}, u), { locale: this.resolvedLocale }));
|
|
3380
3409
|
} else
|
|
3381
3410
|
this.ast = t;
|
|
3382
3411
|
if (!Array.isArray(this.ast))
|
|
3383
3412
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3384
|
-
this.formats =
|
|
3413
|
+
this.formats = Sn(e.formats, n), this.formatters = i && i.formatters || Hn(this.formatterCache);
|
|
3385
3414
|
}
|
|
3386
3415
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3387
3416
|
get: function() {
|
|
@@ -3394,7 +3423,7 @@ var Bn = (
|
|
|
3394
3423
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3395
3424
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3396
3425
|
}
|
|
3397
|
-
}, e.__parse =
|
|
3426
|
+
}, e.__parse = yn, e.formats = {
|
|
3398
3427
|
number: {
|
|
3399
3428
|
integer: {
|
|
3400
3429
|
maximumFractionDigits: 0
|
|
@@ -3455,7 +3484,7 @@ var Bn = (
|
|
|
3455
3484
|
}, e;
|
|
3456
3485
|
}()
|
|
3457
3486
|
);
|
|
3458
|
-
function
|
|
3487
|
+
function An(e, t) {
|
|
3459
3488
|
if (t == null)
|
|
3460
3489
|
return;
|
|
3461
3490
|
if (t in e)
|
|
@@ -3476,92 +3505,92 @@ function Hn(e, t) {
|
|
|
3476
3505
|
n = void 0;
|
|
3477
3506
|
return n;
|
|
3478
3507
|
}
|
|
3479
|
-
const
|
|
3508
|
+
const P = {}, wn = (e, t, r) => r && (t in P || (P[t] = {}), e in P[t] || (P[t][e] = r), r), Mt = (e, t) => {
|
|
3480
3509
|
if (t == null)
|
|
3481
3510
|
return;
|
|
3482
|
-
if (t in
|
|
3483
|
-
return
|
|
3484
|
-
const r =
|
|
3511
|
+
if (t in P && e in P[t])
|
|
3512
|
+
return P[t][e];
|
|
3513
|
+
const r = ce(t);
|
|
3485
3514
|
for (let n = 0; n < r.length; n++) {
|
|
3486
|
-
const i = r[n], s =
|
|
3515
|
+
const i = r[n], s = Mn(i, e);
|
|
3487
3516
|
if (s)
|
|
3488
|
-
return
|
|
3517
|
+
return wn(e, t, s);
|
|
3489
3518
|
}
|
|
3490
3519
|
};
|
|
3491
|
-
let
|
|
3492
|
-
const
|
|
3493
|
-
function
|
|
3494
|
-
return
|
|
3520
|
+
let Re;
|
|
3521
|
+
const ee = he({});
|
|
3522
|
+
function On(e) {
|
|
3523
|
+
return Re[e] || null;
|
|
3495
3524
|
}
|
|
3496
|
-
function
|
|
3497
|
-
return e in
|
|
3525
|
+
function Pt(e) {
|
|
3526
|
+
return e in Re;
|
|
3498
3527
|
}
|
|
3499
|
-
function
|
|
3500
|
-
if (!
|
|
3528
|
+
function Mn(e, t) {
|
|
3529
|
+
if (!Pt(e))
|
|
3501
3530
|
return null;
|
|
3502
|
-
const r =
|
|
3503
|
-
return
|
|
3531
|
+
const r = On(e);
|
|
3532
|
+
return An(r, t);
|
|
3504
3533
|
}
|
|
3505
3534
|
function Pn(e) {
|
|
3506
3535
|
if (e == null)
|
|
3507
3536
|
return;
|
|
3508
|
-
const t =
|
|
3537
|
+
const t = ce(e);
|
|
3509
3538
|
for (let r = 0; r < t.length; r++) {
|
|
3510
3539
|
const n = t[r];
|
|
3511
|
-
if (
|
|
3540
|
+
if (Pt(n))
|
|
3512
3541
|
return n;
|
|
3513
3542
|
}
|
|
3514
3543
|
}
|
|
3515
3544
|
function Nt(e, ...t) {
|
|
3516
|
-
delete
|
|
3545
|
+
delete P[e], ee.update((r) => (r[e] = Ir.all([r[e] || {}, ...t]), r));
|
|
3517
3546
|
}
|
|
3518
|
-
|
|
3519
|
-
[
|
|
3547
|
+
X(
|
|
3548
|
+
[ee],
|
|
3520
3549
|
([e]) => Object.keys(e)
|
|
3521
3550
|
);
|
|
3522
|
-
|
|
3523
|
-
const
|
|
3524
|
-
function
|
|
3525
|
-
|
|
3551
|
+
ee.subscribe((e) => Re = e);
|
|
3552
|
+
const se = {};
|
|
3553
|
+
function Nn(e, t) {
|
|
3554
|
+
se[e].delete(t), se[e].size === 0 && delete se[e];
|
|
3526
3555
|
}
|
|
3527
|
-
function
|
|
3528
|
-
return
|
|
3556
|
+
function It(e) {
|
|
3557
|
+
return se[e];
|
|
3529
3558
|
}
|
|
3530
|
-
function
|
|
3531
|
-
return
|
|
3532
|
-
const r =
|
|
3559
|
+
function In(e) {
|
|
3560
|
+
return ce(e).map((t) => {
|
|
3561
|
+
const r = It(t);
|
|
3533
3562
|
return [t, r ? [...r] : []];
|
|
3534
3563
|
}).filter(([, t]) => t.length > 0);
|
|
3535
3564
|
}
|
|
3536
|
-
function
|
|
3537
|
-
return e == null ? !1 :
|
|
3565
|
+
function Ie(e) {
|
|
3566
|
+
return e == null ? !1 : ce(e).some(
|
|
3538
3567
|
(t) => {
|
|
3539
3568
|
var r;
|
|
3540
|
-
return (r =
|
|
3569
|
+
return (r = It(t)) == null ? void 0 : r.size;
|
|
3541
3570
|
}
|
|
3542
3571
|
);
|
|
3543
3572
|
}
|
|
3544
|
-
function
|
|
3573
|
+
function Cn(e, t) {
|
|
3545
3574
|
return Promise.all(
|
|
3546
|
-
t.map((n) => (
|
|
3575
|
+
t.map((n) => (Nn(e, n), n().then((i) => i.default || i)))
|
|
3547
3576
|
).then((n) => Nt(e, ...n));
|
|
3548
3577
|
}
|
|
3549
|
-
const
|
|
3550
|
-
function
|
|
3551
|
-
if (!
|
|
3552
|
-
return e in
|
|
3553
|
-
const t =
|
|
3554
|
-
return
|
|
3578
|
+
const Z = {};
|
|
3579
|
+
function Ct(e) {
|
|
3580
|
+
if (!Ie(e))
|
|
3581
|
+
return e in Z ? Z[e] : Promise.resolve();
|
|
3582
|
+
const t = In(e);
|
|
3583
|
+
return Z[e] = Promise.all(
|
|
3555
3584
|
t.map(
|
|
3556
|
-
([r, n]) =>
|
|
3585
|
+
([r, n]) => Cn(r, n)
|
|
3557
3586
|
)
|
|
3558
3587
|
).then(() => {
|
|
3559
|
-
if (
|
|
3560
|
-
return
|
|
3561
|
-
delete
|
|
3562
|
-
}),
|
|
3588
|
+
if (Ie(e))
|
|
3589
|
+
return Ct(e);
|
|
3590
|
+
delete Z[e];
|
|
3591
|
+
}), Z[e];
|
|
3563
3592
|
}
|
|
3564
|
-
const
|
|
3593
|
+
const Ln = {
|
|
3565
3594
|
number: {
|
|
3566
3595
|
scientific: { notation: "scientific" },
|
|
3567
3596
|
engineering: { notation: "engineering" },
|
|
@@ -3590,141 +3619,141 @@ const wn = {
|
|
|
3590
3619
|
timeZoneName: "short"
|
|
3591
3620
|
}
|
|
3592
3621
|
}
|
|
3593
|
-
},
|
|
3622
|
+
}, $n = {
|
|
3594
3623
|
fallbackLocale: null,
|
|
3595
3624
|
loadingDelay: 200,
|
|
3596
|
-
formats:
|
|
3625
|
+
formats: Ln,
|
|
3597
3626
|
warnOnMissingMessages: !0,
|
|
3598
3627
|
handleMissingMessage: void 0,
|
|
3599
3628
|
ignoreTag: !0
|
|
3600
|
-
},
|
|
3601
|
-
function
|
|
3602
|
-
return
|
|
3629
|
+
}, Rn = $n;
|
|
3630
|
+
function V() {
|
|
3631
|
+
return Rn;
|
|
3603
3632
|
}
|
|
3604
|
-
const
|
|
3605
|
-
var
|
|
3633
|
+
const _e = he(!1);
|
|
3634
|
+
var Un = Object.defineProperty, Dn = Object.defineProperties, Gn = Object.getOwnPropertyDescriptors, rt = Object.getOwnPropertySymbols, Fn = Object.prototype.hasOwnProperty, jn = Object.prototype.propertyIsEnumerable, nt = (e, t, r) => t in e ? Un(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, kn = (e, t) => {
|
|
3606
3635
|
for (var r in t || (t = {}))
|
|
3607
|
-
|
|
3608
|
-
if (
|
|
3609
|
-
for (var r of
|
|
3610
|
-
|
|
3636
|
+
Fn.call(t, r) && nt(e, r, t[r]);
|
|
3637
|
+
if (rt)
|
|
3638
|
+
for (var r of rt(t))
|
|
3639
|
+
jn.call(t, r) && nt(e, r, t[r]);
|
|
3611
3640
|
return e;
|
|
3612
|
-
},
|
|
3613
|
-
let
|
|
3614
|
-
const
|
|
3615
|
-
function
|
|
3641
|
+
}, Vn = (e, t) => Dn(e, Gn(t));
|
|
3642
|
+
let Ce;
|
|
3643
|
+
const ae = he(null);
|
|
3644
|
+
function it(e) {
|
|
3616
3645
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3617
3646
|
}
|
|
3618
|
-
function
|
|
3619
|
-
const r =
|
|
3620
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3647
|
+
function ce(e, t = V().fallbackLocale) {
|
|
3648
|
+
const r = it(e);
|
|
3649
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...it(t)])] : r;
|
|
3621
3650
|
}
|
|
3622
|
-
function
|
|
3623
|
-
return
|
|
3651
|
+
function C() {
|
|
3652
|
+
return Ce != null ? Ce : void 0;
|
|
3624
3653
|
}
|
|
3625
|
-
|
|
3626
|
-
|
|
3654
|
+
ae.subscribe((e) => {
|
|
3655
|
+
Ce = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3627
3656
|
});
|
|
3628
|
-
const
|
|
3629
|
-
if (e && Pn(e) &&
|
|
3630
|
-
const { loadingDelay: t } =
|
|
3657
|
+
const Xn = (e) => {
|
|
3658
|
+
if (e && Pn(e) && Ie(e)) {
|
|
3659
|
+
const { loadingDelay: t } = V();
|
|
3631
3660
|
let r;
|
|
3632
|
-
return typeof window != "undefined" &&
|
|
3633
|
-
() =>
|
|
3661
|
+
return typeof window != "undefined" && C() != null && t ? r = window.setTimeout(
|
|
3662
|
+
() => _e.set(!0),
|
|
3634
3663
|
t
|
|
3635
|
-
) :
|
|
3636
|
-
|
|
3664
|
+
) : _e.set(!0), Ct(e).then(() => {
|
|
3665
|
+
ae.set(e);
|
|
3637
3666
|
}).finally(() => {
|
|
3638
|
-
clearTimeout(r),
|
|
3667
|
+
clearTimeout(r), _e.set(!1);
|
|
3639
3668
|
});
|
|
3640
3669
|
}
|
|
3641
|
-
return
|
|
3642
|
-
},
|
|
3643
|
-
set:
|
|
3644
|
-
}),
|
|
3670
|
+
return ae.set(e);
|
|
3671
|
+
}, W = Vn(kn({}, ae), {
|
|
3672
|
+
set: Xn
|
|
3673
|
+
}), me = (e) => {
|
|
3645
3674
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3646
3675
|
return (n) => {
|
|
3647
3676
|
const i = JSON.stringify(n);
|
|
3648
3677
|
return i in t ? t[i] : t[i] = e(n);
|
|
3649
3678
|
};
|
|
3650
3679
|
};
|
|
3651
|
-
var
|
|
3680
|
+
var Wn = Object.defineProperty, ue = Object.getOwnPropertySymbols, Lt = Object.prototype.hasOwnProperty, $t = Object.prototype.propertyIsEnumerable, st = (e, t, r) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ue = (e, t) => {
|
|
3652
3681
|
for (var r in t || (t = {}))
|
|
3653
|
-
Lt.call(t, r) &&
|
|
3654
|
-
if (
|
|
3655
|
-
for (var r of
|
|
3656
|
-
|
|
3682
|
+
Lt.call(t, r) && st(e, r, t[r]);
|
|
3683
|
+
if (ue)
|
|
3684
|
+
for (var r of ue(t))
|
|
3685
|
+
$t.call(t, r) && st(e, r, t[r]);
|
|
3657
3686
|
return e;
|
|
3658
|
-
},
|
|
3687
|
+
}, z = (e, t) => {
|
|
3659
3688
|
var r = {};
|
|
3660
3689
|
for (var n in e)
|
|
3661
3690
|
Lt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3662
|
-
if (e != null &&
|
|
3663
|
-
for (var n of
|
|
3664
|
-
t.indexOf(n) < 0 &&
|
|
3691
|
+
if (e != null && ue)
|
|
3692
|
+
for (var n of ue(e))
|
|
3693
|
+
t.indexOf(n) < 0 && $t.call(e, n) && (r[n] = e[n]);
|
|
3665
3694
|
return r;
|
|
3666
3695
|
};
|
|
3667
|
-
const
|
|
3668
|
-
const { formats: r } =
|
|
3696
|
+
const Y = (e, t) => {
|
|
3697
|
+
const { formats: r } = V();
|
|
3669
3698
|
if (e in r && t in r[e])
|
|
3670
3699
|
return r[e][t];
|
|
3671
3700
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3672
|
-
},
|
|
3701
|
+
}, zn = me(
|
|
3673
3702
|
(e) => {
|
|
3674
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3703
|
+
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
|
3675
3704
|
if (r == null)
|
|
3676
3705
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3677
|
-
return n && (i =
|
|
3706
|
+
return n && (i = Y("number", n)), new Intl.NumberFormat(r, i);
|
|
3678
3707
|
}
|
|
3679
|
-
),
|
|
3708
|
+
), Zn = me(
|
|
3680
3709
|
(e) => {
|
|
3681
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3710
|
+
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
|
3682
3711
|
if (r == null)
|
|
3683
3712
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3684
|
-
return n ? i =
|
|
3713
|
+
return n ? i = Y("date", n) : Object.keys(i).length === 0 && (i = Y("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3685
3714
|
}
|
|
3686
|
-
),
|
|
3715
|
+
), Qn = me(
|
|
3687
3716
|
(e) => {
|
|
3688
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3717
|
+
var t = e, { locale: r, format: n } = t, i = z(t, ["locale", "format"]);
|
|
3689
3718
|
if (r == null)
|
|
3690
3719
|
throw new Error(
|
|
3691
3720
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3692
3721
|
);
|
|
3693
|
-
return n ? i =
|
|
3722
|
+
return n ? i = Y("time", n) : Object.keys(i).length === 0 && (i = Y("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3694
3723
|
}
|
|
3695
|
-
),
|
|
3724
|
+
), Jn = (e = {}) => {
|
|
3696
3725
|
var t = e, {
|
|
3697
|
-
locale: r =
|
|
3698
|
-
} = t, n =
|
|
3726
|
+
locale: r = C()
|
|
3727
|
+
} = t, n = z(t, [
|
|
3699
3728
|
"locale"
|
|
3700
3729
|
]);
|
|
3701
|
-
return
|
|
3702
|
-
},
|
|
3730
|
+
return zn(Ue({ locale: r }, n));
|
|
3731
|
+
}, qn = (e = {}) => {
|
|
3703
3732
|
var t = e, {
|
|
3704
|
-
locale: r =
|
|
3705
|
-
} = t, n =
|
|
3733
|
+
locale: r = C()
|
|
3734
|
+
} = t, n = z(t, [
|
|
3706
3735
|
"locale"
|
|
3707
3736
|
]);
|
|
3708
|
-
return
|
|
3709
|
-
},
|
|
3737
|
+
return Zn(Ue({ locale: r }, n));
|
|
3738
|
+
}, Yn = (e = {}) => {
|
|
3710
3739
|
var t = e, {
|
|
3711
|
-
locale: r =
|
|
3712
|
-
} = t, n =
|
|
3740
|
+
locale: r = C()
|
|
3741
|
+
} = t, n = z(t, [
|
|
3713
3742
|
"locale"
|
|
3714
3743
|
]);
|
|
3715
|
-
return
|
|
3716
|
-
},
|
|
3744
|
+
return Qn(Ue({ locale: r }, n));
|
|
3745
|
+
}, Kn = me(
|
|
3717
3746
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3718
|
-
(e, t =
|
|
3719
|
-
ignoreTag:
|
|
3747
|
+
(e, t = C()) => new Tn(e, t, V().formats, {
|
|
3748
|
+
ignoreTag: V().ignoreTag
|
|
3720
3749
|
})
|
|
3721
|
-
),
|
|
3750
|
+
), ei = (e, t = {}) => {
|
|
3722
3751
|
var r, n, i, s;
|
|
3723
3752
|
let a = t;
|
|
3724
3753
|
typeof e == "object" && (a = e, e = a.id);
|
|
3725
3754
|
const {
|
|
3726
3755
|
values: u,
|
|
3727
|
-
locale: h =
|
|
3756
|
+
locale: h = C(),
|
|
3728
3757
|
default: o
|
|
3729
3758
|
} = a;
|
|
3730
3759
|
if (h == null)
|
|
@@ -3733,7 +3762,7 @@ const q = (e, t) => {
|
|
|
3733
3762
|
);
|
|
3734
3763
|
let l = Mt(e, h);
|
|
3735
3764
|
if (!l)
|
|
3736
|
-
l = (s = (i = (n = (r =
|
|
3765
|
+
l = (s = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: o })) != null ? i : o) != null ? s : e;
|
|
3737
3766
|
else if (typeof l != "string")
|
|
3738
3767
|
return console.warn(
|
|
3739
3768
|
`[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.`
|
|
@@ -3742,7 +3771,7 @@ const q = (e, t) => {
|
|
|
3742
3771
|
return l;
|
|
3743
3772
|
let f = l;
|
|
3744
3773
|
try {
|
|
3745
|
-
f =
|
|
3774
|
+
f = Kn(l, h).format(u);
|
|
3746
3775
|
} catch (c) {
|
|
3747
3776
|
c instanceof Error && console.warn(
|
|
3748
3777
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3750,18 +3779,18 @@ const q = (e, t) => {
|
|
|
3750
3779
|
);
|
|
3751
3780
|
}
|
|
3752
3781
|
return f;
|
|
3753
|
-
},
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
function
|
|
3782
|
+
}, ti = (e, t) => Yn(t).format(e), ri = (e, t) => qn(t).format(e), ni = (e, t) => Jn(t).format(e), ii = (e, t = C()) => Mt(e, t), si = X([W, ee], () => ei);
|
|
3783
|
+
X([W], () => ti);
|
|
3784
|
+
X([W], () => ri);
|
|
3785
|
+
X([W], () => ni);
|
|
3786
|
+
X([W, ee], () => ii);
|
|
3787
|
+
function ot(e, t) {
|
|
3759
3788
|
Nt(e, t);
|
|
3760
3789
|
}
|
|
3761
|
-
function
|
|
3762
|
-
|
|
3790
|
+
function oi(e) {
|
|
3791
|
+
W.set(e);
|
|
3763
3792
|
}
|
|
3764
|
-
const
|
|
3793
|
+
const at = {
|
|
3765
3794
|
en: {
|
|
3766
3795
|
betsButtonString: "My Bets"
|
|
3767
3796
|
},
|
|
@@ -3802,92 +3831,92 @@ const ot = {
|
|
|
3802
3831
|
betsButtonString: "My Bets"
|
|
3803
3832
|
}
|
|
3804
3833
|
};
|
|
3805
|
-
function
|
|
3806
|
-
|
|
3834
|
+
function ai(e) {
|
|
3835
|
+
Vt(e, "svelte-ikpaqv", '.MyBetsButton{cursor:pointer}@container (min-width:991px){.MyBetsButton{margin:0 5px}}.MyBetsButton .MyBetsButtonWrapper{display:flex;align-content:center;justify-content:center;flex-direction:column;background-color:transparent;border:none;width:100%;min-width:60px}.MyBetsButton .MyBetsButtonWrapper .MyBetsButtonCount{margin:auto}.MyBetsButton .MyBetsButtonWrapper .MyBetsButtonCount .MyBetsCountNumber{background-color:var(--emw--button-contrast-background, #FD2839);height:21px;display:flex;justify-content:center;align-items:center;border-radius:100%;width:22px}.MyBetsButton .MyBetsButtonWrapper .MyBetsButtonCount .MyBetsCountNumber p{margin:0;font-size:12px;font-weight:500;color:var(--emw--color-white, #FFFFFF);font-family:var(--emw--font-family, "Roboto")}.MyBetsButton .MyBetsButtonWrapper .MyBetsButtonTitle{margin-top:5px;text-align:center}.MyBetsButton .MyBetsButtonWrapper .MyBetsButtonTitle p{margin:0;font-size:12px;text-transform:uppercase;font-weight:500;color:var(--emw--color-white, #FFFFFF);font-family:var(--emw--font-family, "Roboto")}');
|
|
3807
3836
|
}
|
|
3808
|
-
function
|
|
3837
|
+
function ui(e) {
|
|
3809
3838
|
let t, r, n, i, s, a, u, h, o, l = (
|
|
3810
3839
|
/*$_*/
|
|
3811
3840
|
e[2]("betsButtonString") + ""
|
|
3812
3841
|
), f, c, g;
|
|
3813
3842
|
return {
|
|
3814
3843
|
c() {
|
|
3815
|
-
t =
|
|
3844
|
+
t = O("div"), r = O("button"), n = O("div"), i = O("span"), s = O("p"), a = ve(
|
|
3816
3845
|
/*betsData*/
|
|
3817
3846
|
e[1]
|
|
3818
|
-
), u =
|
|
3847
|
+
), u = zt(), h = O("div"), o = O("p"), f = ve(l), R(i, "class", "MyBetsCountNumber"), R(n, "class", "MyBetsButtonCount"), R(h, "class", "MyBetsButtonTitle"), R(r, "class", "MyBetsButtonWrapper"), R(t, "class", "MyBetsButton");
|
|
3819
3848
|
},
|
|
3820
|
-
m(d,
|
|
3821
|
-
|
|
3849
|
+
m(d, x) {
|
|
3850
|
+
ft(d, t, x), A(t, r), A(r, n), A(n, i), A(i, s), A(s, a), A(r, u), A(r, h), A(h, o), A(o, f), e[10](t), c || (g = Zt(
|
|
3822
3851
|
r,
|
|
3823
3852
|
"click",
|
|
3824
3853
|
/*click_handler*/
|
|
3825
3854
|
e[9]
|
|
3826
3855
|
), c = !0);
|
|
3827
3856
|
},
|
|
3828
|
-
p(d, [
|
|
3829
|
-
|
|
3830
|
-
2 &&
|
|
3857
|
+
p(d, [x]) {
|
|
3858
|
+
x & /*betsData*/
|
|
3859
|
+
2 && Xe(
|
|
3831
3860
|
a,
|
|
3832
3861
|
/*betsData*/
|
|
3833
3862
|
d[1]
|
|
3834
|
-
),
|
|
3863
|
+
), x & /*$_*/
|
|
3835
3864
|
4 && l !== (l = /*$_*/
|
|
3836
|
-
d[2]("betsButtonString") + "") &&
|
|
3865
|
+
d[2]("betsButtonString") + "") && Xe(f, l);
|
|
3837
3866
|
},
|
|
3838
|
-
i:
|
|
3839
|
-
o:
|
|
3867
|
+
i: T,
|
|
3868
|
+
o: T,
|
|
3840
3869
|
d(d) {
|
|
3841
|
-
d &&
|
|
3870
|
+
d && $e(t), e[10](null), c = !1, g();
|
|
3842
3871
|
}
|
|
3843
3872
|
};
|
|
3844
3873
|
}
|
|
3845
|
-
function
|
|
3874
|
+
function hi(e, t, r) {
|
|
3846
3875
|
let n;
|
|
3847
|
-
|
|
3848
|
-
let { lang: i = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: u } = t, { translationurl: h = "" } = t, o, l = 0;
|
|
3849
|
-
const
|
|
3850
|
-
fetch(h).then((
|
|
3851
|
-
Object.keys(
|
|
3852
|
-
|
|
3876
|
+
kt(e, si, (m) => r(2, n = m));
|
|
3877
|
+
let { lang: i = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: u } = t, { translationurl: h = "" } = t, o, l, f = 0;
|
|
3878
|
+
const c = () => {
|
|
3879
|
+
fetch(h).then((_) => _.json()).then((_) => {
|
|
3880
|
+
Object.keys(_).forEach((S) => {
|
|
3881
|
+
ot(S, _[S]);
|
|
3853
3882
|
});
|
|
3854
|
-
}).catch((
|
|
3855
|
-
console.log(
|
|
3883
|
+
}).catch((_) => {
|
|
3884
|
+
console.log(_);
|
|
3856
3885
|
});
|
|
3857
|
-
},
|
|
3858
|
-
|
|
3859
|
-
},
|
|
3886
|
+
}, g = () => {
|
|
3887
|
+
oi(i);
|
|
3888
|
+
}, d = (m, _) => {
|
|
3860
3889
|
o.dispatchEvent(new CustomEvent(
|
|
3861
3890
|
m,
|
|
3862
3891
|
{
|
|
3863
|
-
detail:
|
|
3892
|
+
detail: _,
|
|
3864
3893
|
composed: !0,
|
|
3865
3894
|
bubbles: !0
|
|
3866
3895
|
// propagate across the shadow DOM
|
|
3867
3896
|
}
|
|
3868
3897
|
));
|
|
3869
|
-
},
|
|
3898
|
+
}, x = () => {
|
|
3870
3899
|
window.postMessage({ type: "OMFE:getBetslipSelectionsCount" }, "*");
|
|
3871
|
-
},
|
|
3872
|
-
const { type:
|
|
3900
|
+
}, B = (m) => {
|
|
3901
|
+
const { type: _, payload: S } = m.data;
|
|
3873
3902
|
if (m.data)
|
|
3874
|
-
switch (
|
|
3903
|
+
switch (_) {
|
|
3875
3904
|
case "OMFE:betslipSelectionsCount":
|
|
3876
|
-
r(1,
|
|
3905
|
+
r(1, f = S.count), localStorage.setItem("OMFE:betSlipCount", f.toString());
|
|
3877
3906
|
break;
|
|
3878
3907
|
}
|
|
3879
3908
|
};
|
|
3880
|
-
|
|
3909
|
+
Yt(() => {
|
|
3881
3910
|
const m = localStorage.getItem("OMFE:betSlipCount");
|
|
3882
|
-
return r(1,
|
|
3883
|
-
window.removeEventListener("message",
|
|
3911
|
+
return r(1, f = m !== null ? Number(m) : 0), x(), window.addEventListener("message", B, !1), () => {
|
|
3912
|
+
window.removeEventListener("message", B);
|
|
3884
3913
|
};
|
|
3885
|
-
}), Object.keys(
|
|
3886
|
-
|
|
3914
|
+
}), Object.keys(at).forEach((m) => {
|
|
3915
|
+
ot(m, at[m]);
|
|
3887
3916
|
});
|
|
3888
|
-
const
|
|
3889
|
-
function
|
|
3890
|
-
|
|
3917
|
+
const N = (m) => d("betslipClick", {});
|
|
3918
|
+
function M(m) {
|
|
3919
|
+
Be[m ? "unshift" : "push"](() => {
|
|
3891
3920
|
o = m, r(0, o);
|
|
3892
3921
|
});
|
|
3893
3922
|
}
|
|
@@ -3895,33 +3924,33 @@ function oi(e, t, r) {
|
|
|
3895
3924
|
"lang" in m && r(4, i = m.lang), "clientstyling" in m && r(5, s = m.clientstyling), "clientstylingurl" in m && r(6, a = m.clientstylingurl), "mbsource" in m && r(7, u = m.mbsource), "translationurl" in m && r(8, h = m.translationurl);
|
|
3896
3925
|
}, e.$$.update = () => {
|
|
3897
3926
|
e.$$.dirty & /*lang*/
|
|
3898
|
-
16 && i &&
|
|
3899
|
-
33 && s && o &&
|
|
3900
|
-
65 && a && o &&
|
|
3901
|
-
129 && u && o &&
|
|
3902
|
-
256 && h &&
|
|
3927
|
+
16 && i && g(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
3928
|
+
33 && s && o && cr(o, s), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
3929
|
+
65 && a && o && mr(o, a), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
3930
|
+
129 && u && o && pr(o, `${u}.Style`, l), e.$$.dirty & /*translationurl*/
|
|
3931
|
+
256 && h && c();
|
|
3903
3932
|
}, [
|
|
3904
3933
|
o,
|
|
3905
|
-
|
|
3934
|
+
f,
|
|
3906
3935
|
n,
|
|
3907
|
-
|
|
3936
|
+
d,
|
|
3908
3937
|
i,
|
|
3909
3938
|
s,
|
|
3910
3939
|
a,
|
|
3911
3940
|
u,
|
|
3912
3941
|
h,
|
|
3913
|
-
|
|
3914
|
-
|
|
3942
|
+
N,
|
|
3943
|
+
M
|
|
3915
3944
|
];
|
|
3916
3945
|
}
|
|
3917
|
-
class
|
|
3946
|
+
class li extends lr {
|
|
3918
3947
|
constructor(t) {
|
|
3919
|
-
super(),
|
|
3948
|
+
super(), ur(
|
|
3920
3949
|
this,
|
|
3921
3950
|
t,
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3951
|
+
hi,
|
|
3952
|
+
ui,
|
|
3953
|
+
ht,
|
|
3925
3954
|
{
|
|
3926
3955
|
lang: 4,
|
|
3927
3956
|
clientstyling: 5,
|
|
@@ -3929,7 +3958,7 @@ class ai extends hr {
|
|
|
3929
3958
|
mbsource: 7,
|
|
3930
3959
|
translationurl: 8
|
|
3931
3960
|
},
|
|
3932
|
-
|
|
3961
|
+
ai
|
|
3933
3962
|
);
|
|
3934
3963
|
}
|
|
3935
3964
|
get lang() {
|
|
@@ -3963,7 +3992,7 @@ class ai extends hr {
|
|
|
3963
3992
|
this.$$set({ translationurl: t }), I();
|
|
3964
3993
|
}
|
|
3965
3994
|
}
|
|
3966
|
-
|
|
3995
|
+
hr(li, { lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
3967
3996
|
export {
|
|
3968
|
-
|
|
3997
|
+
li as default
|
|
3969
3998
|
};
|