@everymatrix/player-consents 1.87.26 → 1.87.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/GeneralAnimationLoading-BEgo5n3Q.cjs +1 -0
- package/components/GeneralAnimationLoading-BWiHzg3I.js +84 -0
- package/components/GeneralAnimationLoading-Hz3DrXmV.js +84 -0
- package/components/PlayerConsents-BOZrluYI.cjs +3 -0
- package/components/{PlayerConsents-D_MmyzKF.js → PlayerConsents-Cng_xhf4.js} +1588 -985
- package/components/{PlayerConsents-C4AKEATH.js → PlayerConsents-DAxvvCg7.js} +1533 -944
- package/es2015/player-consents.cjs +1 -1
- package/es2015/player-consents.js +7 -7
- package/esnext/player-consents.js +1 -1
- package/package.json +1 -1
- package/components/GeneralAnimationLoading-Bl4q3liU.js +0 -669
- package/components/GeneralAnimationLoading-CnE7clu4.js +0 -706
- package/components/GeneralAnimationLoading-CvjpSnS0.cjs +0 -1
- package/components/PlayerConsents-BpocBWYo.cjs +0 -3
|
@@ -1,153 +1,727 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function
|
|
1
|
+
function F() {
|
|
2
|
+
}
|
|
3
|
+
function Wt(e) {
|
|
4
|
+
return e();
|
|
5
|
+
}
|
|
6
|
+
function vt() {
|
|
7
|
+
return /* @__PURE__ */ Object.create(null);
|
|
8
|
+
}
|
|
9
|
+
function ue(e) {
|
|
10
|
+
e.forEach(Wt);
|
|
11
|
+
}
|
|
12
|
+
function ht(e) {
|
|
13
|
+
return typeof e == "function";
|
|
14
|
+
}
|
|
15
|
+
function dt(e, t) {
|
|
16
|
+
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
|
+
}
|
|
18
|
+
function qr(e) {
|
|
19
|
+
return Object.keys(e).length === 0;
|
|
20
|
+
}
|
|
21
|
+
function Zt(e, ...t) {
|
|
22
|
+
if (e == null) {
|
|
23
|
+
for (const n of t)
|
|
24
|
+
n(void 0);
|
|
25
|
+
return F;
|
|
26
|
+
}
|
|
27
|
+
const r = e.subscribe(...t);
|
|
28
|
+
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
|
+
}
|
|
30
|
+
function Wr(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(Zt(t, r));
|
|
32
|
+
}
|
|
33
|
+
function x(e, t) {
|
|
34
|
+
e.appendChild(t);
|
|
35
|
+
}
|
|
36
|
+
function Zr(e, t, r) {
|
|
37
|
+
const n = Jr(e);
|
|
38
|
+
if (!n.getElementById(t)) {
|
|
39
|
+
const i = w("style");
|
|
40
|
+
i.id = t, i.textContent = r, Qr(n, i);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function Jr(e) {
|
|
44
|
+
if (!e)
|
|
45
|
+
return document;
|
|
46
|
+
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
47
|
+
return t && /** @type {ShadowRoot} */
|
|
48
|
+
t.host ? (
|
|
49
|
+
/** @type {ShadowRoot} */
|
|
50
|
+
t
|
|
51
|
+
) : e.ownerDocument;
|
|
52
|
+
}
|
|
53
|
+
function Qr(e, t) {
|
|
54
|
+
return x(
|
|
55
|
+
/** @type {Document} */
|
|
56
|
+
e.head || e,
|
|
57
|
+
t
|
|
58
|
+
), t.sheet;
|
|
59
|
+
}
|
|
60
|
+
function L(e, t, r) {
|
|
61
|
+
e.insertBefore(t, r || null);
|
|
62
|
+
}
|
|
63
|
+
function O(e) {
|
|
64
|
+
e.parentNode && e.parentNode.removeChild(e);
|
|
65
|
+
}
|
|
66
|
+
function mt(e, t) {
|
|
67
|
+
for (let r = 0; r < e.length; r += 1)
|
|
68
|
+
e[r] && e[r].d(t);
|
|
69
|
+
}
|
|
70
|
+
function w(e) {
|
|
71
|
+
return document.createElement(e);
|
|
72
|
+
}
|
|
73
|
+
function Ke(e) {
|
|
74
|
+
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
75
|
+
}
|
|
76
|
+
function Y(e) {
|
|
77
|
+
return document.createTextNode(e);
|
|
78
|
+
}
|
|
79
|
+
function G() {
|
|
80
|
+
return Y(" ");
|
|
81
|
+
}
|
|
82
|
+
function Yr() {
|
|
83
|
+
return Y("");
|
|
84
|
+
}
|
|
85
|
+
function be(e, t, r, n) {
|
|
86
|
+
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
87
|
+
}
|
|
88
|
+
function k(e, t, r) {
|
|
89
|
+
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
90
|
+
}
|
|
91
|
+
function Q(e, t, r) {
|
|
92
|
+
const n = t.toLowerCase();
|
|
93
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : k(e, t, r);
|
|
94
|
+
}
|
|
95
|
+
function Kr(e) {
|
|
96
|
+
return Array.from(e.childNodes);
|
|
97
|
+
}
|
|
98
|
+
function Se(e, t) {
|
|
99
|
+
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
100
|
+
t);
|
|
101
|
+
}
|
|
102
|
+
class Jt {
|
|
103
|
+
/**
|
|
104
|
+
* @private
|
|
105
|
+
* @default false
|
|
106
|
+
*/
|
|
107
|
+
is_svg = !1;
|
|
108
|
+
/** parent for creating node */
|
|
109
|
+
e = void 0;
|
|
110
|
+
/** html tag nodes */
|
|
111
|
+
n = void 0;
|
|
112
|
+
/** target */
|
|
113
|
+
t = void 0;
|
|
114
|
+
/** anchor */
|
|
115
|
+
a = void 0;
|
|
116
|
+
constructor(t = !1) {
|
|
117
|
+
this.is_svg = t, this.e = this.n = null;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* @param {string} html
|
|
121
|
+
* @returns {void}
|
|
122
|
+
*/
|
|
123
|
+
c(t) {
|
|
124
|
+
this.h(t);
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* @param {string} html
|
|
128
|
+
* @param {HTMLElement | SVGElement} target
|
|
129
|
+
* @param {HTMLElement | SVGElement} anchor
|
|
130
|
+
* @returns {void}
|
|
131
|
+
*/
|
|
132
|
+
m(t, r, n = null) {
|
|
133
|
+
this.e || (this.is_svg ? this.e = Ke(
|
|
134
|
+
/** @type {keyof SVGElementTagNameMap} */
|
|
135
|
+
r.nodeName
|
|
136
|
+
) : this.e = w(
|
|
137
|
+
/** @type {keyof HTMLElementTagNameMap} */
|
|
138
|
+
r.nodeType === 11 ? "TEMPLATE" : r.nodeName
|
|
139
|
+
), this.t = r.tagName !== "TEMPLATE" ? r : (
|
|
140
|
+
/** @type {HTMLTemplateElement} */
|
|
141
|
+
r.content
|
|
142
|
+
), this.c(t)), this.i(n);
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* @param {string} html
|
|
146
|
+
* @returns {void}
|
|
147
|
+
*/
|
|
148
|
+
h(t) {
|
|
149
|
+
this.e.innerHTML = t, this.n = Array.from(
|
|
150
|
+
this.e.nodeName === "TEMPLATE" ? this.e.content.childNodes : this.e.childNodes
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* @returns {void} */
|
|
155
|
+
i(t) {
|
|
156
|
+
for (let r = 0; r < this.n.length; r += 1)
|
|
157
|
+
L(this.t, this.n[r], t);
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* @param {string} html
|
|
161
|
+
* @returns {void}
|
|
162
|
+
*/
|
|
163
|
+
p(t) {
|
|
164
|
+
this.d(), this.h(t), this.i(this.a);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* @returns {void} */
|
|
168
|
+
d() {
|
|
169
|
+
this.n.forEach(O);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
function en(e) {
|
|
173
|
+
const t = {};
|
|
174
|
+
return e.childNodes.forEach(
|
|
175
|
+
/** @param {Element} node */
|
|
176
|
+
(r) => {
|
|
177
|
+
t[r.slot || "default"] = !0;
|
|
178
|
+
}
|
|
179
|
+
), t;
|
|
180
|
+
}
|
|
181
|
+
let ke;
|
|
182
|
+
function ve(e) {
|
|
183
|
+
ke = e;
|
|
184
|
+
}
|
|
185
|
+
function tn() {
|
|
186
|
+
if (!ke)
|
|
187
|
+
throw new Error("Function called outside component initialization");
|
|
188
|
+
return ke;
|
|
189
|
+
}
|
|
190
|
+
function rn(e) {
|
|
191
|
+
tn().$$.on_mount.push(e);
|
|
192
|
+
}
|
|
193
|
+
const re = [], Le = [];
|
|
194
|
+
let ie = [];
|
|
195
|
+
const bt = [], nn = /* @__PURE__ */ Promise.resolve();
|
|
196
|
+
let et = !1;
|
|
197
|
+
function on() {
|
|
198
|
+
et || (et = !0, nn.then(V));
|
|
199
|
+
}
|
|
200
|
+
function tt(e) {
|
|
201
|
+
ie.push(e);
|
|
202
|
+
}
|
|
203
|
+
const Xe = /* @__PURE__ */ new Set();
|
|
204
|
+
let ee = 0;
|
|
205
|
+
function V() {
|
|
206
|
+
if (ee !== 0)
|
|
207
|
+
return;
|
|
208
|
+
const e = ke;
|
|
209
|
+
do {
|
|
210
|
+
try {
|
|
211
|
+
for (; ee < re.length; ) {
|
|
212
|
+
const t = re[ee];
|
|
213
|
+
ee++, ve(t), an(t.$$);
|
|
214
|
+
}
|
|
215
|
+
} catch (t) {
|
|
216
|
+
throw re.length = 0, ee = 0, t;
|
|
217
|
+
}
|
|
218
|
+
for (ve(null), re.length = 0, ee = 0; Le.length; )
|
|
219
|
+
Le.pop()();
|
|
220
|
+
for (let t = 0; t < ie.length; t += 1) {
|
|
221
|
+
const r = ie[t];
|
|
222
|
+
Xe.has(r) || (Xe.add(r), r());
|
|
223
|
+
}
|
|
224
|
+
ie.length = 0;
|
|
225
|
+
} while (re.length);
|
|
226
|
+
for (; bt.length; )
|
|
227
|
+
bt.pop()();
|
|
228
|
+
et = !1, Xe.clear(), ve(e);
|
|
229
|
+
}
|
|
230
|
+
function an(e) {
|
|
231
|
+
if (e.fragment !== null) {
|
|
232
|
+
e.update(), ue(e.before_update);
|
|
233
|
+
const t = e.dirty;
|
|
234
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(tt);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
function sn(e) {
|
|
238
|
+
const t = [], r = [];
|
|
239
|
+
ie.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ie = t;
|
|
240
|
+
}
|
|
241
|
+
const ln = /* @__PURE__ */ new Set();
|
|
242
|
+
function cn(e, t) {
|
|
243
|
+
e && e.i && (ln.delete(e), e.i(t));
|
|
244
|
+
}
|
|
245
|
+
function oe(e) {
|
|
246
|
+
return e?.length !== void 0 ? e : Array.from(e);
|
|
247
|
+
}
|
|
248
|
+
function un(e, t, r) {
|
|
249
|
+
const { fragment: n, after_update: i } = e.$$;
|
|
250
|
+
n && n.m(t, r), tt(() => {
|
|
251
|
+
const o = e.$$.on_mount.map(Wt).filter(ht);
|
|
252
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ue(o), e.$$.on_mount = [];
|
|
253
|
+
}), i.forEach(tt);
|
|
254
|
+
}
|
|
255
|
+
function hn(e, t) {
|
|
256
|
+
const r = e.$$;
|
|
257
|
+
r.fragment !== null && (sn(r.after_update), ue(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
258
|
+
}
|
|
259
|
+
function dn(e, t) {
|
|
260
|
+
e.$$.dirty[0] === -1 && (re.push(e), on(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
261
|
+
}
|
|
262
|
+
function Qt(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
263
|
+
const u = ke;
|
|
264
|
+
ve(e);
|
|
265
|
+
const l = e.$$ = {
|
|
266
|
+
fragment: null,
|
|
267
|
+
ctx: [],
|
|
268
|
+
// state
|
|
269
|
+
props: o,
|
|
270
|
+
update: F,
|
|
271
|
+
not_equal: i,
|
|
272
|
+
bound: vt(),
|
|
273
|
+
// lifecycle
|
|
274
|
+
on_mount: [],
|
|
275
|
+
on_destroy: [],
|
|
276
|
+
on_disconnect: [],
|
|
277
|
+
before_update: [],
|
|
278
|
+
after_update: [],
|
|
279
|
+
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
280
|
+
// everything else
|
|
281
|
+
callbacks: vt(),
|
|
282
|
+
dirty: s,
|
|
283
|
+
skip_bound: !1,
|
|
284
|
+
root: t.target || u.$$.root
|
|
285
|
+
};
|
|
286
|
+
a && a(l.root);
|
|
287
|
+
let c = !1;
|
|
288
|
+
if (l.ctx = r ? r(e, t.props || {}, (d, m, ...y) => {
|
|
289
|
+
const g = y.length ? y[0] : m;
|
|
290
|
+
return l.ctx && i(l.ctx[d], l.ctx[d] = g) && (!l.skip_bound && l.bound[d] && l.bound[d](g), c && dn(e, d)), m;
|
|
291
|
+
}) : [], l.update(), c = !0, ue(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
292
|
+
if (t.hydrate) {
|
|
293
|
+
const d = Kr(t.target);
|
|
294
|
+
l.fragment && l.fragment.l(d), d.forEach(O);
|
|
295
|
+
} else
|
|
296
|
+
l.fragment && l.fragment.c();
|
|
297
|
+
t.intro && cn(e.$$.fragment), un(e, t.target, t.anchor), V();
|
|
298
|
+
}
|
|
299
|
+
ve(u);
|
|
300
|
+
}
|
|
301
|
+
let Yt;
|
|
302
|
+
typeof HTMLElement == "function" && (Yt = class extends HTMLElement {
|
|
303
|
+
/** The Svelte component constructor */
|
|
304
|
+
$$ctor;
|
|
305
|
+
/** Slots */
|
|
306
|
+
$$s;
|
|
307
|
+
/** The Svelte component instance */
|
|
308
|
+
$$c;
|
|
309
|
+
/** Whether or not the custom element is connected */
|
|
310
|
+
$$cn = !1;
|
|
311
|
+
/** Component props data */
|
|
312
|
+
$$d = {};
|
|
313
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
314
|
+
$$r = !1;
|
|
315
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
316
|
+
$$p_d = {};
|
|
317
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
318
|
+
$$l = {};
|
|
319
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
320
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
321
|
+
constructor(e, t, r) {
|
|
322
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
323
|
+
}
|
|
324
|
+
addEventListener(e, t, r) {
|
|
325
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
326
|
+
const n = this.$$c.$on(e, t);
|
|
327
|
+
this.$$l_u.set(t, n);
|
|
328
|
+
}
|
|
329
|
+
super.addEventListener(e, t, r);
|
|
330
|
+
}
|
|
331
|
+
removeEventListener(e, t, r) {
|
|
332
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
333
|
+
const n = this.$$l_u.get(t);
|
|
334
|
+
n && (n(), this.$$l_u.delete(t));
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
async connectedCallback() {
|
|
338
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
339
|
+
let e = function(i) {
|
|
340
|
+
return () => {
|
|
341
|
+
let o;
|
|
342
|
+
return {
|
|
343
|
+
c: function() {
|
|
344
|
+
o = w("slot"), i !== "default" && k(o, "name", i);
|
|
345
|
+
},
|
|
346
|
+
/**
|
|
347
|
+
* @param {HTMLElement} target
|
|
348
|
+
* @param {HTMLElement} [anchor]
|
|
349
|
+
*/
|
|
350
|
+
m: function(u, l) {
|
|
351
|
+
L(u, o, l);
|
|
352
|
+
},
|
|
353
|
+
d: function(u) {
|
|
354
|
+
u && O(o);
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
360
|
+
return;
|
|
361
|
+
const t = {}, r = en(this);
|
|
362
|
+
for (const i of this.$$s)
|
|
363
|
+
i in r && (t[i] = [e(i)]);
|
|
364
|
+
for (const i of this.attributes) {
|
|
365
|
+
const o = this.$$g_p(i.name);
|
|
366
|
+
o in this.$$d || (this.$$d[o] = Be(o, i.value, this.$$p_d, "toProp"));
|
|
367
|
+
}
|
|
368
|
+
for (const i in this.$$p_d)
|
|
369
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
370
|
+
this.$$c = new this.$$ctor({
|
|
371
|
+
target: this.shadowRoot || this,
|
|
372
|
+
props: {
|
|
373
|
+
...this.$$d,
|
|
374
|
+
$$slots: t,
|
|
375
|
+
$$scope: {
|
|
376
|
+
ctx: []
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
const n = () => {
|
|
381
|
+
this.$$r = !0;
|
|
382
|
+
for (const i in this.$$p_d)
|
|
383
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
384
|
+
const o = Be(
|
|
385
|
+
i,
|
|
386
|
+
this.$$d[i],
|
|
387
|
+
this.$$p_d,
|
|
388
|
+
"toAttribute"
|
|
389
|
+
);
|
|
390
|
+
o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
|
|
391
|
+
}
|
|
392
|
+
this.$$r = !1;
|
|
393
|
+
};
|
|
394
|
+
this.$$c.$$.after_update.push(n), n();
|
|
395
|
+
for (const i in this.$$l)
|
|
396
|
+
for (const o of this.$$l[i]) {
|
|
397
|
+
const a = this.$$c.$on(i, o);
|
|
398
|
+
this.$$l_u.set(o, a);
|
|
399
|
+
}
|
|
400
|
+
this.$$l = {};
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
404
|
+
// and setting attributes through setAttribute etc, this is helpful
|
|
405
|
+
attributeChangedCallback(e, t, r) {
|
|
406
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Be(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
407
|
+
}
|
|
408
|
+
disconnectedCallback() {
|
|
409
|
+
this.$$cn = !1, Promise.resolve().then(() => {
|
|
410
|
+
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
$$g_p(e) {
|
|
414
|
+
return Object.keys(this.$$p_d).find(
|
|
415
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
416
|
+
) || e;
|
|
417
|
+
}
|
|
418
|
+
});
|
|
419
|
+
function Be(e, t, r, n) {
|
|
420
|
+
const i = r[e]?.type;
|
|
421
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
422
|
+
return t;
|
|
423
|
+
if (n === "toAttribute")
|
|
424
|
+
switch (i) {
|
|
425
|
+
case "Object":
|
|
426
|
+
case "Array":
|
|
427
|
+
return t == null ? null : JSON.stringify(t);
|
|
428
|
+
case "Boolean":
|
|
429
|
+
return t ? "" : null;
|
|
430
|
+
case "Number":
|
|
431
|
+
return t ?? null;
|
|
432
|
+
default:
|
|
433
|
+
return t;
|
|
434
|
+
}
|
|
435
|
+
else
|
|
436
|
+
switch (i) {
|
|
437
|
+
case "Object":
|
|
438
|
+
case "Array":
|
|
439
|
+
return t && JSON.parse(t);
|
|
440
|
+
case "Boolean":
|
|
441
|
+
return t;
|
|
442
|
+
case "Number":
|
|
443
|
+
return t != null ? +t : t;
|
|
444
|
+
default:
|
|
445
|
+
return t;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
function Kt(e, t, r, n, i, o) {
|
|
449
|
+
let a = class extends Yt {
|
|
450
|
+
constructor() {
|
|
451
|
+
super(e, r, i), this.$$p_d = t;
|
|
452
|
+
}
|
|
453
|
+
static get observedAttributes() {
|
|
454
|
+
return Object.keys(t).map(
|
|
455
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
456
|
+
);
|
|
457
|
+
}
|
|
458
|
+
};
|
|
459
|
+
return Object.keys(t).forEach((s) => {
|
|
460
|
+
Object.defineProperty(a.prototype, s, {
|
|
461
|
+
get() {
|
|
462
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
463
|
+
},
|
|
464
|
+
set(u) {
|
|
465
|
+
u = Be(s, u, t), this.$$d[s] = u, this.$$c?.$set({ [s]: u });
|
|
466
|
+
}
|
|
467
|
+
});
|
|
468
|
+
}), n.forEach((s) => {
|
|
469
|
+
Object.defineProperty(a.prototype, s, {
|
|
470
|
+
get() {
|
|
471
|
+
return this.$$c?.[s];
|
|
472
|
+
}
|
|
473
|
+
});
|
|
474
|
+
}), e.element = /** @type {any} */
|
|
475
|
+
a, a;
|
|
476
|
+
}
|
|
477
|
+
class er {
|
|
478
|
+
/**
|
|
479
|
+
* ### PRIVATE API
|
|
480
|
+
*
|
|
481
|
+
* Do not use, may change at any time
|
|
482
|
+
*
|
|
483
|
+
* @type {any}
|
|
484
|
+
*/
|
|
485
|
+
$$ = void 0;
|
|
486
|
+
/**
|
|
487
|
+
* ### PRIVATE API
|
|
488
|
+
*
|
|
489
|
+
* Do not use, may change at any time
|
|
490
|
+
*
|
|
491
|
+
* @type {any}
|
|
492
|
+
*/
|
|
493
|
+
$$set = void 0;
|
|
494
|
+
/** @returns {void} */
|
|
495
|
+
$destroy() {
|
|
496
|
+
hn(this, 1), this.$destroy = F;
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* @template {Extract<keyof Events, string>} K
|
|
500
|
+
* @param {K} type
|
|
501
|
+
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
502
|
+
* @returns {() => void}
|
|
503
|
+
*/
|
|
504
|
+
$on(t, r) {
|
|
505
|
+
if (!ht(r))
|
|
506
|
+
return F;
|
|
507
|
+
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
508
|
+
return n.push(r), () => {
|
|
509
|
+
const i = n.indexOf(r);
|
|
510
|
+
i !== -1 && n.splice(i, 1);
|
|
511
|
+
};
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* @param {Partial<Props>} props
|
|
515
|
+
* @returns {void}
|
|
516
|
+
*/
|
|
517
|
+
$set(t) {
|
|
518
|
+
this.$$set && !qr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
const mn = "4";
|
|
522
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(mn);
|
|
523
|
+
const ne = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
524
|
+
function fn(e, t) {
|
|
525
|
+
if (e) {
|
|
526
|
+
const r = document.createElement("style");
|
|
527
|
+
r.innerHTML = t, e.appendChild(r);
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
function pn(e, t) {
|
|
531
|
+
if (!e || !t)
|
|
532
|
+
return;
|
|
533
|
+
const r = new URL(t);
|
|
534
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
535
|
+
const i = document.createElement("style");
|
|
536
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
537
|
+
}).catch((n) => {
|
|
538
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
function gn(e, t, r, n = !1) {
|
|
542
|
+
if (!window.emMessageBus)
|
|
543
|
+
return;
|
|
544
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
545
|
+
return r = _n(e, t), r;
|
|
546
|
+
window[ne] || (window[ne] = {}), r = yn(e, t);
|
|
547
|
+
const o = r.unsubscribe.bind(r), a = () => {
|
|
548
|
+
if (window[ne][t]) {
|
|
549
|
+
const s = window[ne][t];
|
|
550
|
+
s.refCount > 1 ? s.refCount = s.refCount - 1 : delete window[ne][t];
|
|
551
|
+
}
|
|
552
|
+
o();
|
|
553
|
+
};
|
|
554
|
+
return r.unsubscribe = a, r;
|
|
555
|
+
}
|
|
556
|
+
function _n(e, t) {
|
|
557
|
+
const r = document.createElement("style");
|
|
558
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
559
|
+
e && (r.innerHTML = n, e.appendChild(r));
|
|
560
|
+
});
|
|
561
|
+
}
|
|
562
|
+
function yn(e, t) {
|
|
563
|
+
return window.emMessageBus.subscribe(t, (r) => {
|
|
564
|
+
if (!e)
|
|
565
|
+
return;
|
|
566
|
+
const n = e.getRootNode(), i = window[ne];
|
|
567
|
+
let o = i[t]?.sheet;
|
|
568
|
+
o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
|
|
569
|
+
sheet: o,
|
|
570
|
+
refCount: 1
|
|
571
|
+
});
|
|
572
|
+
const a = n.adoptedStyleSheets || [];
|
|
573
|
+
a.includes(o) || (n.adoptedStyleSheets = [...a, o]);
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
const te = [];
|
|
577
|
+
function vn(e, t) {
|
|
4
578
|
return {
|
|
5
|
-
subscribe:
|
|
579
|
+
subscribe: Ue(e, t).subscribe
|
|
6
580
|
};
|
|
7
581
|
}
|
|
8
|
-
function
|
|
582
|
+
function Ue(e, t = F) {
|
|
9
583
|
let r;
|
|
10
584
|
const n = /* @__PURE__ */ new Set();
|
|
11
585
|
function i(s) {
|
|
12
|
-
if (
|
|
13
|
-
const
|
|
14
|
-
for (const
|
|
15
|
-
|
|
16
|
-
if (
|
|
17
|
-
for (let
|
|
18
|
-
|
|
19
|
-
|
|
586
|
+
if (dt(e, s) && (e = s, r)) {
|
|
587
|
+
const u = !te.length;
|
|
588
|
+
for (const l of n)
|
|
589
|
+
l[1](), te.push(l, e);
|
|
590
|
+
if (u) {
|
|
591
|
+
for (let l = 0; l < te.length; l += 2)
|
|
592
|
+
te[l][0](te[l + 1]);
|
|
593
|
+
te.length = 0;
|
|
20
594
|
}
|
|
21
595
|
}
|
|
22
596
|
}
|
|
23
597
|
function o(s) {
|
|
24
598
|
i(s(e));
|
|
25
599
|
}
|
|
26
|
-
function a(s,
|
|
27
|
-
const
|
|
28
|
-
return n.add(
|
|
29
|
-
n.delete(
|
|
600
|
+
function a(s, u = F) {
|
|
601
|
+
const l = [s, u];
|
|
602
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || F), s(e), () => {
|
|
603
|
+
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
30
604
|
};
|
|
31
605
|
}
|
|
32
606
|
return { set: i, update: o, subscribe: a };
|
|
33
607
|
}
|
|
34
|
-
function
|
|
608
|
+
function he(e, t, r) {
|
|
35
609
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
36
610
|
if (!i.every(Boolean))
|
|
37
611
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
38
612
|
const o = t.length < 2;
|
|
39
|
-
return
|
|
40
|
-
let
|
|
41
|
-
const
|
|
42
|
-
let
|
|
613
|
+
return vn(r, (a, s) => {
|
|
614
|
+
let u = !1;
|
|
615
|
+
const l = [];
|
|
616
|
+
let c = 0, d = F;
|
|
43
617
|
const m = () => {
|
|
44
|
-
if (
|
|
618
|
+
if (c)
|
|
45
619
|
return;
|
|
46
620
|
d();
|
|
47
|
-
const
|
|
48
|
-
o ? a(
|
|
49
|
-
},
|
|
50
|
-
(
|
|
51
|
-
|
|
52
|
-
(
|
|
53
|
-
|
|
621
|
+
const g = t(n ? l[0] : l, a, s);
|
|
622
|
+
o ? a(g) : d = ht(g) ? g : F;
|
|
623
|
+
}, y = i.map(
|
|
624
|
+
(g, f) => Zt(
|
|
625
|
+
g,
|
|
626
|
+
(S) => {
|
|
627
|
+
l[f] = S, c &= ~(1 << f), u && m();
|
|
54
628
|
},
|
|
55
629
|
() => {
|
|
56
|
-
|
|
630
|
+
c |= 1 << f;
|
|
57
631
|
}
|
|
58
632
|
)
|
|
59
633
|
);
|
|
60
|
-
return
|
|
61
|
-
|
|
634
|
+
return u = !0, m(), function() {
|
|
635
|
+
ue(y), d(), u = !1;
|
|
62
636
|
};
|
|
63
637
|
});
|
|
64
638
|
}
|
|
65
|
-
function
|
|
639
|
+
function bn(e) {
|
|
66
640
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
67
641
|
}
|
|
68
|
-
var
|
|
69
|
-
return
|
|
642
|
+
var kn = function(t) {
|
|
643
|
+
return En(t) && !Cn(t);
|
|
70
644
|
};
|
|
71
|
-
function
|
|
645
|
+
function En(e) {
|
|
72
646
|
return !!e && typeof e == "object";
|
|
73
647
|
}
|
|
74
|
-
function
|
|
648
|
+
function Cn(e) {
|
|
75
649
|
var t = Object.prototype.toString.call(e);
|
|
76
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
650
|
+
return t === "[object RegExp]" || t === "[object Date]" || wn(e);
|
|
77
651
|
}
|
|
78
|
-
var
|
|
79
|
-
function
|
|
80
|
-
return e.$$typeof ===
|
|
652
|
+
var Sn = typeof Symbol == "function" && Symbol.for, xn = Sn ? Symbol.for("react.element") : 60103;
|
|
653
|
+
function wn(e) {
|
|
654
|
+
return e.$$typeof === xn;
|
|
81
655
|
}
|
|
82
|
-
function
|
|
656
|
+
function Tn(e) {
|
|
83
657
|
return Array.isArray(e) ? [] : {};
|
|
84
658
|
}
|
|
85
|
-
function
|
|
86
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
659
|
+
function Ee(e, t) {
|
|
660
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ae(Tn(e), e, t) : e;
|
|
87
661
|
}
|
|
88
|
-
function
|
|
662
|
+
function Mn(e, t, r) {
|
|
89
663
|
return e.concat(t).map(function(n) {
|
|
90
|
-
return
|
|
664
|
+
return Ee(n, r);
|
|
91
665
|
});
|
|
92
666
|
}
|
|
93
|
-
function
|
|
667
|
+
function Nn(e, t) {
|
|
94
668
|
if (!t.customMerge)
|
|
95
|
-
return
|
|
669
|
+
return ae;
|
|
96
670
|
var r = t.customMerge(e);
|
|
97
|
-
return typeof r == "function" ? r :
|
|
671
|
+
return typeof r == "function" ? r : ae;
|
|
98
672
|
}
|
|
99
|
-
function
|
|
673
|
+
function An(e) {
|
|
100
674
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
101
675
|
return Object.propertyIsEnumerable.call(e, t);
|
|
102
676
|
}) : [];
|
|
103
677
|
}
|
|
104
|
-
function
|
|
105
|
-
return Object.keys(e).concat(
|
|
678
|
+
function kt(e) {
|
|
679
|
+
return Object.keys(e).concat(An(e));
|
|
106
680
|
}
|
|
107
|
-
function
|
|
681
|
+
function tr(e, t) {
|
|
108
682
|
try {
|
|
109
683
|
return t in e;
|
|
110
684
|
} catch {
|
|
111
685
|
return !1;
|
|
112
686
|
}
|
|
113
687
|
}
|
|
114
|
-
function
|
|
115
|
-
return
|
|
688
|
+
function Hn(e, t) {
|
|
689
|
+
return tr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
116
690
|
}
|
|
117
|
-
function
|
|
691
|
+
function Pn(e, t, r) {
|
|
118
692
|
var n = {};
|
|
119
|
-
return r.isMergeableObject(e) &&
|
|
120
|
-
n[i] =
|
|
121
|
-
}),
|
|
122
|
-
|
|
693
|
+
return r.isMergeableObject(e) && kt(e).forEach(function(i) {
|
|
694
|
+
n[i] = Ee(e[i], r);
|
|
695
|
+
}), kt(t).forEach(function(i) {
|
|
696
|
+
Hn(e, i) || (tr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Nn(i, r)(e[i], t[i], r) : n[i] = Ee(t[i], r));
|
|
123
697
|
}), n;
|
|
124
698
|
}
|
|
125
|
-
function
|
|
126
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
699
|
+
function ae(e, t, r) {
|
|
700
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Mn, r.isMergeableObject = r.isMergeableObject || kn, r.cloneUnlessOtherwiseSpecified = Ee;
|
|
127
701
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
128
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
702
|
+
return o ? n ? r.arrayMerge(e, t, r) : Pn(e, t, r) : Ee(t, r);
|
|
129
703
|
}
|
|
130
|
-
|
|
704
|
+
ae.all = function(t, r) {
|
|
131
705
|
if (!Array.isArray(t))
|
|
132
706
|
throw new Error("first argument should be an array");
|
|
133
707
|
return t.reduce(function(n, i) {
|
|
134
|
-
return
|
|
708
|
+
return ae(n, i, r);
|
|
135
709
|
}, {});
|
|
136
710
|
};
|
|
137
|
-
var
|
|
138
|
-
const
|
|
139
|
-
var
|
|
140
|
-
return
|
|
711
|
+
var Bn = ae, On = Bn;
|
|
712
|
+
const zn = /* @__PURE__ */ bn(On);
|
|
713
|
+
var rt = function(e, t) {
|
|
714
|
+
return rt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
141
715
|
r.__proto__ = n;
|
|
142
716
|
} || function(r, n) {
|
|
143
717
|
for (var i in n)
|
|
144
718
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
145
|
-
},
|
|
719
|
+
}, rt(e, t);
|
|
146
720
|
};
|
|
147
|
-
function
|
|
721
|
+
function De(e, t) {
|
|
148
722
|
if (typeof t != "function" && t !== null)
|
|
149
723
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
150
|
-
|
|
724
|
+
rt(e, t);
|
|
151
725
|
function r() {
|
|
152
726
|
this.constructor = e;
|
|
153
727
|
}
|
|
@@ -163,7 +737,7 @@ var q = function() {
|
|
|
163
737
|
return t;
|
|
164
738
|
}, q.apply(this, arguments);
|
|
165
739
|
};
|
|
166
|
-
function
|
|
740
|
+
function Ln(e, t) {
|
|
167
741
|
var r = {};
|
|
168
742
|
for (var n in e)
|
|
169
743
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -172,43 +746,43 @@ function nn(e, t) {
|
|
|
172
746
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
173
747
|
return r;
|
|
174
748
|
}
|
|
175
|
-
function
|
|
749
|
+
function qe(e, t, r) {
|
|
176
750
|
if (r || arguments.length === 2)
|
|
177
751
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
178
752
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
179
753
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
180
754
|
}
|
|
181
|
-
function
|
|
182
|
-
var r = t && t.cache ? t.cache :
|
|
755
|
+
function We(e, t) {
|
|
756
|
+
var r = t && t.cache ? t.cache : Fn, n = t && t.serializer ? t.serializer : Dn, i = t && t.strategy ? t.strategy : Rn;
|
|
183
757
|
return i(e, {
|
|
184
758
|
cache: r,
|
|
185
759
|
serializer: n
|
|
186
760
|
});
|
|
187
761
|
}
|
|
188
|
-
function
|
|
762
|
+
function jn(e) {
|
|
189
763
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
190
764
|
}
|
|
191
|
-
function
|
|
192
|
-
var i =
|
|
765
|
+
function In(e, t, r, n) {
|
|
766
|
+
var i = jn(n) ? n : r(n), o = t.get(i);
|
|
193
767
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
194
768
|
}
|
|
195
|
-
function
|
|
769
|
+
function rr(e, t, r) {
|
|
196
770
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
197
771
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
198
772
|
}
|
|
199
|
-
function
|
|
773
|
+
function nr(e, t, r, n, i) {
|
|
200
774
|
return r.bind(t, e, n, i);
|
|
201
775
|
}
|
|
202
|
-
function
|
|
203
|
-
var r = e.length === 1 ?
|
|
204
|
-
return
|
|
776
|
+
function Rn(e, t) {
|
|
777
|
+
var r = e.length === 1 ? In : rr;
|
|
778
|
+
return nr(e, this, r, t.cache.create(), t.serializer);
|
|
205
779
|
}
|
|
206
|
-
function
|
|
207
|
-
return
|
|
780
|
+
function Un(e, t) {
|
|
781
|
+
return nr(e, this, rr, t.cache.create(), t.serializer);
|
|
208
782
|
}
|
|
209
|
-
var
|
|
783
|
+
var Dn = function() {
|
|
210
784
|
return JSON.stringify(arguments);
|
|
211
|
-
},
|
|
785
|
+
}, Gn = (
|
|
212
786
|
/** @class */
|
|
213
787
|
function() {
|
|
214
788
|
function e() {
|
|
@@ -220,71 +794,71 @@ var cn = function() {
|
|
|
220
794
|
this.cache[t] = r;
|
|
221
795
|
}, e;
|
|
222
796
|
}()
|
|
223
|
-
),
|
|
797
|
+
), Fn = {
|
|
224
798
|
create: function() {
|
|
225
|
-
return new
|
|
799
|
+
return new Gn();
|
|
226
800
|
}
|
|
227
|
-
},
|
|
228
|
-
variadic:
|
|
229
|
-
},
|
|
230
|
-
return
|
|
801
|
+
}, Ze = {
|
|
802
|
+
variadic: Un
|
|
803
|
+
}, je = function() {
|
|
804
|
+
return je = Object.assign || function(t) {
|
|
231
805
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
232
806
|
r = arguments[n];
|
|
233
807
|
for (var o in r)
|
|
234
808
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
235
809
|
}
|
|
236
810
|
return t;
|
|
237
|
-
},
|
|
811
|
+
}, je.apply(this, arguments);
|
|
238
812
|
};
|
|
239
|
-
var
|
|
813
|
+
var N;
|
|
240
814
|
(function(e) {
|
|
241
815
|
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";
|
|
242
|
-
})(
|
|
816
|
+
})(N || (N = {}));
|
|
243
817
|
var P;
|
|
244
818
|
(function(e) {
|
|
245
819
|
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";
|
|
246
820
|
})(P || (P = {}));
|
|
247
|
-
var
|
|
821
|
+
var se;
|
|
248
822
|
(function(e) {
|
|
249
823
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
250
|
-
})(
|
|
251
|
-
function
|
|
824
|
+
})(se || (se = {}));
|
|
825
|
+
function Et(e) {
|
|
252
826
|
return e.type === P.literal;
|
|
253
827
|
}
|
|
254
|
-
function
|
|
828
|
+
function $n(e) {
|
|
255
829
|
return e.type === P.argument;
|
|
256
830
|
}
|
|
257
|
-
function
|
|
831
|
+
function ir(e) {
|
|
258
832
|
return e.type === P.number;
|
|
259
833
|
}
|
|
260
|
-
function
|
|
834
|
+
function or(e) {
|
|
261
835
|
return e.type === P.date;
|
|
262
836
|
}
|
|
263
|
-
function
|
|
837
|
+
function ar(e) {
|
|
264
838
|
return e.type === P.time;
|
|
265
839
|
}
|
|
266
|
-
function
|
|
840
|
+
function sr(e) {
|
|
267
841
|
return e.type === P.select;
|
|
268
842
|
}
|
|
269
|
-
function
|
|
843
|
+
function lr(e) {
|
|
270
844
|
return e.type === P.plural;
|
|
271
845
|
}
|
|
272
|
-
function
|
|
846
|
+
function Vn(e) {
|
|
273
847
|
return e.type === P.pound;
|
|
274
848
|
}
|
|
275
|
-
function
|
|
849
|
+
function cr(e) {
|
|
276
850
|
return e.type === P.tag;
|
|
277
851
|
}
|
|
278
|
-
function
|
|
279
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
852
|
+
function ur(e) {
|
|
853
|
+
return !!(e && typeof e == "object" && e.type === se.number);
|
|
280
854
|
}
|
|
281
|
-
function
|
|
282
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
855
|
+
function nt(e) {
|
|
856
|
+
return !!(e && typeof e == "object" && e.type === se.dateTime);
|
|
283
857
|
}
|
|
284
|
-
var
|
|
285
|
-
function
|
|
858
|
+
var hr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Xn = /(?:[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;
|
|
859
|
+
function qn(e) {
|
|
286
860
|
var t = {};
|
|
287
|
-
return e.replace(
|
|
861
|
+
return e.replace(Xn, function(r) {
|
|
288
862
|
var n = r.length;
|
|
289
863
|
switch (r[0]) {
|
|
290
864
|
case "G":
|
|
@@ -373,46 +947,46 @@ function gn(e) {
|
|
|
373
947
|
return "";
|
|
374
948
|
}), t;
|
|
375
949
|
}
|
|
376
|
-
var
|
|
377
|
-
return
|
|
950
|
+
var B = function() {
|
|
951
|
+
return B = Object.assign || function(t) {
|
|
378
952
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
379
953
|
r = arguments[n];
|
|
380
954
|
for (var o in r)
|
|
381
955
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
382
956
|
}
|
|
383
957
|
return t;
|
|
384
|
-
},
|
|
958
|
+
}, B.apply(this, arguments);
|
|
385
959
|
};
|
|
386
|
-
var
|
|
387
|
-
function
|
|
960
|
+
var Wn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
961
|
+
function Zn(e) {
|
|
388
962
|
if (e.length === 0)
|
|
389
963
|
throw new Error("Number skeleton cannot be empty");
|
|
390
|
-
for (var t = e.split(
|
|
964
|
+
for (var t = e.split(Wn).filter(function(m) {
|
|
391
965
|
return m.length > 0;
|
|
392
966
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
393
967
|
var o = i[n], a = o.split("/");
|
|
394
968
|
if (a.length === 0)
|
|
395
969
|
throw new Error("Invalid number skeleton");
|
|
396
|
-
for (var s = a[0],
|
|
397
|
-
var d = l
|
|
970
|
+
for (var s = a[0], u = a.slice(1), l = 0, c = u; l < c.length; l++) {
|
|
971
|
+
var d = c[l];
|
|
398
972
|
if (d.length === 0)
|
|
399
973
|
throw new Error("Invalid number skeleton");
|
|
400
974
|
}
|
|
401
|
-
r.push({ stem: s, options:
|
|
975
|
+
r.push({ stem: s, options: u });
|
|
402
976
|
}
|
|
403
977
|
return r;
|
|
404
978
|
}
|
|
405
|
-
function
|
|
979
|
+
function Jn(e) {
|
|
406
980
|
return e.replace(/^(.*?)-/, "");
|
|
407
981
|
}
|
|
408
|
-
var
|
|
409
|
-
function
|
|
982
|
+
var Ct = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, dr = /^(@+)?(\+|#+)?[rs]?$/g, Qn = /(\*)(0+)|(#+)(0+)|(0+)/g, mr = /^(0+)$/;
|
|
983
|
+
function St(e) {
|
|
410
984
|
var t = {};
|
|
411
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
985
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(dr, function(r, n, i) {
|
|
412
986
|
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)), "";
|
|
413
987
|
}), t;
|
|
414
988
|
}
|
|
415
|
-
function
|
|
989
|
+
function fr(e) {
|
|
416
990
|
switch (e) {
|
|
417
991
|
case "sign-auto":
|
|
418
992
|
return {
|
|
@@ -452,7 +1026,7 @@ function Yt(e) {
|
|
|
452
1026
|
};
|
|
453
1027
|
}
|
|
454
1028
|
}
|
|
455
|
-
function
|
|
1029
|
+
function Yn(e) {
|
|
456
1030
|
var t;
|
|
457
1031
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
458
1032
|
notation: "engineering"
|
|
@@ -460,17 +1034,17 @@ function kn(e) {
|
|
|
460
1034
|
notation: "scientific"
|
|
461
1035
|
}, e = e.slice(1)), t) {
|
|
462
1036
|
var r = e.slice(0, 2);
|
|
463
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1037
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mr.test(e))
|
|
464
1038
|
throw new Error("Malformed concise eng/scientific notation");
|
|
465
1039
|
t.minimumIntegerDigits = e.length;
|
|
466
1040
|
}
|
|
467
1041
|
return t;
|
|
468
1042
|
}
|
|
469
|
-
function
|
|
470
|
-
var t = {}, r =
|
|
1043
|
+
function xt(e) {
|
|
1044
|
+
var t = {}, r = fr(e);
|
|
471
1045
|
return r || t;
|
|
472
1046
|
}
|
|
473
|
-
function
|
|
1047
|
+
function Kn(e) {
|
|
474
1048
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
475
1049
|
var i = n[r];
|
|
476
1050
|
switch (i.stem) {
|
|
@@ -494,7 +1068,7 @@ function bn(e) {
|
|
|
494
1068
|
continue;
|
|
495
1069
|
case "measure-unit":
|
|
496
1070
|
case "unit":
|
|
497
|
-
t.style = "unit", t.unit =
|
|
1071
|
+
t.style = "unit", t.unit = Jn(i.options[0]);
|
|
498
1072
|
continue;
|
|
499
1073
|
case "compact-short":
|
|
500
1074
|
case "K":
|
|
@@ -505,13 +1079,13 @@ function bn(e) {
|
|
|
505
1079
|
t.notation = "compact", t.compactDisplay = "long";
|
|
506
1080
|
continue;
|
|
507
1081
|
case "scientific":
|
|
508
|
-
t =
|
|
509
|
-
return
|
|
1082
|
+
t = B(B(B({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
1083
|
+
return B(B({}, u), xt(l));
|
|
510
1084
|
}, {}));
|
|
511
1085
|
continue;
|
|
512
1086
|
case "engineering":
|
|
513
|
-
t =
|
|
514
|
-
return
|
|
1087
|
+
t = B(B(B({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
1088
|
+
return B(B({}, u), xt(l));
|
|
515
1089
|
}, {}));
|
|
516
1090
|
continue;
|
|
517
1091
|
case "notation-simple":
|
|
@@ -556,45 +1130,45 @@ function bn(e) {
|
|
|
556
1130
|
case "integer-width":
|
|
557
1131
|
if (i.options.length > 1)
|
|
558
1132
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
559
|
-
i.options[0].replace(
|
|
560
|
-
if (
|
|
561
|
-
t.minimumIntegerDigits =
|
|
1133
|
+
i.options[0].replace(Qn, function(u, l, c, d, m, y) {
|
|
1134
|
+
if (l)
|
|
1135
|
+
t.minimumIntegerDigits = c.length;
|
|
562
1136
|
else {
|
|
563
1137
|
if (d && m)
|
|
564
1138
|
throw new Error("We currently do not support maximum integer digits");
|
|
565
|
-
if (
|
|
1139
|
+
if (y)
|
|
566
1140
|
throw new Error("We currently do not support exact integer digits");
|
|
567
1141
|
}
|
|
568
1142
|
return "";
|
|
569
1143
|
});
|
|
570
1144
|
continue;
|
|
571
1145
|
}
|
|
572
|
-
if (
|
|
1146
|
+
if (mr.test(i.stem)) {
|
|
573
1147
|
t.minimumIntegerDigits = i.stem.length;
|
|
574
1148
|
continue;
|
|
575
1149
|
}
|
|
576
|
-
if (
|
|
1150
|
+
if (Ct.test(i.stem)) {
|
|
577
1151
|
if (i.options.length > 1)
|
|
578
1152
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
579
|
-
i.stem.replace(
|
|
580
|
-
return
|
|
1153
|
+
i.stem.replace(Ct, function(u, l, c, d, m, y) {
|
|
1154
|
+
return c === "*" ? t.minimumFractionDigits = l.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : m && y ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + y.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
581
1155
|
});
|
|
582
1156
|
var o = i.options[0];
|
|
583
|
-
o === "w" ? t =
|
|
1157
|
+
o === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = B(B({}, t), St(o)));
|
|
584
1158
|
continue;
|
|
585
1159
|
}
|
|
586
|
-
if (
|
|
587
|
-
t =
|
|
1160
|
+
if (dr.test(i.stem)) {
|
|
1161
|
+
t = B(B({}, t), St(i.stem));
|
|
588
1162
|
continue;
|
|
589
1163
|
}
|
|
590
|
-
var a =
|
|
591
|
-
a && (t =
|
|
592
|
-
var s =
|
|
593
|
-
s && (t =
|
|
1164
|
+
var a = fr(i.stem);
|
|
1165
|
+
a && (t = B(B({}, t), a));
|
|
1166
|
+
var s = Yn(i.stem);
|
|
1167
|
+
s && (t = B(B({}, t), s));
|
|
594
1168
|
}
|
|
595
1169
|
return t;
|
|
596
1170
|
}
|
|
597
|
-
var
|
|
1171
|
+
var Pe = {
|
|
598
1172
|
"001": [
|
|
599
1173
|
"H",
|
|
600
1174
|
"h"
|
|
@@ -2009,23 +2583,23 @@ var Se = {
|
|
|
2009
2583
|
"h"
|
|
2010
2584
|
]
|
|
2011
2585
|
};
|
|
2012
|
-
function
|
|
2586
|
+
function ei(e, t) {
|
|
2013
2587
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2014
2588
|
var i = e.charAt(n);
|
|
2015
2589
|
if (i === "j") {
|
|
2016
2590
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2017
2591
|
o++, n++;
|
|
2018
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1),
|
|
2019
|
-
for ((
|
|
2020
|
-
r +=
|
|
2592
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = ti(t);
|
|
2593
|
+
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
2594
|
+
r += u;
|
|
2021
2595
|
for (; a-- > 0; )
|
|
2022
|
-
r =
|
|
2596
|
+
r = l + r;
|
|
2023
2597
|
} else
|
|
2024
2598
|
i === "J" ? r += "H" : r += i;
|
|
2025
2599
|
}
|
|
2026
2600
|
return r;
|
|
2027
2601
|
}
|
|
2028
|
-
function
|
|
2602
|
+
function ti(e) {
|
|
2029
2603
|
var t = e.hourCycle;
|
|
2030
2604
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2031
2605
|
e.hourCycles && // @ts-ignore
|
|
@@ -2044,23 +2618,23 @@ function Cn(e) {
|
|
|
2044
2618
|
}
|
|
2045
2619
|
var r = e.language, n;
|
|
2046
2620
|
r !== "root" && (n = e.maximize().region);
|
|
2047
|
-
var i =
|
|
2621
|
+
var i = Pe[n || ""] || Pe[r || ""] || Pe["".concat(r, "-001")] || Pe["001"];
|
|
2048
2622
|
return i[0];
|
|
2049
2623
|
}
|
|
2050
|
-
var
|
|
2051
|
-
function
|
|
2624
|
+
var Je, ri = new RegExp("^".concat(hr.source, "*")), ni = new RegExp("".concat(hr.source, "*$"));
|
|
2625
|
+
function A(e, t) {
|
|
2052
2626
|
return { start: e, end: t };
|
|
2053
2627
|
}
|
|
2054
|
-
var
|
|
2628
|
+
var ii = !!String.prototype.startsWith && "_a".startsWith("a", 1), oi = !!String.fromCodePoint, ai = !!Object.fromEntries, si = !!String.prototype.codePointAt, li = !!String.prototype.trimStart, ci = !!String.prototype.trimEnd, ui = !!Number.isSafeInteger, hi = ui ? Number.isSafeInteger : function(e) {
|
|
2055
2629
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2056
|
-
},
|
|
2630
|
+
}, it = !0;
|
|
2057
2631
|
try {
|
|
2058
|
-
var
|
|
2059
|
-
|
|
2632
|
+
var di = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2633
|
+
it = ((Je = di.exec("a")) === null || Je === void 0 ? void 0 : Je[0]) === "a";
|
|
2060
2634
|
} catch {
|
|
2061
|
-
|
|
2635
|
+
it = !1;
|
|
2062
2636
|
}
|
|
2063
|
-
var
|
|
2637
|
+
var wt = ii ? (
|
|
2064
2638
|
// Native
|
|
2065
2639
|
function(t, r, n) {
|
|
2066
2640
|
return t.startsWith(r, n);
|
|
@@ -2070,7 +2644,7 @@ var ht = Tn ? (
|
|
|
2070
2644
|
function(t, r, n) {
|
|
2071
2645
|
return t.slice(n, n + r.length) === r;
|
|
2072
2646
|
}
|
|
2073
|
-
),
|
|
2647
|
+
), ot = oi ? String.fromCodePoint : (
|
|
2074
2648
|
// IE11
|
|
2075
2649
|
function() {
|
|
2076
2650
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2082,9 +2656,9 @@ var ht = Tn ? (
|
|
|
2082
2656
|
}
|
|
2083
2657
|
return n;
|
|
2084
2658
|
}
|
|
2085
|
-
),
|
|
2659
|
+
), Tt = (
|
|
2086
2660
|
// native
|
|
2087
|
-
|
|
2661
|
+
ai ? Object.fromEntries : (
|
|
2088
2662
|
// Ponyfill
|
|
2089
2663
|
function(t) {
|
|
2090
2664
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2094,7 +2668,7 @@ var ht = Tn ? (
|
|
|
2094
2668
|
return r;
|
|
2095
2669
|
}
|
|
2096
2670
|
)
|
|
2097
|
-
),
|
|
2671
|
+
), pr = si ? (
|
|
2098
2672
|
// Native
|
|
2099
2673
|
function(t, r) {
|
|
2100
2674
|
return t.codePointAt(r);
|
|
@@ -2108,7 +2682,7 @@ var ht = Tn ? (
|
|
|
2108
2682
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2109
2683
|
}
|
|
2110
2684
|
}
|
|
2111
|
-
),
|
|
2685
|
+
), mi = li ? (
|
|
2112
2686
|
// Native
|
|
2113
2687
|
function(t) {
|
|
2114
2688
|
return t.trimStart();
|
|
@@ -2116,9 +2690,9 @@ var ht = Tn ? (
|
|
|
2116
2690
|
) : (
|
|
2117
2691
|
// Ponyfill
|
|
2118
2692
|
function(t) {
|
|
2119
|
-
return t.replace(
|
|
2693
|
+
return t.replace(ri, "");
|
|
2120
2694
|
}
|
|
2121
|
-
),
|
|
2695
|
+
), fi = ci ? (
|
|
2122
2696
|
// Native
|
|
2123
2697
|
function(t) {
|
|
2124
2698
|
return t.trimEnd();
|
|
@@ -2126,32 +2700,32 @@ var ht = Tn ? (
|
|
|
2126
2700
|
) : (
|
|
2127
2701
|
// Ponyfill
|
|
2128
2702
|
function(t) {
|
|
2129
|
-
return t.replace(
|
|
2703
|
+
return t.replace(ni, "");
|
|
2130
2704
|
}
|
|
2131
2705
|
);
|
|
2132
|
-
function
|
|
2706
|
+
function gr(e, t) {
|
|
2133
2707
|
return new RegExp(e, t);
|
|
2134
2708
|
}
|
|
2135
|
-
var
|
|
2136
|
-
if (
|
|
2137
|
-
var
|
|
2138
|
-
|
|
2709
|
+
var at;
|
|
2710
|
+
if (it) {
|
|
2711
|
+
var Mt = gr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2712
|
+
at = function(t, r) {
|
|
2139
2713
|
var n;
|
|
2140
|
-
|
|
2141
|
-
var i =
|
|
2714
|
+
Mt.lastIndex = r;
|
|
2715
|
+
var i = Mt.exec(t);
|
|
2142
2716
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2143
2717
|
};
|
|
2144
2718
|
} else
|
|
2145
|
-
|
|
2719
|
+
at = function(t, r) {
|
|
2146
2720
|
for (var n = []; ; ) {
|
|
2147
|
-
var i =
|
|
2148
|
-
if (i === void 0 ||
|
|
2721
|
+
var i = pr(t, r);
|
|
2722
|
+
if (i === void 0 || _r(i) || yi(i))
|
|
2149
2723
|
break;
|
|
2150
2724
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2151
2725
|
}
|
|
2152
|
-
return
|
|
2726
|
+
return ot.apply(void 0, n);
|
|
2153
2727
|
};
|
|
2154
|
-
var
|
|
2728
|
+
var pi = (
|
|
2155
2729
|
/** @class */
|
|
2156
2730
|
function() {
|
|
2157
2731
|
function e(t, r) {
|
|
@@ -2176,13 +2750,13 @@ var jn = (
|
|
|
2176
2750
|
var s = this.clonePosition();
|
|
2177
2751
|
this.bump(), i.push({
|
|
2178
2752
|
type: P.pound,
|
|
2179
|
-
location:
|
|
2753
|
+
location: A(s, this.clonePosition())
|
|
2180
2754
|
});
|
|
2181
2755
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2182
2756
|
if (n)
|
|
2183
2757
|
break;
|
|
2184
|
-
return this.error(
|
|
2185
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2758
|
+
return this.error(N.UNMATCHED_CLOSING_TAG, A(this.clonePosition(), this.clonePosition()));
|
|
2759
|
+
} else if (o === 60 && !this.ignoreTag && st(this.peek() || 0)) {
|
|
2186
2760
|
var a = this.parseTag(t, r);
|
|
2187
2761
|
if (a.err)
|
|
2188
2762
|
return a;
|
|
@@ -2205,7 +2779,7 @@ var jn = (
|
|
|
2205
2779
|
val: {
|
|
2206
2780
|
type: P.literal,
|
|
2207
2781
|
value: "<".concat(i, "/>"),
|
|
2208
|
-
location:
|
|
2782
|
+
location: A(n, this.clonePosition())
|
|
2209
2783
|
},
|
|
2210
2784
|
err: null
|
|
2211
2785
|
};
|
|
@@ -2215,25 +2789,25 @@ var jn = (
|
|
|
2215
2789
|
return o;
|
|
2216
2790
|
var a = o.val, s = this.clonePosition();
|
|
2217
2791
|
if (this.bumpIf("</")) {
|
|
2218
|
-
if (this.isEOF() || !
|
|
2219
|
-
return this.error(
|
|
2220
|
-
var
|
|
2221
|
-
return i !==
|
|
2792
|
+
if (this.isEOF() || !st(this.char()))
|
|
2793
|
+
return this.error(N.INVALID_TAG, A(s, this.clonePosition()));
|
|
2794
|
+
var u = this.clonePosition(), l = this.parseTagName();
|
|
2795
|
+
return i !== l ? this.error(N.UNMATCHED_CLOSING_TAG, A(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2222
2796
|
val: {
|
|
2223
2797
|
type: P.tag,
|
|
2224
2798
|
value: i,
|
|
2225
2799
|
children: a,
|
|
2226
|
-
location:
|
|
2800
|
+
location: A(n, this.clonePosition())
|
|
2227
2801
|
},
|
|
2228
2802
|
err: null
|
|
2229
|
-
} : this.error(
|
|
2803
|
+
} : this.error(N.INVALID_TAG, A(s, this.clonePosition())));
|
|
2230
2804
|
} else
|
|
2231
|
-
return this.error(
|
|
2805
|
+
return this.error(N.UNCLOSED_TAG, A(n, this.clonePosition()));
|
|
2232
2806
|
} else
|
|
2233
|
-
return this.error(
|
|
2807
|
+
return this.error(N.INVALID_TAG, A(n, this.clonePosition()));
|
|
2234
2808
|
}, e.prototype.parseTagName = function() {
|
|
2235
2809
|
var t = this.offset();
|
|
2236
|
-
for (this.bump(); !this.isEOF() &&
|
|
2810
|
+
for (this.bump(); !this.isEOF() && _i(this.char()); )
|
|
2237
2811
|
this.bump();
|
|
2238
2812
|
return this.message.slice(t, this.offset());
|
|
2239
2813
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2255,14 +2829,14 @@ var jn = (
|
|
|
2255
2829
|
}
|
|
2256
2830
|
break;
|
|
2257
2831
|
}
|
|
2258
|
-
var
|
|
2832
|
+
var u = A(n, this.clonePosition());
|
|
2259
2833
|
return {
|
|
2260
|
-
val: { type: P.literal, value: i, location:
|
|
2834
|
+
val: { type: P.literal, value: i, location: u },
|
|
2261
2835
|
err: null
|
|
2262
2836
|
};
|
|
2263
2837
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2264
2838
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2265
|
-
!
|
|
2839
|
+
!gi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2266
2840
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2267
2841
|
if (this.isEOF() || this.char() !== 39)
|
|
2268
2842
|
return null;
|
|
@@ -2296,23 +2870,23 @@ var jn = (
|
|
|
2296
2870
|
r.push(n);
|
|
2297
2871
|
this.bump();
|
|
2298
2872
|
}
|
|
2299
|
-
return
|
|
2873
|
+
return ot.apply(void 0, r);
|
|
2300
2874
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2301
2875
|
if (this.isEOF())
|
|
2302
2876
|
return null;
|
|
2303
2877
|
var n = this.char();
|
|
2304
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2878
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ot(n));
|
|
2305
2879
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2306
2880
|
var n = this.clonePosition();
|
|
2307
2881
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2308
|
-
return this.error(
|
|
2882
|
+
return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition()));
|
|
2309
2883
|
if (this.char() === 125)
|
|
2310
|
-
return this.bump(), this.error(
|
|
2884
|
+
return this.bump(), this.error(N.EMPTY_ARGUMENT, A(n, this.clonePosition()));
|
|
2311
2885
|
var i = this.parseIdentifierIfPossible().value;
|
|
2312
2886
|
if (!i)
|
|
2313
|
-
return this.error(
|
|
2887
|
+
return this.error(N.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
|
|
2314
2888
|
if (this.bumpSpace(), this.isEOF())
|
|
2315
|
-
return this.error(
|
|
2889
|
+
return this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition()));
|
|
2316
2890
|
switch (this.char()) {
|
|
2317
2891
|
case 125:
|
|
2318
2892
|
return this.bump(), {
|
|
@@ -2320,66 +2894,66 @@ var jn = (
|
|
|
2320
2894
|
type: P.argument,
|
|
2321
2895
|
// value does not include the opening and closing braces.
|
|
2322
2896
|
value: i,
|
|
2323
|
-
location:
|
|
2897
|
+
location: A(n, this.clonePosition())
|
|
2324
2898
|
},
|
|
2325
2899
|
err: null
|
|
2326
2900
|
};
|
|
2327
2901
|
case 44:
|
|
2328
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2902
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE, A(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2329
2903
|
default:
|
|
2330
|
-
return this.error(
|
|
2904
|
+
return this.error(N.MALFORMED_ARGUMENT, A(n, this.clonePosition()));
|
|
2331
2905
|
}
|
|
2332
2906
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2333
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2907
|
+
var t = this.clonePosition(), r = this.offset(), n = at(this.message, r), i = r + n.length;
|
|
2334
2908
|
this.bumpTo(i);
|
|
2335
|
-
var o = this.clonePosition(), a =
|
|
2909
|
+
var o = this.clonePosition(), a = A(t, o);
|
|
2336
2910
|
return { value: n, location: a };
|
|
2337
2911
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2338
|
-
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value,
|
|
2912
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
2339
2913
|
switch (s) {
|
|
2340
2914
|
case "":
|
|
2341
|
-
return this.error(
|
|
2915
|
+
return this.error(N.EXPECT_ARGUMENT_TYPE, A(a, u));
|
|
2342
2916
|
case "number":
|
|
2343
2917
|
case "date":
|
|
2344
2918
|
case "time": {
|
|
2345
2919
|
this.bumpSpace();
|
|
2346
|
-
var
|
|
2920
|
+
var l = null;
|
|
2347
2921
|
if (this.bumpIf(",")) {
|
|
2348
2922
|
this.bumpSpace();
|
|
2349
|
-
var
|
|
2923
|
+
var c = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
|
2350
2924
|
if (d.err)
|
|
2351
2925
|
return d;
|
|
2352
|
-
var m =
|
|
2926
|
+
var m = fi(d.val);
|
|
2353
2927
|
if (m.length === 0)
|
|
2354
|
-
return this.error(
|
|
2355
|
-
var
|
|
2356
|
-
|
|
2928
|
+
return this.error(N.EXPECT_ARGUMENT_STYLE, A(this.clonePosition(), this.clonePosition()));
|
|
2929
|
+
var y = A(c, this.clonePosition());
|
|
2930
|
+
l = { style: m, styleLocation: y };
|
|
2357
2931
|
}
|
|
2358
|
-
var
|
|
2359
|
-
if (
|
|
2360
|
-
return
|
|
2361
|
-
var
|
|
2362
|
-
if (
|
|
2363
|
-
var
|
|
2932
|
+
var g = this.tryParseArgumentClose(i);
|
|
2933
|
+
if (g.err)
|
|
2934
|
+
return g;
|
|
2935
|
+
var f = A(i, this.clonePosition());
|
|
2936
|
+
if (l && wt(l?.style, "::", 0)) {
|
|
2937
|
+
var S = mi(l.style.slice(2));
|
|
2364
2938
|
if (s === "number") {
|
|
2365
|
-
var d = this.parseNumberSkeletonFromString(
|
|
2939
|
+
var d = this.parseNumberSkeletonFromString(S, l.styleLocation);
|
|
2366
2940
|
return d.err ? d : {
|
|
2367
|
-
val: { type: P.number, value: n, location:
|
|
2941
|
+
val: { type: P.number, value: n, location: f, style: d.val },
|
|
2368
2942
|
err: null
|
|
2369
2943
|
};
|
|
2370
2944
|
} else {
|
|
2371
|
-
if (
|
|
2372
|
-
return this.error(
|
|
2373
|
-
var _ =
|
|
2374
|
-
this.locale && (_ =
|
|
2945
|
+
if (S.length === 0)
|
|
2946
|
+
return this.error(N.EXPECT_DATE_TIME_SKELETON, f);
|
|
2947
|
+
var _ = S;
|
|
2948
|
+
this.locale && (_ = ei(S, this.locale));
|
|
2375
2949
|
var m = {
|
|
2376
|
-
type:
|
|
2950
|
+
type: se.dateTime,
|
|
2377
2951
|
pattern: _,
|
|
2378
|
-
location:
|
|
2379
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2380
|
-
},
|
|
2952
|
+
location: l.styleLocation,
|
|
2953
|
+
parsedOptions: this.shouldParseSkeletons ? qn(_) : {}
|
|
2954
|
+
}, v = s === "date" ? P.date : P.time;
|
|
2381
2955
|
return {
|
|
2382
|
-
val: { type:
|
|
2956
|
+
val: { type: v, value: n, location: f, style: m },
|
|
2383
2957
|
err: null
|
|
2384
2958
|
};
|
|
2385
2959
|
}
|
|
@@ -2388,8 +2962,8 @@ var jn = (
|
|
|
2388
2962
|
val: {
|
|
2389
2963
|
type: s === "number" ? P.number : s === "date" ? P.date : P.time,
|
|
2390
2964
|
value: n,
|
|
2391
|
-
location:
|
|
2392
|
-
style: (o =
|
|
2965
|
+
location: f,
|
|
2966
|
+
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
|
2393
2967
|
},
|
|
2394
2968
|
err: null
|
|
2395
2969
|
};
|
|
@@ -2397,52 +2971,52 @@ var jn = (
|
|
|
2397
2971
|
case "plural":
|
|
2398
2972
|
case "selectordinal":
|
|
2399
2973
|
case "select": {
|
|
2400
|
-
var
|
|
2974
|
+
var C = this.clonePosition();
|
|
2401
2975
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2402
|
-
return this.error(
|
|
2976
|
+
return this.error(N.EXPECT_SELECT_ARGUMENT_OPTIONS, A(C, je({}, C)));
|
|
2403
2977
|
this.bumpSpace();
|
|
2404
|
-
var H = this.parseIdentifierIfPossible(),
|
|
2978
|
+
var H = this.parseIdentifierIfPossible(), E = 0;
|
|
2405
2979
|
if (s !== "select" && H.value === "offset") {
|
|
2406
2980
|
if (!this.bumpIf(":"))
|
|
2407
|
-
return this.error(
|
|
2981
|
+
return this.error(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, A(this.clonePosition(), this.clonePosition()));
|
|
2408
2982
|
this.bumpSpace();
|
|
2409
|
-
var d = this.tryParseDecimalInteger(
|
|
2983
|
+
var d = this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2410
2984
|
if (d.err)
|
|
2411
2985
|
return d;
|
|
2412
|
-
this.bumpSpace(), H = this.parseIdentifierIfPossible(),
|
|
2986
|
+
this.bumpSpace(), H = this.parseIdentifierIfPossible(), E = d.val;
|
|
2413
2987
|
}
|
|
2414
|
-
var
|
|
2415
|
-
if (
|
|
2416
|
-
return
|
|
2417
|
-
var
|
|
2418
|
-
if (
|
|
2419
|
-
return
|
|
2420
|
-
var
|
|
2988
|
+
var z = this.tryParsePluralOrSelectOptions(t, s, r, H);
|
|
2989
|
+
if (z.err)
|
|
2990
|
+
return z;
|
|
2991
|
+
var g = this.tryParseArgumentClose(i);
|
|
2992
|
+
if (g.err)
|
|
2993
|
+
return g;
|
|
2994
|
+
var W = A(i, this.clonePosition());
|
|
2421
2995
|
return s === "select" ? {
|
|
2422
2996
|
val: {
|
|
2423
2997
|
type: P.select,
|
|
2424
2998
|
value: n,
|
|
2425
|
-
options:
|
|
2426
|
-
location:
|
|
2999
|
+
options: Tt(z.val),
|
|
3000
|
+
location: W
|
|
2427
3001
|
},
|
|
2428
3002
|
err: null
|
|
2429
3003
|
} : {
|
|
2430
3004
|
val: {
|
|
2431
3005
|
type: P.plural,
|
|
2432
3006
|
value: n,
|
|
2433
|
-
options:
|
|
2434
|
-
offset:
|
|
3007
|
+
options: Tt(z.val),
|
|
3008
|
+
offset: E,
|
|
2435
3009
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2436
|
-
location:
|
|
3010
|
+
location: W
|
|
2437
3011
|
},
|
|
2438
3012
|
err: null
|
|
2439
3013
|
};
|
|
2440
3014
|
}
|
|
2441
3015
|
default:
|
|
2442
|
-
return this.error(
|
|
3016
|
+
return this.error(N.INVALID_ARGUMENT_TYPE, A(a, u));
|
|
2443
3017
|
}
|
|
2444
3018
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2445
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3019
|
+
return this.isEOF() || this.char() !== 125 ? this.error(N.EXPECT_ARGUMENT_CLOSING_BRACE, A(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2446
3020
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2447
3021
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2448
3022
|
var n = this.char();
|
|
@@ -2451,7 +3025,7 @@ var jn = (
|
|
|
2451
3025
|
this.bump();
|
|
2452
3026
|
var i = this.clonePosition();
|
|
2453
3027
|
if (!this.bumpUntil("'"))
|
|
2454
|
-
return this.error(
|
|
3028
|
+
return this.error(N.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, A(i, this.clonePosition()));
|
|
2455
3029
|
this.bump();
|
|
2456
3030
|
break;
|
|
2457
3031
|
}
|
|
@@ -2481,52 +3055,52 @@ var jn = (
|
|
|
2481
3055
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2482
3056
|
var n = [];
|
|
2483
3057
|
try {
|
|
2484
|
-
n =
|
|
3058
|
+
n = Zn(t);
|
|
2485
3059
|
} catch {
|
|
2486
|
-
return this.error(
|
|
3060
|
+
return this.error(N.INVALID_NUMBER_SKELETON, r);
|
|
2487
3061
|
}
|
|
2488
3062
|
return {
|
|
2489
3063
|
val: {
|
|
2490
|
-
type:
|
|
3064
|
+
type: se.number,
|
|
2491
3065
|
tokens: n,
|
|
2492
3066
|
location: r,
|
|
2493
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3067
|
+
parsedOptions: this.shouldParseSkeletons ? Kn(n) : {}
|
|
2494
3068
|
},
|
|
2495
3069
|
err: null
|
|
2496
3070
|
};
|
|
2497
3071
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2498
|
-
for (var o, a = !1, s = [],
|
|
2499
|
-
if (
|
|
3072
|
+
for (var o, a = !1, s = [], u = /* @__PURE__ */ new Set(), l = i.value, c = i.location; ; ) {
|
|
3073
|
+
if (l.length === 0) {
|
|
2500
3074
|
var d = this.clonePosition();
|
|
2501
3075
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2502
|
-
var m = this.tryParseDecimalInteger(
|
|
3076
|
+
var m = this.tryParseDecimalInteger(N.EXPECT_PLURAL_ARGUMENT_SELECTOR, N.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2503
3077
|
if (m.err)
|
|
2504
3078
|
return m;
|
|
2505
|
-
|
|
3079
|
+
c = A(d, this.clonePosition()), l = this.message.slice(d.offset, this.offset());
|
|
2506
3080
|
} else
|
|
2507
3081
|
break;
|
|
2508
3082
|
}
|
|
2509
|
-
if (
|
|
2510
|
-
return this.error(r === "select" ?
|
|
2511
|
-
|
|
2512
|
-
var
|
|
3083
|
+
if (u.has(l))
|
|
3084
|
+
return this.error(r === "select" ? N.DUPLICATE_SELECT_ARGUMENT_SELECTOR : N.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3085
|
+
l === "other" && (a = !0), this.bumpSpace();
|
|
3086
|
+
var y = this.clonePosition();
|
|
2513
3087
|
if (!this.bumpIf("{"))
|
|
2514
|
-
return this.error(r === "select" ?
|
|
2515
|
-
var
|
|
3088
|
+
return this.error(r === "select" ? N.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : N.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, A(this.clonePosition(), this.clonePosition()));
|
|
3089
|
+
var g = this.parseMessage(t + 1, r, n);
|
|
3090
|
+
if (g.err)
|
|
3091
|
+
return g;
|
|
3092
|
+
var f = this.tryParseArgumentClose(y);
|
|
2516
3093
|
if (f.err)
|
|
2517
3094
|
return f;
|
|
2518
|
-
var p = this.tryParseArgumentClose(v);
|
|
2519
|
-
if (p.err)
|
|
2520
|
-
return p;
|
|
2521
3095
|
s.push([
|
|
2522
|
-
|
|
3096
|
+
l,
|
|
2523
3097
|
{
|
|
2524
|
-
value:
|
|
2525
|
-
location:
|
|
3098
|
+
value: g.val,
|
|
3099
|
+
location: A(y, this.clonePosition())
|
|
2526
3100
|
}
|
|
2527
|
-
]),
|
|
3101
|
+
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, c = o.location;
|
|
2528
3102
|
}
|
|
2529
|
-
return s.length === 0 ? this.error(r === "select" ?
|
|
3103
|
+
return s.length === 0 ? this.error(r === "select" ? N.EXPECT_SELECT_ARGUMENT_SELECTOR : N.EXPECT_PLURAL_ARGUMENT_SELECTOR, A(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(N.MISSING_OTHER_CLAUSE, A(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
2530
3104
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2531
3105
|
var n = 1, i = this.clonePosition();
|
|
2532
3106
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -2537,8 +3111,8 @@ var jn = (
|
|
|
2537
3111
|
else
|
|
2538
3112
|
break;
|
|
2539
3113
|
}
|
|
2540
|
-
var
|
|
2541
|
-
return o ? (a *= n,
|
|
3114
|
+
var u = A(i, this.clonePosition());
|
|
3115
|
+
return o ? (a *= n, hi(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
|
|
2542
3116
|
}, e.prototype.offset = function() {
|
|
2543
3117
|
return this.position.offset;
|
|
2544
3118
|
}, e.prototype.isEOF = function() {
|
|
@@ -2553,7 +3127,7 @@ var jn = (
|
|
|
2553
3127
|
var t = this.position.offset;
|
|
2554
3128
|
if (t >= this.message.length)
|
|
2555
3129
|
throw Error("out of bound");
|
|
2556
|
-
var r =
|
|
3130
|
+
var r = pr(this.message, t);
|
|
2557
3131
|
if (r === void 0)
|
|
2558
3132
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2559
3133
|
return r;
|
|
@@ -2572,7 +3146,7 @@ var jn = (
|
|
|
2572
3146
|
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);
|
|
2573
3147
|
}
|
|
2574
3148
|
}, e.prototype.bumpIf = function(t) {
|
|
2575
|
-
if (
|
|
3149
|
+
if (wt(this.message, t, this.offset())) {
|
|
2576
3150
|
for (var r = 0; r < t.length; r++)
|
|
2577
3151
|
this.bump();
|
|
2578
3152
|
return !0;
|
|
@@ -2594,7 +3168,7 @@ var jn = (
|
|
|
2594
3168
|
break;
|
|
2595
3169
|
}
|
|
2596
3170
|
}, e.prototype.bumpSpace = function() {
|
|
2597
|
-
for (; !this.isEOF() &&
|
|
3171
|
+
for (; !this.isEOF() && _r(this.char()); )
|
|
2598
3172
|
this.bump();
|
|
2599
3173
|
}, e.prototype.peek = function() {
|
|
2600
3174
|
if (this.isEOF())
|
|
@@ -2604,47 +3178,47 @@ var jn = (
|
|
|
2604
3178
|
}, e;
|
|
2605
3179
|
}()
|
|
2606
3180
|
);
|
|
2607
|
-
function
|
|
3181
|
+
function st(e) {
|
|
2608
3182
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
2609
3183
|
}
|
|
2610
|
-
function
|
|
2611
|
-
return
|
|
3184
|
+
function gi(e) {
|
|
3185
|
+
return st(e) || e === 47;
|
|
2612
3186
|
}
|
|
2613
|
-
function
|
|
3187
|
+
function _i(e) {
|
|
2614
3188
|
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;
|
|
2615
3189
|
}
|
|
2616
|
-
function
|
|
3190
|
+
function _r(e) {
|
|
2617
3191
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
2618
3192
|
}
|
|
2619
|
-
function
|
|
3193
|
+
function yi(e) {
|
|
2620
3194
|
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;
|
|
2621
3195
|
}
|
|
2622
|
-
function
|
|
3196
|
+
function lt(e) {
|
|
2623
3197
|
e.forEach(function(t) {
|
|
2624
|
-
if (delete t.location,
|
|
3198
|
+
if (delete t.location, sr(t) || lr(t))
|
|
2625
3199
|
for (var r in t.options)
|
|
2626
|
-
delete t.options[r].location,
|
|
3200
|
+
delete t.options[r].location, lt(t.options[r].value);
|
|
2627
3201
|
else
|
|
2628
|
-
|
|
3202
|
+
ir(t) && ur(t.style) || (or(t) || ar(t)) && nt(t.style) ? delete t.style.location : cr(t) && lt(t.children);
|
|
2629
3203
|
});
|
|
2630
3204
|
}
|
|
2631
|
-
function
|
|
2632
|
-
t === void 0 && (t = {}), t =
|
|
2633
|
-
var r = new
|
|
3205
|
+
function vi(e, t) {
|
|
3206
|
+
t === void 0 && (t = {}), t = je({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3207
|
+
var r = new pi(e, t).parse();
|
|
2634
3208
|
if (r.err) {
|
|
2635
|
-
var n = SyntaxError(
|
|
3209
|
+
var n = SyntaxError(N[r.err.kind]);
|
|
2636
3210
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
2637
3211
|
}
|
|
2638
|
-
return t?.captureLocation ||
|
|
3212
|
+
return t?.captureLocation || lt(r.val), r.val;
|
|
2639
3213
|
}
|
|
2640
|
-
var
|
|
3214
|
+
var le;
|
|
2641
3215
|
(function(e) {
|
|
2642
3216
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
2643
|
-
})(
|
|
2644
|
-
var
|
|
3217
|
+
})(le || (le = {}));
|
|
3218
|
+
var Ge = (
|
|
2645
3219
|
/** @class */
|
|
2646
3220
|
function(e) {
|
|
2647
|
-
|
|
3221
|
+
De(t, e);
|
|
2648
3222
|
function t(r, n, i) {
|
|
2649
3223
|
var o = e.call(this, r) || this;
|
|
2650
3224
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -2653,155 +3227,155 @@ var Pe = (
|
|
|
2653
3227
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
2654
3228
|
}, t;
|
|
2655
3229
|
}(Error)
|
|
2656
|
-
),
|
|
3230
|
+
), Nt = (
|
|
2657
3231
|
/** @class */
|
|
2658
3232
|
function(e) {
|
|
2659
|
-
|
|
3233
|
+
De(t, e);
|
|
2660
3234
|
function t(r, n, i, o) {
|
|
2661
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3235
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), le.INVALID_VALUE, o) || this;
|
|
2662
3236
|
}
|
|
2663
3237
|
return t;
|
|
2664
|
-
}(
|
|
2665
|
-
),
|
|
3238
|
+
}(Ge)
|
|
3239
|
+
), bi = (
|
|
2666
3240
|
/** @class */
|
|
2667
3241
|
function(e) {
|
|
2668
|
-
|
|
3242
|
+
De(t, e);
|
|
2669
3243
|
function t(r, n, i) {
|
|
2670
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3244
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), le.INVALID_VALUE, i) || this;
|
|
2671
3245
|
}
|
|
2672
3246
|
return t;
|
|
2673
|
-
}(
|
|
2674
|
-
),
|
|
3247
|
+
}(Ge)
|
|
3248
|
+
), ki = (
|
|
2675
3249
|
/** @class */
|
|
2676
3250
|
function(e) {
|
|
2677
|
-
|
|
3251
|
+
De(t, e);
|
|
2678
3252
|
function t(r, n) {
|
|
2679
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3253
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), le.MISSING_VALUE, n) || this;
|
|
2680
3254
|
}
|
|
2681
3255
|
return t;
|
|
2682
|
-
}(
|
|
3256
|
+
}(Ge)
|
|
2683
3257
|
), D;
|
|
2684
3258
|
(function(e) {
|
|
2685
3259
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
2686
3260
|
})(D || (D = {}));
|
|
2687
|
-
function
|
|
3261
|
+
function Ei(e) {
|
|
2688
3262
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
2689
3263
|
var n = t[t.length - 1];
|
|
2690
3264
|
return !n || n.type !== D.literal || r.type !== D.literal ? t.push(r) : n.value += r.value, t;
|
|
2691
3265
|
}, []);
|
|
2692
3266
|
}
|
|
2693
|
-
function
|
|
3267
|
+
function Ci(e) {
|
|
2694
3268
|
return typeof e == "function";
|
|
2695
3269
|
}
|
|
2696
|
-
function
|
|
2697
|
-
if (e.length === 1 &&
|
|
3270
|
+
function Oe(e, t, r, n, i, o, a) {
|
|
3271
|
+
if (e.length === 1 && Et(e[0]))
|
|
2698
3272
|
return [
|
|
2699
3273
|
{
|
|
2700
3274
|
type: D.literal,
|
|
2701
3275
|
value: e[0].value
|
|
2702
3276
|
}
|
|
2703
3277
|
];
|
|
2704
|
-
for (var s = [],
|
|
2705
|
-
var
|
|
2706
|
-
if (
|
|
3278
|
+
for (var s = [], u = 0, l = e; u < l.length; u++) {
|
|
3279
|
+
var c = l[u];
|
|
3280
|
+
if (Et(c)) {
|
|
2707
3281
|
s.push({
|
|
2708
3282
|
type: D.literal,
|
|
2709
|
-
value:
|
|
3283
|
+
value: c.value
|
|
2710
3284
|
});
|
|
2711
3285
|
continue;
|
|
2712
3286
|
}
|
|
2713
|
-
if (
|
|
3287
|
+
if (Vn(c)) {
|
|
2714
3288
|
typeof o == "number" && s.push({
|
|
2715
3289
|
type: D.literal,
|
|
2716
3290
|
value: r.getNumberFormat(t).format(o)
|
|
2717
3291
|
});
|
|
2718
3292
|
continue;
|
|
2719
3293
|
}
|
|
2720
|
-
var d =
|
|
3294
|
+
var d = c.value;
|
|
2721
3295
|
if (!(i && d in i))
|
|
2722
|
-
throw new
|
|
3296
|
+
throw new ki(d, a);
|
|
2723
3297
|
var m = i[d];
|
|
2724
|
-
if (
|
|
3298
|
+
if ($n(c)) {
|
|
2725
3299
|
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
|
|
2726
3300
|
type: typeof m == "string" ? D.literal : D.object,
|
|
2727
3301
|
value: m
|
|
2728
3302
|
});
|
|
2729
3303
|
continue;
|
|
2730
3304
|
}
|
|
2731
|
-
if (
|
|
2732
|
-
var
|
|
3305
|
+
if (or(c)) {
|
|
3306
|
+
var y = typeof c.style == "string" ? n.date[c.style] : nt(c.style) ? c.style.parsedOptions : void 0;
|
|
2733
3307
|
s.push({
|
|
2734
3308
|
type: D.literal,
|
|
2735
|
-
value: r.getDateTimeFormat(t,
|
|
3309
|
+
value: r.getDateTimeFormat(t, y).format(m)
|
|
2736
3310
|
});
|
|
2737
3311
|
continue;
|
|
2738
3312
|
}
|
|
2739
|
-
if (
|
|
2740
|
-
var
|
|
3313
|
+
if (ar(c)) {
|
|
3314
|
+
var y = typeof c.style == "string" ? n.time[c.style] : nt(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
2741
3315
|
s.push({
|
|
2742
3316
|
type: D.literal,
|
|
2743
|
-
value: r.getDateTimeFormat(t,
|
|
3317
|
+
value: r.getDateTimeFormat(t, y).format(m)
|
|
2744
3318
|
});
|
|
2745
3319
|
continue;
|
|
2746
3320
|
}
|
|
2747
|
-
if (
|
|
2748
|
-
var
|
|
2749
|
-
|
|
3321
|
+
if (ir(c)) {
|
|
3322
|
+
var y = typeof c.style == "string" ? n.number[c.style] : ur(c.style) ? c.style.parsedOptions : void 0;
|
|
3323
|
+
y && y.scale && (m = m * (y.scale || 1)), s.push({
|
|
2750
3324
|
type: D.literal,
|
|
2751
|
-
value: r.getNumberFormat(t,
|
|
3325
|
+
value: r.getNumberFormat(t, y).format(m)
|
|
2752
3326
|
});
|
|
2753
3327
|
continue;
|
|
2754
3328
|
}
|
|
2755
|
-
if (
|
|
2756
|
-
var
|
|
2757
|
-
if (!
|
|
2758
|
-
throw new
|
|
2759
|
-
var _ =
|
|
2760
|
-
return
|
|
3329
|
+
if (cr(c)) {
|
|
3330
|
+
var g = c.children, f = c.value, S = i[f];
|
|
3331
|
+
if (!Ci(S))
|
|
3332
|
+
throw new bi(f, "function", a);
|
|
3333
|
+
var _ = Oe(g, t, r, n, i, o), v = S(_.map(function(E) {
|
|
3334
|
+
return E.value;
|
|
2761
3335
|
}));
|
|
2762
|
-
Array.isArray(
|
|
3336
|
+
Array.isArray(v) || (v = [v]), s.push.apply(s, v.map(function(E) {
|
|
2763
3337
|
return {
|
|
2764
|
-
type: typeof
|
|
2765
|
-
value:
|
|
3338
|
+
type: typeof E == "string" ? D.literal : D.object,
|
|
3339
|
+
value: E
|
|
2766
3340
|
};
|
|
2767
3341
|
}));
|
|
2768
3342
|
}
|
|
2769
|
-
if (
|
|
2770
|
-
var
|
|
2771
|
-
if (!
|
|
2772
|
-
throw new
|
|
2773
|
-
s.push.apply(s,
|
|
3343
|
+
if (sr(c)) {
|
|
3344
|
+
var C = c.options[m] || c.options.other;
|
|
3345
|
+
if (!C)
|
|
3346
|
+
throw new Nt(c.value, m, Object.keys(c.options), a);
|
|
3347
|
+
s.push.apply(s, Oe(C.value, t, r, n, i));
|
|
2774
3348
|
continue;
|
|
2775
3349
|
}
|
|
2776
|
-
if (
|
|
2777
|
-
var
|
|
2778
|
-
if (!
|
|
3350
|
+
if (lr(c)) {
|
|
3351
|
+
var C = c.options["=".concat(m)];
|
|
3352
|
+
if (!C) {
|
|
2779
3353
|
if (!Intl.PluralRules)
|
|
2780
|
-
throw new
|
|
3354
|
+
throw new Ge(`Intl.PluralRules is not available in this environment.
|
|
2781
3355
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
2782
|
-
`,
|
|
2783
|
-
var H = r.getPluralRules(t, { type:
|
|
2784
|
-
|
|
3356
|
+
`, le.MISSING_INTL_API, a);
|
|
3357
|
+
var H = r.getPluralRules(t, { type: c.pluralType }).select(m - (c.offset || 0));
|
|
3358
|
+
C = c.options[H] || c.options.other;
|
|
2785
3359
|
}
|
|
2786
|
-
if (!
|
|
2787
|
-
throw new
|
|
2788
|
-
s.push.apply(s,
|
|
3360
|
+
if (!C)
|
|
3361
|
+
throw new Nt(c.value, m, Object.keys(c.options), a);
|
|
3362
|
+
s.push.apply(s, Oe(C.value, t, r, n, i, m - (c.offset || 0)));
|
|
2789
3363
|
continue;
|
|
2790
3364
|
}
|
|
2791
3365
|
}
|
|
2792
|
-
return
|
|
3366
|
+
return Ei(s);
|
|
2793
3367
|
}
|
|
2794
|
-
function
|
|
3368
|
+
function Si(e, t) {
|
|
2795
3369
|
return t ? q(q(q({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
2796
3370
|
return r[n] = q(q({}, e[n]), t[n] || {}), r;
|
|
2797
3371
|
}, {})) : e;
|
|
2798
3372
|
}
|
|
2799
|
-
function
|
|
3373
|
+
function xi(e, t) {
|
|
2800
3374
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
2801
|
-
return r[n] =
|
|
3375
|
+
return r[n] = Si(e[n], t[n]), r;
|
|
2802
3376
|
}, q({}, e)) : e;
|
|
2803
3377
|
}
|
|
2804
|
-
function
|
|
3378
|
+
function Qe(e) {
|
|
2805
3379
|
return {
|
|
2806
3380
|
create: function() {
|
|
2807
3381
|
return {
|
|
@@ -2815,39 +3389,39 @@ function Ue(e) {
|
|
|
2815
3389
|
}
|
|
2816
3390
|
};
|
|
2817
3391
|
}
|
|
2818
|
-
function
|
|
3392
|
+
function wi(e) {
|
|
2819
3393
|
return e === void 0 && (e = {
|
|
2820
3394
|
number: {},
|
|
2821
3395
|
dateTime: {},
|
|
2822
3396
|
pluralRules: {}
|
|
2823
3397
|
}), {
|
|
2824
|
-
getNumberFormat:
|
|
3398
|
+
getNumberFormat: We(function() {
|
|
2825
3399
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2826
3400
|
r[n] = arguments[n];
|
|
2827
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3401
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, qe([void 0], r, !1)))();
|
|
2828
3402
|
}, {
|
|
2829
|
-
cache:
|
|
2830
|
-
strategy:
|
|
3403
|
+
cache: Qe(e.number),
|
|
3404
|
+
strategy: Ze.variadic
|
|
2831
3405
|
}),
|
|
2832
|
-
getDateTimeFormat:
|
|
3406
|
+
getDateTimeFormat: We(function() {
|
|
2833
3407
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2834
3408
|
r[n] = arguments[n];
|
|
2835
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3409
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, qe([void 0], r, !1)))();
|
|
2836
3410
|
}, {
|
|
2837
|
-
cache:
|
|
2838
|
-
strategy:
|
|
3411
|
+
cache: Qe(e.dateTime),
|
|
3412
|
+
strategy: Ze.variadic
|
|
2839
3413
|
}),
|
|
2840
|
-
getPluralRules:
|
|
3414
|
+
getPluralRules: We(function() {
|
|
2841
3415
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
2842
3416
|
r[n] = arguments[n];
|
|
2843
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3417
|
+
return new ((t = Intl.PluralRules).bind.apply(t, qe([void 0], r, !1)))();
|
|
2844
3418
|
}, {
|
|
2845
|
-
cache:
|
|
2846
|
-
strategy:
|
|
3419
|
+
cache: Qe(e.pluralRules),
|
|
3420
|
+
strategy: Ze.variadic
|
|
2847
3421
|
})
|
|
2848
3422
|
};
|
|
2849
3423
|
}
|
|
2850
|
-
var
|
|
3424
|
+
var Ti = (
|
|
2851
3425
|
/** @class */
|
|
2852
3426
|
function() {
|
|
2853
3427
|
function e(t, r, n, i) {
|
|
@@ -2857,20 +3431,20 @@ var Jn = (
|
|
|
2857
3431
|
number: {},
|
|
2858
3432
|
dateTime: {},
|
|
2859
3433
|
pluralRules: {}
|
|
2860
|
-
}, this.format = function(
|
|
2861
|
-
var
|
|
2862
|
-
if (
|
|
2863
|
-
return
|
|
2864
|
-
var
|
|
3434
|
+
}, this.format = function(u) {
|
|
3435
|
+
var l = o.formatToParts(u);
|
|
3436
|
+
if (l.length === 1)
|
|
3437
|
+
return l[0].value;
|
|
3438
|
+
var c = l.reduce(function(d, m) {
|
|
2865
3439
|
return !d.length || m.type !== D.literal || typeof d[d.length - 1] != "string" ? d.push(m.value) : d[d.length - 1] += m.value, d;
|
|
2866
3440
|
}, []);
|
|
2867
|
-
return
|
|
2868
|
-
}, this.formatToParts = function(
|
|
2869
|
-
return
|
|
3441
|
+
return c.length <= 1 ? c[0] || "" : c;
|
|
3442
|
+
}, this.formatToParts = function(u) {
|
|
3443
|
+
return Oe(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
2870
3444
|
}, this.resolvedOptions = function() {
|
|
2871
|
-
var
|
|
3445
|
+
var u;
|
|
2872
3446
|
return {
|
|
2873
|
-
locale: ((
|
|
3447
|
+
locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
2874
3448
|
};
|
|
2875
3449
|
}, this.getAst = function() {
|
|
2876
3450
|
return o.ast;
|
|
@@ -2879,13 +3453,13 @@ var Jn = (
|
|
|
2879
3453
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
2880
3454
|
var a = i || {};
|
|
2881
3455
|
a.formatters;
|
|
2882
|
-
var s =
|
|
3456
|
+
var s = Ln(a, ["formatters"]);
|
|
2883
3457
|
this.ast = e.__parse(t, q(q({}, s), { locale: this.resolvedLocale }));
|
|
2884
3458
|
} else
|
|
2885
3459
|
this.ast = t;
|
|
2886
3460
|
if (!Array.isArray(this.ast))
|
|
2887
3461
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
2888
|
-
this.formats =
|
|
3462
|
+
this.formats = xi(e.formats, n), this.formatters = i && i.formatters || wi(this.formatterCache);
|
|
2889
3463
|
}
|
|
2890
3464
|
return Object.defineProperty(e, "defaultLocale", {
|
|
2891
3465
|
get: function() {
|
|
@@ -2898,7 +3472,7 @@ var Jn = (
|
|
|
2898
3472
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
2899
3473
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
2900
3474
|
}
|
|
2901
|
-
}, e.__parse =
|
|
3475
|
+
}, e.__parse = vi, e.formats = {
|
|
2902
3476
|
number: {
|
|
2903
3477
|
integer: {
|
|
2904
3478
|
maximumFractionDigits: 0
|
|
@@ -2959,7 +3533,7 @@ var Jn = (
|
|
|
2959
3533
|
}, e;
|
|
2960
3534
|
}()
|
|
2961
3535
|
);
|
|
2962
|
-
function
|
|
3536
|
+
function Mi(e, t) {
|
|
2963
3537
|
if (t == null)
|
|
2964
3538
|
return;
|
|
2965
3539
|
if (t in e)
|
|
@@ -2980,92 +3554,92 @@ function Qn(e, t) {
|
|
|
2980
3554
|
n = void 0;
|
|
2981
3555
|
return n;
|
|
2982
3556
|
}
|
|
2983
|
-
const J = {},
|
|
3557
|
+
const J = {}, Ni = (e, t, r) => r && (t in J || (J[t] = {}), e in J[t] || (J[t][e] = r), r), yr = (e, t) => {
|
|
2984
3558
|
if (t == null)
|
|
2985
3559
|
return;
|
|
2986
3560
|
if (t in J && e in J[t])
|
|
2987
3561
|
return J[t][e];
|
|
2988
|
-
const r =
|
|
3562
|
+
const r = Fe(t);
|
|
2989
3563
|
for (let n = 0; n < r.length; n++) {
|
|
2990
|
-
const i = r[n], o =
|
|
3564
|
+
const i = r[n], o = Hi(i, e);
|
|
2991
3565
|
if (o)
|
|
2992
|
-
return
|
|
3566
|
+
return Ni(e, t, o);
|
|
2993
3567
|
}
|
|
2994
3568
|
};
|
|
2995
|
-
let
|
|
2996
|
-
const
|
|
2997
|
-
function
|
|
2998
|
-
return
|
|
3569
|
+
let ft;
|
|
3570
|
+
const xe = Ue({});
|
|
3571
|
+
function Ai(e) {
|
|
3572
|
+
return ft[e] || null;
|
|
2999
3573
|
}
|
|
3000
|
-
function
|
|
3001
|
-
return e in
|
|
3574
|
+
function vr(e) {
|
|
3575
|
+
return e in ft;
|
|
3002
3576
|
}
|
|
3003
|
-
function
|
|
3004
|
-
if (!
|
|
3577
|
+
function Hi(e, t) {
|
|
3578
|
+
if (!vr(e))
|
|
3005
3579
|
return null;
|
|
3006
|
-
const r =
|
|
3007
|
-
return
|
|
3580
|
+
const r = Ai(e);
|
|
3581
|
+
return Mi(r, t);
|
|
3008
3582
|
}
|
|
3009
|
-
function
|
|
3583
|
+
function Pi(e) {
|
|
3010
3584
|
if (e == null)
|
|
3011
3585
|
return;
|
|
3012
|
-
const t =
|
|
3586
|
+
const t = Fe(e);
|
|
3013
3587
|
for (let r = 0; r < t.length; r++) {
|
|
3014
3588
|
const n = t[r];
|
|
3015
|
-
if (
|
|
3589
|
+
if (vr(n))
|
|
3016
3590
|
return n;
|
|
3017
3591
|
}
|
|
3018
3592
|
}
|
|
3019
|
-
function
|
|
3020
|
-
delete J[e],
|
|
3593
|
+
function br(e, ...t) {
|
|
3594
|
+
delete J[e], xe.update((r) => (r[e] = zn.all([r[e] || {}, ...t]), r));
|
|
3021
3595
|
}
|
|
3022
|
-
|
|
3023
|
-
[
|
|
3596
|
+
he(
|
|
3597
|
+
[xe],
|
|
3024
3598
|
([e]) => Object.keys(e)
|
|
3025
3599
|
);
|
|
3026
|
-
|
|
3027
|
-
const
|
|
3028
|
-
function
|
|
3029
|
-
|
|
3600
|
+
xe.subscribe((e) => ft = e);
|
|
3601
|
+
const ze = {};
|
|
3602
|
+
function Bi(e, t) {
|
|
3603
|
+
ze[e].delete(t), ze[e].size === 0 && delete ze[e];
|
|
3030
3604
|
}
|
|
3031
|
-
function
|
|
3032
|
-
return
|
|
3605
|
+
function kr(e) {
|
|
3606
|
+
return ze[e];
|
|
3033
3607
|
}
|
|
3034
|
-
function
|
|
3035
|
-
return
|
|
3036
|
-
const r =
|
|
3608
|
+
function Oi(e) {
|
|
3609
|
+
return Fe(e).map((t) => {
|
|
3610
|
+
const r = kr(t);
|
|
3037
3611
|
return [t, r ? [...r] : []];
|
|
3038
3612
|
}).filter(([, t]) => t.length > 0);
|
|
3039
3613
|
}
|
|
3040
|
-
function
|
|
3041
|
-
return e == null ? !1 :
|
|
3614
|
+
function ct(e) {
|
|
3615
|
+
return e == null ? !1 : Fe(e).some(
|
|
3042
3616
|
(t) => {
|
|
3043
3617
|
var r;
|
|
3044
|
-
return (r =
|
|
3618
|
+
return (r = kr(t)) == null ? void 0 : r.size;
|
|
3045
3619
|
}
|
|
3046
3620
|
);
|
|
3047
3621
|
}
|
|
3048
|
-
function
|
|
3622
|
+
function zi(e, t) {
|
|
3049
3623
|
return Promise.all(
|
|
3050
|
-
t.map((n) => (
|
|
3051
|
-
).then((n) =>
|
|
3624
|
+
t.map((n) => (Bi(e, n), n().then((i) => i.default || i)))
|
|
3625
|
+
).then((n) => br(e, ...n));
|
|
3052
3626
|
}
|
|
3053
|
-
const
|
|
3054
|
-
function
|
|
3055
|
-
if (!
|
|
3056
|
-
return e in
|
|
3057
|
-
const t =
|
|
3058
|
-
return
|
|
3627
|
+
const ye = {};
|
|
3628
|
+
function Er(e) {
|
|
3629
|
+
if (!ct(e))
|
|
3630
|
+
return e in ye ? ye[e] : Promise.resolve();
|
|
3631
|
+
const t = Oi(e);
|
|
3632
|
+
return ye[e] = Promise.all(
|
|
3059
3633
|
t.map(
|
|
3060
|
-
([r, n]) =>
|
|
3634
|
+
([r, n]) => zi(r, n)
|
|
3061
3635
|
)
|
|
3062
3636
|
).then(() => {
|
|
3063
|
-
if (
|
|
3064
|
-
return
|
|
3065
|
-
delete
|
|
3066
|
-
}),
|
|
3637
|
+
if (ct(e))
|
|
3638
|
+
return Er(e);
|
|
3639
|
+
delete ye[e];
|
|
3640
|
+
}), ye[e];
|
|
3067
3641
|
}
|
|
3068
|
-
const
|
|
3642
|
+
const Li = {
|
|
3069
3643
|
number: {
|
|
3070
3644
|
scientific: { notation: "scientific" },
|
|
3071
3645
|
engineering: { notation: "engineering" },
|
|
@@ -3094,159 +3668,159 @@ const ii = {
|
|
|
3094
3668
|
timeZoneName: "short"
|
|
3095
3669
|
}
|
|
3096
3670
|
}
|
|
3097
|
-
},
|
|
3671
|
+
}, ji = {
|
|
3098
3672
|
fallbackLocale: null,
|
|
3099
3673
|
loadingDelay: 200,
|
|
3100
|
-
formats:
|
|
3674
|
+
formats: Li,
|
|
3101
3675
|
warnOnMissingMessages: !0,
|
|
3102
3676
|
handleMissingMessage: void 0,
|
|
3103
3677
|
ignoreTag: !0
|
|
3104
|
-
},
|
|
3105
|
-
function
|
|
3106
|
-
return
|
|
3678
|
+
}, Ii = ji;
|
|
3679
|
+
function ce() {
|
|
3680
|
+
return Ii;
|
|
3107
3681
|
}
|
|
3108
|
-
const
|
|
3109
|
-
var
|
|
3682
|
+
const Ye = Ue(!1);
|
|
3683
|
+
var Ri = Object.defineProperty, Ui = Object.defineProperties, Di = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, Gi = Object.prototype.hasOwnProperty, Fi = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? Ri(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, $i = (e, t) => {
|
|
3110
3684
|
for (var r in t || (t = {}))
|
|
3111
|
-
|
|
3112
|
-
if (
|
|
3113
|
-
for (var r of
|
|
3114
|
-
|
|
3685
|
+
Gi.call(t, r) && Ht(e, r, t[r]);
|
|
3686
|
+
if (At)
|
|
3687
|
+
for (var r of At(t))
|
|
3688
|
+
Fi.call(t, r) && Ht(e, r, t[r]);
|
|
3115
3689
|
return e;
|
|
3116
|
-
},
|
|
3117
|
-
let
|
|
3118
|
-
const
|
|
3119
|
-
function
|
|
3690
|
+
}, Vi = (e, t) => Ui(e, Di(t));
|
|
3691
|
+
let ut;
|
|
3692
|
+
const Ie = Ue(null);
|
|
3693
|
+
function Pt(e) {
|
|
3120
3694
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3121
3695
|
}
|
|
3122
|
-
function
|
|
3123
|
-
const r =
|
|
3124
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3696
|
+
function Fe(e, t = ce().fallbackLocale) {
|
|
3697
|
+
const r = Pt(e);
|
|
3698
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Pt(t)])] : r;
|
|
3125
3699
|
}
|
|
3126
|
-
function
|
|
3127
|
-
return
|
|
3700
|
+
function K() {
|
|
3701
|
+
return ut ?? void 0;
|
|
3128
3702
|
}
|
|
3129
|
-
|
|
3130
|
-
|
|
3703
|
+
Ie.subscribe((e) => {
|
|
3704
|
+
ut = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3131
3705
|
});
|
|
3132
|
-
const
|
|
3133
|
-
if (e &&
|
|
3134
|
-
const { loadingDelay: t } =
|
|
3706
|
+
const Xi = (e) => {
|
|
3707
|
+
if (e && Pi(e) && ct(e)) {
|
|
3708
|
+
const { loadingDelay: t } = ce();
|
|
3135
3709
|
let r;
|
|
3136
|
-
return typeof window < "u" &&
|
|
3137
|
-
() =>
|
|
3710
|
+
return typeof window < "u" && K() != null && t ? r = window.setTimeout(
|
|
3711
|
+
() => Ye.set(!0),
|
|
3138
3712
|
t
|
|
3139
|
-
) :
|
|
3140
|
-
|
|
3713
|
+
) : Ye.set(!0), Er(e).then(() => {
|
|
3714
|
+
Ie.set(e);
|
|
3141
3715
|
}).finally(() => {
|
|
3142
|
-
clearTimeout(r),
|
|
3716
|
+
clearTimeout(r), Ye.set(!1);
|
|
3143
3717
|
});
|
|
3144
3718
|
}
|
|
3145
|
-
return
|
|
3146
|
-
},
|
|
3147
|
-
set:
|
|
3148
|
-
}),
|
|
3719
|
+
return Ie.set(e);
|
|
3720
|
+
}, de = Vi($i({}, Ie), {
|
|
3721
|
+
set: Xi
|
|
3722
|
+
}), $e = (e) => {
|
|
3149
3723
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3150
3724
|
return (n) => {
|
|
3151
3725
|
const i = JSON.stringify(n);
|
|
3152
3726
|
return i in t ? t[i] : t[i] = e(n);
|
|
3153
3727
|
};
|
|
3154
3728
|
};
|
|
3155
|
-
var
|
|
3729
|
+
var qi = Object.defineProperty, Re = Object.getOwnPropertySymbols, Cr = Object.prototype.hasOwnProperty, Sr = Object.prototype.propertyIsEnumerable, Bt = (e, t, r) => t in e ? qi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, pt = (e, t) => {
|
|
3156
3730
|
for (var r in t || (t = {}))
|
|
3157
|
-
|
|
3158
|
-
if (
|
|
3159
|
-
for (var r of
|
|
3160
|
-
|
|
3731
|
+
Cr.call(t, r) && Bt(e, r, t[r]);
|
|
3732
|
+
if (Re)
|
|
3733
|
+
for (var r of Re(t))
|
|
3734
|
+
Sr.call(t, r) && Bt(e, r, t[r]);
|
|
3161
3735
|
return e;
|
|
3162
|
-
},
|
|
3736
|
+
}, me = (e, t) => {
|
|
3163
3737
|
var r = {};
|
|
3164
3738
|
for (var n in e)
|
|
3165
|
-
|
|
3166
|
-
if (e != null &&
|
|
3167
|
-
for (var n of
|
|
3168
|
-
t.indexOf(n) < 0 &&
|
|
3739
|
+
Cr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3740
|
+
if (e != null && Re)
|
|
3741
|
+
for (var n of Re(e))
|
|
3742
|
+
t.indexOf(n) < 0 && Sr.call(e, n) && (r[n] = e[n]);
|
|
3169
3743
|
return r;
|
|
3170
3744
|
};
|
|
3171
|
-
const
|
|
3172
|
-
const { formats: r } =
|
|
3745
|
+
const Ce = (e, t) => {
|
|
3746
|
+
const { formats: r } = ce();
|
|
3173
3747
|
if (e in r && t in r[e])
|
|
3174
3748
|
return r[e][t];
|
|
3175
3749
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3176
|
-
},
|
|
3750
|
+
}, Wi = $e(
|
|
3177
3751
|
(e) => {
|
|
3178
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3752
|
+
var t = e, { locale: r, format: n } = t, i = me(t, ["locale", "format"]);
|
|
3179
3753
|
if (r == null)
|
|
3180
3754
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3181
|
-
return n && (i =
|
|
3755
|
+
return n && (i = Ce("number", n)), new Intl.NumberFormat(r, i);
|
|
3182
3756
|
}
|
|
3183
|
-
),
|
|
3757
|
+
), Zi = $e(
|
|
3184
3758
|
(e) => {
|
|
3185
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3759
|
+
var t = e, { locale: r, format: n } = t, i = me(t, ["locale", "format"]);
|
|
3186
3760
|
if (r == null)
|
|
3187
3761
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3188
|
-
return n ? i =
|
|
3762
|
+
return n ? i = Ce("date", n) : Object.keys(i).length === 0 && (i = Ce("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3189
3763
|
}
|
|
3190
|
-
),
|
|
3764
|
+
), Ji = $e(
|
|
3191
3765
|
(e) => {
|
|
3192
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3766
|
+
var t = e, { locale: r, format: n } = t, i = me(t, ["locale", "format"]);
|
|
3193
3767
|
if (r == null)
|
|
3194
3768
|
throw new Error(
|
|
3195
3769
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3196
3770
|
);
|
|
3197
|
-
return n ? i =
|
|
3771
|
+
return n ? i = Ce("time", n) : Object.keys(i).length === 0 && (i = Ce("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3198
3772
|
}
|
|
3199
|
-
),
|
|
3773
|
+
), Qi = (e = {}) => {
|
|
3200
3774
|
var t = e, {
|
|
3201
|
-
locale: r =
|
|
3202
|
-
} = t, n =
|
|
3775
|
+
locale: r = K()
|
|
3776
|
+
} = t, n = me(t, [
|
|
3203
3777
|
"locale"
|
|
3204
3778
|
]);
|
|
3205
|
-
return
|
|
3206
|
-
},
|
|
3779
|
+
return Wi(pt({ locale: r }, n));
|
|
3780
|
+
}, Yi = (e = {}) => {
|
|
3207
3781
|
var t = e, {
|
|
3208
|
-
locale: r =
|
|
3209
|
-
} = t, n =
|
|
3782
|
+
locale: r = K()
|
|
3783
|
+
} = t, n = me(t, [
|
|
3210
3784
|
"locale"
|
|
3211
3785
|
]);
|
|
3212
|
-
return
|
|
3213
|
-
},
|
|
3786
|
+
return Zi(pt({ locale: r }, n));
|
|
3787
|
+
}, Ki = (e = {}) => {
|
|
3214
3788
|
var t = e, {
|
|
3215
|
-
locale: r =
|
|
3216
|
-
} = t, n =
|
|
3789
|
+
locale: r = K()
|
|
3790
|
+
} = t, n = me(t, [
|
|
3217
3791
|
"locale"
|
|
3218
3792
|
]);
|
|
3219
|
-
return
|
|
3220
|
-
},
|
|
3793
|
+
return Ji(pt({ locale: r }, n));
|
|
3794
|
+
}, eo = $e(
|
|
3221
3795
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3222
|
-
(e, t =
|
|
3223
|
-
ignoreTag:
|
|
3796
|
+
(e, t = K()) => new Ti(e, t, ce().formats, {
|
|
3797
|
+
ignoreTag: ce().ignoreTag
|
|
3224
3798
|
})
|
|
3225
|
-
),
|
|
3799
|
+
), to = (e, t = {}) => {
|
|
3226
3800
|
var r, n, i, o;
|
|
3227
3801
|
let a = t;
|
|
3228
3802
|
typeof e == "object" && (a = e, e = a.id);
|
|
3229
3803
|
const {
|
|
3230
3804
|
values: s,
|
|
3231
|
-
locale:
|
|
3232
|
-
default:
|
|
3805
|
+
locale: u = K(),
|
|
3806
|
+
default: l
|
|
3233
3807
|
} = a;
|
|
3234
|
-
if (
|
|
3808
|
+
if (u == null)
|
|
3235
3809
|
throw new Error(
|
|
3236
3810
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3237
3811
|
);
|
|
3238
|
-
let
|
|
3239
|
-
if (!
|
|
3240
|
-
|
|
3241
|
-
else if (typeof
|
|
3812
|
+
let c = yr(e, u);
|
|
3813
|
+
if (!c)
|
|
3814
|
+
c = (o = (i = (n = (r = ce()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
3815
|
+
else if (typeof c != "string")
|
|
3242
3816
|
return console.warn(
|
|
3243
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3244
|
-
),
|
|
3817
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3818
|
+
), c;
|
|
3245
3819
|
if (!s)
|
|
3246
|
-
return
|
|
3247
|
-
let d =
|
|
3820
|
+
return c;
|
|
3821
|
+
let d = c;
|
|
3248
3822
|
try {
|
|
3249
|
-
d =
|
|
3823
|
+
d = eo(c, u).format(s);
|
|
3250
3824
|
} catch (m) {
|
|
3251
3825
|
m instanceof Error && console.warn(
|
|
3252
3826
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3254,18 +3828,18 @@ const pe = (e, t) => {
|
|
|
3254
3828
|
);
|
|
3255
3829
|
}
|
|
3256
3830
|
return d;
|
|
3257
|
-
},
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
function
|
|
3263
|
-
|
|
3264
|
-
}
|
|
3265
|
-
function
|
|
3266
|
-
|
|
3267
|
-
}
|
|
3268
|
-
const
|
|
3831
|
+
}, ro = (e, t) => Ki(t).format(e), no = (e, t) => Yi(t).format(e), io = (e, t) => Qi(t).format(e), oo = (e, t = K()) => yr(e, t), ao = he([de, xe], () => to);
|
|
3832
|
+
he([de], () => ro);
|
|
3833
|
+
he([de], () => no);
|
|
3834
|
+
he([de], () => io);
|
|
3835
|
+
he([de, xe], () => oo);
|
|
3836
|
+
function Ot(e, t) {
|
|
3837
|
+
br(e, t);
|
|
3838
|
+
}
|
|
3839
|
+
function so(e) {
|
|
3840
|
+
de.set(e);
|
|
3841
|
+
}
|
|
3842
|
+
const zt = {
|
|
3269
3843
|
en: {
|
|
3270
3844
|
invalidUrl: "Failed to construct 'URL': Invalid URL",
|
|
3271
3845
|
fetchConsentsError: "Error: Could not fetch consents.",
|
|
@@ -3837,64 +4411,64 @@ if (typeof window < "u") {
|
|
|
3837
4411
|
}
|
|
3838
4412
|
};
|
|
3839
4413
|
};
|
|
3840
|
-
customElements.define = e(customElements.define), import("./GeneralAnimationLoading-
|
|
4414
|
+
customElements.define = e(customElements.define), import("./GeneralAnimationLoading-Hz3DrXmV.js").then(({ default: t }) => {
|
|
3841
4415
|
!customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
|
|
3842
4416
|
});
|
|
3843
4417
|
}
|
|
3844
|
-
function
|
|
4418
|
+
function lo(e) {
|
|
3845
4419
|
let t, r;
|
|
3846
4420
|
return {
|
|
3847
4421
|
c() {
|
|
3848
|
-
t =
|
|
4422
|
+
t = Ke("svg"), r = Ke("path"), k(r, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), k(t, "xmlns", "http://www.w3.org/2000/svg"), k(t, "viewBox", "0 0 512 512");
|
|
3849
4423
|
},
|
|
3850
4424
|
m(n, i) {
|
|
3851
|
-
L(n, t, i),
|
|
4425
|
+
L(n, t, i), x(t, r);
|
|
3852
4426
|
},
|
|
3853
|
-
p:
|
|
3854
|
-
i:
|
|
3855
|
-
o:
|
|
4427
|
+
p: F,
|
|
4428
|
+
i: F,
|
|
4429
|
+
o: F,
|
|
3856
4430
|
d(n) {
|
|
3857
|
-
n &&
|
|
4431
|
+
n && O(t);
|
|
3858
4432
|
}
|
|
3859
4433
|
};
|
|
3860
4434
|
}
|
|
3861
|
-
class
|
|
4435
|
+
class co extends er {
|
|
3862
4436
|
constructor(t) {
|
|
3863
|
-
super(),
|
|
4437
|
+
super(), Qt(this, t, null, lo, dt, {});
|
|
3864
4438
|
}
|
|
3865
4439
|
}
|
|
3866
|
-
customElements.define("circle-exclamation-icon",
|
|
3867
|
-
function
|
|
3868
|
-
|
|
4440
|
+
customElements.define("circle-exclamation-icon", Kt(co, {}, [], [], !0));
|
|
4441
|
+
function uo(e) {
|
|
4442
|
+
Zr(e, "svelte-etk3ty", '.DisplayNone.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:none}.ContainerCenter.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:30px}.AccordionHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:10px}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;padding:10px 0}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{padding-bottom:0}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{margin-bottom:0}.ConsentItem.svelte-etk3ty .ConsentName.svelte-etk3ty.svelte-etk3ty{margin:0}.ConsentItem.svelte-etk3ty .ConsentDescription.svelte-etk3ty.svelte-etk3ty{font-size:0.8rem}.ToggleSwitch.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:53px;height:30px}.ToggleSwitch.Big.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty.svelte-etk3ty{opacity:0;width:0;height:0}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:disabled+.Slider.svelte-etk3ty{opacity:0.1}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:focus+.Slider.svelte-etk3ty{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty{border-radius:34px}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty:before{border-radius:50%}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-etk3ty circle-exclamation-icon.svelte-etk3ty.svelte-etk3ty{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox.svelte-etk3ty.svelte-etk3ty{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-etk3ty.svelte-etk3ty{position:relative}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__input.svelte-etk3ty.svelte-etk3ty{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));width:46px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label.svelte-etk3ty.svelte-etk3ty{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-etk3ty.svelte-etk3ty{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__error-message.svelte-etk3ty.svelte-etk3ty{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-etk3ty.svelte-etk3ty{width:16px;height:auto}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.svelte-etk3ty.svelte-etk3ty{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-etk3ty.svelte-etk3ty{opacity:1}');
|
|
3869
4443
|
}
|
|
3870
|
-
function
|
|
4444
|
+
function Lt(e, t, r) {
|
|
3871
4445
|
const n = e.slice();
|
|
3872
4446
|
return n[64] = t[r], n;
|
|
3873
4447
|
}
|
|
3874
|
-
function
|
|
4448
|
+
function jt(e, t, r) {
|
|
3875
4449
|
const n = e.slice();
|
|
3876
4450
|
return n[61] = t[r], n[62] = t, n[63] = r, n;
|
|
3877
4451
|
}
|
|
3878
|
-
function
|
|
4452
|
+
function It(e, t, r) {
|
|
3879
4453
|
const n = e.slice();
|
|
3880
4454
|
return n[64] = t[r], n;
|
|
3881
4455
|
}
|
|
3882
|
-
function
|
|
3883
|
-
let t, r, n =
|
|
4456
|
+
function ho(e) {
|
|
4457
|
+
let t, r, n = oe(
|
|
3884
4458
|
/*playerConsents*/
|
|
3885
4459
|
e[9]
|
|
3886
4460
|
), i = [];
|
|
3887
4461
|
for (let o = 0; o < n.length; o += 1)
|
|
3888
|
-
i[o] =
|
|
4462
|
+
i[o] = Rt(Lt(e, n, o));
|
|
3889
4463
|
return {
|
|
3890
4464
|
c() {
|
|
3891
|
-
t =
|
|
4465
|
+
t = w("div"), r = w("form");
|
|
3892
4466
|
for (let o = 0; o < i.length; o += 1)
|
|
3893
4467
|
i[o].c();
|
|
3894
|
-
|
|
4468
|
+
k(r, "class", "checkbox svelte-etk3ty"), k(t, "class", "legacyStyle");
|
|
3895
4469
|
},
|
|
3896
4470
|
m(o, a) {
|
|
3897
|
-
L(o, t, a),
|
|
4471
|
+
L(o, t, a), x(t, r);
|
|
3898
4472
|
for (let s = 0; s < i.length; s += 1)
|
|
3899
4473
|
i[s] && i[s].m(r, null);
|
|
3900
4474
|
e[31](r);
|
|
@@ -3902,14 +4476,14 @@ function Bi(e) {
|
|
|
3902
4476
|
p(o, a) {
|
|
3903
4477
|
if (a[0] & /*playerConsents, $_, handleInput*/
|
|
3904
4478
|
590336) {
|
|
3905
|
-
n =
|
|
4479
|
+
n = oe(
|
|
3906
4480
|
/*playerConsents*/
|
|
3907
4481
|
o[9]
|
|
3908
4482
|
);
|
|
3909
4483
|
let s;
|
|
3910
4484
|
for (s = 0; s < n.length; s += 1) {
|
|
3911
|
-
const
|
|
3912
|
-
i[s] ? i[s].p(
|
|
4485
|
+
const u = Lt(o, n, s);
|
|
4486
|
+
i[s] ? i[s].p(u, a) : (i[s] = Rt(u), i[s].c(), i[s].m(r, null));
|
|
3913
4487
|
}
|
|
3914
4488
|
for (; s < i.length; s += 1)
|
|
3915
4489
|
i[s].d(1);
|
|
@@ -3917,11 +4491,11 @@ function Bi(e) {
|
|
|
3917
4491
|
}
|
|
3918
4492
|
},
|
|
3919
4493
|
d(o) {
|
|
3920
|
-
o &&
|
|
4494
|
+
o && O(t), mt(i, o), e[31](null);
|
|
3921
4495
|
}
|
|
3922
4496
|
};
|
|
3923
4497
|
}
|
|
3924
|
-
function
|
|
4498
|
+
function mo(e) {
|
|
3925
4499
|
let t = (
|
|
3926
4500
|
/*$_*/
|
|
3927
4501
|
e[16]("title") || /*$_*/
|
|
@@ -3929,96 +4503,96 @@ function Oi(e) {
|
|
|
3929
4503
|
), r, n, i, o = (
|
|
3930
4504
|
/*$_*/
|
|
3931
4505
|
(e[16]("saveButtonContent") || "Save Consents") + ""
|
|
3932
|
-
), a, s,
|
|
4506
|
+
), a, s, u, l, c, d = t && Ut(e), m = oe(
|
|
3933
4507
|
/*consentsCategories*/
|
|
3934
4508
|
e[8]
|
|
3935
|
-
),
|
|
3936
|
-
for (let
|
|
3937
|
-
|
|
3938
|
-
let
|
|
4509
|
+
), y = [];
|
|
4510
|
+
for (let f = 0; f < m.length; f += 1)
|
|
4511
|
+
y[f] = Xt(jt(e, m, f));
|
|
4512
|
+
let g = (
|
|
3939
4513
|
/*errorMessage*/
|
|
3940
|
-
e[6] &&
|
|
4514
|
+
e[6] && qt(e)
|
|
3941
4515
|
);
|
|
3942
4516
|
return {
|
|
3943
4517
|
c() {
|
|
3944
4518
|
d && d.c(), r = G();
|
|
3945
|
-
for (let
|
|
3946
|
-
|
|
3947
|
-
n = G(), i =
|
|
4519
|
+
for (let f = 0; f < y.length; f += 1)
|
|
4520
|
+
y[f].c();
|
|
4521
|
+
n = G(), i = w("button"), s = G(), g && g.c(), u = Yr(), k(i, "class", "SaveConsentsButton svelte-etk3ty"), i.disabled = a = !/*isValid*/
|
|
3948
4522
|
e[14];
|
|
3949
4523
|
},
|
|
3950
|
-
m(
|
|
3951
|
-
d && d.m(
|
|
3952
|
-
for (let _ = 0; _ <
|
|
3953
|
-
|
|
3954
|
-
L(
|
|
4524
|
+
m(f, S) {
|
|
4525
|
+
d && d.m(f, S), L(f, r, S);
|
|
4526
|
+
for (let _ = 0; _ < y.length; _ += 1)
|
|
4527
|
+
y[_] && y[_].m(f, S);
|
|
4528
|
+
L(f, n, S), L(f, i, S), i.innerHTML = o, L(f, s, S), g && g.m(f, S), L(f, u, S), l || (c = be(
|
|
3955
4529
|
i,
|
|
3956
4530
|
"click",
|
|
3957
4531
|
/*saveChanges*/
|
|
3958
4532
|
e[17]
|
|
3959
|
-
),
|
|
4533
|
+
), l = !0);
|
|
3960
4534
|
},
|
|
3961
|
-
p(
|
|
3962
|
-
if (
|
|
4535
|
+
p(f, S) {
|
|
4536
|
+
if (S[0] & /*$_*/
|
|
3963
4537
|
65536 && (t = /*$_*/
|
|
3964
|
-
|
|
3965
|
-
|
|
4538
|
+
f[16]("title") || /*$_*/
|
|
4539
|
+
f[16]("description")), t ? d ? d.p(f, S) : (d = Ut(f), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null), S[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription, categoryToggle, toggleCategoryConsents*/
|
|
3966
4540
|
867088) {
|
|
3967
|
-
m =
|
|
4541
|
+
m = oe(
|
|
3968
4542
|
/*consentsCategories*/
|
|
3969
|
-
|
|
4543
|
+
f[8]
|
|
3970
4544
|
);
|
|
3971
4545
|
let _;
|
|
3972
4546
|
for (_ = 0; _ < m.length; _ += 1) {
|
|
3973
|
-
const
|
|
3974
|
-
|
|
4547
|
+
const v = jt(f, m, _);
|
|
4548
|
+
y[_] ? y[_].p(v, S) : (y[_] = Xt(v), y[_].c(), y[_].m(n.parentNode, n));
|
|
3975
4549
|
}
|
|
3976
|
-
for (; _ <
|
|
3977
|
-
|
|
3978
|
-
|
|
4550
|
+
for (; _ < y.length; _ += 1)
|
|
4551
|
+
y[_].d(1);
|
|
4552
|
+
y.length = m.length;
|
|
3979
4553
|
}
|
|
3980
|
-
|
|
4554
|
+
S[0] & /*$_*/
|
|
3981
4555
|
65536 && o !== (o = /*$_*/
|
|
3982
|
-
(
|
|
4556
|
+
(f[16]("saveButtonContent") || "Save Consents") + "") && (i.innerHTML = o), S[0] & /*isValid*/
|
|
3983
4557
|
16384 && a !== (a = !/*isValid*/
|
|
3984
|
-
|
|
3985
|
-
|
|
4558
|
+
f[14]) && (i.disabled = a), /*errorMessage*/
|
|
4559
|
+
f[6] ? g ? g.p(f, S) : (g = qt(f), g.c(), g.m(u.parentNode, u)) : g && (g.d(1), g = null);
|
|
3986
4560
|
},
|
|
3987
|
-
d(
|
|
3988
|
-
|
|
4561
|
+
d(f) {
|
|
4562
|
+
f && (O(r), O(n), O(i), O(s), O(u)), d && d.d(f), mt(y, f), g && g.d(f), l = !1, c();
|
|
3989
4563
|
}
|
|
3990
4564
|
};
|
|
3991
4565
|
}
|
|
3992
|
-
function
|
|
4566
|
+
function fo(e) {
|
|
3993
4567
|
let t, r, n;
|
|
3994
4568
|
return {
|
|
3995
4569
|
c() {
|
|
3996
|
-
t =
|
|
4570
|
+
t = w("div"), r = w("strong"), n = Y(
|
|
3997
4571
|
/*fatalError*/
|
|
3998
4572
|
e[7]
|
|
3999
|
-
),
|
|
4573
|
+
), k(r, "class", "ErrorMessage svelte-etk3ty"), k(t, "class", "ContainerCenter svelte-etk3ty");
|
|
4000
4574
|
},
|
|
4001
4575
|
m(i, o) {
|
|
4002
|
-
L(i, t, o),
|
|
4576
|
+
L(i, t, o), x(t, r), x(r, n);
|
|
4003
4577
|
},
|
|
4004
4578
|
p(i, o) {
|
|
4005
4579
|
o[0] & /*fatalError*/
|
|
4006
|
-
128 &&
|
|
4580
|
+
128 && Se(
|
|
4007
4581
|
n,
|
|
4008
4582
|
/*fatalError*/
|
|
4009
4583
|
i[7]
|
|
4010
4584
|
);
|
|
4011
4585
|
},
|
|
4012
4586
|
d(i) {
|
|
4013
|
-
i &&
|
|
4587
|
+
i && O(t);
|
|
4014
4588
|
}
|
|
4015
4589
|
};
|
|
4016
4590
|
}
|
|
4017
|
-
function
|
|
4591
|
+
function po(e) {
|
|
4018
4592
|
let t;
|
|
4019
4593
|
return {
|
|
4020
4594
|
c() {
|
|
4021
|
-
t =
|
|
4595
|
+
t = w("general-animation-loading"), Q(
|
|
4022
4596
|
t,
|
|
4023
4597
|
"clientstyling",
|
|
4024
4598
|
/*clientstyling*/
|
|
@@ -4060,152 +4634,152 @@ function Ii(e) {
|
|
|
4060
4634
|
);
|
|
4061
4635
|
},
|
|
4062
4636
|
d(r) {
|
|
4063
|
-
r &&
|
|
4637
|
+
r && O(t);
|
|
4064
4638
|
}
|
|
4065
4639
|
};
|
|
4066
4640
|
}
|
|
4067
|
-
function
|
|
4068
|
-
let t, r, n, i, o, a, s,
|
|
4641
|
+
function Rt(e) {
|
|
4642
|
+
let t, r, n, i, o, a, s, u, l = (
|
|
4069
4643
|
/*$_*/
|
|
4070
4644
|
(e[16](`${/*consent*/
|
|
4071
4645
|
e[64].tagCode}__description`) || /*consent*/
|
|
4072
4646
|
e[64].tagCode) + ""
|
|
4073
|
-
),
|
|
4647
|
+
), c = (
|
|
4074
4648
|
/*consent*/
|
|
4075
4649
|
e[64].mustAccept ? " *" : ""
|
|
4076
|
-
), d, m,
|
|
4077
|
-
function H(...
|
|
4650
|
+
), d, m, y, g, f, S, _, v, C;
|
|
4651
|
+
function H(...E) {
|
|
4078
4652
|
return (
|
|
4079
4653
|
/*input_handler_1*/
|
|
4080
4654
|
e[30](
|
|
4081
4655
|
/*consent*/
|
|
4082
4656
|
e[64],
|
|
4083
|
-
...
|
|
4657
|
+
...E
|
|
4084
4658
|
)
|
|
4085
4659
|
);
|
|
4086
4660
|
}
|
|
4087
4661
|
return {
|
|
4088
4662
|
c() {
|
|
4089
|
-
t =
|
|
4090
|
-
e[64].status === "1",
|
|
4091
|
-
e[64].tagCode}__input`),
|
|
4092
|
-
e[64].tagCode}__input`),
|
|
4093
|
-
e[64].tagCode),
|
|
4663
|
+
t = w("div"), r = w("input"), o = G(), a = w("label"), s = w("div"), u = new Jt(!1), d = Y(c), y = G(), g = w("small"), S = G(), k(r, "class", "checkbox__input svelte-etk3ty"), k(r, "type", "checkbox"), r.checked = n = /*consent*/
|
|
4664
|
+
e[64].status === "1", k(r, "id", i = `${/*consent*/
|
|
4665
|
+
e[64].tagCode}__input`), u.a = d, k(s, "class", "checkbox__label-text svelte-etk3ty"), k(a, "class", "checkbox__label svelte-etk3ty"), k(a, "for", m = `${/*consent*/
|
|
4666
|
+
e[64].tagCode}__input`), k(g, "class", "checkbox__error-message svelte-etk3ty"), k(g, "id", f = "checkBoxError__" + /*consent*/
|
|
4667
|
+
e[64].tagCode), k(t, "class", _ = "checkbox__wrapper " + /*consent*/
|
|
4094
4668
|
e[64].tagCode + "__input svelte-etk3ty");
|
|
4095
4669
|
},
|
|
4096
|
-
m(
|
|
4097
|
-
L(
|
|
4670
|
+
m(E, z) {
|
|
4671
|
+
L(E, t, z), x(t, r), x(t, o), x(t, a), x(a, s), u.m(l, s), x(s, d), x(t, y), x(t, g), x(t, S), v || (C = be(r, "input", H), v = !0);
|
|
4098
4672
|
},
|
|
4099
|
-
p(
|
|
4100
|
-
e =
|
|
4673
|
+
p(E, z) {
|
|
4674
|
+
e = E, z[0] & /*playerConsents*/
|
|
4101
4675
|
512 && n !== (n = /*consent*/
|
|
4102
|
-
e[64].status === "1") && (r.checked = n),
|
|
4676
|
+
e[64].status === "1") && (r.checked = n), z[0] & /*playerConsents*/
|
|
4103
4677
|
512 && i !== (i = `${/*consent*/
|
|
4104
|
-
e[64].tagCode}__input`) &&
|
|
4105
|
-
66048 &&
|
|
4678
|
+
e[64].tagCode}__input`) && k(r, "id", i), z[0] & /*$_, playerConsents*/
|
|
4679
|
+
66048 && l !== (l = /*$_*/
|
|
4106
4680
|
(e[16](`${/*consent*/
|
|
4107
4681
|
e[64].tagCode}__description`) || /*consent*/
|
|
4108
|
-
e[64].tagCode) + "") &&
|
|
4109
|
-
512 &&
|
|
4110
|
-
e[64].mustAccept ? " *" : "") &&
|
|
4682
|
+
e[64].tagCode) + "") && u.p(l), z[0] & /*playerConsents*/
|
|
4683
|
+
512 && c !== (c = /*consent*/
|
|
4684
|
+
e[64].mustAccept ? " *" : "") && Se(d, c), z[0] & /*playerConsents*/
|
|
4111
4685
|
512 && m !== (m = `${/*consent*/
|
|
4112
|
-
e[64].tagCode}__input`) &&
|
|
4113
|
-
512 &&
|
|
4114
|
-
e[64].tagCode) &&
|
|
4686
|
+
e[64].tagCode}__input`) && k(a, "for", m), z[0] & /*playerConsents*/
|
|
4687
|
+
512 && f !== (f = "checkBoxError__" + /*consent*/
|
|
4688
|
+
e[64].tagCode) && k(g, "id", f), z[0] & /*playerConsents*/
|
|
4115
4689
|
512 && _ !== (_ = "checkbox__wrapper " + /*consent*/
|
|
4116
|
-
e[64].tagCode + "__input svelte-etk3ty") &&
|
|
4690
|
+
e[64].tagCode + "__input svelte-etk3ty") && k(t, "class", _);
|
|
4117
4691
|
},
|
|
4118
|
-
d(
|
|
4119
|
-
|
|
4692
|
+
d(E) {
|
|
4693
|
+
E && O(t), v = !1, C();
|
|
4120
4694
|
}
|
|
4121
4695
|
};
|
|
4122
4696
|
}
|
|
4123
|
-
function
|
|
4697
|
+
function Ut(e) {
|
|
4124
4698
|
let t, r = (
|
|
4125
4699
|
/*$_*/
|
|
4126
4700
|
e[16]("title")
|
|
4127
4701
|
), n, i = (
|
|
4128
4702
|
/*$_*/
|
|
4129
4703
|
e[16]("description")
|
|
4130
|
-
), o = r &&
|
|
4704
|
+
), o = r && Dt(e), a = i && Gt(e);
|
|
4131
4705
|
return {
|
|
4132
4706
|
c() {
|
|
4133
|
-
t =
|
|
4707
|
+
t = w("div"), o && o.c(), n = G(), a && a.c(), k(t, "class", "PlayerConsentsHeader svelte-etk3ty");
|
|
4134
4708
|
},
|
|
4135
|
-
m(s,
|
|
4136
|
-
L(s, t,
|
|
4709
|
+
m(s, u) {
|
|
4710
|
+
L(s, t, u), o && o.m(t, null), x(t, n), a && a.m(t, null);
|
|
4137
4711
|
},
|
|
4138
|
-
p(s,
|
|
4139
|
-
|
|
4712
|
+
p(s, u) {
|
|
4713
|
+
u[0] & /*$_*/
|
|
4140
4714
|
65536 && (r = /*$_*/
|
|
4141
|
-
s[16]("title")), r ? o ? o.p(s,
|
|
4715
|
+
s[16]("title")), r ? o ? o.p(s, u) : (o = Dt(s), o.c(), o.m(t, n)) : o && (o.d(1), o = null), u[0] & /*$_*/
|
|
4142
4716
|
65536 && (i = /*$_*/
|
|
4143
|
-
s[16]("description")), i ? a ? a.p(s,
|
|
4717
|
+
s[16]("description")), i ? a ? a.p(s, u) : (a = Gt(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
|
|
4144
4718
|
},
|
|
4145
4719
|
d(s) {
|
|
4146
|
-
s &&
|
|
4720
|
+
s && O(t), o && o.d(), a && a.d();
|
|
4147
4721
|
}
|
|
4148
4722
|
};
|
|
4149
4723
|
}
|
|
4150
|
-
function
|
|
4724
|
+
function Dt(e) {
|
|
4151
4725
|
let t, r = (
|
|
4152
4726
|
/*$_*/
|
|
4153
4727
|
e[16]("title") + ""
|
|
4154
4728
|
), n;
|
|
4155
4729
|
return {
|
|
4156
4730
|
c() {
|
|
4157
|
-
t =
|
|
4731
|
+
t = w("h2"), n = Y(r), k(t, "class", "PlayerConsentsTitle");
|
|
4158
4732
|
},
|
|
4159
4733
|
m(i, o) {
|
|
4160
|
-
L(i, t, o),
|
|
4734
|
+
L(i, t, o), x(t, n);
|
|
4161
4735
|
},
|
|
4162
4736
|
p(i, o) {
|
|
4163
4737
|
o[0] & /*$_*/
|
|
4164
4738
|
65536 && r !== (r = /*$_*/
|
|
4165
|
-
i[16]("title") + "") &&
|
|
4739
|
+
i[16]("title") + "") && Se(n, r);
|
|
4166
4740
|
},
|
|
4167
4741
|
d(i) {
|
|
4168
|
-
i &&
|
|
4742
|
+
i && O(t);
|
|
4169
4743
|
}
|
|
4170
4744
|
};
|
|
4171
4745
|
}
|
|
4172
|
-
function
|
|
4746
|
+
function Gt(e) {
|
|
4173
4747
|
let t, r = (
|
|
4174
4748
|
/*$_*/
|
|
4175
4749
|
e[16]("description") + ""
|
|
4176
4750
|
), n;
|
|
4177
4751
|
return {
|
|
4178
4752
|
c() {
|
|
4179
|
-
t =
|
|
4753
|
+
t = w("p"), n = Y(r), k(t, "class", "PlayerConsentsDescription");
|
|
4180
4754
|
},
|
|
4181
4755
|
m(i, o) {
|
|
4182
|
-
L(i, t, o),
|
|
4756
|
+
L(i, t, o), x(t, n);
|
|
4183
4757
|
},
|
|
4184
4758
|
p(i, o) {
|
|
4185
4759
|
o[0] & /*$_*/
|
|
4186
4760
|
65536 && r !== (r = /*$_*/
|
|
4187
|
-
i[16]("description") + "") &&
|
|
4761
|
+
i[16]("description") + "") && Se(n, r);
|
|
4188
4762
|
},
|
|
4189
4763
|
d(i) {
|
|
4190
|
-
i &&
|
|
4764
|
+
i && O(t);
|
|
4191
4765
|
}
|
|
4192
4766
|
};
|
|
4193
4767
|
}
|
|
4194
|
-
function
|
|
4768
|
+
function Ft(e) {
|
|
4195
4769
|
let t;
|
|
4196
4770
|
return {
|
|
4197
4771
|
c() {
|
|
4198
|
-
t =
|
|
4772
|
+
t = w("sup"), t.textContent = "*", k(t, "class", "ConsentRequired svelte-etk3ty");
|
|
4199
4773
|
},
|
|
4200
4774
|
m(r, n) {
|
|
4201
4775
|
L(r, t, n);
|
|
4202
4776
|
},
|
|
4203
4777
|
d(r) {
|
|
4204
|
-
r &&
|
|
4778
|
+
r && O(t);
|
|
4205
4779
|
}
|
|
4206
4780
|
};
|
|
4207
4781
|
}
|
|
4208
|
-
function
|
|
4782
|
+
function $t(e) {
|
|
4209
4783
|
let t, r = (
|
|
4210
4784
|
/*$_*/
|
|
4211
4785
|
(e[16](`${/*consent*/
|
|
@@ -4214,7 +4788,7 @@ function Nt(e) {
|
|
|
4214
4788
|
);
|
|
4215
4789
|
return {
|
|
4216
4790
|
c() {
|
|
4217
|
-
t =
|
|
4791
|
+
t = w("p"), k(t, "class", "ConsentDescription svelte-etk3ty");
|
|
4218
4792
|
},
|
|
4219
4793
|
m(n, i) {
|
|
4220
4794
|
L(n, t, i), t.innerHTML = r;
|
|
@@ -4227,24 +4801,24 @@ function Nt(e) {
|
|
|
4227
4801
|
n[64].description) + "") && (t.innerHTML = r);
|
|
4228
4802
|
},
|
|
4229
4803
|
d(n) {
|
|
4230
|
-
n &&
|
|
4804
|
+
n && O(t);
|
|
4231
4805
|
}
|
|
4232
4806
|
};
|
|
4233
4807
|
}
|
|
4234
|
-
function
|
|
4808
|
+
function Vt(e) {
|
|
4235
4809
|
let t, r, n, i, o = (
|
|
4236
4810
|
/*$_*/
|
|
4237
4811
|
(e[16](`${/*consent*/
|
|
4238
4812
|
e[64].tagCode}__name`) || /*consent*/
|
|
4239
4813
|
e[64].friendlyName) + ""
|
|
4240
|
-
), a, s,
|
|
4814
|
+
), a, s, u, l, c, d, m, y, g, f, S, _ = (
|
|
4241
4815
|
/*consent*/
|
|
4242
|
-
e[64].mustAccept === !0 &&
|
|
4243
|
-
),
|
|
4816
|
+
e[64].mustAccept === !0 && Ft()
|
|
4817
|
+
), v = (
|
|
4244
4818
|
/*displayconsentdescription*/
|
|
4245
|
-
e[4] === "true" &&
|
|
4819
|
+
e[4] === "true" && $t(e)
|
|
4246
4820
|
);
|
|
4247
|
-
function
|
|
4821
|
+
function C(...H) {
|
|
4248
4822
|
return (
|
|
4249
4823
|
/*input_handler*/
|
|
4250
4824
|
e[29](
|
|
@@ -4256,60 +4830,60 @@ function At(e) {
|
|
|
4256
4830
|
}
|
|
4257
4831
|
return {
|
|
4258
4832
|
c() {
|
|
4259
|
-
t =
|
|
4833
|
+
t = w("div"), r = w("div"), n = w("h4"), i = new Jt(!1), a = G(), _ && _.c(), s = G(), v && v.c(), u = G(), l = w("label"), c = w("input"), y = G(), g = w("span"), i.a = a, k(n, "class", "ConsentName svelte-etk3ty"), k(r, "class", "ConsentContent"), k(c, "type", "checkbox"), c.disabled = d = /*consent*/
|
|
4260
4834
|
e[64].mustAccept === !0 && /*initialConsentsState*/
|
|
4261
4835
|
e[12][
|
|
4262
4836
|
/*consent*/
|
|
4263
4837
|
e[64].tagCode
|
|
4264
|
-
] === !0,
|
|
4838
|
+
] === !0, c.checked = m = /*consentsState*/
|
|
4265
4839
|
e[13][
|
|
4266
4840
|
/*consent*/
|
|
4267
4841
|
e[64].tagCode
|
|
4268
|
-
],
|
|
4842
|
+
], k(c, "class", "svelte-etk3ty"), k(g, "class", "Slider Round svelte-etk3ty"), k(l, "class", "ToggleSwitch svelte-etk3ty"), k(t, "class", "ConsentItem svelte-etk3ty");
|
|
4269
4843
|
},
|
|
4270
|
-
m(H,
|
|
4271
|
-
L(H, t,
|
|
4844
|
+
m(H, E) {
|
|
4845
|
+
L(H, t, E), x(t, r), x(r, n), i.m(o, n), x(n, a), _ && _.m(n, null), x(r, s), v && v.m(r, null), x(t, u), x(t, l), x(l, c), x(l, y), x(l, g), f || (S = be(c, "input", C), f = !0);
|
|
4272
4846
|
},
|
|
4273
|
-
p(H,
|
|
4274
|
-
e = H,
|
|
4847
|
+
p(H, E) {
|
|
4848
|
+
e = H, E[0] & /*$_, playerConsents, consentsCategories*/
|
|
4275
4849
|
66304 && o !== (o = /*$_*/
|
|
4276
4850
|
(e[16](`${/*consent*/
|
|
4277
4851
|
e[64].tagCode}__name`) || /*consent*/
|
|
4278
4852
|
e[64].friendlyName) + "") && i.p(o), /*consent*/
|
|
4279
|
-
e[64].mustAccept === !0 ? _ || (_ =
|
|
4280
|
-
e[4] === "true" ?
|
|
4853
|
+
e[64].mustAccept === !0 ? _ || (_ = Ft(), _.c(), _.m(n, null)) : _ && (_.d(1), _ = null), /*displayconsentdescription*/
|
|
4854
|
+
e[4] === "true" ? v ? v.p(e, E) : (v = $t(e), v.c(), v.m(r, null)) : v && (v.d(1), v = null), E[0] & /*playerConsents, consentsCategories, initialConsentsState*/
|
|
4281
4855
|
4864 && d !== (d = /*consent*/
|
|
4282
4856
|
e[64].mustAccept === !0 && /*initialConsentsState*/
|
|
4283
4857
|
e[12][
|
|
4284
4858
|
/*consent*/
|
|
4285
4859
|
e[64].tagCode
|
|
4286
|
-
] === !0) && (
|
|
4860
|
+
] === !0) && (c.disabled = d), E[0] & /*consentsState, playerConsents, consentsCategories*/
|
|
4287
4861
|
8960 && m !== (m = /*consentsState*/
|
|
4288
4862
|
e[13][
|
|
4289
4863
|
/*consent*/
|
|
4290
4864
|
e[64].tagCode
|
|
4291
|
-
]) && (
|
|
4865
|
+
]) && (c.checked = m);
|
|
4292
4866
|
},
|
|
4293
4867
|
d(H) {
|
|
4294
|
-
H &&
|
|
4868
|
+
H && O(t), _ && _.d(), v && v.d(), f = !1, S();
|
|
4295
4869
|
}
|
|
4296
4870
|
};
|
|
4297
4871
|
}
|
|
4298
|
-
function
|
|
4872
|
+
function Xt(e) {
|
|
4299
4873
|
let t, r, n, i = (
|
|
4300
4874
|
/*$_*/
|
|
4301
4875
|
(e[16](`${/*category*/
|
|
4302
4876
|
e[61].categoryTagCode}__category`) || /*category*/
|
|
4303
4877
|
e[61].friendlyName) + ""
|
|
4304
|
-
), o, a, s,
|
|
4305
|
-
function
|
|
4878
|
+
), o, a, s, u, l, c, d, m, y;
|
|
4879
|
+
function g() {
|
|
4306
4880
|
e[26].call(
|
|
4307
4881
|
s,
|
|
4308
4882
|
/*category*/
|
|
4309
4883
|
e[61]
|
|
4310
4884
|
);
|
|
4311
4885
|
}
|
|
4312
|
-
function
|
|
4886
|
+
function f() {
|
|
4313
4887
|
return (
|
|
4314
4888
|
/*change_handler*/
|
|
4315
4889
|
e[27](
|
|
@@ -4318,44 +4892,44 @@ function Ht(e) {
|
|
|
4318
4892
|
)
|
|
4319
4893
|
);
|
|
4320
4894
|
}
|
|
4321
|
-
function
|
|
4895
|
+
function S(...C) {
|
|
4322
4896
|
return (
|
|
4323
4897
|
/*func*/
|
|
4324
4898
|
e[28](
|
|
4325
4899
|
/*category*/
|
|
4326
4900
|
e[61],
|
|
4327
|
-
...
|
|
4901
|
+
...C
|
|
4328
4902
|
)
|
|
4329
4903
|
);
|
|
4330
4904
|
}
|
|
4331
|
-
let _ =
|
|
4905
|
+
let _ = oe(
|
|
4332
4906
|
/*playerConsents*/
|
|
4333
|
-
e[9].filter(
|
|
4334
|
-
),
|
|
4335
|
-
for (let
|
|
4336
|
-
|
|
4907
|
+
e[9].filter(S)
|
|
4908
|
+
), v = [];
|
|
4909
|
+
for (let C = 0; C < _.length; C += 1)
|
|
4910
|
+
v[C] = Vt(It(e, _, C));
|
|
4337
4911
|
return {
|
|
4338
4912
|
c() {
|
|
4339
|
-
t =
|
|
4340
|
-
for (let
|
|
4341
|
-
|
|
4342
|
-
|
|
4913
|
+
t = w("div"), r = w("div"), n = w("h3"), o = G(), a = w("label"), s = w("input"), u = G(), l = w("span"), c = G(), d = w("div");
|
|
4914
|
+
for (let C = 0; C < v.length; C += 1)
|
|
4915
|
+
v[C].c();
|
|
4916
|
+
k(s, "type", "checkbox"), k(s, "class", "svelte-etk3ty"), k(l, "class", "Slider Round svelte-etk3ty"), k(a, "class", "ToggleSwitch Big svelte-etk3ty"), k(r, "class", "AccordionHeader svelte-etk3ty"), k(d, "class", "AccordionContent svelte-etk3ty"), k(t, "class", "AccordionItem svelte-etk3ty");
|
|
4343
4917
|
},
|
|
4344
|
-
m(
|
|
4345
|
-
L(
|
|
4918
|
+
m(C, H) {
|
|
4919
|
+
L(C, t, H), x(t, r), x(r, n), n.innerHTML = i, x(r, o), x(r, a), x(a, s), s.checked = /*categoryToggle*/
|
|
4346
4920
|
e[11][
|
|
4347
4921
|
/*category*/
|
|
4348
4922
|
e[61].categoryTagCode
|
|
4349
|
-
],
|
|
4350
|
-
for (let
|
|
4351
|
-
|
|
4352
|
-
m || (
|
|
4353
|
-
|
|
4354
|
-
|
|
4923
|
+
], x(a, u), x(a, l), x(t, c), x(t, d);
|
|
4924
|
+
for (let E = 0; E < v.length; E += 1)
|
|
4925
|
+
v[E] && v[E].m(d, null);
|
|
4926
|
+
m || (y = [
|
|
4927
|
+
be(s, "change", g),
|
|
4928
|
+
be(s, "change", f)
|
|
4355
4929
|
], m = !0);
|
|
4356
4930
|
},
|
|
4357
|
-
p(
|
|
4358
|
-
if (e =
|
|
4931
|
+
p(C, H) {
|
|
4932
|
+
if (e = C, H[0] & /*$_, consentsCategories*/
|
|
4359
4933
|
65792 && i !== (i = /*$_*/
|
|
4360
4934
|
(e[16](`${/*category*/
|
|
4361
4935
|
e[61].categoryTagCode}__category`) || /*category*/
|
|
@@ -4366,274 +4940,274 @@ function Ht(e) {
|
|
|
4366
4940
|
e[61].categoryTagCode
|
|
4367
4941
|
]), H[0] & /*playerConsents, consentsCategories, initialConsentsState, consentsState, handleInput, $_, displayconsentdescription*/
|
|
4368
4942
|
602896) {
|
|
4369
|
-
_ =
|
|
4943
|
+
_ = oe(
|
|
4370
4944
|
/*playerConsents*/
|
|
4371
|
-
e[9].filter(
|
|
4945
|
+
e[9].filter(S)
|
|
4372
4946
|
);
|
|
4373
|
-
let
|
|
4374
|
-
for (
|
|
4375
|
-
const
|
|
4376
|
-
|
|
4947
|
+
let E;
|
|
4948
|
+
for (E = 0; E < _.length; E += 1) {
|
|
4949
|
+
const z = It(e, _, E);
|
|
4950
|
+
v[E] ? v[E].p(z, H) : (v[E] = Vt(z), v[E].c(), v[E].m(d, null));
|
|
4377
4951
|
}
|
|
4378
|
-
for (;
|
|
4379
|
-
|
|
4380
|
-
|
|
4952
|
+
for (; E < v.length; E += 1)
|
|
4953
|
+
v[E].d(1);
|
|
4954
|
+
v.length = _.length;
|
|
4381
4955
|
}
|
|
4382
4956
|
},
|
|
4383
|
-
d(
|
|
4384
|
-
|
|
4957
|
+
d(C) {
|
|
4958
|
+
C && O(t), mt(v, C), m = !1, ue(y);
|
|
4385
4959
|
}
|
|
4386
4960
|
};
|
|
4387
4961
|
}
|
|
4388
|
-
function
|
|
4962
|
+
function qt(e) {
|
|
4389
4963
|
let t, r, n, i, o;
|
|
4390
4964
|
return {
|
|
4391
4965
|
c() {
|
|
4392
|
-
t =
|
|
4966
|
+
t = w("div"), r = w("circle-exclamation-icon"), n = G(), i = w("strong"), o = Y(
|
|
4393
4967
|
/*errorMessage*/
|
|
4394
4968
|
e[6]
|
|
4395
|
-
), Q(r, "class", "svelte-etk3ty"),
|
|
4969
|
+
), Q(r, "class", "svelte-etk3ty"), k(i, "class", "ErrorMessage svelte-etk3ty"), k(t, "class", "ConsentErrorContainer svelte-etk3ty");
|
|
4396
4970
|
},
|
|
4397
4971
|
m(a, s) {
|
|
4398
|
-
L(a, t, s),
|
|
4972
|
+
L(a, t, s), x(t, r), x(t, n), x(t, i), x(i, o);
|
|
4399
4973
|
},
|
|
4400
4974
|
p(a, s) {
|
|
4401
4975
|
s[0] & /*errorMessage*/
|
|
4402
|
-
64 &&
|
|
4976
|
+
64 && Se(
|
|
4403
4977
|
o,
|
|
4404
4978
|
/*errorMessage*/
|
|
4405
4979
|
a[6]
|
|
4406
4980
|
);
|
|
4407
4981
|
},
|
|
4408
4982
|
d(a) {
|
|
4409
|
-
a &&
|
|
4983
|
+
a && O(t);
|
|
4410
4984
|
}
|
|
4411
4985
|
};
|
|
4412
4986
|
}
|
|
4413
|
-
function
|
|
4987
|
+
function go(e) {
|
|
4414
4988
|
let t, r;
|
|
4415
4989
|
function n(a, s) {
|
|
4416
4990
|
if (
|
|
4417
4991
|
/*isLoading*/
|
|
4418
4992
|
a[10]
|
|
4419
4993
|
)
|
|
4420
|
-
return
|
|
4994
|
+
return po;
|
|
4421
4995
|
if (
|
|
4422
4996
|
/*fatalError*/
|
|
4423
4997
|
a[7]
|
|
4424
4998
|
)
|
|
4425
|
-
return
|
|
4999
|
+
return fo;
|
|
4426
5000
|
if (
|
|
4427
5001
|
/*session*/
|
|
4428
5002
|
a[0]
|
|
4429
5003
|
)
|
|
4430
|
-
return
|
|
5004
|
+
return mo;
|
|
4431
5005
|
if (!/*session*/
|
|
4432
5006
|
a[0])
|
|
4433
|
-
return
|
|
5007
|
+
return ho;
|
|
4434
5008
|
}
|
|
4435
5009
|
let i = n(e), o = i && i(e);
|
|
4436
5010
|
return {
|
|
4437
5011
|
c() {
|
|
4438
|
-
t =
|
|
5012
|
+
t = w("div"), r = w("div"), o && o.c(), k(r, "class", "ConsentsContainer svelte-etk3ty"), k(t, "class", "" + " svelte-etk3ty");
|
|
4439
5013
|
},
|
|
4440
5014
|
m(a, s) {
|
|
4441
|
-
L(a, t, s),
|
|
5015
|
+
L(a, t, s), x(t, r), o && o.m(r, null), e[32](r);
|
|
4442
5016
|
},
|
|
4443
5017
|
p(a, s) {
|
|
4444
5018
|
i === (i = n(a)) && o ? o.p(a, s) : (o && o.d(1), o = i && i(a), o && (o.c(), o.m(r, null)));
|
|
4445
5019
|
},
|
|
4446
|
-
i:
|
|
4447
|
-
o:
|
|
5020
|
+
i: F,
|
|
5021
|
+
o: F,
|
|
4448
5022
|
d(a) {
|
|
4449
|
-
a &&
|
|
5023
|
+
a && O(t), o && o.d(), e[32](null);
|
|
4450
5024
|
}
|
|
4451
5025
|
};
|
|
4452
5026
|
}
|
|
4453
|
-
function
|
|
5027
|
+
function _o(e, t, r) {
|
|
4454
5028
|
let n;
|
|
4455
|
-
|
|
4456
|
-
let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl:
|
|
5029
|
+
Wr(e, ao, (h) => r(16, n = h));
|
|
5030
|
+
let { session: i = "" } = t, { userid: o = "" } = t, { endpoint: a = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: u = "" } = t, { mbsource: l } = t, { lang: c = "en" } = t, { displayconsentdescription: d = "" } = t, { translationurl: m = "" } = t, { modalconsents: y = "false" } = t, g, f, S = !1, _ = !1, v = "", C = "", H = "", E = "", z = [], W = [], j = [], fe = !0, we = !0, $ = {}, Te = {}, Z = {}, U = {}, pe, Me, R = {
|
|
4457
5031
|
none: { key: "0", value: "None" },
|
|
4458
5032
|
accepted: { key: "1", value: "Accepted" },
|
|
4459
5033
|
expired: { key: "2", value: "Expired" },
|
|
4460
5034
|
denied: { key: "3", value: "Denied" },
|
|
4461
5035
|
suspended: { key: "4", value: "Suspended" }
|
|
4462
|
-
},
|
|
4463
|
-
Object.keys(
|
|
4464
|
-
|
|
5036
|
+
}, Ne = !1;
|
|
5037
|
+
Object.keys(zt).forEach((h) => {
|
|
5038
|
+
Ot(h, zt[h]);
|
|
4465
5039
|
});
|
|
4466
|
-
const
|
|
4467
|
-
|
|
4468
|
-
},
|
|
4469
|
-
let
|
|
4470
|
-
fetch(
|
|
4471
|
-
Object.keys(
|
|
4472
|
-
|
|
5040
|
+
const xr = () => {
|
|
5041
|
+
so(c);
|
|
5042
|
+
}, wr = () => {
|
|
5043
|
+
let h = new URL(m);
|
|
5044
|
+
fetch(h.href).then((p) => p.json()).then((p) => {
|
|
5045
|
+
Object.keys(p).forEach((M) => {
|
|
5046
|
+
Ot(M, p[M]);
|
|
4473
5047
|
});
|
|
4474
|
-
}).catch((
|
|
4475
|
-
console.log(
|
|
5048
|
+
}).catch((p) => {
|
|
5049
|
+
console.log(p);
|
|
4476
5050
|
});
|
|
4477
|
-
},
|
|
4478
|
-
i && (
|
|
4479
|
-
},
|
|
4480
|
-
|
|
4481
|
-
},
|
|
5051
|
+
}, Tr = () => {
|
|
5052
|
+
i && (v = i, _ = !0), o && (C = o);
|
|
5053
|
+
}, Ae = (h, p = !1) => {
|
|
5054
|
+
p ? r(7, E = h) : (Br(), r(6, H = h));
|
|
5055
|
+
}, ge = async (h, p, M, b = !1) => {
|
|
4482
5056
|
try {
|
|
4483
|
-
const T = await fetch(
|
|
5057
|
+
const T = await fetch(h, M);
|
|
4484
5058
|
if (!T.ok)
|
|
4485
|
-
throw new Error(n(
|
|
5059
|
+
throw new Error(n(p));
|
|
4486
5060
|
const I = await T.json();
|
|
4487
|
-
return
|
|
5061
|
+
return _ ? I : I.filter((X) => X.showOnRegister === !0);
|
|
4488
5062
|
} catch (T) {
|
|
4489
|
-
throw
|
|
4490
|
-
T instanceof TypeError ? n(
|
|
4491
|
-
|
|
5063
|
+
throw Ae(
|
|
5064
|
+
T instanceof TypeError ? n(p) : T.message,
|
|
5065
|
+
b
|
|
4492
5066
|
), T;
|
|
4493
5067
|
}
|
|
4494
|
-
},
|
|
5068
|
+
}, Mr = async () => {
|
|
4495
5069
|
try {
|
|
4496
|
-
let
|
|
4497
|
-
if (
|
|
4498
|
-
let
|
|
4499
|
-
|
|
5070
|
+
let h = [], p = [];
|
|
5071
|
+
if (_ ? [h, p] = await gt() : h = await gt(), r(10, fe = !1), W = [...h], r(8, z = Ar(W).sort((M, b) => M.categoryTagCode.localeCompare(b.categoryTagCode))), r(11, $ = Hr(z)), Te = { ...$ }, r(9, j = [...p]), W.forEach((M) => {
|
|
5072
|
+
let b = j.find((T) => T.tagCode === M.tagCode);
|
|
5073
|
+
b || (b = {
|
|
4500
5074
|
...M,
|
|
4501
5075
|
status: R.denied.value
|
|
4502
|
-
},
|
|
4503
|
-
}),
|
|
4504
|
-
if (r(9,
|
|
5076
|
+
}, j.push(b)), b.description = M.description, b.orderNumber = M.orderNumber;
|
|
5077
|
+
}), y === "true") {
|
|
5078
|
+
if (r(9, j = j.filter((M) => M.status === R.expired.value)), j.length !== 0)
|
|
4505
5079
|
return;
|
|
4506
|
-
|
|
5080
|
+
Ae(n("wrongModalConfig"), !0);
|
|
4507
5081
|
}
|
|
4508
|
-
|
|
4509
|
-
} catch (
|
|
4510
|
-
throw r(10,
|
|
4511
|
-
|
|
5082
|
+
Pr();
|
|
5083
|
+
} catch (h) {
|
|
5084
|
+
throw r(10, fe = !1), Ae(
|
|
5085
|
+
h instanceof TypeError ? n("invalidUrl") : h.message,
|
|
4512
5086
|
!0
|
|
4513
|
-
),
|
|
5087
|
+
), h;
|
|
4514
5088
|
}
|
|
4515
|
-
},
|
|
4516
|
-
const
|
|
4517
|
-
if (
|
|
4518
|
-
return await
|
|
4519
|
-
const
|
|
5089
|
+
}, gt = async () => {
|
|
5090
|
+
const h = new URL(`${a}/api/v1/gm/consents`);
|
|
5091
|
+
if (h.searchParams.append("Status", "Active"), !_)
|
|
5092
|
+
return await ge(h.href, "fetchConsentsError", { method: "GET" }, !0);
|
|
5093
|
+
const p = new URL(`${a}/api/v1/gm/user-consents/${C}`);
|
|
4520
5094
|
return await Promise.all([
|
|
4521
|
-
|
|
4522
|
-
|
|
5095
|
+
ge(h.href, "fetchConsentsError", { method: "GET" }, !0),
|
|
5096
|
+
ge(p.href, "fetchPlayerConsentsError", {
|
|
4523
5097
|
method: "GET",
|
|
4524
5098
|
headers: {
|
|
4525
|
-
"X-SessionId":
|
|
5099
|
+
"X-SessionId": v,
|
|
4526
5100
|
"Content-Type": "application/json"
|
|
4527
5101
|
}
|
|
4528
5102
|
})
|
|
4529
5103
|
]);
|
|
4530
|
-
},
|
|
4531
|
-
|
|
4532
|
-
const
|
|
5104
|
+
}, Nr = () => {
|
|
5105
|
+
Ne = !1;
|
|
5106
|
+
const h = new URL(`${a}/api/v2/gm/legislation/consents`), p = {
|
|
4533
5107
|
"Content-Type": "application/json",
|
|
4534
5108
|
Accept: "application/json"
|
|
4535
|
-
}, M = { method: "GET", headers:
|
|
4536
|
-
fetch(
|
|
4537
|
-
if (!
|
|
4538
|
-
if (
|
|
5109
|
+
}, M = { method: "GET", headers: p };
|
|
5110
|
+
fetch(h.href, M).then((b) => b.ok ? b.json() : (Ne = !0, b.json().then((T) => (console.error(T), He(T))))).then((b) => {
|
|
5111
|
+
if (!Ne) {
|
|
5112
|
+
if (W = b, localStorage.getItem("playerConsents")) {
|
|
4539
5113
|
try {
|
|
4540
|
-
r(9,
|
|
5114
|
+
r(9, j = JSON.parse(localStorage.getItem("playerConsents")));
|
|
4541
5115
|
} catch (T) {
|
|
4542
|
-
return console.error(T),
|
|
5116
|
+
return console.error(T), He(T);
|
|
4543
5117
|
}
|
|
4544
5118
|
return;
|
|
4545
5119
|
}
|
|
4546
|
-
return r(9,
|
|
5120
|
+
return r(9, j = W.map((T) => ({
|
|
4547
5121
|
id: T.id,
|
|
4548
5122
|
status: R.denied.key,
|
|
4549
5123
|
friendlyName: T.friendlyName,
|
|
4550
5124
|
tagCode: T.tagCode,
|
|
4551
5125
|
selected: null,
|
|
4552
5126
|
mustAccept: T.mustAccept
|
|
4553
|
-
}))), localStorage.setItem("playerConsents", JSON.stringify(
|
|
5127
|
+
}))), localStorage.setItem("playerConsents", JSON.stringify(j)), j;
|
|
4554
5128
|
}
|
|
4555
|
-
}).catch((
|
|
4556
|
-
r(10,
|
|
5129
|
+
}).catch((b) => (console.error(b), He(b))).finally(() => {
|
|
5130
|
+
r(10, fe = !1);
|
|
4557
5131
|
});
|
|
4558
|
-
},
|
|
4559
|
-
const
|
|
4560
|
-
return
|
|
4561
|
-
|
|
4562
|
-
}), Array.from(
|
|
4563
|
-
},
|
|
4564
|
-
const
|
|
4565
|
-
if (
|
|
4566
|
-
const M =
|
|
4567
|
-
(
|
|
5132
|
+
}, Ar = (h) => {
|
|
5133
|
+
const p = /* @__PURE__ */ new Map();
|
|
5134
|
+
return h.forEach((M) => {
|
|
5135
|
+
p.has(M.category.categoryTagCode) || p.set(M.category.categoryTagCode, M.category);
|
|
5136
|
+
}), Array.from(p.values());
|
|
5137
|
+
}, Hr = (h) => {
|
|
5138
|
+
const p = localStorage.getItem("categoryToggle" + C);
|
|
5139
|
+
if (p === null) {
|
|
5140
|
+
const M = h.reduce(
|
|
5141
|
+
(b, T) => (b[T.categoryTagCode] = !1, b),
|
|
4568
5142
|
{}
|
|
4569
5143
|
);
|
|
4570
|
-
return localStorage.setItem("categoryToggle" +
|
|
5144
|
+
return localStorage.setItem("categoryToggle" + C, JSON.stringify(M)), M;
|
|
4571
5145
|
} else
|
|
4572
|
-
return JSON.parse(
|
|
4573
|
-
},
|
|
4574
|
-
|
|
4575
|
-
r(12, Z[
|
|
5146
|
+
return JSON.parse(p);
|
|
5147
|
+
}, Pr = () => {
|
|
5148
|
+
j.forEach((h) => {
|
|
5149
|
+
r(12, Z[h.tagCode] = h.status === R.accepted.value, Z);
|
|
4576
5150
|
}), r(13, U = { ...Z });
|
|
4577
|
-
},
|
|
4578
|
-
r(13, U = { ...Z }), r(11,
|
|
4579
|
-
},
|
|
4580
|
-
if (!
|
|
5151
|
+
}, Br = () => {
|
|
5152
|
+
r(13, U = { ...Z }), r(11, $ = { ...Te });
|
|
5153
|
+
}, Or = async () => {
|
|
5154
|
+
if (!we)
|
|
4581
5155
|
return;
|
|
4582
|
-
|
|
4583
|
-
const
|
|
4584
|
-
if (Object.keys(U).forEach((
|
|
4585
|
-
const T =
|
|
4586
|
-
U[
|
|
4587
|
-
tagCode:
|
|
4588
|
-
status: U[
|
|
4589
|
-
}) :
|
|
4590
|
-
tagCode:
|
|
4591
|
-
status: U[
|
|
5156
|
+
we = !1;
|
|
5157
|
+
const h = [], p = [];
|
|
5158
|
+
if (Object.keys(U).forEach((b) => {
|
|
5159
|
+
const T = j.find((I) => I.tagCode === b);
|
|
5160
|
+
U[b] !== Z[b] && (T ? h.push({
|
|
5161
|
+
tagCode: b,
|
|
5162
|
+
status: U[b] ? R.accepted.value : R.denied.value
|
|
5163
|
+
}) : p.push({
|
|
5164
|
+
tagCode: b,
|
|
5165
|
+
status: U[b] ? R.accepted.value : R.denied.value
|
|
4592
5166
|
}));
|
|
4593
|
-
}), !
|
|
4594
|
-
localStorage.setItem("categoryToggle" +
|
|
5167
|
+
}), !_) {
|
|
5168
|
+
localStorage.setItem("categoryToggle" + C, JSON.stringify($)), Te = { ...$ }, window.postMessage(
|
|
4595
5169
|
{
|
|
4596
5170
|
type: "NewPlayerConsentData",
|
|
4597
|
-
data: JSON.stringify(
|
|
5171
|
+
data: JSON.stringify(p)
|
|
4598
5172
|
},
|
|
4599
5173
|
window.location.href
|
|
4600
|
-
),
|
|
5174
|
+
), we = !0;
|
|
4601
5175
|
return;
|
|
4602
5176
|
}
|
|
4603
|
-
const M = new URL(`${a}/api/v1/gm/user-consents/${
|
|
5177
|
+
const M = new URL(`${a}/api/v1/gm/user-consents/${C}`);
|
|
4604
5178
|
try {
|
|
4605
|
-
const
|
|
4606
|
-
|
|
5179
|
+
const b = await Promise.allSettled([
|
|
5180
|
+
p.length > 0 && ge(M.href, "updateConsentsError", {
|
|
4607
5181
|
method: "POST",
|
|
4608
5182
|
headers: {
|
|
4609
|
-
"X-SessionId":
|
|
5183
|
+
"X-SessionId": v,
|
|
4610
5184
|
"Content-Type": "application/json"
|
|
4611
5185
|
},
|
|
4612
|
-
body: JSON.stringify({ userConsents:
|
|
5186
|
+
body: JSON.stringify({ userConsents: p })
|
|
4613
5187
|
}),
|
|
4614
|
-
|
|
5188
|
+
h.length > 0 && ge(M.href, "updateConsentsError", {
|
|
4615
5189
|
method: "PATCH",
|
|
4616
5190
|
headers: {
|
|
4617
|
-
"X-SessionId":
|
|
5191
|
+
"X-SessionId": v,
|
|
4618
5192
|
"Content-Type": "application/json"
|
|
4619
5193
|
},
|
|
4620
|
-
body: JSON.stringify({ userConsents:
|
|
5194
|
+
body: JSON.stringify({ userConsents: h })
|
|
4621
5195
|
})
|
|
4622
5196
|
]);
|
|
4623
|
-
|
|
5197
|
+
b.forEach((T, I) => {
|
|
4624
5198
|
if (T.status === "rejected" || T.value.ok === !1) {
|
|
4625
|
-
const
|
|
4626
|
-
r(13, U[
|
|
5199
|
+
const X = I < p.length ? p[I] : h[I - p.length];
|
|
5200
|
+
r(13, U[X.tagCode] = Z[X.tagCode], U);
|
|
4627
5201
|
}
|
|
4628
|
-
}),
|
|
5202
|
+
}), b.every((T) => T.status === "fulfilled") && (localStorage.setItem("categoryToggle" + C, JSON.stringify($)), Te = { ...$ }, window.postMessage(
|
|
4629
5203
|
{
|
|
4630
5204
|
type: "PlayerConsentUpdated",
|
|
4631
5205
|
success: !0
|
|
4632
5206
|
},
|
|
4633
5207
|
window.location.href
|
|
4634
5208
|
), r(12, Z = { ...U }));
|
|
4635
|
-
} catch (
|
|
4636
|
-
|
|
5209
|
+
} catch (b) {
|
|
5210
|
+
Ae(b instanceof TypeError ? n("saveChangesError") : b.message), window.postMessage(
|
|
4637
5211
|
{
|
|
4638
5212
|
type: "PlayerConsentUpdated",
|
|
4639
5213
|
success: !1
|
|
@@ -4641,149 +5215,149 @@ function Li(e, t, r) {
|
|
|
4641
5215
|
window.location.href
|
|
4642
5216
|
);
|
|
4643
5217
|
} finally {
|
|
4644
|
-
|
|
5218
|
+
we = !0, r(14, pe = !1);
|
|
4645
5219
|
}
|
|
4646
|
-
},
|
|
4647
|
-
const
|
|
5220
|
+
}, zr = (h) => {
|
|
5221
|
+
const p = new URL(`${a}/api/v2/gm/legislation/consents`), M = {
|
|
4648
5222
|
"Content-Type": "application/json",
|
|
4649
5223
|
Accept: "application/json"
|
|
4650
|
-
},
|
|
4651
|
-
playerConsents:
|
|
4652
|
-
registrationId:
|
|
5224
|
+
}, b = {
|
|
5225
|
+
playerConsents: j,
|
|
5226
|
+
registrationId: h
|
|
4653
5227
|
}, T = {
|
|
4654
5228
|
method: "POST",
|
|
4655
|
-
body: JSON.stringify(
|
|
5229
|
+
body: JSON.stringify(b),
|
|
4656
5230
|
headers: M
|
|
4657
5231
|
};
|
|
4658
|
-
fetch(
|
|
4659
|
-
I.ok || (
|
|
4660
|
-
}).catch((I) => (console.error(I),
|
|
4661
|
-
r(10,
|
|
5232
|
+
fetch(p.href, T).then((I) => {
|
|
5233
|
+
I.ok || (Ne = !0);
|
|
5234
|
+
}).catch((I) => (console.error(I), He(I))).finally(() => {
|
|
5235
|
+
r(10, fe = !1);
|
|
4662
5236
|
});
|
|
4663
|
-
},
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
}), r(14,
|
|
4667
|
-
},
|
|
4668
|
-
const
|
|
5237
|
+
}, _t = (h) => {
|
|
5238
|
+
j.filter((p) => p.category.categoryTagCode === h).forEach((p) => {
|
|
5239
|
+
p.status = p.status === R.denied.value ? R.accepted.value : R.denied.value, r(13, U[p.tagCode] = $[h] || !1, U);
|
|
5240
|
+
}), r(14, pe = yt());
|
|
5241
|
+
}, Ve = (h, p, M) => {
|
|
5242
|
+
const b = j.find((X) => X.id === M), T = p ? "value" : "key";
|
|
4669
5243
|
let I;
|
|
4670
|
-
if (!
|
|
4671
|
-
const
|
|
4672
|
-
for (const
|
|
4673
|
-
if (I = Array.from(
|
|
5244
|
+
if (!p && b.mustAccept) {
|
|
5245
|
+
const X = Array.from(Me.children);
|
|
5246
|
+
for (const _e of X)
|
|
5247
|
+
if (I = Array.from(_e.children).find((Xr) => Xr.getAttribute("id") === `checkBoxError__${b.tagCode}`), I)
|
|
4674
5248
|
break;
|
|
4675
5249
|
}
|
|
4676
|
-
if (
|
|
4677
|
-
r(13, U[
|
|
4678
|
-
const
|
|
4679
|
-
r(11,
|
|
5250
|
+
if (b.status === R.accepted[T] ? (b.status = R.denied[T], I && (I.innerHTML = n("requiredError"))) : (b.status = R.accepted[T], I && (I.innerHTML = "")), p) {
|
|
5251
|
+
r(13, U[b.tagCode] = !U[b.tagCode], U);
|
|
5252
|
+
const X = j.filter((_e) => _e.category.categoryTagCode === p.categoryTagCode).every((_e) => _e.status !== R.denied.value);
|
|
5253
|
+
r(11, $[p.categoryTagCode] = X, $);
|
|
4680
5254
|
}
|
|
4681
|
-
|
|
4682
|
-
},
|
|
5255
|
+
Lr();
|
|
5256
|
+
}, Lr = ((h, p) => {
|
|
4683
5257
|
let M;
|
|
4684
|
-
return function(...
|
|
5258
|
+
return function(...b) {
|
|
4685
5259
|
const T = this;
|
|
4686
5260
|
clearTimeout(M), M = setTimeout(
|
|
4687
5261
|
() => {
|
|
4688
|
-
|
|
5262
|
+
h.apply(T, b);
|
|
4689
5263
|
},
|
|
4690
|
-
|
|
5264
|
+
p
|
|
4691
5265
|
);
|
|
4692
5266
|
};
|
|
4693
|
-
})(() =>
|
|
4694
|
-
r(14,
|
|
4695
|
-
},
|
|
5267
|
+
})(() => jr(), 500), jr = () => {
|
|
5268
|
+
r(14, pe = yt()), i || (window.postMessage({ type: "isConsentsValid", isValid: pe }), localStorage.setItem("playerConsents", JSON.stringify(j)));
|
|
5269
|
+
}, yt = () => j.filter((p) => j.some((M) => p.tagCode === M.tagCode && M.mustAccept && (p.status === R.denied.key || p.status === R.denied.value))).length === 0, He = (h) => {
|
|
4696
5270
|
window.postMessage(
|
|
4697
5271
|
{
|
|
4698
5272
|
type: "WidgetNotification",
|
|
4699
|
-
data: { type: "error", message:
|
|
5273
|
+
data: { type: "error", message: h }
|
|
4700
5274
|
},
|
|
4701
5275
|
window.location.href
|
|
4702
5276
|
);
|
|
4703
|
-
},
|
|
4704
|
-
|
|
5277
|
+
}, Ir = (h) => {
|
|
5278
|
+
h.data && h.data.type !== "setUpPlayerConsents" || zr(h.data.registerid);
|
|
4705
5279
|
};
|
|
4706
|
-
|
|
5280
|
+
rn(() => {
|
|
4707
5281
|
setTimeout(
|
|
4708
5282
|
() => {
|
|
4709
|
-
r(25,
|
|
5283
|
+
r(25, S = !0);
|
|
4710
5284
|
},
|
|
4711
5285
|
50
|
|
4712
5286
|
);
|
|
4713
|
-
const
|
|
4714
|
-
return window.addEventListener("message",
|
|
4715
|
-
window.removeEventListener("message",
|
|
5287
|
+
const h = (p) => Ir(p);
|
|
5288
|
+
return window.addEventListener("message", h), () => {
|
|
5289
|
+
window.removeEventListener("message", h);
|
|
4716
5290
|
};
|
|
4717
5291
|
});
|
|
4718
|
-
function
|
|
4719
|
-
|
|
5292
|
+
function Rr(h) {
|
|
5293
|
+
$[h.categoryTagCode] = this.checked, r(11, $);
|
|
4720
5294
|
}
|
|
4721
|
-
const
|
|
4722
|
-
function
|
|
4723
|
-
|
|
4724
|
-
|
|
5295
|
+
const Ur = (h) => _t(h.categoryTagCode), Dr = (h, p) => p.category.categoryTagCode === h.categoryTagCode, Gr = (h, p) => Ve(p, h.category, h.id), Fr = (h, p) => Ve(p, null, h.id);
|
|
5296
|
+
function $r(h) {
|
|
5297
|
+
Le[h ? "unshift" : "push"](() => {
|
|
5298
|
+
Me = h, r(15, Me);
|
|
4725
5299
|
});
|
|
4726
5300
|
}
|
|
4727
|
-
function
|
|
4728
|
-
|
|
4729
|
-
|
|
5301
|
+
function Vr(h) {
|
|
5302
|
+
Le[h ? "unshift" : "push"](() => {
|
|
5303
|
+
g = h, r(5, g);
|
|
4730
5304
|
});
|
|
4731
5305
|
}
|
|
4732
|
-
return e.$$set = (
|
|
4733
|
-
"session" in
|
|
5306
|
+
return e.$$set = (h) => {
|
|
5307
|
+
"session" in h && r(0, i = h.session), "userid" in h && r(20, o = h.userid), "endpoint" in h && r(21, a = h.endpoint), "clientstyling" in h && r(1, s = h.clientstyling), "clientstylingurl" in h && r(2, u = h.clientstylingurl), "mbsource" in h && r(3, l = h.mbsource), "lang" in h && r(22, c = h.lang), "displayconsentdescription" in h && r(4, d = h.displayconsentdescription), "translationurl" in h && r(23, m = h.translationurl), "modalconsents" in h && r(24, y = h.modalconsents);
|
|
4734
5308
|
}, e.$$.update = () => {
|
|
4735
5309
|
e.$$.dirty[0] & /*isMounted, session*/
|
|
4736
|
-
33554433 &&
|
|
4737
|
-
1 && (i ||
|
|
4738
|
-
34 && s &&
|
|
4739
|
-
36 &&
|
|
4740
|
-
40 &&
|
|
4741
|
-
4194304 &&
|
|
4742
|
-
8388608 && m &&
|
|
5310
|
+
33554433 && S && i && (Tr(), Mr()), e.$$.dirty[0] & /*session*/
|
|
5311
|
+
1 && (i || Nr()), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5312
|
+
34 && s && g && fn(g, s), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5313
|
+
36 && u && g && pn(g, u), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
5314
|
+
40 && g && gn(g, `${l}.Style`, f), e.$$.dirty[0] & /*lang*/
|
|
5315
|
+
4194304 && c && xr(), e.$$.dirty[0] & /*translationurl*/
|
|
5316
|
+
8388608 && m && wr();
|
|
4743
5317
|
}, [
|
|
4744
5318
|
i,
|
|
4745
5319
|
s,
|
|
4746
|
-
h,
|
|
4747
5320
|
u,
|
|
5321
|
+
l,
|
|
4748
5322
|
d,
|
|
4749
|
-
|
|
4750
|
-
x,
|
|
5323
|
+
g,
|
|
4751
5324
|
H,
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
5325
|
+
E,
|
|
5326
|
+
z,
|
|
5327
|
+
j,
|
|
5328
|
+
fe,
|
|
5329
|
+
$,
|
|
4756
5330
|
Z,
|
|
4757
5331
|
U,
|
|
4758
|
-
|
|
4759
|
-
|
|
5332
|
+
pe,
|
|
5333
|
+
Me,
|
|
4760
5334
|
n,
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
5335
|
+
Or,
|
|
5336
|
+
_t,
|
|
5337
|
+
Ve,
|
|
4764
5338
|
o,
|
|
4765
5339
|
a,
|
|
4766
|
-
|
|
5340
|
+
c,
|
|
4767
5341
|
m,
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
5342
|
+
y,
|
|
5343
|
+
S,
|
|
5344
|
+
Rr,
|
|
5345
|
+
Ur,
|
|
5346
|
+
Dr,
|
|
5347
|
+
Gr,
|
|
5348
|
+
Fr,
|
|
5349
|
+
$r,
|
|
5350
|
+
Vr
|
|
4777
5351
|
];
|
|
4778
5352
|
}
|
|
4779
|
-
class
|
|
5353
|
+
class yo extends er {
|
|
4780
5354
|
constructor(t) {
|
|
4781
|
-
super(),
|
|
5355
|
+
super(), Qt(
|
|
4782
5356
|
this,
|
|
4783
5357
|
t,
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
5358
|
+
_o,
|
|
5359
|
+
go,
|
|
5360
|
+
dt,
|
|
4787
5361
|
{
|
|
4788
5362
|
session: 0,
|
|
4789
5363
|
userid: 20,
|
|
@@ -4796,7 +5370,7 @@ class Ri extends zt {
|
|
|
4796
5370
|
translationurl: 23,
|
|
4797
5371
|
modalconsents: 24
|
|
4798
5372
|
},
|
|
4799
|
-
|
|
5373
|
+
uo,
|
|
4800
5374
|
[-1, -1, -1]
|
|
4801
5375
|
);
|
|
4802
5376
|
}
|
|
@@ -4804,64 +5378,79 @@ class Ri extends zt {
|
|
|
4804
5378
|
return this.$$.ctx[0];
|
|
4805
5379
|
}
|
|
4806
5380
|
set session(t) {
|
|
4807
|
-
this.$$set({ session: t }),
|
|
5381
|
+
this.$$set({ session: t }), V();
|
|
4808
5382
|
}
|
|
4809
5383
|
get userid() {
|
|
4810
5384
|
return this.$$.ctx[20];
|
|
4811
5385
|
}
|
|
4812
5386
|
set userid(t) {
|
|
4813
|
-
this.$$set({ userid: t }),
|
|
5387
|
+
this.$$set({ userid: t }), V();
|
|
4814
5388
|
}
|
|
4815
5389
|
get endpoint() {
|
|
4816
5390
|
return this.$$.ctx[21];
|
|
4817
5391
|
}
|
|
4818
5392
|
set endpoint(t) {
|
|
4819
|
-
this.$$set({ endpoint: t }),
|
|
5393
|
+
this.$$set({ endpoint: t }), V();
|
|
4820
5394
|
}
|
|
4821
5395
|
get clientstyling() {
|
|
4822
5396
|
return this.$$.ctx[1];
|
|
4823
5397
|
}
|
|
4824
5398
|
set clientstyling(t) {
|
|
4825
|
-
this.$$set({ clientstyling: t }),
|
|
5399
|
+
this.$$set({ clientstyling: t }), V();
|
|
4826
5400
|
}
|
|
4827
5401
|
get clientstylingurl() {
|
|
4828
5402
|
return this.$$.ctx[2];
|
|
4829
5403
|
}
|
|
4830
5404
|
set clientstylingurl(t) {
|
|
4831
|
-
this.$$set({ clientstylingurl: t }),
|
|
5405
|
+
this.$$set({ clientstylingurl: t }), V();
|
|
4832
5406
|
}
|
|
4833
5407
|
get mbsource() {
|
|
4834
5408
|
return this.$$.ctx[3];
|
|
4835
5409
|
}
|
|
4836
5410
|
set mbsource(t) {
|
|
4837
|
-
this.$$set({ mbsource: t }),
|
|
5411
|
+
this.$$set({ mbsource: t }), V();
|
|
4838
5412
|
}
|
|
4839
5413
|
get lang() {
|
|
4840
5414
|
return this.$$.ctx[22];
|
|
4841
5415
|
}
|
|
4842
5416
|
set lang(t) {
|
|
4843
|
-
this.$$set({ lang: t }),
|
|
5417
|
+
this.$$set({ lang: t }), V();
|
|
4844
5418
|
}
|
|
4845
5419
|
get displayconsentdescription() {
|
|
4846
5420
|
return this.$$.ctx[4];
|
|
4847
5421
|
}
|
|
4848
5422
|
set displayconsentdescription(t) {
|
|
4849
|
-
this.$$set({ displayconsentdescription: t }),
|
|
5423
|
+
this.$$set({ displayconsentdescription: t }), V();
|
|
4850
5424
|
}
|
|
4851
5425
|
get translationurl() {
|
|
4852
5426
|
return this.$$.ctx[23];
|
|
4853
5427
|
}
|
|
4854
5428
|
set translationurl(t) {
|
|
4855
|
-
this.$$set({ translationurl: t }),
|
|
5429
|
+
this.$$set({ translationurl: t }), V();
|
|
4856
5430
|
}
|
|
4857
5431
|
get modalconsents() {
|
|
4858
5432
|
return this.$$.ctx[24];
|
|
4859
5433
|
}
|
|
4860
5434
|
set modalconsents(t) {
|
|
4861
|
-
this.$$set({ modalconsents: t }),
|
|
5435
|
+
this.$$set({ modalconsents: t }), V();
|
|
4862
5436
|
}
|
|
4863
5437
|
}
|
|
4864
|
-
|
|
5438
|
+
Kt(yo, { session: {}, userid: {}, endpoint: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, displayconsentdescription: {}, translationurl: {}, modalconsents: {} }, [], [], !0);
|
|
4865
5439
|
export {
|
|
4866
|
-
|
|
5440
|
+
yo as P,
|
|
5441
|
+
er as S,
|
|
5442
|
+
Zr as a,
|
|
5443
|
+
L as b,
|
|
5444
|
+
Kt as c,
|
|
5445
|
+
O as d,
|
|
5446
|
+
w as e,
|
|
5447
|
+
V as f,
|
|
5448
|
+
Le as g,
|
|
5449
|
+
fn as h,
|
|
5450
|
+
Qt as i,
|
|
5451
|
+
pn as j,
|
|
5452
|
+
gn as k,
|
|
5453
|
+
F as n,
|
|
5454
|
+
rn as o,
|
|
5455
|
+
dt as s
|
|
4867
5456
|
};
|