@pie-framework/pie-fixed-player-static 1.0.0-152280c.1 → 1.0.0-152280c.3
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/README.md +2 -2
- package/dist/index.d.ts +28 -28
- package/dist/pie-fixed-player.js +1236 -1041
- package/package.json +3 -3
package/dist/pie-fixed-player.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var es = Object.defineProperty;
|
|
2
|
+
var Bn = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
const
|
|
9
|
-
var
|
|
10
|
-
typeof window < "u" && ((
|
|
11
|
-
const
|
|
12
|
-
var
|
|
13
|
-
function
|
|
5
|
+
var ts = (e, t, n) => t in e ? es(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var L = (e, t, n) => ts(e, typeof t != "symbol" ? t + "" : t, n), xn = (e, t, n) => t.has(e) || Bn("Cannot " + n);
|
|
7
|
+
var V = (e, t, n) => (xn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Ht = (e, t, n) => t.has(e) ? Bn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Yt = (e, t, n, r) => (xn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
8
|
+
const ns = "5";
|
|
9
|
+
var rr;
|
|
10
|
+
typeof window < "u" && ((rr = window.__svelte ?? (window.__svelte = {})).v ?? (rr.v = /* @__PURE__ */ new Set())).add(ns);
|
|
11
|
+
const rs = 1, ss = 2, is = 4, os = 8, ls = 16, as = 2, Tt = "[", un = "[!", fn = "]", We = {}, q = Symbol(), P = Symbol("filename"), Sn = !0, fe = 2, sr = 4, kt = 8, dn = 16, ve = 32, De = 64, Rt = 128, ne = 256, Ft = 512, J = 1024, _e = 2048, Oe = 4096, He = 8192, Dt = 16384, cs = 32768, hn = 65536, us = 1 << 17, ir = 1 << 18, fs = 1 << 19, or = 1 << 20, tn = 1 << 21, Re = Symbol("$state"), st = Symbol("$state metadata"), lr = Symbol("legacy props");
|
|
12
|
+
var gn = Array.isArray, ds = Array.prototype.indexOf, hs = Array.from, Ct = Object.keys, ce = Object.defineProperty, Pe = Object.getOwnPropertyDescriptor, ar = Object.prototype, gs = Array.prototype, cr = Object.getPrototypeOf, Pn = Object.isExtensible;
|
|
13
|
+
function ur(e) {
|
|
14
14
|
for (var t = 0; t < e.length; t++)
|
|
15
15
|
e[t]();
|
|
16
16
|
}
|
|
17
|
-
let
|
|
18
|
-
function
|
|
19
|
-
var e =
|
|
20
|
-
|
|
17
|
+
let ft = [], nn = [];
|
|
18
|
+
function fr() {
|
|
19
|
+
var e = ft;
|
|
20
|
+
ft = [], ur(e);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
var e =
|
|
24
|
-
|
|
22
|
+
function ps() {
|
|
23
|
+
var e = nn;
|
|
24
|
+
nn = [], ur(e);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
26
|
+
function dr(e) {
|
|
27
|
+
ft.length === 0 && queueMicrotask(fr), ft.push(e);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
29
|
+
function Ln() {
|
|
30
|
+
ft.length > 0 && fr(), nn.length > 0 && ps();
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function hr(e) {
|
|
33
33
|
return e === this.v;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function ms(e, t) {
|
|
36
36
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
return !
|
|
38
|
+
function pn(e) {
|
|
39
|
+
return !ms(e, this.v);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function vs(e, t, n) {
|
|
42
42
|
{
|
|
43
43
|
const r = new Error(`component_api_changed
|
|
44
44
|
${e} called \`${t}\` on an instance of ${n}, which is no longer valid in Svelte 5
|
|
@@ -46,7 +46,7 @@ https://svelte.dev/e/component_api_changed`);
|
|
|
46
46
|
throw r.name = "Svelte error", r;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function _s(e, t) {
|
|
50
50
|
{
|
|
51
51
|
const n = new Error(`component_api_invalid_new
|
|
52
52
|
Attempted to instantiate ${e} with \`new ${t}\`, which is no longer valid in Svelte 5. If this component is not under your control, set the \`compatibility.componentApi\` compiler option to \`4\` to keep it working.
|
|
@@ -54,7 +54,7 @@ https://svelte.dev/e/component_api_invalid_new`);
|
|
|
54
54
|
throw n.name = "Svelte error", n;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function ys() {
|
|
58
58
|
{
|
|
59
59
|
const e = new Error(`derived_references_self
|
|
60
60
|
A derived value cannot reference itself recursively
|
|
@@ -62,7 +62,7 @@ https://svelte.dev/e/derived_references_self`);
|
|
|
62
62
|
throw e.name = "Svelte error", e;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function bs(e) {
|
|
66
66
|
{
|
|
67
67
|
const t = new Error(`effect_in_teardown
|
|
68
68
|
\`${e}\` cannot be used inside an effect cleanup function
|
|
@@ -70,13 +70,13 @@ https://svelte.dev/e/effect_in_teardown`);
|
|
|
70
70
|
throw t.name = "Svelte error", t;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function ws() {
|
|
74
74
|
{
|
|
75
75
|
const e = new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");
|
|
76
76
|
throw e.name = "Svelte error", e;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Es(e) {
|
|
80
80
|
{
|
|
81
81
|
const t = new Error(`effect_orphan
|
|
82
82
|
\`${e}\` can only be used inside an effect (e.g. during component initialisation)
|
|
@@ -84,7 +84,7 @@ https://svelte.dev/e/effect_orphan`);
|
|
|
84
84
|
throw t.name = "Svelte error", t;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function $s() {
|
|
88
88
|
{
|
|
89
89
|
const e = new Error(`effect_update_depth_exceeded
|
|
90
90
|
Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
|
|
@@ -92,7 +92,7 @@ https://svelte.dev/e/effect_update_depth_exceeded`);
|
|
|
92
92
|
throw e.name = "Svelte error", e;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Rs() {
|
|
96
96
|
{
|
|
97
97
|
const e = new Error(`hydration_failed
|
|
98
98
|
Failed to hydrate the application
|
|
@@ -100,7 +100,7 @@ https://svelte.dev/e/hydration_failed`);
|
|
|
100
100
|
throw e.name = "Svelte error", e;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Fs(e) {
|
|
104
104
|
{
|
|
105
105
|
const t = new Error(`props_invalid_value
|
|
106
106
|
Cannot do \`bind:${e}={undefined}\` when \`${e}\` has a fallback value
|
|
@@ -108,7 +108,7 @@ https://svelte.dev/e/props_invalid_value`);
|
|
|
108
108
|
throw t.name = "Svelte error", t;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Cs(e) {
|
|
112
112
|
{
|
|
113
113
|
const t = new Error(`rune_outside_svelte
|
|
114
114
|
The \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
|
|
@@ -116,51 +116,54 @@ https://svelte.dev/e/rune_outside_svelte`);
|
|
|
116
116
|
throw t.name = "Svelte error", t;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Us() {
|
|
120
120
|
{
|
|
121
121
|
const e = new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");
|
|
122
122
|
throw e.name = "Svelte error", e;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Qs() {
|
|
126
126
|
{
|
|
127
127
|
const e = new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");
|
|
128
128
|
throw e.name = "Svelte error", e;
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Bs() {
|
|
132
132
|
{
|
|
133
133
|
const e = new Error("state_unsafe_mutation\nUpdating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");
|
|
134
134
|
throw e.name = "Svelte error", e;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
let
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
let Ke = !1, xs = !1;
|
|
138
|
+
function Ss() {
|
|
139
|
+
Ke = !0;
|
|
140
|
+
}
|
|
141
|
+
var Ps = "font-weight: bold", Ls = "font-weight: normal";
|
|
142
|
+
function Tn(e) {
|
|
140
143
|
console.warn(`%c[svelte] state_snapshot_uncloneable
|
|
141
144
|
%c${e ? `The following properties cannot be cloned with \`$state.snapshot\` — the return value contains the originals:
|
|
142
145
|
|
|
143
146
|
${e}` : "Value cannot be cloned with `$state.snapshot` — the original value was returned"}
|
|
144
|
-
https://svelte.dev/e/state_snapshot_uncloneable`,
|
|
147
|
+
https://svelte.dev/e/state_snapshot_uncloneable`, Ps, Ls);
|
|
145
148
|
}
|
|
146
149
|
const Ts = [];
|
|
147
|
-
function
|
|
150
|
+
function ks(e, t = !1) {
|
|
148
151
|
if (!t) {
|
|
149
|
-
const n = [], r =
|
|
152
|
+
const n = [], r = ot(e, /* @__PURE__ */ new Map(), "", n);
|
|
150
153
|
if (n.length === 1 && n[0] === "")
|
|
151
|
-
|
|
154
|
+
Tn();
|
|
152
155
|
else if (n.length > 0) {
|
|
153
156
|
const s = n.length > 10 ? n.slice(0, 7) : n.slice(0, 10), i = n.length - s.length;
|
|
154
157
|
let o = s.map((l) => `- <value>${l}`).join(`
|
|
155
158
|
`);
|
|
156
159
|
i > 0 && (o += `
|
|
157
|
-
- ...and ${i} more`),
|
|
160
|
+
- ...and ${i} more`), Tn(o);
|
|
158
161
|
}
|
|
159
162
|
return r;
|
|
160
163
|
}
|
|
161
|
-
return
|
|
164
|
+
return ot(e, /* @__PURE__ */ new Map(), "", Ts);
|
|
162
165
|
}
|
|
163
|
-
function
|
|
166
|
+
function ot(e, t, n, r, s = null) {
|
|
164
167
|
if (typeof e == "object" && e !== null) {
|
|
165
168
|
var i = t.get(e);
|
|
166
169
|
if (i !== void 0) return i;
|
|
@@ -172,7 +175,7 @@ function st(e, t, n, r, s = null) {
|
|
|
172
175
|
/** @type {Snapshot<T>} */
|
|
173
176
|
new Set(e)
|
|
174
177
|
);
|
|
175
|
-
if (
|
|
178
|
+
if (gn(e)) {
|
|
176
179
|
var o = (
|
|
177
180
|
/** @type {Snapshot<any>} */
|
|
178
181
|
Array(e.length)
|
|
@@ -180,14 +183,14 @@ function st(e, t, n, r, s = null) {
|
|
|
180
183
|
t.set(e, o), s !== null && t.set(s, o);
|
|
181
184
|
for (var l = 0; l < e.length; l += 1) {
|
|
182
185
|
var c = e[l];
|
|
183
|
-
l in e && (o[l] =
|
|
186
|
+
l in e && (o[l] = ot(c, t, `${n}[${l}]`, r));
|
|
184
187
|
}
|
|
185
188
|
return o;
|
|
186
189
|
}
|
|
187
|
-
if (
|
|
190
|
+
if (cr(e) === ar) {
|
|
188
191
|
o = {}, t.set(e, o), s !== null && t.set(s, o);
|
|
189
192
|
for (var a in e)
|
|
190
|
-
o[a] =
|
|
193
|
+
o[a] = ot(e[a], t, `${n}.${a}`, r);
|
|
191
194
|
return o;
|
|
192
195
|
}
|
|
193
196
|
if (e instanceof Date)
|
|
@@ -197,7 +200,7 @@ function st(e, t, n, r, s = null) {
|
|
|
197
200
|
);
|
|
198
201
|
if (typeof /** @type {T & { toJSON?: any } } */
|
|
199
202
|
e.toJSON == "function")
|
|
200
|
-
return
|
|
203
|
+
return ot(
|
|
201
204
|
/** @type {T & { toJSON(): any } } */
|
|
202
205
|
e.toJSON(),
|
|
203
206
|
t,
|
|
@@ -222,46 +225,46 @@ function st(e, t, n, r, s = null) {
|
|
|
222
225
|
e;
|
|
223
226
|
}
|
|
224
227
|
}
|
|
225
|
-
var
|
|
226
|
-
function
|
|
227
|
-
if (typeof e != "object" || e === null ||
|
|
228
|
+
var it = null;
|
|
229
|
+
function xe(e, t) {
|
|
230
|
+
if (typeof e != "object" || e === null || Re in e)
|
|
228
231
|
return e;
|
|
229
|
-
const n =
|
|
230
|
-
if (n !==
|
|
232
|
+
const n = cr(e);
|
|
233
|
+
if (n !== ar && n !== gs)
|
|
231
234
|
return e;
|
|
232
|
-
var r = /* @__PURE__ */ new Map(), s =
|
|
233
|
-
var u =
|
|
234
|
-
|
|
235
|
+
var r = /* @__PURE__ */ new Map(), s = gn(e), i = T(0), o = R, l = (a) => {
|
|
236
|
+
var u = R;
|
|
237
|
+
Fe(o);
|
|
235
238
|
var d;
|
|
236
239
|
{
|
|
237
|
-
var f =
|
|
238
|
-
|
|
240
|
+
var f = it;
|
|
241
|
+
it = c, d = a(), it = f;
|
|
239
242
|
}
|
|
240
|
-
return
|
|
243
|
+
return Fe(u), d;
|
|
241
244
|
};
|
|
242
|
-
s && r.set("length",
|
|
245
|
+
s && r.set("length", T(
|
|
243
246
|
/** @type {any[]} */
|
|
244
247
|
e.length
|
|
245
248
|
));
|
|
246
249
|
var c;
|
|
247
250
|
if (c = {
|
|
248
|
-
parent:
|
|
251
|
+
parent: it,
|
|
249
252
|
owners: null
|
|
250
253
|
}, t) {
|
|
251
|
-
const a = t.v?.[
|
|
254
|
+
const a = t.v?.[st]?.owners;
|
|
252
255
|
c.owners = a ? new Set(a) : null;
|
|
253
256
|
} else
|
|
254
|
-
c.owners =
|
|
257
|
+
c.owners = it === null ? B !== null ? /* @__PURE__ */ new Set([B.function]) : null : /* @__PURE__ */ new Set();
|
|
255
258
|
return new Proxy(
|
|
256
259
|
/** @type {any} */
|
|
257
260
|
e,
|
|
258
261
|
{
|
|
259
262
|
defineProperty(a, u, d) {
|
|
260
|
-
(!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) &&
|
|
263
|
+
(!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) && Us();
|
|
261
264
|
var f = r.get(u);
|
|
262
|
-
return f === void 0 ? (f = l(() =>
|
|
265
|
+
return f === void 0 ? (f = l(() => T(d.value)), r.set(u, f)) : y(
|
|
263
266
|
f,
|
|
264
|
-
l(() =>
|
|
267
|
+
l(() => xe(d.value))
|
|
265
268
|
), !0;
|
|
266
269
|
},
|
|
267
270
|
deleteProperty(a, u) {
|
|
@@ -269,7 +272,7 @@ function Ie(e, t) {
|
|
|
269
272
|
if (d === void 0)
|
|
270
273
|
u in a && r.set(
|
|
271
274
|
u,
|
|
272
|
-
l(() =>
|
|
275
|
+
l(() => T(q))
|
|
273
276
|
);
|
|
274
277
|
else {
|
|
275
278
|
if (s && typeof u == "string") {
|
|
@@ -277,25 +280,25 @@ function Ie(e, t) {
|
|
|
277
280
|
/** @type {Source<number>} */
|
|
278
281
|
r.get("length")
|
|
279
282
|
), g = Number(u);
|
|
280
|
-
Number.isInteger(g) && g < f.v &&
|
|
283
|
+
Number.isInteger(g) && g < f.v && y(f, g);
|
|
281
284
|
}
|
|
282
|
-
|
|
285
|
+
y(d, q), kn(i);
|
|
283
286
|
}
|
|
284
287
|
return !0;
|
|
285
288
|
},
|
|
286
289
|
get(a, u, d) {
|
|
287
|
-
if (u ===
|
|
290
|
+
if (u === st)
|
|
288
291
|
return c;
|
|
289
|
-
if (u ===
|
|
292
|
+
if (u === Re)
|
|
290
293
|
return e;
|
|
291
294
|
var f = r.get(u), g = u in a;
|
|
292
|
-
if (f === void 0 && (!g ||
|
|
293
|
-
var
|
|
295
|
+
if (f === void 0 && (!g || Pe(a, u)?.writable) && (f = l(() => T(xe(g ? a[u] : q))), r.set(u, f)), f !== void 0) {
|
|
296
|
+
var v = p(f);
|
|
294
297
|
{
|
|
295
|
-
var
|
|
296
|
-
|
|
298
|
+
var b = v?.[st];
|
|
299
|
+
b && b?.parent !== c && qn(c, b);
|
|
297
300
|
}
|
|
298
|
-
return
|
|
301
|
+
return v === q ? void 0 : v;
|
|
299
302
|
}
|
|
300
303
|
return Reflect.get(a, u, d);
|
|
301
304
|
},
|
|
@@ -305,163 +308,164 @@ function Ie(e, t) {
|
|
|
305
308
|
var f = r.get(u);
|
|
306
309
|
f && (d.value = p(f));
|
|
307
310
|
} else if (d === void 0) {
|
|
308
|
-
var g = r.get(u),
|
|
309
|
-
if (g !== void 0 &&
|
|
311
|
+
var g = r.get(u), v = g?.v;
|
|
312
|
+
if (g !== void 0 && v !== q)
|
|
310
313
|
return {
|
|
311
314
|
enumerable: !0,
|
|
312
315
|
configurable: !0,
|
|
313
|
-
value:
|
|
316
|
+
value: v,
|
|
314
317
|
writable: !0
|
|
315
318
|
};
|
|
316
319
|
}
|
|
317
320
|
return d;
|
|
318
321
|
},
|
|
319
322
|
has(a, u) {
|
|
320
|
-
if (u ===
|
|
323
|
+
if (u === st || u === Re)
|
|
321
324
|
return !0;
|
|
322
|
-
var d = r.get(u), f = d !== void 0 && d.v !==
|
|
323
|
-
if (d !== void 0 ||
|
|
324
|
-
d === void 0 && (d = l(() =>
|
|
325
|
+
var d = r.get(u), f = d !== void 0 && d.v !== q || Reflect.has(a, u);
|
|
326
|
+
if (d !== void 0 || x !== null && (!f || Pe(a, u)?.writable)) {
|
|
327
|
+
d === void 0 && (d = l(() => T(f ? xe(a[u]) : q)), r.set(u, d));
|
|
325
328
|
var g = p(d);
|
|
326
|
-
if (g ===
|
|
329
|
+
if (g === q)
|
|
327
330
|
return !1;
|
|
328
331
|
}
|
|
329
332
|
return f;
|
|
330
333
|
},
|
|
331
334
|
set(a, u, d, f) {
|
|
332
|
-
var g = r.get(u),
|
|
335
|
+
var g = r.get(u), v = u in a;
|
|
333
336
|
if (s && u === "length")
|
|
334
|
-
for (var
|
|
335
|
-
g.v;
|
|
336
|
-
var
|
|
337
|
-
|
|
337
|
+
for (var b = d; b < /** @type {Source<number>} */
|
|
338
|
+
g.v; b += 1) {
|
|
339
|
+
var $ = r.get(b + "");
|
|
340
|
+
$ !== void 0 ? y($, q) : b in a && ($ = l(() => T(q)), r.set(b + "", $));
|
|
338
341
|
}
|
|
339
|
-
g === void 0 ? (!
|
|
342
|
+
g === void 0 ? (!v || Pe(a, u)?.writable) && (g = l(() => T(void 0)), y(
|
|
340
343
|
g,
|
|
341
|
-
l(() =>
|
|
342
|
-
), r.set(u, g)) : (
|
|
344
|
+
l(() => xe(d))
|
|
345
|
+
), r.set(u, g)) : (v = g.v !== q, y(
|
|
343
346
|
g,
|
|
344
|
-
l(() =>
|
|
347
|
+
l(() => xe(d))
|
|
345
348
|
));
|
|
346
349
|
{
|
|
347
|
-
var
|
|
348
|
-
|
|
350
|
+
var I = d?.[st];
|
|
351
|
+
I && I?.parent !== c && qn(c, I), ai(c);
|
|
349
352
|
}
|
|
350
|
-
var
|
|
351
|
-
if (
|
|
353
|
+
var k = Reflect.getOwnPropertyDescriptor(a, u);
|
|
354
|
+
if (k?.set && k.set.call(f, d), !v) {
|
|
352
355
|
if (s && typeof u == "string") {
|
|
353
|
-
var
|
|
356
|
+
var A = (
|
|
354
357
|
/** @type {Source<number>} */
|
|
355
358
|
r.get("length")
|
|
356
|
-
),
|
|
357
|
-
Number.isInteger(
|
|
359
|
+
), N = Number(u);
|
|
360
|
+
Number.isInteger(N) && N >= A.v && y(A, N + 1);
|
|
358
361
|
}
|
|
359
|
-
|
|
362
|
+
kn(i);
|
|
360
363
|
}
|
|
361
364
|
return !0;
|
|
362
365
|
},
|
|
363
366
|
ownKeys(a) {
|
|
364
367
|
p(i);
|
|
365
368
|
var u = Reflect.ownKeys(a).filter((g) => {
|
|
366
|
-
var
|
|
367
|
-
return
|
|
369
|
+
var v = r.get(g);
|
|
370
|
+
return v === void 0 || v.v !== q;
|
|
368
371
|
});
|
|
369
372
|
for (var [d, f] of r)
|
|
370
|
-
f.v !==
|
|
373
|
+
f.v !== q && !(d in a) && u.push(d);
|
|
371
374
|
return u;
|
|
372
375
|
},
|
|
373
376
|
setPrototypeOf() {
|
|
374
|
-
|
|
377
|
+
Qs();
|
|
375
378
|
}
|
|
376
379
|
}
|
|
377
380
|
);
|
|
378
381
|
}
|
|
379
|
-
function
|
|
380
|
-
|
|
382
|
+
function kn(e, t = 1) {
|
|
383
|
+
y(e, e.v + t);
|
|
381
384
|
}
|
|
382
|
-
function
|
|
385
|
+
function lt(e) {
|
|
383
386
|
try {
|
|
384
|
-
if (e !== null && typeof e == "object" &&
|
|
385
|
-
return e[
|
|
387
|
+
if (e !== null && typeof e == "object" && Re in e)
|
|
388
|
+
return e[Re];
|
|
386
389
|
} catch {
|
|
387
390
|
}
|
|
388
391
|
return e;
|
|
389
392
|
}
|
|
390
393
|
let Ge = /* @__PURE__ */ new Set();
|
|
391
|
-
const
|
|
392
|
-
function
|
|
394
|
+
const dt = /* @__PURE__ */ new Map();
|
|
395
|
+
function Dn(e) {
|
|
393
396
|
Ge = e;
|
|
394
397
|
}
|
|
395
|
-
function
|
|
398
|
+
function mn(e, t) {
|
|
396
399
|
var n = {
|
|
397
400
|
f: 0,
|
|
398
401
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
399
402
|
v: e,
|
|
400
403
|
reactions: null,
|
|
401
|
-
equals:
|
|
404
|
+
equals: hr,
|
|
402
405
|
rv: 0,
|
|
403
406
|
wv: 0
|
|
404
407
|
};
|
|
405
408
|
return n;
|
|
406
409
|
}
|
|
407
|
-
function
|
|
408
|
-
const n =
|
|
409
|
-
return
|
|
410
|
+
function T(e, t) {
|
|
411
|
+
const n = mn(e);
|
|
412
|
+
return br(n), n;
|
|
410
413
|
}
|
|
411
414
|
// @__NO_SIDE_EFFECTS__
|
|
412
|
-
function
|
|
413
|
-
|
|
414
|
-
|
|
415
|
+
function gr(e, t = !1) {
|
|
416
|
+
var r;
|
|
417
|
+
const n = mn(e);
|
|
418
|
+
return t || (n.equals = pn), Ke && B !== null && B.l !== null && ((r = B.l).s ?? (r.s = [])).push(n), n;
|
|
415
419
|
}
|
|
416
|
-
function
|
|
417
|
-
|
|
418
|
-
let r = n ?
|
|
419
|
-
return
|
|
420
|
+
function y(e, t, n = !1) {
|
|
421
|
+
R !== null && !ae && zt() && (R.f & (fe | dn)) !== 0 && !ge?.includes(e) && Bs();
|
|
422
|
+
let r = n ? xe(t, e) : t;
|
|
423
|
+
return Ds(e, r);
|
|
420
424
|
}
|
|
421
|
-
function
|
|
425
|
+
function Ds(e, t) {
|
|
422
426
|
if (!e.equals(t)) {
|
|
423
427
|
var n = e.v;
|
|
424
|
-
if (
|
|
428
|
+
if (vt ? dt.set(e, t) : dt.set(e, n), e.v = t, e.wv = Er(), pr(e, _e), zt() && x !== null && (x.f & J) !== 0 && (x.f & (ve | De)) === 0 && (ee === null ? Ws([e]) : ee.push(e)), Ge.size > 0) {
|
|
425
429
|
const r = Array.from(Ge);
|
|
426
430
|
for (const s of r)
|
|
427
|
-
(s.f &
|
|
431
|
+
(s.f & J) !== 0 && ie(s, Oe), nt(s) && Nt(s);
|
|
428
432
|
Ge.clear();
|
|
429
433
|
}
|
|
430
434
|
}
|
|
431
435
|
return t;
|
|
432
436
|
}
|
|
433
|
-
function
|
|
437
|
+
function pr(e, t) {
|
|
434
438
|
var n = e.reactions;
|
|
435
439
|
if (n !== null)
|
|
436
|
-
for (var r = n.length,
|
|
437
|
-
var
|
|
438
|
-
if ((
|
|
439
|
-
if ((
|
|
440
|
-
Ge.add(
|
|
440
|
+
for (var r = zt(), s = n.length, i = 0; i < s; i++) {
|
|
441
|
+
var o = n[i], l = o.f;
|
|
442
|
+
if ((l & _e) === 0 && !(!r && o === x)) {
|
|
443
|
+
if ((l & ir) !== 0) {
|
|
444
|
+
Ge.add(o);
|
|
441
445
|
continue;
|
|
442
446
|
}
|
|
443
|
-
|
|
447
|
+
ie(o, t), (l & (J | ne)) !== 0 && ((l & fe) !== 0 ? pr(
|
|
444
448
|
/** @type {Derived} */
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
) :
|
|
449
|
+
o,
|
|
450
|
+
Oe
|
|
451
|
+
) : At(
|
|
448
452
|
/** @type {Effect} */
|
|
449
|
-
|
|
453
|
+
o
|
|
450
454
|
));
|
|
451
455
|
}
|
|
452
456
|
}
|
|
453
457
|
}
|
|
454
458
|
// @__NO_SIDE_EFFECTS__
|
|
455
|
-
function
|
|
456
|
-
var t = fe |
|
|
459
|
+
function ht(e) {
|
|
460
|
+
var t = fe | _e, n = R !== null && (R.f & fe) !== 0 ? (
|
|
457
461
|
/** @type {Derived} */
|
|
458
|
-
|
|
462
|
+
R
|
|
459
463
|
) : null;
|
|
460
|
-
return
|
|
464
|
+
return x === null || n !== null && (n.f & ne) !== 0 ? t |= ne : x.f |= or, {
|
|
461
465
|
ctx: B,
|
|
462
466
|
deps: null,
|
|
463
467
|
effects: null,
|
|
464
|
-
equals:
|
|
468
|
+
equals: hr,
|
|
465
469
|
f: t,
|
|
466
470
|
fn: e,
|
|
467
471
|
reactions: null,
|
|
@@ -471,14 +475,19 @@ function un(e) {
|
|
|
471
475
|
null
|
|
472
476
|
),
|
|
473
477
|
wv: 0,
|
|
474
|
-
parent: n ??
|
|
478
|
+
parent: n ?? x
|
|
475
479
|
};
|
|
476
480
|
}
|
|
477
|
-
function
|
|
478
|
-
const t = /* @__PURE__ */
|
|
479
|
-
return
|
|
481
|
+
function K(e) {
|
|
482
|
+
const t = /* @__PURE__ */ ht(e);
|
|
483
|
+
return br(t), t;
|
|
484
|
+
}
|
|
485
|
+
// @__NO_SIDE_EFFECTS__
|
|
486
|
+
function Os(e) {
|
|
487
|
+
const t = /* @__PURE__ */ ht(e);
|
|
488
|
+
return t.equals = pn, t;
|
|
480
489
|
}
|
|
481
|
-
function
|
|
490
|
+
function mr(e) {
|
|
482
491
|
var t = e.effects;
|
|
483
492
|
if (t !== null) {
|
|
484
493
|
e.effects = null;
|
|
@@ -489,7 +498,7 @@ function ar(e) {
|
|
|
489
498
|
);
|
|
490
499
|
}
|
|
491
500
|
}
|
|
492
|
-
let
|
|
501
|
+
let Zt = [];
|
|
493
502
|
function Is(e) {
|
|
494
503
|
for (var t = e.parent; t !== null; ) {
|
|
495
504
|
if ((t.f & fe) === 0)
|
|
@@ -501,98 +510,98 @@ function Is(e) {
|
|
|
501
510
|
}
|
|
502
511
|
return null;
|
|
503
512
|
}
|
|
504
|
-
function
|
|
505
|
-
var t, n =
|
|
506
|
-
|
|
513
|
+
function Ns(e) {
|
|
514
|
+
var t, n = x;
|
|
515
|
+
Ye(Is(e));
|
|
507
516
|
{
|
|
508
517
|
let r = Ge;
|
|
509
|
-
|
|
518
|
+
Dn(/* @__PURE__ */ new Set());
|
|
510
519
|
try {
|
|
511
|
-
|
|
520
|
+
Zt.includes(e) && ys(), Zt.push(e), mr(e), t = Rr(e);
|
|
512
521
|
} finally {
|
|
513
|
-
|
|
522
|
+
Ye(n), Dn(r), Zt.pop();
|
|
514
523
|
}
|
|
515
524
|
}
|
|
516
525
|
return t;
|
|
517
526
|
}
|
|
518
|
-
function
|
|
519
|
-
var t =
|
|
520
|
-
|
|
527
|
+
function vr(e) {
|
|
528
|
+
var t = Ns(e), n = (we || (e.f & ne) !== 0) && e.deps !== null ? Oe : J;
|
|
529
|
+
ie(e, n), e.equals(t) || (e.v = t, e.wv = Er());
|
|
521
530
|
}
|
|
522
|
-
var
|
|
523
|
-
function
|
|
531
|
+
var et = "font-weight: bold", tt = "font-weight: normal";
|
|
532
|
+
function As(e) {
|
|
524
533
|
console.warn(`%c[svelte] console_log_state
|
|
525
534
|
%cYour \`console.${e}\` contained \`$state\` proxies. Consider using \`$inspect(...)\` or \`$state.snapshot(...)\` instead
|
|
526
|
-
https://svelte.dev/e/console_log_state`,
|
|
535
|
+
https://svelte.dev/e/console_log_state`, et, tt);
|
|
527
536
|
}
|
|
528
|
-
function
|
|
537
|
+
function Ms(e) {
|
|
529
538
|
console.warn(`%c[svelte] hydration_html_changed
|
|
530
539
|
%c${e ? `The value of an \`{@html ...}\` block ${e} changed between server and client renders. The client value will be ignored in favour of the server value` : "The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
|
|
531
|
-
https://svelte.dev/e/hydration_html_changed`,
|
|
540
|
+
https://svelte.dev/e/hydration_html_changed`, et, tt);
|
|
532
541
|
}
|
|
533
|
-
function
|
|
542
|
+
function Ot(e) {
|
|
534
543
|
console.warn(`%c[svelte] hydration_mismatch
|
|
535
544
|
%cHydration failed because the initial UI does not match what was rendered on the server
|
|
536
|
-
https://svelte.dev/e/hydration_mismatch`,
|
|
545
|
+
https://svelte.dev/e/hydration_mismatch`, et, tt);
|
|
537
546
|
}
|
|
538
|
-
function
|
|
547
|
+
function js() {
|
|
539
548
|
console.warn(`%c[svelte] lifecycle_double_unmount
|
|
540
549
|
%cTried to unmount a component that was not mounted
|
|
541
|
-
https://svelte.dev/e/lifecycle_double_unmount`,
|
|
550
|
+
https://svelte.dev/e/lifecycle_double_unmount`, et, tt);
|
|
542
551
|
}
|
|
543
|
-
function
|
|
552
|
+
function On(e, t) {
|
|
544
553
|
console.warn(`%c[svelte] ownership_invalid_mutation
|
|
545
554
|
%c${e ? `${e} mutated a value owned by ${t}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead` : "Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead"}
|
|
546
|
-
https://svelte.dev/e/ownership_invalid_mutation`,
|
|
555
|
+
https://svelte.dev/e/ownership_invalid_mutation`, et, tt);
|
|
547
556
|
}
|
|
548
|
-
function
|
|
557
|
+
function wt(e) {
|
|
549
558
|
console.warn(`%c[svelte] state_proxy_equality_mismatch
|
|
550
559
|
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${e}\` will produce unexpected results
|
|
551
|
-
https://svelte.dev/e/state_proxy_equality_mismatch`,
|
|
560
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`, et, tt);
|
|
552
561
|
}
|
|
553
|
-
let
|
|
554
|
-
function
|
|
555
|
-
|
|
562
|
+
let O = !1;
|
|
563
|
+
function Je(e) {
|
|
564
|
+
O = e;
|
|
556
565
|
}
|
|
557
566
|
let D;
|
|
558
|
-
function
|
|
567
|
+
function pe(e) {
|
|
559
568
|
if (e === null)
|
|
560
|
-
throw
|
|
569
|
+
throw Ot(), We;
|
|
561
570
|
return D = e;
|
|
562
571
|
}
|
|
563
|
-
function
|
|
564
|
-
return
|
|
572
|
+
function gt() {
|
|
573
|
+
return pe(
|
|
565
574
|
/** @type {TemplateNode} */
|
|
566
|
-
/* @__PURE__ */
|
|
575
|
+
/* @__PURE__ */ Ie(D)
|
|
567
576
|
);
|
|
568
577
|
}
|
|
569
578
|
function oe(e) {
|
|
570
|
-
if (
|
|
571
|
-
if (/* @__PURE__ */
|
|
572
|
-
throw
|
|
579
|
+
if (O) {
|
|
580
|
+
if (/* @__PURE__ */ Ie(D) !== null)
|
|
581
|
+
throw Ot(), We;
|
|
573
582
|
D = e;
|
|
574
583
|
}
|
|
575
584
|
}
|
|
576
|
-
function
|
|
585
|
+
function zs() {
|
|
577
586
|
for (var e = 0, t = D; ; ) {
|
|
578
587
|
if (t.nodeType === 8) {
|
|
579
588
|
var n = (
|
|
580
589
|
/** @type {Comment} */
|
|
581
590
|
t.data
|
|
582
591
|
);
|
|
583
|
-
if (n ===
|
|
592
|
+
if (n === fn) {
|
|
584
593
|
if (e === 0) return t;
|
|
585
594
|
e -= 1;
|
|
586
|
-
} else (n ===
|
|
595
|
+
} else (n === Tt || n === un) && (e += 1);
|
|
587
596
|
}
|
|
588
597
|
var r = (
|
|
589
598
|
/** @type {TemplateNode} */
|
|
590
|
-
/* @__PURE__ */
|
|
599
|
+
/* @__PURE__ */ Ie(t)
|
|
591
600
|
);
|
|
592
601
|
t.remove(), t = r;
|
|
593
602
|
}
|
|
594
603
|
}
|
|
595
|
-
function
|
|
604
|
+
function Vs() {
|
|
596
605
|
const e = Array.prototype, t = Array.__svelte_cleanup;
|
|
597
606
|
t && t();
|
|
598
607
|
const { indexOf: n, lastIndexOf: r, includes: s } = e;
|
|
@@ -600,8 +609,8 @@ function Bs() {
|
|
|
600
609
|
const l = n.call(this, i, o);
|
|
601
610
|
if (l === -1) {
|
|
602
611
|
for (let c = o ?? 0; c < this.length; c += 1)
|
|
603
|
-
if (
|
|
604
|
-
|
|
612
|
+
if (lt(this[c]) === i) {
|
|
613
|
+
wt("array.indexOf(...)");
|
|
605
614
|
break;
|
|
606
615
|
}
|
|
607
616
|
}
|
|
@@ -610,8 +619,8 @@ function Bs() {
|
|
|
610
619
|
const l = r.call(this, i, o ?? this.length - 1);
|
|
611
620
|
if (l === -1) {
|
|
612
621
|
for (let c = 0; c <= (o ?? this.length - 1); c += 1)
|
|
613
|
-
if (
|
|
614
|
-
|
|
622
|
+
if (lt(this[c]) === i) {
|
|
623
|
+
wt("array.lastIndexOf(...)");
|
|
615
624
|
break;
|
|
616
625
|
}
|
|
617
626
|
}
|
|
@@ -620,8 +629,8 @@ function Bs() {
|
|
|
620
629
|
const l = s.call(this, i, o);
|
|
621
630
|
if (!l) {
|
|
622
631
|
for (let c = 0; c < this.length; c += 1)
|
|
623
|
-
if (
|
|
624
|
-
|
|
632
|
+
if (lt(this[c]) === i) {
|
|
633
|
+
wt("array.includes(...)");
|
|
625
634
|
break;
|
|
626
635
|
}
|
|
627
636
|
}
|
|
@@ -630,101 +639,101 @@ function Bs() {
|
|
|
630
639
|
e.indexOf = n, e.lastIndexOf = r, e.includes = s;
|
|
631
640
|
};
|
|
632
641
|
}
|
|
633
|
-
function
|
|
642
|
+
function Q(e, t, n = !0) {
|
|
634
643
|
try {
|
|
635
|
-
e === t != (
|
|
644
|
+
e === t != (lt(e) === lt(t)) && wt(n ? "===" : "!==");
|
|
636
645
|
} catch {
|
|
637
646
|
}
|
|
638
647
|
return e === t === n;
|
|
639
648
|
}
|
|
640
|
-
var
|
|
641
|
-
function
|
|
642
|
-
if (
|
|
643
|
-
|
|
649
|
+
var In, vn, _r, yr;
|
|
650
|
+
function rn() {
|
|
651
|
+
if (In === void 0) {
|
|
652
|
+
In = window, vn = /Firefox/.test(navigator.userAgent);
|
|
644
653
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
645
|
-
|
|
654
|
+
_r = Pe(t, "firstChild").get, yr = Pe(t, "nextSibling").get, Pn(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Pn(n) && (n.__t = void 0), e.__svelte_meta = null, Vs();
|
|
646
655
|
}
|
|
647
656
|
}
|
|
648
|
-
function
|
|
657
|
+
function Ut(e = "") {
|
|
649
658
|
return document.createTextNode(e);
|
|
650
659
|
}
|
|
651
660
|
// @__NO_SIDE_EFFECTS__
|
|
652
|
-
function
|
|
653
|
-
return
|
|
661
|
+
function pt(e) {
|
|
662
|
+
return _r.call(e);
|
|
654
663
|
}
|
|
655
664
|
// @__NO_SIDE_EFFECTS__
|
|
656
|
-
function
|
|
657
|
-
return
|
|
665
|
+
function Ie(e) {
|
|
666
|
+
return yr.call(e);
|
|
658
667
|
}
|
|
659
668
|
function le(e, t) {
|
|
660
|
-
if (!
|
|
661
|
-
return /* @__PURE__ */
|
|
669
|
+
if (!O)
|
|
670
|
+
return /* @__PURE__ */ pt(e);
|
|
662
671
|
var n = (
|
|
663
672
|
/** @type {TemplateNode} */
|
|
664
|
-
/* @__PURE__ */
|
|
673
|
+
/* @__PURE__ */ pt(D)
|
|
665
674
|
);
|
|
666
675
|
if (n === null)
|
|
667
|
-
n = D.appendChild(
|
|
676
|
+
n = D.appendChild(Ut());
|
|
668
677
|
else if (t && n.nodeType !== 3) {
|
|
669
|
-
var r =
|
|
670
|
-
return n?.before(r),
|
|
678
|
+
var r = Ut();
|
|
679
|
+
return n?.before(r), pe(r), r;
|
|
671
680
|
}
|
|
672
|
-
return
|
|
681
|
+
return pe(n), n;
|
|
673
682
|
}
|
|
674
|
-
function
|
|
675
|
-
let r =
|
|
683
|
+
function sn(e, t = 1, n = !1) {
|
|
684
|
+
let r = O ? D : e;
|
|
676
685
|
for (var s; t--; )
|
|
677
686
|
s = r, r = /** @type {TemplateNode} */
|
|
678
|
-
/* @__PURE__ */
|
|
679
|
-
if (!
|
|
687
|
+
/* @__PURE__ */ Ie(r);
|
|
688
|
+
if (!O)
|
|
680
689
|
return r;
|
|
681
690
|
var i = r?.nodeType;
|
|
682
691
|
if (n && i !== 3) {
|
|
683
|
-
var o =
|
|
684
|
-
return r === null ? s?.after(o) : r.before(o),
|
|
692
|
+
var o = Ut();
|
|
693
|
+
return r === null ? s?.after(o) : r.before(o), pe(o), o;
|
|
685
694
|
}
|
|
686
|
-
return
|
|
695
|
+
return pe(r), /** @type {TemplateNode} */
|
|
687
696
|
r;
|
|
688
697
|
}
|
|
689
|
-
function
|
|
698
|
+
function qs(e) {
|
|
690
699
|
e.textContent = "";
|
|
691
700
|
}
|
|
692
|
-
const
|
|
693
|
-
let
|
|
694
|
-
function
|
|
695
|
-
|
|
701
|
+
const Nn = /* @__PURE__ */ new WeakSet();
|
|
702
|
+
let Et = !1, Qt = !1, Bt = null, Le = !1, vt = !1;
|
|
703
|
+
function An(e) {
|
|
704
|
+
vt = e;
|
|
696
705
|
}
|
|
697
|
-
let
|
|
698
|
-
function
|
|
699
|
-
|
|
706
|
+
let at = [], xt = [], R = null, ae = !1;
|
|
707
|
+
function Fe(e) {
|
|
708
|
+
R = e;
|
|
700
709
|
}
|
|
701
|
-
let
|
|
702
|
-
function
|
|
703
|
-
|
|
710
|
+
let x = null;
|
|
711
|
+
function Ye(e) {
|
|
712
|
+
x = e;
|
|
704
713
|
}
|
|
705
|
-
let
|
|
706
|
-
function
|
|
707
|
-
|
|
714
|
+
let ge = null;
|
|
715
|
+
function Js(e) {
|
|
716
|
+
ge = e;
|
|
708
717
|
}
|
|
709
|
-
function
|
|
710
|
-
|
|
718
|
+
function br(e) {
|
|
719
|
+
R !== null && R.f & tn && (ge === null ? Js([e]) : ge.push(e));
|
|
711
720
|
}
|
|
712
|
-
let
|
|
713
|
-
function
|
|
714
|
-
|
|
721
|
+
let j = null, X = 0, ee = null;
|
|
722
|
+
function Ws(e) {
|
|
723
|
+
ee = e;
|
|
715
724
|
}
|
|
716
|
-
let
|
|
717
|
-
function
|
|
718
|
-
return ++
|
|
725
|
+
let wr = 1, St = 0, we = !1;
|
|
726
|
+
function Er() {
|
|
727
|
+
return ++wr;
|
|
719
728
|
}
|
|
720
|
-
function
|
|
729
|
+
function nt(e) {
|
|
721
730
|
var t = e.f;
|
|
722
|
-
if ((t &
|
|
731
|
+
if ((t & _e) !== 0)
|
|
723
732
|
return !0;
|
|
724
|
-
if ((t &
|
|
725
|
-
var n = e.deps, r = (t &
|
|
733
|
+
if ((t & Oe) !== 0) {
|
|
734
|
+
var n = e.deps, r = (t & ne) !== 0;
|
|
726
735
|
if (n !== null) {
|
|
727
|
-
var s, i, o = (t &
|
|
736
|
+
var s, i, o = (t & Ft) !== 0, l = r && x !== null && !we, c = n.length;
|
|
728
737
|
if (o || l) {
|
|
729
738
|
var a = (
|
|
730
739
|
/** @type {Derived} */
|
|
@@ -732,55 +741,55 @@ function et(e) {
|
|
|
732
741
|
), u = a.parent;
|
|
733
742
|
for (s = 0; s < c; s++)
|
|
734
743
|
i = n[s], (o || !i?.reactions?.includes(a)) && (i.reactions ?? (i.reactions = [])).push(a);
|
|
735
|
-
o && (a.f ^=
|
|
744
|
+
o && (a.f ^= Ft), l && u !== null && (u.f & ne) === 0 && (a.f ^= ne);
|
|
736
745
|
}
|
|
737
746
|
for (s = 0; s < c; s++)
|
|
738
|
-
if (i = n[s],
|
|
747
|
+
if (i = n[s], nt(
|
|
739
748
|
/** @type {Derived} */
|
|
740
749
|
i
|
|
741
|
-
) &&
|
|
750
|
+
) && vr(
|
|
742
751
|
/** @type {Derived} */
|
|
743
752
|
i
|
|
744
753
|
), i.wv > e.wv)
|
|
745
754
|
return !0;
|
|
746
755
|
}
|
|
747
|
-
(!r ||
|
|
756
|
+
(!r || x !== null && !we) && ie(e, J);
|
|
748
757
|
}
|
|
749
758
|
return !1;
|
|
750
759
|
}
|
|
751
|
-
function
|
|
760
|
+
function Mn(e, t) {
|
|
752
761
|
for (var n = t; n !== null; ) {
|
|
753
|
-
if ((n.f &
|
|
762
|
+
if ((n.f & Rt) !== 0)
|
|
754
763
|
try {
|
|
755
764
|
n.fn(e);
|
|
756
765
|
return;
|
|
757
766
|
} catch {
|
|
758
|
-
n.f ^=
|
|
767
|
+
n.f ^= Rt;
|
|
759
768
|
}
|
|
760
769
|
n = n.parent;
|
|
761
770
|
}
|
|
762
|
-
throw
|
|
771
|
+
throw Et = !1, e;
|
|
763
772
|
}
|
|
764
|
-
function
|
|
765
|
-
return (e.f &
|
|
773
|
+
function jn(e) {
|
|
774
|
+
return (e.f & Dt) === 0 && (e.parent === null || (e.parent.f & Rt) === 0);
|
|
766
775
|
}
|
|
767
|
-
function
|
|
768
|
-
if (
|
|
769
|
-
if (n === null && (
|
|
776
|
+
function It(e, t, n, r) {
|
|
777
|
+
if (Et) {
|
|
778
|
+
if (n === null && (Et = !1), jn(t))
|
|
770
779
|
throw e;
|
|
771
780
|
return;
|
|
772
781
|
}
|
|
773
|
-
if (n !== null && (
|
|
774
|
-
|
|
782
|
+
if (n !== null && (Et = !0), r === null || !(e instanceof Error) || Nn.has(e)) {
|
|
783
|
+
Mn(e, t);
|
|
775
784
|
return;
|
|
776
785
|
}
|
|
777
|
-
|
|
786
|
+
Nn.add(e);
|
|
778
787
|
const s = [], i = t.fn?.name;
|
|
779
788
|
i && s.push(i);
|
|
780
789
|
let o = r;
|
|
781
790
|
for (; o !== null; ) {
|
|
782
791
|
{
|
|
783
|
-
var l = o.function?.[
|
|
792
|
+
var l = o.function?.[P];
|
|
784
793
|
if (l) {
|
|
785
794
|
const u = l.split("/").pop();
|
|
786
795
|
s.push(u);
|
|
@@ -788,7 +797,7 @@ function Dt(e, t, n, r) {
|
|
|
788
797
|
}
|
|
789
798
|
o = o.p;
|
|
790
799
|
}
|
|
791
|
-
const c =
|
|
800
|
+
const c = vn ? " " : " ";
|
|
792
801
|
ce(e, "message", {
|
|
793
802
|
value: e.message + `
|
|
794
803
|
${s.map((u) => `
|
|
@@ -810,64 +819,64 @@ ${c}in ${u}`).join("")}
|
|
|
810
819
|
`)
|
|
811
820
|
});
|
|
812
821
|
}
|
|
813
|
-
if (
|
|
822
|
+
if (Mn(e, t), jn(t))
|
|
814
823
|
throw e;
|
|
815
824
|
}
|
|
816
|
-
function
|
|
825
|
+
function $r(e, t, n = !0) {
|
|
817
826
|
var r = e.reactions;
|
|
818
827
|
if (r !== null)
|
|
819
828
|
for (var s = 0; s < r.length; s++) {
|
|
820
829
|
var i = r[s];
|
|
821
|
-
|
|
830
|
+
ge?.includes(e) || ((i.f & fe) !== 0 ? $r(
|
|
822
831
|
/** @type {Derived} */
|
|
823
832
|
i,
|
|
824
833
|
t,
|
|
825
834
|
!1
|
|
826
|
-
) : t === i && (n ?
|
|
835
|
+
) : t === i && (n ? ie(i, _e) : (i.f & J) !== 0 && ie(i, Oe), At(
|
|
827
836
|
/** @type {Effect} */
|
|
828
837
|
i
|
|
829
838
|
)));
|
|
830
839
|
}
|
|
831
840
|
}
|
|
832
|
-
function
|
|
841
|
+
function Rr(e) {
|
|
833
842
|
var g;
|
|
834
|
-
var t =
|
|
835
|
-
|
|
836
|
-
null,
|
|
843
|
+
var t = j, n = X, r = ee, s = R, i = we, o = ge, l = B, c = ae, a = e.f;
|
|
844
|
+
j = /** @type {null | Value[]} */
|
|
845
|
+
null, X = 0, ee = null, we = (a & ne) !== 0 && (ae || !Le || R === null), R = (a & (ve | De)) === 0 ? e : null, ge = null, Jn(e.ctx), ae = !1, St++, e.f |= tn;
|
|
837
846
|
try {
|
|
838
847
|
var u = (
|
|
839
848
|
/** @type {Function} */
|
|
840
849
|
(0, e.fn)()
|
|
841
850
|
), d = e.deps;
|
|
842
|
-
if (
|
|
851
|
+
if (j !== null) {
|
|
843
852
|
var f;
|
|
844
|
-
if (
|
|
845
|
-
for (d.length =
|
|
846
|
-
d[
|
|
853
|
+
if (Pt(e, X), d !== null && X > 0)
|
|
854
|
+
for (d.length = X + j.length, f = 0; f < j.length; f++)
|
|
855
|
+
d[X + f] = j[f];
|
|
847
856
|
else
|
|
848
|
-
e.deps = d =
|
|
849
|
-
if (
|
|
850
|
-
for (f =
|
|
857
|
+
e.deps = d = j;
|
|
858
|
+
if (!we)
|
|
859
|
+
for (f = X; f < d.length; f++)
|
|
851
860
|
((g = d[f]).reactions ?? (g.reactions = [])).push(e);
|
|
852
|
-
} else d !== null &&
|
|
853
|
-
if (
|
|
861
|
+
} else d !== null && X < d.length && (Pt(e, X), d.length = X);
|
|
862
|
+
if (zt() && ee !== null && !ae && d !== null && (e.f & (fe | Oe | _e)) === 0)
|
|
854
863
|
for (f = 0; f < /** @type {Source[]} */
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
864
|
+
ee.length; f++)
|
|
865
|
+
$r(
|
|
866
|
+
ee[f],
|
|
858
867
|
/** @type {Effect} */
|
|
859
868
|
e
|
|
860
869
|
);
|
|
861
|
-
return s !== null && (
|
|
862
|
-
|
|
870
|
+
return s !== null && (St++, ee !== null && (r === null ? r = ee : r.push(.../** @type {Source[]} */
|
|
871
|
+
ee))), u;
|
|
863
872
|
} finally {
|
|
864
|
-
|
|
873
|
+
j = t, X = n, ee = r, R = s, we = i, ge = o, Jn(l), ae = c, e.f ^= tn;
|
|
865
874
|
}
|
|
866
875
|
}
|
|
867
|
-
function
|
|
876
|
+
function Gs(e, t) {
|
|
868
877
|
let n = t.reactions;
|
|
869
878
|
if (n !== null) {
|
|
870
|
-
var r =
|
|
879
|
+
var r = ds.call(n, e);
|
|
871
880
|
if (r !== -1) {
|
|
872
881
|
var s = n.length - 1;
|
|
873
882
|
s === 0 ? n = t.reactions = null : (n[r] = n[s], n.pop());
|
|
@@ -876,124 +885,124 @@ function Qs(e, t) {
|
|
|
876
885
|
n === null && (t.f & fe) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
877
886
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
878
887
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
879
|
-
(
|
|
888
|
+
(j === null || !j.includes(t)) && (ie(t, Oe), (t.f & (ne | Ft)) === 0 && (t.f ^= Ft), mr(
|
|
880
889
|
/** @type {Derived} **/
|
|
881
890
|
t
|
|
882
|
-
),
|
|
891
|
+
), Pt(
|
|
883
892
|
/** @type {Derived} **/
|
|
884
893
|
t,
|
|
885
894
|
0
|
|
886
895
|
));
|
|
887
896
|
}
|
|
888
|
-
function
|
|
897
|
+
function Pt(e, t) {
|
|
889
898
|
var n = e.deps;
|
|
890
899
|
if (n !== null)
|
|
891
900
|
for (var r = t; r < n.length; r++)
|
|
892
|
-
|
|
901
|
+
Gs(e, n[r]);
|
|
893
902
|
}
|
|
894
|
-
function
|
|
903
|
+
function Nt(e) {
|
|
895
904
|
var t = e.f;
|
|
896
|
-
if ((t &
|
|
897
|
-
|
|
898
|
-
var n =
|
|
899
|
-
|
|
905
|
+
if ((t & Dt) === 0) {
|
|
906
|
+
ie(e, J);
|
|
907
|
+
var n = x, r = B, s = Le;
|
|
908
|
+
x = e, Le = !0;
|
|
900
909
|
{
|
|
901
|
-
var i =
|
|
902
|
-
|
|
910
|
+
var i = ke;
|
|
911
|
+
Wn(e.component_function);
|
|
903
912
|
}
|
|
904
913
|
try {
|
|
905
|
-
(t &
|
|
906
|
-
var o =
|
|
907
|
-
e.teardown = typeof o == "function" ? o : null, e.wv =
|
|
914
|
+
(t & dn) !== 0 ? si(e) : Br(e), Qr(e);
|
|
915
|
+
var o = Rr(e);
|
|
916
|
+
e.teardown = typeof o == "function" ? o : null, e.wv = wr;
|
|
908
917
|
var l = e.deps, c;
|
|
909
|
-
|
|
918
|
+
Sn && xs && e.f & _e, Sn && xt.push(e);
|
|
910
919
|
} catch (a) {
|
|
911
|
-
|
|
920
|
+
It(a, e, n, r || e.ctx);
|
|
912
921
|
} finally {
|
|
913
|
-
|
|
922
|
+
Le = s, x = n, Wn(i);
|
|
914
923
|
}
|
|
915
924
|
}
|
|
916
925
|
}
|
|
917
|
-
function
|
|
926
|
+
function zn() {
|
|
918
927
|
console.error(
|
|
919
928
|
"Last ten effects were: ",
|
|
920
929
|
xt.slice(-10).map((e) => e.fn)
|
|
921
930
|
), xt = [];
|
|
922
931
|
}
|
|
923
|
-
function
|
|
932
|
+
function Xs() {
|
|
924
933
|
try {
|
|
925
|
-
|
|
934
|
+
$s();
|
|
926
935
|
} catch (e) {
|
|
927
936
|
if (ce(e, "stack", {
|
|
928
937
|
value: ""
|
|
929
|
-
}),
|
|
938
|
+
}), Bt !== null)
|
|
930
939
|
try {
|
|
931
|
-
|
|
940
|
+
It(e, Bt, null, null);
|
|
932
941
|
} catch (t) {
|
|
933
|
-
throw
|
|
942
|
+
throw zn(), t;
|
|
934
943
|
}
|
|
935
944
|
else
|
|
936
|
-
throw
|
|
945
|
+
throw zn(), e;
|
|
937
946
|
}
|
|
938
947
|
}
|
|
939
|
-
function
|
|
940
|
-
var e =
|
|
948
|
+
function Fr() {
|
|
949
|
+
var e = Le;
|
|
941
950
|
try {
|
|
942
951
|
var t = 0;
|
|
943
|
-
for (
|
|
944
|
-
t++ > 1e3 &&
|
|
945
|
-
var n =
|
|
946
|
-
|
|
952
|
+
for (Le = !0; at.length > 0; ) {
|
|
953
|
+
t++ > 1e3 && Xs();
|
|
954
|
+
var n = at, r = n.length;
|
|
955
|
+
at = [];
|
|
947
956
|
for (var s = 0; s < r; s++) {
|
|
948
|
-
var i =
|
|
949
|
-
|
|
957
|
+
var i = Ys(n[s]);
|
|
958
|
+
Hs(i);
|
|
950
959
|
}
|
|
951
960
|
}
|
|
952
961
|
} finally {
|
|
953
|
-
|
|
962
|
+
Qt = !1, Le = e, Bt = null, xt = [], dt.clear();
|
|
954
963
|
}
|
|
955
964
|
}
|
|
956
|
-
function
|
|
965
|
+
function Hs(e) {
|
|
957
966
|
var t = e.length;
|
|
958
967
|
if (t !== 0)
|
|
959
968
|
for (var n = 0; n < t; n++) {
|
|
960
969
|
var r = e[n];
|
|
961
|
-
if ((r.f & (
|
|
970
|
+
if ((r.f & (Dt | He)) === 0)
|
|
962
971
|
try {
|
|
963
|
-
|
|
972
|
+
nt(r) && (Nt(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? xr(r) : r.fn = null));
|
|
964
973
|
} catch (s) {
|
|
965
|
-
|
|
974
|
+
It(s, r, null, r.ctx);
|
|
966
975
|
}
|
|
967
976
|
}
|
|
968
977
|
}
|
|
969
|
-
function
|
|
970
|
-
|
|
971
|
-
for (var t =
|
|
978
|
+
function At(e) {
|
|
979
|
+
Qt || (Qt = !0, queueMicrotask(Fr));
|
|
980
|
+
for (var t = Bt = e; t.parent !== null; ) {
|
|
972
981
|
t = t.parent;
|
|
973
982
|
var n = t.f;
|
|
974
|
-
if ((n & (De |
|
|
975
|
-
if ((n &
|
|
976
|
-
t.f ^=
|
|
983
|
+
if ((n & (De | ve)) !== 0) {
|
|
984
|
+
if ((n & J) === 0) return;
|
|
985
|
+
t.f ^= J;
|
|
977
986
|
}
|
|
978
987
|
}
|
|
979
|
-
|
|
988
|
+
at.push(t);
|
|
980
989
|
}
|
|
981
|
-
function
|
|
990
|
+
function Ys(e) {
|
|
982
991
|
for (var t = [], n = e; n !== null; ) {
|
|
983
|
-
var r = n.f, s = (r & (
|
|
984
|
-
if (!i && (r &
|
|
985
|
-
if ((r &
|
|
992
|
+
var r = n.f, s = (r & (ve | De)) !== 0, i = s && (r & J) !== 0;
|
|
993
|
+
if (!i && (r & He) === 0) {
|
|
994
|
+
if ((r & sr) !== 0)
|
|
986
995
|
t.push(n);
|
|
987
996
|
else if (s)
|
|
988
|
-
n.f ^=
|
|
997
|
+
n.f ^= J;
|
|
989
998
|
else {
|
|
990
|
-
var o =
|
|
999
|
+
var o = R;
|
|
991
1000
|
try {
|
|
992
|
-
|
|
1001
|
+
R = n, nt(n) && Nt(n);
|
|
993
1002
|
} catch (a) {
|
|
994
|
-
|
|
1003
|
+
It(a, n, null, n.ctx);
|
|
995
1004
|
} finally {
|
|
996
|
-
|
|
1005
|
+
R = o;
|
|
997
1006
|
}
|
|
998
1007
|
}
|
|
999
1008
|
var l = n.first;
|
|
@@ -1010,22 +1019,22 @@ function Hs(e) {
|
|
|
1010
1019
|
}
|
|
1011
1020
|
function E(e) {
|
|
1012
1021
|
var t;
|
|
1013
|
-
for (
|
|
1014
|
-
|
|
1022
|
+
for (Ln(); at.length > 0; )
|
|
1023
|
+
Qt = !0, Fr(), Ln();
|
|
1015
1024
|
return (
|
|
1016
1025
|
/** @type {T} */
|
|
1017
1026
|
t
|
|
1018
1027
|
);
|
|
1019
1028
|
}
|
|
1020
|
-
async function
|
|
1029
|
+
async function Cr() {
|
|
1021
1030
|
await Promise.resolve(), E();
|
|
1022
1031
|
}
|
|
1023
1032
|
function p(e) {
|
|
1024
1033
|
var t = e.f, n = (t & fe) !== 0;
|
|
1025
|
-
if (
|
|
1026
|
-
if (!
|
|
1027
|
-
var r =
|
|
1028
|
-
e.rv <
|
|
1034
|
+
if (R !== null && !ae) {
|
|
1035
|
+
if (!ge?.includes(e)) {
|
|
1036
|
+
var r = R.deps;
|
|
1037
|
+
e.rv < St && (e.rv = St, j === null && r !== null && r[X] === e ? X++ : j === null ? j = [e] : (!we || !j.includes(e)) && j.push(e));
|
|
1029
1038
|
}
|
|
1030
1039
|
} else if (n && /** @type {Derived} */
|
|
1031
1040
|
e.deps === null && /** @type {Derived} */
|
|
@@ -1034,12 +1043,12 @@ function p(e) {
|
|
|
1034
1043
|
/** @type {Derived} */
|
|
1035
1044
|
e
|
|
1036
1045
|
), i = s.parent;
|
|
1037
|
-
i !== null && (i.f &
|
|
1046
|
+
i !== null && (i.f & ne) === 0 && (s.f ^= ne);
|
|
1038
1047
|
}
|
|
1039
1048
|
return n && (s = /** @type {Derived} */
|
|
1040
|
-
e,
|
|
1049
|
+
e, nt(s) && vr(s)), vt && dt.has(e) ? dt.get(e) : e.v;
|
|
1041
1050
|
}
|
|
1042
|
-
function
|
|
1051
|
+
function Te(e) {
|
|
1043
1052
|
var t = ae;
|
|
1044
1053
|
try {
|
|
1045
1054
|
return ae = !0, e();
|
|
@@ -1047,26 +1056,26 @@ function We(e) {
|
|
|
1047
1056
|
ae = t;
|
|
1048
1057
|
}
|
|
1049
1058
|
}
|
|
1050
|
-
const
|
|
1051
|
-
function
|
|
1052
|
-
e.f = e.f &
|
|
1059
|
+
const Zs = -7169;
|
|
1060
|
+
function ie(e, t) {
|
|
1061
|
+
e.f = e.f & Zs | t;
|
|
1053
1062
|
}
|
|
1054
|
-
function
|
|
1055
|
-
|
|
1063
|
+
function Ks(e) {
|
|
1064
|
+
x === null && R === null && Es(e), R !== null && (R.f & ne) !== 0 && x === null && ws(), vt && bs(e);
|
|
1056
1065
|
}
|
|
1057
|
-
function
|
|
1066
|
+
function ei(e, t) {
|
|
1058
1067
|
var n = t.last;
|
|
1059
1068
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1060
1069
|
}
|
|
1061
1070
|
function Ne(e, t, n, r = !0) {
|
|
1062
|
-
for (var s =
|
|
1071
|
+
for (var s = x; s !== null && (s.f & ir) !== 0; )
|
|
1063
1072
|
s = s.parent;
|
|
1064
1073
|
var i = {
|
|
1065
1074
|
ctx: B,
|
|
1066
1075
|
deps: null,
|
|
1067
1076
|
nodes_start: null,
|
|
1068
1077
|
nodes_end: null,
|
|
1069
|
-
f: e |
|
|
1078
|
+
f: e | _e,
|
|
1070
1079
|
first: null,
|
|
1071
1080
|
fn: t,
|
|
1072
1081
|
last: null,
|
|
@@ -1077,30 +1086,30 @@ function Ne(e, t, n, r = !0) {
|
|
|
1077
1086
|
transitions: null,
|
|
1078
1087
|
wv: 0
|
|
1079
1088
|
};
|
|
1080
|
-
if (i.component_function =
|
|
1089
|
+
if (i.component_function = ke, n)
|
|
1081
1090
|
try {
|
|
1082
|
-
|
|
1091
|
+
Nt(i), i.f |= cs;
|
|
1083
1092
|
} catch (c) {
|
|
1084
1093
|
throw me(i), c;
|
|
1085
1094
|
}
|
|
1086
|
-
else t !== null &&
|
|
1087
|
-
var o = n && i.deps === null && i.first === null && i.nodes_start === null && i.teardown === null && (i.f & (
|
|
1088
|
-
if (!o && r && (s !== null &&
|
|
1095
|
+
else t !== null && At(i);
|
|
1096
|
+
var o = n && i.deps === null && i.first === null && i.nodes_start === null && i.teardown === null && (i.f & (or | Rt)) === 0;
|
|
1097
|
+
if (!o && r && (s !== null && ei(i, s), R !== null && (R.f & fe) !== 0)) {
|
|
1089
1098
|
var l = (
|
|
1090
1099
|
/** @type {Derived} */
|
|
1091
|
-
|
|
1100
|
+
R
|
|
1092
1101
|
);
|
|
1093
1102
|
(l.effects ?? (l.effects = [])).push(i);
|
|
1094
1103
|
}
|
|
1095
1104
|
return i;
|
|
1096
1105
|
}
|
|
1097
|
-
function
|
|
1098
|
-
const t = Ne(
|
|
1099
|
-
return
|
|
1106
|
+
function ti(e) {
|
|
1107
|
+
const t = Ne(kt, null, !1);
|
|
1108
|
+
return ie(t, J), t.teardown = e, t;
|
|
1100
1109
|
}
|
|
1101
|
-
function
|
|
1102
|
-
|
|
1103
|
-
var t =
|
|
1110
|
+
function Ee(e) {
|
|
1111
|
+
Ks("$effect");
|
|
1112
|
+
var t = x !== null && (x.f & ve) !== 0 && B !== null && !B.m;
|
|
1104
1113
|
if (ce(e, "name", {
|
|
1105
1114
|
value: "$effect"
|
|
1106
1115
|
}), t) {
|
|
@@ -1110,103 +1119,103 @@ function Re(e) {
|
|
|
1110
1119
|
);
|
|
1111
1120
|
(n.e ?? (n.e = [])).push({
|
|
1112
1121
|
fn: e,
|
|
1113
|
-
effect:
|
|
1114
|
-
reaction:
|
|
1122
|
+
effect: x,
|
|
1123
|
+
reaction: R
|
|
1115
1124
|
});
|
|
1116
1125
|
} else {
|
|
1117
|
-
var r =
|
|
1126
|
+
var r = _n(e);
|
|
1118
1127
|
return r;
|
|
1119
1128
|
}
|
|
1120
1129
|
}
|
|
1121
|
-
function
|
|
1130
|
+
function ni(e) {
|
|
1122
1131
|
const t = Ne(De, e, !0);
|
|
1123
1132
|
return () => {
|
|
1124
1133
|
me(t);
|
|
1125
1134
|
};
|
|
1126
1135
|
}
|
|
1127
|
-
function
|
|
1136
|
+
function ri(e) {
|
|
1128
1137
|
const t = Ne(De, e, !0);
|
|
1129
1138
|
return (n = {}) => new Promise((r) => {
|
|
1130
|
-
n.outro ?
|
|
1139
|
+
n.outro ? on(t, () => {
|
|
1131
1140
|
me(t), r(void 0);
|
|
1132
1141
|
}) : (me(t), r(void 0));
|
|
1133
1142
|
});
|
|
1134
1143
|
}
|
|
1135
|
-
function
|
|
1136
|
-
return Ne(
|
|
1144
|
+
function _n(e) {
|
|
1145
|
+
return Ne(sr, e, !1);
|
|
1137
1146
|
}
|
|
1138
|
-
function
|
|
1139
|
-
return Ne(
|
|
1147
|
+
function Ur(e) {
|
|
1148
|
+
return Ne(kt, e, !0);
|
|
1140
1149
|
}
|
|
1141
|
-
function
|
|
1150
|
+
function Xe(e, t = [], n = ht) {
|
|
1142
1151
|
const r = t.map(n), s = () => e(...r.map(p));
|
|
1143
1152
|
return ce(s, "name", {
|
|
1144
1153
|
value: "{expression}"
|
|
1145
|
-
}),
|
|
1154
|
+
}), yn(s);
|
|
1146
1155
|
}
|
|
1147
|
-
function
|
|
1148
|
-
return Ne(
|
|
1156
|
+
function yn(e, t = 0) {
|
|
1157
|
+
return Ne(kt | dn | t, e, !0);
|
|
1149
1158
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return Ne(
|
|
1159
|
+
function Lt(e, t = !0) {
|
|
1160
|
+
return Ne(kt | ve, e, !0, t);
|
|
1152
1161
|
}
|
|
1153
|
-
function
|
|
1162
|
+
function Qr(e) {
|
|
1154
1163
|
var t = e.teardown;
|
|
1155
1164
|
if (t !== null) {
|
|
1156
|
-
const n =
|
|
1157
|
-
|
|
1165
|
+
const n = vt, r = R;
|
|
1166
|
+
An(!0), Fe(null);
|
|
1158
1167
|
try {
|
|
1159
1168
|
t.call(null);
|
|
1160
1169
|
} finally {
|
|
1161
|
-
|
|
1170
|
+
An(n), Fe(r);
|
|
1162
1171
|
}
|
|
1163
1172
|
}
|
|
1164
1173
|
}
|
|
1165
|
-
function
|
|
1174
|
+
function Br(e, t = !1) {
|
|
1166
1175
|
var n = e.first;
|
|
1167
1176
|
for (e.first = e.last = null; n !== null; ) {
|
|
1168
1177
|
var r = n.next;
|
|
1169
1178
|
(n.f & De) !== 0 ? n.parent = null : me(n, t), n = r;
|
|
1170
1179
|
}
|
|
1171
1180
|
}
|
|
1172
|
-
function
|
|
1181
|
+
function si(e) {
|
|
1173
1182
|
for (var t = e.first; t !== null; ) {
|
|
1174
1183
|
var n = t.next;
|
|
1175
|
-
(t.f &
|
|
1184
|
+
(t.f & ve) === 0 && me(t), t = n;
|
|
1176
1185
|
}
|
|
1177
1186
|
}
|
|
1178
1187
|
function me(e, t = !0) {
|
|
1179
1188
|
var n = !1;
|
|
1180
|
-
if ((t || (e.f &
|
|
1189
|
+
if ((t || (e.f & fs) !== 0) && e.nodes_start !== null) {
|
|
1181
1190
|
for (var r = e.nodes_start, s = e.nodes_end; r !== null; ) {
|
|
1182
1191
|
var i = r === s ? null : (
|
|
1183
1192
|
/** @type {TemplateNode} */
|
|
1184
|
-
/* @__PURE__ */
|
|
1193
|
+
/* @__PURE__ */ Ie(r)
|
|
1185
1194
|
);
|
|
1186
1195
|
r.remove(), r = i;
|
|
1187
1196
|
}
|
|
1188
1197
|
n = !0;
|
|
1189
1198
|
}
|
|
1190
|
-
|
|
1199
|
+
Br(e, t && !n), Pt(e, 0), ie(e, Dt);
|
|
1191
1200
|
var o = e.transitions;
|
|
1192
1201
|
if (o !== null)
|
|
1193
1202
|
for (const c of o)
|
|
1194
1203
|
c.stop();
|
|
1195
|
-
|
|
1204
|
+
Qr(e);
|
|
1196
1205
|
var l = e.parent;
|
|
1197
|
-
l !== null && l.first !== null &&
|
|
1206
|
+
l !== null && l.first !== null && xr(e), e.component_function = null, e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = null;
|
|
1198
1207
|
}
|
|
1199
|
-
function
|
|
1208
|
+
function xr(e) {
|
|
1200
1209
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1201
1210
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1202
1211
|
}
|
|
1203
|
-
function
|
|
1212
|
+
function on(e, t) {
|
|
1204
1213
|
var n = [];
|
|
1205
|
-
|
|
1214
|
+
Sr(e, n, !0), ii(n, () => {
|
|
1206
1215
|
me(e), t && t();
|
|
1207
1216
|
});
|
|
1208
1217
|
}
|
|
1209
|
-
function
|
|
1218
|
+
function ii(e, t) {
|
|
1210
1219
|
var n = e.length;
|
|
1211
1220
|
if (n > 0) {
|
|
1212
1221
|
var r = () => --n || t();
|
|
@@ -1215,40 +1224,40 @@ function Ks(e, t) {
|
|
|
1215
1224
|
} else
|
|
1216
1225
|
t();
|
|
1217
1226
|
}
|
|
1218
|
-
function
|
|
1219
|
-
if ((e.f &
|
|
1220
|
-
if (e.f ^=
|
|
1227
|
+
function Sr(e, t, n) {
|
|
1228
|
+
if ((e.f & He) === 0) {
|
|
1229
|
+
if (e.f ^= He, e.transitions !== null)
|
|
1221
1230
|
for (const o of e.transitions)
|
|
1222
1231
|
(o.is_global || n) && t.push(o);
|
|
1223
1232
|
for (var r = e.first; r !== null; ) {
|
|
1224
|
-
var s = r.next, i = (r.f &
|
|
1225
|
-
|
|
1233
|
+
var s = r.next, i = (r.f & hn) !== 0 || (r.f & ve) !== 0;
|
|
1234
|
+
Sr(r, t, i ? n : !1), r = s;
|
|
1226
1235
|
}
|
|
1227
1236
|
}
|
|
1228
1237
|
}
|
|
1229
|
-
function
|
|
1230
|
-
|
|
1238
|
+
function Vn(e) {
|
|
1239
|
+
Pr(e, !0);
|
|
1231
1240
|
}
|
|
1232
|
-
function
|
|
1233
|
-
if ((e.f &
|
|
1234
|
-
e.f ^=
|
|
1241
|
+
function Pr(e, t) {
|
|
1242
|
+
if ((e.f & He) !== 0) {
|
|
1243
|
+
e.f ^= He, (e.f & J) === 0 && (e.f ^= J), nt(e) && (ie(e, _e), At(e));
|
|
1235
1244
|
for (var n = e.first; n !== null; ) {
|
|
1236
|
-
var r = n.next, s = (n.f &
|
|
1237
|
-
|
|
1245
|
+
var r = n.next, s = (n.f & hn) !== 0 || (n.f & ve) !== 0;
|
|
1246
|
+
Pr(n, s ? t : !1), n = r;
|
|
1238
1247
|
}
|
|
1239
1248
|
if (e.transitions !== null)
|
|
1240
1249
|
for (const i of e.transitions)
|
|
1241
1250
|
(i.is_global || t) && i.in();
|
|
1242
1251
|
}
|
|
1243
1252
|
}
|
|
1244
|
-
const
|
|
1245
|
-
function
|
|
1253
|
+
const ct = {}, oi = /at (?:.+ \()?(.+):(\d+):(\d+)\)?$/, li = /@(.+):(\d+):(\d+)$/;
|
|
1254
|
+
function bn() {
|
|
1246
1255
|
const e = new Error().stack;
|
|
1247
1256
|
if (!e) return null;
|
|
1248
1257
|
const t = [];
|
|
1249
1258
|
for (const n of e.split(`
|
|
1250
1259
|
`)) {
|
|
1251
|
-
let r =
|
|
1260
|
+
let r = oi.exec(n) ?? li.exec(n);
|
|
1252
1261
|
r && t.push({
|
|
1253
1262
|
file: r[1],
|
|
1254
1263
|
line: +r[2],
|
|
@@ -1257,11 +1266,11 @@ function gn() {
|
|
|
1257
1266
|
}
|
|
1258
1267
|
return t;
|
|
1259
1268
|
}
|
|
1260
|
-
function
|
|
1261
|
-
const e =
|
|
1269
|
+
function Lr() {
|
|
1270
|
+
const e = bn()?.slice(4);
|
|
1262
1271
|
if (!e) return null;
|
|
1263
1272
|
for (let t = 0; t < e.length; t++) {
|
|
1264
|
-
const n = e[t], r =
|
|
1273
|
+
const n = e[t], r = ct[n.file];
|
|
1265
1274
|
if (!r) {
|
|
1266
1275
|
if (t === 0) return null;
|
|
1267
1276
|
continue;
|
|
@@ -1275,10 +1284,10 @@ function Cr() {
|
|
|
1275
1284
|
}
|
|
1276
1285
|
return null;
|
|
1277
1286
|
}
|
|
1278
|
-
function
|
|
1287
|
+
function wn() {
|
|
1279
1288
|
var t;
|
|
1280
|
-
const e =
|
|
1281
|
-
e && (
|
|
1289
|
+
const e = bn()?.[2];
|
|
1290
|
+
e && (ct[t = e.file] ?? (ct[t] = [])).push({
|
|
1282
1291
|
start: e,
|
|
1283
1292
|
// @ts-expect-error
|
|
1284
1293
|
end: null,
|
|
@@ -1286,14 +1295,14 @@ function Pr() {
|
|
|
1286
1295
|
component: null
|
|
1287
1296
|
});
|
|
1288
1297
|
}
|
|
1289
|
-
function
|
|
1290
|
-
const t =
|
|
1298
|
+
function En(e) {
|
|
1299
|
+
const t = bn()?.[2];
|
|
1291
1300
|
if (t) {
|
|
1292
|
-
const n =
|
|
1301
|
+
const n = ct[t.file], r = n[n.length - 1];
|
|
1293
1302
|
r.end = t, r.component = e;
|
|
1294
1303
|
}
|
|
1295
1304
|
}
|
|
1296
|
-
function
|
|
1305
|
+
function qn(e, t) {
|
|
1297
1306
|
if (t.owners !== null)
|
|
1298
1307
|
for (; e; ) {
|
|
1299
1308
|
if (e.owners === null) {
|
|
@@ -1305,29 +1314,29 @@ function Un(e, t) {
|
|
|
1305
1314
|
e = e.parent;
|
|
1306
1315
|
}
|
|
1307
1316
|
}
|
|
1308
|
-
function
|
|
1317
|
+
function Tr(e, t) {
|
|
1309
1318
|
return e.owners === null ? !0 : e.owners.has(t) || // This helps avoid false positives when using HMR, where the component function is replaced
|
|
1310
|
-
|
|
1319
|
+
P in t && [...e.owners].some(
|
|
1311
1320
|
(n) => (
|
|
1312
1321
|
/** @type {any} */
|
|
1313
|
-
n[
|
|
1322
|
+
n[P] === t[P]
|
|
1314
1323
|
)
|
|
1315
|
-
) || e.parent !== null &&
|
|
1324
|
+
) || e.parent !== null && Tr(e.parent, t);
|
|
1316
1325
|
}
|
|
1317
|
-
function
|
|
1318
|
-
return e?.owners?.values().next().value ??
|
|
1326
|
+
function kr(e) {
|
|
1327
|
+
return e?.owners?.values().next().value ?? kr(
|
|
1319
1328
|
/** @type {ProxyMetadata} */
|
|
1320
1329
|
e.parent
|
|
1321
1330
|
);
|
|
1322
1331
|
}
|
|
1323
|
-
function
|
|
1324
|
-
const t =
|
|
1325
|
-
if (t && !
|
|
1326
|
-
let n =
|
|
1327
|
-
n[
|
|
1332
|
+
function ai(e) {
|
|
1333
|
+
const t = Lr();
|
|
1334
|
+
if (t && !Tr(e, t)) {
|
|
1335
|
+
let n = kr(e);
|
|
1336
|
+
n[P] !== t[P] ? On(t[P], n[P]) : On();
|
|
1328
1337
|
}
|
|
1329
1338
|
}
|
|
1330
|
-
function
|
|
1339
|
+
function Dr(e) {
|
|
1331
1340
|
{
|
|
1332
1341
|
const t = new Error(`lifecycle_outside_component
|
|
1333
1342
|
\`${e}(...)\` can only be used during component initialisation
|
|
@@ -1336,14 +1345,14 @@ https://svelte.dev/e/lifecycle_outside_component`);
|
|
|
1336
1345
|
}
|
|
1337
1346
|
}
|
|
1338
1347
|
let B = null;
|
|
1339
|
-
function
|
|
1348
|
+
function Jn(e) {
|
|
1340
1349
|
B = e;
|
|
1341
1350
|
}
|
|
1342
|
-
let
|
|
1343
|
-
function
|
|
1344
|
-
|
|
1351
|
+
let ke = null;
|
|
1352
|
+
function Wn(e) {
|
|
1353
|
+
ke = e;
|
|
1345
1354
|
}
|
|
1346
|
-
function
|
|
1355
|
+
function Mt(e, t = !1, n) {
|
|
1347
1356
|
var r = B = {
|
|
1348
1357
|
p: B,
|
|
1349
1358
|
c: null,
|
|
@@ -1354,76 +1363,81 @@ function pn(e, t = !1, n) {
|
|
|
1354
1363
|
x: null,
|
|
1355
1364
|
l: null
|
|
1356
1365
|
};
|
|
1357
|
-
|
|
1366
|
+
Ke && !t && (B.l = {
|
|
1367
|
+
s: null,
|
|
1368
|
+
u: null,
|
|
1369
|
+
r1: [],
|
|
1370
|
+
r2: mn(!1)
|
|
1371
|
+
}), ti(() => {
|
|
1358
1372
|
r.d = !0;
|
|
1359
|
-
}), B.function = n,
|
|
1373
|
+
}), B.function = n, ke = n;
|
|
1360
1374
|
}
|
|
1361
|
-
function
|
|
1375
|
+
function jt(e) {
|
|
1362
1376
|
const t = B;
|
|
1363
1377
|
if (t !== null) {
|
|
1364
1378
|
e !== void 0 && (t.x = e);
|
|
1365
1379
|
const o = t.e;
|
|
1366
1380
|
if (o !== null) {
|
|
1367
|
-
var n =
|
|
1381
|
+
var n = x, r = R;
|
|
1368
1382
|
t.e = null;
|
|
1369
1383
|
try {
|
|
1370
1384
|
for (var s = 0; s < o.length; s++) {
|
|
1371
1385
|
var i = o[s];
|
|
1372
|
-
|
|
1386
|
+
Ye(i.effect), Fe(i.reaction), _n(i.fn);
|
|
1373
1387
|
}
|
|
1374
1388
|
} finally {
|
|
1375
|
-
|
|
1389
|
+
Ye(n), Fe(r);
|
|
1376
1390
|
}
|
|
1377
1391
|
}
|
|
1378
|
-
B = t.p,
|
|
1392
|
+
B = t.p, ke = t.p?.function ?? null, t.m = !0;
|
|
1379
1393
|
}
|
|
1380
1394
|
return e || /** @type {T} */
|
|
1381
1395
|
{};
|
|
1382
1396
|
}
|
|
1383
|
-
function
|
|
1384
|
-
return !
|
|
1397
|
+
function zt() {
|
|
1398
|
+
return !Ke || B !== null && B.l === null;
|
|
1385
1399
|
}
|
|
1386
|
-
const
|
|
1387
|
-
function
|
|
1388
|
-
e = e.replace(
|
|
1400
|
+
const ci = /\r/g;
|
|
1401
|
+
function ui(e) {
|
|
1402
|
+
e = e.replace(ci, "");
|
|
1389
1403
|
let t = 5381, n = e.length;
|
|
1390
1404
|
for (; n--; ) t = (t << 5) - t ^ e.charCodeAt(n);
|
|
1391
1405
|
return (t >>> 0).toString(36);
|
|
1392
1406
|
}
|
|
1393
|
-
const
|
|
1394
|
-
function
|
|
1395
|
-
return
|
|
1407
|
+
const fi = ["touchstart", "touchmove"];
|
|
1408
|
+
function di(e) {
|
|
1409
|
+
return fi.includes(e);
|
|
1396
1410
|
}
|
|
1397
|
-
function
|
|
1411
|
+
function hi(e) {
|
|
1398
1412
|
return e?.replace(/\//g, "/");
|
|
1399
1413
|
}
|
|
1400
|
-
var
|
|
1401
|
-
function
|
|
1402
|
-
var n =
|
|
1403
|
-
n || (n = /* @__PURE__ */ new Set(),
|
|
1414
|
+
var Gn = /* @__PURE__ */ new Map();
|
|
1415
|
+
function gi(e, t) {
|
|
1416
|
+
var n = Gn.get(e);
|
|
1417
|
+
n || (n = /* @__PURE__ */ new Set(), Gn.set(e, n)), n.add(t);
|
|
1404
1418
|
}
|
|
1405
|
-
function
|
|
1419
|
+
function Ce(e, t, n) {
|
|
1406
1420
|
return (...r) => {
|
|
1407
1421
|
const s = e(...r);
|
|
1408
|
-
var i =
|
|
1409
|
-
return
|
|
1422
|
+
var i = O ? s : s.nodeType === 11 ? s.firstChild : s;
|
|
1423
|
+
return Or(i, t, n), s;
|
|
1410
1424
|
};
|
|
1411
1425
|
}
|
|
1412
|
-
function
|
|
1426
|
+
function pi(e, t, n) {
|
|
1413
1427
|
e.__svelte_meta = {
|
|
1414
1428
|
loc: { file: t, line: n[0], column: n[1] }
|
|
1415
|
-
}, n[2] &&
|
|
1429
|
+
}, n[2] && Or(e.firstChild, t, n[2]);
|
|
1416
1430
|
}
|
|
1417
|
-
function
|
|
1431
|
+
function Or(e, t, n) {
|
|
1418
1432
|
for (var r = 0, s = 0; e && r < n.length; ) {
|
|
1419
|
-
if (
|
|
1433
|
+
if (O && e.nodeType === 8) {
|
|
1420
1434
|
var i = (
|
|
1421
1435
|
/** @type {Comment} */
|
|
1422
1436
|
e
|
|
1423
1437
|
);
|
|
1424
|
-
i.data ===
|
|
1438
|
+
i.data === Tt || i.data === un ? s += 1 : i.data[0] === fn && (s -= 1);
|
|
1425
1439
|
}
|
|
1426
|
-
s === 0 && e.nodeType === 1 &&
|
|
1440
|
+
s === 0 && e.nodeType === 1 && pi(
|
|
1427
1441
|
/** @type {Element} */
|
|
1428
1442
|
e,
|
|
1429
1443
|
t,
|
|
@@ -1431,8 +1445,8 @@ function Ir(e, t, n) {
|
|
|
1431
1445
|
), e = e.nextSibling;
|
|
1432
1446
|
}
|
|
1433
1447
|
}
|
|
1434
|
-
const
|
|
1435
|
-
function
|
|
1448
|
+
const mi = /* @__PURE__ */ new Set(), Xn = /* @__PURE__ */ new Set();
|
|
1449
|
+
function _t(e) {
|
|
1436
1450
|
var t = this, n = (
|
|
1437
1451
|
/** @type {Node} */
|
|
1438
1452
|
t.ownerDocument
|
|
@@ -1460,71 +1474,71 @@ function vt(e) {
|
|
|
1460
1474
|
return i || n;
|
|
1461
1475
|
}
|
|
1462
1476
|
});
|
|
1463
|
-
var u =
|
|
1464
|
-
|
|
1477
|
+
var u = R, d = x;
|
|
1478
|
+
Fe(null), Ye(null);
|
|
1465
1479
|
try {
|
|
1466
1480
|
for (var f, g = []; i !== null; ) {
|
|
1467
|
-
var
|
|
1481
|
+
var v = i.assignedSlot || i.parentNode || /** @type {any} */
|
|
1468
1482
|
i.host || null;
|
|
1469
1483
|
try {
|
|
1470
|
-
var
|
|
1471
|
-
if (
|
|
1484
|
+
var b = i["__" + r];
|
|
1485
|
+
if (b != null && (!/** @type {any} */
|
|
1472
1486
|
i.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1473
1487
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1474
1488
|
e.target === i))
|
|
1475
|
-
if (
|
|
1476
|
-
var [
|
|
1477
|
-
|
|
1489
|
+
if (gn(b)) {
|
|
1490
|
+
var [$, ...I] = b;
|
|
1491
|
+
$.apply(i, [e, ...I]);
|
|
1478
1492
|
} else
|
|
1479
|
-
|
|
1480
|
-
} catch (
|
|
1481
|
-
f ? g.push(
|
|
1493
|
+
b.call(i, e);
|
|
1494
|
+
} catch (k) {
|
|
1495
|
+
f ? g.push(k) : f = k;
|
|
1482
1496
|
}
|
|
1483
|
-
if (e.cancelBubble ||
|
|
1497
|
+
if (e.cancelBubble || v === t || v === null)
|
|
1484
1498
|
break;
|
|
1485
|
-
i =
|
|
1499
|
+
i = v;
|
|
1486
1500
|
}
|
|
1487
1501
|
if (f) {
|
|
1488
|
-
for (let
|
|
1502
|
+
for (let k of g)
|
|
1489
1503
|
queueMicrotask(() => {
|
|
1490
|
-
throw
|
|
1504
|
+
throw k;
|
|
1491
1505
|
});
|
|
1492
1506
|
throw f;
|
|
1493
1507
|
}
|
|
1494
1508
|
} finally {
|
|
1495
|
-
e.__root = t, delete e.currentTarget,
|
|
1509
|
+
e.__root = t, delete e.currentTarget, Fe(u), Ye(d);
|
|
1496
1510
|
}
|
|
1497
1511
|
}
|
|
1498
1512
|
}
|
|
1499
|
-
function
|
|
1513
|
+
function Ir(e) {
|
|
1500
1514
|
var t = document.createElement("template");
|
|
1501
1515
|
return t.innerHTML = e, t.content;
|
|
1502
1516
|
}
|
|
1503
|
-
function
|
|
1517
|
+
function mt(e, t) {
|
|
1504
1518
|
var n = (
|
|
1505
1519
|
/** @type {Effect} */
|
|
1506
|
-
|
|
1520
|
+
x
|
|
1507
1521
|
);
|
|
1508
1522
|
n.nodes_start === null && (n.nodes_start = e, n.nodes_end = t);
|
|
1509
1523
|
}
|
|
1510
1524
|
// @__NO_SIDE_EFFECTS__
|
|
1511
|
-
function
|
|
1512
|
-
var n = (t &
|
|
1525
|
+
function Ue(e, t) {
|
|
1526
|
+
var n = (t & as) !== 0, r, s = !e.startsWith("<!>");
|
|
1513
1527
|
return () => {
|
|
1514
|
-
if (
|
|
1515
|
-
return
|
|
1516
|
-
r === void 0 && (r =
|
|
1517
|
-
/* @__PURE__ */
|
|
1528
|
+
if (O)
|
|
1529
|
+
return mt(D, null), D;
|
|
1530
|
+
r === void 0 && (r = Ir(s ? e : "<!>" + e), r = /** @type {Node} */
|
|
1531
|
+
/* @__PURE__ */ pt(r));
|
|
1518
1532
|
var i = (
|
|
1519
1533
|
/** @type {TemplateNode} */
|
|
1520
|
-
n ||
|
|
1534
|
+
n || vn ? document.importNode(r, !0) : r.cloneNode(!0)
|
|
1521
1535
|
);
|
|
1522
|
-
return
|
|
1536
|
+
return mt(i, i), i;
|
|
1523
1537
|
};
|
|
1524
1538
|
}
|
|
1525
|
-
function
|
|
1526
|
-
if (
|
|
1527
|
-
|
|
1539
|
+
function he(e, t) {
|
|
1540
|
+
if (O) {
|
|
1541
|
+
x.nodes_end = D, gt();
|
|
1528
1542
|
return;
|
|
1529
1543
|
}
|
|
1530
1544
|
e !== null && e.before(
|
|
@@ -1532,103 +1546,103 @@ function ge(e, t) {
|
|
|
1532
1546
|
t
|
|
1533
1547
|
);
|
|
1534
1548
|
}
|
|
1535
|
-
function
|
|
1549
|
+
function vi(e, t) {
|
|
1536
1550
|
var n = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1537
1551
|
n !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = n, e.nodeValue = n + "");
|
|
1538
1552
|
}
|
|
1539
|
-
function
|
|
1540
|
-
return
|
|
1553
|
+
function Nr(e, t) {
|
|
1554
|
+
return Ar(e, t);
|
|
1541
1555
|
}
|
|
1542
|
-
function
|
|
1543
|
-
|
|
1544
|
-
const n = t.target, r =
|
|
1556
|
+
function _i(e, t) {
|
|
1557
|
+
rn(), t.intro = t.intro ?? !1;
|
|
1558
|
+
const n = t.target, r = O, s = D;
|
|
1545
1559
|
try {
|
|
1546
1560
|
for (var i = (
|
|
1547
1561
|
/** @type {TemplateNode} */
|
|
1548
|
-
/* @__PURE__ */
|
|
1562
|
+
/* @__PURE__ */ pt(n)
|
|
1549
1563
|
); i && (i.nodeType !== 8 || /** @type {Comment} */
|
|
1550
|
-
i.data !==
|
|
1564
|
+
i.data !== Tt); )
|
|
1551
1565
|
i = /** @type {TemplateNode} */
|
|
1552
|
-
/* @__PURE__ */
|
|
1566
|
+
/* @__PURE__ */ Ie(i);
|
|
1553
1567
|
if (!i)
|
|
1554
|
-
throw
|
|
1555
|
-
|
|
1568
|
+
throw We;
|
|
1569
|
+
Je(!0), pe(
|
|
1556
1570
|
/** @type {Comment} */
|
|
1557
1571
|
i
|
|
1558
|
-
),
|
|
1559
|
-
const o =
|
|
1572
|
+
), gt();
|
|
1573
|
+
const o = Ar(e, { ...t, anchor: i });
|
|
1560
1574
|
if (D === null || D.nodeType !== 8 || /** @type {Comment} */
|
|
1561
|
-
D.data !==
|
|
1562
|
-
throw
|
|
1563
|
-
return
|
|
1575
|
+
D.data !== fn)
|
|
1576
|
+
throw Ot(), We;
|
|
1577
|
+
return Je(!1), /** @type {Exports} */
|
|
1564
1578
|
o;
|
|
1565
1579
|
} catch (o) {
|
|
1566
|
-
if (o ===
|
|
1567
|
-
return t.recover === !1 &&
|
|
1580
|
+
if (o === We)
|
|
1581
|
+
return t.recover === !1 && Rs(), rn(), qs(n), Je(!1), Nr(e, t);
|
|
1568
1582
|
throw o;
|
|
1569
1583
|
} finally {
|
|
1570
|
-
|
|
1584
|
+
Je(r), pe(s);
|
|
1571
1585
|
}
|
|
1572
1586
|
}
|
|
1573
|
-
const
|
|
1574
|
-
function
|
|
1575
|
-
|
|
1587
|
+
const qe = /* @__PURE__ */ new Map();
|
|
1588
|
+
function Ar(e, { target: t, anchor: n, props: r = {}, events: s, context: i, intro: o = !0 }) {
|
|
1589
|
+
rn();
|
|
1576
1590
|
var l = /* @__PURE__ */ new Set(), c = (d) => {
|
|
1577
1591
|
for (var f = 0; f < d.length; f++) {
|
|
1578
1592
|
var g = d[f];
|
|
1579
1593
|
if (!l.has(g)) {
|
|
1580
1594
|
l.add(g);
|
|
1581
|
-
var
|
|
1582
|
-
t.addEventListener(g,
|
|
1583
|
-
var
|
|
1584
|
-
|
|
1595
|
+
var v = di(g);
|
|
1596
|
+
t.addEventListener(g, _t, { passive: v });
|
|
1597
|
+
var b = qe.get(g);
|
|
1598
|
+
b === void 0 ? (document.addEventListener(g, _t, { passive: v }), qe.set(g, 1)) : qe.set(g, b + 1);
|
|
1585
1599
|
}
|
|
1586
1600
|
}
|
|
1587
1601
|
};
|
|
1588
|
-
c(
|
|
1589
|
-
var a = void 0, u =
|
|
1590
|
-
var d = n ?? t.appendChild(
|
|
1591
|
-
return
|
|
1602
|
+
c(hs(mi)), Xn.add(c);
|
|
1603
|
+
var a = void 0, u = ri(() => {
|
|
1604
|
+
var d = n ?? t.appendChild(Ut());
|
|
1605
|
+
return Lt(() => {
|
|
1592
1606
|
if (i) {
|
|
1593
|
-
|
|
1607
|
+
Mt({});
|
|
1594
1608
|
var f = (
|
|
1595
1609
|
/** @type {ComponentContext} */
|
|
1596
1610
|
B
|
|
1597
1611
|
);
|
|
1598
1612
|
f.c = i;
|
|
1599
1613
|
}
|
|
1600
|
-
s && (r.$$events = s),
|
|
1614
|
+
s && (r.$$events = s), O && mt(
|
|
1601
1615
|
/** @type {TemplateNode} */
|
|
1602
1616
|
d,
|
|
1603
1617
|
null
|
|
1604
|
-
), a = e(d, r) || {},
|
|
1618
|
+
), a = e(d, r) || {}, O && (x.nodes_end = D), i && jt();
|
|
1605
1619
|
}), () => {
|
|
1606
1620
|
for (var f of l) {
|
|
1607
|
-
t.removeEventListener(f,
|
|
1621
|
+
t.removeEventListener(f, _t);
|
|
1608
1622
|
var g = (
|
|
1609
1623
|
/** @type {number} */
|
|
1610
|
-
|
|
1624
|
+
qe.get(f)
|
|
1611
1625
|
);
|
|
1612
|
-
--g === 0 ? (document.removeEventListener(f,
|
|
1626
|
+
--g === 0 ? (document.removeEventListener(f, _t), qe.delete(f)) : qe.set(f, g);
|
|
1613
1627
|
}
|
|
1614
|
-
|
|
1628
|
+
Xn.delete(c), d !== n && d.parentNode?.removeChild(d);
|
|
1615
1629
|
};
|
|
1616
1630
|
});
|
|
1617
|
-
return
|
|
1631
|
+
return ln.set(a, u), a;
|
|
1618
1632
|
}
|
|
1619
|
-
let
|
|
1620
|
-
function
|
|
1621
|
-
const n =
|
|
1622
|
-
return n ? (
|
|
1633
|
+
let ln = /* @__PURE__ */ new WeakMap();
|
|
1634
|
+
function yi(e, t) {
|
|
1635
|
+
const n = ln.get(e);
|
|
1636
|
+
return n ? (ln.delete(e), n(t)) : (js(), Promise.resolve());
|
|
1623
1637
|
}
|
|
1624
|
-
function
|
|
1625
|
-
e &&
|
|
1638
|
+
function $n(e) {
|
|
1639
|
+
e && _s(e[P] ?? "a component", e.name);
|
|
1626
1640
|
}
|
|
1627
|
-
function
|
|
1641
|
+
function Rn() {
|
|
1628
1642
|
const e = B?.function;
|
|
1629
1643
|
function t(n) {
|
|
1630
|
-
const r =
|
|
1631
|
-
|
|
1644
|
+
const r = Lr()?.[P] ?? "Something";
|
|
1645
|
+
vs(r, n, e[P]);
|
|
1632
1646
|
}
|
|
1633
1647
|
return {
|
|
1634
1648
|
$destroy: () => t("$destroy()"),
|
|
@@ -1636,79 +1650,79 @@ function Ar() {
|
|
|
1636
1650
|
$set: () => t("$set(...)")
|
|
1637
1651
|
};
|
|
1638
1652
|
}
|
|
1639
|
-
function
|
|
1640
|
-
|
|
1641
|
-
var s = e, i = null, o = null, l =
|
|
1653
|
+
function ut(e, t, [n, r] = [0, 0]) {
|
|
1654
|
+
O && n === 0 && gt();
|
|
1655
|
+
var s = e, i = null, o = null, l = q, c = n > 0 ? hn : 0, a = !1;
|
|
1642
1656
|
const u = (f, g = !0) => {
|
|
1643
1657
|
a = !0, d(g, f);
|
|
1644
1658
|
}, d = (f, g) => {
|
|
1645
1659
|
if (l === (l = f)) return;
|
|
1646
|
-
let
|
|
1647
|
-
if (
|
|
1660
|
+
let v = !1;
|
|
1661
|
+
if (O && r !== -1) {
|
|
1648
1662
|
if (n === 0) {
|
|
1649
|
-
const
|
|
1663
|
+
const $ = (
|
|
1650
1664
|
/** @type {Comment} */
|
|
1651
1665
|
s.data
|
|
1652
1666
|
);
|
|
1653
|
-
|
|
1667
|
+
$ === Tt ? r = 0 : $ === un ? r = 1 / 0 : (r = parseInt($.substring(1)), r !== r && (r = l ? 1 / 0 : -1));
|
|
1654
1668
|
}
|
|
1655
|
-
const
|
|
1656
|
-
!!l ===
|
|
1669
|
+
const b = r > n;
|
|
1670
|
+
!!l === b && (s = zs(), pe(s), Je(!1), v = !0, r = -1);
|
|
1657
1671
|
}
|
|
1658
|
-
l ? (i ?
|
|
1672
|
+
l ? (i ? Vn(i) : g && (i = Lt(() => g(s))), o && on(o, () => {
|
|
1659
1673
|
o = null;
|
|
1660
|
-
})) : (o ?
|
|
1674
|
+
})) : (o ? Vn(o) : g && (o = Lt(() => g(s, [n + 1, r]))), i && on(i, () => {
|
|
1661
1675
|
i = null;
|
|
1662
|
-
})),
|
|
1676
|
+
})), v && Je(!0);
|
|
1663
1677
|
};
|
|
1664
|
-
|
|
1678
|
+
yn(() => {
|
|
1665
1679
|
a = !1, t(u), a || d(null, null);
|
|
1666
|
-
}, c),
|
|
1680
|
+
}, c), O && (s = D);
|
|
1667
1681
|
}
|
|
1668
|
-
function
|
|
1669
|
-
if (!t || t ===
|
|
1682
|
+
function bi(e, t, n) {
|
|
1683
|
+
if (!t || t === ui(String(n ?? ""))) return;
|
|
1670
1684
|
let r;
|
|
1671
1685
|
const s = e.__svelte_meta?.loc;
|
|
1672
|
-
s ? r = `near ${s.file}:${s.line}:${s.column}` :
|
|
1686
|
+
s ? r = `near ${s.file}:${s.line}:${s.column}` : ke?.[P] && (r = `in ${ke[P]}`), Ms(hi(r));
|
|
1673
1687
|
}
|
|
1674
|
-
function
|
|
1688
|
+
function Hn(e, t, n, r, s) {
|
|
1675
1689
|
var i = e, o = "", l;
|
|
1676
|
-
|
|
1690
|
+
yn(() => {
|
|
1677
1691
|
if (o === (o = t() ?? "")) {
|
|
1678
|
-
|
|
1692
|
+
O && gt();
|
|
1679
1693
|
return;
|
|
1680
1694
|
}
|
|
1681
|
-
l !== void 0 && (me(l), l = void 0), o !== "" && (l =
|
|
1682
|
-
if (
|
|
1695
|
+
l !== void 0 && (me(l), l = void 0), o !== "" && (l = Lt(() => {
|
|
1696
|
+
if (O) {
|
|
1683
1697
|
for (var c = (
|
|
1684
1698
|
/** @type {Comment} */
|
|
1685
1699
|
D.data
|
|
1686
|
-
), a =
|
|
1700
|
+
), a = gt(), u = a; a !== null && (a.nodeType !== 8 || /** @type {Comment} */
|
|
1687
1701
|
a.data !== ""); )
|
|
1688
1702
|
u = a, a = /** @type {TemplateNode} */
|
|
1689
|
-
/* @__PURE__ */
|
|
1703
|
+
/* @__PURE__ */ Ie(a);
|
|
1690
1704
|
if (a === null)
|
|
1691
|
-
throw
|
|
1692
|
-
|
|
1705
|
+
throw Ot(), We;
|
|
1706
|
+
bi(
|
|
1693
1707
|
/** @type {Element} */
|
|
1694
1708
|
a.parentNode,
|
|
1695
1709
|
c,
|
|
1696
1710
|
o
|
|
1697
|
-
),
|
|
1711
|
+
), mt(D, u), i = pe(a);
|
|
1698
1712
|
return;
|
|
1699
1713
|
}
|
|
1700
|
-
var d = o + "", f =
|
|
1701
|
-
|
|
1714
|
+
var d = o + "", f = Ir(d);
|
|
1715
|
+
mt(
|
|
1702
1716
|
/** @type {TemplateNode} */
|
|
1703
|
-
/* @__PURE__ */
|
|
1717
|
+
/* @__PURE__ */ pt(f),
|
|
1704
1718
|
/** @type {TemplateNode} */
|
|
1705
1719
|
f.lastChild
|
|
1706
1720
|
), i.before(f);
|
|
1707
1721
|
}));
|
|
1708
1722
|
});
|
|
1709
1723
|
}
|
|
1710
|
-
function
|
|
1711
|
-
|
|
1724
|
+
function Fn(e, t) {
|
|
1725
|
+
dr(() => {
|
|
1712
1726
|
var n = e.getRootNode(), r = (
|
|
1713
1727
|
/** @type {ShadowRoot} */
|
|
1714
1728
|
n.host ? (
|
|
@@ -1722,35 +1736,35 @@ function Br(e, t) {
|
|
|
1722
1736
|
);
|
|
1723
1737
|
if (!r.querySelector("#" + t.hash)) {
|
|
1724
1738
|
const s = document.createElement("style");
|
|
1725
|
-
s.id = t.hash, s.textContent = t.code, r.appendChild(s),
|
|
1739
|
+
s.id = t.hash, s.textContent = t.code, r.appendChild(s), gi(t.hash, s);
|
|
1726
1740
|
}
|
|
1727
1741
|
});
|
|
1728
1742
|
}
|
|
1729
|
-
function
|
|
1743
|
+
function wi(e, t, n) {
|
|
1730
1744
|
var r = e == null ? "" : "" + e;
|
|
1731
1745
|
return t && (r = r ? r + " " + t : t), r === "" ? null : r;
|
|
1732
1746
|
}
|
|
1733
|
-
function
|
|
1747
|
+
function Se(e, t, n, r, s, i) {
|
|
1734
1748
|
var o = e.__className;
|
|
1735
|
-
if (
|
|
1736
|
-
var l =
|
|
1737
|
-
(!
|
|
1749
|
+
if (O || o !== n || o === void 0) {
|
|
1750
|
+
var l = wi(n, r);
|
|
1751
|
+
(!O || l !== e.getAttribute("class")) && (l == null ? e.removeAttribute("class") : e.className = l), e.__className = n;
|
|
1738
1752
|
}
|
|
1739
1753
|
return i;
|
|
1740
1754
|
}
|
|
1741
|
-
function
|
|
1742
|
-
return e === t || e?.[
|
|
1755
|
+
function Yn(e, t) {
|
|
1756
|
+
return e === t || e?.[Re] === t;
|
|
1743
1757
|
}
|
|
1744
|
-
function
|
|
1745
|
-
return
|
|
1758
|
+
function Mr(e = {}, t, n, r) {
|
|
1759
|
+
return _n(() => {
|
|
1746
1760
|
var s, i;
|
|
1747
|
-
return
|
|
1748
|
-
s = i, i = [],
|
|
1749
|
-
e !== n(...i) && (t(e, ...i), s &&
|
|
1761
|
+
return Ur(() => {
|
|
1762
|
+
s = i, i = [], Te(() => {
|
|
1763
|
+
e !== n(...i) && (t(e, ...i), s && Yn(n(...s), e) && t(null, ...s));
|
|
1750
1764
|
});
|
|
1751
1765
|
}), () => {
|
|
1752
|
-
|
|
1753
|
-
i &&
|
|
1766
|
+
dr(() => {
|
|
1767
|
+
i && Yn(n(...i), e) && t(null, ...i);
|
|
1754
1768
|
});
|
|
1755
1769
|
};
|
|
1756
1770
|
}), e;
|
|
@@ -1765,7 +1779,7 @@ function Nr(e = {}, t, n, r) {
|
|
|
1765
1779
|
get: () => {
|
|
1766
1780
|
if (n !== void 0)
|
|
1767
1781
|
return n;
|
|
1768
|
-
|
|
1782
|
+
Cs(t);
|
|
1769
1783
|
},
|
|
1770
1784
|
set: (r) => {
|
|
1771
1785
|
n = r;
|
|
@@ -1773,86 +1787,108 @@ function Nr(e = {}, t, n, r) {
|
|
|
1773
1787
|
});
|
|
1774
1788
|
}
|
|
1775
1789
|
};
|
|
1776
|
-
var
|
|
1790
|
+
var no = e;
|
|
1777
1791
|
e("$state"), e("$effect"), e("$derived"), e("$inspect"), e("$props"), e("$bindable");
|
|
1778
1792
|
}
|
|
1779
|
-
function
|
|
1780
|
-
B === null &&
|
|
1781
|
-
const t =
|
|
1793
|
+
function Ei(e) {
|
|
1794
|
+
B === null && Dr("onMount"), Ke && B.l !== null ? Ri(B).m.push(e) : Ee(() => {
|
|
1795
|
+
const t = Te(e);
|
|
1782
1796
|
if (typeof t == "function") return (
|
|
1783
1797
|
/** @type {() => void} */
|
|
1784
1798
|
t
|
|
1785
1799
|
);
|
|
1786
1800
|
});
|
|
1787
1801
|
}
|
|
1788
|
-
function
|
|
1789
|
-
B === null &&
|
|
1802
|
+
function $i(e) {
|
|
1803
|
+
B === null && Dr("onDestroy"), Ei(() => () => Te(e));
|
|
1790
1804
|
}
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1805
|
+
function Ri(e) {
|
|
1806
|
+
var t = (
|
|
1807
|
+
/** @type {ComponentContextLegacy} */
|
|
1808
|
+
e.l
|
|
1809
|
+
);
|
|
1810
|
+
return t.u ?? (t.u = { a: [], b: [], m: [] });
|
|
1811
|
+
}
|
|
1812
|
+
let yt = !1;
|
|
1813
|
+
function Fi(e) {
|
|
1814
|
+
var t = yt;
|
|
1794
1815
|
try {
|
|
1795
|
-
return
|
|
1816
|
+
return yt = !1, [e(), yt];
|
|
1796
1817
|
} finally {
|
|
1797
|
-
|
|
1818
|
+
yt = t;
|
|
1798
1819
|
}
|
|
1799
1820
|
}
|
|
1800
|
-
function
|
|
1821
|
+
function Zn(e) {
|
|
1801
1822
|
return e.ctx?.d ?? !1;
|
|
1802
1823
|
}
|
|
1803
|
-
function
|
|
1804
|
-
var s = (n &
|
|
1805
|
-
o ? [a, c] =
|
|
1824
|
+
function U(e, t, n, r) {
|
|
1825
|
+
var s = (n & rs) !== 0, i = !Ke || (n & ss) !== 0, o = (n & os) !== 0, l = (n & ls) !== 0, c = !1, a;
|
|
1826
|
+
o ? [a, c] = Fi(() => (
|
|
1806
1827
|
/** @type {V} */
|
|
1807
1828
|
e[t]
|
|
1808
1829
|
)) : a = /** @type {V} */
|
|
1809
1830
|
e[t];
|
|
1810
|
-
var u =
|
|
1831
|
+
var u = Re in e || lr in e, d = o && (Pe(e, t)?.set ?? (u && t in e && ((F) => e[t] = F))) || void 0, f = (
|
|
1811
1832
|
/** @type {V} */
|
|
1812
1833
|
r
|
|
1813
|
-
), g = !0,
|
|
1834
|
+
), g = !0, v = !1, b = () => (v = !0, g && (g = !1, l ? f = Te(
|
|
1814
1835
|
/** @type {() => V} */
|
|
1815
1836
|
r
|
|
1816
1837
|
) : f = /** @type {V} */
|
|
1817
1838
|
r), f);
|
|
1818
|
-
a === void 0 && r !== void 0 && (d && i &&
|
|
1819
|
-
var
|
|
1820
|
-
if (
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1839
|
+
a === void 0 && r !== void 0 && (d && i && Fs(t), a = b(), d && d(a));
|
|
1840
|
+
var $;
|
|
1841
|
+
if (i)
|
|
1842
|
+
$ = () => {
|
|
1843
|
+
var F = (
|
|
1844
|
+
/** @type {V} */
|
|
1845
|
+
e[t]
|
|
1846
|
+
);
|
|
1847
|
+
return F === void 0 ? b() : (g = !0, v = !1, F);
|
|
1848
|
+
};
|
|
1849
|
+
else {
|
|
1850
|
+
var I = (s ? ht : Os)(
|
|
1851
|
+
() => (
|
|
1852
|
+
/** @type {V} */
|
|
1853
|
+
e[t]
|
|
1854
|
+
)
|
|
1824
1855
|
);
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1856
|
+
I.f |= us, $ = () => {
|
|
1857
|
+
var F = p(I);
|
|
1858
|
+
return F !== void 0 && (f = /** @type {V} */
|
|
1859
|
+
void 0), F === void 0 ? f : F;
|
|
1860
|
+
};
|
|
1861
|
+
}
|
|
1862
|
+
if ((n & is) === 0)
|
|
1863
|
+
return $;
|
|
1828
1864
|
if (d) {
|
|
1829
|
-
var
|
|
1830
|
-
return function(
|
|
1831
|
-
return arguments.length > 0 ? ((!M ||
|
|
1865
|
+
var k = e.$$legacy;
|
|
1866
|
+
return function(F, M) {
|
|
1867
|
+
return arguments.length > 0 ? ((!i || !M || k || c) && d(M ? $() : F), F) : $();
|
|
1832
1868
|
};
|
|
1833
1869
|
}
|
|
1834
|
-
var
|
|
1835
|
-
var
|
|
1836
|
-
return
|
|
1870
|
+
var A = !1, N = /* @__PURE__ */ gr(a), S = /* @__PURE__ */ ht(() => {
|
|
1871
|
+
var F = $(), M = p(N);
|
|
1872
|
+
return A ? (A = !1, M) : N.v = F;
|
|
1837
1873
|
});
|
|
1838
|
-
return o && p(
|
|
1874
|
+
return o && p(S), s || (S.equals = pn), function(F, M) {
|
|
1839
1875
|
if (arguments.length > 0) {
|
|
1840
|
-
const W = M ? p(
|
|
1841
|
-
if (!
|
|
1842
|
-
if (
|
|
1843
|
-
return
|
|
1844
|
-
|
|
1876
|
+
const W = M ? p(S) : i && o ? xe(F) : F;
|
|
1877
|
+
if (!S.equals(W)) {
|
|
1878
|
+
if (A = !0, y(N, W), v && f !== void 0 && (f = W), Zn(S))
|
|
1879
|
+
return F;
|
|
1880
|
+
Te(() => p(S));
|
|
1845
1881
|
}
|
|
1846
|
-
return
|
|
1882
|
+
return F;
|
|
1847
1883
|
}
|
|
1848
|
-
return
|
|
1884
|
+
return Zn(S) ? S.v : p(S);
|
|
1849
1885
|
};
|
|
1850
1886
|
}
|
|
1851
|
-
function
|
|
1852
|
-
return new
|
|
1887
|
+
function Ci(e) {
|
|
1888
|
+
return new Ui(e);
|
|
1853
1889
|
}
|
|
1854
|
-
var
|
|
1855
|
-
class
|
|
1890
|
+
var de, te;
|
|
1891
|
+
class Ui {
|
|
1856
1892
|
/**
|
|
1857
1893
|
* @param {ComponentConstructorOptions & {
|
|
1858
1894
|
* component: any;
|
|
@@ -1860,11 +1896,11 @@ class bi {
|
|
|
1860
1896
|
*/
|
|
1861
1897
|
constructor(t) {
|
|
1862
1898
|
/** @type {any} */
|
|
1863
|
-
Ht(this,
|
|
1899
|
+
Ht(this, de);
|
|
1864
1900
|
/** @type {Record<string, any>} */
|
|
1865
|
-
Ht(this,
|
|
1901
|
+
Ht(this, te);
|
|
1866
1902
|
var n = /* @__PURE__ */ new Map(), r = (i, o) => {
|
|
1867
|
-
var l = /* @__PURE__ */
|
|
1903
|
+
var l = /* @__PURE__ */ gr(o);
|
|
1868
1904
|
return n.set(i, l), l;
|
|
1869
1905
|
};
|
|
1870
1906
|
const s = new Proxy(
|
|
@@ -1874,42 +1910,42 @@ class bi {
|
|
|
1874
1910
|
return p(n.get(o) ?? r(o, Reflect.get(i, o)));
|
|
1875
1911
|
},
|
|
1876
1912
|
has(i, o) {
|
|
1877
|
-
return o ===
|
|
1913
|
+
return o === lr ? !0 : (p(n.get(o) ?? r(o, Reflect.get(i, o))), Reflect.has(i, o));
|
|
1878
1914
|
},
|
|
1879
1915
|
set(i, o, l) {
|
|
1880
|
-
return
|
|
1916
|
+
return y(n.get(o) ?? r(o, l), l), Reflect.set(i, o, l);
|
|
1881
1917
|
}
|
|
1882
1918
|
}
|
|
1883
1919
|
);
|
|
1884
|
-
|
|
1920
|
+
Yt(this, te, (t.hydrate ? _i : Nr)(t.component, {
|
|
1885
1921
|
target: t.target,
|
|
1886
1922
|
anchor: t.anchor,
|
|
1887
1923
|
props: s,
|
|
1888
1924
|
context: t.context,
|
|
1889
1925
|
intro: t.intro ?? !1,
|
|
1890
1926
|
recover: t.recover
|
|
1891
|
-
})), (!t?.props?.$$host || t.sync === !1) && E(),
|
|
1892
|
-
for (const i of Object.keys(
|
|
1927
|
+
})), (!t?.props?.$$host || t.sync === !1) && E(), Yt(this, de, s.$$events);
|
|
1928
|
+
for (const i of Object.keys(V(this, te)))
|
|
1893
1929
|
i === "$set" || i === "$destroy" || i === "$on" || ce(this, i, {
|
|
1894
1930
|
get() {
|
|
1895
|
-
return
|
|
1931
|
+
return V(this, te)[i];
|
|
1896
1932
|
},
|
|
1897
1933
|
/** @param {any} value */
|
|
1898
1934
|
set(o) {
|
|
1899
|
-
|
|
1935
|
+
V(this, te)[i] = o;
|
|
1900
1936
|
},
|
|
1901
1937
|
enumerable: !0
|
|
1902
1938
|
});
|
|
1903
|
-
|
|
1939
|
+
V(this, te).$set = /** @param {Record<string, any>} next */
|
|
1904
1940
|
(i) => {
|
|
1905
1941
|
Object.assign(s, i);
|
|
1906
|
-
},
|
|
1907
|
-
|
|
1942
|
+
}, V(this, te).$destroy = () => {
|
|
1943
|
+
yi(V(this, te));
|
|
1908
1944
|
};
|
|
1909
1945
|
}
|
|
1910
1946
|
/** @param {Record<string, any>} props */
|
|
1911
1947
|
$set(t) {
|
|
1912
|
-
|
|
1948
|
+
V(this, te).$set(t);
|
|
1913
1949
|
}
|
|
1914
1950
|
/**
|
|
1915
1951
|
* @param {string} event
|
|
@@ -1917,22 +1953,22 @@ class bi {
|
|
|
1917
1953
|
* @returns {any}
|
|
1918
1954
|
*/
|
|
1919
1955
|
$on(t, n) {
|
|
1920
|
-
|
|
1956
|
+
V(this, de)[t] = V(this, de)[t] || [];
|
|
1921
1957
|
const r = (...s) => n.call(this, ...s);
|
|
1922
|
-
return
|
|
1923
|
-
|
|
1958
|
+
return V(this, de)[t].push(r), () => {
|
|
1959
|
+
V(this, de)[t] = V(this, de)[t].filter(
|
|
1924
1960
|
/** @param {any} fn */
|
|
1925
1961
|
(s) => s !== r
|
|
1926
1962
|
);
|
|
1927
1963
|
};
|
|
1928
1964
|
}
|
|
1929
1965
|
$destroy() {
|
|
1930
|
-
|
|
1966
|
+
V(this, te).$destroy();
|
|
1931
1967
|
}
|
|
1932
1968
|
}
|
|
1933
|
-
|
|
1934
|
-
let
|
|
1935
|
-
typeof HTMLElement == "function" && (
|
|
1969
|
+
de = new WeakMap(), te = new WeakMap();
|
|
1970
|
+
let jr;
|
|
1971
|
+
typeof HTMLElement == "function" && (jr = class extends HTMLElement {
|
|
1936
1972
|
/**
|
|
1937
1973
|
* @param {*} $$componentCtor
|
|
1938
1974
|
* @param {*} $$slots
|
|
@@ -1941,25 +1977,25 @@ typeof HTMLElement == "function" && (Mr = class extends HTMLElement {
|
|
|
1941
1977
|
constructor(t, n, r) {
|
|
1942
1978
|
super();
|
|
1943
1979
|
/** The Svelte component constructor */
|
|
1944
|
-
|
|
1980
|
+
L(this, "$$ctor");
|
|
1945
1981
|
/** Slots */
|
|
1946
|
-
|
|
1982
|
+
L(this, "$$s");
|
|
1947
1983
|
/** @type {any} The Svelte component instance */
|
|
1948
|
-
|
|
1984
|
+
L(this, "$$c");
|
|
1949
1985
|
/** Whether or not the custom element is connected */
|
|
1950
|
-
|
|
1986
|
+
L(this, "$$cn", !1);
|
|
1951
1987
|
/** @type {Record<string, any>} Component props data */
|
|
1952
|
-
|
|
1988
|
+
L(this, "$$d", {});
|
|
1953
1989
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
1954
|
-
|
|
1990
|
+
L(this, "$$r", !1);
|
|
1955
1991
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
1956
|
-
|
|
1992
|
+
L(this, "$$p_d", {});
|
|
1957
1993
|
/** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
|
|
1958
|
-
|
|
1994
|
+
L(this, "$$l", {});
|
|
1959
1995
|
/** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
|
|
1960
|
-
|
|
1996
|
+
L(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
1961
1997
|
/** @type {any} The managed render effect for reflecting attributes */
|
|
1962
|
-
|
|
1998
|
+
L(this, "$$me");
|
|
1963
1999
|
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
1964
2000
|
}
|
|
1965
2001
|
/**
|
|
@@ -1990,22 +2026,22 @@ typeof HTMLElement == "function" && (Mr = class extends HTMLElement {
|
|
|
1990
2026
|
let n = function(i) {
|
|
1991
2027
|
return (o) => {
|
|
1992
2028
|
const l = document.createElement("slot");
|
|
1993
|
-
i !== "default" && (l.name = i),
|
|
2029
|
+
i !== "default" && (l.name = i), he(o, l);
|
|
1994
2030
|
};
|
|
1995
2031
|
};
|
|
1996
2032
|
var t = n;
|
|
1997
2033
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
1998
2034
|
return;
|
|
1999
|
-
const r = {}, s =
|
|
2035
|
+
const r = {}, s = Qi(this);
|
|
2000
2036
|
for (const i of this.$$s)
|
|
2001
2037
|
i in s && (i === "default" && !this.$$d.children ? (this.$$d.children = n(i), r.default = !0) : r[i] = n(i));
|
|
2002
2038
|
for (const i of this.attributes) {
|
|
2003
2039
|
const o = this.$$g_p(i.name);
|
|
2004
|
-
o in this.$$d || (this.$$d[o] =
|
|
2040
|
+
o in this.$$d || (this.$$d[o] = $t(o, i.value, this.$$p_d, "toProp"));
|
|
2005
2041
|
}
|
|
2006
2042
|
for (const i in this.$$p_d)
|
|
2007
2043
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
2008
|
-
this.$$c =
|
|
2044
|
+
this.$$c = Ci({
|
|
2009
2045
|
component: this.$$ctor,
|
|
2010
2046
|
target: this.shadowRoot || this,
|
|
2011
2047
|
props: {
|
|
@@ -2013,13 +2049,13 @@ typeof HTMLElement == "function" && (Mr = class extends HTMLElement {
|
|
|
2013
2049
|
$$slots: r,
|
|
2014
2050
|
$$host: this
|
|
2015
2051
|
}
|
|
2016
|
-
}), this.$$me =
|
|
2017
|
-
|
|
2052
|
+
}), this.$$me = ni(() => {
|
|
2053
|
+
Ur(() => {
|
|
2018
2054
|
this.$$r = !0;
|
|
2019
|
-
for (const i of
|
|
2055
|
+
for (const i of Ct(this.$$c)) {
|
|
2020
2056
|
if (!this.$$p_d[i]?.reflect) continue;
|
|
2021
2057
|
this.$$d[i] = this.$$c[i];
|
|
2022
|
-
const o =
|
|
2058
|
+
const o = $t(
|
|
2023
2059
|
i,
|
|
2024
2060
|
this.$$d[i],
|
|
2025
2061
|
this.$$p_d,
|
|
@@ -2046,7 +2082,7 @@ typeof HTMLElement == "function" && (Mr = class extends HTMLElement {
|
|
|
2046
2082
|
* @param {string} newValue
|
|
2047
2083
|
*/
|
|
2048
2084
|
attributeChangedCallback(t, n, r) {
|
|
2049
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
2085
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = $t(t, r, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
|
|
2050
2086
|
}
|
|
2051
2087
|
disconnectedCallback() {
|
|
2052
2088
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2057,12 +2093,12 @@ typeof HTMLElement == "function" && (Mr = class extends HTMLElement {
|
|
|
2057
2093
|
* @param {string} attribute_name
|
|
2058
2094
|
*/
|
|
2059
2095
|
$$g_p(t) {
|
|
2060
|
-
return
|
|
2096
|
+
return Ct(this.$$p_d).find(
|
|
2061
2097
|
(n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
|
|
2062
2098
|
) || t;
|
|
2063
2099
|
}
|
|
2064
2100
|
});
|
|
2065
|
-
function
|
|
2101
|
+
function $t(e, t, n, r) {
|
|
2066
2102
|
const s = n[e]?.type;
|
|
2067
2103
|
if (t = s === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
2068
2104
|
return t;
|
|
@@ -2092,7 +2128,7 @@ function wt(e, t, n, r) {
|
|
|
2092
2128
|
return t;
|
|
2093
2129
|
}
|
|
2094
2130
|
}
|
|
2095
|
-
function
|
|
2131
|
+
function Qi(e) {
|
|
2096
2132
|
const t = {};
|
|
2097
2133
|
return e.childNodes.forEach((n) => {
|
|
2098
2134
|
t[
|
|
@@ -2101,27 +2137,27 @@ function wi(e) {
|
|
|
2101
2137
|
] = !0;
|
|
2102
2138
|
}), t;
|
|
2103
2139
|
}
|
|
2104
|
-
function
|
|
2105
|
-
let o = class extends
|
|
2140
|
+
function Cn(e, t, n, r, s, i) {
|
|
2141
|
+
let o = class extends jr {
|
|
2106
2142
|
constructor() {
|
|
2107
2143
|
super(e, n, s), this.$$p_d = t;
|
|
2108
2144
|
}
|
|
2109
2145
|
static get observedAttributes() {
|
|
2110
|
-
return
|
|
2146
|
+
return Ct(t).map(
|
|
2111
2147
|
(l) => (t[l].attribute || l).toLowerCase()
|
|
2112
2148
|
);
|
|
2113
2149
|
}
|
|
2114
2150
|
};
|
|
2115
|
-
return
|
|
2151
|
+
return Ct(t).forEach((l) => {
|
|
2116
2152
|
ce(o.prototype, l, {
|
|
2117
2153
|
get() {
|
|
2118
2154
|
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
2119
2155
|
},
|
|
2120
2156
|
set(c) {
|
|
2121
|
-
c =
|
|
2157
|
+
c = $t(l, c, t), this.$$d[l] = c;
|
|
2122
2158
|
var a = this.$$c;
|
|
2123
2159
|
if (a) {
|
|
2124
|
-
var u =
|
|
2160
|
+
var u = Pe(a, l)?.get;
|
|
2125
2161
|
u ? a[l] = c : a.$set({ [l]: c });
|
|
2126
2162
|
}
|
|
2127
2163
|
}
|
|
@@ -2135,41 +2171,41 @@ function jr(e, t, n, r, s, i) {
|
|
|
2135
2171
|
}), e.element = /** @type {any} */
|
|
2136
2172
|
o, o;
|
|
2137
2173
|
}
|
|
2138
|
-
function
|
|
2139
|
-
return
|
|
2174
|
+
function Kn(e, ...t) {
|
|
2175
|
+
return Te(() => {
|
|
2140
2176
|
try {
|
|
2141
2177
|
let n = !1;
|
|
2142
2178
|
const r = [];
|
|
2143
2179
|
for (const s of t)
|
|
2144
|
-
s && typeof s == "object" &&
|
|
2145
|
-
n && (
|
|
2180
|
+
s && typeof s == "object" && Re in s ? (r.push(ks(s, !0)), n = !0) : r.push(s);
|
|
2181
|
+
n && (As(e), console.log("%c[snapshot]", "color: grey", ...r));
|
|
2146
2182
|
} catch {
|
|
2147
2183
|
}
|
|
2148
2184
|
}), t;
|
|
2149
2185
|
}
|
|
2150
|
-
const
|
|
2186
|
+
const er = "-pie-editor--", zr = (...e) => e.reduce((t, n) => {
|
|
2151
2187
|
for (const r in n)
|
|
2152
2188
|
n.hasOwnProperty(r) && n[r] !== null && n[r] !== void 0 && (t[r] = n[r]);
|
|
2153
2189
|
return t;
|
|
2154
|
-
}, {}),
|
|
2155
|
-
var z = /* @__PURE__ */ ((e) => (e.player = "player.js", e.clientPlayer = "client-player.js", e.editor = "editor.js", e))(z || {}),
|
|
2156
|
-
const
|
|
2190
|
+
}, {}), Vr = {}, Bi = "https://builder.pie-api.com", xi = Vr.PUBLIC_BUILDER_ORIGIN_URL || Bi, Si = Vr.PUBLIC_BUILDER_BUNDLE_URL || `${xi}/bundles/`;
|
|
2191
|
+
var z = /* @__PURE__ */ ((e) => (e.player = "player.js", e.clientPlayer = "client-player.js", e.editor = "editor.js", e))(z || {}), an = /* @__PURE__ */ ((e) => (e.loading = "loading", e.loaded = "loaded", e))(an || {});
|
|
2192
|
+
const Pi = {
|
|
2157
2193
|
invokeControllerForModel: !0,
|
|
2158
2194
|
env: { mode: "gather", role: "student", partialScoring: !1 },
|
|
2159
2195
|
eventListeners: {}
|
|
2160
2196
|
};
|
|
2161
|
-
function
|
|
2197
|
+
function Li(e) {
|
|
2162
2198
|
return e && typeof e.pie == "object";
|
|
2163
2199
|
}
|
|
2164
|
-
function
|
|
2200
|
+
function tr(e) {
|
|
2165
2201
|
return typeof e == "function" && "prototype" in e && e.prototype instanceof HTMLElement;
|
|
2166
2202
|
}
|
|
2167
|
-
function
|
|
2203
|
+
function Ti(e) {
|
|
2168
2204
|
return e && typeof e.PIE_REGISTRY == "object";
|
|
2169
2205
|
}
|
|
2170
|
-
const
|
|
2206
|
+
const Un = () => {
|
|
2171
2207
|
let e;
|
|
2172
|
-
return
|
|
2208
|
+
return Ti(window) ? e = window.PIE_REGISTRY : (e = {}, window.PIE_REGISTRY = e), e;
|
|
2173
2209
|
}, qr = (e) => {
|
|
2174
2210
|
if (!e)
|
|
2175
2211
|
throw new Error("Parameter is required: input");
|
|
@@ -2181,7 +2217,7 @@ const mn = () => {
|
|
|
2181
2217
|
path: t[2] || "",
|
|
2182
2218
|
version: t[3] || ""
|
|
2183
2219
|
};
|
|
2184
|
-
},
|
|
2220
|
+
}, ki = (e) => e.split("+").map((t) => qr(t).name).join("+"), Jr = (e, t, n) => {
|
|
2185
2221
|
if (!e)
|
|
2186
2222
|
throw new Error("session data is required");
|
|
2187
2223
|
const r = e.find((i) => i.id === t);
|
|
@@ -2190,7 +2226,7 @@ const mn = () => {
|
|
|
2190
2226
|
const s = n ? { id: t, element: n } : { id: t };
|
|
2191
2227
|
return e.push(s), s;
|
|
2192
2228
|
};
|
|
2193
|
-
function
|
|
2229
|
+
function Ae(e, t) {
|
|
2194
2230
|
const n = `[${e}]`;
|
|
2195
2231
|
return {
|
|
2196
2232
|
// Only debug method checks debugEnabledFn - it's checked dynamically on every call
|
|
@@ -2203,18 +2239,18 @@ function Me(e, t) {
|
|
|
2203
2239
|
error: (r, ...s) => console.error(n, r, ...s)
|
|
2204
2240
|
};
|
|
2205
2241
|
}
|
|
2206
|
-
function
|
|
2242
|
+
function Ze() {
|
|
2207
2243
|
return typeof window < "u" && window.PIE_DEBUG === !0;
|
|
2208
2244
|
}
|
|
2209
|
-
const
|
|
2210
|
-
const t =
|
|
2211
|
-
|
|
2245
|
+
const se = Ae("pie-scoring", () => Ze()), Qn = (e) => {
|
|
2246
|
+
const t = Un();
|
|
2247
|
+
se.debug(`[findPieController] Looking for controller for: ${e}`), se.debug("[findPieController] Registry has entries for:", Object.keys(t));
|
|
2212
2248
|
const n = t[e];
|
|
2213
2249
|
if (!n) {
|
|
2214
|
-
|
|
2250
|
+
se.error(`[findPieController] ❌ No registry entry found for element: ${e}`), se.error("[findPieController] Available element names:", Object.keys(t)), se.error("[findPieController] Full registry:", t);
|
|
2215
2251
|
return;
|
|
2216
2252
|
}
|
|
2217
|
-
|
|
2253
|
+
se.debug(`[findPieController] Found registry entry for ${e}:`, {
|
|
2218
2254
|
package: n.package,
|
|
2219
2255
|
tagName: n.tagName,
|
|
2220
2256
|
hasController: !!n.controller,
|
|
@@ -2223,33 +2259,33 @@ const ne = Me("pie-scoring", () => Xe()), _n = (e) => {
|
|
|
2223
2259
|
});
|
|
2224
2260
|
const r = n.controller;
|
|
2225
2261
|
if (r)
|
|
2226
|
-
|
|
2262
|
+
se.debug(`[findPieController] ✅ Controller found for ${e} with functions:`, Object.keys(r));
|
|
2227
2263
|
else {
|
|
2228
2264
|
if (n.bundleType === z.clientPlayer)
|
|
2229
|
-
throw
|
|
2265
|
+
throw se.error(
|
|
2230
2266
|
`[findPieController] ❌ CRITICAL: Registry entry exists for ${e} but controller is missing!`
|
|
2231
|
-
),
|
|
2267
|
+
), se.error(`[findPieController] Bundle type: ${n.bundleType} (controllers required)`), se.error("[findPieController] Entry:", n), new Error(
|
|
2232
2268
|
`No controller found for ${e}. client-player.js bundles MUST include controllers. Check bundle loading and registration.`
|
|
2233
2269
|
);
|
|
2234
|
-
|
|
2270
|
+
se.debug(
|
|
2235
2271
|
`[findPieController] ℹ️ No controller for ${e} - using server-processed models (player.js bundle)`
|
|
2236
2272
|
);
|
|
2237
2273
|
}
|
|
2238
2274
|
return r;
|
|
2239
|
-
},
|
|
2240
|
-
|
|
2275
|
+
}, H = Ae("pie-updates", () => Ze()), Di = async (e, t, n, r, s, i) => {
|
|
2276
|
+
H.debug(`${i} Using controller, env:`, s), H.debug(`${i} Model before filter:`, {
|
|
2241
2277
|
id: t.id,
|
|
2242
2278
|
element: t.element,
|
|
2243
2279
|
hasCorrectResponse: "correctResponse" in t
|
|
2244
2280
|
});
|
|
2245
|
-
const o = (l, c, a) => (
|
|
2281
|
+
const o = (l, c, a) => (H.debug(`${i} updateSession called for ${l} with:`, a), Object.assign(n, a), Promise.resolve());
|
|
2246
2282
|
try {
|
|
2247
2283
|
const l = await r.model(t, n, s, o), c = {
|
|
2248
2284
|
id: t.id,
|
|
2249
2285
|
element: t.element,
|
|
2250
2286
|
...l
|
|
2251
2287
|
};
|
|
2252
|
-
|
|
2288
|
+
H.debug(`${i} ✅ Controller filtered model:`, {
|
|
2253
2289
|
id: c.id,
|
|
2254
2290
|
element: c.element,
|
|
2255
2291
|
hasCorrectResponse: "correctResponse" in c,
|
|
@@ -2257,11 +2293,11 @@ const ne = Me("pie-scoring", () => Xe()), _n = (e) => {
|
|
|
2257
2293
|
role: s.role
|
|
2258
2294
|
}), e.model = c;
|
|
2259
2295
|
} catch (l) {
|
|
2260
|
-
throw
|
|
2296
|
+
throw H.error(`${i} ❌ Controller error:`, l), l;
|
|
2261
2297
|
}
|
|
2262
|
-
},
|
|
2263
|
-
const { config: n, session: r, env: s, eventListeners: i, invokeControllerForModel: o } =
|
|
2264
|
-
|
|
2298
|
+
}, cn = (e, t) => {
|
|
2299
|
+
const { config: n, session: r, env: s, eventListeners: i, invokeControllerForModel: o } = zr(
|
|
2300
|
+
Pi,
|
|
2265
2301
|
t
|
|
2266
2302
|
);
|
|
2267
2303
|
if (!s)
|
|
@@ -2272,25 +2308,25 @@ const ne = Me("pie-scoring", () => Xe()), _n = (e) => {
|
|
|
2272
2308
|
throw new Error("config is required");
|
|
2273
2309
|
const l = document.querySelectorAll(e);
|
|
2274
2310
|
if (!l || l.length === 0) {
|
|
2275
|
-
|
|
2311
|
+
H.debug(`no elements found for ${e}`);
|
|
2276
2312
|
return;
|
|
2277
2313
|
}
|
|
2278
2314
|
l.forEach((c) => {
|
|
2279
2315
|
const a = c;
|
|
2280
2316
|
let u = t?.config?.models?.find((f) => f.id === c.id);
|
|
2281
2317
|
if (!u)
|
|
2282
|
-
throw
|
|
2283
|
-
|
|
2284
|
-
const d =
|
|
2318
|
+
throw H.error("[updatePieElement] Model not found for", e, t), new Error(`model not found for ${e}`);
|
|
2319
|
+
H.debug(`[updatePieElement] Updating ${e}#${c.id}, env:`, s);
|
|
2320
|
+
const d = Jr(r, u.id, u.element);
|
|
2285
2321
|
if (a.session = d, i && Object.entries(i).forEach(([f, g]) => {
|
|
2286
2322
|
a.addEventListener(f, g);
|
|
2287
2323
|
}), s && o) {
|
|
2288
|
-
const f =
|
|
2289
|
-
f ? (
|
|
2324
|
+
const f = Qn(e);
|
|
2325
|
+
f ? (H.debug(`[updatePieElement] Invoking controller for ${e}#${c.id}`, {
|
|
2290
2326
|
mode: s.mode,
|
|
2291
2327
|
role: s.role,
|
|
2292
2328
|
hasCorrectResponse: "correctResponse" in u
|
|
2293
|
-
}),
|
|
2329
|
+
}), Di(
|
|
2294
2330
|
a,
|
|
2295
2331
|
u,
|
|
2296
2332
|
d,
|
|
@@ -2298,36 +2334,36 @@ const ne = Me("pie-scoring", () => Xe()), _n = (e) => {
|
|
|
2298
2334
|
s,
|
|
2299
2335
|
`[updatePieElement(${e}#${c.id})]`
|
|
2300
2336
|
).catch((g) => {
|
|
2301
|
-
|
|
2302
|
-
})) : (
|
|
2337
|
+
H.error(`[updatePieElement] Controller failed for ${e}#${c.id}:`, g), a.model = u;
|
|
2338
|
+
})) : (H.debug(`[updatePieElement] ℹ️ No controller for ${e}, using server-processed model`), a.model = u);
|
|
2303
2339
|
} else
|
|
2304
|
-
|
|
2340
|
+
H.debug(
|
|
2305
2341
|
`[updatePieElement] Direct model assignment for ${e}#${c.id} (no controller invocation requested)`
|
|
2306
2342
|
), a.model = u;
|
|
2307
2343
|
});
|
|
2308
|
-
},
|
|
2309
|
-
|
|
2310
|
-
|
|
2344
|
+
}, bt = (e, t, n) => {
|
|
2345
|
+
H.debug("[updatePieElements] Updating all elements with env:", n), Object.entries(e.elements).forEach(([r, s]) => {
|
|
2346
|
+
cn(r, { config: e, session: t, env: n });
|
|
2311
2347
|
});
|
|
2312
|
-
}, C =
|
|
2313
|
-
buildServiceBase:
|
|
2348
|
+
}, C = Ae("pie-initialization", () => Ze()), Oi = {
|
|
2349
|
+
buildServiceBase: Si,
|
|
2314
2350
|
bundleType: z.player,
|
|
2315
2351
|
// Default to player.js (no controllers, server-processed models)
|
|
2316
2352
|
env: { mode: "gather", role: "student" }
|
|
2317
|
-
},
|
|
2353
|
+
}, Kt = (e, t) => {
|
|
2318
2354
|
const { config: n, session: r, env: s, eventListeners: i } = t, o = e.tagName.toLowerCase();
|
|
2319
2355
|
C.debug(`[initializePieElement] Initializing ${o}#${e.id}`);
|
|
2320
2356
|
let l = n?.models?.find((u) => u.id === e.id);
|
|
2321
2357
|
if (!l) {
|
|
2322
|
-
const d =
|
|
2358
|
+
const d = Un()[o];
|
|
2323
2359
|
d && d.bundleType === z.clientPlayer && C.warn(
|
|
2324
2360
|
`[initializePieElement] Model not found for PIE element ${o}#${e.id} (client-player.js bundle)`
|
|
2325
2361
|
);
|
|
2326
2362
|
return;
|
|
2327
2363
|
}
|
|
2328
|
-
const c =
|
|
2364
|
+
const c = Jr(r, l.id, l.element);
|
|
2329
2365
|
e.session = c, C.debug(`[initializePieElement] Session set for ${o}#${e.id}:`, c);
|
|
2330
|
-
const a =
|
|
2366
|
+
const a = Qn(o);
|
|
2331
2367
|
if (!s)
|
|
2332
2368
|
throw C.error(`[initializePieElement] ❌ FATAL: No env provided for ${o}`), new Error(`No env provided for ${o}. PIE elements require an env object with mode and role.`);
|
|
2333
2369
|
a ? C.debug(`[initializePieElement] Controller found for ${o}, will invoke model() function`) : (C.debug(`[initializePieElement] ℹ️ No controller for ${o}, using server-processed model`), C.debug("[initializePieElement] Model already processed by server:", {
|
|
@@ -2339,11 +2375,11 @@ const ne = Me("pie-scoring", () => Xe()), _n = (e) => {
|
|
|
2339
2375
|
}), e.model = l), i && Object.entries(i).forEach(([u, d]) => {
|
|
2340
2376
|
e.addEventListener(u, d);
|
|
2341
2377
|
});
|
|
2342
|
-
},
|
|
2378
|
+
}, Ii = (e, t, n, r, s) => {
|
|
2343
2379
|
const i = [];
|
|
2344
2380
|
return C.debug("[registerPieElementsFromBundle] Available packages in bundle:", Object.keys(e)), C.debug("[registerPieElementsFromBundle] config.elements:", t.elements), typeof window < "u" && (window._pieCurrentContext = { config: t, session: n, env: s.env }), Object.entries(t.elements).forEach(([o, l]) => {
|
|
2345
2381
|
C.debug(`[registerPieElementsFromBundle] Processing element: ${o} -> ${l}`);
|
|
2346
|
-
const c =
|
|
2382
|
+
const c = ki(l);
|
|
2347
2383
|
C.debug(`[registerPieElementsFromBundle] Package without version: "${c}"`);
|
|
2348
2384
|
const a = e[c];
|
|
2349
2385
|
if (C.debug("[registerPieElementsFromBundle] elementData result:", a ? "FOUND" : "UNDEFINED"), !a)
|
|
@@ -2362,14 +2398,14 @@ const ne = Me("pie-scoring", () => Xe()), _n = (e) => {
|
|
|
2362
2398
|
);
|
|
2363
2399
|
}
|
|
2364
2400
|
if (customElements.get(o)) {
|
|
2365
|
-
if (
|
|
2401
|
+
if (cn(o, {
|
|
2366
2402
|
config: t,
|
|
2367
2403
|
session: n,
|
|
2368
2404
|
env: s.env,
|
|
2369
2405
|
...s.eventListeners?.[o] && { eventListeners: s.eventListeners[o] }
|
|
2370
2406
|
}), s.bundleType === z.editor) {
|
|
2371
|
-
const u = o +
|
|
2372
|
-
|
|
2407
|
+
const u = o + er;
|
|
2408
|
+
cn(u, {
|
|
2373
2409
|
config: t,
|
|
2374
2410
|
session: n,
|
|
2375
2411
|
...s.eventListeners?.[u] && {
|
|
@@ -2381,16 +2417,16 @@ const ne = Me("pie-scoring", () => Xe()), _n = (e) => {
|
|
|
2381
2417
|
`[registerPieElementsFromBundle] Registering ${o} in registry${a.controller ? " with controller" : " (no controller - server-processed models)"}`
|
|
2382
2418
|
), r[o] = {
|
|
2383
2419
|
package: l,
|
|
2384
|
-
status:
|
|
2420
|
+
status: an.loading,
|
|
2385
2421
|
tagName: o,
|
|
2386
2422
|
controller: a.controller || null,
|
|
2387
2423
|
config: a.config,
|
|
2388
2424
|
bundleType: s.bundleType
|
|
2389
|
-
},
|
|
2425
|
+
}, tr(a.Element)) {
|
|
2390
2426
|
customElements.define(o, a.Element);
|
|
2391
2427
|
const u = document.querySelectorAll(o);
|
|
2392
2428
|
if (C.debug(`[registerPieElementsFromBundle] Found ${u.length} elements for tag '${o}'`), u.forEach((d) => {
|
|
2393
|
-
|
|
2429
|
+
Kt(d, {
|
|
2394
2430
|
config: t,
|
|
2395
2431
|
session: n,
|
|
2396
2432
|
env: s.env,
|
|
@@ -2398,7 +2434,7 @@ const ne = Me("pie-scoring", () => Xe()), _n = (e) => {
|
|
|
2398
2434
|
});
|
|
2399
2435
|
}), r[o] = {
|
|
2400
2436
|
...r[o],
|
|
2401
|
-
status:
|
|
2437
|
+
status: an.loaded
|
|
2402
2438
|
}, i.push(
|
|
2403
2439
|
customElements.whenDefined(o).then(() => {
|
|
2404
2440
|
C.debug("[registerPieElementsFromBundle] defined custom PIE element: %s", o);
|
|
@@ -2410,21 +2446,21 @@ const ne = Me("pie-scoring", () => Xe()), _n = (e) => {
|
|
|
2410
2446
|
return;
|
|
2411
2447
|
}
|
|
2412
2448
|
d.forEach((g) => {
|
|
2413
|
-
g.type === "childList" && g.addedNodes.forEach((
|
|
2414
|
-
if (
|
|
2415
|
-
const
|
|
2416
|
-
r[
|
|
2449
|
+
g.type === "childList" && g.addedNodes.forEach((v) => {
|
|
2450
|
+
if (v.nodeType === Node.ELEMENT_NODE) {
|
|
2451
|
+
const b = v.tagName.toLowerCase();
|
|
2452
|
+
r[b] && Kt(v, {
|
|
2417
2453
|
config: f.config,
|
|
2418
2454
|
session: f.session,
|
|
2419
2455
|
env: f.env,
|
|
2420
|
-
eventListeners: s.eventListeners?.[
|
|
2421
|
-
}),
|
|
2422
|
-
const
|
|
2423
|
-
r[
|
|
2456
|
+
eventListeners: s.eventListeners?.[b]
|
|
2457
|
+
}), v.querySelectorAll("*").forEach(($) => {
|
|
2458
|
+
const I = $.tagName.toLowerCase();
|
|
2459
|
+
r[I] && Kt($, {
|
|
2424
2460
|
config: f.config,
|
|
2425
2461
|
session: f.session,
|
|
2426
2462
|
env: f.env,
|
|
2427
|
-
eventListeners: s.eventListeners?.[
|
|
2463
|
+
eventListeners: s.eventListeners?.[I]
|
|
2428
2464
|
});
|
|
2429
2465
|
});
|
|
2430
2466
|
}
|
|
@@ -2434,8 +2470,8 @@ const ne = Me("pie-scoring", () => Xe()), _n = (e) => {
|
|
|
2434
2470
|
childList: !0,
|
|
2435
2471
|
subtree: !0
|
|
2436
2472
|
})), s.bundleType === z.editor)
|
|
2437
|
-
if (
|
|
2438
|
-
const d = o +
|
|
2473
|
+
if (tr(a.Configure)) {
|
|
2474
|
+
const d = o + er;
|
|
2439
2475
|
customElements.define(d, a.Configure), i.push(
|
|
2440
2476
|
customElements.whenDefined(d).then(() => {
|
|
2441
2477
|
C.debug(`[registerPieElementsFromBundle] defined custom PIE editor element: ${d}`);
|
|
@@ -2451,38 +2487,38 @@ const ne = Me("pie-scoring", () => Xe()), _n = (e) => {
|
|
|
2451
2487
|
`[registerPieElementsFromBundle] pie.Element for ${c} is not a valid custom element constructor.`
|
|
2452
2488
|
);
|
|
2453
2489
|
}), i;
|
|
2454
|
-
},
|
|
2455
|
-
const r =
|
|
2456
|
-
if (
|
|
2490
|
+
}, nr = (e, t, n = {}) => {
|
|
2491
|
+
const r = Un(), s = zr(Oi, n);
|
|
2492
|
+
if (Li(window)) {
|
|
2457
2493
|
C.debug("[initializePiesFromLoadedBundle] window.pie available");
|
|
2458
2494
|
const i = window.pie.default;
|
|
2459
|
-
|
|
2495
|
+
Ii(i, e, t, r, s);
|
|
2460
2496
|
} else
|
|
2461
2497
|
C.error("[initializePiesFromLoadedBundle] window.pie not found; was the bundle inlined correctly?");
|
|
2462
|
-
},
|
|
2498
|
+
}, $e = {
|
|
2463
2499
|
trackPageActions: !1,
|
|
2464
2500
|
maxResourceRetries: 3,
|
|
2465
2501
|
resourceRetryDelay: 500
|
|
2466
|
-
},
|
|
2502
|
+
}, Ni = {
|
|
2467
2503
|
trackPageActions: !1,
|
|
2468
2504
|
maxRetries: 3,
|
|
2469
2505
|
initialRetryDelay: 500,
|
|
2470
2506
|
maxRetryDelay: 5e3,
|
|
2471
2507
|
debug: !1
|
|
2472
|
-
},
|
|
2473
|
-
class
|
|
2508
|
+
}, Ai = 80;
|
|
2509
|
+
class Mi {
|
|
2474
2510
|
// Track resources within our container
|
|
2475
2511
|
constructor(t = {}) {
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
this.config = { ...
|
|
2512
|
+
L(this, "config");
|
|
2513
|
+
L(this, "logger");
|
|
2514
|
+
L(this, "observer", null);
|
|
2515
|
+
L(this, "mutationObserver", null);
|
|
2516
|
+
L(this, "errorHandler", null);
|
|
2517
|
+
L(this, "retryAttempts", /* @__PURE__ */ new Map());
|
|
2518
|
+
L(this, "container", null);
|
|
2519
|
+
L(this, "isBrowser");
|
|
2520
|
+
L(this, "containerResources", /* @__PURE__ */ new Set());
|
|
2521
|
+
this.config = { ...Ni, ...t }, this.logger = Ae("resource-monitor", () => this.isDebugEnabled()), this.isBrowser = typeof window < "u" && typeof document < "u";
|
|
2486
2522
|
}
|
|
2487
2523
|
/**
|
|
2488
2524
|
* Check if debug logging is enabled (dynamically checks window.PIE_DEBUG)
|
|
@@ -2494,7 +2530,7 @@ class Oi {
|
|
|
2494
2530
|
* Truncate URL for display in logs
|
|
2495
2531
|
*/
|
|
2496
2532
|
truncateUrl(t) {
|
|
2497
|
-
return t.length >
|
|
2533
|
+
return t.length > Ai ? "..." + t.slice(-77) : t;
|
|
2498
2534
|
}
|
|
2499
2535
|
/**
|
|
2500
2536
|
* Strip retry parameters from URL to get the original URL
|
|
@@ -2739,16 +2775,58 @@ class Oi {
|
|
|
2739
2775
|
/**
|
|
2740
2776
|
* Check if resource is relevant to our container
|
|
2741
2777
|
* Uses container-scoped tracking via MutationObserver
|
|
2778
|
+
* Also retroactively checks if resource belongs to container if not yet tracked
|
|
2742
2779
|
*/
|
|
2743
2780
|
isRelevantResource(t) {
|
|
2744
|
-
const n = t.name
|
|
2781
|
+
const n = t.name;
|
|
2782
|
+
let r = this.containerResources.has(n);
|
|
2745
2783
|
if (!r) {
|
|
2746
2784
|
for (const s of this.containerResources)
|
|
2747
2785
|
if (n.endsWith(s) || s.endsWith(n))
|
|
2748
2786
|
return !0;
|
|
2787
|
+
if (this.container && this.isResourceInContainer(n, t.initiatorType))
|
|
2788
|
+
return this.containerResources.add(n), this.isDebugEnabled() && this.logger.debug(`📌 Retroactively tracked resource: ${this.truncateUrl(n)}`), !0;
|
|
2749
2789
|
}
|
|
2750
2790
|
return r;
|
|
2751
2791
|
}
|
|
2792
|
+
/**
|
|
2793
|
+
* Check if a resource URL actually belongs to our container by checking DOM elements
|
|
2794
|
+
* This is a fallback for resources that loaded before MutationObserver scanned
|
|
2795
|
+
*/
|
|
2796
|
+
isResourceInContainer(t, n) {
|
|
2797
|
+
if (!this.container)
|
|
2798
|
+
return !1;
|
|
2799
|
+
try {
|
|
2800
|
+
const r = new URL(t), s = r.pathname + r.search;
|
|
2801
|
+
if (n === "img" || n === "audio" || n === "video") {
|
|
2802
|
+
const i = this.container.querySelectorAll(`${n}[src]`);
|
|
2803
|
+
for (const o of i) {
|
|
2804
|
+
const l = o;
|
|
2805
|
+
if (l.src && (l.src === t || l.src.endsWith(s)))
|
|
2806
|
+
return !0;
|
|
2807
|
+
}
|
|
2808
|
+
}
|
|
2809
|
+
if (n === "link") {
|
|
2810
|
+
const i = this.container.querySelectorAll("link[href]");
|
|
2811
|
+
for (const o of i) {
|
|
2812
|
+
const l = o;
|
|
2813
|
+
if (l.href && (l.href === t || l.href.endsWith(s)))
|
|
2814
|
+
return !0;
|
|
2815
|
+
}
|
|
2816
|
+
}
|
|
2817
|
+
if (n === "source") {
|
|
2818
|
+
const i = this.container.querySelectorAll("source[src]");
|
|
2819
|
+
for (const o of i) {
|
|
2820
|
+
const l = o;
|
|
2821
|
+
if (l.src && (l.src === t || l.src.endsWith(s)))
|
|
2822
|
+
return !0;
|
|
2823
|
+
}
|
|
2824
|
+
}
|
|
2825
|
+
} catch (r) {
|
|
2826
|
+
this.isDebugEnabled() && this.logger.debug(`Error checking if resource is in container: ${r}`);
|
|
2827
|
+
}
|
|
2828
|
+
return !1;
|
|
2829
|
+
}
|
|
2752
2830
|
/**
|
|
2753
2831
|
* Set up error event handler for resource loading failures
|
|
2754
2832
|
*/
|
|
@@ -2829,7 +2907,7 @@ class Oi {
|
|
|
2829
2907
|
const i = this.truncateUrl(t), o = Math.min(
|
|
2830
2908
|
this.config.initialRetryDelay * Math.pow(2, n + 1),
|
|
2831
2909
|
this.config.maxRetryDelay
|
|
2832
|
-
), l = s === "img" ? "Cache-busting URL" : s === "audio" || s === "video" ? "element.load()" : "
|
|
2910
|
+
), l = s === "img" ? "Cache-busting URL" : s === "audio" || s === "video" ? "element.load()" : s === "link" ? "Cache-busting URL" : "URL update";
|
|
2833
2911
|
this.logger.info(
|
|
2834
2912
|
`🔄 PIE Resource Retry Scheduled
|
|
2835
2913
|
URL: ${i}
|
|
@@ -2860,13 +2938,15 @@ class Oi {
|
|
|
2860
2938
|
}), await new Promise((i) => setTimeout(i, s)), this.isDebugEnabled() && this.logger.debug(`⏱️ Retry wait completed (${s}ms), attempting reload now...`), this.retryAttempts.set(n, r + 1);
|
|
2861
2939
|
try {
|
|
2862
2940
|
if (t instanceof HTMLAudioElement || t instanceof HTMLVideoElement)
|
|
2863
|
-
t.load(), this.isDebugEnabled()
|
|
2941
|
+
t.load(), this.isDebugEnabled() && this.logger.debug(`✓ Triggered load() on <${t.tagName.toLowerCase()}>`);
|
|
2864
2942
|
else if (t instanceof HTMLImageElement) {
|
|
2865
2943
|
const i = new URL(n);
|
|
2866
|
-
i.searchParams.set("retry", (r + 1).toString()), i.searchParams.set("t", Date.now().toString()), t.src = i.toString(), this.isDebugEnabled()
|
|
2944
|
+
i.searchParams.set("retry", (r + 1).toString()), i.searchParams.set("t", Date.now().toString()), t.src = i.toString(), this.isDebugEnabled() && this.logger.debug(`✓ Updated <img> src with cache-busting params: retry=${r + 1}, t=${Date.now()}`);
|
|
2867
2945
|
} else if (t instanceof HTMLLinkElement) {
|
|
2868
|
-
const i =
|
|
2869
|
-
|
|
2946
|
+
const i = new URL(n);
|
|
2947
|
+
i.searchParams.set("retry", (r + 1).toString()), i.searchParams.set("t", Date.now().toString()), t.href = i.toString(), this.isDebugEnabled() && this.logger.debug(
|
|
2948
|
+
`✓ Updated <link> href with cache-busting params: retry=${r + 1}, t=${Date.now()}`
|
|
2949
|
+
);
|
|
2870
2950
|
}
|
|
2871
2951
|
} catch (i) {
|
|
2872
2952
|
this.isDebugEnabled() ? this.logger.error(`❌ Error during retry attempt for ${n}:`, i) : this.logger.error(`Error during retry for ${n}:`, i);
|
|
@@ -2899,31 +2979,36 @@ class Oi {
|
|
|
2899
2979
|
};
|
|
2900
2980
|
}
|
|
2901
2981
|
}
|
|
2902
|
-
const
|
|
2903
|
-
function
|
|
2904
|
-
const s =
|
|
2905
|
-
let i =
|
|
2906
|
-
return
|
|
2982
|
+
const ji = 5e3;
|
|
2983
|
+
function zi(e, t, n, r = "pie-player") {
|
|
2984
|
+
const s = Ae("use-resource-monitor", n);
|
|
2985
|
+
let i = T(null), o = T(!1);
|
|
2986
|
+
return Ee(() => {
|
|
2907
2987
|
const l = e(), c = t(), a = n();
|
|
2988
|
+
if (!l && p(i)) {
|
|
2989
|
+
s.debug(`Host element removed, stopping resource monitor for ${r}`), p(i).stop(), y(i, null), y(o, !1);
|
|
2990
|
+
return;
|
|
2991
|
+
}
|
|
2908
2992
|
l && !p(o) && (s.debug(`Initializing resource monitor for ${r}`, {
|
|
2909
2993
|
trackPageActions: c?.trackPageActions ?? !1,
|
|
2910
|
-
maxRetries: c?.maxResourceRetries ??
|
|
2911
|
-
retryDelay: c?.resourceRetryDelay ??
|
|
2912
|
-
|
|
2994
|
+
maxRetries: c?.maxResourceRetries ?? $e.maxResourceRetries,
|
|
2995
|
+
retryDelay: c?.resourceRetryDelay ?? $e.resourceRetryDelay,
|
|
2996
|
+
hasContainer: !!l
|
|
2997
|
+
}), y(
|
|
2913
2998
|
i,
|
|
2914
|
-
new
|
|
2999
|
+
new Mi({
|
|
2915
3000
|
trackPageActions: c?.trackPageActions ?? !1,
|
|
2916
|
-
maxRetries: c?.maxResourceRetries ??
|
|
2917
|
-
initialRetryDelay: c?.resourceRetryDelay ??
|
|
2918
|
-
maxRetryDelay:
|
|
3001
|
+
maxRetries: c?.maxResourceRetries ?? $e.maxResourceRetries,
|
|
3002
|
+
initialRetryDelay: c?.resourceRetryDelay ?? $e.resourceRetryDelay,
|
|
3003
|
+
maxRetryDelay: ji,
|
|
2919
3004
|
debug: a
|
|
2920
3005
|
}),
|
|
2921
3006
|
!0
|
|
2922
|
-
), p(i).start(l),
|
|
2923
|
-
}),
|
|
3007
|
+
), p(i).start(l), y(o, !0), s.info(`✅ Resource monitoring enabled for ${r}` + (c?.trackPageActions ? " (with New Relic tracking)" : " (retry only)")));
|
|
3008
|
+
}), $i(() => {
|
|
2924
3009
|
if (p(i)) {
|
|
2925
3010
|
const l = p(i).getStats();
|
|
2926
|
-
s.debug(`Resource monitor stats at cleanup for ${r}:`, l), p(i).stop(),
|
|
3011
|
+
s.debug(`Resource monitor stats at cleanup for ${r}:`, l), p(i).stop(), y(i, null), y(o, !1);
|
|
2927
3012
|
}
|
|
2928
3013
|
}), {
|
|
2929
3014
|
get instance() {
|
|
@@ -2933,14 +3018,14 @@ function Di(e, t, n, r = "pie-player") {
|
|
|
2933
3018
|
return p(i)?.getStats() ?? { activeRetries: 0, failedResources: [] };
|
|
2934
3019
|
},
|
|
2935
3020
|
get isActive() {
|
|
2936
|
-
return p(o) &&
|
|
3021
|
+
return p(o) && Q(p(i), null, !1);
|
|
2937
3022
|
}
|
|
2938
3023
|
};
|
|
2939
3024
|
}
|
|
2940
|
-
|
|
2941
|
-
ue[
|
|
2942
|
-
var
|
|
2943
|
-
const
|
|
3025
|
+
wn();
|
|
3026
|
+
ue[P] = "src/lib/components/PieItemPlayer.svelte";
|
|
3027
|
+
var Vi = Ce(/* @__PURE__ */ Ue("<div><!></div>"), ue[P], [[265, 2]]), qi = Ce(/* @__PURE__ */ Ue("<div><!></div>"), ue[P], [[271, 2]]), Ji = Ce(/* @__PURE__ */ Ue('<div class="pie-item-player svelte-d1rctr"><!> <!></div>'), ue[P], [[263, 0]]);
|
|
3028
|
+
const Wi = {
|
|
2944
3029
|
hash: "svelte-d1rctr",
|
|
2945
3030
|
code: `
|
|
2946
3031
|
.pie-item-player.svelte-d1rctr {
|
|
@@ -2954,54 +3039,54 @@ const Mi = {
|
|
|
2954
3039
|
width: 100%;
|
|
2955
3040
|
}
|
|
2956
3041
|
|
|
2957
|
-
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
3042
|
+
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGllSXRlbVBsYXllci5zdmVsdGUiLCJtYXBwaW5ncyI6IjtBQXFSQSxDQUFDLDhCQUFnQixDQUFDO0FBQ2xCLEVBQUUsY0FBYztBQUNoQixFQUFFLFdBQVc7QUFDYjs7QUFFQSxDQUFDLG9DQUFzQjtBQUN2QixDQUFDLGlDQUFtQixDQUFDO0FBQ3JCLEVBQUUsY0FBYztBQUNoQixFQUFFLFdBQVc7QUFDYiIsIm5hbWVzIjpbXSwiaWdub3JlTGlzdCI6W10sInNvdXJjZXMiOlsiUGllSXRlbVBsYXllci5zdmVsdGUiXX0= */`
|
|
2958
3043
|
};
|
|
2959
3044
|
function ue(e, t) {
|
|
2960
|
-
|
|
2961
|
-
const n =
|
|
2962
|
-
let r =
|
|
2963
|
-
const
|
|
2964
|
-
|
|
2965
|
-
const
|
|
2966
|
-
detail:
|
|
3045
|
+
$n(new.target), Mt(t, !0, ue), Fn(e, Wi);
|
|
3046
|
+
const n = Ae("pie-item-player", () => Ze());
|
|
3047
|
+
let r = U(t, "itemConfig", 7), s = U(t, "passageConfig", 7, null), i = U(t, "env", 23, () => ({ mode: "gather", role: "student" })), o = U(t, "session", 23, () => []), l = U(t, "addCorrectResponse", 7, !1), c = U(t, "customClassname", 7, ""), a = U(t, "passageContainerClass", 7, ""), u = U(t, "containerClass", 7, ""), d = U(t, "bundleType", 23, () => z.player), f = U(t, "loaderConfig", 7, $e), g = U(t, "onLoadComplete", 7), v = U(t, "onPlayerError", 7), b = U(t, "onSessionChanged", 7), $ = T(!1);
|
|
3048
|
+
const I = (m, h) => {
|
|
3049
|
+
Q(m, "load-complete") && g() ? g()(h) : Q(m, "player-error") && v() ? v()(h) : Q(m, "session-changed") && b() && b()(h);
|
|
3050
|
+
const _ = new CustomEvent(m, {
|
|
3051
|
+
detail: h,
|
|
2967
3052
|
bubbles: !0,
|
|
2968
3053
|
composed: !0
|
|
2969
3054
|
// Allow events to cross shadow DOM boundaries
|
|
2970
3055
|
});
|
|
2971
|
-
dispatchEvent(
|
|
3056
|
+
dispatchEvent(_);
|
|
2972
3057
|
};
|
|
2973
|
-
async function
|
|
2974
|
-
if (!l() || !r() || p(
|
|
3058
|
+
async function k() {
|
|
3059
|
+
if (!l() || !r() || p($)) return;
|
|
2975
3060
|
n.debug("[PieItemPlayer] Populating session with correct responses");
|
|
2976
|
-
const
|
|
2977
|
-
for (const
|
|
2978
|
-
const
|
|
2979
|
-
if (
|
|
3061
|
+
const m = [];
|
|
3062
|
+
for (const h of r().models) {
|
|
3063
|
+
const _ = Qn(h.element);
|
|
3064
|
+
if (_ && _.createCorrectResponseSession)
|
|
2980
3065
|
try {
|
|
2981
|
-
const
|
|
2982
|
-
|
|
2983
|
-
id:
|
|
2984
|
-
element:
|
|
2985
|
-
...
|
|
3066
|
+
const w = await _.createCorrectResponseSession(h, i()), { id: re, ...Z } = w;
|
|
3067
|
+
m.push({
|
|
3068
|
+
id: h.id,
|
|
3069
|
+
element: h.element,
|
|
3070
|
+
...Z
|
|
2986
3071
|
});
|
|
2987
|
-
} catch (
|
|
2988
|
-
n.warn(`[PieItemPlayer] Failed to create correct response for ${
|
|
3072
|
+
} catch (w) {
|
|
3073
|
+
n.warn(`[PieItemPlayer] Failed to create correct response for ${h.element}:`, w);
|
|
2989
3074
|
}
|
|
2990
3075
|
}
|
|
2991
|
-
o().length = 0, o().push(...
|
|
3076
|
+
o().length = 0, o().push(...m), y($, !0), n.debug("[PieItemPlayer] Correct responses added to session:", o());
|
|
2992
3077
|
}
|
|
2993
|
-
const
|
|
3078
|
+
const A = K(() => [
|
|
2994
3079
|
"pie-passage-container",
|
|
2995
3080
|
c(),
|
|
2996
3081
|
a()
|
|
2997
|
-
].filter(Boolean).join(" ")),
|
|
3082
|
+
].filter(Boolean).join(" ")), N = K(() => [
|
|
2998
3083
|
"pie-item-container",
|
|
2999
3084
|
c(),
|
|
3000
3085
|
u()
|
|
3001
3086
|
].filter(Boolean).join(" "));
|
|
3002
|
-
let
|
|
3003
|
-
|
|
3004
|
-
!r() || p(
|
|
3087
|
+
let S = T(!1), F = T(!1), M = T(!1), W = T(null);
|
|
3088
|
+
zi(() => p(W), () => f(), () => Ze(), "pie-item-player"), Ee(() => {
|
|
3089
|
+
!r() || p(S) || (n.debug("[PieItemPlayer] Item config received, initializing after DOM renders..."), Cr().then(async () => {
|
|
3005
3090
|
try {
|
|
3006
3091
|
if (n.debug("[PieItemPlayer] DOM ready, initializing PIE elements"), n.debug("[PieItemPlayer] Config:", {
|
|
3007
3092
|
itemElements: Object.keys(r().elements || {}),
|
|
@@ -3011,137 +3096,145 @@ function ue(e, t) {
|
|
|
3011
3096
|
sessionLength: o().length,
|
|
3012
3097
|
addCorrectResponse: l(),
|
|
3013
3098
|
env: i()
|
|
3014
|
-
}),
|
|
3015
|
-
const
|
|
3016
|
-
if (p(
|
|
3099
|
+
}), nr(r(), [], { env: i(), bundleType: d() }), n.debug("[PieItemPlayer] Item bundle initialized (bundle type: %s)", d()), s() && (nr(s(), [], { env: i(), bundleType: d() }), n.debug("[PieItemPlayer] Passage bundle initialized (bundle type: %s)", d())), await k(), n.debug("[PieItemPlayer] Updating elements with session (length=" + o().length + ")"), bt(r(), o(), i()), s() && bt(s(), o(), i()), y(S, !0), !p(F)) {
|
|
3100
|
+
const m = document.querySelector(".pie-item-player"), h = (_) => {
|
|
3101
|
+
if (p(M))
|
|
3017
3102
|
return;
|
|
3018
|
-
const
|
|
3019
|
-
n.debug("[PieItemPlayer] session-changed event received from PIE element"),
|
|
3103
|
+
const w = _;
|
|
3104
|
+
n.debug("[PieItemPlayer] session-changed event received from PIE element"), y(M, !0);
|
|
3020
3105
|
try {
|
|
3021
|
-
|
|
3106
|
+
I("session-changed", w.detail);
|
|
3022
3107
|
} finally {
|
|
3023
3108
|
setTimeout(
|
|
3024
3109
|
() => {
|
|
3025
|
-
|
|
3110
|
+
y(M, !1);
|
|
3026
3111
|
},
|
|
3027
3112
|
0
|
|
3028
3113
|
);
|
|
3029
3114
|
}
|
|
3030
3115
|
};
|
|
3031
|
-
|
|
3116
|
+
m && (m.addEventListener("session-changed", h), y(F, !0), n.debug("[PieItemPlayer] session-changed listener attached to root element"));
|
|
3032
3117
|
}
|
|
3033
|
-
n.debug("[PieItemPlayer] ✅ Initialization complete, dispatching load-complete event"),
|
|
3034
|
-
} catch (
|
|
3035
|
-
n.error("[PieItemPlayer] Error initializing:",
|
|
3118
|
+
n.debug("[PieItemPlayer] ✅ Initialization complete, dispatching load-complete event"), I("load-complete");
|
|
3119
|
+
} catch (m) {
|
|
3120
|
+
n.error("[PieItemPlayer] Error initializing:", m), I("player-error", m.message);
|
|
3121
|
+
}
|
|
3122
|
+
}));
|
|
3123
|
+
});
|
|
3124
|
+
let Me = !1;
|
|
3125
|
+
Ee(() => {
|
|
3126
|
+
!p(S) || !i() || !r() || !o() || Me || (n.debug("[PieItemPlayer] Dependencies changed, updating elements"), n.debug("[PieItemPlayer] Env:", i()), n.debug("[PieItemPlayer] Session (length=" + o().length + "):", o()), Me = !0, Te(() => {
|
|
3127
|
+
try {
|
|
3128
|
+
bt(r(), o(), i()), s() && bt(s(), o(), i());
|
|
3129
|
+
} finally {
|
|
3130
|
+
Me = !1;
|
|
3036
3131
|
}
|
|
3037
3132
|
}));
|
|
3038
|
-
}), Re(() => {
|
|
3039
|
-
!p(w) || !i() || !r() || !o() || (n.debug("[PieItemPlayer] Dependencies changed, updating elements"), n.debug("[PieItemPlayer] Env:", i()), n.debug("[PieItemPlayer] Session (length=" + o().length + "):", o()), _t(r(), o(), i()), s() && _t(s(), o(), i()));
|
|
3040
3133
|
});
|
|
3041
|
-
var
|
|
3134
|
+
var Y = Ji(), je = le(Y);
|
|
3042
3135
|
{
|
|
3043
|
-
var
|
|
3044
|
-
var
|
|
3045
|
-
|
|
3136
|
+
var Be = (m) => {
|
|
3137
|
+
var h = Vi(), _ = le(h);
|
|
3138
|
+
Hn(_, () => s().markup), oe(h), Xe(() => Se(h, 1, p(A), "svelte-d1rctr")), he(m, h);
|
|
3046
3139
|
};
|
|
3047
|
-
|
|
3048
|
-
s()?.markup &&
|
|
3140
|
+
ut(je, (m) => {
|
|
3141
|
+
s()?.markup && m(Be);
|
|
3049
3142
|
});
|
|
3050
3143
|
}
|
|
3051
|
-
var
|
|
3144
|
+
var Vt = sn(je, 2);
|
|
3052
3145
|
{
|
|
3053
|
-
var
|
|
3054
|
-
var
|
|
3055
|
-
|
|
3146
|
+
var qt = (m) => {
|
|
3147
|
+
var h = qi(), _ = le(h);
|
|
3148
|
+
Hn(_, () => r().markup), oe(h), Xe(() => Se(h, 1, p(N), "svelte-d1rctr")), he(m, h);
|
|
3056
3149
|
};
|
|
3057
|
-
|
|
3058
|
-
r()?.markup &&
|
|
3150
|
+
ut(Vt, (m) => {
|
|
3151
|
+
r()?.markup && m(qt);
|
|
3059
3152
|
});
|
|
3060
3153
|
}
|
|
3061
|
-
return oe(
|
|
3154
|
+
return oe(Y), Mr(Y, (m) => y(W, m), () => p(W)), he(e, Y), jt({
|
|
3062
3155
|
get itemConfig() {
|
|
3063
3156
|
return r();
|
|
3064
3157
|
},
|
|
3065
|
-
set itemConfig(
|
|
3066
|
-
r(
|
|
3158
|
+
set itemConfig(m) {
|
|
3159
|
+
r(m), E();
|
|
3067
3160
|
},
|
|
3068
3161
|
get passageConfig() {
|
|
3069
3162
|
return s();
|
|
3070
3163
|
},
|
|
3071
|
-
set passageConfig(
|
|
3072
|
-
s(
|
|
3164
|
+
set passageConfig(m = null) {
|
|
3165
|
+
s(m), E();
|
|
3073
3166
|
},
|
|
3074
3167
|
get env() {
|
|
3075
3168
|
return i();
|
|
3076
3169
|
},
|
|
3077
|
-
set env(
|
|
3078
|
-
i(
|
|
3170
|
+
set env(m = { mode: "gather", role: "student" }) {
|
|
3171
|
+
i(m), E();
|
|
3079
3172
|
},
|
|
3080
3173
|
get session() {
|
|
3081
3174
|
return o();
|
|
3082
3175
|
},
|
|
3083
|
-
set session(
|
|
3084
|
-
o(
|
|
3176
|
+
set session(m = []) {
|
|
3177
|
+
o(m), E();
|
|
3085
3178
|
},
|
|
3086
3179
|
get addCorrectResponse() {
|
|
3087
3180
|
return l();
|
|
3088
3181
|
},
|
|
3089
|
-
set addCorrectResponse(
|
|
3090
|
-
l(
|
|
3182
|
+
set addCorrectResponse(m = !1) {
|
|
3183
|
+
l(m), E();
|
|
3091
3184
|
},
|
|
3092
3185
|
get customClassname() {
|
|
3093
3186
|
return c();
|
|
3094
3187
|
},
|
|
3095
|
-
set customClassname(
|
|
3096
|
-
c(
|
|
3188
|
+
set customClassname(m = "") {
|
|
3189
|
+
c(m), E();
|
|
3097
3190
|
},
|
|
3098
3191
|
get passageContainerClass() {
|
|
3099
3192
|
return a();
|
|
3100
3193
|
},
|
|
3101
|
-
set passageContainerClass(
|
|
3102
|
-
a(
|
|
3194
|
+
set passageContainerClass(m = "") {
|
|
3195
|
+
a(m), E();
|
|
3103
3196
|
},
|
|
3104
3197
|
get containerClass() {
|
|
3105
3198
|
return u();
|
|
3106
3199
|
},
|
|
3107
|
-
set containerClass(
|
|
3108
|
-
u(
|
|
3200
|
+
set containerClass(m = "") {
|
|
3201
|
+
u(m), E();
|
|
3109
3202
|
},
|
|
3110
3203
|
get bundleType() {
|
|
3111
3204
|
return d();
|
|
3112
3205
|
},
|
|
3113
|
-
set bundleType(
|
|
3114
|
-
d(
|
|
3206
|
+
set bundleType(m = z.player) {
|
|
3207
|
+
d(m), E();
|
|
3115
3208
|
},
|
|
3116
3209
|
get loaderConfig() {
|
|
3117
3210
|
return f();
|
|
3118
3211
|
},
|
|
3119
|
-
set loaderConfig(
|
|
3120
|
-
f(
|
|
3212
|
+
set loaderConfig(m = $e) {
|
|
3213
|
+
f(m), E();
|
|
3121
3214
|
},
|
|
3122
3215
|
get onLoadComplete() {
|
|
3123
3216
|
return g();
|
|
3124
3217
|
},
|
|
3125
|
-
set onLoadComplete(
|
|
3126
|
-
g(
|
|
3218
|
+
set onLoadComplete(m) {
|
|
3219
|
+
g(m), E();
|
|
3127
3220
|
},
|
|
3128
3221
|
get onPlayerError() {
|
|
3129
|
-
return
|
|
3222
|
+
return v();
|
|
3130
3223
|
},
|
|
3131
|
-
set onPlayerError(
|
|
3132
|
-
m
|
|
3224
|
+
set onPlayerError(m) {
|
|
3225
|
+
v(m), E();
|
|
3133
3226
|
},
|
|
3134
3227
|
get onSessionChanged() {
|
|
3135
|
-
return
|
|
3228
|
+
return b();
|
|
3136
3229
|
},
|
|
3137
|
-
set onSessionChanged(
|
|
3138
|
-
|
|
3230
|
+
set onSessionChanged(m) {
|
|
3231
|
+
b(m), E();
|
|
3139
3232
|
},
|
|
3140
|
-
...
|
|
3233
|
+
...Rn()
|
|
3141
3234
|
});
|
|
3142
3235
|
}
|
|
3143
|
-
|
|
3144
|
-
|
|
3236
|
+
En(ue);
|
|
3237
|
+
Cn(
|
|
3145
3238
|
ue,
|
|
3146
3239
|
{
|
|
3147
3240
|
itemConfig: {},
|
|
@@ -3162,7 +3255,110 @@ jr(
|
|
|
3162
3255
|
[],
|
|
3163
3256
|
!0
|
|
3164
3257
|
);
|
|
3165
|
-
|
|
3258
|
+
Ss();
|
|
3259
|
+
wn();
|
|
3260
|
+
rt[P] = "src/lib/components/PieSpinner.svelte";
|
|
3261
|
+
var Gi = Ce(/* @__PURE__ */ Ue("<div></div>"), rt[P], [[5, 0]]);
|
|
3262
|
+
const Xi = {
|
|
3263
|
+
hash: "svelte-1rfammn",
|
|
3264
|
+
code: `
|
|
3265
|
+
.pie-loading.svelte-1rfammn {
|
|
3266
|
+
position: absolute;
|
|
3267
|
+
height: 100%;
|
|
3268
|
+
width: 100%;
|
|
3269
|
+
background-color: #fff;
|
|
3270
|
+
bottom: 0;
|
|
3271
|
+
left: 0;
|
|
3272
|
+
right: 0;
|
|
3273
|
+
top: 0;
|
|
3274
|
+
z-index: 9999;
|
|
3275
|
+
opacity: 0.4;
|
|
3276
|
+
}
|
|
3277
|
+
|
|
3278
|
+
.pie-loading.fixed.svelte-1rfammn {
|
|
3279
|
+
position: fixed;
|
|
3280
|
+
}
|
|
3281
|
+
|
|
3282
|
+
.pie-loading.svelte-1rfammn:before {
|
|
3283
|
+
content: "";
|
|
3284
|
+
background-color: rgba(0, 0, 0, 0);
|
|
3285
|
+
border: 5px solid rgba(63, 81, 181, 0.9);
|
|
3286
|
+
opacity: 0.9;
|
|
3287
|
+
border-right: 5px solid rgba(0, 0, 0, 0);
|
|
3288
|
+
border-left: 5px solid rgba(0, 0, 0, 0);
|
|
3289
|
+
border-radius: 50px;
|
|
3290
|
+
box-shadow: 0 0 35px rgba(63, 81, 181, 0.9);
|
|
3291
|
+
width: 50px;
|
|
3292
|
+
height: 50px;
|
|
3293
|
+
animation: svelte-1rfammn-spinPulse 1s infinite linear;
|
|
3294
|
+
margin: -25px 0 0 -25px;
|
|
3295
|
+
position: absolute;
|
|
3296
|
+
top: 50%;
|
|
3297
|
+
left: 50%;
|
|
3298
|
+
}
|
|
3299
|
+
|
|
3300
|
+
.pie-loading.svelte-1rfammn:after {
|
|
3301
|
+
content: "";
|
|
3302
|
+
background-color: rgba(0, 0, 0, 0);
|
|
3303
|
+
border: 5px solid rgba(63, 81, 181, 0.9);
|
|
3304
|
+
opacity: 0.9;
|
|
3305
|
+
border-left: 5px solid rgba(0, 0, 0, 0);
|
|
3306
|
+
border-right: 5px solid rgba(0, 0, 0, 0);
|
|
3307
|
+
border-radius: 50px;
|
|
3308
|
+
box-shadow: 0 0 15px rgba(63, 81, 181, 0.9);
|
|
3309
|
+
width: 30px;
|
|
3310
|
+
height: 30px;
|
|
3311
|
+
animation: svelte-1rfammn-spinoffPulse 1s infinite linear;
|
|
3312
|
+
margin: -15px 0 0 -15px;
|
|
3313
|
+
position: absolute;
|
|
3314
|
+
top: 50%;
|
|
3315
|
+
left: 50%;
|
|
3316
|
+
}
|
|
3317
|
+
|
|
3318
|
+
@keyframes svelte-1rfammn-spinPulse {
|
|
3319
|
+
0% {
|
|
3320
|
+
transform: rotate(160deg);
|
|
3321
|
+
opacity: 0;
|
|
3322
|
+
box-shadow: 0 0 1px rgba(63, 81, 181, 0.9);
|
|
3323
|
+
}
|
|
3324
|
+
50% {
|
|
3325
|
+
transform: rotate(145deg);
|
|
3326
|
+
opacity: 1;
|
|
3327
|
+
}
|
|
3328
|
+
100% {
|
|
3329
|
+
transform: rotate(-320deg);
|
|
3330
|
+
opacity: 0;
|
|
3331
|
+
}
|
|
3332
|
+
}
|
|
3333
|
+
|
|
3334
|
+
@keyframes svelte-1rfammn-spinoffPulse {
|
|
3335
|
+
0% {
|
|
3336
|
+
transform: rotate(0deg);
|
|
3337
|
+
}
|
|
3338
|
+
100% {
|
|
3339
|
+
transform: rotate(360deg);
|
|
3340
|
+
}
|
|
3341
|
+
}
|
|
3342
|
+
|
|
3343
|
+
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGllU3Bpbm5lci5zdmVsdGUiLCJtYXBwaW5ncyI6IjtBQU9BLElBQUksMkJBQVksQ0FBQztBQUNqQixRQUFRLGtCQUFrQjtBQUMxQixRQUFRLFlBQVk7QUFDcEIsUUFBUSxXQUFXO0FBQ25CLFFBQVEsc0JBQXNCO0FBQzlCLFFBQVEsU0FBUztBQUNqQixRQUFRLE9BQU87QUFDZixRQUFRLFFBQVE7QUFDaEIsUUFBUSxNQUFNO0FBQ2QsUUFBUSxhQUFhO0FBQ3JCLFFBQVEsWUFBWTtBQUNwQjs7QUFFQSxJQUFJLFlBQVkscUJBQU0sQ0FBQztBQUN2QixRQUFRLGVBQWU7QUFDdkI7O0FBRUEsSUFBSSwyQkFBWSxPQUFPLENBQUM7QUFDeEIsUUFBUSxXQUFXO0FBQ25CLFFBQVEsa0NBQWtDO0FBQzFDLFFBQVEsd0NBQXdDO0FBQ2hELFFBQVEsWUFBWTtBQUNwQixRQUFRLHdDQUF3QztBQUNoRCxRQUFRLHVDQUF1QztBQUMvQyxRQUFRLG1CQUFtQjtBQUMzQixRQUFRLDJDQUEyQztBQUNuRCxRQUFRLFdBQVc7QUFDbkIsUUFBUSxZQUFZO0FBQ3BCLFFBQVEsMEJBQVcsNEJBQTRCO0FBQy9DLFFBQVEsdUJBQXVCO0FBQy9CLFFBQVEsa0JBQWtCO0FBQzFCLFFBQVEsUUFBUTtBQUNoQixRQUFRLFNBQVM7QUFDakI7O0FBRUEsSUFBSSwyQkFBWSxNQUFNLENBQUM7QUFDdkIsUUFBUSxXQUFXO0FBQ25CLFFBQVEsa0NBQWtDO0FBQzFDLFFBQVEsd0NBQXdDO0FBQ2hELFFBQVEsWUFBWTtBQUNwQixRQUFRLHVDQUF1QztBQUMvQyxRQUFRLHdDQUF3QztBQUNoRCxRQUFRLG1CQUFtQjtBQUMzQixRQUFRLDJDQUEyQztBQUNuRCxRQUFRLFdBQVc7QUFDbkIsUUFBUSxZQUFZO0FBQ3BCLFFBQVEsMEJBQVcsK0JBQStCO0FBQ2xELFFBQVEsdUJBQXVCO0FBQy9CLFFBQVEsa0JBQWtCO0FBQzFCLFFBQVEsUUFBUTtBQUNoQixRQUFRLFNBQVM7QUFDakI7O0FBRUEsSUFBSSwwQkFBVztBQUNmO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUEsSUFBSSwwQkFBVztBQUNmO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwibmFtZXMiOltdLCJpZ25vcmVMaXN0IjpbXSwic291cmNlcyI6WyJQaWVTcGlubmVyLnN2ZWx0ZSJdfQ== */`
|
|
3344
|
+
};
|
|
3345
|
+
function rt(e, t) {
|
|
3346
|
+
$n(new.target), Mt(t, !1, rt), Fn(e, Xi);
|
|
3347
|
+
let n = U(t, "fixed", 12, !1);
|
|
3348
|
+
var r = Gi();
|
|
3349
|
+
return Xe(() => Se(r, 1, `pie-loading ${(n() ? "fixed" : "") ?? ""}`, "svelte-1rfammn")), he(e, r), jt({
|
|
3350
|
+
get fixed() {
|
|
3351
|
+
return n();
|
|
3352
|
+
},
|
|
3353
|
+
set fixed(s) {
|
|
3354
|
+
n(s), E();
|
|
3355
|
+
},
|
|
3356
|
+
...Rn()
|
|
3357
|
+
});
|
|
3358
|
+
}
|
|
3359
|
+
En(rt);
|
|
3360
|
+
Cn(rt, { fixed: {} }, [], [], !0);
|
|
3361
|
+
const en = (e) => {
|
|
3166
3362
|
const t = "--version-", n = (c) => {
|
|
3167
3363
|
const a = c.match(`${t}(\\d+-\\d+-\\d+)$`);
|
|
3168
3364
|
return a ? {
|
|
@@ -3203,8 +3399,8 @@ const Jt = (e) => {
|
|
|
3203
3399
|
if (o[a])
|
|
3204
3400
|
return c;
|
|
3205
3401
|
const d = Object.entries(s).filter(([f, { versionedName: g }]) => {
|
|
3206
|
-
const { baseName:
|
|
3207
|
-
return
|
|
3402
|
+
const { baseName: v } = n(f);
|
|
3403
|
+
return v === a;
|
|
3208
3404
|
});
|
|
3209
3405
|
if (d.length > 0) {
|
|
3210
3406
|
const [, { versionedName: f }] = d[0];
|
|
@@ -3225,10 +3421,10 @@ const Jt = (e) => {
|
|
|
3225
3421
|
}
|
|
3226
3422
|
};
|
|
3227
3423
|
};
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
var
|
|
3231
|
-
/* @__PURE__ */
|
|
3424
|
+
wn();
|
|
3425
|
+
Qe[P] = "src/lib/tags/pie-fixed-player/PieFixedPlayer.svelte";
|
|
3426
|
+
var Hi = Ce(
|
|
3427
|
+
/* @__PURE__ */ Ue(`<div class="pie-player-error" style="
|
|
3232
3428
|
padding: 20px;
|
|
3233
3429
|
margin: 20px;
|
|
3234
3430
|
border: 2px solid #d32f2f;
|
|
@@ -3237,10 +3433,10 @@ var ji = xe(
|
|
|
3237
3433
|
color: #c62828;
|
|
3238
3434
|
font-family: sans-serif;
|
|
3239
3435
|
"><h3 style="margin: 0 0 10px 0">⚠️ Configuration Error</h3> <p style="margin: 0"> </p></div>`),
|
|
3240
|
-
|
|
3241
|
-
[[
|
|
3242
|
-
),
|
|
3243
|
-
const
|
|
3436
|
+
Qe[P],
|
|
3437
|
+
[[338, 2, [[347, 3], [348, 3]]]]
|
|
3438
|
+
), Yi = Ce(/* @__PURE__ */ Ue('<div class="pie-stimulus-container" style="display: flex; gap: 20px; width: 100%;"><div style="flex: 1; min-width: 0;"><!></div> <div style="flex: 1; min-width: 0;"><!></div></div>'), Qe[P], [[355, 2, [[356, 3], [372, 3]]]]), Zi = Ce(/* @__PURE__ */ Ue("<div><!></div>"), Qe[P], [[391, 2]]), Ki = Ce(/* @__PURE__ */ Ue("<div><!></div>"), Qe[P], [[336, 0]]);
|
|
3439
|
+
const eo = {
|
|
3244
3440
|
hash: "svelte-10l24ug",
|
|
3245
3441
|
code: `
|
|
3246
3442
|
:host {
|
|
@@ -3256,193 +3452,192 @@ const Vi = {
|
|
|
3256
3452
|
width: 100%;
|
|
3257
3453
|
}
|
|
3258
3454
|
|
|
3259
|
-
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
3455
|
+
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGllRml4ZWRQbGF5ZXIuc3ZlbHRlIiwibWFwcGluZ3MiOiI7QUE4WkEsQ0FBQyxLQUFLLENBQUM7QUFDUCxFQUFFLGNBQWM7QUFDaEI7O0FBRUEsQ0FBUyxpQkFBa0IsQ0FBQztBQUM1QixFQUFFLFdBQVc7QUFDYjs7QUFFQSxDQUFTLHNCQUF1QjtBQUNoQyxDQUFTLDBCQUEyQixDQUFDO0FBQ3JDLEVBQUUsV0FBVztBQUNiIiwibmFtZXMiOltdLCJpZ25vcmVMaXN0IjpbXSwic291cmNlcyI6WyJQaWVGaXhlZFBsYXllci5zdmVsdGUiXX0= */`
|
|
3260
3456
|
};
|
|
3261
|
-
function
|
|
3262
|
-
|
|
3263
|
-
let n =
|
|
3264
|
-
const
|
|
3265
|
-
if (
|
|
3266
|
-
const _ = String(a()),
|
|
3267
|
-
if (
|
|
3457
|
+
function Qe(e, t) {
|
|
3458
|
+
$n(new.target), Mt(t, !0, Qe), Fn(e, eo);
|
|
3459
|
+
let n = U(t, "config", 7, null), r = U(t, "session", 23, () => ({ id: "", data: [] })), s = U(t, "env", 23, () => ({ mode: "gather", role: "student" })), i = U(t, "addCorrectResponse", 7, !1), o = U(t, "renderStimulus", 7, !0), l = U(t, "allowedResize", 7, !1), c = U(t, "showBottomBorder", 7, !1), a = U(t, "debug", 7, ""), u = U(t, "customClassname", 7, ""), d = U(t, "containerClass", 7, ""), f = U(t, "passageContainerClass", 7, ""), g = U(t, "externalStyleUrls", 7, ""), v = U(t, "bundleType", 7, "player.js"), b = U(t, "loaderConfig", 7, $e);
|
|
3460
|
+
const $ = Q(typeof window, "undefined", !1) && Q(typeof document, "undefined", !1), I = K(() => {
|
|
3461
|
+
if (Q(a(), void 0, !1) && Q(a(), null, !1)) {
|
|
3462
|
+
const _ = String(a()), w = !(Q(_.toLowerCase(), "false") || Q(_, "0") || Q(_, ""));
|
|
3463
|
+
if ($)
|
|
3268
3464
|
try {
|
|
3269
|
-
window.PIE_DEBUG =
|
|
3465
|
+
window.PIE_DEBUG = w, console.log(...Kn("log", "[pie-fixed-player] Setting PIE_DEBUG:", w, "from debug prop:", a(), "type:", typeof a()));
|
|
3270
3466
|
} catch {
|
|
3271
3467
|
}
|
|
3272
|
-
return
|
|
3273
|
-
}
|
|
3274
|
-
const h =
|
|
3275
|
-
return
|
|
3276
|
-
}),
|
|
3277
|
-
let
|
|
3278
|
-
const
|
|
3279
|
-
|
|
3468
|
+
return w;
|
|
3469
|
+
}
|
|
3470
|
+
const h = Ze();
|
|
3471
|
+
return $ && console.log(...Kn("log", "[pie-fixed-player] Using global PIE_DEBUG:", h)), h;
|
|
3472
|
+
}), k = Ae("pie-fixed-player", () => p(I));
|
|
3473
|
+
let A = T(!0), N = T(null), S = T(null), F = T(null), M = T(null);
|
|
3474
|
+
const W = u() || `pie-player-${Date.now().toString(36)}`;
|
|
3475
|
+
Ee(() => {
|
|
3280
3476
|
if (n()) {
|
|
3281
3477
|
performance.mark("pie-load-end");
|
|
3282
3478
|
try {
|
|
3283
|
-
const h =
|
|
3479
|
+
const h = Q(typeof n(), "string") ? JSON.parse(n()) : n();
|
|
3284
3480
|
if (h.pie && h.passage) {
|
|
3285
|
-
const _ =
|
|
3286
|
-
|
|
3481
|
+
const _ = en({ config: h.pie }), w = en({ config: h.passage });
|
|
3482
|
+
y(S, _.config, !0), y(F, o() ? w.config : null, !0), y(A, !1), y(N, null);
|
|
3287
3483
|
} else if (h.elements || h.models || h.markup) {
|
|
3288
|
-
const _ =
|
|
3289
|
-
|
|
3484
|
+
const _ = en({ config: h });
|
|
3485
|
+
y(S, _.config, !0), y(F, null), y(A, !1), y(N, null);
|
|
3290
3486
|
} else {
|
|
3291
3487
|
const _ = "Invalid config: must contain elements, models, and markup, or pie/passage structure";
|
|
3292
|
-
if (
|
|
3488
|
+
if (y(N, _), y(A, !1), $ && b()?.trackPageActions)
|
|
3293
3489
|
try {
|
|
3294
|
-
const
|
|
3295
|
-
|
|
3490
|
+
const w = window?.newrelic;
|
|
3491
|
+
w && Q(typeof w.noticeError, "function") && w.noticeError(new Error(_), {
|
|
3296
3492
|
component: "pie-fixed-player",
|
|
3297
3493
|
errorType: "InvalidConfig"
|
|
3298
3494
|
});
|
|
3299
3495
|
} catch {
|
|
3300
|
-
|
|
3496
|
+
k.debug("New Relic tracking skipped (InvalidConfig)");
|
|
3301
3497
|
}
|
|
3302
3498
|
}
|
|
3303
3499
|
} catch (h) {
|
|
3304
3500
|
const _ = `Error parsing config: ${h.message}`;
|
|
3305
|
-
if (
|
|
3501
|
+
if (y(N, _), y(A, !1), $ && b()?.trackPageActions)
|
|
3306
3502
|
try {
|
|
3307
|
-
const
|
|
3308
|
-
|
|
3503
|
+
const w = window?.newrelic;
|
|
3504
|
+
w && Q(typeof w.noticeError, "function") && w.noticeError(h, {
|
|
3309
3505
|
component: "pie-fixed-player",
|
|
3310
3506
|
errorType: "ConfigParseError"
|
|
3311
3507
|
});
|
|
3312
3508
|
} catch {
|
|
3313
|
-
|
|
3509
|
+
k.debug("New Relic tracking skipped (ConfigParseError)");
|
|
3314
3510
|
}
|
|
3315
3511
|
}
|
|
3316
3512
|
} else
|
|
3317
|
-
|
|
3513
|
+
y(S, null), y(F, null), y(A, !0);
|
|
3318
3514
|
});
|
|
3319
|
-
const
|
|
3320
|
-
if (!(
|
|
3515
|
+
const Me = async (h) => {
|
|
3516
|
+
if (!(!$ || !h || Q(typeof h, "string", !1))) {
|
|
3321
3517
|
if (document.querySelector(`style[data-pie-style="${h}"]`)) {
|
|
3322
|
-
|
|
3518
|
+
k.debug(`Stylesheet already loaded: ${h}`);
|
|
3323
3519
|
return;
|
|
3324
3520
|
}
|
|
3325
3521
|
try {
|
|
3326
|
-
const
|
|
3327
|
-
|
|
3522
|
+
const re = (await (await fetch(h)).text()).replace(/([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g, `.pie-fixed-player.${W} $1$2`), Z = document.createElement("style");
|
|
3523
|
+
Z.setAttribute("data-pie-style", h), Z.textContent = re, document.head.appendChild(Z), k.info(`✅ Loaded and scoped stylesheet: ${h}`);
|
|
3328
3524
|
} catch (_) {
|
|
3329
|
-
|
|
3525
|
+
k.error(`❌ Failed to load external stylesheet: ${h}`, _);
|
|
3330
3526
|
}
|
|
3331
3527
|
}
|
|
3332
3528
|
};
|
|
3333
|
-
|
|
3334
|
-
g() &&
|
|
3335
|
-
_ &&
|
|
3529
|
+
Ee(() => {
|
|
3530
|
+
g() && Q(typeof g(), "string") && g().split(",").map((_) => _.trim()).forEach((_) => {
|
|
3531
|
+
_ && Me(_);
|
|
3336
3532
|
});
|
|
3337
|
-
}),
|
|
3338
|
-
if (!p(
|
|
3339
|
-
const h = p(
|
|
3533
|
+
}), Ee(() => {
|
|
3534
|
+
if (!p(S)?.resources?.stylesheets) return;
|
|
3535
|
+
const h = p(S).resources.stylesheets;
|
|
3340
3536
|
Array.isArray(h) && h.forEach((_) => {
|
|
3341
|
-
const
|
|
3342
|
-
|
|
3537
|
+
const w = _?.url;
|
|
3538
|
+
w && Q(typeof w, "string") && Me(w);
|
|
3343
3539
|
});
|
|
3344
|
-
}),
|
|
3345
|
-
c() &&
|
|
3346
|
-
Object.keys(p(
|
|
3347
|
-
document.querySelectorAll(_).forEach((
|
|
3348
|
-
|
|
3540
|
+
}), Ee(() => {
|
|
3541
|
+
c() && Q(s().mode, "evaluate") && p(S)?.elements && Cr().then(() => {
|
|
3542
|
+
Object.keys(p(S).elements).forEach((_) => {
|
|
3543
|
+
document.querySelectorAll(_).forEach((re) => {
|
|
3544
|
+
re instanceof HTMLElement && (re.style.borderBottom = "1px solid #ddd", re.style.paddingBottom = "20px", re.style.marginBottom = "20px");
|
|
3349
3545
|
});
|
|
3350
3546
|
});
|
|
3351
3547
|
});
|
|
3352
3548
|
});
|
|
3353
|
-
const
|
|
3549
|
+
const Y = (h) => {
|
|
3354
3550
|
const _ = new CustomEvent(h.type, {
|
|
3355
3551
|
detail: h.detail,
|
|
3356
3552
|
bubbles: !0,
|
|
3357
3553
|
composed: !0
|
|
3358
3554
|
});
|
|
3359
|
-
p(
|
|
3360
|
-
},
|
|
3361
|
-
|
|
3555
|
+
p(M)?.parentElement ? (p(M).parentElement.dispatchEvent(_), k.debug(`Dispatched ${h.type} event from custom element host`)) : k.warn("⚠️ Cannot dispatch event: custom element host not found");
|
|
3556
|
+
}, je = (h) => {
|
|
3557
|
+
Y(h);
|
|
3362
3558
|
};
|
|
3363
|
-
var
|
|
3364
|
-
|
|
3365
|
-
var
|
|
3559
|
+
var Be = Ki();
|
|
3560
|
+
Se(Be, 1, `pie-fixed-player ${W ?? ""}`);
|
|
3561
|
+
var Vt = le(Be);
|
|
3366
3562
|
{
|
|
3367
|
-
var
|
|
3368
|
-
var _ =
|
|
3369
|
-
oe(
|
|
3370
|
-
},
|
|
3563
|
+
var qt = (h) => {
|
|
3564
|
+
var _ = Hi(), w = sn(le(_), 2), re = le(w, !0);
|
|
3565
|
+
oe(w), oe(_), Xe(() => vi(re, p(N))), he(h, _);
|
|
3566
|
+
}, m = (h, _) => {
|
|
3371
3567
|
{
|
|
3372
|
-
var
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
}, X = (ie, Mt) => {
|
|
3568
|
+
var w = (Z) => {
|
|
3569
|
+
rt(Z, {});
|
|
3570
|
+
}, re = (Z, Wr) => {
|
|
3376
3571
|
{
|
|
3377
|
-
var
|
|
3378
|
-
var
|
|
3379
|
-
const
|
|
3380
|
-
ue(
|
|
3572
|
+
var Gr = (ze) => {
|
|
3573
|
+
var ye = Yi(), Ve = le(ye), Jt = le(Ve);
|
|
3574
|
+
const Wt = K(() => Q(typeof s(), "string") ? JSON.parse(s()) : s()), Gt = K(() => (Q(typeof r(), "string") ? JSON.parse(r()) : r()).data || []), be = K(() => Q(v(), "client-player.js") ? z.clientPlayer : z.player);
|
|
3575
|
+
ue(Jt, {
|
|
3381
3576
|
get itemConfig() {
|
|
3382
|
-
return p(
|
|
3577
|
+
return p(F);
|
|
3383
3578
|
},
|
|
3384
3579
|
get env() {
|
|
3385
|
-
return p(
|
|
3580
|
+
return p(Wt);
|
|
3386
3581
|
},
|
|
3387
3582
|
get session() {
|
|
3388
|
-
return p(
|
|
3583
|
+
return p(Gt);
|
|
3389
3584
|
},
|
|
3390
3585
|
get addCorrectResponse() {
|
|
3391
3586
|
return i();
|
|
3392
3587
|
},
|
|
3393
|
-
customClassname:
|
|
3588
|
+
customClassname: W,
|
|
3394
3589
|
get bundleType() {
|
|
3395
|
-
return p(
|
|
3590
|
+
return p(be);
|
|
3396
3591
|
},
|
|
3397
|
-
onLoadComplete: (G) =>
|
|
3398
|
-
onPlayerError: (G) =>
|
|
3399
|
-
onSessionChanged: (G) =>
|
|
3400
|
-
}), oe(
|
|
3401
|
-
var
|
|
3402
|
-
const
|
|
3403
|
-
ue(
|
|
3592
|
+
onLoadComplete: (G) => Y(new CustomEvent("load-complete", { detail: G })),
|
|
3593
|
+
onPlayerError: (G) => Y(new CustomEvent("player-error", { detail: G })),
|
|
3594
|
+
onSessionChanged: (G) => je(new CustomEvent("session-changed", { detail: G }))
|
|
3595
|
+
}), oe(Ve);
|
|
3596
|
+
var Xt = sn(Ve, 2), Hr = le(Xt);
|
|
3597
|
+
const Yr = K(() => Q(typeof s(), "string") ? JSON.parse(s()) : s()), Zr = K(() => (Q(typeof r(), "string") ? JSON.parse(r()) : r()).data || []), Kr = K(() => Q(v(), "client-player.js") ? z.clientPlayer : z.player);
|
|
3598
|
+
ue(Hr, {
|
|
3404
3599
|
get itemConfig() {
|
|
3405
|
-
return p(
|
|
3600
|
+
return p(S);
|
|
3406
3601
|
},
|
|
3407
3602
|
get env() {
|
|
3408
|
-
return p(
|
|
3603
|
+
return p(Yr);
|
|
3409
3604
|
},
|
|
3410
3605
|
get session() {
|
|
3411
|
-
return p(
|
|
3606
|
+
return p(Zr);
|
|
3412
3607
|
},
|
|
3413
3608
|
get addCorrectResponse() {
|
|
3414
3609
|
return i();
|
|
3415
3610
|
},
|
|
3416
|
-
customClassname:
|
|
3611
|
+
customClassname: W,
|
|
3417
3612
|
get bundleType() {
|
|
3418
|
-
return p(
|
|
3613
|
+
return p(Kr);
|
|
3419
3614
|
},
|
|
3420
|
-
onLoadComplete: (G) =>
|
|
3421
|
-
onPlayerError: (G) =>
|
|
3422
|
-
onSessionChanged: (G) =>
|
|
3423
|
-
}), oe(
|
|
3424
|
-
|
|
3425
|
-
}),
|
|
3426
|
-
},
|
|
3427
|
-
var
|
|
3428
|
-
const
|
|
3429
|
-
ue(
|
|
3615
|
+
onLoadComplete: (G) => Y(new CustomEvent("load-complete", { detail: G })),
|
|
3616
|
+
onPlayerError: (G) => Y(new CustomEvent("player-error", { detail: G })),
|
|
3617
|
+
onSessionChanged: (G) => je(new CustomEvent("session-changed", { detail: G }))
|
|
3618
|
+
}), oe(Xt), oe(ye), Xe(() => {
|
|
3619
|
+
Se(Ve, 1, `player-stimulus-container ${f() ?? ""}`), Se(Xt, 1, `player-item-container ${d() ?? ""}`);
|
|
3620
|
+
}), he(ze, ye);
|
|
3621
|
+
}, Xr = (ze) => {
|
|
3622
|
+
var ye = Zi(), Ve = le(ye);
|
|
3623
|
+
const Jt = K(() => Q(typeof s(), "string") ? JSON.parse(s()) : s()), Wt = K(() => (Q(typeof r(), "string") ? JSON.parse(r()) : r()).data || []), Gt = K(() => Q(v(), "client-player.js") ? z.clientPlayer : z.player);
|
|
3624
|
+
ue(Ve, {
|
|
3430
3625
|
get itemConfig() {
|
|
3431
|
-
return p(
|
|
3626
|
+
return p(S);
|
|
3432
3627
|
},
|
|
3433
3628
|
get passageConfig() {
|
|
3434
|
-
return p(
|
|
3629
|
+
return p(F);
|
|
3435
3630
|
},
|
|
3436
3631
|
get env() {
|
|
3437
|
-
return p(
|
|
3632
|
+
return p(Jt);
|
|
3438
3633
|
},
|
|
3439
3634
|
get session() {
|
|
3440
|
-
return p(
|
|
3635
|
+
return p(Wt);
|
|
3441
3636
|
},
|
|
3442
3637
|
get addCorrectResponse() {
|
|
3443
3638
|
return i();
|
|
3444
3639
|
},
|
|
3445
|
-
customClassname:
|
|
3640
|
+
customClassname: W,
|
|
3446
3641
|
get passageContainerClass() {
|
|
3447
3642
|
return f();
|
|
3448
3643
|
},
|
|
@@ -3450,39 +3645,39 @@ function be(e, t) {
|
|
|
3450
3645
|
return d();
|
|
3451
3646
|
},
|
|
3452
3647
|
get bundleType() {
|
|
3453
|
-
return p(
|
|
3648
|
+
return p(Gt);
|
|
3454
3649
|
},
|
|
3455
3650
|
get loaderConfig() {
|
|
3456
|
-
return
|
|
3651
|
+
return b();
|
|
3457
3652
|
},
|
|
3458
|
-
onLoadComplete: (
|
|
3459
|
-
onPlayerError: (
|
|
3460
|
-
onSessionChanged: (
|
|
3461
|
-
}), oe(
|
|
3653
|
+
onLoadComplete: (be) => Y(new CustomEvent("load-complete", { detail: be })),
|
|
3654
|
+
onPlayerError: (be) => Y(new CustomEvent("player-error", { detail: be })),
|
|
3655
|
+
onSessionChanged: (be) => je(new CustomEvent("session-changed", { detail: be }))
|
|
3656
|
+
}), oe(ye), Xe(() => Se(ye, 1, `player-item-container ${d() ?? ""}`)), he(ze, ye);
|
|
3462
3657
|
};
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
(
|
|
3466
|
-
p(
|
|
3658
|
+
ut(
|
|
3659
|
+
Z,
|
|
3660
|
+
(ze) => {
|
|
3661
|
+
p(F) && o() ? ze(Gr) : ze(Xr, !1);
|
|
3467
3662
|
},
|
|
3468
|
-
|
|
3663
|
+
Wr
|
|
3469
3664
|
);
|
|
3470
3665
|
}
|
|
3471
3666
|
};
|
|
3472
|
-
|
|
3667
|
+
ut(
|
|
3473
3668
|
h,
|
|
3474
|
-
(
|
|
3475
|
-
p(
|
|
3669
|
+
(Z) => {
|
|
3670
|
+
p(A) || !p(S) ? Z(w) : Z(re, !1);
|
|
3476
3671
|
},
|
|
3477
3672
|
_
|
|
3478
3673
|
);
|
|
3479
3674
|
}
|
|
3480
3675
|
};
|
|
3481
|
-
|
|
3482
|
-
p(
|
|
3676
|
+
ut(Vt, (h) => {
|
|
3677
|
+
p(N) ? h(qt) : h(m, !1);
|
|
3483
3678
|
});
|
|
3484
3679
|
}
|
|
3485
|
-
return oe(
|
|
3680
|
+
return oe(Be), Mr(Be, (h) => y(M, h), () => p(M)), he(e, Be), jt({
|
|
3486
3681
|
get config() {
|
|
3487
3682
|
return n();
|
|
3488
3683
|
},
|
|
@@ -3556,23 +3751,23 @@ function be(e, t) {
|
|
|
3556
3751
|
g(h), E();
|
|
3557
3752
|
},
|
|
3558
3753
|
get bundleType() {
|
|
3559
|
-
return
|
|
3754
|
+
return v();
|
|
3560
3755
|
},
|
|
3561
3756
|
set bundleType(h = "player.js") {
|
|
3562
|
-
|
|
3757
|
+
v(h), E();
|
|
3563
3758
|
},
|
|
3564
3759
|
get loaderConfig() {
|
|
3565
|
-
return
|
|
3760
|
+
return b();
|
|
3566
3761
|
},
|
|
3567
|
-
set loaderConfig(h =
|
|
3568
|
-
|
|
3762
|
+
set loaderConfig(h = $e) {
|
|
3763
|
+
b(h), E();
|
|
3569
3764
|
},
|
|
3570
|
-
...
|
|
3765
|
+
...Rn()
|
|
3571
3766
|
});
|
|
3572
3767
|
}
|
|
3573
|
-
|
|
3574
|
-
customElements.define("pie-fixed-player",
|
|
3575
|
-
|
|
3768
|
+
En(Qe);
|
|
3769
|
+
customElements.define("pie-fixed-player", Cn(
|
|
3770
|
+
Qe,
|
|
3576
3771
|
{
|
|
3577
3772
|
config: { attribute: "config", type: "Object" },
|
|
3578
3773
|
session: { attribute: "session", type: "Object" },
|