@everymatrix/general-logout 1.87.26 → 1.87.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralLogout-DsmMdpPL.cjs → GeneralLogout-BGfQX8_n.cjs} +4 -4
- package/components/{GeneralLogout-IXsvPAN0.js → GeneralLogout-ChDkT5bC.js} +724 -697
- package/components/{GeneralLogout-CQef-Jah.js → GeneralLogout-DP8a_axV.js} +739 -711
- package/es2015/general-logout.cjs +1 -1
- package/es2015/general-logout.js +1 -1
- package/esnext/general-logout.js +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Be = (e, t, r) => t in e ?
|
|
1
|
+
var br = Object.defineProperty, yr = Object.defineProperties;
|
|
2
|
+
var gr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var nt = Object.getOwnPropertySymbols;
|
|
4
|
+
var vr = Object.prototype.hasOwnProperty, _r = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Be = (e, t, r) => t in e ? br(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, it = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
vr.call(t, r) && Be(e, r, t[r]);
|
|
8
|
+
if (nt)
|
|
9
|
+
for (var r of nt(t))
|
|
10
|
+
_r.call(t, r) && Be(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, ot = (e, t) => yr(e, gr(t));
|
|
13
13
|
var T = (e, t, r) => (Be(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
-
var
|
|
14
|
+
var st = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (h) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(h));
|
|
@@ -27,49 +27,49 @@ var ot = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function B() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Lt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function at() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function oe(e) {
|
|
39
|
+
e.forEach(Lt);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function et(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Nt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Er(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Ct(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
54
|
-
return
|
|
54
|
+
return B;
|
|
55
55
|
}
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function xr(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(Ct(t, r));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function x(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function Sr(e, t, r) {
|
|
66
|
+
const n = Tr(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
|
-
const i =
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
68
|
+
const i = L("style");
|
|
69
|
+
i.id = t, i.textContent = r, wr(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Tr(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,48 +79,48 @@ function xr(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
82
|
+
function wr(e, t) {
|
|
83
|
+
return x(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function se(e, t, r) {
|
|
90
90
|
e.insertBefore(t, r || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Q(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function L(e) {
|
|
96
96
|
return document.createElement(e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function K(e) {
|
|
99
99
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function ve(e) {
|
|
102
102
|
return document.createTextNode(e);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
return
|
|
104
|
+
function Hr() {
|
|
105
|
+
return ve(" ");
|
|
106
106
|
}
|
|
107
107
|
function Mt(e, t, r, n) {
|
|
108
108
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function w(e, t, r) {
|
|
111
111
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Br(e) {
|
|
114
114
|
return Array.from(e.childNodes);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function $t(e, t) {
|
|
117
117
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
118
118
|
t);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Ar(e, t, r, n) {
|
|
121
121
|
r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Pr(e) {
|
|
124
124
|
const t = {};
|
|
125
125
|
return e.childNodes.forEach(
|
|
126
126
|
/** @param {Element} node */
|
|
@@ -129,95 +129,95 @@ function wr(e) {
|
|
|
129
129
|
}
|
|
130
130
|
), t;
|
|
131
131
|
}
|
|
132
|
-
let
|
|
133
|
-
function
|
|
134
|
-
|
|
132
|
+
let re;
|
|
133
|
+
function te(e) {
|
|
134
|
+
re = e;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
if (!
|
|
136
|
+
function Or() {
|
|
137
|
+
if (!re)
|
|
138
138
|
throw new Error("Function called outside component initialization");
|
|
139
|
-
return
|
|
139
|
+
return re;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
|
|
141
|
+
function Ir(e) {
|
|
142
|
+
Or().$$.on_mount.push(e);
|
|
143
143
|
}
|
|
144
|
-
const j = [],
|
|
145
|
-
let
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
144
|
+
const j = [], $e = [];
|
|
145
|
+
let V = [];
|
|
146
|
+
const ut = [], Lr = /* @__PURE__ */ Promise.resolve();
|
|
147
|
+
let Re = !1;
|
|
148
|
+
function Nr() {
|
|
149
|
+
Re || (Re = !0, Lr.then(A));
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
|
|
151
|
+
function Ue(e) {
|
|
152
|
+
V.push(e);
|
|
153
153
|
}
|
|
154
|
-
const
|
|
154
|
+
const Ae = /* @__PURE__ */ new Set();
|
|
155
155
|
let D = 0;
|
|
156
156
|
function A() {
|
|
157
157
|
if (D !== 0)
|
|
158
158
|
return;
|
|
159
|
-
const e =
|
|
159
|
+
const e = re;
|
|
160
160
|
do {
|
|
161
161
|
try {
|
|
162
162
|
for (; D < j.length; ) {
|
|
163
163
|
const t = j[D];
|
|
164
|
-
D++,
|
|
164
|
+
D++, te(t), Cr(t.$$);
|
|
165
165
|
}
|
|
166
166
|
} catch (t) {
|
|
167
167
|
throw j.length = 0, D = 0, t;
|
|
168
168
|
}
|
|
169
|
-
for (
|
|
170
|
-
|
|
171
|
-
for (let t = 0; t <
|
|
172
|
-
const r =
|
|
173
|
-
|
|
169
|
+
for (te(null), j.length = 0, D = 0; $e.length; )
|
|
170
|
+
$e.pop()();
|
|
171
|
+
for (let t = 0; t < V.length; t += 1) {
|
|
172
|
+
const r = V[t];
|
|
173
|
+
Ae.has(r) || (Ae.add(r), r());
|
|
174
174
|
}
|
|
175
|
-
|
|
175
|
+
V.length = 0;
|
|
176
176
|
} while (j.length);
|
|
177
|
-
for (;
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
for (; ut.length; )
|
|
178
|
+
ut.pop()();
|
|
179
|
+
Re = !1, Ae.clear(), te(e);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Cr(e) {
|
|
182
182
|
if (e.fragment !== null) {
|
|
183
|
-
e.update(),
|
|
183
|
+
e.update(), oe(e.before_update);
|
|
184
184
|
const t = e.dirty;
|
|
185
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
185
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ue);
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Mr(e) {
|
|
189
189
|
const t = [], r = [];
|
|
190
|
-
|
|
190
|
+
V.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), V = t;
|
|
191
191
|
}
|
|
192
|
-
const
|
|
193
|
-
function
|
|
194
|
-
e && e.i && (
|
|
192
|
+
const $r = /* @__PURE__ */ new Set();
|
|
193
|
+
function Rr(e, t) {
|
|
194
|
+
e && e.i && ($r.delete(e), e.i(t));
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Ur(e, t, r) {
|
|
197
197
|
const { fragment: n, after_update: i } = e.$$;
|
|
198
|
-
n && n.m(t, r),
|
|
199
|
-
const o = e.$$.on_mount.map(
|
|
200
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
201
|
-
}), i.forEach(
|
|
198
|
+
n && n.m(t, r), Ue(() => {
|
|
199
|
+
const o = e.$$.on_mount.map(Lt).filter(et);
|
|
200
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
|
|
201
|
+
}), i.forEach(Ue);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Gr(e, t) {
|
|
204
204
|
const r = e.$$;
|
|
205
|
-
r.fragment !== null && (
|
|
205
|
+
r.fragment !== null && (Mr(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
e.$$.dirty[0] === -1 && (j.push(e),
|
|
207
|
+
function Dr(e, t) {
|
|
208
|
+
e.$$.dirty[0] === -1 && (j.push(e), Nr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
const h =
|
|
212
|
-
|
|
210
|
+
function Fr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
211
|
+
const h = re;
|
|
212
|
+
te(e);
|
|
213
213
|
const u = e.$$ = {
|
|
214
214
|
fragment: null,
|
|
215
215
|
ctx: [],
|
|
216
216
|
// state
|
|
217
217
|
props: o,
|
|
218
|
-
update:
|
|
218
|
+
update: B,
|
|
219
219
|
not_equal: i,
|
|
220
|
-
bound:
|
|
220
|
+
bound: at(),
|
|
221
221
|
// lifecycle
|
|
222
222
|
on_mount: [],
|
|
223
223
|
on_destroy: [],
|
|
@@ -226,7 +226,7 @@ function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
226
226
|
after_update: [],
|
|
227
227
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
228
228
|
// everything else
|
|
229
|
-
callbacks:
|
|
229
|
+
callbacks: at(),
|
|
230
230
|
dirty: a,
|
|
231
231
|
skip_bound: !1,
|
|
232
232
|
root: t.target || h.$$.root
|
|
@@ -235,19 +235,19 @@ function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
235
235
|
let l = !1;
|
|
236
236
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
|
|
237
237
|
const d = p.length ? p[0] : c;
|
|
238
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l &&
|
|
239
|
-
}) : [], u.update(), l = !0,
|
|
238
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), l && Dr(e, f)), c;
|
|
239
|
+
}) : [], u.update(), l = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
240
240
|
if (t.hydrate) {
|
|
241
|
-
const f =
|
|
242
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
241
|
+
const f = Br(t.target);
|
|
242
|
+
u.fragment && u.fragment.l(f), f.forEach(Q);
|
|
243
243
|
} else
|
|
244
244
|
u.fragment && u.fragment.c();
|
|
245
|
-
t.intro &&
|
|
245
|
+
t.intro && Rr(e.$$.fragment), Ur(e, t.target, t.anchor), A();
|
|
246
246
|
}
|
|
247
|
-
|
|
247
|
+
te(h);
|
|
248
248
|
}
|
|
249
|
-
let
|
|
250
|
-
typeof HTMLElement == "function" && (
|
|
249
|
+
let Rt;
|
|
250
|
+
typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
251
251
|
constructor(t, r, n) {
|
|
252
252
|
super();
|
|
253
253
|
/** The Svelte component constructor */
|
|
@@ -284,42 +284,42 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
connectedCallback() {
|
|
287
|
-
return
|
|
287
|
+
return st(this, null, function* () {
|
|
288
288
|
if (this.$$cn = !0, !this.$$c) {
|
|
289
289
|
let t = function(o) {
|
|
290
290
|
return () => {
|
|
291
291
|
let s;
|
|
292
292
|
return {
|
|
293
293
|
c: function() {
|
|
294
|
-
s =
|
|
294
|
+
s = L("slot"), o !== "default" && w(s, "name", o);
|
|
295
295
|
},
|
|
296
296
|
/**
|
|
297
297
|
* @param {HTMLElement} target
|
|
298
298
|
* @param {HTMLElement} [anchor]
|
|
299
299
|
*/
|
|
300
300
|
m: function(u, l) {
|
|
301
|
-
|
|
301
|
+
se(u, s, l);
|
|
302
302
|
},
|
|
303
303
|
d: function(u) {
|
|
304
|
-
u &&
|
|
304
|
+
u && Q(s);
|
|
305
305
|
}
|
|
306
306
|
};
|
|
307
307
|
};
|
|
308
308
|
};
|
|
309
309
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
310
310
|
return;
|
|
311
|
-
const r = {}, n =
|
|
311
|
+
const r = {}, n = Pr(this);
|
|
312
312
|
for (const o of this.$$s)
|
|
313
313
|
o in n && (r[o] = [t(o)]);
|
|
314
314
|
for (const o of this.attributes) {
|
|
315
315
|
const s = this.$$g_p(o.name);
|
|
316
|
-
s in this.$$d || (this.$$d[s] =
|
|
316
|
+
s in this.$$d || (this.$$d[s] = fe(s, o.value, this.$$p_d, "toProp"));
|
|
317
317
|
}
|
|
318
318
|
for (const o in this.$$p_d)
|
|
319
319
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
320
320
|
this.$$c = new this.$$ctor({
|
|
321
321
|
target: this.shadowRoot || this,
|
|
322
|
-
props: it(
|
|
322
|
+
props: ot(it({}, this.$$d), {
|
|
323
323
|
$$slots: r,
|
|
324
324
|
$$scope: {
|
|
325
325
|
ctx: []
|
|
@@ -330,7 +330,7 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
|
330
330
|
this.$$r = !0;
|
|
331
331
|
for (const o in this.$$p_d)
|
|
332
332
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
333
|
-
const s =
|
|
333
|
+
const s = fe(
|
|
334
334
|
o,
|
|
335
335
|
this.$$d[o],
|
|
336
336
|
this.$$p_d,
|
|
@@ -354,7 +354,7 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
|
354
354
|
// and setting attributes through setAttribute etc, this is helpful
|
|
355
355
|
attributeChangedCallback(t, r, n) {
|
|
356
356
|
var i;
|
|
357
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
357
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = fe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
358
358
|
}
|
|
359
359
|
disconnectedCallback() {
|
|
360
360
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -367,7 +367,7 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
|
367
367
|
) || t;
|
|
368
368
|
}
|
|
369
369
|
});
|
|
370
|
-
function
|
|
370
|
+
function fe(e, t, r, n) {
|
|
371
371
|
var o;
|
|
372
372
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
373
373
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -397,8 +397,8 @@ function ce(e, t, r, n) {
|
|
|
397
397
|
return t;
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
let s = class extends
|
|
400
|
+
function jr(e, t, r, n, i, o) {
|
|
401
|
+
let s = class extends Rt {
|
|
402
402
|
constructor() {
|
|
403
403
|
super(e, r, i), this.$$p_d = t;
|
|
404
404
|
}
|
|
@@ -415,7 +415,7 @@ function Dr(e, t, r, n, i, o) {
|
|
|
415
415
|
},
|
|
416
416
|
set(h) {
|
|
417
417
|
var u;
|
|
418
|
-
h =
|
|
418
|
+
h = fe(a, h, t), this.$$d[a] = h, (u = this.$$c) == null || u.$set({ [a]: h });
|
|
419
419
|
}
|
|
420
420
|
});
|
|
421
421
|
}), n.forEach((a) => {
|
|
@@ -428,7 +428,7 @@ function Dr(e, t, r, n, i, o) {
|
|
|
428
428
|
}), e.element = /** @type {any} */
|
|
429
429
|
s, s;
|
|
430
430
|
}
|
|
431
|
-
class
|
|
431
|
+
class kr {
|
|
432
432
|
constructor() {
|
|
433
433
|
/**
|
|
434
434
|
* ### PRIVATE API
|
|
@@ -449,7 +449,7 @@ class Fr {
|
|
|
449
449
|
}
|
|
450
450
|
/** @returns {void} */
|
|
451
451
|
$destroy() {
|
|
452
|
-
|
|
452
|
+
Gr(this, 1), this.$destroy = B;
|
|
453
453
|
}
|
|
454
454
|
/**
|
|
455
455
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -458,8 +458,8 @@ class Fr {
|
|
|
458
458
|
* @returns {() => void}
|
|
459
459
|
*/
|
|
460
460
|
$on(t, r) {
|
|
461
|
-
if (!
|
|
462
|
-
return
|
|
461
|
+
if (!et(r))
|
|
462
|
+
return B;
|
|
463
463
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
464
464
|
return n.push(r), () => {
|
|
465
465
|
const i = n.indexOf(r);
|
|
@@ -471,11 +471,11 @@ class Fr {
|
|
|
471
471
|
* @returns {void}
|
|
472
472
|
*/
|
|
473
473
|
$set(t) {
|
|
474
|
-
this.$$set && !
|
|
474
|
+
this.$$set && !Er(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
const
|
|
478
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
477
|
+
const Vr = "4";
|
|
478
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Vr);
|
|
479
479
|
/*! *****************************************************************************
|
|
480
480
|
Copyright (c) Microsoft Corporation.
|
|
481
481
|
|
|
@@ -490,24 +490,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
490
490
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
491
491
|
PERFORMANCE OF THIS SOFTWARE.
|
|
492
492
|
***************************************************************************** */
|
|
493
|
-
var
|
|
494
|
-
return
|
|
493
|
+
var Ge = function(e, t) {
|
|
494
|
+
return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
495
495
|
r.__proto__ = n;
|
|
496
496
|
} || function(r, n) {
|
|
497
497
|
for (var i in n)
|
|
498
498
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
499
|
-
},
|
|
499
|
+
}, Ge(e, t);
|
|
500
500
|
};
|
|
501
|
-
function
|
|
501
|
+
function ae(e, t) {
|
|
502
502
|
if (typeof t != "function" && t !== null)
|
|
503
503
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
504
|
-
|
|
504
|
+
Ge(e, t);
|
|
505
505
|
function r() {
|
|
506
506
|
this.constructor = e;
|
|
507
507
|
}
|
|
508
508
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function De(e) {
|
|
511
511
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
512
512
|
if (r)
|
|
513
513
|
return r.call(e);
|
|
@@ -519,7 +519,7 @@ function Ge(e) {
|
|
|
519
519
|
};
|
|
520
520
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Fe(e, t) {
|
|
523
523
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
524
524
|
if (!r)
|
|
525
525
|
return e;
|
|
@@ -539,22 +539,22 @@ function De(e, t) {
|
|
|
539
539
|
}
|
|
540
540
|
return o;
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function je(e, t, r) {
|
|
543
543
|
if (arguments.length === 2)
|
|
544
544
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
545
545
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
546
546
|
return e.concat(o || t);
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function N(e) {
|
|
549
549
|
return typeof e == "function";
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function Ut(e) {
|
|
552
552
|
var t = function(n) {
|
|
553
553
|
Error.call(n), n.stack = new Error().stack;
|
|
554
554
|
}, r = e(t);
|
|
555
555
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
556
556
|
}
|
|
557
|
-
var
|
|
557
|
+
var Pe = Ut(function(e) {
|
|
558
558
|
return function(r) {
|
|
559
559
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
560
560
|
` + r.map(function(n, i) {
|
|
@@ -563,13 +563,13 @@ var Ae = Rt(function(e) {
|
|
|
563
563
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
564
564
|
};
|
|
565
565
|
});
|
|
566
|
-
function
|
|
566
|
+
function ke(e, t) {
|
|
567
567
|
if (e) {
|
|
568
568
|
var r = e.indexOf(t);
|
|
569
569
|
0 <= r && e.splice(r, 1);
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
-
var
|
|
572
|
+
var _e = function() {
|
|
573
573
|
function e(t) {
|
|
574
574
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
575
575
|
}
|
|
@@ -581,12 +581,12 @@ var ve = function() {
|
|
|
581
581
|
if (s)
|
|
582
582
|
if (this._parentage = null, Array.isArray(s))
|
|
583
583
|
try {
|
|
584
|
-
for (var a =
|
|
584
|
+
for (var a = De(s), h = a.next(); !h.done; h = a.next()) {
|
|
585
585
|
var u = h.value;
|
|
586
586
|
u.remove(this);
|
|
587
587
|
}
|
|
588
|
-
} catch (
|
|
589
|
-
t = { error:
|
|
588
|
+
} catch (g) {
|
|
589
|
+
t = { error: g };
|
|
590
590
|
} finally {
|
|
591
591
|
try {
|
|
592
592
|
h && !h.done && (r = a.return) && r.call(a);
|
|
@@ -598,26 +598,26 @@ var ve = function() {
|
|
|
598
598
|
else
|
|
599
599
|
s.remove(this);
|
|
600
600
|
var l = this.initialTeardown;
|
|
601
|
-
if (
|
|
601
|
+
if (N(l))
|
|
602
602
|
try {
|
|
603
603
|
l();
|
|
604
|
-
} catch (
|
|
605
|
-
o =
|
|
604
|
+
} catch (g) {
|
|
605
|
+
o = g instanceof Pe ? g.errors : [g];
|
|
606
606
|
}
|
|
607
607
|
var f = this._finalizers;
|
|
608
608
|
if (f) {
|
|
609
609
|
this._finalizers = null;
|
|
610
610
|
try {
|
|
611
|
-
for (var c =
|
|
611
|
+
for (var c = De(f), p = c.next(); !p.done; p = c.next()) {
|
|
612
612
|
var d = p.value;
|
|
613
613
|
try {
|
|
614
|
-
|
|
615
|
-
} catch (
|
|
616
|
-
o = o != null ? o : [],
|
|
614
|
+
ht(d);
|
|
615
|
+
} catch (g) {
|
|
616
|
+
o = o != null ? o : [], g instanceof Pe ? o = je(je([], Fe(o)), Fe(g.errors)) : o.push(g);
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
} catch (
|
|
620
|
-
n = { error:
|
|
619
|
+
} catch (g) {
|
|
620
|
+
n = { error: g };
|
|
621
621
|
} finally {
|
|
622
622
|
try {
|
|
623
623
|
p && !p.done && (i = c.return) && i.call(c);
|
|
@@ -628,13 +628,13 @@ var ve = function() {
|
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
630
|
if (o)
|
|
631
|
-
throw new
|
|
631
|
+
throw new Pe(o);
|
|
632
632
|
}
|
|
633
633
|
}, e.prototype.add = function(t) {
|
|
634
634
|
var r;
|
|
635
635
|
if (t && t !== this)
|
|
636
636
|
if (this.closed)
|
|
637
|
-
|
|
637
|
+
ht(t);
|
|
638
638
|
else {
|
|
639
639
|
if (t instanceof e) {
|
|
640
640
|
if (t.closed || t._hasParent(this))
|
|
@@ -651,52 +651,52 @@ var ve = function() {
|
|
|
651
651
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
652
652
|
}, e.prototype._removeParent = function(t) {
|
|
653
653
|
var r = this._parentage;
|
|
654
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
654
|
+
r === t ? this._parentage = null : Array.isArray(r) && ke(r, t);
|
|
655
655
|
}, e.prototype.remove = function(t) {
|
|
656
656
|
var r = this._finalizers;
|
|
657
|
-
r &&
|
|
657
|
+
r && ke(r, t), t instanceof e && t._removeParent(this);
|
|
658
658
|
}, e.EMPTY = function() {
|
|
659
659
|
var t = new e();
|
|
660
660
|
return t.closed = !0, t;
|
|
661
661
|
}(), e;
|
|
662
|
-
}(),
|
|
663
|
-
function
|
|
664
|
-
return e instanceof
|
|
662
|
+
}(), Gt = _e.EMPTY;
|
|
663
|
+
function Dt(e) {
|
|
664
|
+
return e instanceof _e || e && "closed" in e && N(e.remove) && N(e.add) && N(e.unsubscribe);
|
|
665
665
|
}
|
|
666
|
-
function
|
|
667
|
-
|
|
666
|
+
function ht(e) {
|
|
667
|
+
N(e) ? e() : e.unsubscribe();
|
|
668
668
|
}
|
|
669
|
-
var
|
|
669
|
+
var Xr = {
|
|
670
670
|
Promise: void 0
|
|
671
|
-
},
|
|
671
|
+
}, Wr = {
|
|
672
672
|
setTimeout: function(e, t) {
|
|
673
673
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
674
674
|
r[n - 2] = arguments[n];
|
|
675
|
-
return setTimeout.apply(void 0,
|
|
675
|
+
return setTimeout.apply(void 0, je([e, t], Fe(r)));
|
|
676
676
|
},
|
|
677
677
|
clearTimeout: function(e) {
|
|
678
678
|
return clearTimeout(e);
|
|
679
679
|
},
|
|
680
680
|
delegate: void 0
|
|
681
681
|
};
|
|
682
|
-
function
|
|
683
|
-
|
|
682
|
+
function zr(e) {
|
|
683
|
+
Wr.setTimeout(function() {
|
|
684
684
|
throw e;
|
|
685
685
|
});
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function lt() {
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function pe(e) {
|
|
690
690
|
e();
|
|
691
691
|
}
|
|
692
|
-
var
|
|
693
|
-
|
|
692
|
+
var Ft = function(e) {
|
|
693
|
+
ae(t, e);
|
|
694
694
|
function t(r) {
|
|
695
695
|
var n = e.call(this) || this;
|
|
696
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
696
|
+
return n.isStopped = !1, r ? (n.destination = r, Dt(r) && r.add(n)) : n.destination = Yr, n;
|
|
697
697
|
}
|
|
698
698
|
return t.create = function(r, n, i) {
|
|
699
|
-
return new
|
|
699
|
+
return new Ve(r, n, i);
|
|
700
700
|
}, t.prototype.next = function(r) {
|
|
701
701
|
this.isStopped || this._next(r);
|
|
702
702
|
}, t.prototype.error = function(r) {
|
|
@@ -720,7 +720,7 @@ var Dt = function(e) {
|
|
|
720
720
|
this.unsubscribe();
|
|
721
721
|
}
|
|
722
722
|
}, t;
|
|
723
|
-
}(
|
|
723
|
+
}(_e), Zr = function() {
|
|
724
724
|
function e(t) {
|
|
725
725
|
this.partialObserver = t;
|
|
726
726
|
}
|
|
@@ -730,7 +730,7 @@ var Dt = function(e) {
|
|
|
730
730
|
try {
|
|
731
731
|
r.next(t);
|
|
732
732
|
} catch (n) {
|
|
733
|
-
|
|
733
|
+
le(n);
|
|
734
734
|
}
|
|
735
735
|
}, e.prototype.error = function(t) {
|
|
736
736
|
var r = this.partialObserver;
|
|
@@ -738,56 +738,56 @@ var Dt = function(e) {
|
|
|
738
738
|
try {
|
|
739
739
|
r.error(t);
|
|
740
740
|
} catch (n) {
|
|
741
|
-
|
|
741
|
+
le(n);
|
|
742
742
|
}
|
|
743
743
|
else
|
|
744
|
-
|
|
744
|
+
le(t);
|
|
745
745
|
}, e.prototype.complete = function() {
|
|
746
746
|
var t = this.partialObserver;
|
|
747
747
|
if (t.complete)
|
|
748
748
|
try {
|
|
749
749
|
t.complete();
|
|
750
750
|
} catch (r) {
|
|
751
|
-
|
|
751
|
+
le(r);
|
|
752
752
|
}
|
|
753
753
|
}, e;
|
|
754
|
-
}(),
|
|
755
|
-
|
|
754
|
+
}(), Ve = function(e) {
|
|
755
|
+
ae(t, e);
|
|
756
756
|
function t(r, n, i) {
|
|
757
757
|
var o = e.call(this) || this, s;
|
|
758
|
-
return
|
|
758
|
+
return N(r) || !r ? s = {
|
|
759
759
|
next: r != null ? r : void 0,
|
|
760
760
|
error: n != null ? n : void 0,
|
|
761
761
|
complete: i != null ? i : void 0
|
|
762
|
-
} : s = r, o.destination = new
|
|
762
|
+
} : s = r, o.destination = new Zr(s), o;
|
|
763
763
|
}
|
|
764
764
|
return t;
|
|
765
|
-
}(
|
|
766
|
-
function
|
|
767
|
-
|
|
765
|
+
}(Ft);
|
|
766
|
+
function le(e) {
|
|
767
|
+
zr(e);
|
|
768
768
|
}
|
|
769
|
-
function
|
|
769
|
+
function Qr(e) {
|
|
770
770
|
throw e;
|
|
771
771
|
}
|
|
772
|
-
var
|
|
772
|
+
var Yr = {
|
|
773
773
|
closed: !0,
|
|
774
|
-
next:
|
|
775
|
-
error:
|
|
776
|
-
complete:
|
|
777
|
-
},
|
|
774
|
+
next: lt,
|
|
775
|
+
error: Qr,
|
|
776
|
+
complete: lt
|
|
777
|
+
}, Jr = function() {
|
|
778
778
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
779
779
|
}();
|
|
780
|
-
function
|
|
780
|
+
function qr(e) {
|
|
781
781
|
return e;
|
|
782
782
|
}
|
|
783
|
-
function
|
|
784
|
-
return e.length === 0 ?
|
|
783
|
+
function Kr(e) {
|
|
784
|
+
return e.length === 0 ? qr : e.length === 1 ? e[0] : function(r) {
|
|
785
785
|
return e.reduce(function(n, i) {
|
|
786
786
|
return i(n);
|
|
787
787
|
}, r);
|
|
788
788
|
};
|
|
789
789
|
}
|
|
790
|
-
var
|
|
790
|
+
var ct = function() {
|
|
791
791
|
function e(t) {
|
|
792
792
|
t && (this._subscribe = t);
|
|
793
793
|
}
|
|
@@ -795,8 +795,8 @@ var lt = function() {
|
|
|
795
795
|
var r = new e();
|
|
796
796
|
return r.source = this, r.operator = t, r;
|
|
797
797
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
798
|
-
var i = this, o =
|
|
799
|
-
return
|
|
798
|
+
var i = this, o = tn(t) ? t : new Ve(t, r, n);
|
|
799
|
+
return pe(function() {
|
|
800
800
|
var s = i, a = s.operator, h = s.source;
|
|
801
801
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
802
802
|
}), o;
|
|
@@ -808,8 +808,8 @@ var lt = function() {
|
|
|
808
808
|
}
|
|
809
809
|
}, e.prototype.forEach = function(t, r) {
|
|
810
810
|
var n = this;
|
|
811
|
-
return r =
|
|
812
|
-
var s = new
|
|
811
|
+
return r = ft(r), new r(function(i, o) {
|
|
812
|
+
var s = new Ve({
|
|
813
813
|
next: function(a) {
|
|
814
814
|
try {
|
|
815
815
|
t(a);
|
|
@@ -825,15 +825,15 @@ var lt = function() {
|
|
|
825
825
|
}, e.prototype._subscribe = function(t) {
|
|
826
826
|
var r;
|
|
827
827
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
828
|
-
}, e.prototype[
|
|
828
|
+
}, e.prototype[Jr] = function() {
|
|
829
829
|
return this;
|
|
830
830
|
}, e.prototype.pipe = function() {
|
|
831
831
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
832
832
|
t[r] = arguments[r];
|
|
833
|
-
return
|
|
833
|
+
return Kr(t)(this);
|
|
834
834
|
}, e.prototype.toPromise = function(t) {
|
|
835
835
|
var r = this;
|
|
836
|
-
return t =
|
|
836
|
+
return t = ft(t), new t(function(n, i) {
|
|
837
837
|
var o;
|
|
838
838
|
r.subscribe(function(s) {
|
|
839
839
|
return o = s;
|
|
@@ -847,40 +847,40 @@ var lt = function() {
|
|
|
847
847
|
return new e(t);
|
|
848
848
|
}, e;
|
|
849
849
|
}();
|
|
850
|
-
function
|
|
850
|
+
function ft(e) {
|
|
851
851
|
var t;
|
|
852
|
-
return (t = e != null ? e :
|
|
852
|
+
return (t = e != null ? e : Xr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
853
853
|
}
|
|
854
|
-
function
|
|
855
|
-
return e &&
|
|
854
|
+
function en(e) {
|
|
855
|
+
return e && N(e.next) && N(e.error) && N(e.complete);
|
|
856
856
|
}
|
|
857
|
-
function
|
|
858
|
-
return e && e instanceof
|
|
857
|
+
function tn(e) {
|
|
858
|
+
return e && e instanceof Ft || en(e) && Dt(e);
|
|
859
859
|
}
|
|
860
|
-
var
|
|
860
|
+
var rn = Ut(function(e) {
|
|
861
861
|
return function() {
|
|
862
862
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
863
863
|
};
|
|
864
|
-
}),
|
|
865
|
-
|
|
864
|
+
}), jt = function(e) {
|
|
865
|
+
ae(t, e);
|
|
866
866
|
function t() {
|
|
867
867
|
var r = e.call(this) || this;
|
|
868
868
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
869
869
|
}
|
|
870
870
|
return t.prototype.lift = function(r) {
|
|
871
|
-
var n = new
|
|
871
|
+
var n = new pt(this, this);
|
|
872
872
|
return n.operator = r, n;
|
|
873
873
|
}, t.prototype._throwIfClosed = function() {
|
|
874
874
|
if (this.closed)
|
|
875
|
-
throw new
|
|
875
|
+
throw new rn();
|
|
876
876
|
}, t.prototype.next = function(r) {
|
|
877
877
|
var n = this;
|
|
878
|
-
|
|
878
|
+
pe(function() {
|
|
879
879
|
var i, o;
|
|
880
880
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
881
881
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
882
882
|
try {
|
|
883
|
-
for (var s =
|
|
883
|
+
for (var s = De(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
884
884
|
var h = a.value;
|
|
885
885
|
h.next(r);
|
|
886
886
|
}
|
|
@@ -898,7 +898,7 @@ var en = Rt(function(e) {
|
|
|
898
898
|
});
|
|
899
899
|
}, t.prototype.error = function(r) {
|
|
900
900
|
var n = this;
|
|
901
|
-
|
|
901
|
+
pe(function() {
|
|
902
902
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
903
903
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
904
904
|
for (var i = n.observers; i.length; )
|
|
@@ -907,7 +907,7 @@ var en = Rt(function(e) {
|
|
|
907
907
|
});
|
|
908
908
|
}, t.prototype.complete = function() {
|
|
909
909
|
var r = this;
|
|
910
|
-
|
|
910
|
+
pe(function() {
|
|
911
911
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
912
912
|
r.isStopped = !0;
|
|
913
913
|
for (var n = r.observers; n.length; )
|
|
@@ -929,20 +929,20 @@ var en = Rt(function(e) {
|
|
|
929
929
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
930
930
|
}, t.prototype._innerSubscribe = function(r) {
|
|
931
931
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
932
|
-
return o || s ?
|
|
933
|
-
n.currentObservers = null,
|
|
932
|
+
return o || s ? Gt : (this.currentObservers = null, a.push(r), new _e(function() {
|
|
933
|
+
n.currentObservers = null, ke(a, r);
|
|
934
934
|
}));
|
|
935
935
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
936
936
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
937
937
|
i ? r.error(o) : s && r.complete();
|
|
938
938
|
}, t.prototype.asObservable = function() {
|
|
939
|
-
var r = new
|
|
939
|
+
var r = new ct();
|
|
940
940
|
return r.source = this, r;
|
|
941
941
|
}, t.create = function(r, n) {
|
|
942
|
-
return new
|
|
942
|
+
return new pt(r, n);
|
|
943
943
|
}, t;
|
|
944
|
-
}(
|
|
945
|
-
|
|
944
|
+
}(ct), pt = function(e) {
|
|
945
|
+
ae(t, e);
|
|
946
946
|
function t(r, n) {
|
|
947
947
|
var i = e.call(this) || this;
|
|
948
948
|
return i.destination = r, i.source = n, i;
|
|
@@ -958,17 +958,17 @@ var en = Rt(function(e) {
|
|
|
958
958
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
959
959
|
}, t.prototype._subscribe = function(r) {
|
|
960
960
|
var n, i;
|
|
961
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
961
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Gt;
|
|
962
962
|
}, t;
|
|
963
|
-
}(
|
|
963
|
+
}(jt), kt = {
|
|
964
964
|
now: function() {
|
|
965
|
-
return (
|
|
965
|
+
return (kt.delegate || Date).now();
|
|
966
966
|
},
|
|
967
967
|
delegate: void 0
|
|
968
|
-
},
|
|
969
|
-
|
|
968
|
+
}, nn = function(e) {
|
|
969
|
+
ae(t, e);
|
|
970
970
|
function t(r, n, i) {
|
|
971
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
971
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = kt);
|
|
972
972
|
var o = e.call(this) || this;
|
|
973
973
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
974
974
|
}
|
|
@@ -988,24 +988,24 @@ var en = Rt(function(e) {
|
|
|
988
988
|
u && o.splice(0, u + 1);
|
|
989
989
|
}
|
|
990
990
|
}, t;
|
|
991
|
-
}(
|
|
992
|
-
const
|
|
993
|
-
if (
|
|
994
|
-
const r = new
|
|
995
|
-
|
|
991
|
+
}(jt);
|
|
992
|
+
const dt = [], mt = {}, on = (e, t = 0) => {
|
|
993
|
+
if (dt.indexOf(e) == -1) {
|
|
994
|
+
const r = new nn(t);
|
|
995
|
+
mt[e] = r, dt.push(e);
|
|
996
996
|
}
|
|
997
|
-
return
|
|
997
|
+
return mt[e];
|
|
998
998
|
}, F = [];
|
|
999
|
-
function
|
|
999
|
+
function sn(e, t) {
|
|
1000
1000
|
return {
|
|
1001
|
-
subscribe:
|
|
1001
|
+
subscribe: Ee(e, t).subscribe
|
|
1002
1002
|
};
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1004
|
+
function Ee(e, t = B) {
|
|
1005
1005
|
let r;
|
|
1006
1006
|
const n = /* @__PURE__ */ new Set();
|
|
1007
1007
|
function i(a) {
|
|
1008
|
-
if (
|
|
1008
|
+
if (Nt(e, a) && (e = a, r)) {
|
|
1009
1009
|
const h = !F.length;
|
|
1010
1010
|
for (const u of n)
|
|
1011
1011
|
u[1](), F.push(u, e);
|
|
@@ -1019,131 +1019,131 @@ function _e(e, t = w) {
|
|
|
1019
1019
|
function o(a) {
|
|
1020
1020
|
i(a(e));
|
|
1021
1021
|
}
|
|
1022
|
-
function s(a, h =
|
|
1022
|
+
function s(a, h = B) {
|
|
1023
1023
|
const u = [a, h];
|
|
1024
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1024
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || B), a(e), () => {
|
|
1025
1025
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1026
1026
|
};
|
|
1027
1027
|
}
|
|
1028
1028
|
return { set: i, update: o, subscribe: s };
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function Y(e, t, r) {
|
|
1031
1031
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1032
1032
|
if (!i.every(Boolean))
|
|
1033
1033
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1034
1034
|
const o = t.length < 2;
|
|
1035
|
-
return
|
|
1035
|
+
return sn(r, (s, a) => {
|
|
1036
1036
|
let h = !1;
|
|
1037
1037
|
const u = [];
|
|
1038
|
-
let l = 0, f =
|
|
1038
|
+
let l = 0, f = B;
|
|
1039
1039
|
const c = () => {
|
|
1040
1040
|
if (l)
|
|
1041
1041
|
return;
|
|
1042
1042
|
f();
|
|
1043
1043
|
const d = t(n ? u[0] : u, s, a);
|
|
1044
|
-
o ? s(d) : f =
|
|
1044
|
+
o ? s(d) : f = et(d) ? d : B;
|
|
1045
1045
|
}, p = i.map(
|
|
1046
|
-
(d,
|
|
1046
|
+
(d, g) => Ct(
|
|
1047
1047
|
d,
|
|
1048
|
-
(
|
|
1049
|
-
u[
|
|
1048
|
+
(H) => {
|
|
1049
|
+
u[g] = H, l &= ~(1 << g), h && c();
|
|
1050
1050
|
},
|
|
1051
1051
|
() => {
|
|
1052
|
-
l |= 1 <<
|
|
1052
|
+
l |= 1 << g;
|
|
1053
1053
|
}
|
|
1054
1054
|
)
|
|
1055
1055
|
);
|
|
1056
1056
|
return h = !0, c(), function() {
|
|
1057
|
-
|
|
1057
|
+
oe(p), f(), h = !1;
|
|
1058
1058
|
};
|
|
1059
1059
|
});
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function an(e) {
|
|
1062
1062
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1063
1063
|
}
|
|
1064
|
-
var
|
|
1065
|
-
return
|
|
1064
|
+
var un = function(t) {
|
|
1065
|
+
return hn(t) && !ln(t);
|
|
1066
1066
|
};
|
|
1067
|
-
function
|
|
1067
|
+
function hn(e) {
|
|
1068
1068
|
return !!e && typeof e == "object";
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function ln(e) {
|
|
1071
1071
|
var t = Object.prototype.toString.call(e);
|
|
1072
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1072
|
+
return t === "[object RegExp]" || t === "[object Date]" || pn(e);
|
|
1073
1073
|
}
|
|
1074
|
-
var
|
|
1075
|
-
function
|
|
1076
|
-
return e.$$typeof ===
|
|
1074
|
+
var cn = typeof Symbol == "function" && Symbol.for, fn = cn ? Symbol.for("react.element") : 60103;
|
|
1075
|
+
function pn(e) {
|
|
1076
|
+
return e.$$typeof === fn;
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1078
|
+
function dn(e) {
|
|
1079
1079
|
return Array.isArray(e) ? [] : {};
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1082
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1081
|
+
function ne(e, t) {
|
|
1082
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? X(dn(e), e, t) : e;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function mn(e, t, r) {
|
|
1085
1085
|
return e.concat(t).map(function(n) {
|
|
1086
|
-
return
|
|
1086
|
+
return ne(n, r);
|
|
1087
1087
|
});
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1089
|
+
function bn(e, t) {
|
|
1090
1090
|
if (!t.customMerge)
|
|
1091
|
-
return
|
|
1091
|
+
return X;
|
|
1092
1092
|
var r = t.customMerge(e);
|
|
1093
|
-
return typeof r == "function" ? r :
|
|
1093
|
+
return typeof r == "function" ? r : X;
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function yn(e) {
|
|
1096
1096
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1097
1097
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1098
1098
|
}) : [];
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1101
|
-
return Object.keys(e).concat(
|
|
1100
|
+
function bt(e) {
|
|
1101
|
+
return Object.keys(e).concat(yn(e));
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1103
|
+
function Vt(e, t) {
|
|
1104
1104
|
try {
|
|
1105
1105
|
return t in e;
|
|
1106
1106
|
} catch (r) {
|
|
1107
1107
|
return !1;
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
|
-
function
|
|
1111
|
-
return
|
|
1110
|
+
function gn(e, t) {
|
|
1111
|
+
return Vt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1113
|
+
function vn(e, t, r) {
|
|
1114
1114
|
var n = {};
|
|
1115
|
-
return r.isMergeableObject(e) &&
|
|
1116
|
-
n[i] =
|
|
1117
|
-
}),
|
|
1118
|
-
|
|
1115
|
+
return r.isMergeableObject(e) && bt(e).forEach(function(i) {
|
|
1116
|
+
n[i] = ne(e[i], r);
|
|
1117
|
+
}), bt(t).forEach(function(i) {
|
|
1118
|
+
gn(e, i) || (Vt(e, i) && r.isMergeableObject(t[i]) ? n[i] = bn(i, r)(e[i], t[i], r) : n[i] = ne(t[i], r));
|
|
1119
1119
|
}), n;
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1122
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1121
|
+
function X(e, t, r) {
|
|
1122
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || mn, r.isMergeableObject = r.isMergeableObject || un, r.cloneUnlessOtherwiseSpecified = ne;
|
|
1123
1123
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1124
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1124
|
+
return o ? n ? r.arrayMerge(e, t, r) : vn(e, t, r) : ne(t, r);
|
|
1125
1125
|
}
|
|
1126
|
-
|
|
1126
|
+
X.all = function(t, r) {
|
|
1127
1127
|
if (!Array.isArray(t))
|
|
1128
1128
|
throw new Error("first argument should be an array");
|
|
1129
1129
|
return t.reduce(function(n, i) {
|
|
1130
|
-
return
|
|
1130
|
+
return X(n, i, r);
|
|
1131
1131
|
}, {});
|
|
1132
1132
|
};
|
|
1133
|
-
var
|
|
1134
|
-
const
|
|
1135
|
-
var
|
|
1136
|
-
return
|
|
1133
|
+
var _n = X, En = _n;
|
|
1134
|
+
const xn = /* @__PURE__ */ an(En);
|
|
1135
|
+
var Xe = function(e, t) {
|
|
1136
|
+
return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1137
1137
|
r.__proto__ = n;
|
|
1138
1138
|
} || function(r, n) {
|
|
1139
1139
|
for (var i in n)
|
|
1140
1140
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1141
|
-
},
|
|
1141
|
+
}, Xe(e, t);
|
|
1142
1142
|
};
|
|
1143
|
-
function
|
|
1143
|
+
function xe(e, t) {
|
|
1144
1144
|
if (typeof t != "function" && t !== null)
|
|
1145
1145
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1146
|
-
|
|
1146
|
+
Xe(e, t);
|
|
1147
1147
|
function r() {
|
|
1148
1148
|
this.constructor = e;
|
|
1149
1149
|
}
|
|
@@ -1159,7 +1159,7 @@ var P = function() {
|
|
|
1159
1159
|
return t;
|
|
1160
1160
|
}, P.apply(this, arguments);
|
|
1161
1161
|
};
|
|
1162
|
-
function
|
|
1162
|
+
function Sn(e, t) {
|
|
1163
1163
|
var r = {};
|
|
1164
1164
|
for (var n in e)
|
|
1165
1165
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -1168,43 +1168,43 @@ function En(e, t) {
|
|
|
1168
1168
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1169
1169
|
return r;
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1171
|
+
function Oe(e, t, r) {
|
|
1172
1172
|
if (r || arguments.length === 2)
|
|
1173
1173
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1174
1174
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1175
1175
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
1176
1176
|
}
|
|
1177
|
-
function
|
|
1178
|
-
var r = t && t.cache ? t.cache :
|
|
1177
|
+
function Ie(e, t) {
|
|
1178
|
+
var r = t && t.cache ? t.cache : On, n = t && t.serializer ? t.serializer : An, i = t && t.strategy ? t.strategy : Hn;
|
|
1179
1179
|
return i(e, {
|
|
1180
1180
|
cache: r,
|
|
1181
1181
|
serializer: n
|
|
1182
1182
|
});
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1184
|
+
function Tn(e) {
|
|
1185
1185
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1188
|
-
var i =
|
|
1187
|
+
function wn(e, t, r, n) {
|
|
1188
|
+
var i = Tn(n) ? n : r(n), o = t.get(i);
|
|
1189
1189
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1191
|
+
function Xt(e, t, r) {
|
|
1192
1192
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1193
1193
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1195
|
+
function Wt(e, t, r, n, i) {
|
|
1196
1196
|
return r.bind(t, e, n, i);
|
|
1197
1197
|
}
|
|
1198
|
-
function Tn(e, t) {
|
|
1199
|
-
var r = e.length === 1 ? Sn : Vt;
|
|
1200
|
-
return Xt(e, this, r, t.cache.create(), t.serializer);
|
|
1201
|
-
}
|
|
1202
1198
|
function Hn(e, t) {
|
|
1203
|
-
|
|
1199
|
+
var r = e.length === 1 ? wn : Xt;
|
|
1200
|
+
return Wt(e, this, r, t.cache.create(), t.serializer);
|
|
1201
|
+
}
|
|
1202
|
+
function Bn(e, t) {
|
|
1203
|
+
return Wt(e, this, Xt, t.cache.create(), t.serializer);
|
|
1204
1204
|
}
|
|
1205
|
-
var
|
|
1205
|
+
var An = function() {
|
|
1206
1206
|
return JSON.stringify(arguments);
|
|
1207
|
-
},
|
|
1207
|
+
}, Pn = (
|
|
1208
1208
|
/** @class */
|
|
1209
1209
|
function() {
|
|
1210
1210
|
function e() {
|
|
@@ -1216,21 +1216,21 @@ var Bn = function() {
|
|
|
1216
1216
|
this.cache[t] = r;
|
|
1217
1217
|
}, e;
|
|
1218
1218
|
}()
|
|
1219
|
-
),
|
|
1219
|
+
), On = {
|
|
1220
1220
|
create: function() {
|
|
1221
|
-
return new
|
|
1221
|
+
return new Pn();
|
|
1222
1222
|
}
|
|
1223
|
-
},
|
|
1224
|
-
variadic:
|
|
1225
|
-
},
|
|
1226
|
-
return
|
|
1223
|
+
}, Le = {
|
|
1224
|
+
variadic: Bn
|
|
1225
|
+
}, be = function() {
|
|
1226
|
+
return be = Object.assign || function(t) {
|
|
1227
1227
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1228
1228
|
r = arguments[n];
|
|
1229
1229
|
for (var o in r)
|
|
1230
1230
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1231
1231
|
}
|
|
1232
1232
|
return t;
|
|
1233
|
-
},
|
|
1233
|
+
}, be.apply(this, arguments);
|
|
1234
1234
|
};
|
|
1235
1235
|
var m;
|
|
1236
1236
|
(function(e) {
|
|
@@ -1240,47 +1240,47 @@ var v;
|
|
|
1240
1240
|
(function(e) {
|
|
1241
1241
|
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";
|
|
1242
1242
|
})(v || (v = {}));
|
|
1243
|
-
var
|
|
1243
|
+
var W;
|
|
1244
1244
|
(function(e) {
|
|
1245
1245
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1246
|
-
})(
|
|
1247
|
-
function
|
|
1246
|
+
})(W || (W = {}));
|
|
1247
|
+
function yt(e) {
|
|
1248
1248
|
return e.type === v.literal;
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1250
|
+
function In(e) {
|
|
1251
1251
|
return e.type === v.argument;
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1253
|
+
function zt(e) {
|
|
1254
1254
|
return e.type === v.number;
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1256
|
+
function Zt(e) {
|
|
1257
1257
|
return e.type === v.date;
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1259
|
+
function Qt(e) {
|
|
1260
1260
|
return e.type === v.time;
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1262
|
+
function Yt(e) {
|
|
1263
1263
|
return e.type === v.select;
|
|
1264
1264
|
}
|
|
1265
1265
|
function Jt(e) {
|
|
1266
1266
|
return e.type === v.plural;
|
|
1267
1267
|
}
|
|
1268
|
-
function
|
|
1268
|
+
function Ln(e) {
|
|
1269
1269
|
return e.type === v.pound;
|
|
1270
1270
|
}
|
|
1271
|
-
function
|
|
1271
|
+
function qt(e) {
|
|
1272
1272
|
return e.type === v.tag;
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1275
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1274
|
+
function Kt(e) {
|
|
1275
|
+
return !!(e && typeof e == "object" && e.type === W.number);
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1278
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1277
|
+
function We(e) {
|
|
1278
|
+
return !!(e && typeof e == "object" && e.type === W.dateTime);
|
|
1279
1279
|
}
|
|
1280
|
-
var
|
|
1281
|
-
function
|
|
1280
|
+
var er = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Nn = /(?:[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;
|
|
1281
|
+
function Cn(e) {
|
|
1282
1282
|
var t = {};
|
|
1283
|
-
return e.replace(
|
|
1283
|
+
return e.replace(Nn, function(r) {
|
|
1284
1284
|
var n = r.length;
|
|
1285
1285
|
switch (r[0]) {
|
|
1286
1286
|
case "G":
|
|
@@ -1379,11 +1379,11 @@ var _ = function() {
|
|
|
1379
1379
|
return t;
|
|
1380
1380
|
}, _.apply(this, arguments);
|
|
1381
1381
|
};
|
|
1382
|
-
var
|
|
1383
|
-
function
|
|
1382
|
+
var Mn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1383
|
+
function $n(e) {
|
|
1384
1384
|
if (e.length === 0)
|
|
1385
1385
|
throw new Error("Number skeleton cannot be empty");
|
|
1386
|
-
for (var t = e.split(
|
|
1386
|
+
for (var t = e.split(Mn).filter(function(c) {
|
|
1387
1387
|
return c.length > 0;
|
|
1388
1388
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1389
1389
|
var o = i[n], s = o.split("/");
|
|
@@ -1398,17 +1398,17 @@ function Mn(e) {
|
|
|
1398
1398
|
}
|
|
1399
1399
|
return r;
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1401
|
+
function Rn(e) {
|
|
1402
1402
|
return e.replace(/^(.*?)-/, "");
|
|
1403
1403
|
}
|
|
1404
|
-
var gt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,
|
|
1405
|
-
function
|
|
1404
|
+
var gt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, tr = /^(@+)?(\+|#+)?[rs]?$/g, Un = /(\*)(0+)|(#+)(0+)|(0+)/g, rr = /^(0+)$/;
|
|
1405
|
+
function vt(e) {
|
|
1406
1406
|
var t = {};
|
|
1407
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1407
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(tr, function(r, n, i) {
|
|
1408
1408
|
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)), "";
|
|
1409
1409
|
}), t;
|
|
1410
1410
|
}
|
|
1411
|
-
function
|
|
1411
|
+
function nr(e) {
|
|
1412
1412
|
switch (e) {
|
|
1413
1413
|
case "sign-auto":
|
|
1414
1414
|
return {
|
|
@@ -1448,7 +1448,7 @@ function rr(e) {
|
|
|
1448
1448
|
};
|
|
1449
1449
|
}
|
|
1450
1450
|
}
|
|
1451
|
-
function
|
|
1451
|
+
function Gn(e) {
|
|
1452
1452
|
var t;
|
|
1453
1453
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1454
1454
|
notation: "engineering"
|
|
@@ -1456,17 +1456,17 @@ function Rn(e) {
|
|
|
1456
1456
|
notation: "scientific"
|
|
1457
1457
|
}, e = e.slice(1)), t) {
|
|
1458
1458
|
var r = e.slice(0, 2);
|
|
1459
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1459
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !rr.test(e))
|
|
1460
1460
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1461
1461
|
t.minimumIntegerDigits = e.length;
|
|
1462
1462
|
}
|
|
1463
1463
|
return t;
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1466
|
-
var t = {}, r =
|
|
1465
|
+
function _t(e) {
|
|
1466
|
+
var t = {}, r = nr(e);
|
|
1467
1467
|
return r || t;
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function Dn(e) {
|
|
1470
1470
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1471
1471
|
var i = n[r];
|
|
1472
1472
|
switch (i.stem) {
|
|
@@ -1490,7 +1490,7 @@ function Un(e) {
|
|
|
1490
1490
|
continue;
|
|
1491
1491
|
case "measure-unit":
|
|
1492
1492
|
case "unit":
|
|
1493
|
-
t.style = "unit", t.unit =
|
|
1493
|
+
t.style = "unit", t.unit = Rn(i.options[0]);
|
|
1494
1494
|
continue;
|
|
1495
1495
|
case "compact-short":
|
|
1496
1496
|
case "K":
|
|
@@ -1502,12 +1502,12 @@ function Un(e) {
|
|
|
1502
1502
|
continue;
|
|
1503
1503
|
case "scientific":
|
|
1504
1504
|
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1505
|
-
return _(_({}, h),
|
|
1505
|
+
return _(_({}, h), _t(u));
|
|
1506
1506
|
}, {}));
|
|
1507
1507
|
continue;
|
|
1508
1508
|
case "engineering":
|
|
1509
1509
|
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1510
|
-
return _(_({}, h),
|
|
1510
|
+
return _(_({}, h), _t(u));
|
|
1511
1511
|
}, {}));
|
|
1512
1512
|
continue;
|
|
1513
1513
|
case "notation-simple":
|
|
@@ -1552,7 +1552,7 @@ function Un(e) {
|
|
|
1552
1552
|
case "integer-width":
|
|
1553
1553
|
if (i.options.length > 1)
|
|
1554
1554
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1555
|
-
i.options[0].replace(
|
|
1555
|
+
i.options[0].replace(Un, function(h, u, l, f, c, p) {
|
|
1556
1556
|
if (u)
|
|
1557
1557
|
t.minimumIntegerDigits = l.length;
|
|
1558
1558
|
else {
|
|
@@ -1565,7 +1565,7 @@ function Un(e) {
|
|
|
1565
1565
|
});
|
|
1566
1566
|
continue;
|
|
1567
1567
|
}
|
|
1568
|
-
if (
|
|
1568
|
+
if (rr.test(i.stem)) {
|
|
1569
1569
|
t.minimumIntegerDigits = i.stem.length;
|
|
1570
1570
|
continue;
|
|
1571
1571
|
}
|
|
@@ -1576,21 +1576,21 @@ function Un(e) {
|
|
|
1576
1576
|
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1577
1577
|
});
|
|
1578
1578
|
var o = i.options[0];
|
|
1579
|
-
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t),
|
|
1579
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), vt(o)));
|
|
1580
1580
|
continue;
|
|
1581
1581
|
}
|
|
1582
|
-
if (
|
|
1583
|
-
t = _(_({}, t),
|
|
1582
|
+
if (tr.test(i.stem)) {
|
|
1583
|
+
t = _(_({}, t), vt(i.stem));
|
|
1584
1584
|
continue;
|
|
1585
1585
|
}
|
|
1586
|
-
var s =
|
|
1586
|
+
var s = nr(i.stem);
|
|
1587
1587
|
s && (t = _(_({}, t), s));
|
|
1588
|
-
var a =
|
|
1588
|
+
var a = Gn(i.stem);
|
|
1589
1589
|
a && (t = _(_({}, t), a));
|
|
1590
1590
|
}
|
|
1591
1591
|
return t;
|
|
1592
1592
|
}
|
|
1593
|
-
var
|
|
1593
|
+
var ce = {
|
|
1594
1594
|
"001": [
|
|
1595
1595
|
"H",
|
|
1596
1596
|
"h"
|
|
@@ -3005,13 +3005,13 @@ var le = {
|
|
|
3005
3005
|
"h"
|
|
3006
3006
|
]
|
|
3007
3007
|
};
|
|
3008
|
-
function
|
|
3008
|
+
function Fn(e, t) {
|
|
3009
3009
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3010
3010
|
var i = e.charAt(n);
|
|
3011
3011
|
if (i === "j") {
|
|
3012
3012
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3013
3013
|
o++, n++;
|
|
3014
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
3014
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = jn(t);
|
|
3015
3015
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3016
3016
|
r += h;
|
|
3017
3017
|
for (; s-- > 0; )
|
|
@@ -3021,7 +3021,7 @@ function Gn(e, t) {
|
|
|
3021
3021
|
}
|
|
3022
3022
|
return r;
|
|
3023
3023
|
}
|
|
3024
|
-
function
|
|
3024
|
+
function jn(e) {
|
|
3025
3025
|
var t = e.hourCycle;
|
|
3026
3026
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3027
3027
|
e.hourCycles && // @ts-ignore
|
|
@@ -3040,23 +3040,23 @@ function Dn(e) {
|
|
|
3040
3040
|
}
|
|
3041
3041
|
var r = e.language, n;
|
|
3042
3042
|
r !== "root" && (n = e.maximize().region);
|
|
3043
|
-
var i =
|
|
3043
|
+
var i = ce[n || ""] || ce[r || ""] || ce["".concat(r, "-001")] || ce["001"];
|
|
3044
3044
|
return i[0];
|
|
3045
3045
|
}
|
|
3046
|
-
var
|
|
3046
|
+
var Ne, kn = new RegExp("^".concat(er.source, "*")), Vn = new RegExp("".concat(er.source, "*$"));
|
|
3047
3047
|
function b(e, t) {
|
|
3048
3048
|
return { start: e, end: t };
|
|
3049
3049
|
}
|
|
3050
|
-
var
|
|
3050
|
+
var Xn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Wn = !!String.fromCodePoint, zn = !!Object.fromEntries, Zn = !!String.prototype.codePointAt, Qn = !!String.prototype.trimStart, Yn = !!String.prototype.trimEnd, Jn = !!Number.isSafeInteger, qn = Jn ? Number.isSafeInteger : function(e) {
|
|
3051
3051
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3052
|
-
},
|
|
3052
|
+
}, ze = !0;
|
|
3053
3053
|
try {
|
|
3054
|
-
var
|
|
3055
|
-
|
|
3054
|
+
var Kn = or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3055
|
+
ze = ((Ne = Kn.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
|
|
3056
3056
|
} catch (e) {
|
|
3057
|
-
|
|
3057
|
+
ze = !1;
|
|
3058
3058
|
}
|
|
3059
|
-
var
|
|
3059
|
+
var Et = Xn ? (
|
|
3060
3060
|
// Native
|
|
3061
3061
|
function(t, r, n) {
|
|
3062
3062
|
return t.startsWith(r, n);
|
|
@@ -3066,7 +3066,7 @@ var _t = kn ? (
|
|
|
3066
3066
|
function(t, r, n) {
|
|
3067
3067
|
return t.slice(n, n + r.length) === r;
|
|
3068
3068
|
}
|
|
3069
|
-
),
|
|
3069
|
+
), Ze = Wn ? String.fromCodePoint : (
|
|
3070
3070
|
// IE11
|
|
3071
3071
|
function() {
|
|
3072
3072
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3078,9 +3078,9 @@ var _t = kn ? (
|
|
|
3078
3078
|
}
|
|
3079
3079
|
return n;
|
|
3080
3080
|
}
|
|
3081
|
-
),
|
|
3081
|
+
), xt = (
|
|
3082
3082
|
// native
|
|
3083
|
-
|
|
3083
|
+
zn ? Object.fromEntries : (
|
|
3084
3084
|
// Ponyfill
|
|
3085
3085
|
function(t) {
|
|
3086
3086
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3090,7 +3090,7 @@ var _t = kn ? (
|
|
|
3090
3090
|
return r;
|
|
3091
3091
|
}
|
|
3092
3092
|
)
|
|
3093
|
-
),
|
|
3093
|
+
), ir = Zn ? (
|
|
3094
3094
|
// Native
|
|
3095
3095
|
function(t, r) {
|
|
3096
3096
|
return t.codePointAt(r);
|
|
@@ -3104,7 +3104,7 @@ var _t = kn ? (
|
|
|
3104
3104
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3105
3105
|
}
|
|
3106
3106
|
}
|
|
3107
|
-
),
|
|
3107
|
+
), ei = Qn ? (
|
|
3108
3108
|
// Native
|
|
3109
3109
|
function(t) {
|
|
3110
3110
|
return t.trimStart();
|
|
@@ -3112,9 +3112,9 @@ var _t = kn ? (
|
|
|
3112
3112
|
) : (
|
|
3113
3113
|
// Ponyfill
|
|
3114
3114
|
function(t) {
|
|
3115
|
-
return t.replace(
|
|
3115
|
+
return t.replace(kn, "");
|
|
3116
3116
|
}
|
|
3117
|
-
),
|
|
3117
|
+
), ti = Yn ? (
|
|
3118
3118
|
// Native
|
|
3119
3119
|
function(t) {
|
|
3120
3120
|
return t.trimEnd();
|
|
@@ -3122,32 +3122,32 @@ var _t = kn ? (
|
|
|
3122
3122
|
) : (
|
|
3123
3123
|
// Ponyfill
|
|
3124
3124
|
function(t) {
|
|
3125
|
-
return t.replace(
|
|
3125
|
+
return t.replace(Vn, "");
|
|
3126
3126
|
}
|
|
3127
3127
|
);
|
|
3128
|
-
function
|
|
3128
|
+
function or(e, t) {
|
|
3129
3129
|
return new RegExp(e, t);
|
|
3130
3130
|
}
|
|
3131
|
-
var
|
|
3132
|
-
if (
|
|
3133
|
-
var
|
|
3134
|
-
|
|
3131
|
+
var Qe;
|
|
3132
|
+
if (ze) {
|
|
3133
|
+
var St = or("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3134
|
+
Qe = function(t, r) {
|
|
3135
3135
|
var n;
|
|
3136
|
-
|
|
3137
|
-
var i =
|
|
3136
|
+
St.lastIndex = r;
|
|
3137
|
+
var i = St.exec(t);
|
|
3138
3138
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3139
3139
|
};
|
|
3140
3140
|
} else
|
|
3141
|
-
|
|
3141
|
+
Qe = function(t, r) {
|
|
3142
3142
|
for (var n = []; ; ) {
|
|
3143
|
-
var i =
|
|
3144
|
-
if (i === void 0 ||
|
|
3143
|
+
var i = ir(t, r);
|
|
3144
|
+
if (i === void 0 || sr(i) || oi(i))
|
|
3145
3145
|
break;
|
|
3146
3146
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3147
3147
|
}
|
|
3148
|
-
return
|
|
3148
|
+
return Ze.apply(void 0, n);
|
|
3149
3149
|
};
|
|
3150
|
-
var
|
|
3150
|
+
var ri = (
|
|
3151
3151
|
/** @class */
|
|
3152
3152
|
function() {
|
|
3153
3153
|
function e(t, r) {
|
|
@@ -3178,7 +3178,7 @@ var ei = (
|
|
|
3178
3178
|
if (n)
|
|
3179
3179
|
break;
|
|
3180
3180
|
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
3181
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3181
|
+
} else if (o === 60 && !this.ignoreTag && Ye(this.peek() || 0)) {
|
|
3182
3182
|
var s = this.parseTag(t, r);
|
|
3183
3183
|
if (s.err)
|
|
3184
3184
|
return s;
|
|
@@ -3211,7 +3211,7 @@ var ei = (
|
|
|
3211
3211
|
return o;
|
|
3212
3212
|
var s = o.val, a = this.clonePosition();
|
|
3213
3213
|
if (this.bumpIf("</")) {
|
|
3214
|
-
if (this.isEOF() || !
|
|
3214
|
+
if (this.isEOF() || !Ye(this.char()))
|
|
3215
3215
|
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
|
3216
3216
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3217
3217
|
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3229,7 +3229,7 @@ var ei = (
|
|
|
3229
3229
|
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
3230
3230
|
}, e.prototype.parseTagName = function() {
|
|
3231
3231
|
var t = this.offset();
|
|
3232
|
-
for (this.bump(); !this.isEOF() &&
|
|
3232
|
+
for (this.bump(); !this.isEOF() && ii(this.char()); )
|
|
3233
3233
|
this.bump();
|
|
3234
3234
|
return this.message.slice(t, this.offset());
|
|
3235
3235
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3258,7 +3258,7 @@ var ei = (
|
|
|
3258
3258
|
};
|
|
3259
3259
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3260
3260
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3261
|
-
!
|
|
3261
|
+
!ni(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3262
3262
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3263
3263
|
if (this.isEOF() || this.char() !== 39)
|
|
3264
3264
|
return null;
|
|
@@ -3292,12 +3292,12 @@ var ei = (
|
|
|
3292
3292
|
r.push(n);
|
|
3293
3293
|
this.bump();
|
|
3294
3294
|
}
|
|
3295
|
-
return
|
|
3295
|
+
return Ze.apply(void 0, r);
|
|
3296
3296
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3297
3297
|
if (this.isEOF())
|
|
3298
3298
|
return null;
|
|
3299
3299
|
var n = this.char();
|
|
3300
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3300
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ze(n));
|
|
3301
3301
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3302
3302
|
var n = this.clonePosition();
|
|
3303
3303
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3326,7 +3326,7 @@ var ei = (
|
|
|
3326
3326
|
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
3327
3327
|
}
|
|
3328
3328
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3329
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3329
|
+
var t = this.clonePosition(), r = this.offset(), n = Qe(this.message, r), i = r + n.length;
|
|
3330
3330
|
this.bumpTo(i);
|
|
3331
3331
|
var o = this.clonePosition(), s = b(t, o);
|
|
3332
3332
|
return { value: n, location: s };
|
|
@@ -3345,7 +3345,7 @@ var ei = (
|
|
|
3345
3345
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3346
3346
|
if (f.err)
|
|
3347
3347
|
return f;
|
|
3348
|
-
var c =
|
|
3348
|
+
var c = ti(f.val);
|
|
3349
3349
|
if (c.length === 0)
|
|
3350
3350
|
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
3351
3351
|
var p = b(l, this.clonePosition());
|
|
@@ -3354,28 +3354,28 @@ var ei = (
|
|
|
3354
3354
|
var d = this.tryParseArgumentClose(i);
|
|
3355
3355
|
if (d.err)
|
|
3356
3356
|
return d;
|
|
3357
|
-
var
|
|
3358
|
-
if (u &&
|
|
3359
|
-
var
|
|
3357
|
+
var g = b(i, this.clonePosition());
|
|
3358
|
+
if (u && Et(u == null ? void 0 : u.style, "::", 0)) {
|
|
3359
|
+
var H = ei(u.style.slice(2));
|
|
3360
3360
|
if (a === "number") {
|
|
3361
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3361
|
+
var f = this.parseNumberSkeletonFromString(H, u.styleLocation);
|
|
3362
3362
|
return f.err ? f : {
|
|
3363
|
-
val: { type: v.number, value: n, location:
|
|
3363
|
+
val: { type: v.number, value: n, location: g, style: f.val },
|
|
3364
3364
|
err: null
|
|
3365
3365
|
};
|
|
3366
3366
|
} else {
|
|
3367
|
-
if (
|
|
3368
|
-
return this.error(m.EXPECT_DATE_TIME_SKELETON,
|
|
3369
|
-
var
|
|
3370
|
-
this.locale && (
|
|
3367
|
+
if (H.length === 0)
|
|
3368
|
+
return this.error(m.EXPECT_DATE_TIME_SKELETON, g);
|
|
3369
|
+
var R = H;
|
|
3370
|
+
this.locale && (R = Fn(H, this.locale));
|
|
3371
3371
|
var c = {
|
|
3372
|
-
type:
|
|
3373
|
-
pattern:
|
|
3372
|
+
type: W.dateTime,
|
|
3373
|
+
pattern: R,
|
|
3374
3374
|
location: u.styleLocation,
|
|
3375
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3376
|
-
},
|
|
3375
|
+
parsedOptions: this.shouldParseSkeletons ? Cn(R) : {}
|
|
3376
|
+
}, C = a === "date" ? v.date : v.time;
|
|
3377
3377
|
return {
|
|
3378
|
-
val: { type:
|
|
3378
|
+
val: { type: C, value: n, location: g, style: c },
|
|
3379
3379
|
err: null
|
|
3380
3380
|
};
|
|
3381
3381
|
}
|
|
@@ -3384,7 +3384,7 @@ var ei = (
|
|
|
3384
3384
|
val: {
|
|
3385
3385
|
type: a === "number" ? v.number : a === "date" ? v.date : v.time,
|
|
3386
3386
|
value: n,
|
|
3387
|
-
location:
|
|
3387
|
+
location: g,
|
|
3388
3388
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
3389
3389
|
},
|
|
3390
3390
|
err: null
|
|
@@ -3393,43 +3393,43 @@ var ei = (
|
|
|
3393
3393
|
case "plural":
|
|
3394
3394
|
case "selectordinal":
|
|
3395
3395
|
case "select": {
|
|
3396
|
-
var
|
|
3396
|
+
var S = this.clonePosition();
|
|
3397
3397
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3398
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(
|
|
3398
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(S, be({}, S)));
|
|
3399
3399
|
this.bumpSpace();
|
|
3400
|
-
var
|
|
3401
|
-
if (a !== "select" &&
|
|
3400
|
+
var O = this.parseIdentifierIfPossible(), I = 0;
|
|
3401
|
+
if (a !== "select" && O.value === "offset") {
|
|
3402
3402
|
if (!this.bumpIf(":"))
|
|
3403
3403
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
3404
3404
|
this.bumpSpace();
|
|
3405
3405
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3406
3406
|
if (f.err)
|
|
3407
3407
|
return f;
|
|
3408
|
-
this.bumpSpace(),
|
|
3408
|
+
this.bumpSpace(), O = this.parseIdentifierIfPossible(), I = f.val;
|
|
3409
3409
|
}
|
|
3410
|
-
var G = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3410
|
+
var G = this.tryParsePluralOrSelectOptions(t, a, r, O);
|
|
3411
3411
|
if (G.err)
|
|
3412
3412
|
return G;
|
|
3413
3413
|
var d = this.tryParseArgumentClose(i);
|
|
3414
3414
|
if (d.err)
|
|
3415
3415
|
return d;
|
|
3416
|
-
var
|
|
3416
|
+
var he = b(i, this.clonePosition());
|
|
3417
3417
|
return a === "select" ? {
|
|
3418
3418
|
val: {
|
|
3419
3419
|
type: v.select,
|
|
3420
3420
|
value: n,
|
|
3421
|
-
options:
|
|
3422
|
-
location:
|
|
3421
|
+
options: xt(G.val),
|
|
3422
|
+
location: he
|
|
3423
3423
|
},
|
|
3424
3424
|
err: null
|
|
3425
3425
|
} : {
|
|
3426
3426
|
val: {
|
|
3427
3427
|
type: v.plural,
|
|
3428
3428
|
value: n,
|
|
3429
|
-
options:
|
|
3430
|
-
offset:
|
|
3429
|
+
options: xt(G.val),
|
|
3430
|
+
offset: I,
|
|
3431
3431
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3432
|
-
location:
|
|
3432
|
+
location: he
|
|
3433
3433
|
},
|
|
3434
3434
|
err: null
|
|
3435
3435
|
};
|
|
@@ -3477,16 +3477,16 @@ var ei = (
|
|
|
3477
3477
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3478
3478
|
var n = [];
|
|
3479
3479
|
try {
|
|
3480
|
-
n =
|
|
3480
|
+
n = $n(t);
|
|
3481
3481
|
} catch (i) {
|
|
3482
3482
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
3483
3483
|
}
|
|
3484
3484
|
return {
|
|
3485
3485
|
val: {
|
|
3486
|
-
type:
|
|
3486
|
+
type: W.number,
|
|
3487
3487
|
tokens: n,
|
|
3488
3488
|
location: r,
|
|
3489
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3489
|
+
parsedOptions: this.shouldParseSkeletons ? Dn(n) : {}
|
|
3490
3490
|
},
|
|
3491
3491
|
err: null
|
|
3492
3492
|
};
|
|
@@ -3511,9 +3511,9 @@ var ei = (
|
|
|
3511
3511
|
var d = this.parseMessage(t + 1, r, n);
|
|
3512
3512
|
if (d.err)
|
|
3513
3513
|
return d;
|
|
3514
|
-
var
|
|
3515
|
-
if (
|
|
3516
|
-
return
|
|
3514
|
+
var g = this.tryParseArgumentClose(p);
|
|
3515
|
+
if (g.err)
|
|
3516
|
+
return g;
|
|
3517
3517
|
a.push([
|
|
3518
3518
|
u,
|
|
3519
3519
|
{
|
|
@@ -3534,7 +3534,7 @@ var ei = (
|
|
|
3534
3534
|
break;
|
|
3535
3535
|
}
|
|
3536
3536
|
var h = b(i, this.clonePosition());
|
|
3537
|
-
return o ? (s *= n,
|
|
3537
|
+
return o ? (s *= n, qn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3538
3538
|
}, e.prototype.offset = function() {
|
|
3539
3539
|
return this.position.offset;
|
|
3540
3540
|
}, e.prototype.isEOF = function() {
|
|
@@ -3549,7 +3549,7 @@ var ei = (
|
|
|
3549
3549
|
var t = this.position.offset;
|
|
3550
3550
|
if (t >= this.message.length)
|
|
3551
3551
|
throw Error("out of bound");
|
|
3552
|
-
var r =
|
|
3552
|
+
var r = ir(this.message, t);
|
|
3553
3553
|
if (r === void 0)
|
|
3554
3554
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3555
3555
|
return r;
|
|
@@ -3568,7 +3568,7 @@ var ei = (
|
|
|
3568
3568
|
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);
|
|
3569
3569
|
}
|
|
3570
3570
|
}, e.prototype.bumpIf = function(t) {
|
|
3571
|
-
if (
|
|
3571
|
+
if (Et(this.message, t, this.offset())) {
|
|
3572
3572
|
for (var r = 0; r < t.length; r++)
|
|
3573
3573
|
this.bump();
|
|
3574
3574
|
return !0;
|
|
@@ -3590,7 +3590,7 @@ var ei = (
|
|
|
3590
3590
|
break;
|
|
3591
3591
|
}
|
|
3592
3592
|
}, e.prototype.bumpSpace = function() {
|
|
3593
|
-
for (; !this.isEOF() &&
|
|
3593
|
+
for (; !this.isEOF() && sr(this.char()); )
|
|
3594
3594
|
this.bump();
|
|
3595
3595
|
}, e.prototype.peek = function() {
|
|
3596
3596
|
if (this.isEOF())
|
|
@@ -3600,47 +3600,47 @@ var ei = (
|
|
|
3600
3600
|
}, e;
|
|
3601
3601
|
}()
|
|
3602
3602
|
);
|
|
3603
|
-
function
|
|
3603
|
+
function Ye(e) {
|
|
3604
3604
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3605
3605
|
}
|
|
3606
|
-
function
|
|
3607
|
-
return
|
|
3606
|
+
function ni(e) {
|
|
3607
|
+
return Ye(e) || e === 47;
|
|
3608
3608
|
}
|
|
3609
|
-
function
|
|
3609
|
+
function ii(e) {
|
|
3610
3610
|
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;
|
|
3611
3611
|
}
|
|
3612
|
-
function
|
|
3612
|
+
function sr(e) {
|
|
3613
3613
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3614
3614
|
}
|
|
3615
|
-
function
|
|
3615
|
+
function oi(e) {
|
|
3616
3616
|
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;
|
|
3617
3617
|
}
|
|
3618
3618
|
function Je(e) {
|
|
3619
3619
|
e.forEach(function(t) {
|
|
3620
|
-
if (delete t.location,
|
|
3620
|
+
if (delete t.location, Yt(t) || Jt(t))
|
|
3621
3621
|
for (var r in t.options)
|
|
3622
3622
|
delete t.options[r].location, Je(t.options[r].value);
|
|
3623
3623
|
else
|
|
3624
|
-
|
|
3624
|
+
zt(t) && Kt(t.style) || (Zt(t) || Qt(t)) && We(t.style) ? delete t.style.location : qt(t) && Je(t.children);
|
|
3625
3625
|
});
|
|
3626
3626
|
}
|
|
3627
|
-
function
|
|
3628
|
-
t === void 0 && (t = {}), t =
|
|
3629
|
-
var r = new
|
|
3627
|
+
function si(e, t) {
|
|
3628
|
+
t === void 0 && (t = {}), t = be({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3629
|
+
var r = new ri(e, t).parse();
|
|
3630
3630
|
if (r.err) {
|
|
3631
3631
|
var n = SyntaxError(m[r.err.kind]);
|
|
3632
3632
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3633
3633
|
}
|
|
3634
3634
|
return t != null && t.captureLocation || Je(r.val), r.val;
|
|
3635
3635
|
}
|
|
3636
|
-
var
|
|
3636
|
+
var z;
|
|
3637
3637
|
(function(e) {
|
|
3638
3638
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3639
|
-
})(
|
|
3640
|
-
var
|
|
3639
|
+
})(z || (z = {}));
|
|
3640
|
+
var Se = (
|
|
3641
3641
|
/** @class */
|
|
3642
3642
|
function(e) {
|
|
3643
|
-
|
|
3643
|
+
xe(t, e);
|
|
3644
3644
|
function t(r, n, i) {
|
|
3645
3645
|
var o = e.call(this, r) || this;
|
|
3646
3646
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3649,48 +3649,48 @@ var xe = (
|
|
|
3649
3649
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3650
3650
|
}, t;
|
|
3651
3651
|
}(Error)
|
|
3652
|
-
),
|
|
3652
|
+
), Tt = (
|
|
3653
3653
|
/** @class */
|
|
3654
3654
|
function(e) {
|
|
3655
|
-
|
|
3655
|
+
xe(t, e);
|
|
3656
3656
|
function t(r, n, i, o) {
|
|
3657
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3657
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
|
|
3658
3658
|
}
|
|
3659
3659
|
return t;
|
|
3660
|
-
}(
|
|
3661
|
-
),
|
|
3660
|
+
}(Se)
|
|
3661
|
+
), ai = (
|
|
3662
3662
|
/** @class */
|
|
3663
3663
|
function(e) {
|
|
3664
|
-
|
|
3664
|
+
xe(t, e);
|
|
3665
3665
|
function t(r, n, i) {
|
|
3666
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3666
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
|
|
3667
3667
|
}
|
|
3668
3668
|
return t;
|
|
3669
|
-
}(
|
|
3670
|
-
),
|
|
3669
|
+
}(Se)
|
|
3670
|
+
), ui = (
|
|
3671
3671
|
/** @class */
|
|
3672
3672
|
function(e) {
|
|
3673
|
-
|
|
3673
|
+
xe(t, e);
|
|
3674
3674
|
function t(r, n) {
|
|
3675
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3675
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
|
|
3676
3676
|
}
|
|
3677
3677
|
return t;
|
|
3678
|
-
}(
|
|
3678
|
+
}(Se)
|
|
3679
3679
|
), E;
|
|
3680
3680
|
(function(e) {
|
|
3681
3681
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3682
3682
|
})(E || (E = {}));
|
|
3683
|
-
function
|
|
3683
|
+
function hi(e) {
|
|
3684
3684
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3685
3685
|
var n = t[t.length - 1];
|
|
3686
3686
|
return !n || n.type !== E.literal || r.type !== E.literal ? t.push(r) : n.value += r.value, t;
|
|
3687
3687
|
}, []);
|
|
3688
3688
|
}
|
|
3689
|
-
function
|
|
3689
|
+
function li(e) {
|
|
3690
3690
|
return typeof e == "function";
|
|
3691
3691
|
}
|
|
3692
|
-
function
|
|
3693
|
-
if (e.length === 1 &&
|
|
3692
|
+
function de(e, t, r, n, i, o, s) {
|
|
3693
|
+
if (e.length === 1 && yt(e[0]))
|
|
3694
3694
|
return [
|
|
3695
3695
|
{
|
|
3696
3696
|
type: E.literal,
|
|
@@ -3699,14 +3699,14 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3699
3699
|
];
|
|
3700
3700
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3701
3701
|
var l = u[h];
|
|
3702
|
-
if (
|
|
3702
|
+
if (yt(l)) {
|
|
3703
3703
|
a.push({
|
|
3704
3704
|
type: E.literal,
|
|
3705
3705
|
value: l.value
|
|
3706
3706
|
});
|
|
3707
3707
|
continue;
|
|
3708
3708
|
}
|
|
3709
|
-
if (
|
|
3709
|
+
if (Ln(l)) {
|
|
3710
3710
|
typeof o == "number" && a.push({
|
|
3711
3711
|
type: E.literal,
|
|
3712
3712
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3715,89 +3715,89 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3715
3715
|
}
|
|
3716
3716
|
var f = l.value;
|
|
3717
3717
|
if (!(i && f in i))
|
|
3718
|
-
throw new
|
|
3718
|
+
throw new ui(f, s);
|
|
3719
3719
|
var c = i[f];
|
|
3720
|
-
if (
|
|
3720
|
+
if (In(l)) {
|
|
3721
3721
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3722
3722
|
type: typeof c == "string" ? E.literal : E.object,
|
|
3723
3723
|
value: c
|
|
3724
3724
|
});
|
|
3725
3725
|
continue;
|
|
3726
3726
|
}
|
|
3727
|
-
if (
|
|
3728
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3727
|
+
if (Zt(l)) {
|
|
3728
|
+
var p = typeof l.style == "string" ? n.date[l.style] : We(l.style) ? l.style.parsedOptions : void 0;
|
|
3729
3729
|
a.push({
|
|
3730
3730
|
type: E.literal,
|
|
3731
3731
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3732
3732
|
});
|
|
3733
3733
|
continue;
|
|
3734
3734
|
}
|
|
3735
|
-
if (
|
|
3736
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3735
|
+
if (Qt(l)) {
|
|
3736
|
+
var p = typeof l.style == "string" ? n.time[l.style] : We(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3737
3737
|
a.push({
|
|
3738
3738
|
type: E.literal,
|
|
3739
3739
|
value: r.getDateTimeFormat(t, p).format(c)
|
|
3740
3740
|
});
|
|
3741
3741
|
continue;
|
|
3742
3742
|
}
|
|
3743
|
-
if (
|
|
3744
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3743
|
+
if (zt(l)) {
|
|
3744
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Kt(l.style) ? l.style.parsedOptions : void 0;
|
|
3745
3745
|
p && p.scale && (c = c * (p.scale || 1)), a.push({
|
|
3746
3746
|
type: E.literal,
|
|
3747
3747
|
value: r.getNumberFormat(t, p).format(c)
|
|
3748
3748
|
});
|
|
3749
3749
|
continue;
|
|
3750
3750
|
}
|
|
3751
|
-
if (
|
|
3752
|
-
var d = l.children,
|
|
3753
|
-
if (!
|
|
3754
|
-
throw new
|
|
3755
|
-
var
|
|
3756
|
-
return
|
|
3751
|
+
if (qt(l)) {
|
|
3752
|
+
var d = l.children, g = l.value, H = i[g];
|
|
3753
|
+
if (!li(H))
|
|
3754
|
+
throw new ai(g, "function", s);
|
|
3755
|
+
var R = de(d, t, r, n, i, o), C = H(R.map(function(I) {
|
|
3756
|
+
return I.value;
|
|
3757
3757
|
}));
|
|
3758
|
-
Array.isArray(
|
|
3758
|
+
Array.isArray(C) || (C = [C]), a.push.apply(a, C.map(function(I) {
|
|
3759
3759
|
return {
|
|
3760
|
-
type: typeof
|
|
3761
|
-
value:
|
|
3760
|
+
type: typeof I == "string" ? E.literal : E.object,
|
|
3761
|
+
value: I
|
|
3762
3762
|
};
|
|
3763
3763
|
}));
|
|
3764
3764
|
}
|
|
3765
|
-
if (
|
|
3766
|
-
var
|
|
3767
|
-
if (!
|
|
3768
|
-
throw new
|
|
3769
|
-
a.push.apply(a,
|
|
3765
|
+
if (Yt(l)) {
|
|
3766
|
+
var S = l.options[c] || l.options.other;
|
|
3767
|
+
if (!S)
|
|
3768
|
+
throw new Tt(l.value, c, Object.keys(l.options), s);
|
|
3769
|
+
a.push.apply(a, de(S.value, t, r, n, i));
|
|
3770
3770
|
continue;
|
|
3771
3771
|
}
|
|
3772
3772
|
if (Jt(l)) {
|
|
3773
|
-
var
|
|
3774
|
-
if (!
|
|
3773
|
+
var S = l.options["=".concat(c)];
|
|
3774
|
+
if (!S) {
|
|
3775
3775
|
if (!Intl.PluralRules)
|
|
3776
|
-
throw new
|
|
3776
|
+
throw new Se(`Intl.PluralRules is not available in this environment.
|
|
3777
3777
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3778
|
-
`,
|
|
3779
|
-
var
|
|
3780
|
-
|
|
3778
|
+
`, z.MISSING_INTL_API, s);
|
|
3779
|
+
var O = r.getPluralRules(t, { type: l.pluralType }).select(c - (l.offset || 0));
|
|
3780
|
+
S = l.options[O] || l.options.other;
|
|
3781
3781
|
}
|
|
3782
|
-
if (!
|
|
3783
|
-
throw new
|
|
3784
|
-
a.push.apply(a,
|
|
3782
|
+
if (!S)
|
|
3783
|
+
throw new Tt(l.value, c, Object.keys(l.options), s);
|
|
3784
|
+
a.push.apply(a, de(S.value, t, r, n, i, c - (l.offset || 0)));
|
|
3785
3785
|
continue;
|
|
3786
3786
|
}
|
|
3787
3787
|
}
|
|
3788
|
-
return
|
|
3788
|
+
return hi(a);
|
|
3789
3789
|
}
|
|
3790
|
-
function
|
|
3790
|
+
function ci(e, t) {
|
|
3791
3791
|
return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3792
3792
|
return r[n] = P(P({}, e[n]), t[n] || {}), r;
|
|
3793
3793
|
}, {})) : e;
|
|
3794
3794
|
}
|
|
3795
|
-
function
|
|
3795
|
+
function fi(e, t) {
|
|
3796
3796
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3797
|
-
return r[n] =
|
|
3797
|
+
return r[n] = ci(e[n], t[n]), r;
|
|
3798
3798
|
}, P({}, e)) : e;
|
|
3799
3799
|
}
|
|
3800
|
-
function
|
|
3800
|
+
function Ce(e) {
|
|
3801
3801
|
return {
|
|
3802
3802
|
create: function() {
|
|
3803
3803
|
return {
|
|
@@ -3811,39 +3811,39 @@ function Ne(e) {
|
|
|
3811
3811
|
}
|
|
3812
3812
|
};
|
|
3813
3813
|
}
|
|
3814
|
-
function
|
|
3814
|
+
function pi(e) {
|
|
3815
3815
|
return e === void 0 && (e = {
|
|
3816
3816
|
number: {},
|
|
3817
3817
|
dateTime: {},
|
|
3818
3818
|
pluralRules: {}
|
|
3819
3819
|
}), {
|
|
3820
|
-
getNumberFormat:
|
|
3820
|
+
getNumberFormat: Ie(function() {
|
|
3821
3821
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3822
3822
|
r[n] = arguments[n];
|
|
3823
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3823
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3824
3824
|
}, {
|
|
3825
|
-
cache:
|
|
3826
|
-
strategy:
|
|
3825
|
+
cache: Ce(e.number),
|
|
3826
|
+
strategy: Le.variadic
|
|
3827
3827
|
}),
|
|
3828
|
-
getDateTimeFormat:
|
|
3828
|
+
getDateTimeFormat: Ie(function() {
|
|
3829
3829
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3830
3830
|
r[n] = arguments[n];
|
|
3831
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3831
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3832
3832
|
}, {
|
|
3833
|
-
cache:
|
|
3834
|
-
strategy:
|
|
3833
|
+
cache: Ce(e.dateTime),
|
|
3834
|
+
strategy: Le.variadic
|
|
3835
3835
|
}),
|
|
3836
|
-
getPluralRules:
|
|
3836
|
+
getPluralRules: Ie(function() {
|
|
3837
3837
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3838
3838
|
r[n] = arguments[n];
|
|
3839
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3839
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Oe([void 0], r, !1)))();
|
|
3840
3840
|
}, {
|
|
3841
|
-
cache:
|
|
3842
|
-
strategy:
|
|
3841
|
+
cache: Ce(e.pluralRules),
|
|
3842
|
+
strategy: Le.variadic
|
|
3843
3843
|
})
|
|
3844
3844
|
};
|
|
3845
3845
|
}
|
|
3846
|
-
var
|
|
3846
|
+
var di = (
|
|
3847
3847
|
/** @class */
|
|
3848
3848
|
function() {
|
|
3849
3849
|
function e(t, r, n, i) {
|
|
@@ -3862,7 +3862,7 @@ var fi = (
|
|
|
3862
3862
|
}, []);
|
|
3863
3863
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3864
3864
|
}, this.formatToParts = function(h) {
|
|
3865
|
-
return
|
|
3865
|
+
return de(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3866
3866
|
}, this.resolvedOptions = function() {
|
|
3867
3867
|
var h;
|
|
3868
3868
|
return {
|
|
@@ -3875,13 +3875,13 @@ var fi = (
|
|
|
3875
3875
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3876
3876
|
var s = i || {};
|
|
3877
3877
|
s.formatters;
|
|
3878
|
-
var a =
|
|
3878
|
+
var a = Sn(s, ["formatters"]);
|
|
3879
3879
|
this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
|
|
3880
3880
|
} else
|
|
3881
3881
|
this.ast = t;
|
|
3882
3882
|
if (!Array.isArray(this.ast))
|
|
3883
3883
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3884
|
-
this.formats =
|
|
3884
|
+
this.formats = fi(e.formats, n), this.formatters = i && i.formatters || pi(this.formatterCache);
|
|
3885
3885
|
}
|
|
3886
3886
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3887
3887
|
get: function() {
|
|
@@ -3894,7 +3894,7 @@ var fi = (
|
|
|
3894
3894
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3895
3895
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3896
3896
|
}
|
|
3897
|
-
}, e.__parse =
|
|
3897
|
+
}, e.__parse = si, e.formats = {
|
|
3898
3898
|
number: {
|
|
3899
3899
|
integer: {
|
|
3900
3900
|
maximumFractionDigits: 0
|
|
@@ -3955,7 +3955,7 @@ var fi = (
|
|
|
3955
3955
|
}, e;
|
|
3956
3956
|
}()
|
|
3957
3957
|
);
|
|
3958
|
-
function
|
|
3958
|
+
function mi(e, t) {
|
|
3959
3959
|
if (t == null)
|
|
3960
3960
|
return;
|
|
3961
3961
|
if (t in e)
|
|
@@ -3976,92 +3976,92 @@ function pi(e, t) {
|
|
|
3976
3976
|
n = void 0;
|
|
3977
3977
|
return n;
|
|
3978
3978
|
}
|
|
3979
|
-
const
|
|
3979
|
+
const $ = {}, bi = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), ar = (e, t) => {
|
|
3980
3980
|
if (t == null)
|
|
3981
3981
|
return;
|
|
3982
|
-
if (t in
|
|
3983
|
-
return
|
|
3984
|
-
const r =
|
|
3982
|
+
if (t in $ && e in $[t])
|
|
3983
|
+
return $[t][e];
|
|
3984
|
+
const r = Te(t);
|
|
3985
3985
|
for (let n = 0; n < r.length; n++) {
|
|
3986
|
-
const i = r[n], o =
|
|
3986
|
+
const i = r[n], o = gi(i, e);
|
|
3987
3987
|
if (o)
|
|
3988
|
-
return
|
|
3988
|
+
return bi(e, t, o);
|
|
3989
3989
|
}
|
|
3990
3990
|
};
|
|
3991
|
-
let
|
|
3992
|
-
const
|
|
3993
|
-
function
|
|
3994
|
-
return
|
|
3991
|
+
let tt;
|
|
3992
|
+
const ue = Ee({});
|
|
3993
|
+
function yi(e) {
|
|
3994
|
+
return tt[e] || null;
|
|
3995
3995
|
}
|
|
3996
|
-
function
|
|
3997
|
-
return e in
|
|
3996
|
+
function ur(e) {
|
|
3997
|
+
return e in tt;
|
|
3998
3998
|
}
|
|
3999
|
-
function
|
|
4000
|
-
if (!
|
|
3999
|
+
function gi(e, t) {
|
|
4000
|
+
if (!ur(e))
|
|
4001
4001
|
return null;
|
|
4002
|
-
const r =
|
|
4003
|
-
return
|
|
4002
|
+
const r = yi(e);
|
|
4003
|
+
return mi(r, t);
|
|
4004
4004
|
}
|
|
4005
|
-
function
|
|
4005
|
+
function vi(e) {
|
|
4006
4006
|
if (e == null)
|
|
4007
4007
|
return;
|
|
4008
|
-
const t =
|
|
4008
|
+
const t = Te(e);
|
|
4009
4009
|
for (let r = 0; r < t.length; r++) {
|
|
4010
4010
|
const n = t[r];
|
|
4011
|
-
if (
|
|
4011
|
+
if (ur(n))
|
|
4012
4012
|
return n;
|
|
4013
4013
|
}
|
|
4014
4014
|
}
|
|
4015
|
-
function
|
|
4016
|
-
delete
|
|
4015
|
+
function hr(e, ...t) {
|
|
4016
|
+
delete $[e], ue.update((r) => (r[e] = xn.all([r[e] || {}, ...t]), r));
|
|
4017
4017
|
}
|
|
4018
|
-
|
|
4019
|
-
[
|
|
4018
|
+
Y(
|
|
4019
|
+
[ue],
|
|
4020
4020
|
([e]) => Object.keys(e)
|
|
4021
4021
|
);
|
|
4022
|
-
|
|
4023
|
-
const
|
|
4024
|
-
function
|
|
4025
|
-
|
|
4022
|
+
ue.subscribe((e) => tt = e);
|
|
4023
|
+
const me = {};
|
|
4024
|
+
function _i(e, t) {
|
|
4025
|
+
me[e].delete(t), me[e].size === 0 && delete me[e];
|
|
4026
4026
|
}
|
|
4027
|
-
function
|
|
4028
|
-
return
|
|
4027
|
+
function lr(e) {
|
|
4028
|
+
return me[e];
|
|
4029
4029
|
}
|
|
4030
|
-
function
|
|
4031
|
-
return
|
|
4032
|
-
const r =
|
|
4030
|
+
function Ei(e) {
|
|
4031
|
+
return Te(e).map((t) => {
|
|
4032
|
+
const r = lr(t);
|
|
4033
4033
|
return [t, r ? [...r] : []];
|
|
4034
4034
|
}).filter(([, t]) => t.length > 0);
|
|
4035
4035
|
}
|
|
4036
|
-
function
|
|
4037
|
-
return e == null ? !1 :
|
|
4036
|
+
function qe(e) {
|
|
4037
|
+
return e == null ? !1 : Te(e).some(
|
|
4038
4038
|
(t) => {
|
|
4039
4039
|
var r;
|
|
4040
|
-
return (r =
|
|
4040
|
+
return (r = lr(t)) == null ? void 0 : r.size;
|
|
4041
4041
|
}
|
|
4042
4042
|
);
|
|
4043
4043
|
}
|
|
4044
|
-
function
|
|
4044
|
+
function xi(e, t) {
|
|
4045
4045
|
return Promise.all(
|
|
4046
|
-
t.map((n) => (
|
|
4047
|
-
).then((n) =>
|
|
4048
|
-
}
|
|
4049
|
-
const
|
|
4050
|
-
function
|
|
4051
|
-
if (!
|
|
4052
|
-
return e in
|
|
4053
|
-
const t =
|
|
4054
|
-
return
|
|
4046
|
+
t.map((n) => (_i(e, n), n().then((i) => i.default || i)))
|
|
4047
|
+
).then((n) => hr(e, ...n));
|
|
4048
|
+
}
|
|
4049
|
+
const ee = {};
|
|
4050
|
+
function cr(e) {
|
|
4051
|
+
if (!qe(e))
|
|
4052
|
+
return e in ee ? ee[e] : Promise.resolve();
|
|
4053
|
+
const t = Ei(e);
|
|
4054
|
+
return ee[e] = Promise.all(
|
|
4055
4055
|
t.map(
|
|
4056
|
-
([r, n]) =>
|
|
4056
|
+
([r, n]) => xi(r, n)
|
|
4057
4057
|
)
|
|
4058
4058
|
).then(() => {
|
|
4059
|
-
if (
|
|
4060
|
-
return
|
|
4061
|
-
delete
|
|
4062
|
-
}),
|
|
4059
|
+
if (qe(e))
|
|
4060
|
+
return cr(e);
|
|
4061
|
+
delete ee[e];
|
|
4062
|
+
}), ee[e];
|
|
4063
4063
|
}
|
|
4064
|
-
const
|
|
4064
|
+
const Si = {
|
|
4065
4065
|
number: {
|
|
4066
4066
|
scientific: { notation: "scientific" },
|
|
4067
4067
|
engineering: { notation: "engineering" },
|
|
@@ -4090,135 +4090,135 @@ const Ei = {
|
|
|
4090
4090
|
timeZoneName: "short"
|
|
4091
4091
|
}
|
|
4092
4092
|
}
|
|
4093
|
-
},
|
|
4093
|
+
}, Ti = {
|
|
4094
4094
|
fallbackLocale: null,
|
|
4095
4095
|
loadingDelay: 200,
|
|
4096
|
-
formats:
|
|
4096
|
+
formats: Si,
|
|
4097
4097
|
warnOnMissingMessages: !0,
|
|
4098
4098
|
handleMissingMessage: void 0,
|
|
4099
4099
|
ignoreTag: !0
|
|
4100
|
-
},
|
|
4101
|
-
function
|
|
4102
|
-
return
|
|
4100
|
+
}, wi = Ti;
|
|
4101
|
+
function Z() {
|
|
4102
|
+
return wi;
|
|
4103
4103
|
}
|
|
4104
|
-
const Me =
|
|
4105
|
-
var
|
|
4104
|
+
const Me = Ee(!1);
|
|
4105
|
+
var Hi = Object.defineProperty, Bi = Object.defineProperties, Ai = Object.getOwnPropertyDescriptors, wt = Object.getOwnPropertySymbols, Pi = Object.prototype.hasOwnProperty, Oi = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? Hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ii = (e, t) => {
|
|
4106
4106
|
for (var r in t || (t = {}))
|
|
4107
|
-
|
|
4108
|
-
if (
|
|
4109
|
-
for (var r of
|
|
4110
|
-
|
|
4107
|
+
Pi.call(t, r) && Ht(e, r, t[r]);
|
|
4108
|
+
if (wt)
|
|
4109
|
+
for (var r of wt(t))
|
|
4110
|
+
Oi.call(t, r) && Ht(e, r, t[r]);
|
|
4111
4111
|
return e;
|
|
4112
|
-
},
|
|
4113
|
-
let
|
|
4114
|
-
const
|
|
4112
|
+
}, Li = (e, t) => Bi(e, Ai(t));
|
|
4113
|
+
let Ke;
|
|
4114
|
+
const ye = Ee(null);
|
|
4115
4115
|
function Bt(e) {
|
|
4116
4116
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4117
4117
|
}
|
|
4118
|
-
function
|
|
4118
|
+
function Te(e, t = Z().fallbackLocale) {
|
|
4119
4119
|
const r = Bt(e);
|
|
4120
4120
|
return t ? [.../* @__PURE__ */ new Set([...r, ...Bt(t)])] : r;
|
|
4121
4121
|
}
|
|
4122
4122
|
function U() {
|
|
4123
|
-
return
|
|
4123
|
+
return Ke != null ? Ke : void 0;
|
|
4124
4124
|
}
|
|
4125
|
-
|
|
4126
|
-
|
|
4125
|
+
ye.subscribe((e) => {
|
|
4126
|
+
Ke = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4127
4127
|
});
|
|
4128
|
-
const
|
|
4129
|
-
if (e &&
|
|
4130
|
-
const { loadingDelay: t } =
|
|
4128
|
+
const Ni = (e) => {
|
|
4129
|
+
if (e && vi(e) && qe(e)) {
|
|
4130
|
+
const { loadingDelay: t } = Z();
|
|
4131
4131
|
let r;
|
|
4132
4132
|
return typeof window != "undefined" && U() != null && t ? r = window.setTimeout(
|
|
4133
4133
|
() => Me.set(!0),
|
|
4134
4134
|
t
|
|
4135
|
-
) : Me.set(!0),
|
|
4136
|
-
|
|
4135
|
+
) : Me.set(!0), cr(e).then(() => {
|
|
4136
|
+
ye.set(e);
|
|
4137
4137
|
}).finally(() => {
|
|
4138
4138
|
clearTimeout(r), Me.set(!1);
|
|
4139
4139
|
});
|
|
4140
4140
|
}
|
|
4141
|
-
return
|
|
4142
|
-
}, J =
|
|
4143
|
-
set:
|
|
4144
|
-
}),
|
|
4141
|
+
return ye.set(e);
|
|
4142
|
+
}, J = Li(Ii({}, ye), {
|
|
4143
|
+
set: Ni
|
|
4144
|
+
}), we = (e) => {
|
|
4145
4145
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4146
4146
|
return (n) => {
|
|
4147
4147
|
const i = JSON.stringify(n);
|
|
4148
4148
|
return i in t ? t[i] : t[i] = e(n);
|
|
4149
4149
|
};
|
|
4150
4150
|
};
|
|
4151
|
-
var
|
|
4151
|
+
var Ci = Object.defineProperty, ge = Object.getOwnPropertySymbols, fr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable, At = (e, t, r) => t in e ? Ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
|
|
4152
4152
|
for (var r in t || (t = {}))
|
|
4153
|
-
|
|
4153
|
+
fr.call(t, r) && At(e, r, t[r]);
|
|
4154
4154
|
if (ge)
|
|
4155
4155
|
for (var r of ge(t))
|
|
4156
|
-
|
|
4156
|
+
pr.call(t, r) && At(e, r, t[r]);
|
|
4157
4157
|
return e;
|
|
4158
|
-
},
|
|
4158
|
+
}, q = (e, t) => {
|
|
4159
4159
|
var r = {};
|
|
4160
4160
|
for (var n in e)
|
|
4161
|
-
|
|
4161
|
+
fr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4162
4162
|
if (e != null && ge)
|
|
4163
4163
|
for (var n of ge(e))
|
|
4164
|
-
t.indexOf(n) < 0 &&
|
|
4164
|
+
t.indexOf(n) < 0 && pr.call(e, n) && (r[n] = e[n]);
|
|
4165
4165
|
return r;
|
|
4166
4166
|
};
|
|
4167
|
-
const
|
|
4168
|
-
const { formats: r } =
|
|
4167
|
+
const ie = (e, t) => {
|
|
4168
|
+
const { formats: r } = Z();
|
|
4169
4169
|
if (e in r && t in r[e])
|
|
4170
4170
|
return r[e][t];
|
|
4171
4171
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4172
|
-
},
|
|
4172
|
+
}, Mi = we(
|
|
4173
4173
|
(e) => {
|
|
4174
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4174
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4175
4175
|
if (r == null)
|
|
4176
4176
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4177
|
-
return n && (i =
|
|
4177
|
+
return n && (i = ie("number", n)), new Intl.NumberFormat(r, i);
|
|
4178
4178
|
}
|
|
4179
|
-
),
|
|
4179
|
+
), $i = we(
|
|
4180
4180
|
(e) => {
|
|
4181
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4181
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4182
4182
|
if (r == null)
|
|
4183
4183
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4184
|
-
return n ? i =
|
|
4184
|
+
return n ? i = ie("date", n) : Object.keys(i).length === 0 && (i = ie("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4185
4185
|
}
|
|
4186
|
-
),
|
|
4186
|
+
), Ri = we(
|
|
4187
4187
|
(e) => {
|
|
4188
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4188
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4189
4189
|
if (r == null)
|
|
4190
4190
|
throw new Error(
|
|
4191
4191
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4192
4192
|
);
|
|
4193
|
-
return n ? i =
|
|
4193
|
+
return n ? i = ie("time", n) : Object.keys(i).length === 0 && (i = ie("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4194
4194
|
}
|
|
4195
|
-
),
|
|
4195
|
+
), Ui = (e = {}) => {
|
|
4196
4196
|
var t = e, {
|
|
4197
4197
|
locale: r = U()
|
|
4198
|
-
} = t, n =
|
|
4198
|
+
} = t, n = q(t, [
|
|
4199
4199
|
"locale"
|
|
4200
4200
|
]);
|
|
4201
|
-
return
|
|
4202
|
-
},
|
|
4201
|
+
return Mi(rt({ locale: r }, n));
|
|
4202
|
+
}, Gi = (e = {}) => {
|
|
4203
4203
|
var t = e, {
|
|
4204
4204
|
locale: r = U()
|
|
4205
|
-
} = t, n =
|
|
4205
|
+
} = t, n = q(t, [
|
|
4206
4206
|
"locale"
|
|
4207
4207
|
]);
|
|
4208
|
-
return
|
|
4209
|
-
},
|
|
4208
|
+
return $i(rt({ locale: r }, n));
|
|
4209
|
+
}, Di = (e = {}) => {
|
|
4210
4210
|
var t = e, {
|
|
4211
4211
|
locale: r = U()
|
|
4212
|
-
} = t, n =
|
|
4212
|
+
} = t, n = q(t, [
|
|
4213
4213
|
"locale"
|
|
4214
4214
|
]);
|
|
4215
|
-
return
|
|
4216
|
-
},
|
|
4215
|
+
return Ri(rt({ locale: r }, n));
|
|
4216
|
+
}, Fi = we(
|
|
4217
4217
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4218
|
-
(e, t = U()) => new
|
|
4219
|
-
ignoreTag:
|
|
4218
|
+
(e, t = U()) => new di(e, t, Z().formats, {
|
|
4219
|
+
ignoreTag: Z().ignoreTag
|
|
4220
4220
|
})
|
|
4221
|
-
),
|
|
4221
|
+
), ji = (e, t = {}) => {
|
|
4222
4222
|
var r, n, i, o;
|
|
4223
4223
|
let s = t;
|
|
4224
4224
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4231,9 +4231,9 @@ const ne = (e, t) => {
|
|
|
4231
4231
|
throw new Error(
|
|
4232
4232
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4233
4233
|
);
|
|
4234
|
-
let l =
|
|
4234
|
+
let l = ar(e, h);
|
|
4235
4235
|
if (!l)
|
|
4236
|
-
l = (o = (i = (n = (r =
|
|
4236
|
+
l = (o = (i = (n = (r = Z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4237
4237
|
else if (typeof l != "string")
|
|
4238
4238
|
return console.warn(
|
|
4239
4239
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4242,7 +4242,7 @@ const ne = (e, t) => {
|
|
|
4242
4242
|
return l;
|
|
4243
4243
|
let f = l;
|
|
4244
4244
|
try {
|
|
4245
|
-
f =
|
|
4245
|
+
f = Fi(l, h).format(a);
|
|
4246
4246
|
} catch (c) {
|
|
4247
4247
|
c instanceof Error && console.warn(
|
|
4248
4248
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4250,15 +4250,15 @@ const ne = (e, t) => {
|
|
|
4250
4250
|
);
|
|
4251
4251
|
}
|
|
4252
4252
|
return f;
|
|
4253
|
-
},
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
window.emWidgets = { topic:
|
|
4259
|
-
const
|
|
4253
|
+
}, ki = (e, t) => Di(t).format(e), Vi = (e, t) => Gi(t).format(e), Xi = (e, t) => Ui(t).format(e), Wi = (e, t = U()) => ar(e, t), zi = Y([J, ue], () => ji);
|
|
4254
|
+
Y([J], () => ki);
|
|
4255
|
+
Y([J], () => Vi);
|
|
4256
|
+
Y([J], () => Xi);
|
|
4257
|
+
Y([J, ue], () => Wi);
|
|
4258
|
+
window.emWidgets = { topic: on };
|
|
4259
|
+
const Zi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4260
4260
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4261
|
-
const
|
|
4261
|
+
const Qi = (e, t = {}) => {
|
|
4262
4262
|
const r = new CustomEvent("track-custom-event", {
|
|
4263
4263
|
detail: {
|
|
4264
4264
|
type: e,
|
|
@@ -4269,13 +4269,13 @@ const zi = (e, t = {}) => {
|
|
|
4269
4269
|
});
|
|
4270
4270
|
document.dispatchEvent(r);
|
|
4271
4271
|
};
|
|
4272
|
-
function
|
|
4273
|
-
|
|
4272
|
+
function Pt(e, t) {
|
|
4273
|
+
hr(e, t);
|
|
4274
4274
|
}
|
|
4275
|
-
function
|
|
4275
|
+
function Yi(e) {
|
|
4276
4276
|
J.set(e);
|
|
4277
4277
|
}
|
|
4278
|
-
const
|
|
4278
|
+
const Ot = {
|
|
4279
4279
|
en: {
|
|
4280
4280
|
logoutButton: "Logout"
|
|
4281
4281
|
},
|
|
@@ -4309,14 +4309,14 @@ const Pt = {
|
|
|
4309
4309
|
"en-us": {
|
|
4310
4310
|
logoutButton: "Logout"
|
|
4311
4311
|
}
|
|
4312
|
-
};
|
|
4313
|
-
function
|
|
4312
|
+
}, k = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
4313
|
+
function It(e, t) {
|
|
4314
4314
|
if (e) {
|
|
4315
4315
|
const r = document.createElement("style");
|
|
4316
4316
|
r.innerHTML = t, e.appendChild(r);
|
|
4317
4317
|
}
|
|
4318
4318
|
}
|
|
4319
|
-
function
|
|
4319
|
+
function Ji(e, t) {
|
|
4320
4320
|
if (!e || !t)
|
|
4321
4321
|
return;
|
|
4322
4322
|
const r = new URL(t);
|
|
@@ -4327,28 +4327,56 @@ function Qi(e, t) {
|
|
|
4327
4327
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4328
4328
|
});
|
|
4329
4329
|
}
|
|
4330
|
-
function
|
|
4331
|
-
if (window.emMessageBus)
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4330
|
+
function qi(e, t, r, n = !1) {
|
|
4331
|
+
if (!window.emMessageBus)
|
|
4332
|
+
return;
|
|
4333
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
4334
|
+
return r = Ki(e, t), r;
|
|
4335
|
+
window[k] || (window[k] = {}), r = eo(e, t);
|
|
4336
|
+
const o = r.unsubscribe.bind(r), s = () => {
|
|
4337
|
+
if (window[k][t]) {
|
|
4338
|
+
const a = window[k][t];
|
|
4339
|
+
a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[k][t];
|
|
4340
|
+
}
|
|
4341
|
+
o();
|
|
4342
|
+
};
|
|
4343
|
+
return r.unsubscribe = s, r;
|
|
4344
|
+
}
|
|
4345
|
+
function Ki(e, t) {
|
|
4346
|
+
const r = document.createElement("style");
|
|
4347
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
4348
|
+
e && (r.innerHTML = n, e.appendChild(r));
|
|
4349
|
+
});
|
|
4350
|
+
}
|
|
4351
|
+
function eo(e, t) {
|
|
4352
|
+
return window.emMessageBus.subscribe(t, (r) => {
|
|
4353
|
+
var a;
|
|
4354
|
+
if (!e)
|
|
4355
|
+
return;
|
|
4356
|
+
const n = e.getRootNode(), i = window[k];
|
|
4357
|
+
let o = (a = i[t]) == null ? void 0 : a.sheet;
|
|
4358
|
+
o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
|
|
4359
|
+
sheet: o,
|
|
4360
|
+
refCount: 1
|
|
4335
4361
|
});
|
|
4336
|
-
|
|
4362
|
+
const s = n.adoptedStyleSheets || [];
|
|
4363
|
+
s.includes(o) || (n.adoptedStyleSheets = [...s, o]);
|
|
4364
|
+
});
|
|
4337
4365
|
}
|
|
4338
|
-
function
|
|
4339
|
-
|
|
4366
|
+
function to(e) {
|
|
4367
|
+
Sr(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
|
|
4340
4368
|
}
|
|
4341
|
-
function
|
|
4369
|
+
function ro(e) {
|
|
4342
4370
|
let t, r, n, i = (
|
|
4343
4371
|
/*$_*/
|
|
4344
4372
|
e[2]("logoutButton") + ""
|
|
4345
4373
|
), o, s, a;
|
|
4346
4374
|
return {
|
|
4347
4375
|
c() {
|
|
4348
|
-
t =
|
|
4376
|
+
t = L("div"), r = L("button"), n = L("span"), o = ve(i), w(t, "class", "GeneralLogout");
|
|
4349
4377
|
},
|
|
4350
4378
|
m(h, u) {
|
|
4351
|
-
|
|
4379
|
+
se(h, t, u), x(t, r), x(r, n), x(n, o), s || (a = Mt(
|
|
4352
4380
|
r,
|
|
4353
4381
|
"click",
|
|
4354
4382
|
/*click_handler_1*/
|
|
@@ -4358,29 +4386,29 @@ function qi(e) {
|
|
|
4358
4386
|
p(h, u) {
|
|
4359
4387
|
u & /*$_*/
|
|
4360
4388
|
4 && i !== (i = /*$_*/
|
|
4361
|
-
h[2]("logoutButton") + "") &&
|
|
4389
|
+
h[2]("logoutButton") + "") && $t(o, i);
|
|
4362
4390
|
},
|
|
4363
4391
|
d(h) {
|
|
4364
|
-
h &&
|
|
4392
|
+
h && Q(t), s = !1, a();
|
|
4365
4393
|
}
|
|
4366
4394
|
};
|
|
4367
4395
|
}
|
|
4368
|
-
function
|
|
4396
|
+
function no(e) {
|
|
4369
4397
|
let t, r, n, i, o, s, a, h, u, l, f, c = !/*isMobile*/
|
|
4370
|
-
e[3] &&
|
|
4398
|
+
e[3] && io(e);
|
|
4371
4399
|
return {
|
|
4372
4400
|
c() {
|
|
4373
|
-
t =
|
|
4401
|
+
t = L("p"), r = L("span"), n = K("svg"), i = K("defs"), o = K("style"), s = ve(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), a = K("path"), h = K("path"), u = Hr(), c && c.c(), w(a, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), w(a, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), w(h, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), w(h, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), w(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), w(n, "data-name", "Layer 1"), w(n, "xmlns", "http://www.w3.org/2000/svg"), w(n, "viewBox", "0 0 150 150"), Ar(r, "width", /*isMobile*/
|
|
4374
4402
|
e[3] ? (
|
|
4375
4403
|
/*mediaQuery*/
|
|
4376
4404
|
e[4].matches ? "20px" : "24px"
|
|
4377
|
-
) : "20px"),
|
|
4405
|
+
) : "20px"), w(t, "class", "PlayerAccountMenuItemBox " + /*isMobile*/
|
|
4378
4406
|
(e[3] ? "PlayerAccountMenuItemBoxMobile" : "") + " " + /*mediaQuery*/
|
|
4379
4407
|
(e[4].matches && /*isMobile*/
|
|
4380
4408
|
e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
|
|
4381
4409
|
},
|
|
4382
4410
|
m(p, d) {
|
|
4383
|
-
|
|
4411
|
+
se(p, t, d), x(t, r), x(r, n), x(n, i), x(i, o), x(o, s), x(n, a), x(n, h), x(t, u), c && c.m(t, null), l || (f = Mt(
|
|
4384
4412
|
t,
|
|
4385
4413
|
"click",
|
|
4386
4414
|
/*click_handler*/
|
|
@@ -4392,110 +4420,110 @@ function Ki(e) {
|
|
|
4392
4420
|
p[3] || c.p(p, d);
|
|
4393
4421
|
},
|
|
4394
4422
|
d(p) {
|
|
4395
|
-
p &&
|
|
4423
|
+
p && Q(t), c && c.d(), l = !1, f();
|
|
4396
4424
|
}
|
|
4397
4425
|
};
|
|
4398
4426
|
}
|
|
4399
|
-
function
|
|
4427
|
+
function io(e) {
|
|
4400
4428
|
let t, r = (
|
|
4401
4429
|
/*$_*/
|
|
4402
4430
|
e[2]("logoutButton") + ""
|
|
4403
4431
|
), n;
|
|
4404
4432
|
return {
|
|
4405
4433
|
c() {
|
|
4406
|
-
t =
|
|
4434
|
+
t = L("span"), n = ve(r), w(t, "class", "PlayerLogoutText");
|
|
4407
4435
|
},
|
|
4408
4436
|
m(i, o) {
|
|
4409
|
-
|
|
4437
|
+
se(i, t, o), x(t, n);
|
|
4410
4438
|
},
|
|
4411
4439
|
p(i, o) {
|
|
4412
4440
|
o & /*$_*/
|
|
4413
4441
|
4 && r !== (r = /*$_*/
|
|
4414
|
-
i[2]("logoutButton") + "") &&
|
|
4442
|
+
i[2]("logoutButton") + "") && $t(n, r);
|
|
4415
4443
|
},
|
|
4416
4444
|
d(i) {
|
|
4417
|
-
i &&
|
|
4445
|
+
i && Q(t);
|
|
4418
4446
|
}
|
|
4419
4447
|
};
|
|
4420
4448
|
}
|
|
4421
|
-
function
|
|
4449
|
+
function oo(e) {
|
|
4422
4450
|
let t;
|
|
4423
4451
|
function r(o, s) {
|
|
4424
4452
|
return (
|
|
4425
4453
|
/*buttonlocation*/
|
|
4426
|
-
o[0] === "PlayerAccountMenu" ?
|
|
4454
|
+
o[0] === "PlayerAccountMenu" ? no : ro
|
|
4427
4455
|
);
|
|
4428
4456
|
}
|
|
4429
4457
|
let n = r(e), i = n(e);
|
|
4430
4458
|
return {
|
|
4431
4459
|
c() {
|
|
4432
|
-
t =
|
|
4460
|
+
t = L("div"), i.c();
|
|
4433
4461
|
},
|
|
4434
4462
|
m(o, s) {
|
|
4435
|
-
|
|
4463
|
+
se(o, t, s), i.m(t, null), e[15](t);
|
|
4436
4464
|
},
|
|
4437
4465
|
p(o, [s]) {
|
|
4438
4466
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
4439
4467
|
},
|
|
4440
|
-
i:
|
|
4441
|
-
o:
|
|
4468
|
+
i: B,
|
|
4469
|
+
o: B,
|
|
4442
4470
|
d(o) {
|
|
4443
|
-
o &&
|
|
4471
|
+
o && Q(t), i.d(), e[15](null);
|
|
4444
4472
|
}
|
|
4445
4473
|
};
|
|
4446
4474
|
}
|
|
4447
|
-
function
|
|
4475
|
+
function so(e, t, r) {
|
|
4448
4476
|
let n;
|
|
4449
|
-
|
|
4450
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, c = "", p = !1, d,
|
|
4451
|
-
const
|
|
4477
|
+
xr(e, zi, (y) => r(2, n = y));
|
|
4478
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: s = "" } = t, { lang: a = "" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, c = "", p = !1, d, g, H = window.navigator.userAgent, R = Zi(H) !== "PC";
|
|
4479
|
+
const C = window.matchMedia("(min-width: 768px)"), S = () => {
|
|
4452
4480
|
fetch(f).then((M) => M.json()).then((M) => {
|
|
4453
4481
|
Object.keys(M).forEach((He) => {
|
|
4454
|
-
|
|
4482
|
+
Pt(He, M[He]);
|
|
4455
4483
|
});
|
|
4456
4484
|
}).catch((M) => {
|
|
4457
4485
|
console.log(M);
|
|
4458
4486
|
});
|
|
4459
4487
|
};
|
|
4460
|
-
Object.keys(
|
|
4461
|
-
|
|
4488
|
+
Object.keys(Ot).forEach((y) => {
|
|
4489
|
+
Pt(y, Ot[y]);
|
|
4462
4490
|
});
|
|
4463
|
-
const
|
|
4464
|
-
let
|
|
4465
|
-
|
|
4466
|
-
let M = { method: "DELETE", headers:
|
|
4491
|
+
const O = () => {
|
|
4492
|
+
let y = new Headers();
|
|
4493
|
+
y.append("Content-type", "application/json"), y.append("X-SessionID", o);
|
|
4494
|
+
let M = { method: "DELETE", headers: y };
|
|
4467
4495
|
fetch(`${i}/v1/player/session/player`, M).then((He) => {
|
|
4468
|
-
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href),
|
|
4496
|
+
window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), Qi("logged_out", {});
|
|
4469
4497
|
});
|
|
4470
|
-
},
|
|
4471
|
-
|
|
4498
|
+
}, I = () => (i || (c = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", p = !0, console.error(c)), o || (c = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", p = !0, console.error(c)), p), G = () => {
|
|
4499
|
+
Yi(a);
|
|
4472
4500
|
};
|
|
4473
|
-
|
|
4501
|
+
Ir(() => () => {
|
|
4474
4502
|
});
|
|
4475
|
-
const
|
|
4476
|
-
function
|
|
4477
|
-
|
|
4478
|
-
d =
|
|
4503
|
+
const he = () => O(), dr = () => O();
|
|
4504
|
+
function mr(y) {
|
|
4505
|
+
$e[y ? "unshift" : "push"](() => {
|
|
4506
|
+
d = y, r(1, d);
|
|
4479
4507
|
});
|
|
4480
4508
|
}
|
|
4481
|
-
return e.$$set = (
|
|
4482
|
-
"endpoint" in
|
|
4509
|
+
return e.$$set = (y) => {
|
|
4510
|
+
"endpoint" in y && r(6, i = y.endpoint), "session" in y && r(7, o = y.session), "buttonlocation" in y && r(0, s = y.buttonlocation), "lang" in y && r(8, a = y.lang), "mbsource" in y && r(9, h = y.mbsource), "clientstyling" in y && r(10, u = y.clientstyling), "clientstylingurl" in y && r(11, l = y.clientstylingurl), "translationurl" in y && r(12, f = y.translationurl);
|
|
4483
4511
|
}, e.$$.update = () => {
|
|
4484
4512
|
e.$$.dirty & /*endpoint, session, buttonlocation*/
|
|
4485
|
-
193 && i && o && s &&
|
|
4486
|
-
256 && a &&
|
|
4487
|
-
1026 && u && d &&
|
|
4488
|
-
1026 && u && d &&
|
|
4489
|
-
2050 && l && d &&
|
|
4490
|
-
514 && h && d &&
|
|
4491
|
-
4096 && f &&
|
|
4513
|
+
193 && i && o && s && I(), e.$$.dirty & /*lang*/
|
|
4514
|
+
256 && a && G(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4515
|
+
1026 && u && d && It(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4516
|
+
1026 && u && d && It(d, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4517
|
+
2050 && l && d && Ji(d, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4518
|
+
514 && h && d && qi(d, `${h}.Style`, g), e.$$.dirty & /*translationurl*/
|
|
4519
|
+
4096 && f && S();
|
|
4492
4520
|
}, [
|
|
4493
4521
|
s,
|
|
4494
4522
|
d,
|
|
4495
4523
|
n,
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4524
|
+
R,
|
|
4525
|
+
C,
|
|
4526
|
+
O,
|
|
4499
4527
|
i,
|
|
4500
4528
|
o,
|
|
4501
4529
|
a,
|
|
@@ -4503,19 +4531,19 @@ function ro(e, t, r) {
|
|
|
4503
4531
|
u,
|
|
4504
4532
|
l,
|
|
4505
4533
|
f,
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4534
|
+
he,
|
|
4535
|
+
dr,
|
|
4536
|
+
mr
|
|
4509
4537
|
];
|
|
4510
4538
|
}
|
|
4511
|
-
class
|
|
4539
|
+
class ao extends kr {
|
|
4512
4540
|
constructor(t) {
|
|
4513
|
-
super(),
|
|
4541
|
+
super(), Fr(
|
|
4514
4542
|
this,
|
|
4515
4543
|
t,
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4544
|
+
so,
|
|
4545
|
+
oo,
|
|
4546
|
+
Nt,
|
|
4519
4547
|
{
|
|
4520
4548
|
endpoint: 6,
|
|
4521
4549
|
session: 7,
|
|
@@ -4526,7 +4554,7 @@ class no extends Fr {
|
|
|
4526
4554
|
clientstylingurl: 11,
|
|
4527
4555
|
translationurl: 12
|
|
4528
4556
|
},
|
|
4529
|
-
|
|
4557
|
+
to
|
|
4530
4558
|
);
|
|
4531
4559
|
}
|
|
4532
4560
|
get endpoint() {
|
|
@@ -4578,7 +4606,7 @@ class no extends Fr {
|
|
|
4578
4606
|
this.$$set({ translationurl: t }), A();
|
|
4579
4607
|
}
|
|
4580
4608
|
}
|
|
4581
|
-
|
|
4609
|
+
jr(ao, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4582
4610
|
export {
|
|
4583
|
-
|
|
4611
|
+
ao as default
|
|
4584
4612
|
};
|