@everymatrix/casino-providers 1.55.0 → 1.56.0
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/{CasinoProviders-C_q3HyPN.js → CasinoProviders-BLcC4EtO.js} +630 -613
- package/components/CasinoProviders-EjQOGbEE.cjs +3 -0
- package/components/{CasinoProviders-DiseHhFs.js → CasinoProviders-woKFGkDc.js} +618 -601
- package/es2015/casino-providers.cjs +1 -1
- package/es2015/casino-providers.js +1 -1
- package/esnext/casino-providers.js +1 -1
- package/package.json +1 -1
- package/components/CasinoProviders-CAK_2bCj.cjs +0 -3
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Wt = Object.defineProperty, Zt = Object.defineProperties;
|
|
2
|
+
var Qt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var ze = Object.getOwnPropertySymbols;
|
|
4
|
+
var qt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ye = (e, t, r) => t in e ? Wt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
qt.call(t, r) && ye(e, r, t[r]);
|
|
8
|
+
if (ze)
|
|
9
|
+
for (var r of ze(t))
|
|
10
|
+
Jt.call(t, r) && ye(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, Ze = (e, t) => Zt(e, Qt(t));
|
|
13
|
+
var I = (e, t, r) => ye(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
+
var Qe = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
u(r.next(h));
|
|
@@ -27,53 +27,53 @@ var Ye = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
|
|
28
28
|
u((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function $() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function vt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function qe() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function oe(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(vt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function je(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Et(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
47
|
+
let ue;
|
|
48
|
+
function me(e, t) {
|
|
49
|
+
return e === t ? !0 : (ue || (ue = document.createElement("a")), ue.href = t, e === ue.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function Yt(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function _t(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
58
|
-
return
|
|
58
|
+
return $;
|
|
59
59
|
}
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function Kt(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(_t(t, r));
|
|
65
65
|
}
|
|
66
66
|
function y(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function er(e, t, r) {
|
|
70
|
+
const n = tr(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
|
-
const i =
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
72
|
+
const i = A("style");
|
|
73
|
+
i.id = t, i.textContent = r, rr(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function tr(e) {
|
|
77
77
|
if (!e) return document;
|
|
78
78
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
79
79
|
return t && /** @type {ShadowRoot} */
|
|
@@ -82,49 +82,49 @@ function ir(e) {
|
|
|
82
82
|
t
|
|
83
83
|
) : e.ownerDocument;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function rr(e, t) {
|
|
86
86
|
return y(
|
|
87
87
|
/** @type {Document} */
|
|
88
88
|
e.head || e,
|
|
89
89
|
t
|
|
90
90
|
), t.sheet;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function M(e, t, r) {
|
|
93
93
|
e.insertBefore(t, r || null);
|
|
94
94
|
}
|
|
95
95
|
function C(e) {
|
|
96
96
|
e.parentNode && e.parentNode.removeChild(e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Je(e, t) {
|
|
99
99
|
for (let r = 0; r < e.length; r += 1)
|
|
100
100
|
e[r] && e[r].d(t);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function A(e) {
|
|
103
103
|
return document.createElement(e);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function R(e) {
|
|
106
106
|
return document.createTextNode(e);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
108
|
+
function U() {
|
|
109
|
+
return R(" ");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
111
|
+
function nr() {
|
|
112
|
+
return R("");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function xt(e, t, r, n) {
|
|
115
115
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
116
116
|
}
|
|
117
117
|
function S(e, t, r) {
|
|
118
118
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function ir(e) {
|
|
121
121
|
return Array.from(e.childNodes);
|
|
122
122
|
}
|
|
123
123
|
function F(e, t) {
|
|
124
124
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
125
125
|
t);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function sr(e) {
|
|
128
128
|
const t = {};
|
|
129
129
|
return e.childNodes.forEach(
|
|
130
130
|
/** @param {Element} node */
|
|
@@ -133,31 +133,31 @@ function ur(e) {
|
|
|
133
133
|
}
|
|
134
134
|
), t;
|
|
135
135
|
}
|
|
136
|
-
let
|
|
136
|
+
let ke;
|
|
137
137
|
function ne(e) {
|
|
138
|
-
|
|
138
|
+
ke = e;
|
|
139
139
|
}
|
|
140
140
|
const W = [], we = [];
|
|
141
141
|
let Z = [];
|
|
142
|
-
const
|
|
143
|
-
let
|
|
144
|
-
function
|
|
145
|
-
|
|
142
|
+
const Ye = [], or = /* @__PURE__ */ Promise.resolve();
|
|
143
|
+
let Ne = !1;
|
|
144
|
+
function ar() {
|
|
145
|
+
Ne || (Ne = !0, or.then(D));
|
|
146
146
|
}
|
|
147
147
|
function Le(e) {
|
|
148
148
|
Z.push(e);
|
|
149
149
|
}
|
|
150
|
-
const
|
|
150
|
+
const Pe = /* @__PURE__ */ new Set();
|
|
151
151
|
let X = 0;
|
|
152
|
-
function
|
|
152
|
+
function D() {
|
|
153
153
|
if (X !== 0)
|
|
154
154
|
return;
|
|
155
|
-
const e =
|
|
155
|
+
const e = ke;
|
|
156
156
|
do {
|
|
157
157
|
try {
|
|
158
158
|
for (; X < W.length; ) {
|
|
159
159
|
const t = W[X];
|
|
160
|
-
X++, ne(t),
|
|
160
|
+
X++, ne(t), ur(t.$$);
|
|
161
161
|
}
|
|
162
162
|
} catch (t) {
|
|
163
163
|
throw W.length = 0, X = 0, t;
|
|
@@ -165,57 +165,57 @@ function j() {
|
|
|
165
165
|
for (ne(null), W.length = 0, X = 0; we.length; ) we.pop()();
|
|
166
166
|
for (let t = 0; t < Z.length; t += 1) {
|
|
167
167
|
const r = Z[t];
|
|
168
|
-
|
|
168
|
+
Pe.has(r) || (Pe.add(r), r());
|
|
169
169
|
}
|
|
170
170
|
Z.length = 0;
|
|
171
171
|
} while (W.length);
|
|
172
|
-
for (;
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
for (; Ye.length; )
|
|
173
|
+
Ye.pop()();
|
|
174
|
+
Ne = !1, Pe.clear(), ne(e);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function ur(e) {
|
|
177
177
|
if (e.fragment !== null) {
|
|
178
178
|
e.update(), oe(e.before_update);
|
|
179
179
|
const t = e.dirty;
|
|
180
180
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function hr(e) {
|
|
184
184
|
const t = [], r = [];
|
|
185
185
|
Z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Z = t;
|
|
186
186
|
}
|
|
187
|
-
const
|
|
188
|
-
function
|
|
189
|
-
e && e.i && (
|
|
187
|
+
const lr = /* @__PURE__ */ new Set();
|
|
188
|
+
function fr(e, t) {
|
|
189
|
+
e && e.i && (lr.delete(e), e.i(t));
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function he(e) {
|
|
192
192
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function cr(e, t, r) {
|
|
195
195
|
const { fragment: n, after_update: i } = e.$$;
|
|
196
196
|
n && n.m(t, r), Le(() => {
|
|
197
|
-
const s = e.$$.on_mount.map(
|
|
197
|
+
const s = e.$$.on_mount.map(vt).filter(je);
|
|
198
198
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : oe(s), e.$$.on_mount = [];
|
|
199
199
|
}), i.forEach(Le);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function pr(e, t) {
|
|
202
202
|
const r = e.$$;
|
|
203
|
-
r.fragment !== null && (
|
|
203
|
+
r.fragment !== null && (hr(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
e.$$.dirty[0] === -1 && (W.push(e),
|
|
205
|
+
function mr(e, t) {
|
|
206
|
+
e.$$.dirty[0] === -1 && (W.push(e), ar(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
const h =
|
|
208
|
+
function dr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
209
|
+
const h = ke;
|
|
210
210
|
ne(e);
|
|
211
211
|
const a = e.$$ = {
|
|
212
212
|
fragment: null,
|
|
213
213
|
ctx: [],
|
|
214
214
|
// state
|
|
215
215
|
props: s,
|
|
216
|
-
update:
|
|
216
|
+
update: $,
|
|
217
217
|
not_equal: i,
|
|
218
|
-
bound:
|
|
218
|
+
bound: qe(),
|
|
219
219
|
// lifecycle
|
|
220
220
|
on_mount: [],
|
|
221
221
|
on_destroy: [],
|
|
@@ -224,7 +224,7 @@ function vr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
224
224
|
after_update: [],
|
|
225
225
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
226
226
|
// everything else
|
|
227
|
-
callbacks:
|
|
227
|
+
callbacks: qe(),
|
|
228
228
|
dirty: u,
|
|
229
229
|
skip_bound: !1,
|
|
230
230
|
root: t.target || h.$$.root
|
|
@@ -233,39 +233,39 @@ function vr(e, t, r, n, i, s, o = null, u = [-1]) {
|
|
|
233
233
|
let l = !1;
|
|
234
234
|
if (a.ctx = r ? r(e, t.props || {}, (c, f, ...g) => {
|
|
235
235
|
const d = g.length ? g[0] : f;
|
|
236
|
-
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), l &&
|
|
236
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = d) && (!a.skip_bound && a.bound[c] && a.bound[c](d), l && mr(e, c)), f;
|
|
237
237
|
}) : [], a.update(), l = !0, oe(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
238
238
|
if (t.hydrate) {
|
|
239
|
-
const c =
|
|
239
|
+
const c = ir(t.target);
|
|
240
240
|
a.fragment && a.fragment.l(c), c.forEach(C);
|
|
241
241
|
} else
|
|
242
242
|
a.fragment && a.fragment.c();
|
|
243
|
-
t.intro &&
|
|
243
|
+
t.intro && fr(e.$$.fragment), cr(e, t.target, t.anchor), D();
|
|
244
244
|
}
|
|
245
245
|
ne(h);
|
|
246
246
|
}
|
|
247
|
-
let
|
|
248
|
-
typeof HTMLElement == "function" && (
|
|
247
|
+
let yt;
|
|
248
|
+
typeof HTMLElement == "function" && (yt = class extends HTMLElement {
|
|
249
249
|
constructor(t, r, n) {
|
|
250
250
|
super();
|
|
251
251
|
/** The Svelte component constructor */
|
|
252
|
-
|
|
252
|
+
I(this, "$$ctor");
|
|
253
253
|
/** Slots */
|
|
254
|
-
|
|
254
|
+
I(this, "$$s");
|
|
255
255
|
/** The Svelte component instance */
|
|
256
|
-
|
|
256
|
+
I(this, "$$c");
|
|
257
257
|
/** Whether or not the custom element is connected */
|
|
258
|
-
|
|
258
|
+
I(this, "$$cn", !1);
|
|
259
259
|
/** Component props data */
|
|
260
|
-
|
|
260
|
+
I(this, "$$d", {});
|
|
261
261
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
262
|
-
|
|
262
|
+
I(this, "$$r", !1);
|
|
263
263
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
264
|
-
|
|
264
|
+
I(this, "$$p_d", {});
|
|
265
265
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
266
|
-
|
|
266
|
+
I(this, "$$l", {});
|
|
267
267
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
268
|
-
|
|
268
|
+
I(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
269
269
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
270
270
|
}
|
|
271
271
|
addEventListener(t, r, n) {
|
|
@@ -282,21 +282,21 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
connectedCallback() {
|
|
285
|
-
return
|
|
285
|
+
return Qe(this, null, function* () {
|
|
286
286
|
if (this.$$cn = !0, !this.$$c) {
|
|
287
287
|
let t = function(s) {
|
|
288
288
|
return () => {
|
|
289
289
|
let o;
|
|
290
290
|
return {
|
|
291
291
|
c: function() {
|
|
292
|
-
o =
|
|
292
|
+
o = A("slot"), s !== "default" && S(o, "name", s);
|
|
293
293
|
},
|
|
294
294
|
/**
|
|
295
295
|
* @param {HTMLElement} target
|
|
296
296
|
* @param {HTMLElement} [anchor]
|
|
297
297
|
*/
|
|
298
298
|
m: function(a, l) {
|
|
299
|
-
|
|
299
|
+
M(a, o, l);
|
|
300
300
|
},
|
|
301
301
|
d: function(a) {
|
|
302
302
|
a && C(o);
|
|
@@ -306,18 +306,18 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
306
306
|
};
|
|
307
307
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
308
308
|
return;
|
|
309
|
-
const r = {}, n =
|
|
309
|
+
const r = {}, n = sr(this);
|
|
310
310
|
for (const s of this.$$s)
|
|
311
311
|
s in n && (r[s] = [t(s)]);
|
|
312
312
|
for (const s of this.attributes) {
|
|
313
313
|
const o = this.$$g_p(s.name);
|
|
314
|
-
o in this.$$d || (this.$$d[o] =
|
|
314
|
+
o in this.$$d || (this.$$d[o] = fe(o, s.value, this.$$p_d, "toProp"));
|
|
315
315
|
}
|
|
316
316
|
for (const s in this.$$p_d)
|
|
317
317
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
318
318
|
this.$$c = new this.$$ctor({
|
|
319
319
|
target: this.shadowRoot || this,
|
|
320
|
-
props:
|
|
320
|
+
props: Ze(We({}, this.$$d), {
|
|
321
321
|
$$slots: r,
|
|
322
322
|
$$scope: {
|
|
323
323
|
ctx: []
|
|
@@ -328,7 +328,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
328
328
|
this.$$r = !0;
|
|
329
329
|
for (const s in this.$$p_d)
|
|
330
330
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
331
|
-
const o =
|
|
331
|
+
const o = fe(
|
|
332
332
|
s,
|
|
333
333
|
this.$$d[s],
|
|
334
334
|
this.$$p_d,
|
|
@@ -352,7 +352,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
352
352
|
// and setting attributes through setAttribute etc, this is helpful
|
|
353
353
|
attributeChangedCallback(t, r, n) {
|
|
354
354
|
var i;
|
|
355
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
355
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = fe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
356
356
|
}
|
|
357
357
|
disconnectedCallback() {
|
|
358
358
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -365,7 +365,7 @@ typeof HTMLElement == "function" && (Tt = class extends HTMLElement {
|
|
|
365
365
|
) || t;
|
|
366
366
|
}
|
|
367
367
|
});
|
|
368
|
-
function
|
|
368
|
+
function fe(e, t, r, n) {
|
|
369
369
|
var s;
|
|
370
370
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
371
371
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -395,8 +395,8 @@ function ce(e, t, r, n) {
|
|
|
395
395
|
return t;
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
function
|
|
399
|
-
let o = class extends
|
|
398
|
+
function gr(e, t, r, n, i, s) {
|
|
399
|
+
let o = class extends yt {
|
|
400
400
|
constructor() {
|
|
401
401
|
super(e, r, i), this.$$p_d = t;
|
|
402
402
|
}
|
|
@@ -413,7 +413,7 @@ function Er(e, t, r, n, i, s) {
|
|
|
413
413
|
},
|
|
414
414
|
set(h) {
|
|
415
415
|
var a;
|
|
416
|
-
h =
|
|
416
|
+
h = fe(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
|
|
417
417
|
}
|
|
418
418
|
});
|
|
419
419
|
}), n.forEach((u) => {
|
|
@@ -426,7 +426,7 @@ function Er(e, t, r, n, i, s) {
|
|
|
426
426
|
}), e.element = /** @type {any} */
|
|
427
427
|
o, o;
|
|
428
428
|
}
|
|
429
|
-
class
|
|
429
|
+
class br {
|
|
430
430
|
constructor() {
|
|
431
431
|
/**
|
|
432
432
|
* ### PRIVATE API
|
|
@@ -435,7 +435,7 @@ class _r {
|
|
|
435
435
|
*
|
|
436
436
|
* @type {any}
|
|
437
437
|
*/
|
|
438
|
-
|
|
438
|
+
I(this, "$$");
|
|
439
439
|
/**
|
|
440
440
|
* ### PRIVATE API
|
|
441
441
|
*
|
|
@@ -443,11 +443,11 @@ class _r {
|
|
|
443
443
|
*
|
|
444
444
|
* @type {any}
|
|
445
445
|
*/
|
|
446
|
-
|
|
446
|
+
I(this, "$$set");
|
|
447
447
|
}
|
|
448
448
|
/** @returns {void} */
|
|
449
449
|
$destroy() {
|
|
450
|
-
|
|
450
|
+
pr(this, 1), this.$destroy = $;
|
|
451
451
|
}
|
|
452
452
|
/**
|
|
453
453
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -456,8 +456,8 @@ class _r {
|
|
|
456
456
|
* @returns {() => void}
|
|
457
457
|
*/
|
|
458
458
|
$on(t, r) {
|
|
459
|
-
if (!
|
|
460
|
-
return
|
|
459
|
+
if (!je(r))
|
|
460
|
+
return $;
|
|
461
461
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
462
462
|
return n.push(r), () => {
|
|
463
463
|
const i = n.indexOf(r);
|
|
@@ -469,12 +469,12 @@ class _r {
|
|
|
469
469
|
* @returns {void}
|
|
470
470
|
*/
|
|
471
471
|
$set(t) {
|
|
472
|
-
this.$$set && !
|
|
472
|
+
this.$$set && !Yt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
const
|
|
476
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
477
|
-
const
|
|
475
|
+
const vr = "4";
|
|
476
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(vr);
|
|
477
|
+
const Ke = {
|
|
478
478
|
en: {
|
|
479
479
|
popularProviders: "Popular Suppliers",
|
|
480
480
|
otherProviders: "Other Suppliers",
|
|
@@ -584,16 +584,16 @@ const rt = {
|
|
|
584
584
|
games: "games"
|
|
585
585
|
}
|
|
586
586
|
}, z = [];
|
|
587
|
-
function
|
|
587
|
+
function Er(e, t) {
|
|
588
588
|
return {
|
|
589
|
-
subscribe:
|
|
589
|
+
subscribe: be(e, t).subscribe
|
|
590
590
|
};
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function be(e, t = $) {
|
|
593
593
|
let r;
|
|
594
594
|
const n = /* @__PURE__ */ new Set();
|
|
595
595
|
function i(u) {
|
|
596
|
-
if (
|
|
596
|
+
if (Et(e, u) && (e = u, r)) {
|
|
597
597
|
const h = !z.length;
|
|
598
598
|
for (const a of n)
|
|
599
599
|
a[1](), z.push(a, e);
|
|
@@ -607,9 +607,9 @@ function ve(e, t = R) {
|
|
|
607
607
|
function s(u) {
|
|
608
608
|
i(u(e));
|
|
609
609
|
}
|
|
610
|
-
function o(u, h =
|
|
610
|
+
function o(u, h = $) {
|
|
611
611
|
const a = [u, h];
|
|
612
|
-
return n.add(a), n.size === 1 && (r = t(i, s) ||
|
|
612
|
+
return n.add(a), n.size === 1 && (r = t(i, s) || $), u(e), () => {
|
|
613
613
|
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
614
614
|
};
|
|
615
615
|
}
|
|
@@ -620,18 +620,18 @@ function K(e, t, r) {
|
|
|
620
620
|
if (!i.every(Boolean))
|
|
621
621
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
622
622
|
const s = t.length < 2;
|
|
623
|
-
return
|
|
623
|
+
return Er(r, (o, u) => {
|
|
624
624
|
let h = !1;
|
|
625
625
|
const a = [];
|
|
626
|
-
let l = 0, c =
|
|
626
|
+
let l = 0, c = $;
|
|
627
627
|
const f = () => {
|
|
628
628
|
if (l)
|
|
629
629
|
return;
|
|
630
630
|
c();
|
|
631
631
|
const d = t(n ? a[0] : a, o, u);
|
|
632
|
-
s ? o(d) : c =
|
|
632
|
+
s ? o(d) : c = je(d) ? d : $;
|
|
633
633
|
}, g = i.map(
|
|
634
|
-
(d, p) =>
|
|
634
|
+
(d, p) => _t(
|
|
635
635
|
d,
|
|
636
636
|
(v) => {
|
|
637
637
|
a[p] = v, l &= ~(1 << p), h && f();
|
|
@@ -646,70 +646,70 @@ function K(e, t, r) {
|
|
|
646
646
|
};
|
|
647
647
|
});
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function _r(e) {
|
|
650
650
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
651
651
|
}
|
|
652
|
-
var
|
|
653
|
-
return
|
|
652
|
+
var xr = function(t) {
|
|
653
|
+
return yr(t) && !Pr(t);
|
|
654
654
|
};
|
|
655
|
-
function
|
|
655
|
+
function yr(e) {
|
|
656
656
|
return !!e && typeof e == "object";
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function Pr(e) {
|
|
659
659
|
var t = Object.prototype.toString.call(e);
|
|
660
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
660
|
+
return t === "[object RegExp]" || t === "[object Date]" || Sr(e);
|
|
661
661
|
}
|
|
662
|
-
var
|
|
663
|
-
function
|
|
664
|
-
return e.$$typeof ===
|
|
662
|
+
var Hr = typeof Symbol == "function" && Symbol.for, Tr = Hr ? Symbol.for("react.element") : 60103;
|
|
663
|
+
function Sr(e) {
|
|
664
|
+
return e.$$typeof === Tr;
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function Br(e) {
|
|
667
667
|
return Array.isArray(e) ? [] : {};
|
|
668
668
|
}
|
|
669
669
|
function ie(e, t) {
|
|
670
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Q(
|
|
670
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Q(Br(e), e, t) : e;
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function Ar(e, t, r) {
|
|
673
673
|
return e.concat(t).map(function(n) {
|
|
674
674
|
return ie(n, r);
|
|
675
675
|
});
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function Or(e, t) {
|
|
678
678
|
if (!t.customMerge)
|
|
679
679
|
return Q;
|
|
680
680
|
var r = t.customMerge(e);
|
|
681
681
|
return typeof r == "function" ? r : Q;
|
|
682
682
|
}
|
|
683
|
-
function
|
|
683
|
+
function wr(e) {
|
|
684
684
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
685
685
|
return Object.propertyIsEnumerable.call(e, t);
|
|
686
686
|
}) : [];
|
|
687
687
|
}
|
|
688
|
-
function
|
|
689
|
-
return Object.keys(e).concat(
|
|
688
|
+
function et(e) {
|
|
689
|
+
return Object.keys(e).concat(wr(e));
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function Pt(e, t) {
|
|
692
692
|
try {
|
|
693
693
|
return t in e;
|
|
694
694
|
} catch (r) {
|
|
695
695
|
return !1;
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
|
-
function
|
|
699
|
-
return
|
|
698
|
+
function Nr(e, t) {
|
|
699
|
+
return Pt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
700
700
|
}
|
|
701
|
-
function
|
|
701
|
+
function Lr(e, t, r) {
|
|
702
702
|
var n = {};
|
|
703
|
-
return r.isMergeableObject(e) &&
|
|
703
|
+
return r.isMergeableObject(e) && et(e).forEach(function(i) {
|
|
704
704
|
n[i] = ie(e[i], r);
|
|
705
|
-
}),
|
|
706
|
-
|
|
705
|
+
}), et(t).forEach(function(i) {
|
|
706
|
+
Nr(e, i) || (Pt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Or(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
707
707
|
}), n;
|
|
708
708
|
}
|
|
709
709
|
function Q(e, t, r) {
|
|
710
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
710
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Ar, r.isMergeableObject = r.isMergeableObject || xr, r.cloneUnlessOtherwiseSpecified = ie;
|
|
711
711
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
712
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
712
|
+
return s ? n ? r.arrayMerge(e, t, r) : Lr(e, t, r) : ie(t, r);
|
|
713
713
|
}
|
|
714
714
|
Q.all = function(t, r) {
|
|
715
715
|
if (!Array.isArray(t))
|
|
@@ -718,19 +718,19 @@ Q.all = function(t, r) {
|
|
|
718
718
|
return Q(n, i, r);
|
|
719
719
|
}, {});
|
|
720
720
|
};
|
|
721
|
-
var
|
|
722
|
-
const
|
|
723
|
-
var
|
|
724
|
-
return
|
|
721
|
+
var Ir = Q, Cr = Ir;
|
|
722
|
+
const Mr = /* @__PURE__ */ _r(Cr);
|
|
723
|
+
var Ie = function(e, t) {
|
|
724
|
+
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
725
725
|
r.__proto__ = n;
|
|
726
726
|
} || function(r, n) {
|
|
727
727
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
728
|
-
},
|
|
728
|
+
}, Ie(e, t);
|
|
729
729
|
};
|
|
730
|
-
function
|
|
730
|
+
function ve(e, t) {
|
|
731
731
|
if (typeof t != "function" && t !== null)
|
|
732
732
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
733
|
-
|
|
733
|
+
Ie(e, t);
|
|
734
734
|
function r() {
|
|
735
735
|
this.constructor = e;
|
|
736
736
|
}
|
|
@@ -745,7 +745,7 @@ var x = function() {
|
|
|
745
745
|
return t;
|
|
746
746
|
}, x.apply(this, arguments);
|
|
747
747
|
};
|
|
748
|
-
function
|
|
748
|
+
function $r(e, t) {
|
|
749
749
|
var r = {};
|
|
750
750
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
751
751
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -753,61 +753,59 @@ function Gr(e, t) {
|
|
|
753
753
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
754
754
|
return r;
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function He(e, t, r) {
|
|
757
757
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
758
758
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
759
759
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
760
760
|
}
|
|
761
|
-
function
|
|
762
|
-
var r = t && t.cache ? t.cache :
|
|
761
|
+
function Te(e, t) {
|
|
762
|
+
var r = t && t.cache ? t.cache : kr, n = t && t.serializer ? t.serializer : Fr, i = t && t.strategy ? t.strategy : Gr;
|
|
763
763
|
return i(e, {
|
|
764
764
|
cache: r,
|
|
765
765
|
serializer: n
|
|
766
766
|
});
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function Rr(e) {
|
|
769
769
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
770
770
|
}
|
|
771
|
-
function
|
|
772
|
-
var i =
|
|
771
|
+
function Ur(e, t, r, n) {
|
|
772
|
+
var i = Rr(n) ? n : r(n), s = t.get(i);
|
|
773
773
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function Ht(e, t, r) {
|
|
776
776
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
777
777
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
778
778
|
}
|
|
779
|
-
function
|
|
779
|
+
function Tt(e, t, r, n, i) {
|
|
780
780
|
return r.bind(t, e, n, i);
|
|
781
781
|
}
|
|
782
|
-
function
|
|
783
|
-
var r = e.length === 1 ?
|
|
784
|
-
return
|
|
785
|
-
}
|
|
786
|
-
function jr(e, t) {
|
|
787
|
-
return Xe(e, this, Bt, t.cache.create(), t.serializer);
|
|
782
|
+
function Gr(e, t) {
|
|
783
|
+
var r = e.length === 1 ? Ur : Ht;
|
|
784
|
+
return Tt(e, this, r, t.cache.create(), t.serializer);
|
|
788
785
|
}
|
|
789
|
-
function
|
|
790
|
-
return
|
|
786
|
+
function Dr(e, t) {
|
|
787
|
+
return Tt(e, this, Ht, t.cache.create(), t.serializer);
|
|
791
788
|
}
|
|
792
|
-
var
|
|
789
|
+
var Fr = function() {
|
|
793
790
|
return JSON.stringify(arguments);
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
791
|
+
}, jr = (
|
|
792
|
+
/** @class */
|
|
793
|
+
function() {
|
|
794
|
+
function e() {
|
|
795
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
796
|
+
}
|
|
797
|
+
return e.prototype.get = function(t) {
|
|
798
|
+
return this.cache[t];
|
|
799
|
+
}, e.prototype.set = function(t, r) {
|
|
800
|
+
this.cache[t] = r;
|
|
801
|
+
}, e;
|
|
802
|
+
}()
|
|
803
|
+
), kr = {
|
|
805
804
|
create: function() {
|
|
806
|
-
return new
|
|
805
|
+
return new jr();
|
|
807
806
|
}
|
|
808
|
-
},
|
|
809
|
-
variadic:
|
|
810
|
-
monadic: kr
|
|
807
|
+
}, Se = {
|
|
808
|
+
variadic: Dr
|
|
811
809
|
}, E;
|
|
812
810
|
(function(e) {
|
|
813
811
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
@@ -816,47 +814,47 @@ var P;
|
|
|
816
814
|
(function(e) {
|
|
817
815
|
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";
|
|
818
816
|
})(P || (P = {}));
|
|
819
|
-
var
|
|
817
|
+
var q;
|
|
820
818
|
(function(e) {
|
|
821
819
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
822
|
-
})(
|
|
823
|
-
function
|
|
820
|
+
})(q || (q = {}));
|
|
821
|
+
function tt(e) {
|
|
824
822
|
return e.type === P.literal;
|
|
825
823
|
}
|
|
826
|
-
function
|
|
824
|
+
function Vr(e) {
|
|
827
825
|
return e.type === P.argument;
|
|
828
826
|
}
|
|
829
|
-
function
|
|
827
|
+
function St(e) {
|
|
830
828
|
return e.type === P.number;
|
|
831
829
|
}
|
|
832
|
-
function
|
|
830
|
+
function Bt(e) {
|
|
833
831
|
return e.type === P.date;
|
|
834
832
|
}
|
|
835
|
-
function
|
|
833
|
+
function At(e) {
|
|
836
834
|
return e.type === P.time;
|
|
837
835
|
}
|
|
838
|
-
function
|
|
836
|
+
function Ot(e) {
|
|
839
837
|
return e.type === P.select;
|
|
840
838
|
}
|
|
841
|
-
function
|
|
839
|
+
function wt(e) {
|
|
842
840
|
return e.type === P.plural;
|
|
843
841
|
}
|
|
844
|
-
function
|
|
842
|
+
function Xr(e) {
|
|
845
843
|
return e.type === P.pound;
|
|
846
844
|
}
|
|
847
|
-
function
|
|
845
|
+
function Nt(e) {
|
|
848
846
|
return e.type === P.tag;
|
|
849
847
|
}
|
|
850
|
-
function
|
|
851
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
848
|
+
function Lt(e) {
|
|
849
|
+
return !!(e && typeof e == "object" && e.type === q.number);
|
|
852
850
|
}
|
|
853
|
-
function
|
|
854
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
851
|
+
function Ce(e) {
|
|
852
|
+
return !!(e && typeof e == "object" && e.type === q.dateTime);
|
|
855
853
|
}
|
|
856
|
-
var
|
|
857
|
-
function
|
|
854
|
+
var It = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, zr = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
855
|
+
function Wr(e) {
|
|
858
856
|
var t = {};
|
|
859
|
-
return e.replace(
|
|
857
|
+
return e.replace(zr, function(r) {
|
|
860
858
|
var n = r.length;
|
|
861
859
|
switch (r[0]) {
|
|
862
860
|
case "G":
|
|
@@ -945,11 +943,11 @@ function Qr(e) {
|
|
|
945
943
|
return "";
|
|
946
944
|
}), t;
|
|
947
945
|
}
|
|
948
|
-
var
|
|
949
|
-
function
|
|
946
|
+
var Zr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
947
|
+
function Qr(e) {
|
|
950
948
|
if (e.length === 0)
|
|
951
949
|
throw new Error("Number skeleton cannot be empty");
|
|
952
|
-
for (var t = e.split(
|
|
950
|
+
for (var t = e.split(Zr).filter(function(f) {
|
|
953
951
|
return f.length > 0;
|
|
954
952
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
955
953
|
var s = i[n], o = s.split("/");
|
|
@@ -964,17 +962,17 @@ function qr(e) {
|
|
|
964
962
|
}
|
|
965
963
|
return r;
|
|
966
964
|
}
|
|
967
|
-
function
|
|
965
|
+
function qr(e) {
|
|
968
966
|
return e.replace(/^(.*?)-/, "");
|
|
969
967
|
}
|
|
970
|
-
var
|
|
971
|
-
function
|
|
968
|
+
var rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ct = /^(@+)?(\+|#+)?[rs]?$/g, Jr = /(\*)(0+)|(#+)(0+)|(0+)/g, Mt = /^(0+)$/;
|
|
969
|
+
function nt(e) {
|
|
972
970
|
var t = {};
|
|
973
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
971
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ct, function(r, n, i) {
|
|
974
972
|
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)), "";
|
|
975
973
|
}), t;
|
|
976
974
|
}
|
|
977
|
-
function
|
|
975
|
+
function $t(e) {
|
|
978
976
|
switch (e) {
|
|
979
977
|
case "sign-auto":
|
|
980
978
|
return {
|
|
@@ -1014,7 +1012,7 @@ function Gt(e) {
|
|
|
1014
1012
|
};
|
|
1015
1013
|
}
|
|
1016
1014
|
}
|
|
1017
|
-
function
|
|
1015
|
+
function Yr(e) {
|
|
1018
1016
|
var t;
|
|
1019
1017
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1020
1018
|
notation: "engineering"
|
|
@@ -1022,17 +1020,17 @@ function en(e) {
|
|
|
1022
1020
|
notation: "scientific"
|
|
1023
1021
|
}, e = e.slice(1)), t) {
|
|
1024
1022
|
var r = e.slice(0, 2);
|
|
1025
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1023
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Mt.test(e))
|
|
1026
1024
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1027
1025
|
t.minimumIntegerDigits = e.length;
|
|
1028
1026
|
}
|
|
1029
1027
|
return t;
|
|
1030
1028
|
}
|
|
1031
|
-
function
|
|
1032
|
-
var t = {}, r =
|
|
1029
|
+
function it(e) {
|
|
1030
|
+
var t = {}, r = $t(e);
|
|
1033
1031
|
return r || t;
|
|
1034
1032
|
}
|
|
1035
|
-
function
|
|
1033
|
+
function Kr(e) {
|
|
1036
1034
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1037
1035
|
var i = n[r];
|
|
1038
1036
|
switch (i.stem) {
|
|
@@ -1056,7 +1054,7 @@ function tn(e) {
|
|
|
1056
1054
|
continue;
|
|
1057
1055
|
case "measure-unit":
|
|
1058
1056
|
case "unit":
|
|
1059
|
-
t.style = "unit", t.unit =
|
|
1057
|
+
t.style = "unit", t.unit = qr(i.options[0]);
|
|
1060
1058
|
continue;
|
|
1061
1059
|
case "compact-short":
|
|
1062
1060
|
case "K":
|
|
@@ -1068,12 +1066,12 @@ function tn(e) {
|
|
|
1068
1066
|
continue;
|
|
1069
1067
|
case "scientific":
|
|
1070
1068
|
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, a) {
|
|
1071
|
-
return x(x({}, h),
|
|
1069
|
+
return x(x({}, h), it(a));
|
|
1072
1070
|
}, {}));
|
|
1073
1071
|
continue;
|
|
1074
1072
|
case "engineering":
|
|
1075
1073
|
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, a) {
|
|
1076
|
-
return x(x({}, h),
|
|
1074
|
+
return x(x({}, h), it(a));
|
|
1077
1075
|
}, {}));
|
|
1078
1076
|
continue;
|
|
1079
1077
|
case "notation-simple":
|
|
@@ -1118,7 +1116,7 @@ function tn(e) {
|
|
|
1118
1116
|
case "integer-width":
|
|
1119
1117
|
if (i.options.length > 1)
|
|
1120
1118
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1121
|
-
i.options[0].replace(
|
|
1119
|
+
i.options[0].replace(Jr, function(h, a, l, c, f, g) {
|
|
1122
1120
|
if (a)
|
|
1123
1121
|
t.minimumIntegerDigits = l.length;
|
|
1124
1122
|
else {
|
|
@@ -1131,32 +1129,32 @@ function tn(e) {
|
|
|
1131
1129
|
});
|
|
1132
1130
|
continue;
|
|
1133
1131
|
}
|
|
1134
|
-
if (
|
|
1132
|
+
if (Mt.test(i.stem)) {
|
|
1135
1133
|
t.minimumIntegerDigits = i.stem.length;
|
|
1136
1134
|
continue;
|
|
1137
1135
|
}
|
|
1138
|
-
if (
|
|
1136
|
+
if (rt.test(i.stem)) {
|
|
1139
1137
|
if (i.options.length > 1)
|
|
1140
1138
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1141
|
-
i.stem.replace(
|
|
1139
|
+
i.stem.replace(rt, function(h, a, l, c, f, g) {
|
|
1142
1140
|
return l === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && g ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + g.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1143
1141
|
});
|
|
1144
1142
|
var s = i.options[0];
|
|
1145
|
-
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t),
|
|
1143
|
+
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), nt(s)));
|
|
1146
1144
|
continue;
|
|
1147
1145
|
}
|
|
1148
|
-
if (
|
|
1149
|
-
t = x(x({}, t),
|
|
1146
|
+
if (Ct.test(i.stem)) {
|
|
1147
|
+
t = x(x({}, t), nt(i.stem));
|
|
1150
1148
|
continue;
|
|
1151
1149
|
}
|
|
1152
|
-
var o =
|
|
1150
|
+
var o = $t(i.stem);
|
|
1153
1151
|
o && (t = x(x({}, t), o));
|
|
1154
|
-
var u =
|
|
1152
|
+
var u = Yr(i.stem);
|
|
1155
1153
|
u && (t = x(x({}, t), u));
|
|
1156
1154
|
}
|
|
1157
1155
|
return t;
|
|
1158
1156
|
}
|
|
1159
|
-
var
|
|
1157
|
+
var le = {
|
|
1160
1158
|
"001": [
|
|
1161
1159
|
"H",
|
|
1162
1160
|
"h"
|
|
@@ -2571,13 +2569,13 @@ var fe = {
|
|
|
2571
2569
|
"h"
|
|
2572
2570
|
]
|
|
2573
2571
|
};
|
|
2574
|
-
function
|
|
2572
|
+
function en(e, t) {
|
|
2575
2573
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2576
2574
|
var i = e.charAt(n);
|
|
2577
2575
|
if (i === "j") {
|
|
2578
2576
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2579
2577
|
s++, n++;
|
|
2580
|
-
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a =
|
|
2578
|
+
var o = 1 + (s & 1), u = s < 2 ? 1 : 3 + (s >> 1), h = "a", a = tn(t);
|
|
2581
2579
|
for ((a == "H" || a == "k") && (u = 0); u-- > 0; )
|
|
2582
2580
|
r += h;
|
|
2583
2581
|
for (; o-- > 0; )
|
|
@@ -2586,7 +2584,7 @@ function rn(e, t) {
|
|
|
2586
2584
|
}
|
|
2587
2585
|
return r;
|
|
2588
2586
|
}
|
|
2589
|
-
function
|
|
2587
|
+
function tn(e) {
|
|
2590
2588
|
var t = e.hourCycle;
|
|
2591
2589
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2592
2590
|
e.hourCycles && // @ts-ignore
|
|
@@ -2605,23 +2603,23 @@ function nn(e) {
|
|
|
2605
2603
|
}
|
|
2606
2604
|
var r = e.language, n;
|
|
2607
2605
|
r !== "root" && (n = e.maximize().region);
|
|
2608
|
-
var i =
|
|
2606
|
+
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
2609
2607
|
return i[0];
|
|
2610
2608
|
}
|
|
2611
|
-
var Be,
|
|
2609
|
+
var Be, rn = new RegExp("^".concat(It.source, "*")), nn = new RegExp("".concat(It.source, "*$"));
|
|
2612
2610
|
function _(e, t) {
|
|
2613
2611
|
return { start: e, end: t };
|
|
2614
2612
|
}
|
|
2615
|
-
var
|
|
2613
|
+
var sn = !!String.prototype.startsWith && "_a".startsWith("a", 1), on = !!String.fromCodePoint, an = !!Object.fromEntries, un = !!String.prototype.codePointAt, hn = !!String.prototype.trimStart, ln = !!String.prototype.trimEnd, fn = !!Number.isSafeInteger, cn = fn ? Number.isSafeInteger : function(e) {
|
|
2616
2614
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2617
|
-
},
|
|
2615
|
+
}, Me = !0;
|
|
2618
2616
|
try {
|
|
2619
|
-
var
|
|
2620
|
-
|
|
2617
|
+
var pn = Ut("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2618
|
+
Me = ((Be = pn.exec("a")) === null || Be === void 0 ? void 0 : Be[0]) === "a";
|
|
2621
2619
|
} catch (e) {
|
|
2622
|
-
|
|
2620
|
+
Me = !1;
|
|
2623
2621
|
}
|
|
2624
|
-
var
|
|
2622
|
+
var st = sn ? (
|
|
2625
2623
|
// Native
|
|
2626
2624
|
function(t, r, n) {
|
|
2627
2625
|
return t.startsWith(r, n);
|
|
@@ -2631,7 +2629,7 @@ var ut = an ? (
|
|
|
2631
2629
|
function(t, r, n) {
|
|
2632
2630
|
return t.slice(n, n + r.length) === r;
|
|
2633
2631
|
}
|
|
2634
|
-
),
|
|
2632
|
+
), $e = on ? String.fromCodePoint : (
|
|
2635
2633
|
// IE11
|
|
2636
2634
|
function() {
|
|
2637
2635
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2643,9 +2641,9 @@ var ut = an ? (
|
|
|
2643
2641
|
}
|
|
2644
2642
|
return n;
|
|
2645
2643
|
}
|
|
2646
|
-
),
|
|
2644
|
+
), ot = (
|
|
2647
2645
|
// native
|
|
2648
|
-
|
|
2646
|
+
an ? Object.fromEntries : (
|
|
2649
2647
|
// Ponyfill
|
|
2650
2648
|
function(t) {
|
|
2651
2649
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2655,7 +2653,7 @@ var ut = an ? (
|
|
|
2655
2653
|
return r;
|
|
2656
2654
|
}
|
|
2657
2655
|
)
|
|
2658
|
-
),
|
|
2656
|
+
), Rt = un ? (
|
|
2659
2657
|
// Native
|
|
2660
2658
|
function(t, r) {
|
|
2661
2659
|
return t.codePointAt(r);
|
|
@@ -2669,7 +2667,7 @@ var ut = an ? (
|
|
|
2669
2667
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2670
2668
|
}
|
|
2671
2669
|
}
|
|
2672
|
-
),
|
|
2670
|
+
), mn = hn ? (
|
|
2673
2671
|
// Native
|
|
2674
2672
|
function(t) {
|
|
2675
2673
|
return t.trimStart();
|
|
@@ -2677,9 +2675,9 @@ var ut = an ? (
|
|
|
2677
2675
|
) : (
|
|
2678
2676
|
// Ponyfill
|
|
2679
2677
|
function(t) {
|
|
2680
|
-
return t.replace(
|
|
2678
|
+
return t.replace(rn, "");
|
|
2681
2679
|
}
|
|
2682
|
-
),
|
|
2680
|
+
), dn = ln ? (
|
|
2683
2681
|
// Native
|
|
2684
2682
|
function(t) {
|
|
2685
2683
|
return t.trimEnd();
|
|
@@ -2687,32 +2685,32 @@ var ut = an ? (
|
|
|
2687
2685
|
) : (
|
|
2688
2686
|
// Ponyfill
|
|
2689
2687
|
function(t) {
|
|
2690
|
-
return t.replace(
|
|
2688
|
+
return t.replace(nn, "");
|
|
2691
2689
|
}
|
|
2692
2690
|
);
|
|
2693
|
-
function
|
|
2691
|
+
function Ut(e, t) {
|
|
2694
2692
|
return new RegExp(e, t);
|
|
2695
2693
|
}
|
|
2696
|
-
var
|
|
2697
|
-
if (
|
|
2698
|
-
var
|
|
2699
|
-
|
|
2694
|
+
var Re;
|
|
2695
|
+
if (Me) {
|
|
2696
|
+
var at = Ut("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2697
|
+
Re = function(t, r) {
|
|
2700
2698
|
var n;
|
|
2701
|
-
|
|
2702
|
-
var i =
|
|
2699
|
+
at.lastIndex = r;
|
|
2700
|
+
var i = at.exec(t);
|
|
2703
2701
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2704
2702
|
};
|
|
2705
2703
|
} else
|
|
2706
|
-
|
|
2704
|
+
Re = function(t, r) {
|
|
2707
2705
|
for (var n = []; ; ) {
|
|
2708
|
-
var i =
|
|
2709
|
-
if (i === void 0 ||
|
|
2706
|
+
var i = Rt(t, r);
|
|
2707
|
+
if (i === void 0 || Gt(i) || En(i))
|
|
2710
2708
|
break;
|
|
2711
2709
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2712
2710
|
}
|
|
2713
|
-
return
|
|
2711
|
+
return $e.apply(void 0, n);
|
|
2714
2712
|
};
|
|
2715
|
-
var
|
|
2713
|
+
var gn = (
|
|
2716
2714
|
/** @class */
|
|
2717
2715
|
function() {
|
|
2718
2716
|
function e(t, r) {
|
|
@@ -2743,7 +2741,7 @@ var vn = (
|
|
|
2743
2741
|
if (n)
|
|
2744
2742
|
break;
|
|
2745
2743
|
return this.error(E.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
|
|
2746
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2744
|
+
} else if (s === 60 && !this.ignoreTag && Ue(this.peek() || 0)) {
|
|
2747
2745
|
var o = this.parseTag(t, r);
|
|
2748
2746
|
if (o.err)
|
|
2749
2747
|
return o;
|
|
@@ -2776,7 +2774,7 @@ var vn = (
|
|
|
2776
2774
|
return s;
|
|
2777
2775
|
var o = s.val, u = this.clonePosition();
|
|
2778
2776
|
if (this.bumpIf("</")) {
|
|
2779
|
-
if (this.isEOF() || !
|
|
2777
|
+
if (this.isEOF() || !Ue(this.char()))
|
|
2780
2778
|
return this.error(E.INVALID_TAG, _(u, this.clonePosition()));
|
|
2781
2779
|
var h = this.clonePosition(), a = this.parseTagName();
|
|
2782
2780
|
return i !== a ? this.error(E.UNMATCHED_CLOSING_TAG, _(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -2794,7 +2792,7 @@ var vn = (
|
|
|
2794
2792
|
return this.error(E.INVALID_TAG, _(n, this.clonePosition()));
|
|
2795
2793
|
}, e.prototype.parseTagName = function() {
|
|
2796
2794
|
var t = this.offset();
|
|
2797
|
-
for (this.bump(); !this.isEOF() &&
|
|
2795
|
+
for (this.bump(); !this.isEOF() && vn(this.char()); )
|
|
2798
2796
|
this.bump();
|
|
2799
2797
|
return this.message.slice(t, this.offset());
|
|
2800
2798
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2823,7 +2821,7 @@ var vn = (
|
|
|
2823
2821
|
};
|
|
2824
2822
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2825
2823
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2826
|
-
!
|
|
2824
|
+
!bn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2827
2825
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2828
2826
|
if (this.isEOF() || this.char() !== 39)
|
|
2829
2827
|
return null;
|
|
@@ -2857,12 +2855,12 @@ var vn = (
|
|
|
2857
2855
|
r.push(n);
|
|
2858
2856
|
this.bump();
|
|
2859
2857
|
}
|
|
2860
|
-
return
|
|
2858
|
+
return $e.apply(void 0, r);
|
|
2861
2859
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2862
2860
|
if (this.isEOF())
|
|
2863
2861
|
return null;
|
|
2864
2862
|
var n = this.char();
|
|
2865
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2863
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), $e(n));
|
|
2866
2864
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2867
2865
|
var n = this.clonePosition();
|
|
2868
2866
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2891,7 +2889,7 @@ var vn = (
|
|
|
2891
2889
|
return this.error(E.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
|
|
2892
2890
|
}
|
|
2893
2891
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2894
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2892
|
+
var t = this.clonePosition(), r = this.offset(), n = Re(this.message, r), i = r + n.length;
|
|
2895
2893
|
this.bumpTo(i);
|
|
2896
2894
|
var s = this.clonePosition(), o = _(t, s);
|
|
2897
2895
|
return { value: n, location: o };
|
|
@@ -2910,7 +2908,7 @@ var vn = (
|
|
|
2910
2908
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2911
2909
|
if (c.err)
|
|
2912
2910
|
return c;
|
|
2913
|
-
var f =
|
|
2911
|
+
var f = dn(c.val);
|
|
2914
2912
|
if (f.length === 0)
|
|
2915
2913
|
return this.error(E.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
|
|
2916
2914
|
var g = _(l, this.clonePosition());
|
|
@@ -2920,8 +2918,8 @@ var vn = (
|
|
|
2920
2918
|
if (d.err)
|
|
2921
2919
|
return d;
|
|
2922
2920
|
var p = _(i, this.clonePosition());
|
|
2923
|
-
if (a &&
|
|
2924
|
-
var v =
|
|
2921
|
+
if (a && st(a == null ? void 0 : a.style, "::", 0)) {
|
|
2922
|
+
var v = mn(a.style.slice(2));
|
|
2925
2923
|
if (u === "number") {
|
|
2926
2924
|
var c = this.parseNumberSkeletonFromString(v, a.styleLocation);
|
|
2927
2925
|
return c.err ? c : {
|
|
@@ -2932,15 +2930,15 @@ var vn = (
|
|
|
2932
2930
|
if (v.length === 0)
|
|
2933
2931
|
return this.error(E.EXPECT_DATE_TIME_SKELETON, p);
|
|
2934
2932
|
var m = v;
|
|
2935
|
-
this.locale && (m =
|
|
2933
|
+
this.locale && (m = en(v, this.locale));
|
|
2936
2934
|
var f = {
|
|
2937
|
-
type:
|
|
2935
|
+
type: q.dateTime,
|
|
2938
2936
|
pattern: m,
|
|
2939
2937
|
location: a.styleLocation,
|
|
2940
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2941
|
-
},
|
|
2938
|
+
parsedOptions: this.shouldParseSkeletons ? Wr(m) : {}
|
|
2939
|
+
}, H = u === "date" ? P.date : P.time;
|
|
2942
2940
|
return {
|
|
2943
|
-
val: { type:
|
|
2941
|
+
val: { type: H, value: n, location: p, style: f },
|
|
2944
2942
|
err: null
|
|
2945
2943
|
};
|
|
2946
2944
|
}
|
|
@@ -2958,11 +2956,11 @@ var vn = (
|
|
|
2958
2956
|
case "plural":
|
|
2959
2957
|
case "selectordinal":
|
|
2960
2958
|
case "select": {
|
|
2961
|
-
var
|
|
2959
|
+
var B = this.clonePosition();
|
|
2962
2960
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2963
|
-
return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, _(
|
|
2961
|
+
return this.error(E.EXPECT_SELECT_ARGUMENT_OPTIONS, _(B, x({}, B)));
|
|
2964
2962
|
this.bumpSpace();
|
|
2965
|
-
var O = this.parseIdentifierIfPossible(),
|
|
2963
|
+
var O = this.parseIdentifierIfPossible(), T = 0;
|
|
2966
2964
|
if (u !== "select" && O.value === "offset") {
|
|
2967
2965
|
if (!this.bumpIf(":"))
|
|
2968
2966
|
return this.error(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
|
|
@@ -2970,31 +2968,31 @@ var vn = (
|
|
|
2970
2968
|
var c = this.tryParseDecimalInteger(E.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2971
2969
|
if (c.err)
|
|
2972
2970
|
return c;
|
|
2973
|
-
this.bumpSpace(), O = this.parseIdentifierIfPossible(),
|
|
2971
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), T = c.val;
|
|
2974
2972
|
}
|
|
2975
|
-
var
|
|
2976
|
-
if (
|
|
2977
|
-
return
|
|
2973
|
+
var N = this.tryParsePluralOrSelectOptions(t, u, r, O);
|
|
2974
|
+
if (N.err)
|
|
2975
|
+
return N;
|
|
2978
2976
|
var d = this.tryParseArgumentClose(i);
|
|
2979
2977
|
if (d.err)
|
|
2980
2978
|
return d;
|
|
2981
|
-
var
|
|
2979
|
+
var b = _(i, this.clonePosition());
|
|
2982
2980
|
return u === "select" ? {
|
|
2983
2981
|
val: {
|
|
2984
2982
|
type: P.select,
|
|
2985
2983
|
value: n,
|
|
2986
|
-
options:
|
|
2987
|
-
location:
|
|
2984
|
+
options: ot(N.val),
|
|
2985
|
+
location: b
|
|
2988
2986
|
},
|
|
2989
2987
|
err: null
|
|
2990
2988
|
} : {
|
|
2991
2989
|
val: {
|
|
2992
2990
|
type: P.plural,
|
|
2993
2991
|
value: n,
|
|
2994
|
-
options:
|
|
2995
|
-
offset:
|
|
2992
|
+
options: ot(N.val),
|
|
2993
|
+
offset: T,
|
|
2996
2994
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2997
|
-
location:
|
|
2995
|
+
location: b
|
|
2998
2996
|
},
|
|
2999
2997
|
err: null
|
|
3000
2998
|
};
|
|
@@ -3042,16 +3040,16 @@ var vn = (
|
|
|
3042
3040
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3043
3041
|
var n = [];
|
|
3044
3042
|
try {
|
|
3045
|
-
n =
|
|
3043
|
+
n = Qr(t);
|
|
3046
3044
|
} catch (i) {
|
|
3047
3045
|
return this.error(E.INVALID_NUMBER_SKELETON, r);
|
|
3048
3046
|
}
|
|
3049
3047
|
return {
|
|
3050
3048
|
val: {
|
|
3051
|
-
type:
|
|
3049
|
+
type: q.number,
|
|
3052
3050
|
tokens: n,
|
|
3053
3051
|
location: r,
|
|
3054
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3052
|
+
parsedOptions: this.shouldParseSkeletons ? Kr(n) : {}
|
|
3055
3053
|
},
|
|
3056
3054
|
err: null
|
|
3057
3055
|
};
|
|
@@ -3099,7 +3097,7 @@ var vn = (
|
|
|
3099
3097
|
break;
|
|
3100
3098
|
}
|
|
3101
3099
|
var h = _(i, this.clonePosition());
|
|
3102
|
-
return s ? (o *= n,
|
|
3100
|
+
return s ? (o *= n, cn(o) ? { val: o, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3103
3101
|
}, e.prototype.offset = function() {
|
|
3104
3102
|
return this.position.offset;
|
|
3105
3103
|
}, e.prototype.isEOF = function() {
|
|
@@ -3114,7 +3112,7 @@ var vn = (
|
|
|
3114
3112
|
var t = this.position.offset;
|
|
3115
3113
|
if (t >= this.message.length)
|
|
3116
3114
|
throw Error("out of bound");
|
|
3117
|
-
var r =
|
|
3115
|
+
var r = Rt(this.message, t);
|
|
3118
3116
|
if (r === void 0)
|
|
3119
3117
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3120
3118
|
return r;
|
|
@@ -3133,7 +3131,7 @@ var vn = (
|
|
|
3133
3131
|
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);
|
|
3134
3132
|
}
|
|
3135
3133
|
}, e.prototype.bumpIf = function(t) {
|
|
3136
|
-
if (
|
|
3134
|
+
if (st(this.message, t, this.offset())) {
|
|
3137
3135
|
for (var r = 0; r < t.length; r++)
|
|
3138
3136
|
this.bump();
|
|
3139
3137
|
return !0;
|
|
@@ -3155,7 +3153,7 @@ var vn = (
|
|
|
3155
3153
|
break;
|
|
3156
3154
|
}
|
|
3157
3155
|
}, e.prototype.bumpSpace = function() {
|
|
3158
|
-
for (; !this.isEOF() &&
|
|
3156
|
+
for (; !this.isEOF() && Gt(this.char()); )
|
|
3159
3157
|
this.bump();
|
|
3160
3158
|
}, e.prototype.peek = function() {
|
|
3161
3159
|
if (this.isEOF())
|
|
@@ -3165,46 +3163,46 @@ var vn = (
|
|
|
3165
3163
|
}, e;
|
|
3166
3164
|
}()
|
|
3167
3165
|
);
|
|
3168
|
-
function
|
|
3166
|
+
function Ue(e) {
|
|
3169
3167
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3170
3168
|
}
|
|
3171
|
-
function
|
|
3172
|
-
return
|
|
3169
|
+
function bn(e) {
|
|
3170
|
+
return Ue(e) || e === 47;
|
|
3173
3171
|
}
|
|
3174
|
-
function
|
|
3172
|
+
function vn(e) {
|
|
3175
3173
|
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;
|
|
3176
3174
|
}
|
|
3177
|
-
function
|
|
3175
|
+
function Gt(e) {
|
|
3178
3176
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3179
3177
|
}
|
|
3180
|
-
function
|
|
3178
|
+
function En(e) {
|
|
3181
3179
|
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;
|
|
3182
3180
|
}
|
|
3183
|
-
function
|
|
3181
|
+
function Ge(e) {
|
|
3184
3182
|
e.forEach(function(t) {
|
|
3185
|
-
if (delete t.location,
|
|
3183
|
+
if (delete t.location, Ot(t) || wt(t))
|
|
3186
3184
|
for (var r in t.options)
|
|
3187
|
-
delete t.options[r].location,
|
|
3188
|
-
else
|
|
3185
|
+
delete t.options[r].location, Ge(t.options[r].value);
|
|
3186
|
+
else St(t) && Lt(t.style) || (Bt(t) || At(t)) && Ce(t.style) ? delete t.style.location : Nt(t) && Ge(t.children);
|
|
3189
3187
|
});
|
|
3190
3188
|
}
|
|
3191
|
-
function
|
|
3189
|
+
function _n(e, t) {
|
|
3192
3190
|
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3193
|
-
var r = new
|
|
3191
|
+
var r = new gn(e, t).parse();
|
|
3194
3192
|
if (r.err) {
|
|
3195
3193
|
var n = SyntaxError(E[r.err.kind]);
|
|
3196
3194
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3197
3195
|
}
|
|
3198
|
-
return t != null && t.captureLocation ||
|
|
3196
|
+
return t != null && t.captureLocation || Ge(r.val), r.val;
|
|
3199
3197
|
}
|
|
3200
|
-
var
|
|
3198
|
+
var J;
|
|
3201
3199
|
(function(e) {
|
|
3202
3200
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3203
|
-
})(
|
|
3204
|
-
var
|
|
3201
|
+
})(J || (J = {}));
|
|
3202
|
+
var Ee = (
|
|
3205
3203
|
/** @class */
|
|
3206
3204
|
function(e) {
|
|
3207
|
-
|
|
3205
|
+
ve(t, e);
|
|
3208
3206
|
function t(r, n, i) {
|
|
3209
3207
|
var s = e.call(this, r) || this;
|
|
3210
3208
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3213,48 +3211,48 @@ var _e = (
|
|
|
3213
3211
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3214
3212
|
}, t;
|
|
3215
3213
|
}(Error)
|
|
3216
|
-
),
|
|
3214
|
+
), ut = (
|
|
3217
3215
|
/** @class */
|
|
3218
3216
|
function(e) {
|
|
3219
|
-
|
|
3217
|
+
ve(t, e);
|
|
3220
3218
|
function t(r, n, i, s) {
|
|
3221
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3219
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE, s) || this;
|
|
3222
3220
|
}
|
|
3223
3221
|
return t;
|
|
3224
|
-
}(
|
|
3225
|
-
),
|
|
3222
|
+
}(Ee)
|
|
3223
|
+
), xn = (
|
|
3226
3224
|
/** @class */
|
|
3227
3225
|
function(e) {
|
|
3228
|
-
|
|
3226
|
+
ve(t, e);
|
|
3229
3227
|
function t(r, n, i) {
|
|
3230
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3228
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), J.INVALID_VALUE, i) || this;
|
|
3231
3229
|
}
|
|
3232
3230
|
return t;
|
|
3233
|
-
}(
|
|
3234
|
-
),
|
|
3231
|
+
}(Ee)
|
|
3232
|
+
), yn = (
|
|
3235
3233
|
/** @class */
|
|
3236
3234
|
function(e) {
|
|
3237
|
-
|
|
3235
|
+
ve(t, e);
|
|
3238
3236
|
function t(r, n) {
|
|
3239
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3237
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), J.MISSING_VALUE, n) || this;
|
|
3240
3238
|
}
|
|
3241
3239
|
return t;
|
|
3242
|
-
}(
|
|
3240
|
+
}(Ee)
|
|
3243
3241
|
), w;
|
|
3244
3242
|
(function(e) {
|
|
3245
3243
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3246
3244
|
})(w || (w = {}));
|
|
3247
|
-
function
|
|
3245
|
+
function Pn(e) {
|
|
3248
3246
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3249
3247
|
var n = t[t.length - 1];
|
|
3250
3248
|
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3251
3249
|
}, []);
|
|
3252
3250
|
}
|
|
3253
|
-
function
|
|
3251
|
+
function Hn(e) {
|
|
3254
3252
|
return typeof e == "function";
|
|
3255
3253
|
}
|
|
3256
|
-
function
|
|
3257
|
-
if (e.length === 1 &&
|
|
3254
|
+
function ce(e, t, r, n, i, s, o) {
|
|
3255
|
+
if (e.length === 1 && tt(e[0]))
|
|
3258
3256
|
return [
|
|
3259
3257
|
{
|
|
3260
3258
|
type: w.literal,
|
|
@@ -3263,14 +3261,14 @@ function pe(e, t, r, n, i, s, o) {
|
|
|
3263
3261
|
];
|
|
3264
3262
|
for (var u = [], h = 0, a = e; h < a.length; h++) {
|
|
3265
3263
|
var l = a[h];
|
|
3266
|
-
if (
|
|
3264
|
+
if (tt(l)) {
|
|
3267
3265
|
u.push({
|
|
3268
3266
|
type: w.literal,
|
|
3269
3267
|
value: l.value
|
|
3270
3268
|
});
|
|
3271
3269
|
continue;
|
|
3272
3270
|
}
|
|
3273
|
-
if (
|
|
3271
|
+
if (Xr(l)) {
|
|
3274
3272
|
typeof s == "number" && u.push({
|
|
3275
3273
|
type: w.literal,
|
|
3276
3274
|
value: r.getNumberFormat(t).format(s)
|
|
@@ -3279,89 +3277,89 @@ function pe(e, t, r, n, i, s, o) {
|
|
|
3279
3277
|
}
|
|
3280
3278
|
var c = l.value;
|
|
3281
3279
|
if (!(i && c in i))
|
|
3282
|
-
throw new
|
|
3280
|
+
throw new yn(c, o);
|
|
3283
3281
|
var f = i[c];
|
|
3284
|
-
if (
|
|
3282
|
+
if (Vr(l)) {
|
|
3285
3283
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), u.push({
|
|
3286
3284
|
type: typeof f == "string" ? w.literal : w.object,
|
|
3287
3285
|
value: f
|
|
3288
3286
|
});
|
|
3289
3287
|
continue;
|
|
3290
3288
|
}
|
|
3291
|
-
if (
|
|
3292
|
-
var g = typeof l.style == "string" ? n.date[l.style] :
|
|
3289
|
+
if (Bt(l)) {
|
|
3290
|
+
var g = typeof l.style == "string" ? n.date[l.style] : Ce(l.style) ? l.style.parsedOptions : void 0;
|
|
3293
3291
|
u.push({
|
|
3294
3292
|
type: w.literal,
|
|
3295
3293
|
value: r.getDateTimeFormat(t, g).format(f)
|
|
3296
3294
|
});
|
|
3297
3295
|
continue;
|
|
3298
3296
|
}
|
|
3299
|
-
if (
|
|
3300
|
-
var g = typeof l.style == "string" ? n.time[l.style] :
|
|
3297
|
+
if (At(l)) {
|
|
3298
|
+
var g = typeof l.style == "string" ? n.time[l.style] : Ce(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3301
3299
|
u.push({
|
|
3302
3300
|
type: w.literal,
|
|
3303
3301
|
value: r.getDateTimeFormat(t, g).format(f)
|
|
3304
3302
|
});
|
|
3305
3303
|
continue;
|
|
3306
3304
|
}
|
|
3307
|
-
if (
|
|
3308
|
-
var g = typeof l.style == "string" ? n.number[l.style] :
|
|
3305
|
+
if (St(l)) {
|
|
3306
|
+
var g = typeof l.style == "string" ? n.number[l.style] : Lt(l.style) ? l.style.parsedOptions : void 0;
|
|
3309
3307
|
g && g.scale && (f = f * (g.scale || 1)), u.push({
|
|
3310
3308
|
type: w.literal,
|
|
3311
3309
|
value: r.getNumberFormat(t, g).format(f)
|
|
3312
3310
|
});
|
|
3313
3311
|
continue;
|
|
3314
3312
|
}
|
|
3315
|
-
if (
|
|
3313
|
+
if (Nt(l)) {
|
|
3316
3314
|
var d = l.children, p = l.value, v = i[p];
|
|
3317
|
-
if (!
|
|
3318
|
-
throw new
|
|
3319
|
-
var m =
|
|
3320
|
-
return
|
|
3315
|
+
if (!Hn(v))
|
|
3316
|
+
throw new xn(p, "function", o);
|
|
3317
|
+
var m = ce(d, t, r, n, i, s), H = v(m.map(function(T) {
|
|
3318
|
+
return T.value;
|
|
3321
3319
|
}));
|
|
3322
|
-
Array.isArray(
|
|
3320
|
+
Array.isArray(H) || (H = [H]), u.push.apply(u, H.map(function(T) {
|
|
3323
3321
|
return {
|
|
3324
|
-
type: typeof
|
|
3325
|
-
value:
|
|
3322
|
+
type: typeof T == "string" ? w.literal : w.object,
|
|
3323
|
+
value: T
|
|
3326
3324
|
};
|
|
3327
3325
|
}));
|
|
3328
3326
|
}
|
|
3329
|
-
if (
|
|
3330
|
-
var
|
|
3331
|
-
if (!
|
|
3332
|
-
throw new
|
|
3333
|
-
u.push.apply(u,
|
|
3327
|
+
if (Ot(l)) {
|
|
3328
|
+
var B = l.options[f] || l.options.other;
|
|
3329
|
+
if (!B)
|
|
3330
|
+
throw new ut(l.value, f, Object.keys(l.options), o);
|
|
3331
|
+
u.push.apply(u, ce(B.value, t, r, n, i));
|
|
3334
3332
|
continue;
|
|
3335
3333
|
}
|
|
3336
|
-
if (
|
|
3337
|
-
var
|
|
3338
|
-
if (!
|
|
3334
|
+
if (wt(l)) {
|
|
3335
|
+
var B = l.options["=".concat(f)];
|
|
3336
|
+
if (!B) {
|
|
3339
3337
|
if (!Intl.PluralRules)
|
|
3340
|
-
throw new
|
|
3338
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3341
3339
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3342
|
-
`,
|
|
3340
|
+
`, J.MISSING_INTL_API, o);
|
|
3343
3341
|
var O = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3344
|
-
|
|
3342
|
+
B = l.options[O] || l.options.other;
|
|
3345
3343
|
}
|
|
3346
|
-
if (!
|
|
3347
|
-
throw new
|
|
3348
|
-
u.push.apply(u,
|
|
3344
|
+
if (!B)
|
|
3345
|
+
throw new ut(l.value, f, Object.keys(l.options), o);
|
|
3346
|
+
u.push.apply(u, ce(B.value, t, r, n, i, f - (l.offset || 0)));
|
|
3349
3347
|
continue;
|
|
3350
3348
|
}
|
|
3351
3349
|
}
|
|
3352
|
-
return
|
|
3350
|
+
return Pn(u);
|
|
3353
3351
|
}
|
|
3354
|
-
function
|
|
3352
|
+
function Tn(e, t) {
|
|
3355
3353
|
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3356
3354
|
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3357
3355
|
}, {})) : e;
|
|
3358
3356
|
}
|
|
3359
|
-
function
|
|
3357
|
+
function Sn(e, t) {
|
|
3360
3358
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3361
|
-
return r[n] =
|
|
3359
|
+
return r[n] = Tn(e[n], t[n]), r;
|
|
3362
3360
|
}, x({}, e)) : e;
|
|
3363
3361
|
}
|
|
3364
|
-
function
|
|
3362
|
+
function Ae(e) {
|
|
3365
3363
|
return {
|
|
3366
3364
|
create: function() {
|
|
3367
3365
|
return {
|
|
@@ -3375,39 +3373,39 @@ function Oe(e) {
|
|
|
3375
3373
|
}
|
|
3376
3374
|
};
|
|
3377
3375
|
}
|
|
3378
|
-
function
|
|
3376
|
+
function Bn(e) {
|
|
3379
3377
|
return e === void 0 && (e = {
|
|
3380
3378
|
number: {},
|
|
3381
3379
|
dateTime: {},
|
|
3382
3380
|
pluralRules: {}
|
|
3383
3381
|
}), {
|
|
3384
|
-
getNumberFormat:
|
|
3382
|
+
getNumberFormat: Te(function() {
|
|
3385
3383
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3386
3384
|
r[n] = arguments[n];
|
|
3387
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3385
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, He([void 0], r, !1)))();
|
|
3388
3386
|
}, {
|
|
3389
|
-
cache:
|
|
3390
|
-
strategy:
|
|
3387
|
+
cache: Ae(e.number),
|
|
3388
|
+
strategy: Se.variadic
|
|
3391
3389
|
}),
|
|
3392
|
-
getDateTimeFormat:
|
|
3390
|
+
getDateTimeFormat: Te(function() {
|
|
3393
3391
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3394
3392
|
r[n] = arguments[n];
|
|
3395
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3393
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, He([void 0], r, !1)))();
|
|
3396
3394
|
}, {
|
|
3397
|
-
cache:
|
|
3398
|
-
strategy:
|
|
3395
|
+
cache: Ae(e.dateTime),
|
|
3396
|
+
strategy: Se.variadic
|
|
3399
3397
|
}),
|
|
3400
|
-
getPluralRules:
|
|
3398
|
+
getPluralRules: Te(function() {
|
|
3401
3399
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3402
3400
|
r[n] = arguments[n];
|
|
3403
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3401
|
+
return new ((t = Intl.PluralRules).bind.apply(t, He([void 0], r, !1)))();
|
|
3404
3402
|
}, {
|
|
3405
|
-
cache:
|
|
3406
|
-
strategy:
|
|
3403
|
+
cache: Ae(e.pluralRules),
|
|
3404
|
+
strategy: Se.variadic
|
|
3407
3405
|
})
|
|
3408
3406
|
};
|
|
3409
3407
|
}
|
|
3410
|
-
var
|
|
3408
|
+
var An = (
|
|
3411
3409
|
/** @class */
|
|
3412
3410
|
function() {
|
|
3413
3411
|
function e(t, r, n, i) {
|
|
@@ -3426,7 +3424,7 @@ var Nn = (
|
|
|
3426
3424
|
}, []);
|
|
3427
3425
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3428
3426
|
}, this.formatToParts = function(h) {
|
|
3429
|
-
return
|
|
3427
|
+
return ce(s.ast, s.locales, s.formatters, s.formats, h, void 0, s.message);
|
|
3430
3428
|
}, this.resolvedOptions = function() {
|
|
3431
3429
|
var h;
|
|
3432
3430
|
return {
|
|
@@ -3439,13 +3437,13 @@ var Nn = (
|
|
|
3439
3437
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3440
3438
|
var o = i || {};
|
|
3441
3439
|
o.formatters;
|
|
3442
|
-
var u =
|
|
3440
|
+
var u = $r(o, ["formatters"]);
|
|
3443
3441
|
this.ast = e.__parse(t, x(x({}, u), { locale: this.resolvedLocale }));
|
|
3444
3442
|
} else
|
|
3445
3443
|
this.ast = t;
|
|
3446
3444
|
if (!Array.isArray(this.ast))
|
|
3447
3445
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3448
|
-
this.formats =
|
|
3446
|
+
this.formats = Sn(e.formats, n), this.formatters = i && i.formatters || Bn(this.formatterCache);
|
|
3449
3447
|
}
|
|
3450
3448
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3451
3449
|
get: function() {
|
|
@@ -3458,7 +3456,7 @@ var Nn = (
|
|
|
3458
3456
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3459
3457
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3460
3458
|
}
|
|
3461
|
-
}, e.__parse =
|
|
3459
|
+
}, e.__parse = _n, e.formats = {
|
|
3462
3460
|
number: {
|
|
3463
3461
|
integer: {
|
|
3464
3462
|
maximumFractionDigits: 0
|
|
@@ -3519,7 +3517,7 @@ var Nn = (
|
|
|
3519
3517
|
}, e;
|
|
3520
3518
|
}()
|
|
3521
3519
|
);
|
|
3522
|
-
function
|
|
3520
|
+
function On(e, t) {
|
|
3523
3521
|
if (t == null)
|
|
3524
3522
|
return;
|
|
3525
3523
|
if (t in e)
|
|
@@ -3540,92 +3538,92 @@ function wn(e, t) {
|
|
|
3540
3538
|
n = void 0;
|
|
3541
3539
|
return n;
|
|
3542
3540
|
}
|
|
3543
|
-
const
|
|
3541
|
+
const j = {}, wn = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), Dt = (e, t) => {
|
|
3544
3542
|
if (t == null)
|
|
3545
3543
|
return;
|
|
3546
|
-
if (t in
|
|
3547
|
-
return
|
|
3548
|
-
const r =
|
|
3544
|
+
if (t in j && e in j[t])
|
|
3545
|
+
return j[t][e];
|
|
3546
|
+
const r = _e(t);
|
|
3549
3547
|
for (let n = 0; n < r.length; n++) {
|
|
3550
|
-
const i = r[n], s =
|
|
3548
|
+
const i = r[n], s = Ln(i, e);
|
|
3551
3549
|
if (s)
|
|
3552
|
-
return
|
|
3550
|
+
return wn(e, t, s);
|
|
3553
3551
|
}
|
|
3554
3552
|
};
|
|
3555
|
-
let
|
|
3556
|
-
const ae =
|
|
3557
|
-
function
|
|
3558
|
-
return
|
|
3553
|
+
let Ve;
|
|
3554
|
+
const ae = be({});
|
|
3555
|
+
function Nn(e) {
|
|
3556
|
+
return Ve[e] || null;
|
|
3559
3557
|
}
|
|
3560
|
-
function
|
|
3561
|
-
return e in
|
|
3558
|
+
function Ft(e) {
|
|
3559
|
+
return e in Ve;
|
|
3562
3560
|
}
|
|
3563
|
-
function
|
|
3564
|
-
if (!
|
|
3561
|
+
function Ln(e, t) {
|
|
3562
|
+
if (!Ft(e))
|
|
3565
3563
|
return null;
|
|
3566
|
-
const r =
|
|
3567
|
-
return
|
|
3564
|
+
const r = Nn(e);
|
|
3565
|
+
return On(r, t);
|
|
3568
3566
|
}
|
|
3569
|
-
function
|
|
3567
|
+
function In(e) {
|
|
3570
3568
|
if (e == null)
|
|
3571
3569
|
return;
|
|
3572
|
-
const t =
|
|
3570
|
+
const t = _e(e);
|
|
3573
3571
|
for (let r = 0; r < t.length; r++) {
|
|
3574
3572
|
const n = t[r];
|
|
3575
|
-
if (
|
|
3573
|
+
if (Ft(n))
|
|
3576
3574
|
return n;
|
|
3577
3575
|
}
|
|
3578
3576
|
}
|
|
3579
|
-
function
|
|
3580
|
-
delete
|
|
3577
|
+
function jt(e, ...t) {
|
|
3578
|
+
delete j[e], ae.update((r) => (r[e] = Mr.all([r[e] || {}, ...t]), r));
|
|
3581
3579
|
}
|
|
3582
3580
|
K(
|
|
3583
3581
|
[ae],
|
|
3584
3582
|
([e]) => Object.keys(e)
|
|
3585
3583
|
);
|
|
3586
|
-
ae.subscribe((e) =>
|
|
3587
|
-
const
|
|
3588
|
-
function
|
|
3589
|
-
|
|
3584
|
+
ae.subscribe((e) => Ve = e);
|
|
3585
|
+
const pe = {};
|
|
3586
|
+
function Cn(e, t) {
|
|
3587
|
+
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3590
3588
|
}
|
|
3591
|
-
function
|
|
3592
|
-
return
|
|
3589
|
+
function kt(e) {
|
|
3590
|
+
return pe[e];
|
|
3593
3591
|
}
|
|
3594
|
-
function
|
|
3595
|
-
return
|
|
3596
|
-
const r =
|
|
3592
|
+
function Mn(e) {
|
|
3593
|
+
return _e(e).map((t) => {
|
|
3594
|
+
const r = kt(t);
|
|
3597
3595
|
return [t, r ? [...r] : []];
|
|
3598
3596
|
}).filter(([, t]) => t.length > 0);
|
|
3599
3597
|
}
|
|
3600
|
-
function
|
|
3601
|
-
return e == null ? !1 :
|
|
3598
|
+
function De(e) {
|
|
3599
|
+
return e == null ? !1 : _e(e).some(
|
|
3602
3600
|
(t) => {
|
|
3603
3601
|
var r;
|
|
3604
|
-
return (r =
|
|
3602
|
+
return (r = kt(t)) == null ? void 0 : r.size;
|
|
3605
3603
|
}
|
|
3606
3604
|
);
|
|
3607
3605
|
}
|
|
3608
|
-
function
|
|
3606
|
+
function $n(e, t) {
|
|
3609
3607
|
return Promise.all(
|
|
3610
|
-
t.map((n) => (
|
|
3611
|
-
).then((n) =>
|
|
3608
|
+
t.map((n) => (Cn(e, n), n().then((i) => i.default || i)))
|
|
3609
|
+
).then((n) => jt(e, ...n));
|
|
3612
3610
|
}
|
|
3613
3611
|
const re = {};
|
|
3614
|
-
function
|
|
3615
|
-
if (!
|
|
3612
|
+
function Vt(e) {
|
|
3613
|
+
if (!De(e))
|
|
3616
3614
|
return e in re ? re[e] : Promise.resolve();
|
|
3617
|
-
const t =
|
|
3615
|
+
const t = Mn(e);
|
|
3618
3616
|
return re[e] = Promise.all(
|
|
3619
3617
|
t.map(
|
|
3620
|
-
([r, n]) =>
|
|
3618
|
+
([r, n]) => $n(r, n)
|
|
3621
3619
|
)
|
|
3622
3620
|
).then(() => {
|
|
3623
|
-
if (
|
|
3624
|
-
return
|
|
3621
|
+
if (De(e))
|
|
3622
|
+
return Vt(e);
|
|
3625
3623
|
delete re[e];
|
|
3626
3624
|
}), re[e];
|
|
3627
3625
|
}
|
|
3628
|
-
const
|
|
3626
|
+
const Rn = {
|
|
3629
3627
|
number: {
|
|
3630
3628
|
scientific: { notation: "scientific" },
|
|
3631
3629
|
engineering: { notation: "engineering" },
|
|
@@ -3654,78 +3652,78 @@ const Gn = {
|
|
|
3654
3652
|
timeZoneName: "short"
|
|
3655
3653
|
}
|
|
3656
3654
|
}
|
|
3657
|
-
},
|
|
3655
|
+
}, Un = {
|
|
3658
3656
|
fallbackLocale: null,
|
|
3659
3657
|
loadingDelay: 200,
|
|
3660
|
-
formats:
|
|
3658
|
+
formats: Rn,
|
|
3661
3659
|
warnOnMissingMessages: !0,
|
|
3662
3660
|
handleMissingMessage: void 0,
|
|
3663
3661
|
ignoreTag: !0
|
|
3664
|
-
},
|
|
3662
|
+
}, Gn = Un;
|
|
3665
3663
|
function Y() {
|
|
3666
|
-
return
|
|
3664
|
+
return Gn;
|
|
3667
3665
|
}
|
|
3668
|
-
const
|
|
3669
|
-
var
|
|
3666
|
+
const Oe = be(!1);
|
|
3667
|
+
var Dn = Object.defineProperty, Fn = Object.defineProperties, jn = Object.getOwnPropertyDescriptors, ht = Object.getOwnPropertySymbols, kn = Object.prototype.hasOwnProperty, Vn = Object.prototype.propertyIsEnumerable, lt = (e, t, r) => t in e ? Dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xn = (e, t) => {
|
|
3670
3668
|
for (var r in t || (t = {}))
|
|
3671
|
-
|
|
3672
|
-
if (
|
|
3673
|
-
for (var r of
|
|
3674
|
-
|
|
3669
|
+
kn.call(t, r) && lt(e, r, t[r]);
|
|
3670
|
+
if (ht)
|
|
3671
|
+
for (var r of ht(t))
|
|
3672
|
+
Vn.call(t, r) && lt(e, r, t[r]);
|
|
3675
3673
|
return e;
|
|
3676
|
-
},
|
|
3677
|
-
let
|
|
3678
|
-
const
|
|
3679
|
-
function
|
|
3674
|
+
}, zn = (e, t) => Fn(e, jn(t));
|
|
3675
|
+
let Fe;
|
|
3676
|
+
const de = be(null);
|
|
3677
|
+
function ft(e) {
|
|
3680
3678
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3681
3679
|
}
|
|
3682
|
-
function
|
|
3683
|
-
const r =
|
|
3684
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3680
|
+
function _e(e, t = Y().fallbackLocale) {
|
|
3681
|
+
const r = ft(e);
|
|
3682
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ft(t)])] : r;
|
|
3685
3683
|
}
|
|
3686
3684
|
function V() {
|
|
3687
|
-
return
|
|
3685
|
+
return Fe != null ? Fe : void 0;
|
|
3688
3686
|
}
|
|
3689
|
-
|
|
3690
|
-
|
|
3687
|
+
de.subscribe((e) => {
|
|
3688
|
+
Fe = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3691
3689
|
});
|
|
3692
|
-
const
|
|
3693
|
-
if (e &&
|
|
3690
|
+
const Wn = (e) => {
|
|
3691
|
+
if (e && In(e) && De(e)) {
|
|
3694
3692
|
const { loadingDelay: t } = Y();
|
|
3695
3693
|
let r;
|
|
3696
3694
|
return typeof window != "undefined" && V() != null && t ? r = window.setTimeout(
|
|
3697
|
-
() =>
|
|
3695
|
+
() => Oe.set(!0),
|
|
3698
3696
|
t
|
|
3699
|
-
) :
|
|
3700
|
-
|
|
3697
|
+
) : Oe.set(!0), Vt(e).then(() => {
|
|
3698
|
+
de.set(e);
|
|
3701
3699
|
}).finally(() => {
|
|
3702
|
-
clearTimeout(r),
|
|
3700
|
+
clearTimeout(r), Oe.set(!1);
|
|
3703
3701
|
});
|
|
3704
3702
|
}
|
|
3705
|
-
return
|
|
3706
|
-
}, ee =
|
|
3707
|
-
set:
|
|
3708
|
-
}),
|
|
3703
|
+
return de.set(e);
|
|
3704
|
+
}, ee = zn(Xn({}, de), {
|
|
3705
|
+
set: Wn
|
|
3706
|
+
}), xe = (e) => {
|
|
3709
3707
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3710
3708
|
return (n) => {
|
|
3711
3709
|
const i = JSON.stringify(n);
|
|
3712
3710
|
return i in t ? t[i] : t[i] = e(n);
|
|
3713
3711
|
};
|
|
3714
3712
|
};
|
|
3715
|
-
var
|
|
3713
|
+
var Zn = Object.defineProperty, ge = Object.getOwnPropertySymbols, Xt = Object.prototype.hasOwnProperty, zt = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? Zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xe = (e, t) => {
|
|
3716
3714
|
for (var r in t || (t = {}))
|
|
3717
|
-
|
|
3718
|
-
if (
|
|
3719
|
-
for (var r of
|
|
3720
|
-
|
|
3715
|
+
Xt.call(t, r) && ct(e, r, t[r]);
|
|
3716
|
+
if (ge)
|
|
3717
|
+
for (var r of ge(t))
|
|
3718
|
+
zt.call(t, r) && ct(e, r, t[r]);
|
|
3721
3719
|
return e;
|
|
3722
3720
|
}, te = (e, t) => {
|
|
3723
3721
|
var r = {};
|
|
3724
3722
|
for (var n in e)
|
|
3725
|
-
|
|
3726
|
-
if (e != null &&
|
|
3727
|
-
for (var n of
|
|
3728
|
-
t.indexOf(n) < 0 &&
|
|
3723
|
+
Xt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3724
|
+
if (e != null && ge)
|
|
3725
|
+
for (var n of ge(e))
|
|
3726
|
+
t.indexOf(n) < 0 && zt.call(e, n) && (r[n] = e[n]);
|
|
3729
3727
|
return r;
|
|
3730
3728
|
};
|
|
3731
3729
|
const se = (e, t) => {
|
|
@@ -3733,21 +3731,21 @@ const se = (e, t) => {
|
|
|
3733
3731
|
if (e in r && t in r[e])
|
|
3734
3732
|
return r[e][t];
|
|
3735
3733
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3736
|
-
},
|
|
3734
|
+
}, Qn = xe(
|
|
3737
3735
|
(e) => {
|
|
3738
3736
|
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3739
3737
|
if (r == null)
|
|
3740
3738
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3741
3739
|
return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
|
|
3742
3740
|
}
|
|
3743
|
-
),
|
|
3741
|
+
), qn = xe(
|
|
3744
3742
|
(e) => {
|
|
3745
3743
|
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3746
3744
|
if (r == null)
|
|
3747
3745
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3748
3746
|
return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3749
3747
|
}
|
|
3750
|
-
),
|
|
3748
|
+
), Jn = xe(
|
|
3751
3749
|
(e) => {
|
|
3752
3750
|
var t = e, { locale: r, format: n } = t, i = te(t, ["locale", "format"]);
|
|
3753
3751
|
if (r == null)
|
|
@@ -3756,33 +3754,33 @@ const se = (e, t) => {
|
|
|
3756
3754
|
);
|
|
3757
3755
|
return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3758
3756
|
}
|
|
3759
|
-
),
|
|
3757
|
+
), Yn = (e = {}) => {
|
|
3760
3758
|
var t = e, {
|
|
3761
3759
|
locale: r = V()
|
|
3762
3760
|
} = t, n = te(t, [
|
|
3763
3761
|
"locale"
|
|
3764
3762
|
]);
|
|
3765
|
-
return
|
|
3766
|
-
},
|
|
3763
|
+
return Qn(Xe({ locale: r }, n));
|
|
3764
|
+
}, Kn = (e = {}) => {
|
|
3767
3765
|
var t = e, {
|
|
3768
3766
|
locale: r = V()
|
|
3769
3767
|
} = t, n = te(t, [
|
|
3770
3768
|
"locale"
|
|
3771
3769
|
]);
|
|
3772
|
-
return
|
|
3773
|
-
},
|
|
3770
|
+
return qn(Xe({ locale: r }, n));
|
|
3771
|
+
}, ei = (e = {}) => {
|
|
3774
3772
|
var t = e, {
|
|
3775
3773
|
locale: r = V()
|
|
3776
3774
|
} = t, n = te(t, [
|
|
3777
3775
|
"locale"
|
|
3778
3776
|
]);
|
|
3779
|
-
return
|
|
3780
|
-
},
|
|
3777
|
+
return Jn(Xe({ locale: r }, n));
|
|
3778
|
+
}, ti = xe(
|
|
3781
3779
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3782
|
-
(e, t = V()) => new
|
|
3780
|
+
(e, t = V()) => new An(e, t, Y().formats, {
|
|
3783
3781
|
ignoreTag: Y().ignoreTag
|
|
3784
3782
|
})
|
|
3785
|
-
),
|
|
3783
|
+
), ri = (e, t = {}) => {
|
|
3786
3784
|
var r, n, i, s;
|
|
3787
3785
|
let o = t;
|
|
3788
3786
|
typeof e == "object" && (o = e, e = o.id);
|
|
@@ -3795,7 +3793,7 @@ const se = (e, t) => {
|
|
|
3795
3793
|
throw new Error(
|
|
3796
3794
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3797
3795
|
);
|
|
3798
|
-
let l =
|
|
3796
|
+
let l = Dt(e, h);
|
|
3799
3797
|
if (!l)
|
|
3800
3798
|
l = (s = (i = (n = (r = Y()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3801
3799
|
else if (typeof l != "string")
|
|
@@ -3806,7 +3804,7 @@ const se = (e, t) => {
|
|
|
3806
3804
|
return l;
|
|
3807
3805
|
let c = l;
|
|
3808
3806
|
try {
|
|
3809
|
-
c =
|
|
3807
|
+
c = ti(l, h).format(u);
|
|
3810
3808
|
} catch (f) {
|
|
3811
3809
|
f instanceof Error && console.warn(
|
|
3812
3810
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3814,79 +3812,102 @@ const se = (e, t) => {
|
|
|
3814
3812
|
);
|
|
3815
3813
|
}
|
|
3816
3814
|
return c;
|
|
3817
|
-
},
|
|
3815
|
+
}, ni = (e, t) => ei(t).format(e), ii = (e, t) => Kn(t).format(e), si = (e, t) => Yn(t).format(e), oi = (e, t = V()) => Dt(e, t), ai = K([ee, ae], () => ri);
|
|
3816
|
+
K([ee], () => ni);
|
|
3817
|
+
K([ee], () => ii);
|
|
3818
3818
|
K([ee], () => si);
|
|
3819
|
-
K([ee], () => oi);
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
function gt(e, t) {
|
|
3823
|
-
Xt(e, t);
|
|
3819
|
+
K([ee, ae], () => oi);
|
|
3820
|
+
function pt(e, t) {
|
|
3821
|
+
jt(e, t);
|
|
3824
3822
|
}
|
|
3825
|
-
function
|
|
3823
|
+
function ui(e) {
|
|
3826
3824
|
ee.set(e);
|
|
3827
3825
|
}
|
|
3828
|
-
function
|
|
3829
|
-
|
|
3826
|
+
function hi(e, t) {
|
|
3827
|
+
if (e) {
|
|
3828
|
+
const r = document.createElement("style");
|
|
3829
|
+
r.innerHTML = t, e.appendChild(r);
|
|
3830
|
+
}
|
|
3831
|
+
}
|
|
3832
|
+
function li(e, t) {
|
|
3833
|
+
const r = new URL(t);
|
|
3834
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3835
|
+
const i = document.createElement("style");
|
|
3836
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
3837
|
+
}).catch((n) => {
|
|
3838
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
3839
|
+
});
|
|
3840
|
+
}
|
|
3841
|
+
function fi(e, t, r) {
|
|
3842
|
+
if (window.emMessageBus) {
|
|
3843
|
+
const n = document.createElement("style");
|
|
3844
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
3845
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
3846
|
+
});
|
|
3847
|
+
}
|
|
3848
|
+
}
|
|
3849
|
+
function ci(e) {
|
|
3850
|
+
er(e, "svelte-1bsli1q", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.CasinoProviders{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.ProviderTitle{font-weight:500;position:relative;right:30px;margin:10px 0}.Provider{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.ProviderTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:last-child{color:var(--emw--color-gray-150, #828282);font-weight:300}.ProviderImage{border-radius:4px;object-fit:contain;height:64px;width:64px;font-weight:100;border:0.5px solid var(--emw--color-gray-100, #E6E6E6);overflow:hidden;object-fit:contain}.Message{font-weight:600;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}");
|
|
3830
3851
|
}
|
|
3831
|
-
function
|
|
3852
|
+
function mt(e, t, r) {
|
|
3832
3853
|
const n = e.slice();
|
|
3833
3854
|
return n[21] = t[r], n;
|
|
3834
3855
|
}
|
|
3835
|
-
function
|
|
3856
|
+
function dt(e, t, r) {
|
|
3836
3857
|
const n = e.slice();
|
|
3837
3858
|
return n[21] = t[r], n;
|
|
3838
3859
|
}
|
|
3839
|
-
function
|
|
3860
|
+
function pi(e) {
|
|
3840
3861
|
let t, r = (
|
|
3841
3862
|
/*$_*/
|
|
3842
3863
|
e[4]("popularProviders") + ""
|
|
3843
3864
|
), n, i, s, o, u = (
|
|
3844
3865
|
/*$_*/
|
|
3845
3866
|
e[4]("otherProviders") + ""
|
|
3846
|
-
), h, a, l, c =
|
|
3867
|
+
), h, a, l, c = he(
|
|
3847
3868
|
/*topProviders*/
|
|
3848
3869
|
e[1]
|
|
3849
3870
|
), f = [];
|
|
3850
3871
|
for (let p = 0; p < c.length; p += 1)
|
|
3851
|
-
f[p] =
|
|
3852
|
-
let g =
|
|
3872
|
+
f[p] = gt(dt(e, c, p));
|
|
3873
|
+
let g = he(
|
|
3853
3874
|
/*otherProviders*/
|
|
3854
3875
|
e[2]
|
|
3855
3876
|
), d = [];
|
|
3856
3877
|
for (let p = 0; p < g.length; p += 1)
|
|
3857
|
-
d[p] =
|
|
3878
|
+
d[p] = bt(mt(e, g, p));
|
|
3858
3879
|
return {
|
|
3859
3880
|
c() {
|
|
3860
|
-
t =
|
|
3881
|
+
t = A("h4"), n = R(r), i = U();
|
|
3861
3882
|
for (let p = 0; p < f.length; p += 1)
|
|
3862
3883
|
f[p].c();
|
|
3863
|
-
s =
|
|
3884
|
+
s = U(), o = A("h4"), h = R(u), a = U();
|
|
3864
3885
|
for (let p = 0; p < d.length; p += 1)
|
|
3865
3886
|
d[p].c();
|
|
3866
|
-
l =
|
|
3887
|
+
l = nr(), S(t, "class", "ProviderTitle"), S(o, "class", "ProviderTitle");
|
|
3867
3888
|
},
|
|
3868
3889
|
m(p, v) {
|
|
3869
|
-
|
|
3890
|
+
M(p, t, v), y(t, n), M(p, i, v);
|
|
3870
3891
|
for (let m = 0; m < f.length; m += 1)
|
|
3871
3892
|
f[m] && f[m].m(p, v);
|
|
3872
|
-
|
|
3893
|
+
M(p, s, v), M(p, o, v), y(o, h), M(p, a, v);
|
|
3873
3894
|
for (let m = 0; m < d.length; m += 1)
|
|
3874
3895
|
d[m] && d[m].m(p, v);
|
|
3875
|
-
|
|
3896
|
+
M(p, l, v);
|
|
3876
3897
|
},
|
|
3877
3898
|
p(p, v) {
|
|
3878
3899
|
if (v & /*$_*/
|
|
3879
3900
|
16 && r !== (r = /*$_*/
|
|
3880
3901
|
p[4]("popularProviders") + "") && F(n, r), v & /*openGameProviderPage, topProviders, $_*/
|
|
3881
3902
|
50) {
|
|
3882
|
-
c =
|
|
3903
|
+
c = he(
|
|
3883
3904
|
/*topProviders*/
|
|
3884
3905
|
p[1]
|
|
3885
3906
|
);
|
|
3886
3907
|
let m;
|
|
3887
3908
|
for (m = 0; m < c.length; m += 1) {
|
|
3888
|
-
const
|
|
3889
|
-
f[m] ? f[m].p(
|
|
3909
|
+
const H = dt(p, c, m);
|
|
3910
|
+
f[m] ? f[m].p(H, v) : (f[m] = gt(H), f[m].c(), f[m].m(s.parentNode, s));
|
|
3890
3911
|
}
|
|
3891
3912
|
for (; m < f.length; m += 1)
|
|
3892
3913
|
f[m].d(1);
|
|
@@ -3896,14 +3917,14 @@ function ci(e) {
|
|
|
3896
3917
|
16 && u !== (u = /*$_*/
|
|
3897
3918
|
p[4]("otherProviders") + "") && F(h, u), v & /*openGameProviderPage, otherProviders, $_*/
|
|
3898
3919
|
52) {
|
|
3899
|
-
g =
|
|
3920
|
+
g = he(
|
|
3900
3921
|
/*otherProviders*/
|
|
3901
3922
|
p[2]
|
|
3902
3923
|
);
|
|
3903
3924
|
let m;
|
|
3904
3925
|
for (m = 0; m < g.length; m += 1) {
|
|
3905
|
-
const
|
|
3906
|
-
d[m] ? d[m].p(
|
|
3926
|
+
const H = mt(p, g, m);
|
|
3927
|
+
d[m] ? d[m].p(H, v) : (d[m] = bt(H), d[m].c(), d[m].m(l.parentNode, l));
|
|
3907
3928
|
}
|
|
3908
3929
|
for (; m < d.length; m += 1)
|
|
3909
3930
|
d[m].d(1);
|
|
@@ -3911,21 +3932,21 @@ function ci(e) {
|
|
|
3911
3932
|
}
|
|
3912
3933
|
},
|
|
3913
3934
|
d(p) {
|
|
3914
|
-
p && (C(t), C(i), C(s), C(o), C(a), C(l)),
|
|
3935
|
+
p && (C(t), C(i), C(s), C(o), C(a), C(l)), Je(f, p), Je(d, p);
|
|
3915
3936
|
}
|
|
3916
3937
|
};
|
|
3917
3938
|
}
|
|
3918
|
-
function
|
|
3939
|
+
function mi(e) {
|
|
3919
3940
|
let t, r = (
|
|
3920
3941
|
/*$_*/
|
|
3921
3942
|
e[4]("loading") + ""
|
|
3922
3943
|
), n;
|
|
3923
3944
|
return {
|
|
3924
3945
|
c() {
|
|
3925
|
-
t =
|
|
3946
|
+
t = A("p"), n = R(r), S(t, "class", "Message");
|
|
3926
3947
|
},
|
|
3927
3948
|
m(i, s) {
|
|
3928
|
-
|
|
3949
|
+
M(i, t, s), y(t, n);
|
|
3929
3950
|
},
|
|
3930
3951
|
p(i, s) {
|
|
3931
3952
|
s & /*$_*/
|
|
@@ -3937,7 +3958,7 @@ function pi(e) {
|
|
|
3937
3958
|
}
|
|
3938
3959
|
};
|
|
3939
3960
|
}
|
|
3940
|
-
function
|
|
3961
|
+
function gt(e) {
|
|
3941
3962
|
let t, r, n, i, s, o, u, h = (
|
|
3942
3963
|
/*provider*/
|
|
3943
3964
|
e[21].name + ""
|
|
@@ -3947,11 +3968,11 @@ function Et(e) {
|
|
|
3947
3968
|
), g, d, p = (
|
|
3948
3969
|
/*$_*/
|
|
3949
3970
|
e[4]("games") + ""
|
|
3950
|
-
), v, m,
|
|
3951
|
-
function
|
|
3971
|
+
), v, m, H;
|
|
3972
|
+
function B() {
|
|
3952
3973
|
return (
|
|
3953
3974
|
/*click_handler*/
|
|
3954
|
-
e[
|
|
3975
|
+
e[13](
|
|
3955
3976
|
/*provider*/
|
|
3956
3977
|
e[21]
|
|
3957
3978
|
)
|
|
@@ -3959,32 +3980,32 @@ function Et(e) {
|
|
|
3959
3980
|
}
|
|
3960
3981
|
return {
|
|
3961
3982
|
c() {
|
|
3962
|
-
t =
|
|
3983
|
+
t = A("div"), r = A("img"), s = U(), o = A("div"), u = A("p"), a = R(h), l = U(), c = A("p"), g = R(f), d = U(), v = R(p), me(r.src, n = /*provider*/
|
|
3963
3984
|
e[21].logo) || S(r, "src", n), S(r, "alt", i = /*provider*/
|
|
3964
3985
|
e[21].name), S(r, "class", "ProviderImage"), S(o, "class", "ProviderTextContainer"), S(t, "class", "Provider");
|
|
3965
3986
|
},
|
|
3966
|
-
m(O,
|
|
3967
|
-
|
|
3987
|
+
m(O, T) {
|
|
3988
|
+
M(O, t, T), y(t, r), y(t, s), y(t, o), y(o, u), y(u, a), y(o, l), y(o, c), y(c, g), y(c, d), y(c, v), m || (H = xt(t, "click", B), m = !0);
|
|
3968
3989
|
},
|
|
3969
|
-
p(O,
|
|
3970
|
-
e = O,
|
|
3971
|
-
2 && !
|
|
3972
|
-
e[21].logo) && S(r, "src", n),
|
|
3990
|
+
p(O, T) {
|
|
3991
|
+
e = O, T & /*topProviders*/
|
|
3992
|
+
2 && !me(r.src, n = /*provider*/
|
|
3993
|
+
e[21].logo) && S(r, "src", n), T & /*topProviders*/
|
|
3973
3994
|
2 && i !== (i = /*provider*/
|
|
3974
|
-
e[21].name) && S(r, "alt", i),
|
|
3995
|
+
e[21].name) && S(r, "alt", i), T & /*topProviders*/
|
|
3975
3996
|
2 && h !== (h = /*provider*/
|
|
3976
|
-
e[21].name + "") && F(a, h),
|
|
3997
|
+
e[21].name + "") && F(a, h), T & /*topProviders*/
|
|
3977
3998
|
2 && f !== (f = /*provider*/
|
|
3978
|
-
e[21].games.count + "") && F(g, f),
|
|
3999
|
+
e[21].games.count + "") && F(g, f), T & /*$_*/
|
|
3979
4000
|
16 && p !== (p = /*$_*/
|
|
3980
4001
|
e[4]("games") + "") && F(v, p);
|
|
3981
4002
|
},
|
|
3982
4003
|
d(O) {
|
|
3983
|
-
O && C(t), m = !1,
|
|
4004
|
+
O && C(t), m = !1, H();
|
|
3984
4005
|
}
|
|
3985
4006
|
};
|
|
3986
4007
|
}
|
|
3987
|
-
function
|
|
4008
|
+
function bt(e) {
|
|
3988
4009
|
let t, r, n, i, s, o, u, h = (
|
|
3989
4010
|
/*provider*/
|
|
3990
4011
|
e[21].name + ""
|
|
@@ -3994,11 +4015,11 @@ function _t(e) {
|
|
|
3994
4015
|
), g, d, p = (
|
|
3995
4016
|
/*$_*/
|
|
3996
4017
|
e[4]("games") + ""
|
|
3997
|
-
), v, m,
|
|
4018
|
+
), v, m, H, B;
|
|
3998
4019
|
function O() {
|
|
3999
4020
|
return (
|
|
4000
4021
|
/*click_handler_1*/
|
|
4001
|
-
e[
|
|
4022
|
+
e[14](
|
|
4002
4023
|
/*provider*/
|
|
4003
4024
|
e[21]
|
|
4004
4025
|
)
|
|
@@ -4006,196 +4027,192 @@ function _t(e) {
|
|
|
4006
4027
|
}
|
|
4007
4028
|
return {
|
|
4008
4029
|
c() {
|
|
4009
|
-
t =
|
|
4030
|
+
t = A("div"), r = A("img"), s = U(), o = A("div"), u = A("p"), a = R(h), l = U(), c = A("p"), g = R(f), d = U(), v = R(p), m = U(), me(r.src, n = /*provider*/
|
|
4010
4031
|
e[21].logo) || S(r, "src", n), S(r, "alt", i = /*provider*/
|
|
4011
4032
|
e[21].name), S(r, "class", "ProviderImage"), S(o, "class", "ProviderTextContainer"), S(t, "class", "Provider");
|
|
4012
4033
|
},
|
|
4013
|
-
m(
|
|
4014
|
-
|
|
4034
|
+
m(T, N) {
|
|
4035
|
+
M(T, t, N), y(t, r), y(t, s), y(t, o), y(o, u), y(u, a), y(o, l), y(o, c), y(c, g), y(c, d), y(c, v), y(t, m), H || (B = xt(t, "click", O), H = !0);
|
|
4015
4036
|
},
|
|
4016
|
-
p(
|
|
4017
|
-
e =
|
|
4018
|
-
4 && !
|
|
4019
|
-
e[21].logo) && S(r, "src", n),
|
|
4037
|
+
p(T, N) {
|
|
4038
|
+
e = T, N & /*otherProviders*/
|
|
4039
|
+
4 && !me(r.src, n = /*provider*/
|
|
4040
|
+
e[21].logo) && S(r, "src", n), N & /*otherProviders*/
|
|
4020
4041
|
4 && i !== (i = /*provider*/
|
|
4021
|
-
e[21].name) && S(r, "alt", i),
|
|
4042
|
+
e[21].name) && S(r, "alt", i), N & /*otherProviders*/
|
|
4022
4043
|
4 && h !== (h = /*provider*/
|
|
4023
|
-
e[21].name + "") && F(a, h),
|
|
4044
|
+
e[21].name + "") && F(a, h), N & /*otherProviders*/
|
|
4024
4045
|
4 && f !== (f = /*provider*/
|
|
4025
|
-
e[21].games.count + "") && F(g, f),
|
|
4046
|
+
e[21].games.count + "") && F(g, f), N & /*$_*/
|
|
4026
4047
|
16 && p !== (p = /*$_*/
|
|
4027
4048
|
e[4]("games") + "") && F(v, p);
|
|
4028
4049
|
},
|
|
4029
|
-
d(
|
|
4030
|
-
|
|
4050
|
+
d(T) {
|
|
4051
|
+
T && C(t), H = !1, B();
|
|
4031
4052
|
}
|
|
4032
4053
|
};
|
|
4033
4054
|
}
|
|
4034
|
-
function
|
|
4055
|
+
function di(e) {
|
|
4035
4056
|
let t;
|
|
4036
4057
|
function r(s, o) {
|
|
4037
4058
|
return (
|
|
4038
4059
|
/*isLoading*/
|
|
4039
|
-
s[3] === !0 ?
|
|
4060
|
+
s[3] === !0 ? mi : pi
|
|
4040
4061
|
);
|
|
4041
4062
|
}
|
|
4042
4063
|
let n = r(e), i = n(e);
|
|
4043
4064
|
return {
|
|
4044
4065
|
c() {
|
|
4045
|
-
t =
|
|
4066
|
+
t = A("div"), i.c(), S(t, "class", "CasinoProviders");
|
|
4046
4067
|
},
|
|
4047
4068
|
m(s, o) {
|
|
4048
|
-
|
|
4069
|
+
M(s, t, o), i.m(t, null), e[15](t);
|
|
4049
4070
|
},
|
|
4050
4071
|
p(s, [o]) {
|
|
4051
4072
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
4052
4073
|
},
|
|
4053
|
-
i:
|
|
4054
|
-
o:
|
|
4074
|
+
i: $,
|
|
4075
|
+
o: $,
|
|
4055
4076
|
d(s) {
|
|
4056
|
-
s && C(t), i.d(), e[
|
|
4077
|
+
s && C(t), i.d(), e[15](null);
|
|
4057
4078
|
}
|
|
4058
4079
|
};
|
|
4059
4080
|
}
|
|
4060
|
-
function
|
|
4081
|
+
function gi(e, t, r) {
|
|
4061
4082
|
let n;
|
|
4062
|
-
|
|
4063
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: a = "" } = t, l =
|
|
4064
|
-
const
|
|
4065
|
-
fetch(a).then((
|
|
4066
|
-
Object.keys(
|
|
4067
|
-
|
|
4083
|
+
Kt(e, ai, (b) => r(4, n = b));
|
|
4084
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: a = "" } = t, { mbsource: l } = t, c = [], f = [], g = [], d = !1, p;
|
|
4085
|
+
const v = () => {
|
|
4086
|
+
fetch(a).then((L) => L.json()).then((L) => {
|
|
4087
|
+
Object.keys(L).forEach((k) => {
|
|
4088
|
+
pt(k, L[k]);
|
|
4068
4089
|
});
|
|
4069
|
-
}).catch((
|
|
4070
|
-
console.log(
|
|
4090
|
+
}).catch((L) => {
|
|
4091
|
+
console.log(L);
|
|
4071
4092
|
});
|
|
4072
4093
|
};
|
|
4073
|
-
Object.keys(
|
|
4074
|
-
|
|
4094
|
+
Object.keys(Ke).forEach((b) => {
|
|
4095
|
+
pt(b, Ke[b]);
|
|
4075
4096
|
});
|
|
4076
|
-
const
|
|
4077
|
-
r(3,
|
|
4097
|
+
const m = () => {
|
|
4098
|
+
r(3, d = !0);
|
|
4078
4099
|
const b = new URL(`${i}/v1/casino/vendors`);
|
|
4079
|
-
b.searchParams.append("datasource", s), b.searchParams.append("language", o), b.searchParams.append("fields", "id,name,displayName,subVendors,isTopVendor,logo,games"), fetch(b).then((
|
|
4080
|
-
r(3,
|
|
4081
|
-
let
|
|
4082
|
-
|
|
4100
|
+
b.searchParams.append("datasource", s), b.searchParams.append("language", o), b.searchParams.append("fields", "id,name,displayName,subVendors,isTopVendor,logo,games"), fetch(b).then((L) => L.json()).then((L) => {
|
|
4101
|
+
r(3, d = !1), c = L.items.map((G) => G), r(1, f = c.filter((G) => G.isTopVendor === !0)), r(2, g = c.filter((G) => G.isTopVendor === !1));
|
|
4102
|
+
let k = [];
|
|
4103
|
+
k = c.flatMap((G) => G.subVendors), g.push(...k.filter((G) => G.games.count > 0));
|
|
4083
4104
|
});
|
|
4084
|
-
},
|
|
4105
|
+
}, H = (b, L, k) => {
|
|
4085
4106
|
window.postMessage(
|
|
4086
4107
|
{
|
|
4087
4108
|
type: "OpenGameProvider",
|
|
4088
4109
|
providerId: b,
|
|
4089
|
-
providerName:
|
|
4090
|
-
providerLogo:
|
|
4110
|
+
providerName: L,
|
|
4111
|
+
providerLogo: k
|
|
4091
4112
|
},
|
|
4092
4113
|
window.location.href
|
|
4093
4114
|
);
|
|
4094
|
-
},
|
|
4095
|
-
|
|
4096
|
-
},
|
|
4097
|
-
|
|
4098
|
-
b.innerHTML = u, d.appendChild(b);
|
|
4099
|
-
}, O = () => {
|
|
4100
|
-
let b = new URL(h), N = document.createElement("style");
|
|
4101
|
-
fetch(b.href).then((M) => M.text()).then((M) => {
|
|
4102
|
-
N.innerHTML = M, setTimeout(
|
|
4103
|
-
() => {
|
|
4104
|
-
d.appendChild(N);
|
|
4105
|
-
},
|
|
4106
|
-
1
|
|
4107
|
-
);
|
|
4108
|
-
});
|
|
4109
|
-
}, H = (b) => m(b.id, b.name, b.logo), I = (b) => m(b.id, b.name, b.logo);
|
|
4110
|
-
function ue(b) {
|
|
4115
|
+
}, B = () => {
|
|
4116
|
+
ui(o);
|
|
4117
|
+
}, O = (b) => H(b.id, b.name, b.logo), T = (b) => H(b.id, b.name, b.logo);
|
|
4118
|
+
function N(b) {
|
|
4111
4119
|
we[b ? "unshift" : "push"](() => {
|
|
4112
|
-
|
|
4120
|
+
p = b, r(0, p);
|
|
4113
4121
|
});
|
|
4114
4122
|
}
|
|
4115
4123
|
return e.$$set = (b) => {
|
|
4116
|
-
"endpoint" in b && r(6, i = b.endpoint), "datasource" in b && r(7, s = b.datasource), "lang" in b && r(8, o = b.lang), "clientstyling" in b && r(9, u = b.clientstyling), "clientstylingurl" in b && r(10, h = b.clientstylingurl), "translationurl" in b && r(11, a = b.translationurl);
|
|
4124
|
+
"endpoint" in b && r(6, i = b.endpoint), "datasource" in b && r(7, s = b.datasource), "lang" in b && r(8, o = b.lang), "clientstyling" in b && r(9, u = b.clientstyling), "clientstylingurl" in b && r(10, h = b.clientstylingurl), "translationurl" in b && r(11, a = b.translationurl), "mbsource" in b && r(12, l = b.mbsource);
|
|
4117
4125
|
}, e.$$.update = () => {
|
|
4118
4126
|
e.$$.dirty & /*endpoint, lang, datasource*/
|
|
4119
|
-
448 && i && o && s &&
|
|
4120
|
-
256 && o &&
|
|
4121
|
-
2048 && a &&
|
|
4122
|
-
513 && u &&
|
|
4123
|
-
1025 && h &&
|
|
4127
|
+
448 && i && o && s && m(), e.$$.dirty & /*lang*/
|
|
4128
|
+
256 && o && B(), e.$$.dirty & /*translationurl*/
|
|
4129
|
+
2048 && a && v(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4130
|
+
513 && u && p && hi(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4131
|
+
1025 && h && p && li(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4132
|
+
4097 && l && p && fi(p, `${l}.Style`);
|
|
4124
4133
|
}, [
|
|
4125
|
-
|
|
4126
|
-
c,
|
|
4134
|
+
p,
|
|
4127
4135
|
f,
|
|
4128
4136
|
g,
|
|
4137
|
+
d,
|
|
4129
4138
|
n,
|
|
4130
|
-
|
|
4139
|
+
H,
|
|
4131
4140
|
i,
|
|
4132
4141
|
s,
|
|
4133
4142
|
o,
|
|
4134
4143
|
u,
|
|
4135
4144
|
h,
|
|
4136
4145
|
a,
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4146
|
+
l,
|
|
4147
|
+
O,
|
|
4148
|
+
T,
|
|
4149
|
+
N
|
|
4140
4150
|
];
|
|
4141
4151
|
}
|
|
4142
|
-
class
|
|
4152
|
+
class bi extends br {
|
|
4143
4153
|
constructor(t) {
|
|
4144
|
-
super(),
|
|
4154
|
+
super(), dr(
|
|
4145
4155
|
this,
|
|
4146
4156
|
t,
|
|
4157
|
+
gi,
|
|
4147
4158
|
di,
|
|
4148
|
-
|
|
4149
|
-
yt,
|
|
4159
|
+
Et,
|
|
4150
4160
|
{
|
|
4151
4161
|
endpoint: 6,
|
|
4152
4162
|
datasource: 7,
|
|
4153
4163
|
lang: 8,
|
|
4154
4164
|
clientstyling: 9,
|
|
4155
4165
|
clientstylingurl: 10,
|
|
4156
|
-
translationurl: 11
|
|
4166
|
+
translationurl: 11,
|
|
4167
|
+
mbsource: 12
|
|
4157
4168
|
},
|
|
4158
|
-
|
|
4169
|
+
ci
|
|
4159
4170
|
);
|
|
4160
4171
|
}
|
|
4161
4172
|
get endpoint() {
|
|
4162
4173
|
return this.$$.ctx[6];
|
|
4163
4174
|
}
|
|
4164
4175
|
set endpoint(t) {
|
|
4165
|
-
this.$$set({ endpoint: t }),
|
|
4176
|
+
this.$$set({ endpoint: t }), D();
|
|
4166
4177
|
}
|
|
4167
4178
|
get datasource() {
|
|
4168
4179
|
return this.$$.ctx[7];
|
|
4169
4180
|
}
|
|
4170
4181
|
set datasource(t) {
|
|
4171
|
-
this.$$set({ datasource: t }),
|
|
4182
|
+
this.$$set({ datasource: t }), D();
|
|
4172
4183
|
}
|
|
4173
4184
|
get lang() {
|
|
4174
4185
|
return this.$$.ctx[8];
|
|
4175
4186
|
}
|
|
4176
4187
|
set lang(t) {
|
|
4177
|
-
this.$$set({ lang: t }),
|
|
4188
|
+
this.$$set({ lang: t }), D();
|
|
4178
4189
|
}
|
|
4179
4190
|
get clientstyling() {
|
|
4180
4191
|
return this.$$.ctx[9];
|
|
4181
4192
|
}
|
|
4182
4193
|
set clientstyling(t) {
|
|
4183
|
-
this.$$set({ clientstyling: t }),
|
|
4194
|
+
this.$$set({ clientstyling: t }), D();
|
|
4184
4195
|
}
|
|
4185
4196
|
get clientstylingurl() {
|
|
4186
4197
|
return this.$$.ctx[10];
|
|
4187
4198
|
}
|
|
4188
4199
|
set clientstylingurl(t) {
|
|
4189
|
-
this.$$set({ clientstylingurl: t }),
|
|
4200
|
+
this.$$set({ clientstylingurl: t }), D();
|
|
4190
4201
|
}
|
|
4191
4202
|
get translationurl() {
|
|
4192
4203
|
return this.$$.ctx[11];
|
|
4193
4204
|
}
|
|
4194
4205
|
set translationurl(t) {
|
|
4195
|
-
this.$$set({ translationurl: t }),
|
|
4206
|
+
this.$$set({ translationurl: t }), D();
|
|
4207
|
+
}
|
|
4208
|
+
get mbsource() {
|
|
4209
|
+
return this.$$.ctx[12];
|
|
4210
|
+
}
|
|
4211
|
+
set mbsource(t) {
|
|
4212
|
+
this.$$set({ mbsource: t }), D();
|
|
4196
4213
|
}
|
|
4197
4214
|
}
|
|
4198
|
-
|
|
4215
|
+
gr(bi, { endpoint: {}, datasource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
4199
4216
|
export {
|
|
4200
|
-
|
|
4217
|
+
bi as default
|
|
4201
4218
|
};
|