@everymatrix/player-panic-button 1.54.0 → 1.54.4
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/{PlayerPanicButton-CETZJQgN.js → PlayerPanicButton-CqUy177G.js} +945 -982
- package/esnext/player-panic-button.js +14 -0
- package/package.json +10 -8
- package/components/PlayerPanicButton-DwWWOfIG.cjs +0 -5
- package/es2015/player-panic-button.cjs +0 -1
- package/es2015/player-panic-button.js +0 -16
|
@@ -1,75 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
var hr = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var Je = Object.getOwnPropertySymbols;
|
|
4
|
-
var lr = Object.prototype.hasOwnProperty, cr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var _e = (e, t, r) => t in e ? ar(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
|
-
for (var r in t || (t = {}))
|
|
7
|
-
lr.call(t, r) && _e(e, r, t[r]);
|
|
8
|
-
if (Je)
|
|
9
|
-
for (var r of Je(t))
|
|
10
|
-
cr.call(t, r) && _e(e, r, t[r]);
|
|
11
|
-
return e;
|
|
12
|
-
}, qe = (e, t) => ur(e, hr(t));
|
|
13
|
-
var S = (e, t, r) => _e(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var Ke = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var o = (l) => {
|
|
16
|
-
try {
|
|
17
|
-
a(r.next(l));
|
|
18
|
-
} catch (h) {
|
|
19
|
-
i(h);
|
|
20
|
-
}
|
|
21
|
-
}, s = (l) => {
|
|
22
|
-
try {
|
|
23
|
-
a(r.throw(l));
|
|
24
|
-
} catch (h) {
|
|
25
|
-
i(h);
|
|
26
|
-
}
|
|
27
|
-
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
|
|
28
|
-
a((r = r.apply(e, t)).next());
|
|
29
|
-
});
|
|
30
|
-
function H() {
|
|
1
|
+
function B() {
|
|
31
2
|
}
|
|
32
|
-
function
|
|
3
|
+
function vt(e) {
|
|
33
4
|
return e();
|
|
34
5
|
}
|
|
35
|
-
function
|
|
6
|
+
function Ze() {
|
|
36
7
|
return /* @__PURE__ */ Object.create(null);
|
|
37
8
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
9
|
+
function re(e) {
|
|
10
|
+
e.forEach(vt);
|
|
40
11
|
}
|
|
41
|
-
function
|
|
12
|
+
function ke(e) {
|
|
42
13
|
return typeof e == "function";
|
|
43
14
|
}
|
|
44
|
-
function
|
|
15
|
+
function xt(e, t) {
|
|
45
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
17
|
}
|
|
47
|
-
function
|
|
18
|
+
function tr(e) {
|
|
48
19
|
return Object.keys(e).length === 0;
|
|
49
20
|
}
|
|
50
|
-
function
|
|
21
|
+
function Et(e, ...t) {
|
|
51
22
|
if (e == null) {
|
|
52
23
|
for (const n of t)
|
|
53
24
|
n(void 0);
|
|
54
|
-
return
|
|
25
|
+
return B;
|
|
55
26
|
}
|
|
56
27
|
const r = e.subscribe(...t);
|
|
57
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
29
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function rr(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(Et(t, r));
|
|
61
32
|
}
|
|
62
|
-
function
|
|
33
|
+
function ue(e, t) {
|
|
63
34
|
e.appendChild(t);
|
|
64
35
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
36
|
+
function nr(e, t, r) {
|
|
37
|
+
const n = ir(e);
|
|
67
38
|
if (!n.getElementById(t)) {
|
|
68
|
-
const i =
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
39
|
+
const i = Y("style");
|
|
40
|
+
i.id = t, i.textContent = r, or(n, i);
|
|
70
41
|
}
|
|
71
42
|
}
|
|
72
|
-
function
|
|
43
|
+
function ir(e) {
|
|
73
44
|
if (!e) return document;
|
|
74
45
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
75
46
|
return t && /** @type {ShadowRoot} */
|
|
@@ -78,39 +49,39 @@ function mr(e) {
|
|
|
78
49
|
t
|
|
79
50
|
) : e.ownerDocument;
|
|
80
51
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
52
|
+
function or(e, t) {
|
|
53
|
+
return ue(
|
|
83
54
|
/** @type {Document} */
|
|
84
55
|
e.head || e,
|
|
85
56
|
t
|
|
86
57
|
), t.sheet;
|
|
87
58
|
}
|
|
88
|
-
function
|
|
59
|
+
function _t(e, t, r) {
|
|
89
60
|
e.insertBefore(t, r || null);
|
|
90
61
|
}
|
|
91
|
-
function
|
|
62
|
+
function Ve(e) {
|
|
92
63
|
e.parentNode && e.parentNode.removeChild(e);
|
|
93
64
|
}
|
|
94
|
-
function
|
|
65
|
+
function Y(e) {
|
|
95
66
|
return document.createElement(e);
|
|
96
67
|
}
|
|
97
|
-
function
|
|
68
|
+
function sr(e) {
|
|
98
69
|
return document.createTextNode(e);
|
|
99
70
|
}
|
|
100
|
-
function
|
|
71
|
+
function L(e, t, r) {
|
|
101
72
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
102
73
|
}
|
|
103
|
-
function
|
|
74
|
+
function ar(e) {
|
|
104
75
|
return Array.from(e.childNodes);
|
|
105
76
|
}
|
|
106
|
-
function
|
|
77
|
+
function ur(e, t) {
|
|
107
78
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
108
79
|
t);
|
|
109
80
|
}
|
|
110
|
-
function
|
|
81
|
+
function Qe(e, t, r) {
|
|
111
82
|
e.classList.toggle(t, !!r);
|
|
112
83
|
}
|
|
113
|
-
function
|
|
84
|
+
function hr(e) {
|
|
114
85
|
const t = {};
|
|
115
86
|
return e.childNodes.forEach(
|
|
116
87
|
/** @param {Element} node */
|
|
@@ -119,245 +90,241 @@ function xr(e) {
|
|
|
119
90
|
}
|
|
120
91
|
), t;
|
|
121
92
|
}
|
|
122
|
-
let
|
|
123
|
-
function
|
|
124
|
-
|
|
93
|
+
let K;
|
|
94
|
+
function q(e) {
|
|
95
|
+
K = e;
|
|
125
96
|
}
|
|
126
|
-
function
|
|
127
|
-
if (!
|
|
128
|
-
return
|
|
97
|
+
function lr() {
|
|
98
|
+
if (!K) throw new Error("Function called outside component initialization");
|
|
99
|
+
return K;
|
|
129
100
|
}
|
|
130
|
-
function
|
|
131
|
-
|
|
101
|
+
function cr(e) {
|
|
102
|
+
lr().$$.on_mount.push(e);
|
|
132
103
|
}
|
|
133
|
-
const
|
|
134
|
-
let
|
|
135
|
-
const
|
|
136
|
-
let
|
|
137
|
-
function
|
|
138
|
-
|
|
104
|
+
const G = [], pe = [];
|
|
105
|
+
let F = [];
|
|
106
|
+
const Je = [], fr = /* @__PURE__ */ Promise.resolve();
|
|
107
|
+
let Pe = !1;
|
|
108
|
+
function pr() {
|
|
109
|
+
Pe || (Pe = !0, fr.then(I));
|
|
139
110
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
111
|
+
function Ae(e) {
|
|
112
|
+
F.push(e);
|
|
142
113
|
}
|
|
143
|
-
const
|
|
144
|
-
let
|
|
145
|
-
function
|
|
146
|
-
if (
|
|
114
|
+
const Ee = /* @__PURE__ */ new Set();
|
|
115
|
+
let D = 0;
|
|
116
|
+
function I() {
|
|
117
|
+
if (D !== 0)
|
|
147
118
|
return;
|
|
148
|
-
const e =
|
|
119
|
+
const e = K;
|
|
149
120
|
do {
|
|
150
121
|
try {
|
|
151
|
-
for (;
|
|
152
|
-
const t =
|
|
153
|
-
|
|
122
|
+
for (; D < G.length; ) {
|
|
123
|
+
const t = G[D];
|
|
124
|
+
D++, q(t), dr(t.$$);
|
|
154
125
|
}
|
|
155
126
|
} catch (t) {
|
|
156
|
-
throw
|
|
127
|
+
throw G.length = 0, D = 0, t;
|
|
157
128
|
}
|
|
158
|
-
for (
|
|
159
|
-
for (let t = 0; t <
|
|
160
|
-
const r =
|
|
161
|
-
|
|
129
|
+
for (q(null), G.length = 0, D = 0; pe.length; ) pe.pop()();
|
|
130
|
+
for (let t = 0; t < F.length; t += 1) {
|
|
131
|
+
const r = F[t];
|
|
132
|
+
Ee.has(r) || (Ee.add(r), r());
|
|
162
133
|
}
|
|
163
|
-
|
|
164
|
-
} while (
|
|
165
|
-
for (;
|
|
166
|
-
|
|
167
|
-
|
|
134
|
+
F.length = 0;
|
|
135
|
+
} while (G.length);
|
|
136
|
+
for (; Je.length; )
|
|
137
|
+
Je.pop()();
|
|
138
|
+
Pe = !1, Ee.clear(), q(e);
|
|
168
139
|
}
|
|
169
|
-
function
|
|
140
|
+
function dr(e) {
|
|
170
141
|
if (e.fragment !== null) {
|
|
171
|
-
e.update(),
|
|
142
|
+
e.update(), re(e.before_update);
|
|
172
143
|
const t = e.dirty;
|
|
173
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
144
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ae);
|
|
174
145
|
}
|
|
175
146
|
}
|
|
176
|
-
function
|
|
147
|
+
function mr(e) {
|
|
177
148
|
const t = [], r = [];
|
|
178
|
-
|
|
149
|
+
F.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), F = t;
|
|
179
150
|
}
|
|
180
|
-
const
|
|
181
|
-
function
|
|
182
|
-
e && e.i && (
|
|
151
|
+
const br = /* @__PURE__ */ new Set();
|
|
152
|
+
function gr(e, t) {
|
|
153
|
+
e && e.i && (br.delete(e), e.i(t));
|
|
183
154
|
}
|
|
184
|
-
function
|
|
155
|
+
function yr(e, t, r) {
|
|
185
156
|
const { fragment: n, after_update: i } = e.$$;
|
|
186
|
-
n && n.m(t, r),
|
|
187
|
-
const o = e.$$.on_mount.map(
|
|
188
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
189
|
-
}), i.forEach(
|
|
157
|
+
n && n.m(t, r), Ae(() => {
|
|
158
|
+
const o = e.$$.on_mount.map(vt).filter(ke);
|
|
159
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
|
|
160
|
+
}), i.forEach(Ae);
|
|
190
161
|
}
|
|
191
|
-
function
|
|
162
|
+
function vr(e, t) {
|
|
192
163
|
const r = e.$$;
|
|
193
|
-
r.fragment !== null && (
|
|
164
|
+
r.fragment !== null && (mr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
194
165
|
}
|
|
195
|
-
function
|
|
196
|
-
e.$$.dirty[0] === -1 && (
|
|
166
|
+
function xr(e, t) {
|
|
167
|
+
e.$$.dirty[0] === -1 && (G.push(e), pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
197
168
|
}
|
|
198
|
-
function
|
|
199
|
-
const
|
|
200
|
-
|
|
201
|
-
const
|
|
169
|
+
function Er(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
170
|
+
const h = K;
|
|
171
|
+
q(e);
|
|
172
|
+
const u = e.$$ = {
|
|
202
173
|
fragment: null,
|
|
203
174
|
ctx: [],
|
|
204
175
|
// state
|
|
205
176
|
props: o,
|
|
206
|
-
update:
|
|
177
|
+
update: B,
|
|
207
178
|
not_equal: i,
|
|
208
|
-
bound:
|
|
179
|
+
bound: Ze(),
|
|
209
180
|
// lifecycle
|
|
210
181
|
on_mount: [],
|
|
211
182
|
on_destroy: [],
|
|
212
183
|
on_disconnect: [],
|
|
213
184
|
before_update: [],
|
|
214
185
|
after_update: [],
|
|
215
|
-
context: new Map(t.context || (
|
|
186
|
+
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
216
187
|
// everything else
|
|
217
|
-
callbacks:
|
|
188
|
+
callbacks: Ze(),
|
|
218
189
|
dirty: a,
|
|
219
190
|
skip_bound: !1,
|
|
220
|
-
root: t.target ||
|
|
191
|
+
root: t.target || h.$$.root
|
|
221
192
|
};
|
|
222
|
-
s && s(
|
|
223
|
-
let
|
|
224
|
-
if (
|
|
193
|
+
s && s(u.root);
|
|
194
|
+
let l = !1;
|
|
195
|
+
if (u.ctx = r(e, t.props || {}, (c, f, ...m) => {
|
|
225
196
|
const v = m.length ? m[0] : f;
|
|
226
|
-
return
|
|
227
|
-
}),
|
|
197
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = v) && (!u.skip_bound && u.bound[c] && u.bound[c](v), l && xr(e, c)), f;
|
|
198
|
+
}), u.update(), l = !0, re(u.before_update), u.fragment = n(u.ctx), t.target) {
|
|
228
199
|
if (t.hydrate) {
|
|
229
|
-
const c =
|
|
230
|
-
|
|
200
|
+
const c = ar(t.target);
|
|
201
|
+
u.fragment && u.fragment.l(c), c.forEach(Ve);
|
|
231
202
|
} else
|
|
232
|
-
|
|
233
|
-
t.intro &&
|
|
203
|
+
u.fragment && u.fragment.c();
|
|
204
|
+
t.intro && gr(e.$$.fragment), yr(e, t.target, t.anchor), I();
|
|
234
205
|
}
|
|
235
|
-
|
|
236
|
-
}
|
|
237
|
-
let
|
|
238
|
-
typeof HTMLElement == "function" && (
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
206
|
+
q(h);
|
|
207
|
+
}
|
|
208
|
+
let St;
|
|
209
|
+
typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
210
|
+
/** The Svelte component constructor */
|
|
211
|
+
$$ctor;
|
|
212
|
+
/** Slots */
|
|
213
|
+
$$s;
|
|
214
|
+
/** The Svelte component instance */
|
|
215
|
+
$$c;
|
|
216
|
+
/** Whether or not the custom element is connected */
|
|
217
|
+
$$cn = !1;
|
|
218
|
+
/** Component props data */
|
|
219
|
+
$$d = {};
|
|
220
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
221
|
+
$$r = !1;
|
|
222
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
223
|
+
$$p_d = {};
|
|
224
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
225
|
+
$$l = {};
|
|
226
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
227
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
228
|
+
constructor(e, t, r) {
|
|
229
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
260
230
|
}
|
|
261
|
-
addEventListener(t, r
|
|
262
|
-
if (this.$$l[
|
|
263
|
-
const
|
|
264
|
-
this.$$l_u.set(
|
|
231
|
+
addEventListener(e, t, r) {
|
|
232
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
233
|
+
const n = this.$$c.$on(e, t);
|
|
234
|
+
this.$$l_u.set(t, n);
|
|
265
235
|
}
|
|
266
|
-
super.addEventListener(t, r
|
|
236
|
+
super.addEventListener(e, t, r);
|
|
267
237
|
}
|
|
268
|
-
removeEventListener(t, r
|
|
269
|
-
if (super.removeEventListener(t, r
|
|
270
|
-
const
|
|
271
|
-
|
|
238
|
+
removeEventListener(e, t, r) {
|
|
239
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
240
|
+
const n = this.$$l_u.get(t);
|
|
241
|
+
n && (n(), this.$$l_u.delete(t));
|
|
272
242
|
}
|
|
273
243
|
}
|
|
274
|
-
connectedCallback() {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
}
|
|
294
|
-
};
|
|
244
|
+
async connectedCallback() {
|
|
245
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
246
|
+
let e = function(i) {
|
|
247
|
+
return () => {
|
|
248
|
+
let o;
|
|
249
|
+
return {
|
|
250
|
+
c: function() {
|
|
251
|
+
o = Y("slot"), i !== "default" && L(o, "name", i);
|
|
252
|
+
},
|
|
253
|
+
/**
|
|
254
|
+
* @param {HTMLElement} target
|
|
255
|
+
* @param {HTMLElement} [anchor]
|
|
256
|
+
*/
|
|
257
|
+
m: function(h, u) {
|
|
258
|
+
_t(h, o, u);
|
|
259
|
+
},
|
|
260
|
+
d: function(h) {
|
|
261
|
+
h && Ve(o);
|
|
262
|
+
}
|
|
295
263
|
};
|
|
296
264
|
};
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
265
|
+
};
|
|
266
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
267
|
+
return;
|
|
268
|
+
const t = {}, r = hr(this);
|
|
269
|
+
for (const i of this.$$s)
|
|
270
|
+
i in r && (t[i] = [e(i)]);
|
|
271
|
+
for (const i of this.attributes) {
|
|
272
|
+
const o = this.$$g_p(i.name);
|
|
273
|
+
o in this.$$d || (this.$$d[o] = he(o, i.value, this.$$p_d, "toProp"));
|
|
274
|
+
}
|
|
275
|
+
for (const i in this.$$p_d)
|
|
276
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
277
|
+
this.$$c = new this.$$ctor({
|
|
278
|
+
target: this.shadowRoot || this,
|
|
279
|
+
props: {
|
|
280
|
+
...this.$$d,
|
|
281
|
+
$$slots: t,
|
|
282
|
+
$$scope: {
|
|
283
|
+
ctx: []
|
|
284
|
+
}
|
|
305
285
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
this.$$
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
this.$$r = !0;
|
|
319
|
-
for (const o in this.$$p_d)
|
|
320
|
-
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
321
|
-
const s = le(
|
|
322
|
-
o,
|
|
323
|
-
this.$$d[o],
|
|
324
|
-
this.$$p_d,
|
|
325
|
-
"toAttribute"
|
|
326
|
-
);
|
|
327
|
-
s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
|
|
328
|
-
}
|
|
329
|
-
this.$$r = !1;
|
|
330
|
-
};
|
|
331
|
-
this.$$c.$$.after_update.push(i), i();
|
|
332
|
-
for (const o in this.$$l)
|
|
333
|
-
for (const s of this.$$l[o]) {
|
|
334
|
-
const a = this.$$c.$on(o, s);
|
|
335
|
-
this.$$l_u.set(s, a);
|
|
286
|
+
});
|
|
287
|
+
const n = () => {
|
|
288
|
+
this.$$r = !0;
|
|
289
|
+
for (const i in this.$$p_d)
|
|
290
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
291
|
+
const o = he(
|
|
292
|
+
i,
|
|
293
|
+
this.$$d[i],
|
|
294
|
+
this.$$p_d,
|
|
295
|
+
"toAttribute"
|
|
296
|
+
);
|
|
297
|
+
o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
|
|
336
298
|
}
|
|
337
|
-
this.$$
|
|
338
|
-
}
|
|
339
|
-
|
|
299
|
+
this.$$r = !1;
|
|
300
|
+
};
|
|
301
|
+
this.$$c.$$.after_update.push(n), n();
|
|
302
|
+
for (const i in this.$$l)
|
|
303
|
+
for (const o of this.$$l[i]) {
|
|
304
|
+
const s = this.$$c.$on(i, o);
|
|
305
|
+
this.$$l_u.set(o, s);
|
|
306
|
+
}
|
|
307
|
+
this.$$l = {};
|
|
308
|
+
}
|
|
340
309
|
}
|
|
341
310
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
342
311
|
// and setting attributes through setAttribute etc, this is helpful
|
|
343
|
-
attributeChangedCallback(t, r
|
|
344
|
-
|
|
345
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = le(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
312
|
+
attributeChangedCallback(e, t, r) {
|
|
313
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = he(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
346
314
|
}
|
|
347
315
|
disconnectedCallback() {
|
|
348
316
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
349
317
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
350
318
|
});
|
|
351
319
|
}
|
|
352
|
-
$$g_p(
|
|
320
|
+
$$g_p(e) {
|
|
353
321
|
return Object.keys(this.$$p_d).find(
|
|
354
|
-
(
|
|
355
|
-
) ||
|
|
322
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
323
|
+
) || e;
|
|
356
324
|
}
|
|
357
325
|
});
|
|
358
|
-
function
|
|
359
|
-
|
|
360
|
-
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
326
|
+
function he(e, t, r, n) {
|
|
327
|
+
const i = r[e]?.type;
|
|
361
328
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
362
329
|
return t;
|
|
363
330
|
if (n === "toAttribute")
|
|
@@ -368,7 +335,7 @@ function le(e, t, r, n) {
|
|
|
368
335
|
case "Boolean":
|
|
369
336
|
return t ? "" : null;
|
|
370
337
|
case "Number":
|
|
371
|
-
return t
|
|
338
|
+
return t ?? null;
|
|
372
339
|
default:
|
|
373
340
|
return t;
|
|
374
341
|
}
|
|
@@ -385,8 +352,8 @@ function le(e, t, r, n) {
|
|
|
385
352
|
return t;
|
|
386
353
|
}
|
|
387
354
|
}
|
|
388
|
-
function
|
|
389
|
-
let s = class extends
|
|
355
|
+
function _r(e, t, r, n, i, o) {
|
|
356
|
+
let s = class extends St {
|
|
390
357
|
constructor() {
|
|
391
358
|
super(e, r, i), this.$$p_d = t;
|
|
392
359
|
}
|
|
@@ -401,43 +368,39 @@ function Nr(e, t, r, n, i, o) {
|
|
|
401
368
|
get() {
|
|
402
369
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
403
370
|
},
|
|
404
|
-
set(
|
|
405
|
-
|
|
406
|
-
l = le(a, l, t), this.$$d[a] = l, (h = this.$$c) == null || h.$set({ [a]: l });
|
|
371
|
+
set(h) {
|
|
372
|
+
h = he(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
|
407
373
|
}
|
|
408
374
|
});
|
|
409
375
|
}), n.forEach((a) => {
|
|
410
376
|
Object.defineProperty(s.prototype, a, {
|
|
411
377
|
get() {
|
|
412
|
-
|
|
413
|
-
return (l = this.$$c) == null ? void 0 : l[a];
|
|
378
|
+
return this.$$c?.[a];
|
|
414
379
|
}
|
|
415
380
|
});
|
|
416
381
|
}), e.element = /** @type {any} */
|
|
417
382
|
s, s;
|
|
418
383
|
}
|
|
419
|
-
class
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
S(this, "$$set");
|
|
437
|
-
}
|
|
384
|
+
class Sr {
|
|
385
|
+
/**
|
|
386
|
+
* ### PRIVATE API
|
|
387
|
+
*
|
|
388
|
+
* Do not use, may change at any time
|
|
389
|
+
*
|
|
390
|
+
* @type {any}
|
|
391
|
+
*/
|
|
392
|
+
$$ = void 0;
|
|
393
|
+
/**
|
|
394
|
+
* ### PRIVATE API
|
|
395
|
+
*
|
|
396
|
+
* Do not use, may change at any time
|
|
397
|
+
*
|
|
398
|
+
* @type {any}
|
|
399
|
+
*/
|
|
400
|
+
$$set = void 0;
|
|
438
401
|
/** @returns {void} */
|
|
439
402
|
$destroy() {
|
|
440
|
-
|
|
403
|
+
vr(this, 1), this.$destroy = B;
|
|
441
404
|
}
|
|
442
405
|
/**
|
|
443
406
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -446,8 +409,8 @@ class Lr {
|
|
|
446
409
|
* @returns {() => void}
|
|
447
410
|
*/
|
|
448
411
|
$on(t, r) {
|
|
449
|
-
if (!
|
|
450
|
-
return
|
|
412
|
+
if (!ke(r))
|
|
413
|
+
return B;
|
|
451
414
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
452
415
|
return n.push(r), () => {
|
|
453
416
|
const i = n.indexOf(r);
|
|
@@ -459,22 +422,22 @@ class Lr {
|
|
|
459
422
|
* @returns {void}
|
|
460
423
|
*/
|
|
461
424
|
$set(t) {
|
|
462
|
-
this.$$set && !
|
|
425
|
+
this.$$set && !tr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
463
426
|
}
|
|
464
427
|
}
|
|
465
|
-
const
|
|
466
|
-
typeof window
|
|
467
|
-
var
|
|
468
|
-
return
|
|
428
|
+
const Br = "4";
|
|
429
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Br);
|
|
430
|
+
var Oe = function(e, t) {
|
|
431
|
+
return Oe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
469
432
|
r.__proto__ = n;
|
|
470
433
|
} || function(r, n) {
|
|
471
434
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
472
|
-
},
|
|
435
|
+
}, Oe(e, t);
|
|
473
436
|
};
|
|
474
|
-
function
|
|
437
|
+
function A(e, t) {
|
|
475
438
|
if (typeof t != "function" && t !== null)
|
|
476
439
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
477
|
-
|
|
440
|
+
Oe(e, t);
|
|
478
441
|
function r() {
|
|
479
442
|
this.constructor = e;
|
|
480
443
|
}
|
|
@@ -489,7 +452,7 @@ var b = function() {
|
|
|
489
452
|
return t;
|
|
490
453
|
}, b.apply(this, arguments);
|
|
491
454
|
};
|
|
492
|
-
function
|
|
455
|
+
function Tr(e, t) {
|
|
493
456
|
var r = {};
|
|
494
457
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
495
458
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -497,7 +460,7 @@ function $r(e, t) {
|
|
|
497
460
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
498
461
|
return r;
|
|
499
462
|
}
|
|
500
|
-
function
|
|
463
|
+
function Ie(e) {
|
|
501
464
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
502
465
|
if (r) return r.call(e);
|
|
503
466
|
if (e && typeof e.length == "number") return {
|
|
@@ -507,7 +470,7 @@ function Ne(e) {
|
|
|
507
470
|
};
|
|
508
471
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
509
472
|
}
|
|
510
|
-
function
|
|
473
|
+
function Ce(e, t) {
|
|
511
474
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
512
475
|
if (!r) return e;
|
|
513
476
|
var n = r.call(e), i, o = [], s;
|
|
@@ -524,21 +487,21 @@ function Le(e, t) {
|
|
|
524
487
|
}
|
|
525
488
|
return o;
|
|
526
489
|
}
|
|
527
|
-
function
|
|
490
|
+
function j(e, t, r) {
|
|
528
491
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
529
492
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
530
493
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
531
494
|
}
|
|
532
|
-
function
|
|
495
|
+
function P(e) {
|
|
533
496
|
return typeof e == "function";
|
|
534
497
|
}
|
|
535
|
-
function
|
|
498
|
+
function Bt(e) {
|
|
536
499
|
var t = function(n) {
|
|
537
500
|
Error.call(n), n.stack = new Error().stack;
|
|
538
501
|
}, r = e(t);
|
|
539
502
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
540
503
|
}
|
|
541
|
-
var
|
|
504
|
+
var _e = Bt(function(e) {
|
|
542
505
|
return function(r) {
|
|
543
506
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
544
507
|
` + r.map(function(n, i) {
|
|
@@ -547,13 +510,13 @@ var Te = Ot(function(e) {
|
|
|
547
510
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
548
511
|
};
|
|
549
512
|
});
|
|
550
|
-
function
|
|
513
|
+
function Ne(e, t) {
|
|
551
514
|
if (e) {
|
|
552
515
|
var r = e.indexOf(t);
|
|
553
516
|
0 <= r && e.splice(r, 1);
|
|
554
517
|
}
|
|
555
518
|
}
|
|
556
|
-
var
|
|
519
|
+
var be = function() {
|
|
557
520
|
function e(t) {
|
|
558
521
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
559
522
|
}
|
|
@@ -565,38 +528,38 @@ var ge = function() {
|
|
|
565
528
|
if (s)
|
|
566
529
|
if (this._parentage = null, Array.isArray(s))
|
|
567
530
|
try {
|
|
568
|
-
for (var a =
|
|
569
|
-
var
|
|
570
|
-
|
|
531
|
+
for (var a = Ie(s), h = a.next(); !h.done; h = a.next()) {
|
|
532
|
+
var u = h.value;
|
|
533
|
+
u.remove(this);
|
|
571
534
|
}
|
|
572
535
|
} catch (y) {
|
|
573
536
|
t = { error: y };
|
|
574
537
|
} finally {
|
|
575
538
|
try {
|
|
576
|
-
|
|
539
|
+
h && !h.done && (r = a.return) && r.call(a);
|
|
577
540
|
} finally {
|
|
578
541
|
if (t) throw t.error;
|
|
579
542
|
}
|
|
580
543
|
}
|
|
581
544
|
else
|
|
582
545
|
s.remove(this);
|
|
583
|
-
var
|
|
584
|
-
if (
|
|
546
|
+
var l = this.initialTeardown;
|
|
547
|
+
if (P(l))
|
|
585
548
|
try {
|
|
586
|
-
|
|
549
|
+
l();
|
|
587
550
|
} catch (y) {
|
|
588
|
-
o = y instanceof
|
|
551
|
+
o = y instanceof _e ? y.errors : [y];
|
|
589
552
|
}
|
|
590
553
|
var c = this._finalizers;
|
|
591
554
|
if (c) {
|
|
592
555
|
this._finalizers = null;
|
|
593
556
|
try {
|
|
594
|
-
for (var f =
|
|
557
|
+
for (var f = Ie(c), m = f.next(); !m.done; m = f.next()) {
|
|
595
558
|
var v = m.value;
|
|
596
559
|
try {
|
|
597
|
-
|
|
560
|
+
Ye(v);
|
|
598
561
|
} catch (y) {
|
|
599
|
-
o = o
|
|
562
|
+
o = o ?? [], y instanceof _e ? o = j(j([], Ce(o)), Ce(y.errors)) : o.push(y);
|
|
600
563
|
}
|
|
601
564
|
}
|
|
602
565
|
} catch (y) {
|
|
@@ -610,13 +573,13 @@ var ge = function() {
|
|
|
610
573
|
}
|
|
611
574
|
}
|
|
612
575
|
if (o)
|
|
613
|
-
throw new
|
|
576
|
+
throw new _e(o);
|
|
614
577
|
}
|
|
615
578
|
}, e.prototype.add = function(t) {
|
|
616
579
|
var r;
|
|
617
580
|
if (t && t !== this)
|
|
618
581
|
if (this.closed)
|
|
619
|
-
|
|
582
|
+
Ye(t);
|
|
620
583
|
else {
|
|
621
584
|
if (t instanceof e) {
|
|
622
585
|
if (t.closed || t._hasParent(this))
|
|
@@ -633,56 +596,56 @@ var ge = function() {
|
|
|
633
596
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
634
597
|
}, e.prototype._removeParent = function(t) {
|
|
635
598
|
var r = this._parentage;
|
|
636
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
599
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ne(r, t);
|
|
637
600
|
}, e.prototype.remove = function(t) {
|
|
638
601
|
var r = this._finalizers;
|
|
639
|
-
r &&
|
|
602
|
+
r && Ne(r, t), t instanceof e && t._removeParent(this);
|
|
640
603
|
}, e.EMPTY = function() {
|
|
641
604
|
var t = new e();
|
|
642
605
|
return t.closed = !0, t;
|
|
643
606
|
}(), e;
|
|
644
|
-
}(),
|
|
645
|
-
function
|
|
646
|
-
return e instanceof
|
|
607
|
+
}(), Tt = be.EMPTY;
|
|
608
|
+
function Ht(e) {
|
|
609
|
+
return e instanceof be || e && "closed" in e && P(e.remove) && P(e.add) && P(e.unsubscribe);
|
|
647
610
|
}
|
|
648
|
-
function
|
|
649
|
-
|
|
611
|
+
function Ye(e) {
|
|
612
|
+
P(e) ? e() : e.unsubscribe();
|
|
650
613
|
}
|
|
651
|
-
var
|
|
614
|
+
var Hr = {
|
|
652
615
|
onUnhandledError: null,
|
|
653
616
|
onStoppedNotification: null,
|
|
654
617
|
Promise: void 0,
|
|
655
618
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
656
619
|
useDeprecatedNextContext: !1
|
|
657
|
-
},
|
|
620
|
+
}, wr = {
|
|
658
621
|
setTimeout: function(e, t) {
|
|
659
622
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
660
623
|
r[n - 2] = arguments[n];
|
|
661
|
-
return setTimeout.apply(void 0,
|
|
624
|
+
return setTimeout.apply(void 0, j([e, t], Ce(r)));
|
|
662
625
|
},
|
|
663
626
|
clearTimeout: function(e) {
|
|
664
627
|
return clearTimeout(e);
|
|
665
628
|
},
|
|
666
629
|
delegate: void 0
|
|
667
630
|
};
|
|
668
|
-
function
|
|
669
|
-
|
|
631
|
+
function Pr(e) {
|
|
632
|
+
wr.setTimeout(function() {
|
|
670
633
|
throw e;
|
|
671
634
|
});
|
|
672
635
|
}
|
|
673
|
-
function
|
|
636
|
+
function qe() {
|
|
674
637
|
}
|
|
675
|
-
function
|
|
638
|
+
function le(e) {
|
|
676
639
|
e();
|
|
677
640
|
}
|
|
678
|
-
var
|
|
679
|
-
|
|
641
|
+
var wt = function(e) {
|
|
642
|
+
A(t, e);
|
|
680
643
|
function t(r) {
|
|
681
644
|
var n = e.call(this) || this;
|
|
682
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
645
|
+
return n.isStopped = !1, r ? (n.destination = r, Ht(r) && r.add(n)) : n.destination = Ir, n;
|
|
683
646
|
}
|
|
684
647
|
return t.create = function(r, n, i) {
|
|
685
|
-
return new
|
|
648
|
+
return new Le(r, n, i);
|
|
686
649
|
}, t.prototype.next = function(r) {
|
|
687
650
|
this.isStopped || this._next(r);
|
|
688
651
|
}, t.prototype.error = function(r) {
|
|
@@ -706,7 +669,7 @@ var Nt = function(e) {
|
|
|
706
669
|
this.unsubscribe();
|
|
707
670
|
}
|
|
708
671
|
}, t;
|
|
709
|
-
}(
|
|
672
|
+
}(be), Ar = function() {
|
|
710
673
|
function e(t) {
|
|
711
674
|
this.partialObserver = t;
|
|
712
675
|
}
|
|
@@ -716,7 +679,7 @@ var Nt = function(e) {
|
|
|
716
679
|
try {
|
|
717
680
|
r.next(t);
|
|
718
681
|
} catch (n) {
|
|
719
|
-
|
|
682
|
+
oe(n);
|
|
720
683
|
}
|
|
721
684
|
}, e.prototype.error = function(t) {
|
|
722
685
|
var r = this.partialObserver;
|
|
@@ -724,56 +687,56 @@ var Nt = function(e) {
|
|
|
724
687
|
try {
|
|
725
688
|
r.error(t);
|
|
726
689
|
} catch (n) {
|
|
727
|
-
|
|
690
|
+
oe(n);
|
|
728
691
|
}
|
|
729
692
|
else
|
|
730
|
-
|
|
693
|
+
oe(t);
|
|
731
694
|
}, e.prototype.complete = function() {
|
|
732
695
|
var t = this.partialObserver;
|
|
733
696
|
if (t.complete)
|
|
734
697
|
try {
|
|
735
698
|
t.complete();
|
|
736
699
|
} catch (r) {
|
|
737
|
-
|
|
700
|
+
oe(r);
|
|
738
701
|
}
|
|
739
702
|
}, e;
|
|
740
|
-
}(),
|
|
741
|
-
|
|
703
|
+
}(), Le = function(e) {
|
|
704
|
+
A(t, e);
|
|
742
705
|
function t(r, n, i) {
|
|
743
706
|
var o = e.call(this) || this, s;
|
|
744
|
-
return
|
|
745
|
-
next: r
|
|
746
|
-
error: n
|
|
747
|
-
complete: i
|
|
748
|
-
} : s = r, o.destination = new
|
|
707
|
+
return P(r) || !r ? s = {
|
|
708
|
+
next: r ?? void 0,
|
|
709
|
+
error: n ?? void 0,
|
|
710
|
+
complete: i ?? void 0
|
|
711
|
+
} : s = r, o.destination = new Ar(s), o;
|
|
749
712
|
}
|
|
750
713
|
return t;
|
|
751
|
-
}(
|
|
752
|
-
function
|
|
753
|
-
|
|
714
|
+
}(wt);
|
|
715
|
+
function oe(e) {
|
|
716
|
+
Pr(e);
|
|
754
717
|
}
|
|
755
|
-
function
|
|
718
|
+
function Or(e) {
|
|
756
719
|
throw e;
|
|
757
720
|
}
|
|
758
|
-
var
|
|
721
|
+
var Ir = {
|
|
759
722
|
closed: !0,
|
|
760
|
-
next:
|
|
761
|
-
error:
|
|
762
|
-
complete:
|
|
763
|
-
},
|
|
723
|
+
next: qe,
|
|
724
|
+
error: Or,
|
|
725
|
+
complete: qe
|
|
726
|
+
}, Cr = function() {
|
|
764
727
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
765
728
|
}();
|
|
766
|
-
function
|
|
729
|
+
function Nr(e) {
|
|
767
730
|
return e;
|
|
768
731
|
}
|
|
769
|
-
function
|
|
770
|
-
return e.length === 0 ?
|
|
732
|
+
function Lr(e) {
|
|
733
|
+
return e.length === 0 ? Nr : e.length === 1 ? e[0] : function(r) {
|
|
771
734
|
return e.reduce(function(n, i) {
|
|
772
735
|
return i(n);
|
|
773
736
|
}, r);
|
|
774
737
|
};
|
|
775
738
|
}
|
|
776
|
-
var
|
|
739
|
+
var Ke = function() {
|
|
777
740
|
function e(t) {
|
|
778
741
|
t && (this._subscribe = t);
|
|
779
742
|
}
|
|
@@ -781,10 +744,10 @@ var ot = function() {
|
|
|
781
744
|
var r = new e();
|
|
782
745
|
return r.source = this, r.operator = t, r;
|
|
783
746
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
784
|
-
var i = this, o =
|
|
785
|
-
return
|
|
786
|
-
var s = i, a = s.operator,
|
|
787
|
-
o.add(a ? a.call(o,
|
|
747
|
+
var i = this, o = $r(t) ? t : new Le(t, r, n);
|
|
748
|
+
return le(function() {
|
|
749
|
+
var s = i, a = s.operator, h = s.source;
|
|
750
|
+
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
788
751
|
}), o;
|
|
789
752
|
}, e.prototype._trySubscribe = function(t) {
|
|
790
753
|
try {
|
|
@@ -794,13 +757,13 @@ var ot = function() {
|
|
|
794
757
|
}
|
|
795
758
|
}, e.prototype.forEach = function(t, r) {
|
|
796
759
|
var n = this;
|
|
797
|
-
return r =
|
|
798
|
-
var s = new
|
|
760
|
+
return r = et(r), new r(function(i, o) {
|
|
761
|
+
var s = new Le({
|
|
799
762
|
next: function(a) {
|
|
800
763
|
try {
|
|
801
764
|
t(a);
|
|
802
|
-
} catch (
|
|
803
|
-
o(
|
|
765
|
+
} catch (h) {
|
|
766
|
+
o(h), s.unsubscribe();
|
|
804
767
|
}
|
|
805
768
|
},
|
|
806
769
|
error: o,
|
|
@@ -811,15 +774,15 @@ var ot = function() {
|
|
|
811
774
|
}, e.prototype._subscribe = function(t) {
|
|
812
775
|
var r;
|
|
813
776
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
814
|
-
}, e.prototype[
|
|
777
|
+
}, e.prototype[Cr] = function() {
|
|
815
778
|
return this;
|
|
816
779
|
}, e.prototype.pipe = function() {
|
|
817
780
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
818
781
|
t[r] = arguments[r];
|
|
819
|
-
return
|
|
782
|
+
return Lr(t)(this);
|
|
820
783
|
}, e.prototype.toPromise = function(t) {
|
|
821
784
|
var r = this;
|
|
822
|
-
return t =
|
|
785
|
+
return t = et(t), new t(function(n, i) {
|
|
823
786
|
var o;
|
|
824
787
|
r.subscribe(function(s) {
|
|
825
788
|
return o = s;
|
|
@@ -833,45 +796,45 @@ var ot = function() {
|
|
|
833
796
|
return new e(t);
|
|
834
797
|
}, e;
|
|
835
798
|
}();
|
|
836
|
-
function
|
|
799
|
+
function et(e) {
|
|
837
800
|
var t;
|
|
838
|
-
return (t = e
|
|
801
|
+
return (t = e ?? Hr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
839
802
|
}
|
|
840
|
-
function
|
|
841
|
-
return e &&
|
|
803
|
+
function Mr(e) {
|
|
804
|
+
return e && P(e.next) && P(e.error) && P(e.complete);
|
|
842
805
|
}
|
|
843
|
-
function
|
|
844
|
-
return e && e instanceof
|
|
806
|
+
function $r(e) {
|
|
807
|
+
return e && e instanceof wt || Mr(e) && Ht(e);
|
|
845
808
|
}
|
|
846
|
-
var
|
|
809
|
+
var Rr = Bt(function(e) {
|
|
847
810
|
return function() {
|
|
848
811
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
849
812
|
};
|
|
850
|
-
}),
|
|
851
|
-
|
|
813
|
+
}), Pt = function(e) {
|
|
814
|
+
A(t, e);
|
|
852
815
|
function t() {
|
|
853
816
|
var r = e.call(this) || this;
|
|
854
817
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
855
818
|
}
|
|
856
819
|
return t.prototype.lift = function(r) {
|
|
857
|
-
var n = new
|
|
820
|
+
var n = new tt(this, this);
|
|
858
821
|
return n.operator = r, n;
|
|
859
822
|
}, t.prototype._throwIfClosed = function() {
|
|
860
823
|
if (this.closed)
|
|
861
|
-
throw new
|
|
824
|
+
throw new Rr();
|
|
862
825
|
}, t.prototype.next = function(r) {
|
|
863
826
|
var n = this;
|
|
864
|
-
|
|
827
|
+
le(function() {
|
|
865
828
|
var i, o;
|
|
866
829
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
867
830
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
868
831
|
try {
|
|
869
|
-
for (var s =
|
|
870
|
-
var
|
|
871
|
-
|
|
832
|
+
for (var s = Ie(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
833
|
+
var h = a.value;
|
|
834
|
+
h.next(r);
|
|
872
835
|
}
|
|
873
|
-
} catch (
|
|
874
|
-
i = { error:
|
|
836
|
+
} catch (u) {
|
|
837
|
+
i = { error: u };
|
|
875
838
|
} finally {
|
|
876
839
|
try {
|
|
877
840
|
a && !a.done && (o = s.return) && o.call(s);
|
|
@@ -883,7 +846,7 @@ var Zr = Ot(function(e) {
|
|
|
883
846
|
});
|
|
884
847
|
}, t.prototype.error = function(r) {
|
|
885
848
|
var n = this;
|
|
886
|
-
|
|
849
|
+
le(function() {
|
|
887
850
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
888
851
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
889
852
|
for (var i = n.observers; i.length; )
|
|
@@ -892,7 +855,7 @@ var Zr = Ot(function(e) {
|
|
|
892
855
|
});
|
|
893
856
|
}, t.prototype.complete = function() {
|
|
894
857
|
var r = this;
|
|
895
|
-
|
|
858
|
+
le(function() {
|
|
896
859
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
897
860
|
r.isStopped = !0;
|
|
898
861
|
for (var n = r.observers; n.length; )
|
|
@@ -914,20 +877,20 @@ var Zr = Ot(function(e) {
|
|
|
914
877
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
915
878
|
}, t.prototype._innerSubscribe = function(r) {
|
|
916
879
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
917
|
-
return o || s ?
|
|
918
|
-
n.currentObservers = null,
|
|
880
|
+
return o || s ? Tt : (this.currentObservers = null, a.push(r), new be(function() {
|
|
881
|
+
n.currentObservers = null, Ne(a, r);
|
|
919
882
|
}));
|
|
920
883
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
921
884
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
922
885
|
i ? r.error(o) : s && r.complete();
|
|
923
886
|
}, t.prototype.asObservable = function() {
|
|
924
|
-
var r = new
|
|
887
|
+
var r = new Ke();
|
|
925
888
|
return r.source = this, r;
|
|
926
889
|
}, t.create = function(r, n) {
|
|
927
|
-
return new
|
|
890
|
+
return new tt(r, n);
|
|
928
891
|
}, t;
|
|
929
|
-
}(
|
|
930
|
-
|
|
892
|
+
}(Ke), tt = function(e) {
|
|
893
|
+
A(t, e);
|
|
931
894
|
function t(r, n) {
|
|
932
895
|
var i = e.call(this) || this;
|
|
933
896
|
return i.destination = r, i.source = n, i;
|
|
@@ -943,214 +906,214 @@ var Zr = Ot(function(e) {
|
|
|
943
906
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
944
907
|
}, t.prototype._subscribe = function(r) {
|
|
945
908
|
var n, i;
|
|
946
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
909
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Tt;
|
|
947
910
|
}, t;
|
|
948
|
-
}(
|
|
911
|
+
}(Pt), At = {
|
|
949
912
|
now: function() {
|
|
950
|
-
return (
|
|
913
|
+
return (At.delegate || Date).now();
|
|
951
914
|
},
|
|
952
915
|
delegate: void 0
|
|
953
|
-
},
|
|
954
|
-
|
|
916
|
+
}, Dr = function(e) {
|
|
917
|
+
A(t, e);
|
|
955
918
|
function t(r, n, i) {
|
|
956
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
919
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = At);
|
|
957
920
|
var o = e.call(this) || this;
|
|
958
921
|
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;
|
|
959
922
|
}
|
|
960
923
|
return t.prototype.next = function(r) {
|
|
961
|
-
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider,
|
|
962
|
-
i || (o.push(r), !s && o.push(a.now() +
|
|
924
|
+
var n = this, i = n.isStopped, o = n._buffer, s = n._infiniteTimeWindow, a = n._timestampProvider, h = n._windowTime;
|
|
925
|
+
i || (o.push(r), !s && o.push(a.now() + h)), this._trimBuffer(), e.prototype.next.call(this, r);
|
|
963
926
|
}, t.prototype._subscribe = function(r) {
|
|
964
927
|
this._throwIfClosed(), this._trimBuffer();
|
|
965
|
-
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(),
|
|
966
|
-
r.next(a[
|
|
928
|
+
for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), h = 0; h < a.length && !r.closed; h += o ? 1 : 2)
|
|
929
|
+
r.next(a[h]);
|
|
967
930
|
return this._checkFinalizedStatuses(r), n;
|
|
968
931
|
}, t.prototype._trimBuffer = function() {
|
|
969
932
|
var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, s = r._infiniteTimeWindow, a = (s ? 1 : 2) * n;
|
|
970
933
|
if (n < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
971
|
-
for (var
|
|
972
|
-
|
|
973
|
-
|
|
934
|
+
for (var h = i.now(), u = 0, l = 1; l < o.length && o[l] <= h; l += 2)
|
|
935
|
+
u = l;
|
|
936
|
+
u && o.splice(0, u + 1);
|
|
974
937
|
}
|
|
975
938
|
}, t;
|
|
976
|
-
}(
|
|
977
|
-
const
|
|
978
|
-
if (
|
|
979
|
-
const r = new
|
|
980
|
-
|
|
939
|
+
}(Pt);
|
|
940
|
+
const rt = [], nt = {}, Ur = (e, t = 0) => {
|
|
941
|
+
if (rt.indexOf(e) == -1) {
|
|
942
|
+
const r = new Dr(t);
|
|
943
|
+
nt[e] = r, rt.push(e);
|
|
981
944
|
}
|
|
982
|
-
return
|
|
983
|
-
},
|
|
984
|
-
function
|
|
945
|
+
return nt[e];
|
|
946
|
+
}, U = [];
|
|
947
|
+
function Gr(e, t) {
|
|
985
948
|
return {
|
|
986
|
-
subscribe:
|
|
949
|
+
subscribe: ge(e, t).subscribe
|
|
987
950
|
};
|
|
988
951
|
}
|
|
989
|
-
function
|
|
952
|
+
function ge(e, t = B) {
|
|
990
953
|
let r;
|
|
991
954
|
const n = /* @__PURE__ */ new Set();
|
|
992
955
|
function i(a) {
|
|
993
|
-
if (
|
|
994
|
-
const
|
|
995
|
-
for (const
|
|
996
|
-
|
|
997
|
-
if (
|
|
998
|
-
for (let
|
|
999
|
-
|
|
1000
|
-
|
|
956
|
+
if (xt(e, a) && (e = a, r)) {
|
|
957
|
+
const h = !U.length;
|
|
958
|
+
for (const u of n)
|
|
959
|
+
u[1](), U.push(u, e);
|
|
960
|
+
if (h) {
|
|
961
|
+
for (let u = 0; u < U.length; u += 2)
|
|
962
|
+
U[u][0](U[u + 1]);
|
|
963
|
+
U.length = 0;
|
|
1001
964
|
}
|
|
1002
965
|
}
|
|
1003
966
|
}
|
|
1004
967
|
function o(a) {
|
|
1005
968
|
i(a(e));
|
|
1006
969
|
}
|
|
1007
|
-
function s(a,
|
|
1008
|
-
const
|
|
1009
|
-
return n.add(
|
|
1010
|
-
n.delete(
|
|
970
|
+
function s(a, h = B) {
|
|
971
|
+
const u = [a, h];
|
|
972
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || B), a(e), () => {
|
|
973
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1011
974
|
};
|
|
1012
975
|
}
|
|
1013
976
|
return { set: i, update: o, subscribe: s };
|
|
1014
977
|
}
|
|
1015
|
-
function
|
|
978
|
+
function W(e, t, r) {
|
|
1016
979
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1017
980
|
if (!i.every(Boolean))
|
|
1018
981
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1019
982
|
const o = t.length < 2;
|
|
1020
|
-
return
|
|
1021
|
-
let
|
|
1022
|
-
const
|
|
1023
|
-
let
|
|
983
|
+
return Gr(r, (s, a) => {
|
|
984
|
+
let h = !1;
|
|
985
|
+
const u = [];
|
|
986
|
+
let l = 0, c = B;
|
|
1024
987
|
const f = () => {
|
|
1025
|
-
if (
|
|
988
|
+
if (l)
|
|
1026
989
|
return;
|
|
1027
990
|
c();
|
|
1028
|
-
const v = t(n ?
|
|
1029
|
-
o ? s(v) : c =
|
|
991
|
+
const v = t(n ? u[0] : u, s, a);
|
|
992
|
+
o ? s(v) : c = ke(v) ? v : B;
|
|
1030
993
|
}, m = i.map(
|
|
1031
|
-
(v, y) =>
|
|
994
|
+
(v, y) => Et(
|
|
1032
995
|
v,
|
|
1033
|
-
(
|
|
1034
|
-
|
|
996
|
+
(S) => {
|
|
997
|
+
u[y] = S, l &= ~(1 << y), h && f();
|
|
1035
998
|
},
|
|
1036
999
|
() => {
|
|
1037
|
-
|
|
1000
|
+
l |= 1 << y;
|
|
1038
1001
|
}
|
|
1039
1002
|
)
|
|
1040
1003
|
);
|
|
1041
|
-
return
|
|
1042
|
-
|
|
1004
|
+
return h = !0, f(), function() {
|
|
1005
|
+
re(m), c(), h = !1;
|
|
1043
1006
|
};
|
|
1044
1007
|
});
|
|
1045
1008
|
}
|
|
1046
|
-
function
|
|
1009
|
+
function Fr(e) {
|
|
1047
1010
|
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1048
1011
|
}
|
|
1049
|
-
var
|
|
1050
|
-
return
|
|
1012
|
+
var jr = function(t) {
|
|
1013
|
+
return kr(t) && !Vr(t);
|
|
1051
1014
|
};
|
|
1052
|
-
function
|
|
1015
|
+
function kr(e) {
|
|
1053
1016
|
return !!e && typeof e == "object";
|
|
1054
1017
|
}
|
|
1055
|
-
function
|
|
1018
|
+
function Vr(e) {
|
|
1056
1019
|
var t = Object.prototype.toString.call(e);
|
|
1057
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1020
|
+
return t === "[object RegExp]" || t === "[object Date]" || Wr(e);
|
|
1058
1021
|
}
|
|
1059
|
-
var
|
|
1060
|
-
function
|
|
1061
|
-
return e.$$typeof ===
|
|
1022
|
+
var zr = typeof Symbol == "function" && Symbol.for, Xr = zr ? Symbol.for("react.element") : 60103;
|
|
1023
|
+
function Wr(e) {
|
|
1024
|
+
return e.$$typeof === Xr;
|
|
1062
1025
|
}
|
|
1063
|
-
function
|
|
1026
|
+
function Zr(e) {
|
|
1064
1027
|
return Array.isArray(e) ? [] : {};
|
|
1065
1028
|
}
|
|
1066
|
-
function
|
|
1067
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1029
|
+
function ee(e, t) {
|
|
1030
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(Zr(e), e, t) : e;
|
|
1068
1031
|
}
|
|
1069
|
-
function
|
|
1032
|
+
function Qr(e, t, r) {
|
|
1070
1033
|
return e.concat(t).map(function(n) {
|
|
1071
|
-
return
|
|
1034
|
+
return ee(n, r);
|
|
1072
1035
|
});
|
|
1073
1036
|
}
|
|
1074
|
-
function
|
|
1037
|
+
function Jr(e, t) {
|
|
1075
1038
|
if (!t.customMerge)
|
|
1076
|
-
return
|
|
1039
|
+
return k;
|
|
1077
1040
|
var r = t.customMerge(e);
|
|
1078
|
-
return typeof r == "function" ? r :
|
|
1041
|
+
return typeof r == "function" ? r : k;
|
|
1079
1042
|
}
|
|
1080
|
-
function
|
|
1043
|
+
function Yr(e) {
|
|
1081
1044
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1082
1045
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1083
1046
|
}) : [];
|
|
1084
1047
|
}
|
|
1085
|
-
function
|
|
1086
|
-
return Object.keys(e).concat(
|
|
1048
|
+
function it(e) {
|
|
1049
|
+
return Object.keys(e).concat(Yr(e));
|
|
1087
1050
|
}
|
|
1088
|
-
function
|
|
1051
|
+
function Ot(e, t) {
|
|
1089
1052
|
try {
|
|
1090
1053
|
return t in e;
|
|
1091
|
-
} catch
|
|
1054
|
+
} catch {
|
|
1092
1055
|
return !1;
|
|
1093
1056
|
}
|
|
1094
1057
|
}
|
|
1095
|
-
function
|
|
1096
|
-
return
|
|
1058
|
+
function qr(e, t) {
|
|
1059
|
+
return Ot(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1097
1060
|
}
|
|
1098
|
-
function
|
|
1061
|
+
function Kr(e, t, r) {
|
|
1099
1062
|
var n = {};
|
|
1100
|
-
return r.isMergeableObject(e) &&
|
|
1101
|
-
n[i] =
|
|
1102
|
-
}),
|
|
1103
|
-
|
|
1063
|
+
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
1064
|
+
n[i] = ee(e[i], r);
|
|
1065
|
+
}), it(t).forEach(function(i) {
|
|
1066
|
+
qr(e, i) || (Ot(e, i) && r.isMergeableObject(t[i]) ? n[i] = Jr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
|
|
1104
1067
|
}), n;
|
|
1105
1068
|
}
|
|
1106
|
-
function
|
|
1107
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1069
|
+
function k(e, t, r) {
|
|
1070
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Qr, r.isMergeableObject = r.isMergeableObject || jr, r.cloneUnlessOtherwiseSpecified = ee;
|
|
1108
1071
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1109
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1072
|
+
return o ? n ? r.arrayMerge(e, t, r) : Kr(e, t, r) : ee(t, r);
|
|
1110
1073
|
}
|
|
1111
|
-
|
|
1074
|
+
k.all = function(t, r) {
|
|
1112
1075
|
if (!Array.isArray(t))
|
|
1113
1076
|
throw new Error("first argument should be an array");
|
|
1114
1077
|
return t.reduce(function(n, i) {
|
|
1115
|
-
return
|
|
1078
|
+
return k(n, i, r);
|
|
1116
1079
|
}, {});
|
|
1117
1080
|
};
|
|
1118
|
-
var
|
|
1119
|
-
const
|
|
1120
|
-
function
|
|
1121
|
-
var r = t && t.cache ? t.cache :
|
|
1081
|
+
var en = k, tn = en;
|
|
1082
|
+
const rn = /* @__PURE__ */ Fr(tn);
|
|
1083
|
+
function Se(e, t) {
|
|
1084
|
+
var r = t && t.cache ? t.cache : ln, n = t && t.serializer ? t.serializer : un, i = t && t.strategy ? t.strategy : on;
|
|
1122
1085
|
return i(e, {
|
|
1123
1086
|
cache: r,
|
|
1124
1087
|
serializer: n
|
|
1125
1088
|
});
|
|
1126
1089
|
}
|
|
1127
|
-
function
|
|
1090
|
+
function nn(e) {
|
|
1128
1091
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1129
1092
|
}
|
|
1130
|
-
function
|
|
1131
|
-
var i =
|
|
1132
|
-
return typeof o
|
|
1093
|
+
function It(e, t, r, n) {
|
|
1094
|
+
var i = nn(n) ? n : r(n), o = t.get(i);
|
|
1095
|
+
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1133
1096
|
}
|
|
1134
|
-
function
|
|
1097
|
+
function Ct(e, t, r) {
|
|
1135
1098
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1136
|
-
return typeof o
|
|
1099
|
+
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1137
1100
|
}
|
|
1138
|
-
function
|
|
1101
|
+
function ze(e, t, r, n, i) {
|
|
1139
1102
|
return r.bind(t, e, n, i);
|
|
1140
1103
|
}
|
|
1141
|
-
function
|
|
1142
|
-
var r = e.length === 1 ?
|
|
1143
|
-
return
|
|
1104
|
+
function on(e, t) {
|
|
1105
|
+
var r = e.length === 1 ? It : Ct;
|
|
1106
|
+
return ze(e, this, r, t.cache.create(), t.serializer);
|
|
1144
1107
|
}
|
|
1145
|
-
function
|
|
1146
|
-
return
|
|
1108
|
+
function sn(e, t) {
|
|
1109
|
+
return ze(e, this, Ct, t.cache.create(), t.serializer);
|
|
1147
1110
|
}
|
|
1148
|
-
function
|
|
1149
|
-
return
|
|
1111
|
+
function an(e, t) {
|
|
1112
|
+
return ze(e, this, It, t.cache.create(), t.serializer);
|
|
1150
1113
|
}
|
|
1151
|
-
var
|
|
1114
|
+
var un = function() {
|
|
1152
1115
|
return JSON.stringify(arguments);
|
|
1153
|
-
},
|
|
1116
|
+
}, hn = (
|
|
1154
1117
|
/** @class */
|
|
1155
1118
|
function() {
|
|
1156
1119
|
function e() {
|
|
@@ -1162,62 +1125,62 @@ var vn = function() {
|
|
|
1162
1125
|
this.cache[t] = r;
|
|
1163
1126
|
}, e;
|
|
1164
1127
|
}()
|
|
1165
|
-
),
|
|
1128
|
+
), ln = {
|
|
1166
1129
|
create: function() {
|
|
1167
|
-
return new
|
|
1130
|
+
return new hn();
|
|
1168
1131
|
}
|
|
1169
|
-
},
|
|
1170
|
-
variadic:
|
|
1171
|
-
monadic:
|
|
1172
|
-
},
|
|
1132
|
+
}, Be = {
|
|
1133
|
+
variadic: sn,
|
|
1134
|
+
monadic: an
|
|
1135
|
+
}, p;
|
|
1173
1136
|
(function(e) {
|
|
1174
1137
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
1175
|
-
})(
|
|
1138
|
+
})(p || (p = {}));
|
|
1176
1139
|
var x;
|
|
1177
1140
|
(function(e) {
|
|
1178
1141
|
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";
|
|
1179
1142
|
})(x || (x = {}));
|
|
1180
|
-
var
|
|
1143
|
+
var V;
|
|
1181
1144
|
(function(e) {
|
|
1182
1145
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1183
|
-
})(
|
|
1184
|
-
function
|
|
1146
|
+
})(V || (V = {}));
|
|
1147
|
+
function ot(e) {
|
|
1185
1148
|
return e.type === x.literal;
|
|
1186
1149
|
}
|
|
1187
|
-
function
|
|
1150
|
+
function cn(e) {
|
|
1188
1151
|
return e.type === x.argument;
|
|
1189
1152
|
}
|
|
1190
|
-
function
|
|
1153
|
+
function Nt(e) {
|
|
1191
1154
|
return e.type === x.number;
|
|
1192
1155
|
}
|
|
1193
|
-
function
|
|
1156
|
+
function Lt(e) {
|
|
1194
1157
|
return e.type === x.date;
|
|
1195
1158
|
}
|
|
1196
|
-
function
|
|
1159
|
+
function Mt(e) {
|
|
1197
1160
|
return e.type === x.time;
|
|
1198
1161
|
}
|
|
1199
|
-
function
|
|
1162
|
+
function $t(e) {
|
|
1200
1163
|
return e.type === x.select;
|
|
1201
1164
|
}
|
|
1202
|
-
function
|
|
1165
|
+
function Rt(e) {
|
|
1203
1166
|
return e.type === x.plural;
|
|
1204
1167
|
}
|
|
1205
|
-
function
|
|
1168
|
+
function fn(e) {
|
|
1206
1169
|
return e.type === x.pound;
|
|
1207
1170
|
}
|
|
1208
|
-
function
|
|
1171
|
+
function Dt(e) {
|
|
1209
1172
|
return e.type === x.tag;
|
|
1210
1173
|
}
|
|
1211
|
-
function
|
|
1212
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1174
|
+
function Ut(e) {
|
|
1175
|
+
return !!(e && typeof e == "object" && e.type === V.number);
|
|
1213
1176
|
}
|
|
1214
|
-
function
|
|
1215
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1177
|
+
function Me(e) {
|
|
1178
|
+
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
1216
1179
|
}
|
|
1217
|
-
var
|
|
1218
|
-
function
|
|
1180
|
+
var Gt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, pn = /(?:[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;
|
|
1181
|
+
function dn(e) {
|
|
1219
1182
|
var t = {};
|
|
1220
|
-
return e.replace(
|
|
1183
|
+
return e.replace(pn, function(r) {
|
|
1221
1184
|
var n = r.length;
|
|
1222
1185
|
switch (r[0]) {
|
|
1223
1186
|
case "G":
|
|
@@ -1306,36 +1269,36 @@ function Hn(e) {
|
|
|
1306
1269
|
return "";
|
|
1307
1270
|
}), t;
|
|
1308
1271
|
}
|
|
1309
|
-
var
|
|
1310
|
-
function
|
|
1272
|
+
var mn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1273
|
+
function bn(e) {
|
|
1311
1274
|
if (e.length === 0)
|
|
1312
1275
|
throw new Error("Number skeleton cannot be empty");
|
|
1313
|
-
for (var t = e.split(
|
|
1276
|
+
for (var t = e.split(mn).filter(function(f) {
|
|
1314
1277
|
return f.length > 0;
|
|
1315
1278
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1316
1279
|
var o = i[n], s = o.split("/");
|
|
1317
1280
|
if (s.length === 0)
|
|
1318
1281
|
throw new Error("Invalid number skeleton");
|
|
1319
|
-
for (var a = s[0],
|
|
1320
|
-
var c = u
|
|
1282
|
+
for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
1283
|
+
var c = l[u];
|
|
1321
1284
|
if (c.length === 0)
|
|
1322
1285
|
throw new Error("Invalid number skeleton");
|
|
1323
1286
|
}
|
|
1324
|
-
r.push({ stem: a, options:
|
|
1287
|
+
r.push({ stem: a, options: h });
|
|
1325
1288
|
}
|
|
1326
1289
|
return r;
|
|
1327
1290
|
}
|
|
1328
|
-
function
|
|
1291
|
+
function gn(e) {
|
|
1329
1292
|
return e.replace(/^(.*?)-/, "");
|
|
1330
1293
|
}
|
|
1331
|
-
var
|
|
1332
|
-
function
|
|
1294
|
+
var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ft = /^(@+)?(\+|#+)?[rs]?$/g, yn = /(\*)(0+)|(#+)(0+)|(0+)/g, jt = /^(0+)$/;
|
|
1295
|
+
function at(e) {
|
|
1333
1296
|
var t = {};
|
|
1334
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1297
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ft, function(r, n, i) {
|
|
1335
1298
|
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)), "";
|
|
1336
1299
|
}), t;
|
|
1337
1300
|
}
|
|
1338
|
-
function
|
|
1301
|
+
function kt(e) {
|
|
1339
1302
|
switch (e) {
|
|
1340
1303
|
case "sign-auto":
|
|
1341
1304
|
return {
|
|
@@ -1375,7 +1338,7 @@ function Qt(e) {
|
|
|
1375
1338
|
};
|
|
1376
1339
|
}
|
|
1377
1340
|
}
|
|
1378
|
-
function
|
|
1341
|
+
function vn(e) {
|
|
1379
1342
|
var t;
|
|
1380
1343
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1381
1344
|
notation: "engineering"
|
|
@@ -1383,17 +1346,17 @@ function On(e) {
|
|
|
1383
1346
|
notation: "scientific"
|
|
1384
1347
|
}, e = e.slice(1)), t) {
|
|
1385
1348
|
var r = e.slice(0, 2);
|
|
1386
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1349
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !jt.test(e))
|
|
1387
1350
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1388
1351
|
t.minimumIntegerDigits = e.length;
|
|
1389
1352
|
}
|
|
1390
1353
|
return t;
|
|
1391
1354
|
}
|
|
1392
|
-
function
|
|
1393
|
-
var t = {}, r =
|
|
1355
|
+
function ut(e) {
|
|
1356
|
+
var t = {}, r = kt(e);
|
|
1394
1357
|
return r || t;
|
|
1395
1358
|
}
|
|
1396
|
-
function
|
|
1359
|
+
function xn(e) {
|
|
1397
1360
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1398
1361
|
var i = n[r];
|
|
1399
1362
|
switch (i.stem) {
|
|
@@ -1417,7 +1380,7 @@ function In(e) {
|
|
|
1417
1380
|
continue;
|
|
1418
1381
|
case "measure-unit":
|
|
1419
1382
|
case "unit":
|
|
1420
|
-
t.style = "unit", t.unit =
|
|
1383
|
+
t.style = "unit", t.unit = gn(i.options[0]);
|
|
1421
1384
|
continue;
|
|
1422
1385
|
case "compact-short":
|
|
1423
1386
|
case "K":
|
|
@@ -1428,13 +1391,13 @@ function In(e) {
|
|
|
1428
1391
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1429
1392
|
continue;
|
|
1430
1393
|
case "scientific":
|
|
1431
|
-
t = b(b(b({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
1432
|
-
return b(b({},
|
|
1394
|
+
t = b(b(b({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1395
|
+
return b(b({}, h), ut(u));
|
|
1433
1396
|
}, {}));
|
|
1434
1397
|
continue;
|
|
1435
1398
|
case "engineering":
|
|
1436
|
-
t = b(b(b({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
1437
|
-
return b(b({},
|
|
1399
|
+
t = b(b(b({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1400
|
+
return b(b({}, h), ut(u));
|
|
1438
1401
|
}, {}));
|
|
1439
1402
|
continue;
|
|
1440
1403
|
case "notation-simple":
|
|
@@ -1479,9 +1442,9 @@ function In(e) {
|
|
|
1479
1442
|
case "integer-width":
|
|
1480
1443
|
if (i.options.length > 1)
|
|
1481
1444
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1482
|
-
i.options[0].replace(
|
|
1483
|
-
if (
|
|
1484
|
-
t.minimumIntegerDigits =
|
|
1445
|
+
i.options[0].replace(yn, function(h, u, l, c, f, m) {
|
|
1446
|
+
if (u)
|
|
1447
|
+
t.minimumIntegerDigits = l.length;
|
|
1485
1448
|
else {
|
|
1486
1449
|
if (c && f)
|
|
1487
1450
|
throw new Error("We currently do not support maximum integer digits");
|
|
@@ -1492,32 +1455,32 @@ function In(e) {
|
|
|
1492
1455
|
});
|
|
1493
1456
|
continue;
|
|
1494
1457
|
}
|
|
1495
|
-
if (
|
|
1458
|
+
if (jt.test(i.stem)) {
|
|
1496
1459
|
t.minimumIntegerDigits = i.stem.length;
|
|
1497
1460
|
continue;
|
|
1498
1461
|
}
|
|
1499
|
-
if (
|
|
1462
|
+
if (st.test(i.stem)) {
|
|
1500
1463
|
if (i.options.length > 1)
|
|
1501
1464
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1502
|
-
i.stem.replace(
|
|
1503
|
-
return
|
|
1465
|
+
i.stem.replace(st, function(h, u, l, c, f, m) {
|
|
1466
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1504
1467
|
});
|
|
1505
1468
|
var o = i.options[0];
|
|
1506
|
-
o === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = b(b({}, t),
|
|
1469
|
+
o === "w" ? t = b(b({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = b(b({}, t), at(o)));
|
|
1507
1470
|
continue;
|
|
1508
1471
|
}
|
|
1509
|
-
if (
|
|
1510
|
-
t = b(b({}, t),
|
|
1472
|
+
if (Ft.test(i.stem)) {
|
|
1473
|
+
t = b(b({}, t), at(i.stem));
|
|
1511
1474
|
continue;
|
|
1512
1475
|
}
|
|
1513
|
-
var s =
|
|
1476
|
+
var s = kt(i.stem);
|
|
1514
1477
|
s && (t = b(b({}, t), s));
|
|
1515
|
-
var a =
|
|
1478
|
+
var a = vn(i.stem);
|
|
1516
1479
|
a && (t = b(b({}, t), a));
|
|
1517
1480
|
}
|
|
1518
1481
|
return t;
|
|
1519
1482
|
}
|
|
1520
|
-
var
|
|
1483
|
+
var se = {
|
|
1521
1484
|
"001": [
|
|
1522
1485
|
"H",
|
|
1523
1486
|
"h"
|
|
@@ -2932,22 +2895,22 @@ var ae = {
|
|
|
2932
2895
|
"h"
|
|
2933
2896
|
]
|
|
2934
2897
|
};
|
|
2935
|
-
function
|
|
2898
|
+
function En(e, t) {
|
|
2936
2899
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2937
2900
|
var i = e.charAt(n);
|
|
2938
2901
|
if (i === "j") {
|
|
2939
2902
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2940
2903
|
o++, n++;
|
|
2941
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1),
|
|
2942
|
-
for ((
|
|
2943
|
-
r +=
|
|
2904
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = _n(t);
|
|
2905
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2906
|
+
r += h;
|
|
2944
2907
|
for (; s-- > 0; )
|
|
2945
|
-
r =
|
|
2908
|
+
r = u + r;
|
|
2946
2909
|
} else i === "J" ? r += "H" : r += i;
|
|
2947
2910
|
}
|
|
2948
2911
|
return r;
|
|
2949
2912
|
}
|
|
2950
|
-
function
|
|
2913
|
+
function _n(e) {
|
|
2951
2914
|
var t = e.hourCycle;
|
|
2952
2915
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2953
2916
|
e.hourCycles && // @ts-ignore
|
|
@@ -2966,23 +2929,23 @@ function Nn(e) {
|
|
|
2966
2929
|
}
|
|
2967
2930
|
var r = e.language, n;
|
|
2968
2931
|
r !== "root" && (n = e.maximize().region);
|
|
2969
|
-
var i =
|
|
2932
|
+
var i = se[n || ""] || se[r || ""] || se["".concat(r, "-001")] || se["001"];
|
|
2970
2933
|
return i[0];
|
|
2971
2934
|
}
|
|
2972
|
-
var
|
|
2973
|
-
function
|
|
2935
|
+
var Te, Sn = new RegExp("^".concat(Gt.source, "*")), Bn = new RegExp("".concat(Gt.source, "*$"));
|
|
2936
|
+
function d(e, t) {
|
|
2974
2937
|
return { start: e, end: t };
|
|
2975
2938
|
}
|
|
2976
|
-
var
|
|
2939
|
+
var Tn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Hn = !!String.fromCodePoint, wn = !!Object.fromEntries, Pn = !!String.prototype.codePointAt, An = !!String.prototype.trimStart, On = !!String.prototype.trimEnd, In = !!Number.isSafeInteger, Cn = In ? Number.isSafeInteger : function(e) {
|
|
2977
2940
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2978
|
-
},
|
|
2941
|
+
}, $e = !0;
|
|
2979
2942
|
try {
|
|
2980
|
-
var
|
|
2981
|
-
|
|
2982
|
-
} catch
|
|
2983
|
-
|
|
2943
|
+
var Nn = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2944
|
+
$e = ((Te = Nn.exec("a")) === null || Te === void 0 ? void 0 : Te[0]) === "a";
|
|
2945
|
+
} catch {
|
|
2946
|
+
$e = !1;
|
|
2984
2947
|
}
|
|
2985
|
-
var
|
|
2948
|
+
var ht = Tn ? (
|
|
2986
2949
|
// Native
|
|
2987
2950
|
function(t, r, n) {
|
|
2988
2951
|
return t.startsWith(r, n);
|
|
@@ -2992,7 +2955,7 @@ var mt = $n ? (
|
|
|
2992
2955
|
function(t, r, n) {
|
|
2993
2956
|
return t.slice(n, n + r.length) === r;
|
|
2994
2957
|
}
|
|
2995
|
-
),
|
|
2958
|
+
), Re = Hn ? String.fromCodePoint : (
|
|
2996
2959
|
// IE11
|
|
2997
2960
|
function() {
|
|
2998
2961
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3004,9 +2967,9 @@ var mt = $n ? (
|
|
|
3004
2967
|
}
|
|
3005
2968
|
return n;
|
|
3006
2969
|
}
|
|
3007
|
-
),
|
|
2970
|
+
), lt = (
|
|
3008
2971
|
// native
|
|
3009
|
-
|
|
2972
|
+
wn ? Object.fromEntries : (
|
|
3010
2973
|
// Ponyfill
|
|
3011
2974
|
function(t) {
|
|
3012
2975
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3016,7 +2979,7 @@ var mt = $n ? (
|
|
|
3016
2979
|
return r;
|
|
3017
2980
|
}
|
|
3018
2981
|
)
|
|
3019
|
-
),
|
|
2982
|
+
), Vt = Pn ? (
|
|
3020
2983
|
// Native
|
|
3021
2984
|
function(t, r) {
|
|
3022
2985
|
return t.codePointAt(r);
|
|
@@ -3030,7 +2993,7 @@ var mt = $n ? (
|
|
|
3030
2993
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3031
2994
|
}
|
|
3032
2995
|
}
|
|
3033
|
-
),
|
|
2996
|
+
), Ln = An ? (
|
|
3034
2997
|
// Native
|
|
3035
2998
|
function(t) {
|
|
3036
2999
|
return t.trimStart();
|
|
@@ -3038,9 +3001,9 @@ var mt = $n ? (
|
|
|
3038
3001
|
) : (
|
|
3039
3002
|
// Ponyfill
|
|
3040
3003
|
function(t) {
|
|
3041
|
-
return t.replace(
|
|
3004
|
+
return t.replace(Sn, "");
|
|
3042
3005
|
}
|
|
3043
|
-
),
|
|
3006
|
+
), Mn = On ? (
|
|
3044
3007
|
// Native
|
|
3045
3008
|
function(t) {
|
|
3046
3009
|
return t.trimEnd();
|
|
@@ -3048,32 +3011,32 @@ var mt = $n ? (
|
|
|
3048
3011
|
) : (
|
|
3049
3012
|
// Ponyfill
|
|
3050
3013
|
function(t) {
|
|
3051
|
-
return t.replace(
|
|
3014
|
+
return t.replace(Bn, "");
|
|
3052
3015
|
}
|
|
3053
3016
|
);
|
|
3054
|
-
function
|
|
3017
|
+
function zt(e, t) {
|
|
3055
3018
|
return new RegExp(e, t);
|
|
3056
3019
|
}
|
|
3057
|
-
var
|
|
3058
|
-
if (
|
|
3059
|
-
var
|
|
3060
|
-
|
|
3020
|
+
var De;
|
|
3021
|
+
if ($e) {
|
|
3022
|
+
var ct = zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3023
|
+
De = function(t, r) {
|
|
3061
3024
|
var n;
|
|
3062
|
-
|
|
3063
|
-
var i =
|
|
3025
|
+
ct.lastIndex = r;
|
|
3026
|
+
var i = ct.exec(t);
|
|
3064
3027
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3065
3028
|
};
|
|
3066
3029
|
} else
|
|
3067
|
-
|
|
3030
|
+
De = function(t, r) {
|
|
3068
3031
|
for (var n = []; ; ) {
|
|
3069
|
-
var i =
|
|
3070
|
-
if (i === void 0 ||
|
|
3032
|
+
var i = Vt(t, r);
|
|
3033
|
+
if (i === void 0 || Xt(i) || Un(i))
|
|
3071
3034
|
break;
|
|
3072
3035
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3073
3036
|
}
|
|
3074
|
-
return
|
|
3037
|
+
return Re.apply(void 0, n);
|
|
3075
3038
|
};
|
|
3076
|
-
var
|
|
3039
|
+
var $n = (
|
|
3077
3040
|
/** @class */
|
|
3078
3041
|
function() {
|
|
3079
3042
|
function e(t, r) {
|
|
@@ -3098,13 +3061,13 @@ var Wn = (
|
|
|
3098
3061
|
var a = this.clonePosition();
|
|
3099
3062
|
this.bump(), i.push({
|
|
3100
3063
|
type: x.pound,
|
|
3101
|
-
location:
|
|
3064
|
+
location: d(a, this.clonePosition())
|
|
3102
3065
|
});
|
|
3103
3066
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3104
3067
|
if (n)
|
|
3105
3068
|
break;
|
|
3106
|
-
return this.error(
|
|
3107
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3069
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, d(this.clonePosition(), this.clonePosition()));
|
|
3070
|
+
} else if (o === 60 && !this.ignoreTag && Ue(this.peek() || 0)) {
|
|
3108
3071
|
var s = this.parseTag(t, r);
|
|
3109
3072
|
if (s.err)
|
|
3110
3073
|
return s;
|
|
@@ -3127,7 +3090,7 @@ var Wn = (
|
|
|
3127
3090
|
val: {
|
|
3128
3091
|
type: x.literal,
|
|
3129
3092
|
value: "<".concat(i, "/>"),
|
|
3130
|
-
location:
|
|
3093
|
+
location: d(n, this.clonePosition())
|
|
3131
3094
|
},
|
|
3132
3095
|
err: null
|
|
3133
3096
|
};
|
|
@@ -3137,25 +3100,25 @@ var Wn = (
|
|
|
3137
3100
|
return o;
|
|
3138
3101
|
var s = o.val, a = this.clonePosition();
|
|
3139
3102
|
if (this.bumpIf("</")) {
|
|
3140
|
-
if (this.isEOF() || !
|
|
3141
|
-
return this.error(
|
|
3142
|
-
var
|
|
3143
|
-
return i !==
|
|
3103
|
+
if (this.isEOF() || !Ue(this.char()))
|
|
3104
|
+
return this.error(p.INVALID_TAG, d(a, this.clonePosition()));
|
|
3105
|
+
var h = this.clonePosition(), u = this.parseTagName();
|
|
3106
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, d(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3144
3107
|
val: {
|
|
3145
3108
|
type: x.tag,
|
|
3146
3109
|
value: i,
|
|
3147
3110
|
children: s,
|
|
3148
|
-
location:
|
|
3111
|
+
location: d(n, this.clonePosition())
|
|
3149
3112
|
},
|
|
3150
3113
|
err: null
|
|
3151
|
-
} : this.error(
|
|
3114
|
+
} : this.error(p.INVALID_TAG, d(a, this.clonePosition())));
|
|
3152
3115
|
} else
|
|
3153
|
-
return this.error(
|
|
3116
|
+
return this.error(p.UNCLOSED_TAG, d(n, this.clonePosition()));
|
|
3154
3117
|
} else
|
|
3155
|
-
return this.error(
|
|
3118
|
+
return this.error(p.INVALID_TAG, d(n, this.clonePosition()));
|
|
3156
3119
|
}, e.prototype.parseTagName = function() {
|
|
3157
3120
|
var t = this.offset();
|
|
3158
|
-
for (this.bump(); !this.isEOF() &&
|
|
3121
|
+
for (this.bump(); !this.isEOF() && Dn(this.char()); )
|
|
3159
3122
|
this.bump();
|
|
3160
3123
|
return this.message.slice(t, this.offset());
|
|
3161
3124
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3177,14 +3140,14 @@ var Wn = (
|
|
|
3177
3140
|
}
|
|
3178
3141
|
break;
|
|
3179
3142
|
}
|
|
3180
|
-
var
|
|
3143
|
+
var h = d(n, this.clonePosition());
|
|
3181
3144
|
return {
|
|
3182
|
-
val: { type: x.literal, value: i, location:
|
|
3145
|
+
val: { type: x.literal, value: i, location: h },
|
|
3183
3146
|
err: null
|
|
3184
3147
|
};
|
|
3185
3148
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3186
3149
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3187
|
-
!
|
|
3150
|
+
!Rn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3188
3151
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3189
3152
|
if (this.isEOF() || this.char() !== 39)
|
|
3190
3153
|
return null;
|
|
@@ -3218,23 +3181,23 @@ var Wn = (
|
|
|
3218
3181
|
r.push(n);
|
|
3219
3182
|
this.bump();
|
|
3220
3183
|
}
|
|
3221
|
-
return
|
|
3184
|
+
return Re.apply(void 0, r);
|
|
3222
3185
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3223
3186
|
if (this.isEOF())
|
|
3224
3187
|
return null;
|
|
3225
3188
|
var n = this.char();
|
|
3226
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3189
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Re(n));
|
|
3227
3190
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3228
3191
|
var n = this.clonePosition();
|
|
3229
3192
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3230
|
-
return this.error(
|
|
3193
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
|
3231
3194
|
if (this.char() === 125)
|
|
3232
|
-
return this.bump(), this.error(
|
|
3195
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, d(n, this.clonePosition()));
|
|
3233
3196
|
var i = this.parseIdentifierIfPossible().value;
|
|
3234
3197
|
if (!i)
|
|
3235
|
-
return this.error(
|
|
3198
|
+
return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3236
3199
|
if (this.bumpSpace(), this.isEOF())
|
|
3237
|
-
return this.error(
|
|
3200
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition()));
|
|
3238
3201
|
switch (this.char()) {
|
|
3239
3202
|
case 125:
|
|
3240
3203
|
return this.bump(), {
|
|
@@ -3242,66 +3205,66 @@ var Wn = (
|
|
|
3242
3205
|
type: x.argument,
|
|
3243
3206
|
// value does not include the opening and closing braces.
|
|
3244
3207
|
value: i,
|
|
3245
|
-
location:
|
|
3208
|
+
location: d(n, this.clonePosition())
|
|
3246
3209
|
},
|
|
3247
3210
|
err: null
|
|
3248
3211
|
};
|
|
3249
3212
|
case 44:
|
|
3250
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3213
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3251
3214
|
default:
|
|
3252
|
-
return this.error(
|
|
3215
|
+
return this.error(p.MALFORMED_ARGUMENT, d(n, this.clonePosition()));
|
|
3253
3216
|
}
|
|
3254
3217
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3255
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3218
|
+
var t = this.clonePosition(), r = this.offset(), n = De(this.message, r), i = r + n.length;
|
|
3256
3219
|
this.bumpTo(i);
|
|
3257
|
-
var o = this.clonePosition(), s =
|
|
3220
|
+
var o = this.clonePosition(), s = d(t, o);
|
|
3258
3221
|
return { value: n, location: s };
|
|
3259
3222
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3260
|
-
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value,
|
|
3223
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
3261
3224
|
switch (a) {
|
|
3262
3225
|
case "":
|
|
3263
|
-
return this.error(
|
|
3226
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, d(s, h));
|
|
3264
3227
|
case "number":
|
|
3265
3228
|
case "date":
|
|
3266
3229
|
case "time": {
|
|
3267
3230
|
this.bumpSpace();
|
|
3268
|
-
var
|
|
3231
|
+
var u = null;
|
|
3269
3232
|
if (this.bumpIf(",")) {
|
|
3270
3233
|
this.bumpSpace();
|
|
3271
|
-
var
|
|
3234
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3272
3235
|
if (c.err)
|
|
3273
3236
|
return c;
|
|
3274
|
-
var f =
|
|
3237
|
+
var f = Mn(c.val);
|
|
3275
3238
|
if (f.length === 0)
|
|
3276
|
-
return this.error(
|
|
3277
|
-
var m =
|
|
3278
|
-
|
|
3239
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, d(this.clonePosition(), this.clonePosition()));
|
|
3240
|
+
var m = d(l, this.clonePosition());
|
|
3241
|
+
u = { style: f, styleLocation: m };
|
|
3279
3242
|
}
|
|
3280
3243
|
var v = this.tryParseArgumentClose(i);
|
|
3281
3244
|
if (v.err)
|
|
3282
3245
|
return v;
|
|
3283
|
-
var y =
|
|
3284
|
-
if (
|
|
3285
|
-
var
|
|
3246
|
+
var y = d(i, this.clonePosition());
|
|
3247
|
+
if (u && ht(u?.style, "::", 0)) {
|
|
3248
|
+
var S = Ln(u.style.slice(2));
|
|
3286
3249
|
if (a === "number") {
|
|
3287
|
-
var c = this.parseNumberSkeletonFromString(
|
|
3250
|
+
var c = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
3288
3251
|
return c.err ? c : {
|
|
3289
3252
|
val: { type: x.number, value: n, location: y, style: c.val },
|
|
3290
3253
|
err: null
|
|
3291
3254
|
};
|
|
3292
3255
|
} else {
|
|
3293
|
-
if (
|
|
3294
|
-
return this.error(
|
|
3295
|
-
var
|
|
3296
|
-
this.locale && (
|
|
3256
|
+
if (S.length === 0)
|
|
3257
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, y);
|
|
3258
|
+
var N = S;
|
|
3259
|
+
this.locale && (N = En(S, this.locale));
|
|
3297
3260
|
var f = {
|
|
3298
|
-
type:
|
|
3299
|
-
pattern:
|
|
3300
|
-
location:
|
|
3301
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3302
|
-
},
|
|
3261
|
+
type: V.dateTime,
|
|
3262
|
+
pattern: N,
|
|
3263
|
+
location: u.styleLocation,
|
|
3264
|
+
parsedOptions: this.shouldParseSkeletons ? dn(N) : {}
|
|
3265
|
+
}, O = a === "date" ? x.date : x.time;
|
|
3303
3266
|
return {
|
|
3304
|
-
val: { type:
|
|
3267
|
+
val: { type: O, value: n, location: y, style: f },
|
|
3305
3268
|
err: null
|
|
3306
3269
|
};
|
|
3307
3270
|
}
|
|
@@ -3311,7 +3274,7 @@ var Wn = (
|
|
|
3311
3274
|
type: a === "number" ? x.number : a === "date" ? x.date : x.time,
|
|
3312
3275
|
value: n,
|
|
3313
3276
|
location: y,
|
|
3314
|
-
style: (o =
|
|
3277
|
+
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
3315
3278
|
},
|
|
3316
3279
|
err: null
|
|
3317
3280
|
};
|
|
@@ -3321,50 +3284,50 @@ var Wn = (
|
|
|
3321
3284
|
case "select": {
|
|
3322
3285
|
var E = this.clonePosition();
|
|
3323
3286
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3324
|
-
return this.error(
|
|
3287
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, d(E, b({}, E)));
|
|
3325
3288
|
this.bumpSpace();
|
|
3326
|
-
var
|
|
3327
|
-
if (a !== "select" &&
|
|
3289
|
+
var T = this.parseIdentifierIfPossible(), H = 0;
|
|
3290
|
+
if (a !== "select" && T.value === "offset") {
|
|
3328
3291
|
if (!this.bumpIf(":"))
|
|
3329
|
-
return this.error(
|
|
3292
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d(this.clonePosition(), this.clonePosition()));
|
|
3330
3293
|
this.bumpSpace();
|
|
3331
|
-
var c = this.tryParseDecimalInteger(
|
|
3294
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3332
3295
|
if (c.err)
|
|
3333
3296
|
return c;
|
|
3334
|
-
this.bumpSpace(),
|
|
3297
|
+
this.bumpSpace(), T = this.parseIdentifierIfPossible(), H = c.val;
|
|
3335
3298
|
}
|
|
3336
|
-
var
|
|
3337
|
-
if (
|
|
3338
|
-
return
|
|
3299
|
+
var $ = this.tryParsePluralOrSelectOptions(t, a, r, T);
|
|
3300
|
+
if ($.err)
|
|
3301
|
+
return $;
|
|
3339
3302
|
var v = this.tryParseArgumentClose(i);
|
|
3340
3303
|
if (v.err)
|
|
3341
3304
|
return v;
|
|
3342
|
-
var
|
|
3305
|
+
var ie = d(i, this.clonePosition());
|
|
3343
3306
|
return a === "select" ? {
|
|
3344
3307
|
val: {
|
|
3345
3308
|
type: x.select,
|
|
3346
3309
|
value: n,
|
|
3347
|
-
options:
|
|
3348
|
-
location:
|
|
3310
|
+
options: lt($.val),
|
|
3311
|
+
location: ie
|
|
3349
3312
|
},
|
|
3350
3313
|
err: null
|
|
3351
3314
|
} : {
|
|
3352
3315
|
val: {
|
|
3353
3316
|
type: x.plural,
|
|
3354
3317
|
value: n,
|
|
3355
|
-
options:
|
|
3356
|
-
offset:
|
|
3318
|
+
options: lt($.val),
|
|
3319
|
+
offset: H,
|
|
3357
3320
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3358
|
-
location:
|
|
3321
|
+
location: ie
|
|
3359
3322
|
},
|
|
3360
3323
|
err: null
|
|
3361
3324
|
};
|
|
3362
3325
|
}
|
|
3363
3326
|
default:
|
|
3364
|
-
return this.error(
|
|
3327
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, d(s, h));
|
|
3365
3328
|
}
|
|
3366
3329
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3367
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3330
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, d(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3368
3331
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3369
3332
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3370
3333
|
var n = this.char();
|
|
@@ -3373,7 +3336,7 @@ var Wn = (
|
|
|
3373
3336
|
this.bump();
|
|
3374
3337
|
var i = this.clonePosition();
|
|
3375
3338
|
if (!this.bumpUntil("'"))
|
|
3376
|
-
return this.error(
|
|
3339
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, d(i, this.clonePosition()));
|
|
3377
3340
|
this.bump();
|
|
3378
3341
|
break;
|
|
3379
3342
|
}
|
|
@@ -3403,37 +3366,37 @@ var Wn = (
|
|
|
3403
3366
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3404
3367
|
var n = [];
|
|
3405
3368
|
try {
|
|
3406
|
-
n =
|
|
3407
|
-
} catch
|
|
3408
|
-
return this.error(
|
|
3369
|
+
n = bn(t);
|
|
3370
|
+
} catch {
|
|
3371
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3409
3372
|
}
|
|
3410
3373
|
return {
|
|
3411
3374
|
val: {
|
|
3412
|
-
type:
|
|
3375
|
+
type: V.number,
|
|
3413
3376
|
tokens: n,
|
|
3414
3377
|
location: r,
|
|
3415
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3378
|
+
parsedOptions: this.shouldParseSkeletons ? xn(n) : {}
|
|
3416
3379
|
},
|
|
3417
3380
|
err: null
|
|
3418
3381
|
};
|
|
3419
3382
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3420
|
-
for (var o, s = !1, a = [],
|
|
3421
|
-
if (
|
|
3383
|
+
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3384
|
+
if (u.length === 0) {
|
|
3422
3385
|
var c = this.clonePosition();
|
|
3423
3386
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3424
|
-
var f = this.tryParseDecimalInteger(
|
|
3387
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3425
3388
|
if (f.err)
|
|
3426
3389
|
return f;
|
|
3427
|
-
|
|
3390
|
+
l = d(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3428
3391
|
} else
|
|
3429
3392
|
break;
|
|
3430
3393
|
}
|
|
3431
|
-
if (
|
|
3432
|
-
return this.error(r === "select" ?
|
|
3433
|
-
|
|
3394
|
+
if (h.has(u))
|
|
3395
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3396
|
+
u === "other" && (s = !0), this.bumpSpace();
|
|
3434
3397
|
var m = this.clonePosition();
|
|
3435
3398
|
if (!this.bumpIf("{"))
|
|
3436
|
-
return this.error(r === "select" ?
|
|
3399
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, d(this.clonePosition(), this.clonePosition()));
|
|
3437
3400
|
var v = this.parseMessage(t + 1, r, n);
|
|
3438
3401
|
if (v.err)
|
|
3439
3402
|
return v;
|
|
@@ -3441,14 +3404,14 @@ var Wn = (
|
|
|
3441
3404
|
if (y.err)
|
|
3442
3405
|
return y;
|
|
3443
3406
|
a.push([
|
|
3444
|
-
|
|
3407
|
+
u,
|
|
3445
3408
|
{
|
|
3446
3409
|
value: v.val,
|
|
3447
|
-
location:
|
|
3410
|
+
location: d(m, this.clonePosition())
|
|
3448
3411
|
}
|
|
3449
|
-
]),
|
|
3412
|
+
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3450
3413
|
}
|
|
3451
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3414
|
+
return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, d(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, d(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3452
3415
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3453
3416
|
var n = 1, i = this.clonePosition();
|
|
3454
3417
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3459,8 +3422,8 @@ var Wn = (
|
|
|
3459
3422
|
else
|
|
3460
3423
|
break;
|
|
3461
3424
|
}
|
|
3462
|
-
var
|
|
3463
|
-
return o ? (s *= n,
|
|
3425
|
+
var h = d(i, this.clonePosition());
|
|
3426
|
+
return o ? (s *= n, Cn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3464
3427
|
}, e.prototype.offset = function() {
|
|
3465
3428
|
return this.position.offset;
|
|
3466
3429
|
}, e.prototype.isEOF = function() {
|
|
@@ -3475,7 +3438,7 @@ var Wn = (
|
|
|
3475
3438
|
var t = this.position.offset;
|
|
3476
3439
|
if (t >= this.message.length)
|
|
3477
3440
|
throw Error("out of bound");
|
|
3478
|
-
var r =
|
|
3441
|
+
var r = Vt(this.message, t);
|
|
3479
3442
|
if (r === void 0)
|
|
3480
3443
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3481
3444
|
return r;
|
|
@@ -3494,7 +3457,7 @@ var Wn = (
|
|
|
3494
3457
|
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);
|
|
3495
3458
|
}
|
|
3496
3459
|
}, e.prototype.bumpIf = function(t) {
|
|
3497
|
-
if (
|
|
3460
|
+
if (ht(this.message, t, this.offset())) {
|
|
3498
3461
|
for (var r = 0; r < t.length; r++)
|
|
3499
3462
|
this.bump();
|
|
3500
3463
|
return !0;
|
|
@@ -3516,56 +3479,56 @@ var Wn = (
|
|
|
3516
3479
|
break;
|
|
3517
3480
|
}
|
|
3518
3481
|
}, e.prototype.bumpSpace = function() {
|
|
3519
|
-
for (; !this.isEOF() &&
|
|
3482
|
+
for (; !this.isEOF() && Xt(this.char()); )
|
|
3520
3483
|
this.bump();
|
|
3521
3484
|
}, e.prototype.peek = function() {
|
|
3522
3485
|
if (this.isEOF())
|
|
3523
3486
|
return null;
|
|
3524
3487
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3525
|
-
return n
|
|
3488
|
+
return n ?? null;
|
|
3526
3489
|
}, e;
|
|
3527
3490
|
}()
|
|
3528
3491
|
);
|
|
3529
|
-
function
|
|
3492
|
+
function Ue(e) {
|
|
3530
3493
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3531
3494
|
}
|
|
3532
|
-
function
|
|
3533
|
-
return
|
|
3495
|
+
function Rn(e) {
|
|
3496
|
+
return Ue(e) || e === 47;
|
|
3534
3497
|
}
|
|
3535
|
-
function
|
|
3498
|
+
function Dn(e) {
|
|
3536
3499
|
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;
|
|
3537
3500
|
}
|
|
3538
|
-
function
|
|
3501
|
+
function Xt(e) {
|
|
3539
3502
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3540
3503
|
}
|
|
3541
|
-
function
|
|
3504
|
+
function Un(e) {
|
|
3542
3505
|
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;
|
|
3543
3506
|
}
|
|
3544
|
-
function
|
|
3507
|
+
function Ge(e) {
|
|
3545
3508
|
e.forEach(function(t) {
|
|
3546
|
-
if (delete t.location,
|
|
3509
|
+
if (delete t.location, $t(t) || Rt(t))
|
|
3547
3510
|
for (var r in t.options)
|
|
3548
|
-
delete t.options[r].location,
|
|
3549
|
-
else
|
|
3511
|
+
delete t.options[r].location, Ge(t.options[r].value);
|
|
3512
|
+
else Nt(t) && Ut(t.style) || (Lt(t) || Mt(t)) && Me(t.style) ? delete t.style.location : Dt(t) && Ge(t.children);
|
|
3550
3513
|
});
|
|
3551
3514
|
}
|
|
3552
|
-
function
|
|
3515
|
+
function Gn(e, t) {
|
|
3553
3516
|
t === void 0 && (t = {}), t = b({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3554
|
-
var r = new
|
|
3517
|
+
var r = new $n(e, t).parse();
|
|
3555
3518
|
if (r.err) {
|
|
3556
|
-
var n = SyntaxError(
|
|
3519
|
+
var n = SyntaxError(p[r.err.kind]);
|
|
3557
3520
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3558
3521
|
}
|
|
3559
|
-
return t
|
|
3522
|
+
return t?.captureLocation || Ge(r.val), r.val;
|
|
3560
3523
|
}
|
|
3561
|
-
var
|
|
3524
|
+
var z;
|
|
3562
3525
|
(function(e) {
|
|
3563
3526
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3564
|
-
})(
|
|
3565
|
-
var
|
|
3527
|
+
})(z || (z = {}));
|
|
3528
|
+
var ye = (
|
|
3566
3529
|
/** @class */
|
|
3567
3530
|
function(e) {
|
|
3568
|
-
|
|
3531
|
+
A(t, e);
|
|
3569
3532
|
function t(r, n, i) {
|
|
3570
3533
|
var o = e.call(this, r) || this;
|
|
3571
3534
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3574,155 +3537,155 @@ var ve = (
|
|
|
3574
3537
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3575
3538
|
}, t;
|
|
3576
3539
|
}(Error)
|
|
3577
|
-
),
|
|
3540
|
+
), ft = (
|
|
3578
3541
|
/** @class */
|
|
3579
3542
|
function(e) {
|
|
3580
|
-
|
|
3543
|
+
A(t, e);
|
|
3581
3544
|
function t(r, n, i, o) {
|
|
3582
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3545
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
|
|
3583
3546
|
}
|
|
3584
3547
|
return t;
|
|
3585
|
-
}(
|
|
3586
|
-
),
|
|
3548
|
+
}(ye)
|
|
3549
|
+
), Fn = (
|
|
3587
3550
|
/** @class */
|
|
3588
3551
|
function(e) {
|
|
3589
|
-
|
|
3552
|
+
A(t, e);
|
|
3590
3553
|
function t(r, n, i) {
|
|
3591
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3554
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
|
|
3592
3555
|
}
|
|
3593
3556
|
return t;
|
|
3594
|
-
}(
|
|
3595
|
-
),
|
|
3557
|
+
}(ye)
|
|
3558
|
+
), jn = (
|
|
3596
3559
|
/** @class */
|
|
3597
3560
|
function(e) {
|
|
3598
|
-
|
|
3561
|
+
A(t, e);
|
|
3599
3562
|
function t(r, n) {
|
|
3600
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3563
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
|
|
3601
3564
|
}
|
|
3602
3565
|
return t;
|
|
3603
|
-
}(
|
|
3566
|
+
}(ye)
|
|
3604
3567
|
), _;
|
|
3605
3568
|
(function(e) {
|
|
3606
3569
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3607
3570
|
})(_ || (_ = {}));
|
|
3608
|
-
function
|
|
3571
|
+
function kn(e) {
|
|
3609
3572
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3610
3573
|
var n = t[t.length - 1];
|
|
3611
3574
|
return !n || n.type !== _.literal || r.type !== _.literal ? t.push(r) : n.value += r.value, t;
|
|
3612
3575
|
}, []);
|
|
3613
3576
|
}
|
|
3614
|
-
function
|
|
3577
|
+
function Vn(e) {
|
|
3615
3578
|
return typeof e == "function";
|
|
3616
3579
|
}
|
|
3617
|
-
function
|
|
3618
|
-
if (e.length === 1 &&
|
|
3580
|
+
function ce(e, t, r, n, i, o, s) {
|
|
3581
|
+
if (e.length === 1 && ot(e[0]))
|
|
3619
3582
|
return [
|
|
3620
3583
|
{
|
|
3621
3584
|
type: _.literal,
|
|
3622
3585
|
value: e[0].value
|
|
3623
3586
|
}
|
|
3624
3587
|
];
|
|
3625
|
-
for (var a = [],
|
|
3626
|
-
var
|
|
3627
|
-
if (
|
|
3588
|
+
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3589
|
+
var l = u[h];
|
|
3590
|
+
if (ot(l)) {
|
|
3628
3591
|
a.push({
|
|
3629
3592
|
type: _.literal,
|
|
3630
|
-
value:
|
|
3593
|
+
value: l.value
|
|
3631
3594
|
});
|
|
3632
3595
|
continue;
|
|
3633
3596
|
}
|
|
3634
|
-
if (
|
|
3597
|
+
if (fn(l)) {
|
|
3635
3598
|
typeof o == "number" && a.push({
|
|
3636
3599
|
type: _.literal,
|
|
3637
3600
|
value: r.getNumberFormat(t).format(o)
|
|
3638
3601
|
});
|
|
3639
3602
|
continue;
|
|
3640
3603
|
}
|
|
3641
|
-
var c =
|
|
3604
|
+
var c = l.value;
|
|
3642
3605
|
if (!(i && c in i))
|
|
3643
|
-
throw new
|
|
3606
|
+
throw new jn(c, s);
|
|
3644
3607
|
var f = i[c];
|
|
3645
|
-
if (
|
|
3608
|
+
if (cn(l)) {
|
|
3646
3609
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3647
3610
|
type: typeof f == "string" ? _.literal : _.object,
|
|
3648
3611
|
value: f
|
|
3649
3612
|
});
|
|
3650
3613
|
continue;
|
|
3651
3614
|
}
|
|
3652
|
-
if (
|
|
3653
|
-
var m = typeof
|
|
3615
|
+
if (Lt(l)) {
|
|
3616
|
+
var m = typeof l.style == "string" ? n.date[l.style] : Me(l.style) ? l.style.parsedOptions : void 0;
|
|
3654
3617
|
a.push({
|
|
3655
3618
|
type: _.literal,
|
|
3656
3619
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3657
3620
|
});
|
|
3658
3621
|
continue;
|
|
3659
3622
|
}
|
|
3660
|
-
if (
|
|
3661
|
-
var m = typeof
|
|
3623
|
+
if (Mt(l)) {
|
|
3624
|
+
var m = typeof l.style == "string" ? n.time[l.style] : Me(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3662
3625
|
a.push({
|
|
3663
3626
|
type: _.literal,
|
|
3664
3627
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3665
3628
|
});
|
|
3666
3629
|
continue;
|
|
3667
3630
|
}
|
|
3668
|
-
if (
|
|
3669
|
-
var m = typeof
|
|
3631
|
+
if (Nt(l)) {
|
|
3632
|
+
var m = typeof l.style == "string" ? n.number[l.style] : Ut(l.style) ? l.style.parsedOptions : void 0;
|
|
3670
3633
|
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3671
3634
|
type: _.literal,
|
|
3672
3635
|
value: r.getNumberFormat(t, m).format(f)
|
|
3673
3636
|
});
|
|
3674
3637
|
continue;
|
|
3675
3638
|
}
|
|
3676
|
-
if (
|
|
3677
|
-
var v =
|
|
3678
|
-
if (!
|
|
3679
|
-
throw new
|
|
3680
|
-
var
|
|
3681
|
-
return
|
|
3639
|
+
if (Dt(l)) {
|
|
3640
|
+
var v = l.children, y = l.value, S = i[y];
|
|
3641
|
+
if (!Vn(S))
|
|
3642
|
+
throw new Fn(y, "function", s);
|
|
3643
|
+
var N = ce(v, t, r, n, i, o), O = S(N.map(function(H) {
|
|
3644
|
+
return H.value;
|
|
3682
3645
|
}));
|
|
3683
|
-
Array.isArray(
|
|
3646
|
+
Array.isArray(O) || (O = [O]), a.push.apply(a, O.map(function(H) {
|
|
3684
3647
|
return {
|
|
3685
|
-
type: typeof
|
|
3686
|
-
value:
|
|
3648
|
+
type: typeof H == "string" ? _.literal : _.object,
|
|
3649
|
+
value: H
|
|
3687
3650
|
};
|
|
3688
3651
|
}));
|
|
3689
3652
|
}
|
|
3690
|
-
if (
|
|
3691
|
-
var E =
|
|
3653
|
+
if ($t(l)) {
|
|
3654
|
+
var E = l.options[f] || l.options.other;
|
|
3692
3655
|
if (!E)
|
|
3693
|
-
throw new
|
|
3694
|
-
a.push.apply(a,
|
|
3656
|
+
throw new ft(l.value, f, Object.keys(l.options), s);
|
|
3657
|
+
a.push.apply(a, ce(E.value, t, r, n, i));
|
|
3695
3658
|
continue;
|
|
3696
3659
|
}
|
|
3697
|
-
if (
|
|
3698
|
-
var E =
|
|
3660
|
+
if (Rt(l)) {
|
|
3661
|
+
var E = l.options["=".concat(f)];
|
|
3699
3662
|
if (!E) {
|
|
3700
3663
|
if (!Intl.PluralRules)
|
|
3701
|
-
throw new
|
|
3664
|
+
throw new ye(`Intl.PluralRules is not available in this environment.
|
|
3702
3665
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3703
|
-
`,
|
|
3704
|
-
var
|
|
3705
|
-
E =
|
|
3666
|
+
`, z.MISSING_INTL_API, s);
|
|
3667
|
+
var T = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3668
|
+
E = l.options[T] || l.options.other;
|
|
3706
3669
|
}
|
|
3707
3670
|
if (!E)
|
|
3708
|
-
throw new
|
|
3709
|
-
a.push.apply(a,
|
|
3671
|
+
throw new ft(l.value, f, Object.keys(l.options), s);
|
|
3672
|
+
a.push.apply(a, ce(E.value, t, r, n, i, f - (l.offset || 0)));
|
|
3710
3673
|
continue;
|
|
3711
3674
|
}
|
|
3712
3675
|
}
|
|
3713
|
-
return
|
|
3676
|
+
return kn(a);
|
|
3714
3677
|
}
|
|
3715
|
-
function
|
|
3678
|
+
function zn(e, t) {
|
|
3716
3679
|
return t ? b(b(b({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3717
3680
|
return r[n] = b(b({}, e[n]), t[n] || {}), r;
|
|
3718
3681
|
}, {})) : e;
|
|
3719
3682
|
}
|
|
3720
|
-
function
|
|
3683
|
+
function Xn(e, t) {
|
|
3721
3684
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3722
|
-
return r[n] =
|
|
3685
|
+
return r[n] = zn(e[n], t[n]), r;
|
|
3723
3686
|
}, b({}, e)) : e;
|
|
3724
3687
|
}
|
|
3725
|
-
function
|
|
3688
|
+
function He(e) {
|
|
3726
3689
|
return {
|
|
3727
3690
|
create: function() {
|
|
3728
3691
|
return {
|
|
@@ -3736,39 +3699,39 @@ function Be(e) {
|
|
|
3736
3699
|
}
|
|
3737
3700
|
};
|
|
3738
3701
|
}
|
|
3739
|
-
function
|
|
3702
|
+
function Wn(e) {
|
|
3740
3703
|
return e === void 0 && (e = {
|
|
3741
3704
|
number: {},
|
|
3742
3705
|
dateTime: {},
|
|
3743
3706
|
pluralRules: {}
|
|
3744
3707
|
}), {
|
|
3745
|
-
getNumberFormat:
|
|
3708
|
+
getNumberFormat: Se(function() {
|
|
3746
3709
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3747
3710
|
r[n] = arguments[n];
|
|
3748
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3711
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, j([void 0], r, !1)))();
|
|
3749
3712
|
}, {
|
|
3750
|
-
cache:
|
|
3751
|
-
strategy:
|
|
3713
|
+
cache: He(e.number),
|
|
3714
|
+
strategy: Be.variadic
|
|
3752
3715
|
}),
|
|
3753
|
-
getDateTimeFormat:
|
|
3716
|
+
getDateTimeFormat: Se(function() {
|
|
3754
3717
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3755
3718
|
r[n] = arguments[n];
|
|
3756
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3719
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, j([void 0], r, !1)))();
|
|
3757
3720
|
}, {
|
|
3758
|
-
cache:
|
|
3759
|
-
strategy:
|
|
3721
|
+
cache: He(e.dateTime),
|
|
3722
|
+
strategy: Be.variadic
|
|
3760
3723
|
}),
|
|
3761
|
-
getPluralRules:
|
|
3724
|
+
getPluralRules: Se(function() {
|
|
3762
3725
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3763
3726
|
r[n] = arguments[n];
|
|
3764
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3727
|
+
return new ((t = Intl.PluralRules).bind.apply(t, j([void 0], r, !1)))();
|
|
3765
3728
|
}, {
|
|
3766
|
-
cache:
|
|
3767
|
-
strategy:
|
|
3729
|
+
cache: He(e.pluralRules),
|
|
3730
|
+
strategy: Be.variadic
|
|
3768
3731
|
})
|
|
3769
3732
|
};
|
|
3770
3733
|
}
|
|
3771
|
-
var
|
|
3734
|
+
var Zn = (
|
|
3772
3735
|
/** @class */
|
|
3773
3736
|
function() {
|
|
3774
3737
|
function e(t, r, n, i) {
|
|
@@ -3778,20 +3741,20 @@ var oi = (
|
|
|
3778
3741
|
number: {},
|
|
3779
3742
|
dateTime: {},
|
|
3780
3743
|
pluralRules: {}
|
|
3781
|
-
}, this.format = function(
|
|
3782
|
-
var
|
|
3783
|
-
if (
|
|
3784
|
-
return
|
|
3785
|
-
var
|
|
3744
|
+
}, this.format = function(h) {
|
|
3745
|
+
var u = o.formatToParts(h);
|
|
3746
|
+
if (u.length === 1)
|
|
3747
|
+
return u[0].value;
|
|
3748
|
+
var l = u.reduce(function(c, f) {
|
|
3786
3749
|
return !c.length || f.type !== _.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3787
3750
|
}, []);
|
|
3788
|
-
return
|
|
3789
|
-
}, this.formatToParts = function(
|
|
3790
|
-
return
|
|
3751
|
+
return l.length <= 1 ? l[0] || "" : l;
|
|
3752
|
+
}, this.formatToParts = function(h) {
|
|
3753
|
+
return ce(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3791
3754
|
}, this.resolvedOptions = function() {
|
|
3792
|
-
var
|
|
3755
|
+
var h;
|
|
3793
3756
|
return {
|
|
3794
|
-
locale: ((
|
|
3757
|
+
locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3795
3758
|
};
|
|
3796
3759
|
}, this.getAst = function() {
|
|
3797
3760
|
return o.ast;
|
|
@@ -3800,13 +3763,13 @@ var oi = (
|
|
|
3800
3763
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3801
3764
|
var s = i || {};
|
|
3802
3765
|
s.formatters;
|
|
3803
|
-
var a =
|
|
3766
|
+
var a = Tr(s, ["formatters"]);
|
|
3804
3767
|
this.ast = e.__parse(t, b(b({}, a), { locale: this.resolvedLocale }));
|
|
3805
3768
|
} else
|
|
3806
3769
|
this.ast = t;
|
|
3807
3770
|
if (!Array.isArray(this.ast))
|
|
3808
3771
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3809
|
-
this.formats =
|
|
3772
|
+
this.formats = Xn(e.formats, n), this.formatters = i && i.formatters || Wn(this.formatterCache);
|
|
3810
3773
|
}
|
|
3811
3774
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3812
3775
|
get: function() {
|
|
@@ -3815,11 +3778,11 @@ var oi = (
|
|
|
3815
3778
|
enumerable: !1,
|
|
3816
3779
|
configurable: !0
|
|
3817
3780
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3818
|
-
if (typeof Intl.Locale
|
|
3781
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
3819
3782
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3820
3783
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3821
3784
|
}
|
|
3822
|
-
}, e.__parse =
|
|
3785
|
+
}, e.__parse = Gn, e.formats = {
|
|
3823
3786
|
number: {
|
|
3824
3787
|
integer: {
|
|
3825
3788
|
maximumFractionDigits: 0
|
|
@@ -3880,7 +3843,7 @@ var oi = (
|
|
|
3880
3843
|
}, e;
|
|
3881
3844
|
}()
|
|
3882
3845
|
);
|
|
3883
|
-
function
|
|
3846
|
+
function Qn(e, t) {
|
|
3884
3847
|
if (t == null)
|
|
3885
3848
|
return;
|
|
3886
3849
|
if (t in e)
|
|
@@ -3901,92 +3864,92 @@ function si(e, t) {
|
|
|
3901
3864
|
n = void 0;
|
|
3902
3865
|
return n;
|
|
3903
3866
|
}
|
|
3904
|
-
const
|
|
3867
|
+
const C = {}, Jn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), Wt = (e, t) => {
|
|
3905
3868
|
if (t == null)
|
|
3906
3869
|
return;
|
|
3907
|
-
if (t in
|
|
3908
|
-
return
|
|
3909
|
-
const r =
|
|
3870
|
+
if (t in C && e in C[t])
|
|
3871
|
+
return C[t][e];
|
|
3872
|
+
const r = ve(t);
|
|
3910
3873
|
for (let n = 0; n < r.length; n++) {
|
|
3911
|
-
const i = r[n], o =
|
|
3874
|
+
const i = r[n], o = qn(i, e);
|
|
3912
3875
|
if (o)
|
|
3913
|
-
return
|
|
3876
|
+
return Jn(e, t, o);
|
|
3914
3877
|
}
|
|
3915
3878
|
};
|
|
3916
|
-
let
|
|
3917
|
-
const
|
|
3918
|
-
function
|
|
3919
|
-
return
|
|
3879
|
+
let Xe;
|
|
3880
|
+
const ne = ge({});
|
|
3881
|
+
function Yn(e) {
|
|
3882
|
+
return Xe[e] || null;
|
|
3920
3883
|
}
|
|
3921
|
-
function
|
|
3922
|
-
return e in
|
|
3884
|
+
function Zt(e) {
|
|
3885
|
+
return e in Xe;
|
|
3923
3886
|
}
|
|
3924
|
-
function
|
|
3925
|
-
if (!
|
|
3887
|
+
function qn(e, t) {
|
|
3888
|
+
if (!Zt(e))
|
|
3926
3889
|
return null;
|
|
3927
|
-
const r =
|
|
3928
|
-
return
|
|
3890
|
+
const r = Yn(e);
|
|
3891
|
+
return Qn(r, t);
|
|
3929
3892
|
}
|
|
3930
|
-
function
|
|
3893
|
+
function Kn(e) {
|
|
3931
3894
|
if (e == null)
|
|
3932
3895
|
return;
|
|
3933
|
-
const t =
|
|
3896
|
+
const t = ve(e);
|
|
3934
3897
|
for (let r = 0; r < t.length; r++) {
|
|
3935
3898
|
const n = t[r];
|
|
3936
|
-
if (
|
|
3899
|
+
if (Zt(n))
|
|
3937
3900
|
return n;
|
|
3938
3901
|
}
|
|
3939
3902
|
}
|
|
3940
|
-
function
|
|
3941
|
-
delete
|
|
3903
|
+
function Qt(e, ...t) {
|
|
3904
|
+
delete C[e], ne.update((r) => (r[e] = rn.all([r[e] || {}, ...t]), r));
|
|
3942
3905
|
}
|
|
3943
|
-
|
|
3944
|
-
[
|
|
3906
|
+
W(
|
|
3907
|
+
[ne],
|
|
3945
3908
|
([e]) => Object.keys(e)
|
|
3946
3909
|
);
|
|
3947
|
-
|
|
3948
|
-
const
|
|
3949
|
-
function
|
|
3950
|
-
|
|
3910
|
+
ne.subscribe((e) => Xe = e);
|
|
3911
|
+
const fe = {};
|
|
3912
|
+
function ei(e, t) {
|
|
3913
|
+
fe[e].delete(t), fe[e].size === 0 && delete fe[e];
|
|
3951
3914
|
}
|
|
3952
|
-
function
|
|
3953
|
-
return
|
|
3915
|
+
function Jt(e) {
|
|
3916
|
+
return fe[e];
|
|
3954
3917
|
}
|
|
3955
|
-
function
|
|
3956
|
-
return
|
|
3957
|
-
const r =
|
|
3918
|
+
function ti(e) {
|
|
3919
|
+
return ve(e).map((t) => {
|
|
3920
|
+
const r = Jt(t);
|
|
3958
3921
|
return [t, r ? [...r] : []];
|
|
3959
3922
|
}).filter(([, t]) => t.length > 0);
|
|
3960
3923
|
}
|
|
3961
|
-
function
|
|
3962
|
-
return e == null ? !1 :
|
|
3924
|
+
function Fe(e) {
|
|
3925
|
+
return e == null ? !1 : ve(e).some(
|
|
3963
3926
|
(t) => {
|
|
3964
3927
|
var r;
|
|
3965
|
-
return (r =
|
|
3928
|
+
return (r = Jt(t)) == null ? void 0 : r.size;
|
|
3966
3929
|
}
|
|
3967
3930
|
);
|
|
3968
3931
|
}
|
|
3969
|
-
function
|
|
3932
|
+
function ri(e, t) {
|
|
3970
3933
|
return Promise.all(
|
|
3971
|
-
t.map((n) => (
|
|
3972
|
-
).then((n) =>
|
|
3973
|
-
}
|
|
3974
|
-
const
|
|
3975
|
-
function
|
|
3976
|
-
if (!
|
|
3977
|
-
return e in
|
|
3978
|
-
const t =
|
|
3979
|
-
return
|
|
3934
|
+
t.map((n) => (ei(e, n), n().then((i) => i.default || i)))
|
|
3935
|
+
).then((n) => Qt(e, ...n));
|
|
3936
|
+
}
|
|
3937
|
+
const J = {};
|
|
3938
|
+
function Yt(e) {
|
|
3939
|
+
if (!Fe(e))
|
|
3940
|
+
return e in J ? J[e] : Promise.resolve();
|
|
3941
|
+
const t = ti(e);
|
|
3942
|
+
return J[e] = Promise.all(
|
|
3980
3943
|
t.map(
|
|
3981
|
-
([r, n]) =>
|
|
3944
|
+
([r, n]) => ri(r, n)
|
|
3982
3945
|
)
|
|
3983
3946
|
).then(() => {
|
|
3984
|
-
if (
|
|
3985
|
-
return
|
|
3986
|
-
delete
|
|
3987
|
-
}),
|
|
3947
|
+
if (Fe(e))
|
|
3948
|
+
return Yt(e);
|
|
3949
|
+
delete J[e];
|
|
3950
|
+
}), J[e];
|
|
3988
3951
|
}
|
|
3989
|
-
const
|
|
3952
|
+
const ni = {
|
|
3990
3953
|
number: {
|
|
3991
3954
|
scientific: { notation: "scientific" },
|
|
3992
3955
|
engineering: { notation: "engineering" },
|
|
@@ -4015,159 +3978,159 @@ const pi = {
|
|
|
4015
3978
|
timeZoneName: "short"
|
|
4016
3979
|
}
|
|
4017
3980
|
}
|
|
4018
|
-
},
|
|
3981
|
+
}, ii = {
|
|
4019
3982
|
fallbackLocale: null,
|
|
4020
3983
|
loadingDelay: 200,
|
|
4021
|
-
formats:
|
|
3984
|
+
formats: ni,
|
|
4022
3985
|
warnOnMissingMessages: !0,
|
|
4023
3986
|
handleMissingMessage: void 0,
|
|
4024
3987
|
ignoreTag: !0
|
|
4025
|
-
},
|
|
4026
|
-
function
|
|
4027
|
-
return
|
|
3988
|
+
}, oi = ii;
|
|
3989
|
+
function X() {
|
|
3990
|
+
return oi;
|
|
4028
3991
|
}
|
|
4029
|
-
const
|
|
4030
|
-
var
|
|
3992
|
+
const we = ge(!1);
|
|
3993
|
+
var si = Object.defineProperty, ai = Object.defineProperties, ui = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, hi = Object.prototype.hasOwnProperty, li = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ci = (e, t) => {
|
|
4031
3994
|
for (var r in t)
|
|
4032
|
-
|
|
4033
|
-
if (
|
|
4034
|
-
for (var r of
|
|
4035
|
-
|
|
3995
|
+
hi.call(t, r) && dt(e, r, t[r]);
|
|
3996
|
+
if (pt)
|
|
3997
|
+
for (var r of pt(t))
|
|
3998
|
+
li.call(t, r) && dt(e, r, t[r]);
|
|
4036
3999
|
return e;
|
|
4037
|
-
},
|
|
4038
|
-
let
|
|
4039
|
-
const
|
|
4040
|
-
function
|
|
4000
|
+
}, fi = (e, t) => ai(e, ui(t));
|
|
4001
|
+
let je;
|
|
4002
|
+
const de = ge(null);
|
|
4003
|
+
function mt(e) {
|
|
4041
4004
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4042
4005
|
}
|
|
4043
|
-
function
|
|
4044
|
-
const r =
|
|
4045
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4006
|
+
function ve(e, t = X().fallbackLocale) {
|
|
4007
|
+
const r = mt(e);
|
|
4008
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...mt(t)])] : r;
|
|
4046
4009
|
}
|
|
4047
|
-
function
|
|
4048
|
-
return
|
|
4010
|
+
function M() {
|
|
4011
|
+
return je ?? void 0;
|
|
4049
4012
|
}
|
|
4050
|
-
|
|
4051
|
-
|
|
4013
|
+
de.subscribe((e) => {
|
|
4014
|
+
je = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4052
4015
|
});
|
|
4053
|
-
const
|
|
4054
|
-
if (e &&
|
|
4055
|
-
const { loadingDelay: t } =
|
|
4016
|
+
const pi = (e) => {
|
|
4017
|
+
if (e && Kn(e) && Fe(e)) {
|
|
4018
|
+
const { loadingDelay: t } = X();
|
|
4056
4019
|
let r;
|
|
4057
|
-
return typeof window
|
|
4058
|
-
() =>
|
|
4020
|
+
return typeof window < "u" && M() != null && t ? r = window.setTimeout(
|
|
4021
|
+
() => we.set(!0),
|
|
4059
4022
|
t
|
|
4060
|
-
) :
|
|
4061
|
-
|
|
4023
|
+
) : we.set(!0), Yt(e).then(() => {
|
|
4024
|
+
de.set(e);
|
|
4062
4025
|
}).finally(() => {
|
|
4063
|
-
clearTimeout(r),
|
|
4026
|
+
clearTimeout(r), we.set(!1);
|
|
4064
4027
|
});
|
|
4065
4028
|
}
|
|
4066
|
-
return
|
|
4067
|
-
},
|
|
4068
|
-
set:
|
|
4069
|
-
}),
|
|
4029
|
+
return de.set(e);
|
|
4030
|
+
}, Z = fi(ci({}, de), {
|
|
4031
|
+
set: pi
|
|
4032
|
+
}), xe = (e) => {
|
|
4070
4033
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4071
4034
|
return (n) => {
|
|
4072
4035
|
const i = JSON.stringify(n);
|
|
4073
4036
|
return i in t ? t[i] : t[i] = e(n);
|
|
4074
4037
|
};
|
|
4075
4038
|
};
|
|
4076
|
-
var
|
|
4039
|
+
var di = Object.defineProperty, me = Object.getOwnPropertySymbols, qt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t) => {
|
|
4077
4040
|
for (var r in t || (t = {}))
|
|
4078
|
-
|
|
4079
|
-
if (
|
|
4080
|
-
for (var r of
|
|
4081
|
-
|
|
4041
|
+
qt.call(t, r) && bt(e, r, t[r]);
|
|
4042
|
+
if (me)
|
|
4043
|
+
for (var r of me(t))
|
|
4044
|
+
Kt.call(t, r) && bt(e, r, t[r]);
|
|
4082
4045
|
return e;
|
|
4083
|
-
},
|
|
4046
|
+
}, Q = (e, t) => {
|
|
4084
4047
|
var r = {};
|
|
4085
4048
|
for (var n in e)
|
|
4086
|
-
|
|
4087
|
-
if (e != null &&
|
|
4088
|
-
for (var n of
|
|
4089
|
-
t.indexOf(n) < 0 &&
|
|
4049
|
+
qt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4050
|
+
if (e != null && me)
|
|
4051
|
+
for (var n of me(e))
|
|
4052
|
+
t.indexOf(n) < 0 && Kt.call(e, n) && (r[n] = e[n]);
|
|
4090
4053
|
return r;
|
|
4091
4054
|
};
|
|
4092
|
-
const
|
|
4093
|
-
const { formats: r } =
|
|
4055
|
+
const te = (e, t) => {
|
|
4056
|
+
const { formats: r } = X();
|
|
4094
4057
|
if (e in r && t in r[e])
|
|
4095
4058
|
return r[e][t];
|
|
4096
4059
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4097
|
-
},
|
|
4060
|
+
}, mi = xe(
|
|
4098
4061
|
(e) => {
|
|
4099
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4062
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4100
4063
|
if (r == null)
|
|
4101
4064
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4102
|
-
return n && (i =
|
|
4065
|
+
return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
|
|
4103
4066
|
}
|
|
4104
|
-
),
|
|
4067
|
+
), bi = xe(
|
|
4105
4068
|
(e) => {
|
|
4106
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4069
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4107
4070
|
if (r == null)
|
|
4108
4071
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4109
|
-
return n ? i =
|
|
4072
|
+
return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4110
4073
|
}
|
|
4111
|
-
),
|
|
4074
|
+
), gi = xe(
|
|
4112
4075
|
(e) => {
|
|
4113
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4076
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
4114
4077
|
if (r == null)
|
|
4115
4078
|
throw new Error(
|
|
4116
4079
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4117
4080
|
);
|
|
4118
|
-
return n ? i =
|
|
4081
|
+
return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4119
4082
|
}
|
|
4120
|
-
),
|
|
4083
|
+
), yi = (e = {}) => {
|
|
4121
4084
|
var t = e, {
|
|
4122
|
-
locale: r =
|
|
4123
|
-
} = t, n =
|
|
4085
|
+
locale: r = M()
|
|
4086
|
+
} = t, n = Q(t, [
|
|
4124
4087
|
"locale"
|
|
4125
4088
|
]);
|
|
4126
|
-
return
|
|
4127
|
-
},
|
|
4089
|
+
return mi(We({ locale: r }, n));
|
|
4090
|
+
}, vi = (e = {}) => {
|
|
4128
4091
|
var t = e, {
|
|
4129
|
-
locale: r =
|
|
4130
|
-
} = t, n =
|
|
4092
|
+
locale: r = M()
|
|
4093
|
+
} = t, n = Q(t, [
|
|
4131
4094
|
"locale"
|
|
4132
4095
|
]);
|
|
4133
|
-
return
|
|
4134
|
-
},
|
|
4096
|
+
return bi(We({ locale: r }, n));
|
|
4097
|
+
}, xi = (e = {}) => {
|
|
4135
4098
|
var t = e, {
|
|
4136
|
-
locale: r =
|
|
4137
|
-
} = t, n =
|
|
4099
|
+
locale: r = M()
|
|
4100
|
+
} = t, n = Q(t, [
|
|
4138
4101
|
"locale"
|
|
4139
4102
|
]);
|
|
4140
|
-
return
|
|
4141
|
-
},
|
|
4103
|
+
return gi(We({ locale: r }, n));
|
|
4104
|
+
}, Ei = xe(
|
|
4142
4105
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4143
|
-
(e, t =
|
|
4144
|
-
ignoreTag:
|
|
4106
|
+
(e, t = M()) => new Zn(e, t, X().formats, {
|
|
4107
|
+
ignoreTag: X().ignoreTag
|
|
4145
4108
|
})
|
|
4146
|
-
),
|
|
4109
|
+
), _i = (e, t = {}) => {
|
|
4147
4110
|
var r, n, i, o;
|
|
4148
4111
|
let s = t;
|
|
4149
4112
|
typeof e == "object" && (s = e, e = s.id);
|
|
4150
4113
|
const {
|
|
4151
4114
|
values: a,
|
|
4152
|
-
locale:
|
|
4153
|
-
default:
|
|
4115
|
+
locale: h = M(),
|
|
4116
|
+
default: u
|
|
4154
4117
|
} = s;
|
|
4155
|
-
if (
|
|
4118
|
+
if (h == null)
|
|
4156
4119
|
throw new Error(
|
|
4157
4120
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4158
4121
|
);
|
|
4159
|
-
let
|
|
4160
|
-
if (!
|
|
4161
|
-
|
|
4162
|
-
else if (typeof
|
|
4122
|
+
let l = Wt(e, h);
|
|
4123
|
+
if (!l)
|
|
4124
|
+
l = (o = (i = (n = (r = X()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4125
|
+
else if (typeof l != "string")
|
|
4163
4126
|
return console.warn(
|
|
4164
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
4165
|
-
),
|
|
4127
|
+
`[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.`
|
|
4128
|
+
), l;
|
|
4166
4129
|
if (!a)
|
|
4167
|
-
return
|
|
4168
|
-
let c =
|
|
4130
|
+
return l;
|
|
4131
|
+
let c = l;
|
|
4169
4132
|
try {
|
|
4170
|
-
c =
|
|
4133
|
+
c = Ei(l, h).format(a);
|
|
4171
4134
|
} catch (f) {
|
|
4172
4135
|
f instanceof Error && console.warn(
|
|
4173
4136
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4175,20 +4138,20 @@ const re = (e, t) => {
|
|
|
4175
4138
|
);
|
|
4176
4139
|
}
|
|
4177
4140
|
return c;
|
|
4178
|
-
},
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
window.emWidgets = { topic:
|
|
4184
|
-
const
|
|
4185
|
-
function
|
|
4186
|
-
|
|
4187
|
-
}
|
|
4188
|
-
function
|
|
4189
|
-
|
|
4190
|
-
}
|
|
4191
|
-
const
|
|
4141
|
+
}, Si = (e, t) => xi(t).format(e), Bi = (e, t) => vi(t).format(e), Ti = (e, t) => yi(t).format(e), Hi = (e, t = M()) => Wt(e, t), wi = W([Z, ne], () => _i);
|
|
4142
|
+
W([Z], () => Si);
|
|
4143
|
+
W([Z], () => Bi);
|
|
4144
|
+
W([Z], () => Ti);
|
|
4145
|
+
W([Z, ne], () => Hi);
|
|
4146
|
+
window.emWidgets = { topic: Ur };
|
|
4147
|
+
const ae = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4148
|
+
function gt(e, t) {
|
|
4149
|
+
Qt(e, t);
|
|
4150
|
+
}
|
|
4151
|
+
function Pi(e) {
|
|
4152
|
+
Z.set(e);
|
|
4153
|
+
}
|
|
4154
|
+
const yt = {
|
|
4192
4155
|
en: {
|
|
4193
4156
|
panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
|
|
4194
4157
|
},
|
|
@@ -4229,10 +4192,10 @@ const Tt = {
|
|
|
4229
4192
|
panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
|
|
4230
4193
|
}
|
|
4231
4194
|
};
|
|
4232
|
-
function
|
|
4233
|
-
|
|
4195
|
+
function Ai(e) {
|
|
4196
|
+
nr(e, "svelte-1v7b25v", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicSection .PanicButton{border-radius:5px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:10px;width:280px;height:fit-content;padding:15px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer}.PanicSectionMobile{position:absolute;top:0;left:0;width:100%;text-align:center;margin:20px 0 0 0 !important}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:100% !important;height:30px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:280px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.PanicButtonV2 .PanicButton{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:388px;font-size:12px}.PanicButtonV2 .PanicButtonMobile{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:10px}.PanicButtonV2 .PanicButtonAnimation{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:388px}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:388px}}");
|
|
4234
4197
|
}
|
|
4235
|
-
function
|
|
4198
|
+
function Oi(e) {
|
|
4236
4199
|
let t, r, n, i = (
|
|
4237
4200
|
/*customtext*/
|
|
4238
4201
|
(e[0] || /*$_*/
|
|
@@ -4240,70 +4203,70 @@ function Fi(e) {
|
|
|
4240
4203
|
), o, s;
|
|
4241
4204
|
return {
|
|
4242
4205
|
c() {
|
|
4243
|
-
t =
|
|
4206
|
+
t = Y("div"), r = Y("div"), n = Y("button"), o = sr(i), L(n, "class", "PanicButton " + (ae(
|
|
4244
4207
|
/*userAgent*/
|
|
4245
4208
|
e[6]
|
|
4246
|
-
) !== "PC" ? "PanicButtonMobile" : "")),
|
|
4209
|
+
) !== "PC" ? "PanicButtonMobile" : "")), L(n, "part", "PanicButton " + (ae(
|
|
4247
4210
|
/*userAgent*/
|
|
4248
4211
|
e[6]
|
|
4249
|
-
) !== "PC" ? "PanicButtonMobile" : "")),
|
|
4212
|
+
) !== "PC" ? "PanicButtonMobile" : "")), Qe(
|
|
4250
4213
|
n,
|
|
4251
4214
|
"PanicButtonAnimation",
|
|
4252
4215
|
/*panicLoading*/
|
|
4253
4216
|
e[4]
|
|
4254
|
-
),
|
|
4217
|
+
), L(r, "class", "PanicSection " + (ae(
|
|
4255
4218
|
/*userAgent*/
|
|
4256
4219
|
e[6]
|
|
4257
|
-
) !== "PC" ? "PanicSectionMobile" : "")),
|
|
4220
|
+
) !== "PC" ? "PanicSectionMobile" : "")), L(r, "part", "PanicSection " + (ae(
|
|
4258
4221
|
/*userAgent*/
|
|
4259
4222
|
e[6]
|
|
4260
|
-
) !== "PC" ? "PanicSectionMobile" : "")),
|
|
4223
|
+
) !== "PC" ? "PanicSectionMobile" : "")), L(t, "class", s = /*alternativestyling*/
|
|
4261
4224
|
e[1] == "true" ? "PanicButtonV2" : "");
|
|
4262
4225
|
},
|
|
4263
|
-
m(a,
|
|
4264
|
-
|
|
4226
|
+
m(a, h) {
|
|
4227
|
+
_t(a, t, h), ue(t, r), ue(r, n), ue(n, o), e[11](n), e[12](t);
|
|
4265
4228
|
},
|
|
4266
|
-
p(a, [
|
|
4267
|
-
|
|
4229
|
+
p(a, [h]) {
|
|
4230
|
+
h & /*customtext, $_*/
|
|
4268
4231
|
33 && i !== (i = /*customtext*/
|
|
4269
4232
|
(a[0] || /*$_*/
|
|
4270
|
-
a[5]("panicButtonString")) + "") &&
|
|
4271
|
-
16 &&
|
|
4233
|
+
a[5]("panicButtonString")) + "") && ur(o, i), h & /*panicLoading*/
|
|
4234
|
+
16 && Qe(
|
|
4272
4235
|
n,
|
|
4273
4236
|
"PanicButtonAnimation",
|
|
4274
4237
|
/*panicLoading*/
|
|
4275
4238
|
a[4]
|
|
4276
|
-
),
|
|
4239
|
+
), h & /*alternativestyling*/
|
|
4277
4240
|
2 && s !== (s = /*alternativestyling*/
|
|
4278
|
-
a[1] == "true" ? "PanicButtonV2" : "") &&
|
|
4241
|
+
a[1] == "true" ? "PanicButtonV2" : "") && L(t, "class", s);
|
|
4279
4242
|
},
|
|
4280
|
-
i:
|
|
4281
|
-
o:
|
|
4243
|
+
i: B,
|
|
4244
|
+
o: B,
|
|
4282
4245
|
d(a) {
|
|
4283
|
-
a &&
|
|
4246
|
+
a && Ve(t), e[11](null), e[12](null);
|
|
4284
4247
|
}
|
|
4285
4248
|
};
|
|
4286
4249
|
}
|
|
4287
|
-
function
|
|
4250
|
+
function Ii(e, t, r) {
|
|
4288
4251
|
let n;
|
|
4289
|
-
|
|
4290
|
-
let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { alternativestyling:
|
|
4291
|
-
const
|
|
4292
|
-
fetch(
|
|
4293
|
-
Object.keys(
|
|
4294
|
-
|
|
4252
|
+
rr(e, wi, (g) => r(5, n = g));
|
|
4253
|
+
let { lang: i = "en" } = t, { customtext: o = "" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { alternativestyling: h = "" } = t, { translationurl: u = "" } = t, l, c, f = !1, m = 0, v, y = window.navigator.userAgent;
|
|
4254
|
+
const S = () => {
|
|
4255
|
+
fetch(u).then((w) => w.json()).then((w) => {
|
|
4256
|
+
Object.keys(w).forEach((R) => {
|
|
4257
|
+
gt(R, w[R]);
|
|
4295
4258
|
});
|
|
4296
|
-
}).catch((
|
|
4297
|
-
console.log(
|
|
4259
|
+
}).catch((w) => {
|
|
4260
|
+
console.log(w);
|
|
4298
4261
|
});
|
|
4299
4262
|
};
|
|
4300
|
-
Object.keys(
|
|
4301
|
-
|
|
4263
|
+
Object.keys(yt).forEach((g) => {
|
|
4264
|
+
gt(g, yt[g]);
|
|
4302
4265
|
});
|
|
4303
|
-
const
|
|
4304
|
-
|
|
4305
|
-
},
|
|
4306
|
-
r(4, f = !1),
|
|
4266
|
+
const N = () => {
|
|
4267
|
+
l?.addEventListener("mousedown", E, !1), l?.addEventListener("touchstart", E, !1), l?.addEventListener("mouseup", T, !1), l?.addEventListener("touchend", T, !1);
|
|
4268
|
+
}, O = () => {
|
|
4269
|
+
r(4, f = !1), l?.removeEventListener("mousedown", E), l?.removeEventListener("touchstart", E), l?.removeEventListener("mouseup", T), l?.removeEventListener("touchend", T);
|
|
4307
4270
|
}, E = () => {
|
|
4308
4271
|
m = 0, r(4, f = !0), v = setInterval(
|
|
4309
4272
|
() => {
|
|
@@ -4311,48 +4274,48 @@ function ji(e, t, r) {
|
|
|
4311
4274
|
},
|
|
4312
4275
|
1e3
|
|
4313
4276
|
);
|
|
4314
|
-
},
|
|
4277
|
+
}, T = () => {
|
|
4315
4278
|
r(4, f = !1), clearInterval(v);
|
|
4316
|
-
},
|
|
4279
|
+
}, H = () => {
|
|
4317
4280
|
let g = document.createElement("style");
|
|
4318
4281
|
g.innerHTML = s, c.appendChild(g);
|
|
4319
|
-
},
|
|
4320
|
-
let g = new URL(a),
|
|
4321
|
-
fetch(g.href).then((
|
|
4322
|
-
|
|
4282
|
+
}, $ = () => {
|
|
4283
|
+
let g = new URL(a), w = document.createElement("style");
|
|
4284
|
+
fetch(g.href).then((R) => R.text()).then((R) => {
|
|
4285
|
+
w.innerHTML = R, setTimeout(
|
|
4323
4286
|
() => {
|
|
4324
|
-
c.appendChild(
|
|
4287
|
+
c.appendChild(w);
|
|
4325
4288
|
},
|
|
4326
4289
|
1
|
|
4327
4290
|
);
|
|
4328
4291
|
});
|
|
4329
4292
|
};
|
|
4330
|
-
|
|
4331
|
-
|
|
4293
|
+
cr(() => () => {
|
|
4294
|
+
O();
|
|
4332
4295
|
});
|
|
4333
|
-
function
|
|
4296
|
+
function ie(g) {
|
|
4334
4297
|
pe[g ? "unshift" : "push"](() => {
|
|
4335
|
-
|
|
4298
|
+
l = g, r(2, l);
|
|
4336
4299
|
});
|
|
4337
4300
|
}
|
|
4338
|
-
function
|
|
4301
|
+
function er(g) {
|
|
4339
4302
|
pe[g ? "unshift" : "push"](() => {
|
|
4340
4303
|
c = g, r(3, c);
|
|
4341
4304
|
});
|
|
4342
4305
|
}
|
|
4343
4306
|
return e.$$set = (g) => {
|
|
4344
|
-
"lang" in g && r(7, i = g.lang), "customtext" in g && r(0, o = g.customtext), "clientstyling" in g && r(8, s = g.clientstyling), "clientstylingurl" in g && r(9, a = g.clientstylingurl), "alternativestyling" in g && r(1,
|
|
4307
|
+
"lang" in g && r(7, i = g.lang), "customtext" in g && r(0, o = g.customtext), "clientstyling" in g && r(8, s = g.clientstyling), "clientstylingurl" in g && r(9, a = g.clientstylingurl), "alternativestyling" in g && r(1, h = g.alternativestyling), "translationurl" in g && r(10, u = g.translationurl);
|
|
4345
4308
|
}, e.$$.update = () => {
|
|
4346
4309
|
e.$$.dirty & /*panicButton*/
|
|
4347
|
-
4 &&
|
|
4348
|
-
128 && i &&
|
|
4349
|
-
264 && s && c &&
|
|
4350
|
-
520 && a && c &&
|
|
4351
|
-
1024 &&
|
|
4310
|
+
4 && l && N(), e.$$.dirty & /*lang*/
|
|
4311
|
+
128 && i && Pi(i), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4312
|
+
264 && s && c && H(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4313
|
+
520 && a && c && $(), e.$$.dirty & /*translationurl*/
|
|
4314
|
+
1024 && u && S();
|
|
4352
4315
|
}, [
|
|
4353
4316
|
o,
|
|
4317
|
+
h,
|
|
4354
4318
|
l,
|
|
4355
|
-
u,
|
|
4356
4319
|
c,
|
|
4357
4320
|
f,
|
|
4358
4321
|
n,
|
|
@@ -4360,19 +4323,19 @@ function ji(e, t, r) {
|
|
|
4360
4323
|
i,
|
|
4361
4324
|
s,
|
|
4362
4325
|
a,
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4326
|
+
u,
|
|
4327
|
+
ie,
|
|
4328
|
+
er
|
|
4366
4329
|
];
|
|
4367
4330
|
}
|
|
4368
|
-
class
|
|
4331
|
+
class Ci extends Sr {
|
|
4369
4332
|
constructor(t) {
|
|
4370
|
-
super(),
|
|
4333
|
+
super(), Er(
|
|
4371
4334
|
this,
|
|
4372
4335
|
t,
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4336
|
+
Ii,
|
|
4337
|
+
Oi,
|
|
4338
|
+
xt,
|
|
4376
4339
|
{
|
|
4377
4340
|
lang: 7,
|
|
4378
4341
|
customtext: 0,
|
|
@@ -4381,47 +4344,47 @@ class ki extends Lr {
|
|
|
4381
4344
|
alternativestyling: 1,
|
|
4382
4345
|
translationurl: 10
|
|
4383
4346
|
},
|
|
4384
|
-
|
|
4347
|
+
Ai
|
|
4385
4348
|
);
|
|
4386
4349
|
}
|
|
4387
4350
|
get lang() {
|
|
4388
4351
|
return this.$$.ctx[7];
|
|
4389
4352
|
}
|
|
4390
4353
|
set lang(t) {
|
|
4391
|
-
this.$$set({ lang: t }),
|
|
4354
|
+
this.$$set({ lang: t }), I();
|
|
4392
4355
|
}
|
|
4393
4356
|
get customtext() {
|
|
4394
4357
|
return this.$$.ctx[0];
|
|
4395
4358
|
}
|
|
4396
4359
|
set customtext(t) {
|
|
4397
|
-
this.$$set({ customtext: t }),
|
|
4360
|
+
this.$$set({ customtext: t }), I();
|
|
4398
4361
|
}
|
|
4399
4362
|
get clientstyling() {
|
|
4400
4363
|
return this.$$.ctx[8];
|
|
4401
4364
|
}
|
|
4402
4365
|
set clientstyling(t) {
|
|
4403
|
-
this.$$set({ clientstyling: t }),
|
|
4366
|
+
this.$$set({ clientstyling: t }), I();
|
|
4404
4367
|
}
|
|
4405
4368
|
get clientstylingurl() {
|
|
4406
4369
|
return this.$$.ctx[9];
|
|
4407
4370
|
}
|
|
4408
4371
|
set clientstylingurl(t) {
|
|
4409
|
-
this.$$set({ clientstylingurl: t }),
|
|
4372
|
+
this.$$set({ clientstylingurl: t }), I();
|
|
4410
4373
|
}
|
|
4411
4374
|
get alternativestyling() {
|
|
4412
4375
|
return this.$$.ctx[1];
|
|
4413
4376
|
}
|
|
4414
4377
|
set alternativestyling(t) {
|
|
4415
|
-
this.$$set({ alternativestyling: t }),
|
|
4378
|
+
this.$$set({ alternativestyling: t }), I();
|
|
4416
4379
|
}
|
|
4417
4380
|
get translationurl() {
|
|
4418
4381
|
return this.$$.ctx[10];
|
|
4419
4382
|
}
|
|
4420
4383
|
set translationurl(t) {
|
|
4421
|
-
this.$$set({ translationurl: t }),
|
|
4384
|
+
this.$$set({ translationurl: t }), I();
|
|
4422
4385
|
}
|
|
4423
4386
|
}
|
|
4424
|
-
|
|
4387
|
+
_r(Ci, { lang: {}, customtext: {}, clientstyling: {}, clientstylingurl: {}, alternativestyling: {}, translationurl: {} }, [], [], !0);
|
|
4425
4388
|
export {
|
|
4426
|
-
|
|
4389
|
+
Ci as P
|
|
4427
4390
|
};
|