@everymatrix/casino-providers 1.54.0 → 1.54.2
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.
|
@@ -1,79 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
var qt = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var Ze = Object.getOwnPropertySymbols;
|
|
4
|
-
var Yt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Pe = (e, t, r) => t in e ? Qt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
6
|
-
for (var r in t || (t = {}))
|
|
7
|
-
Yt.call(t, r) && Pe(e, r, t[r]);
|
|
8
|
-
if (Ze)
|
|
9
|
-
for (var r of Ze(t))
|
|
10
|
-
Kt.call(t, r) && Pe(e, r, t[r]);
|
|
11
|
-
return e;
|
|
12
|
-
}, Je = (e, t) => Jt(e, qt(t));
|
|
13
|
-
var L = (e, t, r) => Pe(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var qe = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var s = (h) => {
|
|
16
|
-
try {
|
|
17
|
-
u(r.next(h));
|
|
18
|
-
} catch (a) {
|
|
19
|
-
i(a);
|
|
20
|
-
}
|
|
21
|
-
}, o = (h) => {
|
|
22
|
-
try {
|
|
23
|
-
u(r.throw(h));
|
|
24
|
-
} catch (a) {
|
|
25
|
-
i(a);
|
|
26
|
-
}
|
|
27
|
-
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
|
|
28
|
-
u((r = r.apply(e, t)).next());
|
|
29
|
-
});
|
|
30
|
-
function R() {
|
|
1
|
+
function $() {
|
|
31
2
|
}
|
|
32
|
-
function
|
|
3
|
+
function dt(e) {
|
|
33
4
|
return e();
|
|
34
5
|
}
|
|
35
|
-
function
|
|
6
|
+
function ze() {
|
|
36
7
|
return /* @__PURE__ */ Object.create(null);
|
|
37
8
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
9
|
+
function se(e) {
|
|
10
|
+
e.forEach(dt);
|
|
40
11
|
}
|
|
41
|
-
function
|
|
12
|
+
function Fe(e) {
|
|
42
13
|
return typeof e == "function";
|
|
43
14
|
}
|
|
44
|
-
function
|
|
15
|
+
function mt(e, t) {
|
|
45
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
17
|
}
|
|
47
|
-
let
|
|
48
|
-
function
|
|
49
|
-
return e === t ? !0 : (
|
|
18
|
+
let ue;
|
|
19
|
+
function de(e, t) {
|
|
20
|
+
return e === t ? !0 : (ue || (ue = document.createElement("a")), ue.href = t, e === ue.href);
|
|
50
21
|
}
|
|
51
|
-
function
|
|
22
|
+
function kt(e) {
|
|
52
23
|
return Object.keys(e).length === 0;
|
|
53
24
|
}
|
|
54
|
-
function
|
|
25
|
+
function gt(e, ...t) {
|
|
55
26
|
if (e == null) {
|
|
56
27
|
for (const n of t)
|
|
57
28
|
n(void 0);
|
|
58
|
-
return
|
|
29
|
+
return $;
|
|
59
30
|
}
|
|
60
31
|
const r = e.subscribe(...t);
|
|
61
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
33
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function Vt(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(gt(t, r));
|
|
65
36
|
}
|
|
66
37
|
function y(e, t) {
|
|
67
38
|
e.appendChild(t);
|
|
68
39
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
40
|
+
function Xt(e, t, r) {
|
|
41
|
+
const n = zt(e);
|
|
71
42
|
if (!n.getElementById(t)) {
|
|
72
43
|
const i = B("style");
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, Wt(n, i);
|
|
74
45
|
}
|
|
75
46
|
}
|
|
76
|
-
function
|
|
47
|
+
function zt(e) {
|
|
77
48
|
if (!e) return document;
|
|
78
49
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
79
50
|
return t && /** @type {ShadowRoot} */
|
|
@@ -82,49 +53,49 @@ function nr(e) {
|
|
|
82
53
|
t
|
|
83
54
|
) : e.ownerDocument;
|
|
84
55
|
}
|
|
85
|
-
function
|
|
56
|
+
function Wt(e, t) {
|
|
86
57
|
return y(
|
|
87
58
|
/** @type {Document} */
|
|
88
59
|
e.head || e,
|
|
89
60
|
t
|
|
90
61
|
), t.sheet;
|
|
91
62
|
}
|
|
92
|
-
function
|
|
63
|
+
function M(e, t, r) {
|
|
93
64
|
e.insertBefore(t, r || null);
|
|
94
65
|
}
|
|
95
|
-
function
|
|
66
|
+
function L(e) {
|
|
96
67
|
e.parentNode && e.parentNode.removeChild(e);
|
|
97
68
|
}
|
|
98
|
-
function
|
|
69
|
+
function We(e, t) {
|
|
99
70
|
for (let r = 0; r < e.length; r += 1)
|
|
100
71
|
e[r] && e[r].d(t);
|
|
101
72
|
}
|
|
102
73
|
function B(e) {
|
|
103
74
|
return document.createElement(e);
|
|
104
75
|
}
|
|
105
|
-
function
|
|
76
|
+
function R(e) {
|
|
106
77
|
return document.createTextNode(e);
|
|
107
78
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
79
|
+
function U() {
|
|
80
|
+
return R(" ");
|
|
110
81
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
82
|
+
function Zt() {
|
|
83
|
+
return R("");
|
|
113
84
|
}
|
|
114
|
-
function
|
|
85
|
+
function bt(e, t, r, n) {
|
|
115
86
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
116
87
|
}
|
|
117
88
|
function S(e, t, r) {
|
|
118
89
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
119
90
|
}
|
|
120
|
-
function
|
|
91
|
+
function Qt(e) {
|
|
121
92
|
return Array.from(e.childNodes);
|
|
122
93
|
}
|
|
123
|
-
function
|
|
94
|
+
function D(e, t) {
|
|
124
95
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
125
96
|
t);
|
|
126
97
|
}
|
|
127
|
-
function
|
|
98
|
+
function Jt(e) {
|
|
128
99
|
const t = {};
|
|
129
100
|
return e.childNodes.forEach(
|
|
130
101
|
/** @param {Element} node */
|
|
@@ -133,241 +104,237 @@ function ar(e) {
|
|
|
133
104
|
}
|
|
134
105
|
), t;
|
|
135
106
|
}
|
|
136
|
-
let
|
|
137
|
-
function
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
const
|
|
141
|
-
let
|
|
142
|
-
const
|
|
143
|
-
let
|
|
144
|
-
function
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
function
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
const
|
|
151
|
-
let
|
|
152
|
-
function
|
|
153
|
-
if (
|
|
107
|
+
let je;
|
|
108
|
+
function re(e) {
|
|
109
|
+
je = e;
|
|
110
|
+
}
|
|
111
|
+
const z = [], Oe = [];
|
|
112
|
+
let W = [];
|
|
113
|
+
const Ze = [], qt = /* @__PURE__ */ Promise.resolve();
|
|
114
|
+
let Ne = !1;
|
|
115
|
+
function Yt() {
|
|
116
|
+
Ne || (Ne = !0, qt.then(F));
|
|
117
|
+
}
|
|
118
|
+
function we(e) {
|
|
119
|
+
W.push(e);
|
|
120
|
+
}
|
|
121
|
+
const ye = /* @__PURE__ */ new Set();
|
|
122
|
+
let V = 0;
|
|
123
|
+
function F() {
|
|
124
|
+
if (V !== 0)
|
|
154
125
|
return;
|
|
155
|
-
const e =
|
|
126
|
+
const e = je;
|
|
156
127
|
do {
|
|
157
128
|
try {
|
|
158
|
-
for (;
|
|
159
|
-
const t =
|
|
160
|
-
|
|
129
|
+
for (; V < z.length; ) {
|
|
130
|
+
const t = z[V];
|
|
131
|
+
V++, re(t), Kt(t.$$);
|
|
161
132
|
}
|
|
162
133
|
} catch (t) {
|
|
163
|
-
throw
|
|
134
|
+
throw z.length = 0, V = 0, t;
|
|
164
135
|
}
|
|
165
|
-
for (
|
|
166
|
-
for (let t = 0; t <
|
|
167
|
-
const r =
|
|
168
|
-
|
|
136
|
+
for (re(null), z.length = 0, V = 0; Oe.length; ) Oe.pop()();
|
|
137
|
+
for (let t = 0; t < W.length; t += 1) {
|
|
138
|
+
const r = W[t];
|
|
139
|
+
ye.has(r) || (ye.add(r), r());
|
|
169
140
|
}
|
|
170
|
-
|
|
171
|
-
} while (
|
|
172
|
-
for (;
|
|
173
|
-
|
|
174
|
-
|
|
141
|
+
W.length = 0;
|
|
142
|
+
} while (z.length);
|
|
143
|
+
for (; Ze.length; )
|
|
144
|
+
Ze.pop()();
|
|
145
|
+
Ne = !1, ye.clear(), re(e);
|
|
175
146
|
}
|
|
176
|
-
function
|
|
147
|
+
function Kt(e) {
|
|
177
148
|
if (e.fragment !== null) {
|
|
178
|
-
e.update(),
|
|
149
|
+
e.update(), se(e.before_update);
|
|
179
150
|
const t = e.dirty;
|
|
180
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
151
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(we);
|
|
181
152
|
}
|
|
182
153
|
}
|
|
183
|
-
function
|
|
154
|
+
function er(e) {
|
|
184
155
|
const t = [], r = [];
|
|
185
|
-
|
|
156
|
+
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
186
157
|
}
|
|
187
|
-
const
|
|
188
|
-
function
|
|
189
|
-
e && e.i && (
|
|
158
|
+
const tr = /* @__PURE__ */ new Set();
|
|
159
|
+
function rr(e, t) {
|
|
160
|
+
e && e.i && (tr.delete(e), e.i(t));
|
|
190
161
|
}
|
|
191
|
-
function
|
|
192
|
-
return
|
|
162
|
+
function he(e) {
|
|
163
|
+
return e?.length !== void 0 ? e : Array.from(e);
|
|
193
164
|
}
|
|
194
|
-
function
|
|
165
|
+
function nr(e, t, r) {
|
|
195
166
|
const { fragment: n, after_update: i } = e.$$;
|
|
196
|
-
n && n.m(t, r),
|
|
197
|
-
const s = e.$$.on_mount.map(
|
|
198
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
199
|
-
}), i.forEach(
|
|
167
|
+
n && n.m(t, r), we(() => {
|
|
168
|
+
const s = e.$$.on_mount.map(dt).filter(Fe);
|
|
169
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : se(s), e.$$.on_mount = [];
|
|
170
|
+
}), i.forEach(we);
|
|
200
171
|
}
|
|
201
|
-
function
|
|
172
|
+
function ir(e, t) {
|
|
202
173
|
const r = e.$$;
|
|
203
|
-
r.fragment !== null && (
|
|
174
|
+
r.fragment !== null && (er(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
204
175
|
}
|
|
205
|
-
function
|
|
206
|
-
e.$$.dirty[0] === -1 && (
|
|
176
|
+
function sr(e, t) {
|
|
177
|
+
e.$$.dirty[0] === -1 && (z.push(e), Yt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
207
178
|
}
|
|
208
|
-
function
|
|
209
|
-
const
|
|
210
|
-
|
|
211
|
-
const
|
|
179
|
+
function or(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
180
|
+
const l = je;
|
|
181
|
+
re(e);
|
|
182
|
+
const u = e.$$ = {
|
|
212
183
|
fragment: null,
|
|
213
184
|
ctx: [],
|
|
214
185
|
// state
|
|
215
186
|
props: s,
|
|
216
|
-
update:
|
|
187
|
+
update: $,
|
|
217
188
|
not_equal: i,
|
|
218
|
-
bound:
|
|
189
|
+
bound: ze(),
|
|
219
190
|
// lifecycle
|
|
220
191
|
on_mount: [],
|
|
221
192
|
on_destroy: [],
|
|
222
193
|
on_disconnect: [],
|
|
223
194
|
before_update: [],
|
|
224
195
|
after_update: [],
|
|
225
|
-
context: new Map(t.context || (
|
|
196
|
+
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
226
197
|
// everything else
|
|
227
|
-
callbacks:
|
|
228
|
-
dirty:
|
|
198
|
+
callbacks: ze(),
|
|
199
|
+
dirty: a,
|
|
229
200
|
skip_bound: !1,
|
|
230
|
-
root: t.target ||
|
|
201
|
+
root: t.target || l.$$.root
|
|
231
202
|
};
|
|
232
|
-
o && o(
|
|
233
|
-
let
|
|
234
|
-
if (
|
|
203
|
+
o && o(u.root);
|
|
204
|
+
let h = !1;
|
|
205
|
+
if (u.ctx = r(e, t.props || {}, (c, f, ...g) => {
|
|
235
206
|
const m = g.length ? g[0] : f;
|
|
236
|
-
return
|
|
237
|
-
}),
|
|
207
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), h && sr(e, c)), f;
|
|
208
|
+
}), u.update(), h = !0, se(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
238
209
|
if (t.hydrate) {
|
|
239
|
-
const c =
|
|
240
|
-
|
|
210
|
+
const c = Qt(t.target);
|
|
211
|
+
u.fragment && u.fragment.l(c), c.forEach(L);
|
|
241
212
|
} else
|
|
242
|
-
|
|
243
|
-
t.intro &&
|
|
213
|
+
u.fragment && u.fragment.c();
|
|
214
|
+
t.intro && rr(e.$$.fragment), nr(e, t.target, t.anchor), F();
|
|
244
215
|
}
|
|
245
|
-
|
|
246
|
-
}
|
|
247
|
-
let
|
|
248
|
-
typeof HTMLElement == "function" && (
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
216
|
+
re(l);
|
|
217
|
+
}
|
|
218
|
+
let vt;
|
|
219
|
+
typeof HTMLElement == "function" && (vt = class extends HTMLElement {
|
|
220
|
+
/** The Svelte component constructor */
|
|
221
|
+
$$ctor;
|
|
222
|
+
/** Slots */
|
|
223
|
+
$$s;
|
|
224
|
+
/** The Svelte component instance */
|
|
225
|
+
$$c;
|
|
226
|
+
/** Whether or not the custom element is connected */
|
|
227
|
+
$$cn = !1;
|
|
228
|
+
/** Component props data */
|
|
229
|
+
$$d = {};
|
|
230
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
231
|
+
$$r = !1;
|
|
232
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
233
|
+
$$p_d = {};
|
|
234
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
235
|
+
$$l = {};
|
|
236
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
237
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
238
|
+
constructor(e, t, r) {
|
|
239
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
270
240
|
}
|
|
271
|
-
addEventListener(t, r
|
|
272
|
-
if (this.$$l[
|
|
273
|
-
const
|
|
274
|
-
this.$$l_u.set(
|
|
241
|
+
addEventListener(e, t, r) {
|
|
242
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
243
|
+
const n = this.$$c.$on(e, t);
|
|
244
|
+
this.$$l_u.set(t, n);
|
|
275
245
|
}
|
|
276
|
-
super.addEventListener(t, r
|
|
246
|
+
super.addEventListener(e, t, r);
|
|
277
247
|
}
|
|
278
|
-
removeEventListener(t, r
|
|
279
|
-
if (super.removeEventListener(t, r
|
|
280
|
-
const
|
|
281
|
-
|
|
248
|
+
removeEventListener(e, t, r) {
|
|
249
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
250
|
+
const n = this.$$l_u.get(t);
|
|
251
|
+
n && (n(), this.$$l_u.delete(t));
|
|
282
252
|
}
|
|
283
253
|
}
|
|
284
|
-
connectedCallback() {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}
|
|
304
|
-
};
|
|
254
|
+
async connectedCallback() {
|
|
255
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
256
|
+
let e = function(i) {
|
|
257
|
+
return () => {
|
|
258
|
+
let s;
|
|
259
|
+
return {
|
|
260
|
+
c: function() {
|
|
261
|
+
s = B("slot"), i !== "default" && S(s, "name", i);
|
|
262
|
+
},
|
|
263
|
+
/**
|
|
264
|
+
* @param {HTMLElement} target
|
|
265
|
+
* @param {HTMLElement} [anchor]
|
|
266
|
+
*/
|
|
267
|
+
m: function(l, u) {
|
|
268
|
+
M(l, s, u);
|
|
269
|
+
},
|
|
270
|
+
d: function(l) {
|
|
271
|
+
l && L(s);
|
|
272
|
+
}
|
|
305
273
|
};
|
|
306
274
|
};
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
275
|
+
};
|
|
276
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
277
|
+
return;
|
|
278
|
+
const t = {}, r = Jt(this);
|
|
279
|
+
for (const i of this.$$s)
|
|
280
|
+
i in r && (t[i] = [e(i)]);
|
|
281
|
+
for (const i of this.attributes) {
|
|
282
|
+
const s = this.$$g_p(i.name);
|
|
283
|
+
s in this.$$d || (this.$$d[s] = fe(s, i.value, this.$$p_d, "toProp"));
|
|
284
|
+
}
|
|
285
|
+
for (const i in this.$$p_d)
|
|
286
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
287
|
+
this.$$c = new this.$$ctor({
|
|
288
|
+
target: this.shadowRoot || this,
|
|
289
|
+
props: {
|
|
290
|
+
...this.$$d,
|
|
291
|
+
$$slots: t,
|
|
292
|
+
$$scope: {
|
|
293
|
+
ctx: []
|
|
294
|
+
}
|
|
315
295
|
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
this.$$
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
this.$$r = !0;
|
|
329
|
-
for (const s in this.$$p_d)
|
|
330
|
-
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
331
|
-
const o = ce(
|
|
332
|
-
s,
|
|
333
|
-
this.$$d[s],
|
|
334
|
-
this.$$p_d,
|
|
335
|
-
"toAttribute"
|
|
336
|
-
);
|
|
337
|
-
o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
|
|
338
|
-
}
|
|
339
|
-
this.$$r = !1;
|
|
340
|
-
};
|
|
341
|
-
this.$$c.$$.after_update.push(i), i();
|
|
342
|
-
for (const s in this.$$l)
|
|
343
|
-
for (const o of this.$$l[s]) {
|
|
344
|
-
const u = this.$$c.$on(s, o);
|
|
345
|
-
this.$$l_u.set(o, u);
|
|
296
|
+
});
|
|
297
|
+
const n = () => {
|
|
298
|
+
this.$$r = !0;
|
|
299
|
+
for (const i in this.$$p_d)
|
|
300
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
301
|
+
const s = fe(
|
|
302
|
+
i,
|
|
303
|
+
this.$$d[i],
|
|
304
|
+
this.$$p_d,
|
|
305
|
+
"toAttribute"
|
|
306
|
+
);
|
|
307
|
+
s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
|
|
346
308
|
}
|
|
347
|
-
this.$$
|
|
348
|
-
}
|
|
349
|
-
|
|
309
|
+
this.$$r = !1;
|
|
310
|
+
};
|
|
311
|
+
this.$$c.$$.after_update.push(n), n();
|
|
312
|
+
for (const i in this.$$l)
|
|
313
|
+
for (const s of this.$$l[i]) {
|
|
314
|
+
const o = this.$$c.$on(i, s);
|
|
315
|
+
this.$$l_u.set(s, o);
|
|
316
|
+
}
|
|
317
|
+
this.$$l = {};
|
|
318
|
+
}
|
|
350
319
|
}
|
|
351
320
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
352
321
|
// and setting attributes through setAttribute etc, this is helpful
|
|
353
|
-
attributeChangedCallback(t, r
|
|
354
|
-
|
|
355
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ce(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
322
|
+
attributeChangedCallback(e, t, r) {
|
|
323
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = fe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
356
324
|
}
|
|
357
325
|
disconnectedCallback() {
|
|
358
326
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
359
327
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
360
328
|
});
|
|
361
329
|
}
|
|
362
|
-
$$g_p(
|
|
330
|
+
$$g_p(e) {
|
|
363
331
|
return Object.keys(this.$$p_d).find(
|
|
364
|
-
(
|
|
365
|
-
) ||
|
|
332
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
333
|
+
) || e;
|
|
366
334
|
}
|
|
367
335
|
});
|
|
368
|
-
function
|
|
369
|
-
|
|
370
|
-
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
336
|
+
function fe(e, t, r, n) {
|
|
337
|
+
const i = r[e]?.type;
|
|
371
338
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
372
339
|
return t;
|
|
373
340
|
if (n === "toAttribute")
|
|
@@ -378,7 +345,7 @@ function ce(e, t, r, n) {
|
|
|
378
345
|
case "Boolean":
|
|
379
346
|
return t ? "" : null;
|
|
380
347
|
case "Number":
|
|
381
|
-
return t
|
|
348
|
+
return t ?? null;
|
|
382
349
|
default:
|
|
383
350
|
return t;
|
|
384
351
|
}
|
|
@@ -395,59 +362,55 @@ function ce(e, t, r, n) {
|
|
|
395
362
|
return t;
|
|
396
363
|
}
|
|
397
364
|
}
|
|
398
|
-
function
|
|
399
|
-
let o = class extends
|
|
365
|
+
function ar(e, t, r, n, i, s) {
|
|
366
|
+
let o = class extends vt {
|
|
400
367
|
constructor() {
|
|
401
368
|
super(e, r, i), this.$$p_d = t;
|
|
402
369
|
}
|
|
403
370
|
static get observedAttributes() {
|
|
404
371
|
return Object.keys(t).map(
|
|
405
|
-
(
|
|
372
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
406
373
|
);
|
|
407
374
|
}
|
|
408
375
|
};
|
|
409
|
-
return Object.keys(t).forEach((
|
|
410
|
-
Object.defineProperty(o.prototype,
|
|
376
|
+
return Object.keys(t).forEach((a) => {
|
|
377
|
+
Object.defineProperty(o.prototype, a, {
|
|
411
378
|
get() {
|
|
412
|
-
return this.$$c &&
|
|
379
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
413
380
|
},
|
|
414
|
-
set(
|
|
415
|
-
|
|
416
|
-
h = ce(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
|
|
381
|
+
set(l) {
|
|
382
|
+
l = fe(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
417
383
|
}
|
|
418
384
|
});
|
|
419
|
-
}), n.forEach((
|
|
420
|
-
Object.defineProperty(o.prototype,
|
|
385
|
+
}), n.forEach((a) => {
|
|
386
|
+
Object.defineProperty(o.prototype, a, {
|
|
421
387
|
get() {
|
|
422
|
-
|
|
423
|
-
return (h = this.$$c) == null ? void 0 : h[u];
|
|
388
|
+
return this.$$c?.[a];
|
|
424
389
|
}
|
|
425
390
|
});
|
|
426
391
|
}), e.element = /** @type {any} */
|
|
427
392
|
o, o;
|
|
428
393
|
}
|
|
429
|
-
class
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
L(this, "$$set");
|
|
447
|
-
}
|
|
394
|
+
class ur {
|
|
395
|
+
/**
|
|
396
|
+
* ### PRIVATE API
|
|
397
|
+
*
|
|
398
|
+
* Do not use, may change at any time
|
|
399
|
+
*
|
|
400
|
+
* @type {any}
|
|
401
|
+
*/
|
|
402
|
+
$$ = void 0;
|
|
403
|
+
/**
|
|
404
|
+
* ### PRIVATE API
|
|
405
|
+
*
|
|
406
|
+
* Do not use, may change at any time
|
|
407
|
+
*
|
|
408
|
+
* @type {any}
|
|
409
|
+
*/
|
|
410
|
+
$$set = void 0;
|
|
448
411
|
/** @returns {void} */
|
|
449
412
|
$destroy() {
|
|
450
|
-
|
|
413
|
+
ir(this, 1), this.$destroy = $;
|
|
451
414
|
}
|
|
452
415
|
/**
|
|
453
416
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -456,8 +419,8 @@ class Er {
|
|
|
456
419
|
* @returns {() => void}
|
|
457
420
|
*/
|
|
458
421
|
$on(t, r) {
|
|
459
|
-
if (!
|
|
460
|
-
return
|
|
422
|
+
if (!Fe(r))
|
|
423
|
+
return $;
|
|
461
424
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
462
425
|
return n.push(r), () => {
|
|
463
426
|
const i = n.indexOf(r);
|
|
@@ -469,12 +432,12 @@ class Er {
|
|
|
469
432
|
* @returns {void}
|
|
470
433
|
*/
|
|
471
434
|
$set(t) {
|
|
472
|
-
this.$$set && !
|
|
435
|
+
this.$$set && !kt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
473
436
|
}
|
|
474
437
|
}
|
|
475
|
-
const
|
|
476
|
-
typeof window
|
|
477
|
-
const
|
|
438
|
+
const hr = "4";
|
|
439
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(hr);
|
|
440
|
+
const Qe = {
|
|
478
441
|
en: {
|
|
479
442
|
popularProviders: "Popular Suppliers",
|
|
480
443
|
otherProviders: "Other Suppliers",
|
|
@@ -583,154 +546,154 @@ const tt = {
|
|
|
583
546
|
loading: "Loading, please wait...",
|
|
584
547
|
games: "games"
|
|
585
548
|
}
|
|
586
|
-
},
|
|
587
|
-
function
|
|
549
|
+
}, X = [];
|
|
550
|
+
function lr(e, t) {
|
|
588
551
|
return {
|
|
589
|
-
subscribe:
|
|
552
|
+
subscribe: be(e, t).subscribe
|
|
590
553
|
};
|
|
591
554
|
}
|
|
592
|
-
function
|
|
555
|
+
function be(e, t = $) {
|
|
593
556
|
let r;
|
|
594
557
|
const n = /* @__PURE__ */ new Set();
|
|
595
|
-
function i(
|
|
596
|
-
if (
|
|
597
|
-
const
|
|
598
|
-
for (const
|
|
599
|
-
|
|
600
|
-
if (
|
|
601
|
-
for (let
|
|
602
|
-
|
|
603
|
-
|
|
558
|
+
function i(a) {
|
|
559
|
+
if (mt(e, a) && (e = a, r)) {
|
|
560
|
+
const l = !X.length;
|
|
561
|
+
for (const u of n)
|
|
562
|
+
u[1](), X.push(u, e);
|
|
563
|
+
if (l) {
|
|
564
|
+
for (let u = 0; u < X.length; u += 2)
|
|
565
|
+
X[u][0](X[u + 1]);
|
|
566
|
+
X.length = 0;
|
|
604
567
|
}
|
|
605
568
|
}
|
|
606
569
|
}
|
|
607
|
-
function s(
|
|
608
|
-
i(
|
|
570
|
+
function s(a) {
|
|
571
|
+
i(a(e));
|
|
609
572
|
}
|
|
610
|
-
function o(
|
|
611
|
-
const
|
|
612
|
-
return n.add(
|
|
613
|
-
n.delete(
|
|
573
|
+
function o(a, l = $) {
|
|
574
|
+
const u = [a, l];
|
|
575
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || $), a(e), () => {
|
|
576
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
614
577
|
};
|
|
615
578
|
}
|
|
616
579
|
return { set: i, update: s, subscribe: o };
|
|
617
580
|
}
|
|
618
|
-
function
|
|
581
|
+
function Y(e, t, r) {
|
|
619
582
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
620
583
|
if (!i.every(Boolean))
|
|
621
584
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
622
585
|
const s = t.length < 2;
|
|
623
|
-
return
|
|
624
|
-
let
|
|
625
|
-
const
|
|
626
|
-
let
|
|
586
|
+
return lr(r, (o, a) => {
|
|
587
|
+
let l = !1;
|
|
588
|
+
const u = [];
|
|
589
|
+
let h = 0, c = $;
|
|
627
590
|
const f = () => {
|
|
628
|
-
if (
|
|
591
|
+
if (h)
|
|
629
592
|
return;
|
|
630
593
|
c();
|
|
631
|
-
const m = t(n ?
|
|
632
|
-
s ? o(m) : c =
|
|
594
|
+
const m = t(n ? u[0] : u, o, a);
|
|
595
|
+
s ? o(m) : c = Fe(m) ? m : $;
|
|
633
596
|
}, g = i.map(
|
|
634
|
-
(m, p) =>
|
|
597
|
+
(m, p) => gt(
|
|
635
598
|
m,
|
|
636
599
|
(v) => {
|
|
637
|
-
|
|
600
|
+
u[p] = v, h &= ~(1 << p), l && f();
|
|
638
601
|
},
|
|
639
602
|
() => {
|
|
640
|
-
|
|
603
|
+
h |= 1 << p;
|
|
641
604
|
}
|
|
642
605
|
)
|
|
643
606
|
);
|
|
644
|
-
return
|
|
645
|
-
|
|
607
|
+
return l = !0, f(), function() {
|
|
608
|
+
se(g), c(), l = !1;
|
|
646
609
|
};
|
|
647
610
|
});
|
|
648
611
|
}
|
|
649
|
-
function
|
|
612
|
+
function fr(e) {
|
|
650
613
|
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
651
614
|
}
|
|
652
|
-
var
|
|
653
|
-
return
|
|
615
|
+
var cr = function(t) {
|
|
616
|
+
return pr(t) && !dr(t);
|
|
654
617
|
};
|
|
655
|
-
function
|
|
618
|
+
function pr(e) {
|
|
656
619
|
return !!e && typeof e == "object";
|
|
657
620
|
}
|
|
658
|
-
function
|
|
621
|
+
function dr(e) {
|
|
659
622
|
var t = Object.prototype.toString.call(e);
|
|
660
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
623
|
+
return t === "[object RegExp]" || t === "[object Date]" || br(e);
|
|
661
624
|
}
|
|
662
|
-
var
|
|
663
|
-
function
|
|
664
|
-
return e.$$typeof ===
|
|
625
|
+
var mr = typeof Symbol == "function" && Symbol.for, gr = mr ? Symbol.for("react.element") : 60103;
|
|
626
|
+
function br(e) {
|
|
627
|
+
return e.$$typeof === gr;
|
|
665
628
|
}
|
|
666
|
-
function
|
|
629
|
+
function vr(e) {
|
|
667
630
|
return Array.isArray(e) ? [] : {};
|
|
668
631
|
}
|
|
669
|
-
function
|
|
670
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
632
|
+
function ne(e, t) {
|
|
633
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Z(vr(e), e, t) : e;
|
|
671
634
|
}
|
|
672
|
-
function
|
|
635
|
+
function _r(e, t, r) {
|
|
673
636
|
return e.concat(t).map(function(n) {
|
|
674
|
-
return
|
|
637
|
+
return ne(n, r);
|
|
675
638
|
});
|
|
676
639
|
}
|
|
677
|
-
function
|
|
640
|
+
function Er(e, t) {
|
|
678
641
|
if (!t.customMerge)
|
|
679
|
-
return
|
|
642
|
+
return Z;
|
|
680
643
|
var r = t.customMerge(e);
|
|
681
|
-
return typeof r == "function" ? r :
|
|
644
|
+
return typeof r == "function" ? r : Z;
|
|
682
645
|
}
|
|
683
|
-
function
|
|
646
|
+
function xr(e) {
|
|
684
647
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
685
648
|
return Object.propertyIsEnumerable.call(e, t);
|
|
686
649
|
}) : [];
|
|
687
650
|
}
|
|
688
|
-
function
|
|
689
|
-
return Object.keys(e).concat(
|
|
651
|
+
function Je(e) {
|
|
652
|
+
return Object.keys(e).concat(xr(e));
|
|
690
653
|
}
|
|
691
|
-
function
|
|
654
|
+
function _t(e, t) {
|
|
692
655
|
try {
|
|
693
656
|
return t in e;
|
|
694
|
-
} catch
|
|
657
|
+
} catch {
|
|
695
658
|
return !1;
|
|
696
659
|
}
|
|
697
660
|
}
|
|
698
|
-
function
|
|
699
|
-
return
|
|
661
|
+
function yr(e, t) {
|
|
662
|
+
return _t(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
700
663
|
}
|
|
701
|
-
function
|
|
664
|
+
function Pr(e, t, r) {
|
|
702
665
|
var n = {};
|
|
703
|
-
return r.isMergeableObject(e) &&
|
|
704
|
-
n[i] =
|
|
705
|
-
}),
|
|
706
|
-
|
|
666
|
+
return r.isMergeableObject(e) && Je(e).forEach(function(i) {
|
|
667
|
+
n[i] = ne(e[i], r);
|
|
668
|
+
}), Je(t).forEach(function(i) {
|
|
669
|
+
yr(e, i) || (_t(e, i) && r.isMergeableObject(t[i]) ? n[i] = Er(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
|
|
707
670
|
}), n;
|
|
708
671
|
}
|
|
709
|
-
function
|
|
710
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
672
|
+
function Z(e, t, r) {
|
|
673
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || _r, r.isMergeableObject = r.isMergeableObject || cr, r.cloneUnlessOtherwiseSpecified = ne;
|
|
711
674
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
712
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
675
|
+
return s ? n ? r.arrayMerge(e, t, r) : Pr(e, t, r) : ne(t, r);
|
|
713
676
|
}
|
|
714
|
-
|
|
677
|
+
Z.all = function(t, r) {
|
|
715
678
|
if (!Array.isArray(t))
|
|
716
679
|
throw new Error("first argument should be an array");
|
|
717
680
|
return t.reduce(function(n, i) {
|
|
718
|
-
return
|
|
681
|
+
return Z(n, i, r);
|
|
719
682
|
}, {});
|
|
720
683
|
};
|
|
721
|
-
var
|
|
722
|
-
const
|
|
723
|
-
var
|
|
724
|
-
return
|
|
684
|
+
var Hr = Z, Tr = Hr;
|
|
685
|
+
const Sr = /* @__PURE__ */ fr(Tr);
|
|
686
|
+
var Ie = function(e, t) {
|
|
687
|
+
return Ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
725
688
|
r.__proto__ = n;
|
|
726
689
|
} || function(r, n) {
|
|
727
690
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
728
|
-
},
|
|
691
|
+
}, Ie(e, t);
|
|
729
692
|
};
|
|
730
|
-
function
|
|
693
|
+
function ve(e, t) {
|
|
731
694
|
if (typeof t != "function" && t !== null)
|
|
732
695
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
733
|
-
|
|
696
|
+
Ie(e, t);
|
|
734
697
|
function r() {
|
|
735
698
|
this.constructor = e;
|
|
736
699
|
}
|
|
@@ -745,7 +708,7 @@ var x = function() {
|
|
|
745
708
|
return t;
|
|
746
709
|
}, x.apply(this, arguments);
|
|
747
710
|
};
|
|
748
|
-
function
|
|
711
|
+
function Ar(e, t) {
|
|
749
712
|
var r = {};
|
|
750
713
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
751
714
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -753,45 +716,45 @@ function Ur(e, t) {
|
|
|
753
716
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
754
717
|
return r;
|
|
755
718
|
}
|
|
756
|
-
function
|
|
719
|
+
function Pe(e, t, r) {
|
|
757
720
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
758
721
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
759
722
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
760
723
|
}
|
|
761
|
-
function
|
|
762
|
-
var r = t && t.cache ? t.cache :
|
|
724
|
+
function He(e, t) {
|
|
725
|
+
var r = t && t.cache ? t.cache : Cr, n = t && t.serializer ? t.serializer : Ir, i = t && t.strategy ? t.strategy : Or;
|
|
763
726
|
return i(e, {
|
|
764
727
|
cache: r,
|
|
765
728
|
serializer: n
|
|
766
729
|
});
|
|
767
730
|
}
|
|
768
|
-
function
|
|
731
|
+
function Br(e) {
|
|
769
732
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
770
733
|
}
|
|
771
|
-
function
|
|
772
|
-
var i =
|
|
773
|
-
return typeof s
|
|
734
|
+
function Et(e, t, r, n) {
|
|
735
|
+
var i = Br(n) ? n : r(n), s = t.get(i);
|
|
736
|
+
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
774
737
|
}
|
|
775
|
-
function
|
|
738
|
+
function xt(e, t, r) {
|
|
776
739
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
777
|
-
return typeof s
|
|
740
|
+
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
778
741
|
}
|
|
779
|
-
function
|
|
742
|
+
function ke(e, t, r, n, i) {
|
|
780
743
|
return r.bind(t, e, n, i);
|
|
781
744
|
}
|
|
782
|
-
function
|
|
783
|
-
var r = e.length === 1 ?
|
|
784
|
-
return
|
|
745
|
+
function Or(e, t) {
|
|
746
|
+
var r = e.length === 1 ? Et : xt;
|
|
747
|
+
return ke(e, this, r, t.cache.create(), t.serializer);
|
|
785
748
|
}
|
|
786
|
-
function
|
|
787
|
-
return
|
|
749
|
+
function Nr(e, t) {
|
|
750
|
+
return ke(e, this, xt, t.cache.create(), t.serializer);
|
|
788
751
|
}
|
|
789
|
-
function
|
|
790
|
-
return
|
|
752
|
+
function wr(e, t) {
|
|
753
|
+
return ke(e, this, Et, t.cache.create(), t.serializer);
|
|
791
754
|
}
|
|
792
|
-
var
|
|
755
|
+
var Ir = function() {
|
|
793
756
|
return JSON.stringify(arguments);
|
|
794
|
-
},
|
|
757
|
+
}, Lr = (
|
|
795
758
|
/** @class */
|
|
796
759
|
function() {
|
|
797
760
|
function e() {
|
|
@@ -803,62 +766,62 @@ var kr = function() {
|
|
|
803
766
|
this.cache[t] = r;
|
|
804
767
|
}, e;
|
|
805
768
|
}()
|
|
806
|
-
),
|
|
769
|
+
), Cr = {
|
|
807
770
|
create: function() {
|
|
808
|
-
return new
|
|
771
|
+
return new Lr();
|
|
809
772
|
}
|
|
810
|
-
},
|
|
811
|
-
variadic:
|
|
812
|
-
monadic:
|
|
813
|
-
},
|
|
773
|
+
}, Te = {
|
|
774
|
+
variadic: Nr,
|
|
775
|
+
monadic: wr
|
|
776
|
+
}, _;
|
|
814
777
|
(function(e) {
|
|
815
778
|
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
|
-
})(
|
|
779
|
+
})(_ || (_ = {}));
|
|
817
780
|
var P;
|
|
818
781
|
(function(e) {
|
|
819
782
|
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";
|
|
820
783
|
})(P || (P = {}));
|
|
821
|
-
var
|
|
784
|
+
var Q;
|
|
822
785
|
(function(e) {
|
|
823
786
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
824
|
-
})(
|
|
825
|
-
function
|
|
787
|
+
})(Q || (Q = {}));
|
|
788
|
+
function qe(e) {
|
|
826
789
|
return e.type === P.literal;
|
|
827
790
|
}
|
|
828
|
-
function
|
|
791
|
+
function Mr(e) {
|
|
829
792
|
return e.type === P.argument;
|
|
830
793
|
}
|
|
831
|
-
function
|
|
794
|
+
function yt(e) {
|
|
832
795
|
return e.type === P.number;
|
|
833
796
|
}
|
|
834
|
-
function
|
|
797
|
+
function Pt(e) {
|
|
835
798
|
return e.type === P.date;
|
|
836
799
|
}
|
|
837
|
-
function
|
|
800
|
+
function Ht(e) {
|
|
838
801
|
return e.type === P.time;
|
|
839
802
|
}
|
|
840
|
-
function
|
|
803
|
+
function Tt(e) {
|
|
841
804
|
return e.type === P.select;
|
|
842
805
|
}
|
|
843
|
-
function
|
|
806
|
+
function St(e) {
|
|
844
807
|
return e.type === P.plural;
|
|
845
808
|
}
|
|
846
|
-
function
|
|
809
|
+
function $r(e) {
|
|
847
810
|
return e.type === P.pound;
|
|
848
811
|
}
|
|
849
|
-
function
|
|
812
|
+
function At(e) {
|
|
850
813
|
return e.type === P.tag;
|
|
851
814
|
}
|
|
852
|
-
function
|
|
853
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
815
|
+
function Bt(e) {
|
|
816
|
+
return !!(e && typeof e == "object" && e.type === Q.number);
|
|
854
817
|
}
|
|
855
|
-
function
|
|
856
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
818
|
+
function Le(e) {
|
|
819
|
+
return !!(e && typeof e == "object" && e.type === Q.dateTime);
|
|
857
820
|
}
|
|
858
|
-
var
|
|
859
|
-
function
|
|
821
|
+
var Ot = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Rr = /(?:[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;
|
|
822
|
+
function Ur(e) {
|
|
860
823
|
var t = {};
|
|
861
|
-
return e.replace(
|
|
824
|
+
return e.replace(Rr, function(r) {
|
|
862
825
|
var n = r.length;
|
|
863
826
|
switch (r[0]) {
|
|
864
827
|
case "G":
|
|
@@ -947,36 +910,36 @@ function Qr(e) {
|
|
|
947
910
|
return "";
|
|
948
911
|
}), t;
|
|
949
912
|
}
|
|
950
|
-
var
|
|
951
|
-
function
|
|
913
|
+
var Gr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
914
|
+
function Dr(e) {
|
|
952
915
|
if (e.length === 0)
|
|
953
916
|
throw new Error("Number skeleton cannot be empty");
|
|
954
|
-
for (var t = e.split(
|
|
917
|
+
for (var t = e.split(Gr).filter(function(f) {
|
|
955
918
|
return f.length > 0;
|
|
956
919
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
957
920
|
var s = i[n], o = s.split("/");
|
|
958
921
|
if (o.length === 0)
|
|
959
922
|
throw new Error("Invalid number skeleton");
|
|
960
|
-
for (var
|
|
961
|
-
var c =
|
|
923
|
+
for (var a = o[0], l = o.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
924
|
+
var c = h[u];
|
|
962
925
|
if (c.length === 0)
|
|
963
926
|
throw new Error("Invalid number skeleton");
|
|
964
927
|
}
|
|
965
|
-
r.push({ stem:
|
|
928
|
+
r.push({ stem: a, options: l });
|
|
966
929
|
}
|
|
967
930
|
return r;
|
|
968
931
|
}
|
|
969
|
-
function
|
|
932
|
+
function Fr(e) {
|
|
970
933
|
return e.replace(/^(.*?)-/, "");
|
|
971
934
|
}
|
|
972
|
-
var
|
|
973
|
-
function
|
|
935
|
+
var Ye = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Nt = /^(@+)?(\+|#+)?[rs]?$/g, jr = /(\*)(0+)|(#+)(0+)|(0+)/g, wt = /^(0+)$/;
|
|
936
|
+
function Ke(e) {
|
|
974
937
|
var t = {};
|
|
975
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
938
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Nt, function(r, n, i) {
|
|
976
939
|
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)), "";
|
|
977
940
|
}), t;
|
|
978
941
|
}
|
|
979
|
-
function
|
|
942
|
+
function It(e) {
|
|
980
943
|
switch (e) {
|
|
981
944
|
case "sign-auto":
|
|
982
945
|
return {
|
|
@@ -1016,7 +979,7 @@ function Ut(e) {
|
|
|
1016
979
|
};
|
|
1017
980
|
}
|
|
1018
981
|
}
|
|
1019
|
-
function
|
|
982
|
+
function kr(e) {
|
|
1020
983
|
var t;
|
|
1021
984
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1022
985
|
notation: "engineering"
|
|
@@ -1024,17 +987,17 @@ function en(e) {
|
|
|
1024
987
|
notation: "scientific"
|
|
1025
988
|
}, e = e.slice(1)), t) {
|
|
1026
989
|
var r = e.slice(0, 2);
|
|
1027
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
990
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !wt.test(e))
|
|
1028
991
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1029
992
|
t.minimumIntegerDigits = e.length;
|
|
1030
993
|
}
|
|
1031
994
|
return t;
|
|
1032
995
|
}
|
|
1033
|
-
function
|
|
1034
|
-
var t = {}, r =
|
|
996
|
+
function et(e) {
|
|
997
|
+
var t = {}, r = It(e);
|
|
1035
998
|
return r || t;
|
|
1036
999
|
}
|
|
1037
|
-
function
|
|
1000
|
+
function Vr(e) {
|
|
1038
1001
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1039
1002
|
var i = n[r];
|
|
1040
1003
|
switch (i.stem) {
|
|
@@ -1058,7 +1021,7 @@ function tn(e) {
|
|
|
1058
1021
|
continue;
|
|
1059
1022
|
case "measure-unit":
|
|
1060
1023
|
case "unit":
|
|
1061
|
-
t.style = "unit", t.unit =
|
|
1024
|
+
t.style = "unit", t.unit = Fr(i.options[0]);
|
|
1062
1025
|
continue;
|
|
1063
1026
|
case "compact-short":
|
|
1064
1027
|
case "K":
|
|
@@ -1069,13 +1032,13 @@ function tn(e) {
|
|
|
1069
1032
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1070
1033
|
continue;
|
|
1071
1034
|
case "scientific":
|
|
1072
|
-
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
1073
|
-
return x(x({},
|
|
1035
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1036
|
+
return x(x({}, l), et(u));
|
|
1074
1037
|
}, {}));
|
|
1075
1038
|
continue;
|
|
1076
1039
|
case "engineering":
|
|
1077
|
-
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
1078
|
-
return x(x({},
|
|
1040
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1041
|
+
return x(x({}, l), et(u));
|
|
1079
1042
|
}, {}));
|
|
1080
1043
|
continue;
|
|
1081
1044
|
case "notation-simple":
|
|
@@ -1120,9 +1083,9 @@ function tn(e) {
|
|
|
1120
1083
|
case "integer-width":
|
|
1121
1084
|
if (i.options.length > 1)
|
|
1122
1085
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1123
|
-
i.options[0].replace(
|
|
1124
|
-
if (
|
|
1125
|
-
t.minimumIntegerDigits =
|
|
1086
|
+
i.options[0].replace(jr, function(l, u, h, c, f, g) {
|
|
1087
|
+
if (u)
|
|
1088
|
+
t.minimumIntegerDigits = h.length;
|
|
1126
1089
|
else {
|
|
1127
1090
|
if (c && f)
|
|
1128
1091
|
throw new Error("We currently do not support maximum integer digits");
|
|
@@ -1133,32 +1096,32 @@ function tn(e) {
|
|
|
1133
1096
|
});
|
|
1134
1097
|
continue;
|
|
1135
1098
|
}
|
|
1136
|
-
if (
|
|
1099
|
+
if (wt.test(i.stem)) {
|
|
1137
1100
|
t.minimumIntegerDigits = i.stem.length;
|
|
1138
1101
|
continue;
|
|
1139
1102
|
}
|
|
1140
|
-
if (
|
|
1103
|
+
if (Ye.test(i.stem)) {
|
|
1141
1104
|
if (i.options.length > 1)
|
|
1142
1105
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1143
|
-
i.stem.replace(
|
|
1144
|
-
return
|
|
1106
|
+
i.stem.replace(Ye, function(l, u, h, c, f, g) {
|
|
1107
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && g ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1145
1108
|
});
|
|
1146
1109
|
var s = i.options[0];
|
|
1147
|
-
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t),
|
|
1110
|
+
s === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = x(x({}, t), Ke(s)));
|
|
1148
1111
|
continue;
|
|
1149
1112
|
}
|
|
1150
|
-
if (
|
|
1151
|
-
t = x(x({}, t),
|
|
1113
|
+
if (Nt.test(i.stem)) {
|
|
1114
|
+
t = x(x({}, t), Ke(i.stem));
|
|
1152
1115
|
continue;
|
|
1153
1116
|
}
|
|
1154
|
-
var o =
|
|
1117
|
+
var o = It(i.stem);
|
|
1155
1118
|
o && (t = x(x({}, t), o));
|
|
1156
|
-
var
|
|
1157
|
-
|
|
1119
|
+
var a = kr(i.stem);
|
|
1120
|
+
a && (t = x(x({}, t), a));
|
|
1158
1121
|
}
|
|
1159
1122
|
return t;
|
|
1160
1123
|
}
|
|
1161
|
-
var
|
|
1124
|
+
var le = {
|
|
1162
1125
|
"001": [
|
|
1163
1126
|
"H",
|
|
1164
1127
|
"h"
|
|
@@ -2573,22 +2536,22 @@ var fe = {
|
|
|
2573
2536
|
"h"
|
|
2574
2537
|
]
|
|
2575
2538
|
};
|
|
2576
|
-
function
|
|
2539
|
+
function Xr(e, t) {
|
|
2577
2540
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2578
2541
|
var i = e.charAt(n);
|
|
2579
2542
|
if (i === "j") {
|
|
2580
2543
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2581
2544
|
s++, n++;
|
|
2582
|
-
var o = 1 + (s & 1),
|
|
2583
|
-
for ((
|
|
2584
|
-
r +=
|
|
2545
|
+
var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = zr(t);
|
|
2546
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2547
|
+
r += l;
|
|
2585
2548
|
for (; o-- > 0; )
|
|
2586
|
-
r =
|
|
2549
|
+
r = u + r;
|
|
2587
2550
|
} else i === "J" ? r += "H" : r += i;
|
|
2588
2551
|
}
|
|
2589
2552
|
return r;
|
|
2590
2553
|
}
|
|
2591
|
-
function
|
|
2554
|
+
function zr(e) {
|
|
2592
2555
|
var t = e.hourCycle;
|
|
2593
2556
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2594
2557
|
e.hourCycles && // @ts-ignore
|
|
@@ -2607,23 +2570,23 @@ function nn(e) {
|
|
|
2607
2570
|
}
|
|
2608
2571
|
var r = e.language, n;
|
|
2609
2572
|
r !== "root" && (n = e.maximize().region);
|
|
2610
|
-
var i =
|
|
2573
|
+
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
2611
2574
|
return i[0];
|
|
2612
2575
|
}
|
|
2613
|
-
var
|
|
2614
|
-
function
|
|
2576
|
+
var Se, Wr = new RegExp("^".concat(Ot.source, "*")), Zr = new RegExp("".concat(Ot.source, "*$"));
|
|
2577
|
+
function E(e, t) {
|
|
2615
2578
|
return { start: e, end: t };
|
|
2616
2579
|
}
|
|
2617
|
-
var
|
|
2580
|
+
var Qr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Jr = !!String.fromCodePoint, qr = !!Object.fromEntries, Yr = !!String.prototype.codePointAt, Kr = !!String.prototype.trimStart, en = !!String.prototype.trimEnd, tn = !!Number.isSafeInteger, rn = tn ? Number.isSafeInteger : function(e) {
|
|
2618
2581
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2619
|
-
},
|
|
2582
|
+
}, Ce = !0;
|
|
2620
2583
|
try {
|
|
2621
|
-
var
|
|
2622
|
-
|
|
2623
|
-
} catch
|
|
2624
|
-
|
|
2584
|
+
var nn = Ct("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2585
|
+
Ce = ((Se = nn.exec("a")) === null || Se === void 0 ? void 0 : Se[0]) === "a";
|
|
2586
|
+
} catch {
|
|
2587
|
+
Ce = !1;
|
|
2625
2588
|
}
|
|
2626
|
-
var
|
|
2589
|
+
var tt = Qr ? (
|
|
2627
2590
|
// Native
|
|
2628
2591
|
function(t, r, n) {
|
|
2629
2592
|
return t.startsWith(r, n);
|
|
@@ -2633,7 +2596,7 @@ var at = an ? (
|
|
|
2633
2596
|
function(t, r, n) {
|
|
2634
2597
|
return t.slice(n, n + r.length) === r;
|
|
2635
2598
|
}
|
|
2636
|
-
),
|
|
2599
|
+
), Me = Jr ? String.fromCodePoint : (
|
|
2637
2600
|
// IE11
|
|
2638
2601
|
function() {
|
|
2639
2602
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2645,19 +2608,19 @@ var at = an ? (
|
|
|
2645
2608
|
}
|
|
2646
2609
|
return n;
|
|
2647
2610
|
}
|
|
2648
|
-
),
|
|
2611
|
+
), rt = (
|
|
2649
2612
|
// native
|
|
2650
|
-
|
|
2613
|
+
qr ? Object.fromEntries : (
|
|
2651
2614
|
// Ponyfill
|
|
2652
2615
|
function(t) {
|
|
2653
2616
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2654
|
-
var s = i[n], o = s[0],
|
|
2655
|
-
r[o] =
|
|
2617
|
+
var s = i[n], o = s[0], a = s[1];
|
|
2618
|
+
r[o] = a;
|
|
2656
2619
|
}
|
|
2657
2620
|
return r;
|
|
2658
2621
|
}
|
|
2659
2622
|
)
|
|
2660
|
-
),
|
|
2623
|
+
), Lt = Yr ? (
|
|
2661
2624
|
// Native
|
|
2662
2625
|
function(t, r) {
|
|
2663
2626
|
return t.codePointAt(r);
|
|
@@ -2671,7 +2634,7 @@ var at = an ? (
|
|
|
2671
2634
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2672
2635
|
}
|
|
2673
2636
|
}
|
|
2674
|
-
),
|
|
2637
|
+
), sn = Kr ? (
|
|
2675
2638
|
// Native
|
|
2676
2639
|
function(t) {
|
|
2677
2640
|
return t.trimStart();
|
|
@@ -2679,9 +2642,9 @@ var at = an ? (
|
|
|
2679
2642
|
) : (
|
|
2680
2643
|
// Ponyfill
|
|
2681
2644
|
function(t) {
|
|
2682
|
-
return t.replace(
|
|
2645
|
+
return t.replace(Wr, "");
|
|
2683
2646
|
}
|
|
2684
|
-
),
|
|
2647
|
+
), on = en ? (
|
|
2685
2648
|
// Native
|
|
2686
2649
|
function(t) {
|
|
2687
2650
|
return t.trimEnd();
|
|
@@ -2689,32 +2652,32 @@ var at = an ? (
|
|
|
2689
2652
|
) : (
|
|
2690
2653
|
// Ponyfill
|
|
2691
2654
|
function(t) {
|
|
2692
|
-
return t.replace(
|
|
2655
|
+
return t.replace(Zr, "");
|
|
2693
2656
|
}
|
|
2694
2657
|
);
|
|
2695
|
-
function
|
|
2658
|
+
function Ct(e, t) {
|
|
2696
2659
|
return new RegExp(e, t);
|
|
2697
2660
|
}
|
|
2698
|
-
var
|
|
2699
|
-
if (
|
|
2700
|
-
var
|
|
2701
|
-
|
|
2661
|
+
var $e;
|
|
2662
|
+
if (Ce) {
|
|
2663
|
+
var nt = Ct("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2664
|
+
$e = function(t, r) {
|
|
2702
2665
|
var n;
|
|
2703
|
-
|
|
2704
|
-
var i =
|
|
2666
|
+
nt.lastIndex = r;
|
|
2667
|
+
var i = nt.exec(t);
|
|
2705
2668
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2706
2669
|
};
|
|
2707
2670
|
} else
|
|
2708
|
-
|
|
2671
|
+
$e = function(t, r) {
|
|
2709
2672
|
for (var n = []; ; ) {
|
|
2710
|
-
var i =
|
|
2711
|
-
if (i === void 0 ||
|
|
2673
|
+
var i = Lt(t, r);
|
|
2674
|
+
if (i === void 0 || Mt(i) || ln(i))
|
|
2712
2675
|
break;
|
|
2713
2676
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2714
2677
|
}
|
|
2715
|
-
return
|
|
2678
|
+
return Me.apply(void 0, n);
|
|
2716
2679
|
};
|
|
2717
|
-
var
|
|
2680
|
+
var an = (
|
|
2718
2681
|
/** @class */
|
|
2719
2682
|
function() {
|
|
2720
2683
|
function e(t, r) {
|
|
@@ -2736,16 +2699,16 @@ var vn = (
|
|
|
2736
2699
|
if (s === 125 && t > 0)
|
|
2737
2700
|
break;
|
|
2738
2701
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2739
|
-
var
|
|
2702
|
+
var a = this.clonePosition();
|
|
2740
2703
|
this.bump(), i.push({
|
|
2741
2704
|
type: P.pound,
|
|
2742
|
-
location:
|
|
2705
|
+
location: E(a, this.clonePosition())
|
|
2743
2706
|
});
|
|
2744
2707
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2745
2708
|
if (n)
|
|
2746
2709
|
break;
|
|
2747
|
-
return this.error(
|
|
2748
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2710
|
+
return this.error(_.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
2711
|
+
} else if (s === 60 && !this.ignoreTag && Re(this.peek() || 0)) {
|
|
2749
2712
|
var o = this.parseTag(t, r);
|
|
2750
2713
|
if (o.err)
|
|
2751
2714
|
return o;
|
|
@@ -2768,7 +2731,7 @@ var vn = (
|
|
|
2768
2731
|
val: {
|
|
2769
2732
|
type: P.literal,
|
|
2770
2733
|
value: "<".concat(i, "/>"),
|
|
2771
|
-
location:
|
|
2734
|
+
location: E(n, this.clonePosition())
|
|
2772
2735
|
},
|
|
2773
2736
|
err: null
|
|
2774
2737
|
};
|
|
@@ -2776,27 +2739,27 @@ var vn = (
|
|
|
2776
2739
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2777
2740
|
if (s.err)
|
|
2778
2741
|
return s;
|
|
2779
|
-
var o = s.val,
|
|
2742
|
+
var o = s.val, a = this.clonePosition();
|
|
2780
2743
|
if (this.bumpIf("</")) {
|
|
2781
|
-
if (this.isEOF() || !
|
|
2782
|
-
return this.error(
|
|
2783
|
-
var
|
|
2784
|
-
return i !==
|
|
2744
|
+
if (this.isEOF() || !Re(this.char()))
|
|
2745
|
+
return this.error(_.INVALID_TAG, E(a, this.clonePosition()));
|
|
2746
|
+
var l = this.clonePosition(), u = this.parseTagName();
|
|
2747
|
+
return i !== u ? this.error(_.UNMATCHED_CLOSING_TAG, E(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2785
2748
|
val: {
|
|
2786
2749
|
type: P.tag,
|
|
2787
2750
|
value: i,
|
|
2788
2751
|
children: o,
|
|
2789
|
-
location:
|
|
2752
|
+
location: E(n, this.clonePosition())
|
|
2790
2753
|
},
|
|
2791
2754
|
err: null
|
|
2792
|
-
} : this.error(
|
|
2755
|
+
} : this.error(_.INVALID_TAG, E(a, this.clonePosition())));
|
|
2793
2756
|
} else
|
|
2794
|
-
return this.error(
|
|
2757
|
+
return this.error(_.UNCLOSED_TAG, E(n, this.clonePosition()));
|
|
2795
2758
|
} else
|
|
2796
|
-
return this.error(
|
|
2759
|
+
return this.error(_.INVALID_TAG, E(n, this.clonePosition()));
|
|
2797
2760
|
}, e.prototype.parseTagName = function() {
|
|
2798
2761
|
var t = this.offset();
|
|
2799
|
-
for (this.bump(); !this.isEOF() &&
|
|
2762
|
+
for (this.bump(); !this.isEOF() && hn(this.char()); )
|
|
2800
2763
|
this.bump();
|
|
2801
2764
|
return this.message.slice(t, this.offset());
|
|
2802
2765
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2811,21 +2774,21 @@ var vn = (
|
|
|
2811
2774
|
i += o;
|
|
2812
2775
|
continue;
|
|
2813
2776
|
}
|
|
2814
|
-
var
|
|
2815
|
-
if (
|
|
2816
|
-
i +=
|
|
2777
|
+
var a = this.tryParseLeftAngleBracket();
|
|
2778
|
+
if (a) {
|
|
2779
|
+
i += a;
|
|
2817
2780
|
continue;
|
|
2818
2781
|
}
|
|
2819
2782
|
break;
|
|
2820
2783
|
}
|
|
2821
|
-
var
|
|
2784
|
+
var l = E(n, this.clonePosition());
|
|
2822
2785
|
return {
|
|
2823
|
-
val: { type: P.literal, value: i, location:
|
|
2786
|
+
val: { type: P.literal, value: i, location: l },
|
|
2824
2787
|
err: null
|
|
2825
2788
|
};
|
|
2826
2789
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2827
2790
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2828
|
-
!
|
|
2791
|
+
!un(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2829
2792
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2830
2793
|
if (this.isEOF() || this.char() !== 39)
|
|
2831
2794
|
return null;
|
|
@@ -2859,23 +2822,23 @@ var vn = (
|
|
|
2859
2822
|
r.push(n);
|
|
2860
2823
|
this.bump();
|
|
2861
2824
|
}
|
|
2862
|
-
return
|
|
2825
|
+
return Me.apply(void 0, r);
|
|
2863
2826
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2864
2827
|
if (this.isEOF())
|
|
2865
2828
|
return null;
|
|
2866
2829
|
var n = this.char();
|
|
2867
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2830
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Me(n));
|
|
2868
2831
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2869
2832
|
var n = this.clonePosition();
|
|
2870
2833
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2871
|
-
return this.error(
|
|
2834
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
|
|
2872
2835
|
if (this.char() === 125)
|
|
2873
|
-
return this.bump(), this.error(
|
|
2836
|
+
return this.bump(), this.error(_.EMPTY_ARGUMENT, E(n, this.clonePosition()));
|
|
2874
2837
|
var i = this.parseIdentifierIfPossible().value;
|
|
2875
2838
|
if (!i)
|
|
2876
|
-
return this.error(
|
|
2839
|
+
return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
2877
2840
|
if (this.bumpSpace(), this.isEOF())
|
|
2878
|
-
return this.error(
|
|
2841
|
+
return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition()));
|
|
2879
2842
|
switch (this.char()) {
|
|
2880
2843
|
case 125:
|
|
2881
2844
|
return this.bump(), {
|
|
@@ -2883,64 +2846,64 @@ var vn = (
|
|
|
2883
2846
|
type: P.argument,
|
|
2884
2847
|
// value does not include the opening and closing braces.
|
|
2885
2848
|
value: i,
|
|
2886
|
-
location:
|
|
2849
|
+
location: E(n, this.clonePosition())
|
|
2887
2850
|
},
|
|
2888
2851
|
err: null
|
|
2889
2852
|
};
|
|
2890
2853
|
case 44:
|
|
2891
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2854
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2892
2855
|
default:
|
|
2893
|
-
return this.error(
|
|
2856
|
+
return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
2894
2857
|
}
|
|
2895
2858
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2896
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2859
|
+
var t = this.clonePosition(), r = this.offset(), n = $e(this.message, r), i = r + n.length;
|
|
2897
2860
|
this.bumpTo(i);
|
|
2898
|
-
var s = this.clonePosition(), o =
|
|
2861
|
+
var s = this.clonePosition(), o = E(t, s);
|
|
2899
2862
|
return { value: n, location: o };
|
|
2900
2863
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2901
|
-
var s, o = this.clonePosition(),
|
|
2902
|
-
switch (
|
|
2864
|
+
var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2865
|
+
switch (a) {
|
|
2903
2866
|
case "":
|
|
2904
|
-
return this.error(
|
|
2867
|
+
return this.error(_.EXPECT_ARGUMENT_TYPE, E(o, l));
|
|
2905
2868
|
case "number":
|
|
2906
2869
|
case "date":
|
|
2907
2870
|
case "time": {
|
|
2908
2871
|
this.bumpSpace();
|
|
2909
|
-
var
|
|
2872
|
+
var u = null;
|
|
2910
2873
|
if (this.bumpIf(",")) {
|
|
2911
2874
|
this.bumpSpace();
|
|
2912
|
-
var
|
|
2875
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2913
2876
|
if (c.err)
|
|
2914
2877
|
return c;
|
|
2915
|
-
var f =
|
|
2878
|
+
var f = on(c.val);
|
|
2916
2879
|
if (f.length === 0)
|
|
2917
|
-
return this.error(
|
|
2918
|
-
var g =
|
|
2919
|
-
|
|
2880
|
+
return this.error(_.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
2881
|
+
var g = E(h, this.clonePosition());
|
|
2882
|
+
u = { style: f, styleLocation: g };
|
|
2920
2883
|
}
|
|
2921
2884
|
var m = this.tryParseArgumentClose(i);
|
|
2922
2885
|
if (m.err)
|
|
2923
2886
|
return m;
|
|
2924
|
-
var p =
|
|
2925
|
-
if (
|
|
2926
|
-
var v =
|
|
2927
|
-
if (
|
|
2928
|
-
var c = this.parseNumberSkeletonFromString(v,
|
|
2887
|
+
var p = E(i, this.clonePosition());
|
|
2888
|
+
if (u && tt(u?.style, "::", 0)) {
|
|
2889
|
+
var v = sn(u.style.slice(2));
|
|
2890
|
+
if (a === "number") {
|
|
2891
|
+
var c = this.parseNumberSkeletonFromString(v, u.styleLocation);
|
|
2929
2892
|
return c.err ? c : {
|
|
2930
2893
|
val: { type: P.number, value: n, location: p, style: c.val },
|
|
2931
2894
|
err: null
|
|
2932
2895
|
};
|
|
2933
2896
|
} else {
|
|
2934
2897
|
if (v.length === 0)
|
|
2935
|
-
return this.error(
|
|
2898
|
+
return this.error(_.EXPECT_DATE_TIME_SKELETON, p);
|
|
2936
2899
|
var d = v;
|
|
2937
|
-
this.locale && (d =
|
|
2900
|
+
this.locale && (d = Xr(v, this.locale));
|
|
2938
2901
|
var f = {
|
|
2939
|
-
type:
|
|
2902
|
+
type: Q.dateTime,
|
|
2940
2903
|
pattern: d,
|
|
2941
|
-
location:
|
|
2942
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2943
|
-
}, T =
|
|
2904
|
+
location: u.styleLocation,
|
|
2905
|
+
parsedOptions: this.shouldParseSkeletons ? Ur(d) : {}
|
|
2906
|
+
}, T = a === "date" ? P.date : P.time;
|
|
2944
2907
|
return {
|
|
2945
2908
|
val: { type: T, value: n, location: p, style: f },
|
|
2946
2909
|
err: null
|
|
@@ -2949,10 +2912,10 @@ var vn = (
|
|
|
2949
2912
|
}
|
|
2950
2913
|
return {
|
|
2951
2914
|
val: {
|
|
2952
|
-
type:
|
|
2915
|
+
type: a === "number" ? P.number : a === "date" ? P.date : P.time,
|
|
2953
2916
|
value: n,
|
|
2954
2917
|
location: p,
|
|
2955
|
-
style: (s =
|
|
2918
|
+
style: (s = u?.style) !== null && s !== void 0 ? s : null
|
|
2956
2919
|
},
|
|
2957
2920
|
err: null
|
|
2958
2921
|
};
|
|
@@ -2962,50 +2925,50 @@ var vn = (
|
|
|
2962
2925
|
case "select": {
|
|
2963
2926
|
var A = this.clonePosition();
|
|
2964
2927
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2965
|
-
return this.error(
|
|
2928
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, E(A, x({}, A)));
|
|
2966
2929
|
this.bumpSpace();
|
|
2967
2930
|
var O = this.parseIdentifierIfPossible(), H = 0;
|
|
2968
|
-
if (
|
|
2931
|
+
if (a !== "select" && O.value === "offset") {
|
|
2969
2932
|
if (!this.bumpIf(":"))
|
|
2970
|
-
return this.error(
|
|
2933
|
+
return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, E(this.clonePosition(), this.clonePosition()));
|
|
2971
2934
|
this.bumpSpace();
|
|
2972
|
-
var c = this.tryParseDecimalInteger(
|
|
2935
|
+
var c = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2973
2936
|
if (c.err)
|
|
2974
2937
|
return c;
|
|
2975
2938
|
this.bumpSpace(), O = this.parseIdentifierIfPossible(), H = c.val;
|
|
2976
2939
|
}
|
|
2977
|
-
var I = this.tryParsePluralOrSelectOptions(t,
|
|
2940
|
+
var I = this.tryParsePluralOrSelectOptions(t, a, r, O);
|
|
2978
2941
|
if (I.err)
|
|
2979
2942
|
return I;
|
|
2980
2943
|
var m = this.tryParseArgumentClose(i);
|
|
2981
2944
|
if (m.err)
|
|
2982
2945
|
return m;
|
|
2983
|
-
var
|
|
2984
|
-
return
|
|
2946
|
+
var ae = E(i, this.clonePosition());
|
|
2947
|
+
return a === "select" ? {
|
|
2985
2948
|
val: {
|
|
2986
2949
|
type: P.select,
|
|
2987
2950
|
value: n,
|
|
2988
|
-
options:
|
|
2989
|
-
location:
|
|
2951
|
+
options: rt(I.val),
|
|
2952
|
+
location: ae
|
|
2990
2953
|
},
|
|
2991
2954
|
err: null
|
|
2992
2955
|
} : {
|
|
2993
2956
|
val: {
|
|
2994
2957
|
type: P.plural,
|
|
2995
2958
|
value: n,
|
|
2996
|
-
options:
|
|
2959
|
+
options: rt(I.val),
|
|
2997
2960
|
offset: H,
|
|
2998
|
-
pluralType:
|
|
2999
|
-
location:
|
|
2961
|
+
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2962
|
+
location: ae
|
|
3000
2963
|
},
|
|
3001
2964
|
err: null
|
|
3002
2965
|
};
|
|
3003
2966
|
}
|
|
3004
2967
|
default:
|
|
3005
|
-
return this.error(
|
|
2968
|
+
return this.error(_.INVALID_ARGUMENT_TYPE, E(o, l));
|
|
3006
2969
|
}
|
|
3007
2970
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3008
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2971
|
+
return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, E(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3009
2972
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3010
2973
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3011
2974
|
var n = this.char();
|
|
@@ -3014,7 +2977,7 @@ var vn = (
|
|
|
3014
2977
|
this.bump();
|
|
3015
2978
|
var i = this.clonePosition();
|
|
3016
2979
|
if (!this.bumpUntil("'"))
|
|
3017
|
-
return this.error(
|
|
2980
|
+
return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, E(i, this.clonePosition()));
|
|
3018
2981
|
this.bump();
|
|
3019
2982
|
break;
|
|
3020
2983
|
}
|
|
@@ -3044,64 +3007,64 @@ var vn = (
|
|
|
3044
3007
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3045
3008
|
var n = [];
|
|
3046
3009
|
try {
|
|
3047
|
-
n =
|
|
3048
|
-
} catch
|
|
3049
|
-
return this.error(
|
|
3010
|
+
n = Dr(t);
|
|
3011
|
+
} catch {
|
|
3012
|
+
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3050
3013
|
}
|
|
3051
3014
|
return {
|
|
3052
3015
|
val: {
|
|
3053
|
-
type:
|
|
3016
|
+
type: Q.number,
|
|
3054
3017
|
tokens: n,
|
|
3055
3018
|
location: r,
|
|
3056
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3019
|
+
parsedOptions: this.shouldParseSkeletons ? Vr(n) : {}
|
|
3057
3020
|
},
|
|
3058
3021
|
err: null
|
|
3059
3022
|
};
|
|
3060
3023
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3061
|
-
for (var s, o = !1,
|
|
3062
|
-
if (
|
|
3024
|
+
for (var s, o = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3025
|
+
if (u.length === 0) {
|
|
3063
3026
|
var c = this.clonePosition();
|
|
3064
3027
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3065
|
-
var f = this.tryParseDecimalInteger(
|
|
3028
|
+
var f = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3066
3029
|
if (f.err)
|
|
3067
3030
|
return f;
|
|
3068
|
-
|
|
3031
|
+
h = E(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3069
3032
|
} else
|
|
3070
3033
|
break;
|
|
3071
3034
|
}
|
|
3072
|
-
if (
|
|
3073
|
-
return this.error(r === "select" ?
|
|
3074
|
-
|
|
3035
|
+
if (l.has(u))
|
|
3036
|
+
return this.error(r === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3037
|
+
u === "other" && (o = !0), this.bumpSpace();
|
|
3075
3038
|
var g = this.clonePosition();
|
|
3076
3039
|
if (!this.bumpIf("{"))
|
|
3077
|
-
return this.error(r === "select" ?
|
|
3040
|
+
return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
|
|
3078
3041
|
var m = this.parseMessage(t + 1, r, n);
|
|
3079
3042
|
if (m.err)
|
|
3080
3043
|
return m;
|
|
3081
3044
|
var p = this.tryParseArgumentClose(g);
|
|
3082
3045
|
if (p.err)
|
|
3083
3046
|
return p;
|
|
3084
|
-
|
|
3085
|
-
|
|
3047
|
+
a.push([
|
|
3048
|
+
u,
|
|
3086
3049
|
{
|
|
3087
3050
|
value: m.val,
|
|
3088
|
-
location:
|
|
3051
|
+
location: E(g, this.clonePosition())
|
|
3089
3052
|
}
|
|
3090
|
-
]),
|
|
3053
|
+
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3091
3054
|
}
|
|
3092
|
-
return
|
|
3055
|
+
return a.length === 0 ? this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, E(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(_.MISSING_OTHER_CLAUSE, E(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3093
3056
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3094
3057
|
var n = 1, i = this.clonePosition();
|
|
3095
3058
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3096
3059
|
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
3097
|
-
var
|
|
3098
|
-
if (
|
|
3099
|
-
s = !0, o = o * 10 + (
|
|
3060
|
+
var a = this.char();
|
|
3061
|
+
if (a >= 48 && a <= 57)
|
|
3062
|
+
s = !0, o = o * 10 + (a - 48), this.bump();
|
|
3100
3063
|
else
|
|
3101
3064
|
break;
|
|
3102
3065
|
}
|
|
3103
|
-
var
|
|
3104
|
-
return s ? (o *= n,
|
|
3066
|
+
var l = E(i, this.clonePosition());
|
|
3067
|
+
return s ? (o *= n, rn(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3105
3068
|
}, e.prototype.offset = function() {
|
|
3106
3069
|
return this.position.offset;
|
|
3107
3070
|
}, e.prototype.isEOF = function() {
|
|
@@ -3116,7 +3079,7 @@ var vn = (
|
|
|
3116
3079
|
var t = this.position.offset;
|
|
3117
3080
|
if (t >= this.message.length)
|
|
3118
3081
|
throw Error("out of bound");
|
|
3119
|
-
var r =
|
|
3082
|
+
var r = Lt(this.message, t);
|
|
3120
3083
|
if (r === void 0)
|
|
3121
3084
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3122
3085
|
return r;
|
|
@@ -3135,7 +3098,7 @@ var vn = (
|
|
|
3135
3098
|
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);
|
|
3136
3099
|
}
|
|
3137
3100
|
}, e.prototype.bumpIf = function(t) {
|
|
3138
|
-
if (
|
|
3101
|
+
if (tt(this.message, t, this.offset())) {
|
|
3139
3102
|
for (var r = 0; r < t.length; r++)
|
|
3140
3103
|
this.bump();
|
|
3141
3104
|
return !0;
|
|
@@ -3157,56 +3120,56 @@ var vn = (
|
|
|
3157
3120
|
break;
|
|
3158
3121
|
}
|
|
3159
3122
|
}, e.prototype.bumpSpace = function() {
|
|
3160
|
-
for (; !this.isEOF() &&
|
|
3123
|
+
for (; !this.isEOF() && Mt(this.char()); )
|
|
3161
3124
|
this.bump();
|
|
3162
3125
|
}, e.prototype.peek = function() {
|
|
3163
3126
|
if (this.isEOF())
|
|
3164
3127
|
return null;
|
|
3165
3128
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3166
|
-
return n
|
|
3129
|
+
return n ?? null;
|
|
3167
3130
|
}, e;
|
|
3168
3131
|
}()
|
|
3169
3132
|
);
|
|
3170
|
-
function
|
|
3133
|
+
function Re(e) {
|
|
3171
3134
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3172
3135
|
}
|
|
3173
|
-
function
|
|
3174
|
-
return
|
|
3136
|
+
function un(e) {
|
|
3137
|
+
return Re(e) || e === 47;
|
|
3175
3138
|
}
|
|
3176
|
-
function
|
|
3139
|
+
function hn(e) {
|
|
3177
3140
|
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;
|
|
3178
3141
|
}
|
|
3179
|
-
function
|
|
3142
|
+
function Mt(e) {
|
|
3180
3143
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3181
3144
|
}
|
|
3182
|
-
function
|
|
3145
|
+
function ln(e) {
|
|
3183
3146
|
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;
|
|
3184
3147
|
}
|
|
3185
|
-
function
|
|
3148
|
+
function Ue(e) {
|
|
3186
3149
|
e.forEach(function(t) {
|
|
3187
|
-
if (delete t.location,
|
|
3150
|
+
if (delete t.location, Tt(t) || St(t))
|
|
3188
3151
|
for (var r in t.options)
|
|
3189
|
-
delete t.options[r].location,
|
|
3190
|
-
else
|
|
3152
|
+
delete t.options[r].location, Ue(t.options[r].value);
|
|
3153
|
+
else yt(t) && Bt(t.style) || (Pt(t) || Ht(t)) && Le(t.style) ? delete t.style.location : At(t) && Ue(t.children);
|
|
3191
3154
|
});
|
|
3192
3155
|
}
|
|
3193
|
-
function
|
|
3156
|
+
function fn(e, t) {
|
|
3194
3157
|
t === void 0 && (t = {}), t = x({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3195
|
-
var r = new
|
|
3158
|
+
var r = new an(e, t).parse();
|
|
3196
3159
|
if (r.err) {
|
|
3197
|
-
var n = SyntaxError(
|
|
3160
|
+
var n = SyntaxError(_[r.err.kind]);
|
|
3198
3161
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3199
3162
|
}
|
|
3200
|
-
return t
|
|
3163
|
+
return t?.captureLocation || Ue(r.val), r.val;
|
|
3201
3164
|
}
|
|
3202
|
-
var
|
|
3165
|
+
var J;
|
|
3203
3166
|
(function(e) {
|
|
3204
3167
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3205
|
-
})(
|
|
3168
|
+
})(J || (J = {}));
|
|
3206
3169
|
var _e = (
|
|
3207
3170
|
/** @class */
|
|
3208
3171
|
function(e) {
|
|
3209
|
-
|
|
3172
|
+
ve(t, e);
|
|
3210
3173
|
function t(r, n, i) {
|
|
3211
3174
|
var s = e.call(this, r) || this;
|
|
3212
3175
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3215,30 +3178,30 @@ var _e = (
|
|
|
3215
3178
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3216
3179
|
}, t;
|
|
3217
3180
|
}(Error)
|
|
3218
|
-
),
|
|
3181
|
+
), it = (
|
|
3219
3182
|
/** @class */
|
|
3220
3183
|
function(e) {
|
|
3221
|
-
|
|
3184
|
+
ve(t, e);
|
|
3222
3185
|
function t(r, n, i, s) {
|
|
3223
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3186
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), J.INVALID_VALUE, s) || this;
|
|
3224
3187
|
}
|
|
3225
3188
|
return t;
|
|
3226
3189
|
}(_e)
|
|
3227
|
-
),
|
|
3190
|
+
), cn = (
|
|
3228
3191
|
/** @class */
|
|
3229
3192
|
function(e) {
|
|
3230
|
-
|
|
3193
|
+
ve(t, e);
|
|
3231
3194
|
function t(r, n, i) {
|
|
3232
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3195
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), J.INVALID_VALUE, i) || this;
|
|
3233
3196
|
}
|
|
3234
3197
|
return t;
|
|
3235
3198
|
}(_e)
|
|
3236
|
-
),
|
|
3199
|
+
), pn = (
|
|
3237
3200
|
/** @class */
|
|
3238
3201
|
function(e) {
|
|
3239
|
-
|
|
3202
|
+
ve(t, e);
|
|
3240
3203
|
function t(r, n) {
|
|
3241
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3204
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), J.MISSING_VALUE, n) || this;
|
|
3242
3205
|
}
|
|
3243
3206
|
return t;
|
|
3244
3207
|
}(_e)
|
|
@@ -3246,124 +3209,124 @@ var _e = (
|
|
|
3246
3209
|
(function(e) {
|
|
3247
3210
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3248
3211
|
})(w || (w = {}));
|
|
3249
|
-
function
|
|
3212
|
+
function dn(e) {
|
|
3250
3213
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3251
3214
|
var n = t[t.length - 1];
|
|
3252
3215
|
return !n || n.type !== w.literal || r.type !== w.literal ? t.push(r) : n.value += r.value, t;
|
|
3253
3216
|
}, []);
|
|
3254
3217
|
}
|
|
3255
|
-
function
|
|
3218
|
+
function mn(e) {
|
|
3256
3219
|
return typeof e == "function";
|
|
3257
3220
|
}
|
|
3258
|
-
function
|
|
3259
|
-
if (e.length === 1 &&
|
|
3221
|
+
function ce(e, t, r, n, i, s, o) {
|
|
3222
|
+
if (e.length === 1 && qe(e[0]))
|
|
3260
3223
|
return [
|
|
3261
3224
|
{
|
|
3262
3225
|
type: w.literal,
|
|
3263
3226
|
value: e[0].value
|
|
3264
3227
|
}
|
|
3265
3228
|
];
|
|
3266
|
-
for (var
|
|
3267
|
-
var
|
|
3268
|
-
if (
|
|
3269
|
-
|
|
3229
|
+
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3230
|
+
var h = u[l];
|
|
3231
|
+
if (qe(h)) {
|
|
3232
|
+
a.push({
|
|
3270
3233
|
type: w.literal,
|
|
3271
|
-
value:
|
|
3234
|
+
value: h.value
|
|
3272
3235
|
});
|
|
3273
3236
|
continue;
|
|
3274
3237
|
}
|
|
3275
|
-
if (
|
|
3276
|
-
typeof s == "number" &&
|
|
3238
|
+
if ($r(h)) {
|
|
3239
|
+
typeof s == "number" && a.push({
|
|
3277
3240
|
type: w.literal,
|
|
3278
3241
|
value: r.getNumberFormat(t).format(s)
|
|
3279
3242
|
});
|
|
3280
3243
|
continue;
|
|
3281
3244
|
}
|
|
3282
|
-
var c =
|
|
3245
|
+
var c = h.value;
|
|
3283
3246
|
if (!(i && c in i))
|
|
3284
|
-
throw new
|
|
3247
|
+
throw new pn(c, o);
|
|
3285
3248
|
var f = i[c];
|
|
3286
|
-
if (
|
|
3287
|
-
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""),
|
|
3249
|
+
if (Mr(h)) {
|
|
3250
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3288
3251
|
type: typeof f == "string" ? w.literal : w.object,
|
|
3289
3252
|
value: f
|
|
3290
3253
|
});
|
|
3291
3254
|
continue;
|
|
3292
3255
|
}
|
|
3293
|
-
if (
|
|
3294
|
-
var g = typeof
|
|
3295
|
-
|
|
3256
|
+
if (Pt(h)) {
|
|
3257
|
+
var g = typeof h.style == "string" ? n.date[h.style] : Le(h.style) ? h.style.parsedOptions : void 0;
|
|
3258
|
+
a.push({
|
|
3296
3259
|
type: w.literal,
|
|
3297
3260
|
value: r.getDateTimeFormat(t, g).format(f)
|
|
3298
3261
|
});
|
|
3299
3262
|
continue;
|
|
3300
3263
|
}
|
|
3301
|
-
if (
|
|
3302
|
-
var g = typeof
|
|
3303
|
-
|
|
3264
|
+
if (Ht(h)) {
|
|
3265
|
+
var g = typeof h.style == "string" ? n.time[h.style] : Le(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3266
|
+
a.push({
|
|
3304
3267
|
type: w.literal,
|
|
3305
3268
|
value: r.getDateTimeFormat(t, g).format(f)
|
|
3306
3269
|
});
|
|
3307
3270
|
continue;
|
|
3308
3271
|
}
|
|
3309
|
-
if (
|
|
3310
|
-
var g = typeof
|
|
3311
|
-
g && g.scale && (f = f * (g.scale || 1)),
|
|
3272
|
+
if (yt(h)) {
|
|
3273
|
+
var g = typeof h.style == "string" ? n.number[h.style] : Bt(h.style) ? h.style.parsedOptions : void 0;
|
|
3274
|
+
g && g.scale && (f = f * (g.scale || 1)), a.push({
|
|
3312
3275
|
type: w.literal,
|
|
3313
3276
|
value: r.getNumberFormat(t, g).format(f)
|
|
3314
3277
|
});
|
|
3315
3278
|
continue;
|
|
3316
3279
|
}
|
|
3317
|
-
if (
|
|
3318
|
-
var m =
|
|
3319
|
-
if (!
|
|
3320
|
-
throw new
|
|
3321
|
-
var d =
|
|
3280
|
+
if (At(h)) {
|
|
3281
|
+
var m = h.children, p = h.value, v = i[p];
|
|
3282
|
+
if (!mn(v))
|
|
3283
|
+
throw new cn(p, "function", o);
|
|
3284
|
+
var d = ce(m, t, r, n, i, s), T = v(d.map(function(H) {
|
|
3322
3285
|
return H.value;
|
|
3323
3286
|
}));
|
|
3324
|
-
Array.isArray(T) || (T = [T]),
|
|
3287
|
+
Array.isArray(T) || (T = [T]), a.push.apply(a, T.map(function(H) {
|
|
3325
3288
|
return {
|
|
3326
3289
|
type: typeof H == "string" ? w.literal : w.object,
|
|
3327
3290
|
value: H
|
|
3328
3291
|
};
|
|
3329
3292
|
}));
|
|
3330
3293
|
}
|
|
3331
|
-
if (
|
|
3332
|
-
var A =
|
|
3294
|
+
if (Tt(h)) {
|
|
3295
|
+
var A = h.options[f] || h.options.other;
|
|
3333
3296
|
if (!A)
|
|
3334
|
-
throw new
|
|
3335
|
-
|
|
3297
|
+
throw new it(h.value, f, Object.keys(h.options), o);
|
|
3298
|
+
a.push.apply(a, ce(A.value, t, r, n, i));
|
|
3336
3299
|
continue;
|
|
3337
3300
|
}
|
|
3338
|
-
if (
|
|
3339
|
-
var A =
|
|
3301
|
+
if (St(h)) {
|
|
3302
|
+
var A = h.options["=".concat(f)];
|
|
3340
3303
|
if (!A) {
|
|
3341
3304
|
if (!Intl.PluralRules)
|
|
3342
3305
|
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3343
3306
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3344
|
-
`,
|
|
3345
|
-
var O = r.getPluralRules(t, { type:
|
|
3346
|
-
A =
|
|
3307
|
+
`, J.MISSING_INTL_API, o);
|
|
3308
|
+
var O = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3309
|
+
A = h.options[O] || h.options.other;
|
|
3347
3310
|
}
|
|
3348
3311
|
if (!A)
|
|
3349
|
-
throw new
|
|
3350
|
-
|
|
3312
|
+
throw new it(h.value, f, Object.keys(h.options), o);
|
|
3313
|
+
a.push.apply(a, ce(A.value, t, r, n, i, f - (h.offset || 0)));
|
|
3351
3314
|
continue;
|
|
3352
3315
|
}
|
|
3353
3316
|
}
|
|
3354
|
-
return
|
|
3317
|
+
return dn(a);
|
|
3355
3318
|
}
|
|
3356
|
-
function
|
|
3319
|
+
function gn(e, t) {
|
|
3357
3320
|
return t ? x(x(x({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3358
3321
|
return r[n] = x(x({}, e[n]), t[n] || {}), r;
|
|
3359
3322
|
}, {})) : e;
|
|
3360
3323
|
}
|
|
3361
|
-
function
|
|
3324
|
+
function bn(e, t) {
|
|
3362
3325
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3363
|
-
return r[n] =
|
|
3326
|
+
return r[n] = gn(e[n], t[n]), r;
|
|
3364
3327
|
}, x({}, e)) : e;
|
|
3365
3328
|
}
|
|
3366
|
-
function
|
|
3329
|
+
function Ae(e) {
|
|
3367
3330
|
return {
|
|
3368
3331
|
create: function() {
|
|
3369
3332
|
return {
|
|
@@ -3377,39 +3340,39 @@ function Oe(e) {
|
|
|
3377
3340
|
}
|
|
3378
3341
|
};
|
|
3379
3342
|
}
|
|
3380
|
-
function
|
|
3343
|
+
function vn(e) {
|
|
3381
3344
|
return e === void 0 && (e = {
|
|
3382
3345
|
number: {},
|
|
3383
3346
|
dateTime: {},
|
|
3384
3347
|
pluralRules: {}
|
|
3385
3348
|
}), {
|
|
3386
|
-
getNumberFormat:
|
|
3349
|
+
getNumberFormat: He(function() {
|
|
3387
3350
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3388
3351
|
r[n] = arguments[n];
|
|
3389
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3352
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3390
3353
|
}, {
|
|
3391
|
-
cache:
|
|
3392
|
-
strategy:
|
|
3354
|
+
cache: Ae(e.number),
|
|
3355
|
+
strategy: Te.variadic
|
|
3393
3356
|
}),
|
|
3394
|
-
getDateTimeFormat:
|
|
3357
|
+
getDateTimeFormat: He(function() {
|
|
3395
3358
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3396
3359
|
r[n] = arguments[n];
|
|
3397
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3360
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3398
3361
|
}, {
|
|
3399
|
-
cache:
|
|
3400
|
-
strategy:
|
|
3362
|
+
cache: Ae(e.dateTime),
|
|
3363
|
+
strategy: Te.variadic
|
|
3401
3364
|
}),
|
|
3402
|
-
getPluralRules:
|
|
3365
|
+
getPluralRules: He(function() {
|
|
3403
3366
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3404
3367
|
r[n] = arguments[n];
|
|
3405
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3368
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3406
3369
|
}, {
|
|
3407
|
-
cache:
|
|
3408
|
-
strategy:
|
|
3370
|
+
cache: Ae(e.pluralRules),
|
|
3371
|
+
strategy: Te.variadic
|
|
3409
3372
|
})
|
|
3410
3373
|
};
|
|
3411
3374
|
}
|
|
3412
|
-
var
|
|
3375
|
+
var _n = (
|
|
3413
3376
|
/** @class */
|
|
3414
3377
|
function() {
|
|
3415
3378
|
function e(t, r, n, i) {
|
|
@@ -3419,20 +3382,20 @@ var Nn = (
|
|
|
3419
3382
|
number: {},
|
|
3420
3383
|
dateTime: {},
|
|
3421
3384
|
pluralRules: {}
|
|
3422
|
-
}, this.format = function(
|
|
3423
|
-
var
|
|
3424
|
-
if (
|
|
3425
|
-
return
|
|
3426
|
-
var
|
|
3385
|
+
}, this.format = function(l) {
|
|
3386
|
+
var u = s.formatToParts(l);
|
|
3387
|
+
if (u.length === 1)
|
|
3388
|
+
return u[0].value;
|
|
3389
|
+
var h = u.reduce(function(c, f) {
|
|
3427
3390
|
return !c.length || f.type !== w.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3428
3391
|
}, []);
|
|
3429
|
-
return
|
|
3430
|
-
}, this.formatToParts = function(
|
|
3431
|
-
return
|
|
3392
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
3393
|
+
}, this.formatToParts = function(l) {
|
|
3394
|
+
return ce(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3432
3395
|
}, this.resolvedOptions = function() {
|
|
3433
|
-
var
|
|
3396
|
+
var l;
|
|
3434
3397
|
return {
|
|
3435
|
-
locale: ((
|
|
3398
|
+
locale: ((l = s.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3436
3399
|
};
|
|
3437
3400
|
}, this.getAst = function() {
|
|
3438
3401
|
return s.ast;
|
|
@@ -3441,13 +3404,13 @@ var Nn = (
|
|
|
3441
3404
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3442
3405
|
var o = i || {};
|
|
3443
3406
|
o.formatters;
|
|
3444
|
-
var
|
|
3445
|
-
this.ast = e.__parse(t, x(x({},
|
|
3407
|
+
var a = Ar(o, ["formatters"]);
|
|
3408
|
+
this.ast = e.__parse(t, x(x({}, a), { locale: this.resolvedLocale }));
|
|
3446
3409
|
} else
|
|
3447
3410
|
this.ast = t;
|
|
3448
3411
|
if (!Array.isArray(this.ast))
|
|
3449
3412
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3450
|
-
this.formats =
|
|
3413
|
+
this.formats = bn(e.formats, n), this.formatters = i && i.formatters || vn(this.formatterCache);
|
|
3451
3414
|
}
|
|
3452
3415
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3453
3416
|
get: function() {
|
|
@@ -3456,11 +3419,11 @@ var Nn = (
|
|
|
3456
3419
|
enumerable: !1,
|
|
3457
3420
|
configurable: !0
|
|
3458
3421
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3459
|
-
if (typeof Intl.Locale
|
|
3422
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
3460
3423
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3461
3424
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3462
3425
|
}
|
|
3463
|
-
}, e.__parse =
|
|
3426
|
+
}, e.__parse = fn, e.formats = {
|
|
3464
3427
|
number: {
|
|
3465
3428
|
integer: {
|
|
3466
3429
|
maximumFractionDigits: 0
|
|
@@ -3521,7 +3484,7 @@ var Nn = (
|
|
|
3521
3484
|
}, e;
|
|
3522
3485
|
}()
|
|
3523
3486
|
);
|
|
3524
|
-
function
|
|
3487
|
+
function En(e, t) {
|
|
3525
3488
|
if (t == null)
|
|
3526
3489
|
return;
|
|
3527
3490
|
if (t in e)
|
|
@@ -3542,92 +3505,92 @@ function wn(e, t) {
|
|
|
3542
3505
|
n = void 0;
|
|
3543
3506
|
return n;
|
|
3544
3507
|
}
|
|
3545
|
-
const
|
|
3508
|
+
const j = {}, xn = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), $t = (e, t) => {
|
|
3546
3509
|
if (t == null)
|
|
3547
3510
|
return;
|
|
3548
|
-
if (t in
|
|
3549
|
-
return
|
|
3550
|
-
const r =
|
|
3511
|
+
if (t in j && e in j[t])
|
|
3512
|
+
return j[t][e];
|
|
3513
|
+
const r = Ee(t);
|
|
3551
3514
|
for (let n = 0; n < r.length; n++) {
|
|
3552
|
-
const i = r[n], s =
|
|
3515
|
+
const i = r[n], s = Pn(i, e);
|
|
3553
3516
|
if (s)
|
|
3554
|
-
return
|
|
3517
|
+
return xn(e, t, s);
|
|
3555
3518
|
}
|
|
3556
3519
|
};
|
|
3557
|
-
let
|
|
3558
|
-
const
|
|
3559
|
-
function
|
|
3560
|
-
return
|
|
3520
|
+
let Ve;
|
|
3521
|
+
const oe = be({});
|
|
3522
|
+
function yn(e) {
|
|
3523
|
+
return Ve[e] || null;
|
|
3561
3524
|
}
|
|
3562
|
-
function
|
|
3563
|
-
return e in
|
|
3525
|
+
function Rt(e) {
|
|
3526
|
+
return e in Ve;
|
|
3564
3527
|
}
|
|
3565
|
-
function
|
|
3566
|
-
if (!
|
|
3528
|
+
function Pn(e, t) {
|
|
3529
|
+
if (!Rt(e))
|
|
3567
3530
|
return null;
|
|
3568
|
-
const r =
|
|
3569
|
-
return
|
|
3531
|
+
const r = yn(e);
|
|
3532
|
+
return En(r, t);
|
|
3570
3533
|
}
|
|
3571
|
-
function
|
|
3534
|
+
function Hn(e) {
|
|
3572
3535
|
if (e == null)
|
|
3573
3536
|
return;
|
|
3574
|
-
const t =
|
|
3537
|
+
const t = Ee(e);
|
|
3575
3538
|
for (let r = 0; r < t.length; r++) {
|
|
3576
3539
|
const n = t[r];
|
|
3577
|
-
if (
|
|
3540
|
+
if (Rt(n))
|
|
3578
3541
|
return n;
|
|
3579
3542
|
}
|
|
3580
3543
|
}
|
|
3581
|
-
function
|
|
3582
|
-
delete
|
|
3544
|
+
function Ut(e, ...t) {
|
|
3545
|
+
delete j[e], oe.update((r) => (r[e] = Sr.all([r[e] || {}, ...t]), r));
|
|
3583
3546
|
}
|
|
3584
|
-
|
|
3585
|
-
[
|
|
3547
|
+
Y(
|
|
3548
|
+
[oe],
|
|
3586
3549
|
([e]) => Object.keys(e)
|
|
3587
3550
|
);
|
|
3588
|
-
|
|
3589
|
-
const
|
|
3590
|
-
function
|
|
3591
|
-
|
|
3551
|
+
oe.subscribe((e) => Ve = e);
|
|
3552
|
+
const pe = {};
|
|
3553
|
+
function Tn(e, t) {
|
|
3554
|
+
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
3592
3555
|
}
|
|
3593
|
-
function
|
|
3594
|
-
return
|
|
3556
|
+
function Gt(e) {
|
|
3557
|
+
return pe[e];
|
|
3595
3558
|
}
|
|
3596
|
-
function
|
|
3597
|
-
return
|
|
3598
|
-
const r =
|
|
3559
|
+
function Sn(e) {
|
|
3560
|
+
return Ee(e).map((t) => {
|
|
3561
|
+
const r = Gt(t);
|
|
3599
3562
|
return [t, r ? [...r] : []];
|
|
3600
3563
|
}).filter(([, t]) => t.length > 0);
|
|
3601
3564
|
}
|
|
3602
|
-
function
|
|
3603
|
-
return e == null ? !1 :
|
|
3565
|
+
function Ge(e) {
|
|
3566
|
+
return e == null ? !1 : Ee(e).some(
|
|
3604
3567
|
(t) => {
|
|
3605
3568
|
var r;
|
|
3606
|
-
return (r =
|
|
3569
|
+
return (r = Gt(t)) == null ? void 0 : r.size;
|
|
3607
3570
|
}
|
|
3608
3571
|
);
|
|
3609
3572
|
}
|
|
3610
|
-
function
|
|
3573
|
+
function An(e, t) {
|
|
3611
3574
|
return Promise.all(
|
|
3612
|
-
t.map((n) => (
|
|
3613
|
-
).then((n) =>
|
|
3614
|
-
}
|
|
3615
|
-
const
|
|
3616
|
-
function
|
|
3617
|
-
if (!
|
|
3618
|
-
return e in
|
|
3619
|
-
const t =
|
|
3620
|
-
return
|
|
3575
|
+
t.map((n) => (Tn(e, n), n().then((i) => i.default || i)))
|
|
3576
|
+
).then((n) => Ut(e, ...n));
|
|
3577
|
+
}
|
|
3578
|
+
const te = {};
|
|
3579
|
+
function Dt(e) {
|
|
3580
|
+
if (!Ge(e))
|
|
3581
|
+
return e in te ? te[e] : Promise.resolve();
|
|
3582
|
+
const t = Sn(e);
|
|
3583
|
+
return te[e] = Promise.all(
|
|
3621
3584
|
t.map(
|
|
3622
|
-
([r, n]) =>
|
|
3585
|
+
([r, n]) => An(r, n)
|
|
3623
3586
|
)
|
|
3624
3587
|
).then(() => {
|
|
3625
|
-
if (
|
|
3626
|
-
return
|
|
3627
|
-
delete
|
|
3628
|
-
}),
|
|
3588
|
+
if (Ge(e))
|
|
3589
|
+
return Dt(e);
|
|
3590
|
+
delete te[e];
|
|
3591
|
+
}), te[e];
|
|
3629
3592
|
}
|
|
3630
|
-
const
|
|
3593
|
+
const Bn = {
|
|
3631
3594
|
number: {
|
|
3632
3595
|
scientific: { notation: "scientific" },
|
|
3633
3596
|
engineering: { notation: "engineering" },
|
|
@@ -3656,159 +3619,159 @@ const Gn = {
|
|
|
3656
3619
|
timeZoneName: "short"
|
|
3657
3620
|
}
|
|
3658
3621
|
}
|
|
3659
|
-
},
|
|
3622
|
+
}, On = {
|
|
3660
3623
|
fallbackLocale: null,
|
|
3661
3624
|
loadingDelay: 200,
|
|
3662
|
-
formats:
|
|
3625
|
+
formats: Bn,
|
|
3663
3626
|
warnOnMissingMessages: !0,
|
|
3664
3627
|
handleMissingMessage: void 0,
|
|
3665
3628
|
ignoreTag: !0
|
|
3666
|
-
},
|
|
3667
|
-
function
|
|
3668
|
-
return
|
|
3629
|
+
}, Nn = On;
|
|
3630
|
+
function q() {
|
|
3631
|
+
return Nn;
|
|
3669
3632
|
}
|
|
3670
|
-
const
|
|
3671
|
-
var
|
|
3633
|
+
const Be = be(!1);
|
|
3634
|
+
var wn = Object.defineProperty, In = Object.defineProperties, Ln = Object.getOwnPropertyDescriptors, st = Object.getOwnPropertySymbols, Cn = Object.prototype.hasOwnProperty, Mn = Object.prototype.propertyIsEnumerable, ot = (e, t, r) => t in e ? wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $n = (e, t) => {
|
|
3672
3635
|
for (var r in t)
|
|
3673
|
-
|
|
3674
|
-
if (
|
|
3675
|
-
for (var r of
|
|
3676
|
-
|
|
3636
|
+
Cn.call(t, r) && ot(e, r, t[r]);
|
|
3637
|
+
if (st)
|
|
3638
|
+
for (var r of st(t))
|
|
3639
|
+
Mn.call(t, r) && ot(e, r, t[r]);
|
|
3677
3640
|
return e;
|
|
3678
|
-
},
|
|
3679
|
-
let
|
|
3680
|
-
const
|
|
3681
|
-
function
|
|
3641
|
+
}, Rn = (e, t) => In(e, Ln(t));
|
|
3642
|
+
let De;
|
|
3643
|
+
const me = be(null);
|
|
3644
|
+
function at(e) {
|
|
3682
3645
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3683
3646
|
}
|
|
3684
|
-
function
|
|
3685
|
-
const r =
|
|
3686
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3647
|
+
function Ee(e, t = q().fallbackLocale) {
|
|
3648
|
+
const r = at(e);
|
|
3649
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...at(t)])] : r;
|
|
3687
3650
|
}
|
|
3688
|
-
function
|
|
3689
|
-
return
|
|
3651
|
+
function k() {
|
|
3652
|
+
return De ?? void 0;
|
|
3690
3653
|
}
|
|
3691
|
-
|
|
3692
|
-
|
|
3654
|
+
me.subscribe((e) => {
|
|
3655
|
+
De = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3693
3656
|
});
|
|
3694
|
-
const
|
|
3695
|
-
if (e &&
|
|
3696
|
-
const { loadingDelay: t } =
|
|
3657
|
+
const Un = (e) => {
|
|
3658
|
+
if (e && Hn(e) && Ge(e)) {
|
|
3659
|
+
const { loadingDelay: t } = q();
|
|
3697
3660
|
let r;
|
|
3698
|
-
return typeof window
|
|
3699
|
-
() =>
|
|
3661
|
+
return typeof window < "u" && k() != null && t ? r = window.setTimeout(
|
|
3662
|
+
() => Be.set(!0),
|
|
3700
3663
|
t
|
|
3701
|
-
) :
|
|
3702
|
-
|
|
3664
|
+
) : Be.set(!0), Dt(e).then(() => {
|
|
3665
|
+
me.set(e);
|
|
3703
3666
|
}).finally(() => {
|
|
3704
|
-
clearTimeout(r),
|
|
3667
|
+
clearTimeout(r), Be.set(!1);
|
|
3705
3668
|
});
|
|
3706
3669
|
}
|
|
3707
|
-
return
|
|
3708
|
-
},
|
|
3709
|
-
set:
|
|
3710
|
-
}),
|
|
3670
|
+
return me.set(e);
|
|
3671
|
+
}, K = Rn($n({}, me), {
|
|
3672
|
+
set: Un
|
|
3673
|
+
}), xe = (e) => {
|
|
3711
3674
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3712
3675
|
return (n) => {
|
|
3713
3676
|
const i = JSON.stringify(n);
|
|
3714
3677
|
return i in t ? t[i] : t[i] = e(n);
|
|
3715
3678
|
};
|
|
3716
3679
|
};
|
|
3717
|
-
var
|
|
3680
|
+
var Gn = Object.defineProperty, ge = Object.getOwnPropertySymbols, Ft = Object.prototype.hasOwnProperty, jt = Object.prototype.propertyIsEnumerable, ut = (e, t, r) => t in e ? Gn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xe = (e, t) => {
|
|
3718
3681
|
for (var r in t || (t = {}))
|
|
3719
|
-
|
|
3720
|
-
if (
|
|
3721
|
-
for (var r of
|
|
3722
|
-
|
|
3682
|
+
Ft.call(t, r) && ut(e, r, t[r]);
|
|
3683
|
+
if (ge)
|
|
3684
|
+
for (var r of ge(t))
|
|
3685
|
+
jt.call(t, r) && ut(e, r, t[r]);
|
|
3723
3686
|
return e;
|
|
3724
|
-
},
|
|
3687
|
+
}, ee = (e, t) => {
|
|
3725
3688
|
var r = {};
|
|
3726
3689
|
for (var n in e)
|
|
3727
|
-
|
|
3728
|
-
if (e != null &&
|
|
3729
|
-
for (var n of
|
|
3730
|
-
t.indexOf(n) < 0 &&
|
|
3690
|
+
Ft.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3691
|
+
if (e != null && ge)
|
|
3692
|
+
for (var n of ge(e))
|
|
3693
|
+
t.indexOf(n) < 0 && jt.call(e, n) && (r[n] = e[n]);
|
|
3731
3694
|
return r;
|
|
3732
3695
|
};
|
|
3733
|
-
const
|
|
3734
|
-
const { formats: r } =
|
|
3696
|
+
const ie = (e, t) => {
|
|
3697
|
+
const { formats: r } = q();
|
|
3735
3698
|
if (e in r && t in r[e])
|
|
3736
3699
|
return r[e][t];
|
|
3737
3700
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3738
|
-
},
|
|
3701
|
+
}, Dn = xe(
|
|
3739
3702
|
(e) => {
|
|
3740
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3703
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3741
3704
|
if (r == null)
|
|
3742
3705
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3743
|
-
return n && (i =
|
|
3706
|
+
return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
|
|
3744
3707
|
}
|
|
3745
|
-
),
|
|
3708
|
+
), Fn = xe(
|
|
3746
3709
|
(e) => {
|
|
3747
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3710
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3748
3711
|
if (r == null)
|
|
3749
3712
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3750
|
-
return n ? i =
|
|
3713
|
+
return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3751
3714
|
}
|
|
3752
|
-
),
|
|
3715
|
+
), jn = xe(
|
|
3753
3716
|
(e) => {
|
|
3754
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3717
|
+
var t = e, { locale: r, format: n } = t, i = ee(t, ["locale", "format"]);
|
|
3755
3718
|
if (r == null)
|
|
3756
3719
|
throw new Error(
|
|
3757
3720
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3758
3721
|
);
|
|
3759
|
-
return n ? i =
|
|
3722
|
+
return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3760
3723
|
}
|
|
3761
|
-
),
|
|
3724
|
+
), kn = (e = {}) => {
|
|
3762
3725
|
var t = e, {
|
|
3763
|
-
locale: r =
|
|
3764
|
-
} = t, n =
|
|
3726
|
+
locale: r = k()
|
|
3727
|
+
} = t, n = ee(t, [
|
|
3765
3728
|
"locale"
|
|
3766
3729
|
]);
|
|
3767
|
-
return
|
|
3768
|
-
},
|
|
3730
|
+
return Dn(Xe({ locale: r }, n));
|
|
3731
|
+
}, Vn = (e = {}) => {
|
|
3769
3732
|
var t = e, {
|
|
3770
|
-
locale: r =
|
|
3771
|
-
} = t, n =
|
|
3733
|
+
locale: r = k()
|
|
3734
|
+
} = t, n = ee(t, [
|
|
3772
3735
|
"locale"
|
|
3773
3736
|
]);
|
|
3774
|
-
return
|
|
3775
|
-
},
|
|
3737
|
+
return Fn(Xe({ locale: r }, n));
|
|
3738
|
+
}, Xn = (e = {}) => {
|
|
3776
3739
|
var t = e, {
|
|
3777
|
-
locale: r =
|
|
3778
|
-
} = t, n =
|
|
3740
|
+
locale: r = k()
|
|
3741
|
+
} = t, n = ee(t, [
|
|
3779
3742
|
"locale"
|
|
3780
3743
|
]);
|
|
3781
|
-
return
|
|
3782
|
-
},
|
|
3744
|
+
return jn(Xe({ locale: r }, n));
|
|
3745
|
+
}, zn = xe(
|
|
3783
3746
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3784
|
-
(e, t =
|
|
3785
|
-
ignoreTag:
|
|
3747
|
+
(e, t = k()) => new _n(e, t, q().formats, {
|
|
3748
|
+
ignoreTag: q().ignoreTag
|
|
3786
3749
|
})
|
|
3787
|
-
),
|
|
3750
|
+
), Wn = (e, t = {}) => {
|
|
3788
3751
|
var r, n, i, s;
|
|
3789
3752
|
let o = t;
|
|
3790
3753
|
typeof e == "object" && (o = e, e = o.id);
|
|
3791
3754
|
const {
|
|
3792
|
-
values:
|
|
3793
|
-
locale:
|
|
3794
|
-
default:
|
|
3755
|
+
values: a,
|
|
3756
|
+
locale: l = k(),
|
|
3757
|
+
default: u
|
|
3795
3758
|
} = o;
|
|
3796
|
-
if (
|
|
3759
|
+
if (l == null)
|
|
3797
3760
|
throw new Error(
|
|
3798
3761
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3799
3762
|
);
|
|
3800
|
-
let
|
|
3801
|
-
if (!
|
|
3802
|
-
|
|
3803
|
-
else if (typeof
|
|
3763
|
+
let h = $t(e, l);
|
|
3764
|
+
if (!h)
|
|
3765
|
+
h = (s = (i = (n = (r = q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3766
|
+
else if (typeof h != "string")
|
|
3804
3767
|
return console.warn(
|
|
3805
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3806
|
-
),
|
|
3807
|
-
if (!
|
|
3808
|
-
return
|
|
3809
|
-
let c =
|
|
3768
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3769
|
+
), h;
|
|
3770
|
+
if (!a)
|
|
3771
|
+
return h;
|
|
3772
|
+
let c = h;
|
|
3810
3773
|
try {
|
|
3811
|
-
c =
|
|
3774
|
+
c = zn(h, l).format(a);
|
|
3812
3775
|
} catch (f) {
|
|
3813
3776
|
f instanceof Error && console.warn(
|
|
3814
3777
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3816,96 +3779,96 @@ const se = (e, t) => {
|
|
|
3816
3779
|
);
|
|
3817
3780
|
}
|
|
3818
3781
|
return c;
|
|
3819
|
-
},
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
function
|
|
3825
|
-
|
|
3782
|
+
}, Zn = (e, t) => Xn(t).format(e), Qn = (e, t) => Vn(t).format(e), Jn = (e, t) => kn(t).format(e), qn = (e, t = k()) => $t(e, t), Yn = Y([K, oe], () => Wn);
|
|
3783
|
+
Y([K], () => Zn);
|
|
3784
|
+
Y([K], () => Qn);
|
|
3785
|
+
Y([K], () => Jn);
|
|
3786
|
+
Y([K, oe], () => qn);
|
|
3787
|
+
function ht(e, t) {
|
|
3788
|
+
Ut(e, t);
|
|
3826
3789
|
}
|
|
3827
|
-
function
|
|
3828
|
-
|
|
3790
|
+
function Kn(e) {
|
|
3791
|
+
K.set(e);
|
|
3829
3792
|
}
|
|
3830
|
-
function
|
|
3831
|
-
|
|
3793
|
+
function ei(e) {
|
|
3794
|
+
Xt(e, "svelte-r0nv1e", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.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%)}");
|
|
3832
3795
|
}
|
|
3833
|
-
function
|
|
3796
|
+
function lt(e, t, r) {
|
|
3834
3797
|
const n = e.slice();
|
|
3835
3798
|
return n[21] = t[r], n;
|
|
3836
3799
|
}
|
|
3837
|
-
function
|
|
3800
|
+
function ft(e, t, r) {
|
|
3838
3801
|
const n = e.slice();
|
|
3839
3802
|
return n[21] = t[r], n;
|
|
3840
3803
|
}
|
|
3841
|
-
function
|
|
3804
|
+
function ti(e) {
|
|
3842
3805
|
let t, r = (
|
|
3843
3806
|
/*$_*/
|
|
3844
3807
|
e[4]("popularProviders") + ""
|
|
3845
|
-
), n, i, s, o,
|
|
3808
|
+
), n, i, s, o, a = (
|
|
3846
3809
|
/*$_*/
|
|
3847
3810
|
e[4]("otherProviders") + ""
|
|
3848
|
-
),
|
|
3811
|
+
), l, u, h, c = he(
|
|
3849
3812
|
/*topProviders*/
|
|
3850
3813
|
e[1]
|
|
3851
3814
|
), f = [];
|
|
3852
3815
|
for (let p = 0; p < c.length; p += 1)
|
|
3853
|
-
f[p] =
|
|
3854
|
-
let g =
|
|
3816
|
+
f[p] = ct(ft(e, c, p));
|
|
3817
|
+
let g = he(
|
|
3855
3818
|
/*otherProviders*/
|
|
3856
3819
|
e[2]
|
|
3857
3820
|
), m = [];
|
|
3858
3821
|
for (let p = 0; p < g.length; p += 1)
|
|
3859
|
-
m[p] =
|
|
3822
|
+
m[p] = pt(lt(e, g, p));
|
|
3860
3823
|
return {
|
|
3861
3824
|
c() {
|
|
3862
|
-
t = B("h4"), n =
|
|
3825
|
+
t = B("h4"), n = R(r), i = U();
|
|
3863
3826
|
for (let p = 0; p < f.length; p += 1)
|
|
3864
3827
|
f[p].c();
|
|
3865
|
-
s =
|
|
3828
|
+
s = U(), o = B("h4"), l = R(a), u = U();
|
|
3866
3829
|
for (let p = 0; p < m.length; p += 1)
|
|
3867
3830
|
m[p].c();
|
|
3868
|
-
|
|
3831
|
+
h = Zt(), S(t, "class", "ProviderTitle"), S(o, "class", "ProviderTitle");
|
|
3869
3832
|
},
|
|
3870
3833
|
m(p, v) {
|
|
3871
|
-
|
|
3834
|
+
M(p, t, v), y(t, n), M(p, i, v);
|
|
3872
3835
|
for (let d = 0; d < f.length; d += 1)
|
|
3873
3836
|
f[d] && f[d].m(p, v);
|
|
3874
|
-
|
|
3837
|
+
M(p, s, v), M(p, o, v), y(o, l), M(p, u, v);
|
|
3875
3838
|
for (let d = 0; d < m.length; d += 1)
|
|
3876
3839
|
m[d] && m[d].m(p, v);
|
|
3877
|
-
|
|
3840
|
+
M(p, h, v);
|
|
3878
3841
|
},
|
|
3879
3842
|
p(p, v) {
|
|
3880
3843
|
if (v & /*$_*/
|
|
3881
3844
|
16 && r !== (r = /*$_*/
|
|
3882
|
-
p[4]("popularProviders") + "") &&
|
|
3845
|
+
p[4]("popularProviders") + "") && D(n, r), v & /*openGameProviderPage, topProviders, $_*/
|
|
3883
3846
|
50) {
|
|
3884
|
-
c =
|
|
3847
|
+
c = he(
|
|
3885
3848
|
/*topProviders*/
|
|
3886
3849
|
p[1]
|
|
3887
3850
|
);
|
|
3888
3851
|
let d;
|
|
3889
3852
|
for (d = 0; d < c.length; d += 1) {
|
|
3890
|
-
const T =
|
|
3891
|
-
f[d] ? f[d].p(T, v) : (f[d] =
|
|
3853
|
+
const T = ft(p, c, d);
|
|
3854
|
+
f[d] ? f[d].p(T, v) : (f[d] = ct(T), f[d].c(), f[d].m(s.parentNode, s));
|
|
3892
3855
|
}
|
|
3893
3856
|
for (; d < f.length; d += 1)
|
|
3894
3857
|
f[d].d(1);
|
|
3895
3858
|
f.length = c.length;
|
|
3896
3859
|
}
|
|
3897
3860
|
if (v & /*$_*/
|
|
3898
|
-
16 &&
|
|
3899
|
-
p[4]("otherProviders") + "") &&
|
|
3861
|
+
16 && a !== (a = /*$_*/
|
|
3862
|
+
p[4]("otherProviders") + "") && D(l, a), v & /*openGameProviderPage, otherProviders, $_*/
|
|
3900
3863
|
52) {
|
|
3901
|
-
g =
|
|
3864
|
+
g = he(
|
|
3902
3865
|
/*otherProviders*/
|
|
3903
3866
|
p[2]
|
|
3904
3867
|
);
|
|
3905
3868
|
let d;
|
|
3906
3869
|
for (d = 0; d < g.length; d += 1) {
|
|
3907
|
-
const T =
|
|
3908
|
-
m[d] ? m[d].p(T, v) : (m[d] =
|
|
3870
|
+
const T = lt(p, g, d);
|
|
3871
|
+
m[d] ? m[d].p(T, v) : (m[d] = pt(T), m[d].c(), m[d].m(h.parentNode, h));
|
|
3909
3872
|
}
|
|
3910
3873
|
for (; d < m.length; d += 1)
|
|
3911
3874
|
m[d].d(1);
|
|
@@ -3913,37 +3876,37 @@ function ci(e) {
|
|
|
3913
3876
|
}
|
|
3914
3877
|
},
|
|
3915
3878
|
d(p) {
|
|
3916
|
-
p && (
|
|
3879
|
+
p && (L(t), L(i), L(s), L(o), L(u), L(h)), We(f, p), We(m, p);
|
|
3917
3880
|
}
|
|
3918
3881
|
};
|
|
3919
3882
|
}
|
|
3920
|
-
function
|
|
3883
|
+
function ri(e) {
|
|
3921
3884
|
let t, r = (
|
|
3922
3885
|
/*$_*/
|
|
3923
3886
|
e[4]("loading") + ""
|
|
3924
3887
|
), n;
|
|
3925
3888
|
return {
|
|
3926
3889
|
c() {
|
|
3927
|
-
t = B("p"), n =
|
|
3890
|
+
t = B("p"), n = R(r), S(t, "class", "Message");
|
|
3928
3891
|
},
|
|
3929
3892
|
m(i, s) {
|
|
3930
|
-
|
|
3893
|
+
M(i, t, s), y(t, n);
|
|
3931
3894
|
},
|
|
3932
3895
|
p(i, s) {
|
|
3933
3896
|
s & /*$_*/
|
|
3934
3897
|
16 && r !== (r = /*$_*/
|
|
3935
|
-
i[4]("loading") + "") &&
|
|
3898
|
+
i[4]("loading") + "") && D(n, r);
|
|
3936
3899
|
},
|
|
3937
3900
|
d(i) {
|
|
3938
|
-
i &&
|
|
3901
|
+
i && L(t);
|
|
3939
3902
|
}
|
|
3940
3903
|
};
|
|
3941
3904
|
}
|
|
3942
|
-
function
|
|
3943
|
-
let t, r, n, i, s, o,
|
|
3905
|
+
function ct(e) {
|
|
3906
|
+
let t, r, n, i, s, o, a, l = (
|
|
3944
3907
|
/*provider*/
|
|
3945
3908
|
e[21].name + ""
|
|
3946
|
-
),
|
|
3909
|
+
), u, h, c, f = (
|
|
3947
3910
|
/*provider*/
|
|
3948
3911
|
e[21].games.count + ""
|
|
3949
3912
|
), g, m, p = (
|
|
@@ -3961,36 +3924,36 @@ function vt(e) {
|
|
|
3961
3924
|
}
|
|
3962
3925
|
return {
|
|
3963
3926
|
c() {
|
|
3964
|
-
t = B("div"), r = B("img"), s =
|
|
3927
|
+
t = B("div"), r = B("img"), s = U(), o = B("div"), a = B("p"), u = R(l), h = U(), c = B("p"), g = R(f), m = U(), v = R(p), de(r.src, n = /*provider*/
|
|
3965
3928
|
e[21].logo) || S(r, "src", n), S(r, "alt", i = /*provider*/
|
|
3966
3929
|
e[21].name), S(r, "class", "ProviderImage"), S(o, "class", "ProviderTextContainer"), S(t, "class", "Provider");
|
|
3967
3930
|
},
|
|
3968
3931
|
m(O, H) {
|
|
3969
|
-
|
|
3932
|
+
M(O, t, H), y(t, r), y(t, s), y(t, o), y(o, a), y(a, u), y(o, h), y(o, c), y(c, g), y(c, m), y(c, v), d || (T = bt(t, "click", A), d = !0);
|
|
3970
3933
|
},
|
|
3971
3934
|
p(O, H) {
|
|
3972
3935
|
e = O, H & /*topProviders*/
|
|
3973
|
-
2 && !
|
|
3936
|
+
2 && !de(r.src, n = /*provider*/
|
|
3974
3937
|
e[21].logo) && S(r, "src", n), H & /*topProviders*/
|
|
3975
3938
|
2 && i !== (i = /*provider*/
|
|
3976
3939
|
e[21].name) && S(r, "alt", i), H & /*topProviders*/
|
|
3977
|
-
2 &&
|
|
3978
|
-
e[21].name + "") &&
|
|
3940
|
+
2 && l !== (l = /*provider*/
|
|
3941
|
+
e[21].name + "") && D(u, l), H & /*topProviders*/
|
|
3979
3942
|
2 && f !== (f = /*provider*/
|
|
3980
|
-
e[21].games.count + "") &&
|
|
3943
|
+
e[21].games.count + "") && D(g, f), H & /*$_*/
|
|
3981
3944
|
16 && p !== (p = /*$_*/
|
|
3982
|
-
e[4]("games") + "") &&
|
|
3945
|
+
e[4]("games") + "") && D(v, p);
|
|
3983
3946
|
},
|
|
3984
3947
|
d(O) {
|
|
3985
|
-
O &&
|
|
3948
|
+
O && L(t), d = !1, T();
|
|
3986
3949
|
}
|
|
3987
3950
|
};
|
|
3988
3951
|
}
|
|
3989
|
-
function
|
|
3990
|
-
let t, r, n, i, s, o,
|
|
3952
|
+
function pt(e) {
|
|
3953
|
+
let t, r, n, i, s, o, a, l = (
|
|
3991
3954
|
/*provider*/
|
|
3992
3955
|
e[21].name + ""
|
|
3993
|
-
),
|
|
3956
|
+
), u, h, c, f = (
|
|
3994
3957
|
/*provider*/
|
|
3995
3958
|
e[21].games.count + ""
|
|
3996
3959
|
), g, m, p = (
|
|
@@ -4008,37 +3971,37 @@ function Et(e) {
|
|
|
4008
3971
|
}
|
|
4009
3972
|
return {
|
|
4010
3973
|
c() {
|
|
4011
|
-
t = B("div"), r = B("img"), s =
|
|
3974
|
+
t = B("div"), r = B("img"), s = U(), o = B("div"), a = B("p"), u = R(l), h = U(), c = B("p"), g = R(f), m = U(), v = R(p), d = U(), de(r.src, n = /*provider*/
|
|
4012
3975
|
e[21].logo) || S(r, "src", n), S(r, "alt", i = /*provider*/
|
|
4013
3976
|
e[21].name), S(r, "class", "ProviderImage"), S(o, "class", "ProviderTextContainer"), S(t, "class", "Provider");
|
|
4014
3977
|
},
|
|
4015
3978
|
m(H, I) {
|
|
4016
|
-
|
|
3979
|
+
M(H, t, I), y(t, r), y(t, s), y(t, o), y(o, a), y(a, u), y(o, h), y(o, c), y(c, g), y(c, m), y(c, v), y(t, d), T || (A = bt(t, "click", O), T = !0);
|
|
4017
3980
|
},
|
|
4018
3981
|
p(H, I) {
|
|
4019
3982
|
e = H, I & /*otherProviders*/
|
|
4020
|
-
4 && !
|
|
3983
|
+
4 && !de(r.src, n = /*provider*/
|
|
4021
3984
|
e[21].logo) && S(r, "src", n), I & /*otherProviders*/
|
|
4022
3985
|
4 && i !== (i = /*provider*/
|
|
4023
3986
|
e[21].name) && S(r, "alt", i), I & /*otherProviders*/
|
|
4024
|
-
4 &&
|
|
4025
|
-
e[21].name + "") &&
|
|
3987
|
+
4 && l !== (l = /*provider*/
|
|
3988
|
+
e[21].name + "") && D(u, l), I & /*otherProviders*/
|
|
4026
3989
|
4 && f !== (f = /*provider*/
|
|
4027
|
-
e[21].games.count + "") &&
|
|
3990
|
+
e[21].games.count + "") && D(g, f), I & /*$_*/
|
|
4028
3991
|
16 && p !== (p = /*$_*/
|
|
4029
|
-
e[4]("games") + "") &&
|
|
3992
|
+
e[4]("games") + "") && D(v, p);
|
|
4030
3993
|
},
|
|
4031
3994
|
d(H) {
|
|
4032
|
-
H &&
|
|
3995
|
+
H && L(t), T = !1, A();
|
|
4033
3996
|
}
|
|
4034
3997
|
};
|
|
4035
3998
|
}
|
|
4036
|
-
function
|
|
3999
|
+
function ni(e) {
|
|
4037
4000
|
let t;
|
|
4038
4001
|
function r(s, o) {
|
|
4039
4002
|
return (
|
|
4040
4003
|
/*isLoading*/
|
|
4041
|
-
s[3] === !0 ?
|
|
4004
|
+
s[3] === !0 ? ri : ti
|
|
4042
4005
|
);
|
|
4043
4006
|
}
|
|
4044
4007
|
let n = r(e), i = n(e);
|
|
@@ -4047,61 +4010,61 @@ function di(e) {
|
|
|
4047
4010
|
t = B("div"), i.c(), S(t, "class", "CasinoProviders");
|
|
4048
4011
|
},
|
|
4049
4012
|
m(s, o) {
|
|
4050
|
-
|
|
4013
|
+
M(s, t, o), i.m(t, null), e[14](t);
|
|
4051
4014
|
},
|
|
4052
4015
|
p(s, [o]) {
|
|
4053
4016
|
n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(t, null)));
|
|
4054
4017
|
},
|
|
4055
|
-
i:
|
|
4056
|
-
o:
|
|
4018
|
+
i: $,
|
|
4019
|
+
o: $,
|
|
4057
4020
|
d(s) {
|
|
4058
|
-
s &&
|
|
4021
|
+
s && L(t), i.d(), e[14](null);
|
|
4059
4022
|
}
|
|
4060
4023
|
};
|
|
4061
4024
|
}
|
|
4062
|
-
function
|
|
4025
|
+
function ii(e, t, r) {
|
|
4063
4026
|
let n;
|
|
4064
|
-
|
|
4065
|
-
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { clientstyling:
|
|
4027
|
+
Vt(e, Yn, (b) => r(4, n = b));
|
|
4028
|
+
let { endpoint: i = "" } = t, { datasource: s = "" } = t, { lang: o = "en" } = t, { clientstyling: a = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: u = "" } = t, h = [], c = [], f = [], g = !1, m;
|
|
4066
4029
|
const p = () => {
|
|
4067
|
-
fetch(
|
|
4068
|
-
Object.keys(N).forEach((
|
|
4069
|
-
|
|
4030
|
+
fetch(u).then((N) => N.json()).then((N) => {
|
|
4031
|
+
Object.keys(N).forEach((C) => {
|
|
4032
|
+
ht(C, N[C]);
|
|
4070
4033
|
});
|
|
4071
4034
|
}).catch((N) => {
|
|
4072
4035
|
console.log(N);
|
|
4073
4036
|
});
|
|
4074
4037
|
};
|
|
4075
|
-
Object.keys(
|
|
4076
|
-
|
|
4038
|
+
Object.keys(Qe).forEach((b) => {
|
|
4039
|
+
ht(b, Qe[b]);
|
|
4077
4040
|
});
|
|
4078
4041
|
const v = () => {
|
|
4079
4042
|
r(3, g = !0);
|
|
4080
4043
|
const b = new URL(`${i}/v1/casino/vendors`);
|
|
4081
4044
|
b.searchParams.append("datasource", s), b.searchParams.append("language", o), b.searchParams.append("fields", "id,name,displayName,subVendors,isTopVendor,logo,games"), fetch(b).then((N) => N.json()).then((N) => {
|
|
4082
|
-
r(3, g = !1),
|
|
4083
|
-
let
|
|
4084
|
-
|
|
4045
|
+
r(3, g = !1), h = N.items.map((G) => G), r(1, c = h.filter((G) => G.isTopVendor === !0)), r(2, f = h.filter((G) => G.isTopVendor === !1));
|
|
4046
|
+
let C = [];
|
|
4047
|
+
C = h.flatMap((G) => G.subVendors), f.push(...C.filter((G) => G.games.count > 0));
|
|
4085
4048
|
});
|
|
4086
|
-
}, d = (b, N,
|
|
4049
|
+
}, d = (b, N, C) => {
|
|
4087
4050
|
window.postMessage(
|
|
4088
4051
|
{
|
|
4089
4052
|
type: "OpenGameProvider",
|
|
4090
4053
|
providerId: b,
|
|
4091
4054
|
providerName: N,
|
|
4092
|
-
providerLogo:
|
|
4055
|
+
providerLogo: C
|
|
4093
4056
|
},
|
|
4094
4057
|
window.location.href
|
|
4095
4058
|
);
|
|
4096
4059
|
}, T = () => {
|
|
4097
|
-
|
|
4060
|
+
Kn(o);
|
|
4098
4061
|
}, A = () => {
|
|
4099
4062
|
let b = document.createElement("style");
|
|
4100
|
-
b.innerHTML =
|
|
4063
|
+
b.innerHTML = a, m.appendChild(b);
|
|
4101
4064
|
}, O = () => {
|
|
4102
|
-
let b = new URL(
|
|
4103
|
-
fetch(b.href).then((
|
|
4104
|
-
N.innerHTML =
|
|
4065
|
+
let b = new URL(l), N = document.createElement("style");
|
|
4066
|
+
fetch(b.href).then((C) => C.text()).then((C) => {
|
|
4067
|
+
N.innerHTML = C, setTimeout(
|
|
4105
4068
|
() => {
|
|
4106
4069
|
m.appendChild(N);
|
|
4107
4070
|
},
|
|
@@ -4109,20 +4072,20 @@ function mi(e, t, r) {
|
|
|
4109
4072
|
);
|
|
4110
4073
|
});
|
|
4111
4074
|
}, H = (b) => d(b.id, b.name, b.logo), I = (b) => d(b.id, b.name, b.logo);
|
|
4112
|
-
function
|
|
4113
|
-
|
|
4075
|
+
function ae(b) {
|
|
4076
|
+
Oe[b ? "unshift" : "push"](() => {
|
|
4114
4077
|
m = b, r(0, m);
|
|
4115
4078
|
});
|
|
4116
4079
|
}
|
|
4117
4080
|
return e.$$set = (b) => {
|
|
4118
|
-
"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,
|
|
4081
|
+
"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, a = b.clientstyling), "clientstylingurl" in b && r(10, l = b.clientstylingurl), "translationurl" in b && r(11, u = b.translationurl);
|
|
4119
4082
|
}, e.$$.update = () => {
|
|
4120
4083
|
e.$$.dirty & /*endpoint, lang, datasource*/
|
|
4121
4084
|
448 && i && o && s && v(), e.$$.dirty & /*lang*/
|
|
4122
4085
|
256 && o && T(), e.$$.dirty & /*translationurl*/
|
|
4123
|
-
2048 &&
|
|
4124
|
-
513 &&
|
|
4125
|
-
1025 &&
|
|
4086
|
+
2048 && u && p(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4087
|
+
513 && a && m && A(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4088
|
+
1025 && l && m && O();
|
|
4126
4089
|
}, [
|
|
4127
4090
|
m,
|
|
4128
4091
|
c,
|
|
@@ -4133,22 +4096,22 @@ function mi(e, t, r) {
|
|
|
4133
4096
|
i,
|
|
4134
4097
|
s,
|
|
4135
4098
|
o,
|
|
4136
|
-
u,
|
|
4137
|
-
h,
|
|
4138
4099
|
a,
|
|
4100
|
+
l,
|
|
4101
|
+
u,
|
|
4139
4102
|
H,
|
|
4140
4103
|
I,
|
|
4141
|
-
|
|
4104
|
+
ae
|
|
4142
4105
|
];
|
|
4143
4106
|
}
|
|
4144
|
-
class
|
|
4107
|
+
class si extends ur {
|
|
4145
4108
|
constructor(t) {
|
|
4146
|
-
super(),
|
|
4109
|
+
super(), or(
|
|
4147
4110
|
this,
|
|
4148
4111
|
t,
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4112
|
+
ii,
|
|
4113
|
+
ni,
|
|
4114
|
+
mt,
|
|
4152
4115
|
{
|
|
4153
4116
|
endpoint: 6,
|
|
4154
4117
|
datasource: 7,
|
|
@@ -4157,47 +4120,47 @@ class gi extends Er {
|
|
|
4157
4120
|
clientstylingurl: 10,
|
|
4158
4121
|
translationurl: 11
|
|
4159
4122
|
},
|
|
4160
|
-
|
|
4123
|
+
ei
|
|
4161
4124
|
);
|
|
4162
4125
|
}
|
|
4163
4126
|
get endpoint() {
|
|
4164
4127
|
return this.$$.ctx[6];
|
|
4165
4128
|
}
|
|
4166
4129
|
set endpoint(t) {
|
|
4167
|
-
this.$$set({ endpoint: t }),
|
|
4130
|
+
this.$$set({ endpoint: t }), F();
|
|
4168
4131
|
}
|
|
4169
4132
|
get datasource() {
|
|
4170
4133
|
return this.$$.ctx[7];
|
|
4171
4134
|
}
|
|
4172
4135
|
set datasource(t) {
|
|
4173
|
-
this.$$set({ datasource: t }),
|
|
4136
|
+
this.$$set({ datasource: t }), F();
|
|
4174
4137
|
}
|
|
4175
4138
|
get lang() {
|
|
4176
4139
|
return this.$$.ctx[8];
|
|
4177
4140
|
}
|
|
4178
4141
|
set lang(t) {
|
|
4179
|
-
this.$$set({ lang: t }),
|
|
4142
|
+
this.$$set({ lang: t }), F();
|
|
4180
4143
|
}
|
|
4181
4144
|
get clientstyling() {
|
|
4182
4145
|
return this.$$.ctx[9];
|
|
4183
4146
|
}
|
|
4184
4147
|
set clientstyling(t) {
|
|
4185
|
-
this.$$set({ clientstyling: t }),
|
|
4148
|
+
this.$$set({ clientstyling: t }), F();
|
|
4186
4149
|
}
|
|
4187
4150
|
get clientstylingurl() {
|
|
4188
4151
|
return this.$$.ctx[10];
|
|
4189
4152
|
}
|
|
4190
4153
|
set clientstylingurl(t) {
|
|
4191
|
-
this.$$set({ clientstylingurl: t }),
|
|
4154
|
+
this.$$set({ clientstylingurl: t }), F();
|
|
4192
4155
|
}
|
|
4193
4156
|
get translationurl() {
|
|
4194
4157
|
return this.$$.ctx[11];
|
|
4195
4158
|
}
|
|
4196
4159
|
set translationurl(t) {
|
|
4197
|
-
this.$$set({ translationurl: t }),
|
|
4160
|
+
this.$$set({ translationurl: t }), F();
|
|
4198
4161
|
}
|
|
4199
4162
|
}
|
|
4200
|
-
|
|
4163
|
+
ar(si, { endpoint: {}, datasource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4201
4164
|
export {
|
|
4202
|
-
|
|
4165
|
+
si as C
|
|
4203
4166
|
};
|