@pie-framework/pie-fixed-player-static 1.0.0-351df72.7 → 1.0.0-351df72.8
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/pie-elements-bundle-351df72.js +98 -98
- package/dist/pie-fixed-player.js +1329 -1298
- package/package.json +3 -3
package/dist/pie-fixed-player.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Mr = Object.defineProperty;
|
|
2
|
+
var un = (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 zr = (e, t, n) => t in e ? Mr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var K = (e, t, n) => zr(e, typeof t != "symbol" ? t + "" : t, n), fn = (e, t, n) => t.has(e) || un("Cannot " + n);
|
|
7
|
+
var Q = (e, t, n) => (fn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Dt = (e, t, n) => t.has(e) ? un("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), At = (e, t, n, r) => (fn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
8
|
+
const qr = "5";
|
|
9
|
+
var An;
|
|
10
|
+
typeof window < "u" && ((An = window.__svelte ?? (window.__svelte = {})).v ?? (An.v = /* @__PURE__ */ new Set())).add(qr);
|
|
11
|
+
const Vr = 1, Jr = 4, Yr = 8, Wr = 16, Gr = 2, Ct = "[", Xt = "[!", Ht = "]", Ne = {}, M = Symbol(), R = Symbol("filename"), dn = !0, ae = 2, Nn = 4, Pt = 8, Zt = 16, he = 32, Ie = 64, vt = 128, Z = 256, ht = 512, q = 1024, pe = 2048, Re = 4096, Qe = 8192, St = 16384, Xr = 32768, Kt = 65536, jn = 1 << 18, Hr = 1 << 19, Qn = 1 << 20, Mt = 1 << 21, we = Symbol("$state"), Ye = Symbol("$state metadata"), Mn = Symbol("legacy props");
|
|
12
|
+
var en = Array.isArray, Zr = Array.prototype.indexOf, Kr = Array.from, pt = Object.keys, ie = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, zn = Object.prototype, es = Array.prototype, qn = Object.getPrototypeOf, vn = Object.isExtensible;
|
|
13
|
+
function Vn(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 tt = [], zt = [];
|
|
18
|
+
function Jn() {
|
|
19
|
+
var e = tt;
|
|
20
|
+
tt = [], Vn(e);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
var e =
|
|
24
|
-
|
|
22
|
+
function ts() {
|
|
23
|
+
var e = zt;
|
|
24
|
+
zt = [], Vn(e);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
26
|
+
function Yn(e) {
|
|
27
|
+
tt.length === 0 && queueMicrotask(Jn), tt.push(e);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
29
|
+
function hn() {
|
|
30
|
+
tt.length > 0 && Jn(), zt.length > 0 && ts();
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Wn(e) {
|
|
33
33
|
return e === this.v;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function ns(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 Gn(e) {
|
|
39
|
+
return !ns(e, this.v);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function rs(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 ss(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 os() {
|
|
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 is(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 ls() {
|
|
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 as(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 cs() {
|
|
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 us() {
|
|
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 ds(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,51 @@ https://svelte.dev/e/rune_outside_svelte`);
|
|
|
116
116
|
throw t.name = "Svelte error", t;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function vs() {
|
|
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 hs() {
|
|
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 ps() {
|
|
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
|
-
var
|
|
139
|
-
function
|
|
137
|
+
let gs = !1;
|
|
138
|
+
var _s = "font-weight: bold", ms = "font-weight: normal";
|
|
139
|
+
function pn(e) {
|
|
140
140
|
console.warn(`%c[svelte] state_snapshot_uncloneable
|
|
141
141
|
%c${e ? `The following properties cannot be cloned with \`$state.snapshot\` — the return value contains the originals:
|
|
142
142
|
|
|
143
143
|
${e}` : "Value cannot be cloned with `$state.snapshot` — the original value was returned"}
|
|
144
|
-
https://svelte.dev/e/state_snapshot_uncloneable`,
|
|
144
|
+
https://svelte.dev/e/state_snapshot_uncloneable`, _s, ms);
|
|
145
145
|
}
|
|
146
|
-
const
|
|
147
|
-
function
|
|
146
|
+
const ys = [];
|
|
147
|
+
function ws(e, t = !1) {
|
|
148
148
|
if (!t) {
|
|
149
|
-
const n = [], r =
|
|
149
|
+
const n = [], r = Ge(e, /* @__PURE__ */ new Map(), "", n);
|
|
150
150
|
if (n.length === 1 && n[0] === "")
|
|
151
|
-
|
|
151
|
+
pn();
|
|
152
152
|
else if (n.length > 0) {
|
|
153
153
|
const s = n.length > 10 ? n.slice(0, 7) : n.slice(0, 10), o = n.length - s.length;
|
|
154
154
|
let i = s.map((a) => `- <value>${a}`).join(`
|
|
155
155
|
`);
|
|
156
156
|
o > 0 && (i += `
|
|
157
|
-
- ...and ${o} more`),
|
|
157
|
+
- ...and ${o} more`), pn(i);
|
|
158
158
|
}
|
|
159
159
|
return r;
|
|
160
160
|
}
|
|
161
|
-
return
|
|
161
|
+
return Ge(e, /* @__PURE__ */ new Map(), "", ys);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Ge(e, t, n, r, s = null) {
|
|
164
164
|
if (typeof e == "object" && e !== null) {
|
|
165
165
|
var o = t.get(e);
|
|
166
166
|
if (o !== void 0) return o;
|
|
@@ -172,7 +172,7 @@ function Ye(e, t, n, r, s = null) {
|
|
|
172
172
|
/** @type {Snapshot<T>} */
|
|
173
173
|
new Set(e)
|
|
174
174
|
);
|
|
175
|
-
if (
|
|
175
|
+
if (en(e)) {
|
|
176
176
|
var i = (
|
|
177
177
|
/** @type {Snapshot<any>} */
|
|
178
178
|
Array(e.length)
|
|
@@ -180,14 +180,14 @@ function Ye(e, t, n, r, s = null) {
|
|
|
180
180
|
t.set(e, i), s !== null && t.set(s, i);
|
|
181
181
|
for (var a = 0; a < e.length; a += 1) {
|
|
182
182
|
var c = e[a];
|
|
183
|
-
a in e && (i[a] =
|
|
183
|
+
a in e && (i[a] = Ge(c, t, `${n}[${a}]`, r));
|
|
184
184
|
}
|
|
185
185
|
return i;
|
|
186
186
|
}
|
|
187
|
-
if (
|
|
187
|
+
if (qn(e) === zn) {
|
|
188
188
|
i = {}, t.set(e, i), s !== null && t.set(s, i);
|
|
189
189
|
for (var l in e)
|
|
190
|
-
i[l] =
|
|
190
|
+
i[l] = Ge(e[l], t, `${n}.${l}`, r);
|
|
191
191
|
return i;
|
|
192
192
|
}
|
|
193
193
|
if (e instanceof Date)
|
|
@@ -197,7 +197,7 @@ function Ye(e, t, n, r, s = null) {
|
|
|
197
197
|
);
|
|
198
198
|
if (typeof /** @type {T & { toJSON?: any } } */
|
|
199
199
|
e.toJSON == "function")
|
|
200
|
-
return
|
|
200
|
+
return Ge(
|
|
201
201
|
/** @type {T & { toJSON(): any } } */
|
|
202
202
|
e.toJSON(),
|
|
203
203
|
t,
|
|
@@ -222,229 +222,229 @@ function Ye(e, t, n, r, s = null) {
|
|
|
222
222
|
e;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
var
|
|
226
|
-
function
|
|
227
|
-
if (typeof e != "object" || e === null ||
|
|
225
|
+
var We = null;
|
|
226
|
+
function Pe(e, t) {
|
|
227
|
+
if (typeof e != "object" || e === null || we in e)
|
|
228
228
|
return e;
|
|
229
|
-
const n =
|
|
230
|
-
if (n !==
|
|
229
|
+
const n = qn(e);
|
|
230
|
+
if (n !== zn && n !== es)
|
|
231
231
|
return e;
|
|
232
|
-
var r = /* @__PURE__ */ new Map(), s =
|
|
233
|
-
var u =
|
|
234
|
-
|
|
235
|
-
var
|
|
232
|
+
var r = /* @__PURE__ */ new Map(), s = en(e), o = D(0), i = b, a = (l) => {
|
|
233
|
+
var u = b;
|
|
234
|
+
be(i);
|
|
235
|
+
var d;
|
|
236
236
|
{
|
|
237
|
-
var
|
|
238
|
-
|
|
237
|
+
var f = We;
|
|
238
|
+
We = c, d = l(), We = f;
|
|
239
239
|
}
|
|
240
|
-
return
|
|
240
|
+
return be(u), d;
|
|
241
241
|
};
|
|
242
|
-
s && r.set("length",
|
|
242
|
+
s && r.set("length", D(
|
|
243
243
|
/** @type {any[]} */
|
|
244
244
|
e.length
|
|
245
245
|
));
|
|
246
246
|
var c;
|
|
247
247
|
if (c = {
|
|
248
|
-
parent:
|
|
248
|
+
parent: We,
|
|
249
249
|
owners: null
|
|
250
250
|
}, t) {
|
|
251
|
-
const l = t.v?.[
|
|
251
|
+
const l = t.v?.[Ye]?.owners;
|
|
252
252
|
c.owners = l ? new Set(l) : null;
|
|
253
253
|
} else
|
|
254
|
-
c.owners =
|
|
254
|
+
c.owners = We === null ? A !== null ? /* @__PURE__ */ new Set([A.function]) : null : /* @__PURE__ */ new Set();
|
|
255
255
|
return new Proxy(
|
|
256
256
|
/** @type {any} */
|
|
257
257
|
e,
|
|
258
258
|
{
|
|
259
|
-
defineProperty(l, u,
|
|
260
|
-
(!("value" in
|
|
261
|
-
var
|
|
262
|
-
return
|
|
263
|
-
|
|
264
|
-
a(() =>
|
|
259
|
+
defineProperty(l, u, d) {
|
|
260
|
+
(!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) && vs();
|
|
261
|
+
var f = r.get(u);
|
|
262
|
+
return f === void 0 ? (f = a(() => D(d.value)), r.set(u, f)) : w(
|
|
263
|
+
f,
|
|
264
|
+
a(() => Pe(d.value))
|
|
265
265
|
), !0;
|
|
266
266
|
},
|
|
267
267
|
deleteProperty(l, u) {
|
|
268
|
-
var
|
|
269
|
-
if (
|
|
268
|
+
var d = r.get(u);
|
|
269
|
+
if (d === void 0)
|
|
270
270
|
u in l && r.set(
|
|
271
271
|
u,
|
|
272
|
-
a(() =>
|
|
272
|
+
a(() => D(M))
|
|
273
273
|
);
|
|
274
274
|
else {
|
|
275
275
|
if (s && typeof u == "string") {
|
|
276
|
-
var
|
|
276
|
+
var f = (
|
|
277
277
|
/** @type {Source<number>} */
|
|
278
278
|
r.get("length")
|
|
279
|
-
),
|
|
280
|
-
Number.isInteger(
|
|
279
|
+
), h = Number(u);
|
|
280
|
+
Number.isInteger(h) && h < f.v && w(f, h);
|
|
281
281
|
}
|
|
282
|
-
|
|
282
|
+
w(d, M), gn(o);
|
|
283
283
|
}
|
|
284
284
|
return !0;
|
|
285
285
|
},
|
|
286
|
-
get(l, u,
|
|
287
|
-
if (u ===
|
|
286
|
+
get(l, u, d) {
|
|
287
|
+
if (u === Ye)
|
|
288
288
|
return c;
|
|
289
|
-
if (u ===
|
|
289
|
+
if (u === we)
|
|
290
290
|
return e;
|
|
291
|
-
var
|
|
292
|
-
if (
|
|
293
|
-
var
|
|
291
|
+
var f = r.get(u), h = u in l;
|
|
292
|
+
if (f === void 0 && (!h || Se(l, u)?.writable) && (f = a(() => D(Pe(h ? l[u] : M))), r.set(u, f)), f !== void 0) {
|
|
293
|
+
var _ = g(f);
|
|
294
294
|
{
|
|
295
|
-
var
|
|
296
|
-
|
|
295
|
+
var y = _?.[Ye];
|
|
296
|
+
y && y?.parent !== c && Sn(c, y);
|
|
297
297
|
}
|
|
298
|
-
return
|
|
298
|
+
return _ === M ? void 0 : _;
|
|
299
299
|
}
|
|
300
|
-
return Reflect.get(l, u,
|
|
300
|
+
return Reflect.get(l, u, d);
|
|
301
301
|
},
|
|
302
302
|
getOwnPropertyDescriptor(l, u) {
|
|
303
|
-
var
|
|
304
|
-
if (
|
|
305
|
-
var
|
|
306
|
-
|
|
307
|
-
} else if (
|
|
308
|
-
var
|
|
309
|
-
if (
|
|
303
|
+
var d = Reflect.getOwnPropertyDescriptor(l, u);
|
|
304
|
+
if (d && "value" in d) {
|
|
305
|
+
var f = r.get(u);
|
|
306
|
+
f && (d.value = g(f));
|
|
307
|
+
} else if (d === void 0) {
|
|
308
|
+
var h = r.get(u), _ = h?.v;
|
|
309
|
+
if (h !== void 0 && _ !== M)
|
|
310
310
|
return {
|
|
311
311
|
enumerable: !0,
|
|
312
312
|
configurable: !0,
|
|
313
|
-
value:
|
|
313
|
+
value: _,
|
|
314
314
|
writable: !0
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
|
-
return
|
|
317
|
+
return d;
|
|
318
318
|
},
|
|
319
319
|
has(l, u) {
|
|
320
|
-
if (u ===
|
|
320
|
+
if (u === Ye || u === we)
|
|
321
321
|
return !0;
|
|
322
|
-
var
|
|
323
|
-
if (
|
|
324
|
-
|
|
325
|
-
var
|
|
326
|
-
if (
|
|
322
|
+
var d = r.get(u), f = d !== void 0 && d.v !== M || Reflect.has(l, u);
|
|
323
|
+
if (d !== void 0 || P !== null && (!f || Se(l, u)?.writable)) {
|
|
324
|
+
d === void 0 && (d = a(() => D(f ? Pe(l[u]) : M)), r.set(u, d));
|
|
325
|
+
var h = g(d);
|
|
326
|
+
if (h === M)
|
|
327
327
|
return !1;
|
|
328
328
|
}
|
|
329
|
-
return
|
|
329
|
+
return f;
|
|
330
330
|
},
|
|
331
|
-
set(l, u,
|
|
332
|
-
var
|
|
331
|
+
set(l, u, d, f) {
|
|
332
|
+
var h = r.get(u), _ = u in l;
|
|
333
333
|
if (s && u === "length")
|
|
334
|
-
for (var
|
|
335
|
-
|
|
336
|
-
var
|
|
337
|
-
|
|
334
|
+
for (var y = d; y < /** @type {Source<number>} */
|
|
335
|
+
h.v; y += 1) {
|
|
336
|
+
var $ = r.get(y + "");
|
|
337
|
+
$ !== void 0 ? w($, M) : y in l && ($ = a(() => D(M)), r.set(y + "", $));
|
|
338
338
|
}
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
a(() =>
|
|
342
|
-
), r.set(u,
|
|
343
|
-
|
|
344
|
-
a(() =>
|
|
339
|
+
h === void 0 ? (!_ || Se(l, u)?.writable) && (h = a(() => D(void 0)), w(
|
|
340
|
+
h,
|
|
341
|
+
a(() => Pe(d))
|
|
342
|
+
), r.set(u, h)) : (_ = h.v !== M, w(
|
|
343
|
+
h,
|
|
344
|
+
a(() => Pe(d))
|
|
345
345
|
));
|
|
346
346
|
{
|
|
347
|
-
var O =
|
|
348
|
-
O && O?.parent !== c &&
|
|
347
|
+
var O = d?.[Ye];
|
|
348
|
+
O && O?.parent !== c && Sn(c, O), Js(c);
|
|
349
349
|
}
|
|
350
|
-
var
|
|
351
|
-
if (
|
|
350
|
+
var S = Reflect.getOwnPropertyDescriptor(l, u);
|
|
351
|
+
if (S?.set && S.set.call(f, d), !_) {
|
|
352
352
|
if (s && typeof u == "string") {
|
|
353
|
-
var
|
|
353
|
+
var U = (
|
|
354
354
|
/** @type {Source<number>} */
|
|
355
355
|
r.get("length")
|
|
356
|
-
),
|
|
357
|
-
Number.isInteger(
|
|
356
|
+
), k = Number(u);
|
|
357
|
+
Number.isInteger(k) && k >= U.v && w(U, k + 1);
|
|
358
358
|
}
|
|
359
|
-
|
|
359
|
+
gn(o);
|
|
360
360
|
}
|
|
361
361
|
return !0;
|
|
362
362
|
},
|
|
363
363
|
ownKeys(l) {
|
|
364
364
|
g(o);
|
|
365
|
-
var u = Reflect.ownKeys(l).filter((
|
|
366
|
-
var
|
|
367
|
-
return
|
|
365
|
+
var u = Reflect.ownKeys(l).filter((h) => {
|
|
366
|
+
var _ = r.get(h);
|
|
367
|
+
return _ === void 0 || _.v !== M;
|
|
368
368
|
});
|
|
369
|
-
for (var [
|
|
370
|
-
|
|
369
|
+
for (var [d, f] of r)
|
|
370
|
+
f.v !== M && !(d in l) && u.push(d);
|
|
371
371
|
return u;
|
|
372
372
|
},
|
|
373
373
|
setPrototypeOf() {
|
|
374
|
-
|
|
374
|
+
hs();
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
);
|
|
378
378
|
}
|
|
379
|
-
function
|
|
380
|
-
|
|
379
|
+
function gn(e, t = 1) {
|
|
380
|
+
w(e, e.v + t);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function Xe(e) {
|
|
383
383
|
try {
|
|
384
|
-
if (e !== null && typeof e == "object" &&
|
|
385
|
-
return e[
|
|
384
|
+
if (e !== null && typeof e == "object" && we in e)
|
|
385
|
+
return e[we];
|
|
386
386
|
} catch {
|
|
387
387
|
}
|
|
388
388
|
return e;
|
|
389
389
|
}
|
|
390
|
-
let
|
|
391
|
-
const
|
|
392
|
-
function
|
|
393
|
-
|
|
390
|
+
let je = /* @__PURE__ */ new Set();
|
|
391
|
+
const nt = /* @__PURE__ */ new Map();
|
|
392
|
+
function _n(e) {
|
|
393
|
+
je = e;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function Xn(e, t) {
|
|
396
396
|
var n = {
|
|
397
397
|
f: 0,
|
|
398
398
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
399
399
|
v: e,
|
|
400
400
|
reactions: null,
|
|
401
|
-
equals:
|
|
401
|
+
equals: Wn,
|
|
402
402
|
rv: 0,
|
|
403
403
|
wv: 0
|
|
404
404
|
};
|
|
405
405
|
return n;
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
const n =
|
|
409
|
-
return
|
|
407
|
+
function D(e, t) {
|
|
408
|
+
const n = Xn(e);
|
|
409
|
+
return rr(n), n;
|
|
410
410
|
}
|
|
411
411
|
// @__NO_SIDE_EFFECTS__
|
|
412
|
-
function
|
|
413
|
-
const n =
|
|
414
|
-
return t || (n.equals =
|
|
412
|
+
function Hn(e, t = !1) {
|
|
413
|
+
const n = Xn(e);
|
|
414
|
+
return t || (n.equals = Gn), n;
|
|
415
415
|
}
|
|
416
|
-
function
|
|
417
|
-
|
|
418
|
-
let r = n ?
|
|
419
|
-
return
|
|
416
|
+
function w(e, t, n = !1) {
|
|
417
|
+
b !== null && !oe && br() && (b.f & (ae | Zt)) !== 0 && !fe?.includes(e) && ps();
|
|
418
|
+
let r = n ? Pe(t, e) : t;
|
|
419
|
+
return bs(e, r);
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function bs(e, t) {
|
|
422
422
|
if (!e.equals(t)) {
|
|
423
423
|
var n = e.v;
|
|
424
|
-
if (
|
|
425
|
-
const r = Array.from(
|
|
424
|
+
if (it ? nt.set(e, t) : nt.set(e, n), e.v = t, e.wv = or(), Zn(e, pe), P !== null && (P.f & q) !== 0 && (P.f & (he | Ie)) === 0 && (X === null ? ks([e]) : X.push(e)), je.size > 0) {
|
|
425
|
+
const r = Array.from(je);
|
|
426
426
|
for (const s of r)
|
|
427
|
-
(s.f &
|
|
428
|
-
|
|
427
|
+
(s.f & q) !== 0 && te(s, Re), Ve(s) && It(s);
|
|
428
|
+
je.clear();
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
return t;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function Zn(e, t) {
|
|
434
434
|
var n = e.reactions;
|
|
435
435
|
if (n !== null)
|
|
436
436
|
for (var r = n.length, s = 0; s < r; s++) {
|
|
437
437
|
var o = n[s], i = o.f;
|
|
438
|
-
if ((i &
|
|
439
|
-
if ((i &
|
|
440
|
-
|
|
438
|
+
if ((i & pe) === 0) {
|
|
439
|
+
if ((i & jn) !== 0) {
|
|
440
|
+
je.add(o);
|
|
441
441
|
continue;
|
|
442
442
|
}
|
|
443
|
-
|
|
443
|
+
te(o, t), (i & (q | Z)) !== 0 && ((i & ae) !== 0 ? Zn(
|
|
444
444
|
/** @type {Derived} */
|
|
445
445
|
o,
|
|
446
|
-
|
|
447
|
-
) :
|
|
446
|
+
Re
|
|
447
|
+
) : Rt(
|
|
448
448
|
/** @type {Effect} */
|
|
449
449
|
o
|
|
450
450
|
));
|
|
@@ -452,16 +452,16 @@ function Gn(e, t) {
|
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
454
|
// @__NO_SIDE_EFFECTS__
|
|
455
|
-
function
|
|
456
|
-
var t =
|
|
455
|
+
function tn(e) {
|
|
456
|
+
var t = ae | pe, n = b !== null && (b.f & ae) !== 0 ? (
|
|
457
457
|
/** @type {Derived} */
|
|
458
|
-
|
|
458
|
+
b
|
|
459
459
|
) : null;
|
|
460
|
-
return
|
|
461
|
-
ctx:
|
|
460
|
+
return P === null || n !== null && (n.f & Z) !== 0 ? t |= Z : P.f |= Qn, {
|
|
461
|
+
ctx: A,
|
|
462
462
|
deps: null,
|
|
463
463
|
effects: null,
|
|
464
|
-
equals:
|
|
464
|
+
equals: Wn,
|
|
465
465
|
f: t,
|
|
466
466
|
fn: e,
|
|
467
467
|
reactions: null,
|
|
@@ -471,28 +471,28 @@ function Ht(e) {
|
|
|
471
471
|
null
|
|
472
472
|
),
|
|
473
473
|
wv: 0,
|
|
474
|
-
parent: n ??
|
|
474
|
+
parent: n ?? P
|
|
475
475
|
};
|
|
476
476
|
}
|
|
477
|
-
function
|
|
478
|
-
const t = /* @__PURE__ */
|
|
479
|
-
return
|
|
477
|
+
function ee(e) {
|
|
478
|
+
const t = /* @__PURE__ */ tn(e);
|
|
479
|
+
return rr(t), t;
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function Kn(e) {
|
|
482
482
|
var t = e.effects;
|
|
483
483
|
if (t !== null) {
|
|
484
484
|
e.effects = null;
|
|
485
485
|
for (var n = 0; n < t.length; n += 1)
|
|
486
|
-
|
|
486
|
+
ve(
|
|
487
487
|
/** @type {Effect} */
|
|
488
488
|
t[n]
|
|
489
489
|
);
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
let
|
|
493
|
-
function
|
|
492
|
+
let Nt = [];
|
|
493
|
+
function $s(e) {
|
|
494
494
|
for (var t = e.parent; t !== null; ) {
|
|
495
|
-
if ((t.f &
|
|
495
|
+
if ((t.f & ae) === 0)
|
|
496
496
|
return (
|
|
497
497
|
/** @type {Effect} */
|
|
498
498
|
t
|
|
@@ -501,89 +501,89 @@ function mo(e) {
|
|
|
501
501
|
}
|
|
502
502
|
return null;
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
var t, n =
|
|
506
|
-
|
|
504
|
+
function Es(e) {
|
|
505
|
+
var t, n = P;
|
|
506
|
+
Me($s(e));
|
|
507
507
|
{
|
|
508
|
-
let r =
|
|
509
|
-
|
|
508
|
+
let r = je;
|
|
509
|
+
_n(/* @__PURE__ */ new Set());
|
|
510
510
|
try {
|
|
511
|
-
|
|
511
|
+
Nt.includes(e) && os(), Nt.push(e), Kn(e), t = lr(e);
|
|
512
512
|
} finally {
|
|
513
|
-
|
|
513
|
+
Me(n), _n(r), Nt.pop();
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
return t;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
519
|
-
var t =
|
|
520
|
-
|
|
518
|
+
function er(e) {
|
|
519
|
+
var t = Es(e), n = (ye || (e.f & Z) !== 0) && e.deps !== null ? Re : q;
|
|
520
|
+
te(e, n), e.equals(t) || (e.v = t, e.wv = or());
|
|
521
521
|
}
|
|
522
|
-
var
|
|
523
|
-
function
|
|
522
|
+
var ze = "font-weight: bold", qe = "font-weight: normal";
|
|
523
|
+
function Cs(e) {
|
|
524
524
|
console.warn(`%c[svelte] console_log_state
|
|
525
525
|
%cYour \`console.${e}\` contained \`$state\` proxies. Consider using \`$inspect(...)\` or \`$state.snapshot(...)\` instead
|
|
526
|
-
https://svelte.dev/e/console_log_state`,
|
|
526
|
+
https://svelte.dev/e/console_log_state`, ze, qe);
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function Ps(e) {
|
|
529
529
|
console.warn(`%c[svelte] hydration_html_changed
|
|
530
530
|
%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`,
|
|
531
|
+
https://svelte.dev/e/hydration_html_changed`, ze, qe);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function xt(e) {
|
|
534
534
|
console.warn(`%c[svelte] hydration_mismatch
|
|
535
535
|
%cHydration failed because the initial UI does not match what was rendered on the server
|
|
536
|
-
https://svelte.dev/e/hydration_mismatch`,
|
|
536
|
+
https://svelte.dev/e/hydration_mismatch`, ze, qe);
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Ss() {
|
|
539
539
|
console.warn(`%c[svelte] lifecycle_double_unmount
|
|
540
540
|
%cTried to unmount a component that was not mounted
|
|
541
|
-
https://svelte.dev/e/lifecycle_double_unmount`,
|
|
541
|
+
https://svelte.dev/e/lifecycle_double_unmount`, ze, qe);
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function mn(e, t) {
|
|
544
544
|
console.warn(`%c[svelte] ownership_invalid_mutation
|
|
545
545
|
%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`,
|
|
546
|
+
https://svelte.dev/e/ownership_invalid_mutation`, ze, qe);
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function ut(e) {
|
|
549
549
|
console.warn(`%c[svelte] state_proxy_equality_mismatch
|
|
550
550
|
%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`,
|
|
551
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`, ze, qe);
|
|
552
552
|
}
|
|
553
|
-
let
|
|
554
|
-
function
|
|
555
|
-
|
|
553
|
+
let B = !1;
|
|
554
|
+
function Ue(e) {
|
|
555
|
+
B = e;
|
|
556
556
|
}
|
|
557
557
|
let F;
|
|
558
|
-
function
|
|
558
|
+
function de(e) {
|
|
559
559
|
if (e === null)
|
|
560
|
-
throw
|
|
560
|
+
throw xt(), Ne;
|
|
561
561
|
return F = e;
|
|
562
562
|
}
|
|
563
|
-
function
|
|
564
|
-
return
|
|
563
|
+
function rt() {
|
|
564
|
+
return de(
|
|
565
565
|
/** @type {TemplateNode} */
|
|
566
566
|
/* @__PURE__ */ ke(F)
|
|
567
567
|
);
|
|
568
568
|
}
|
|
569
|
-
function
|
|
570
|
-
if (
|
|
569
|
+
function re(e) {
|
|
570
|
+
if (B) {
|
|
571
571
|
if (/* @__PURE__ */ ke(F) !== null)
|
|
572
|
-
throw
|
|
572
|
+
throw xt(), Ne;
|
|
573
573
|
F = e;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function xs() {
|
|
577
577
|
for (var e = 0, t = F; ; ) {
|
|
578
578
|
if (t.nodeType === 8) {
|
|
579
579
|
var n = (
|
|
580
580
|
/** @type {Comment} */
|
|
581
581
|
t.data
|
|
582
582
|
);
|
|
583
|
-
if (n ===
|
|
583
|
+
if (n === Ht) {
|
|
584
584
|
if (e === 0) return t;
|
|
585
585
|
e -= 1;
|
|
586
|
-
} else (n ===
|
|
586
|
+
} else (n === Ct || n === Xt) && (e += 1);
|
|
587
587
|
}
|
|
588
588
|
var r = (
|
|
589
589
|
/** @type {TemplateNode} */
|
|
@@ -592,7 +592,7 @@ function bo() {
|
|
|
592
592
|
t.remove(), t = r;
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function Ts() {
|
|
596
596
|
const e = Array.prototype, t = Array.__svelte_cleanup;
|
|
597
597
|
t && t();
|
|
598
598
|
const { indexOf: n, lastIndexOf: r, includes: s } = e;
|
|
@@ -600,8 +600,8 @@ function Co() {
|
|
|
600
600
|
const a = n.call(this, o, i);
|
|
601
601
|
if (a === -1) {
|
|
602
602
|
for (let c = i ?? 0; c < this.length; c += 1)
|
|
603
|
-
if (
|
|
604
|
-
|
|
603
|
+
if (Xe(this[c]) === o) {
|
|
604
|
+
ut("array.indexOf(...)");
|
|
605
605
|
break;
|
|
606
606
|
}
|
|
607
607
|
}
|
|
@@ -610,8 +610,8 @@ function Co() {
|
|
|
610
610
|
const a = r.call(this, o, i ?? this.length - 1);
|
|
611
611
|
if (a === -1) {
|
|
612
612
|
for (let c = 0; c <= (i ?? this.length - 1); c += 1)
|
|
613
|
-
if (
|
|
614
|
-
|
|
613
|
+
if (Xe(this[c]) === o) {
|
|
614
|
+
ut("array.lastIndexOf(...)");
|
|
615
615
|
break;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
@@ -620,8 +620,8 @@ function Co() {
|
|
|
620
620
|
const a = s.call(this, o, i);
|
|
621
621
|
if (!a) {
|
|
622
622
|
for (let c = 0; c < this.length; c += 1)
|
|
623
|
-
if (
|
|
624
|
-
|
|
623
|
+
if (Xe(this[c]) === o) {
|
|
624
|
+
ut("array.includes(...)");
|
|
625
625
|
break;
|
|
626
626
|
}
|
|
627
627
|
}
|
|
@@ -630,101 +630,101 @@ function Co() {
|
|
|
630
630
|
e.indexOf = n, e.lastIndexOf = r, e.includes = s;
|
|
631
631
|
};
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function L(e, t, n = !0) {
|
|
634
634
|
try {
|
|
635
|
-
e === t != (
|
|
635
|
+
e === t != (Xe(e) === Xe(t)) && ut(n ? "===" : "!==");
|
|
636
636
|
} catch {
|
|
637
637
|
}
|
|
638
638
|
return e === t === n;
|
|
639
639
|
}
|
|
640
|
-
var
|
|
641
|
-
function
|
|
642
|
-
if (
|
|
643
|
-
|
|
640
|
+
var yn, nn, tr, nr;
|
|
641
|
+
function qt() {
|
|
642
|
+
if (yn === void 0) {
|
|
643
|
+
yn = window, nn = /Firefox/.test(navigator.userAgent);
|
|
644
644
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
645
|
-
|
|
645
|
+
tr = Se(t, "firstChild").get, nr = Se(t, "nextSibling").get, vn(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), vn(n) && (n.__t = void 0), e.__svelte_meta = null, Ts();
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function gt(e = "") {
|
|
649
649
|
return document.createTextNode(e);
|
|
650
650
|
}
|
|
651
651
|
// @__NO_SIDE_EFFECTS__
|
|
652
|
-
function
|
|
653
|
-
return
|
|
652
|
+
function st(e) {
|
|
653
|
+
return tr.call(e);
|
|
654
654
|
}
|
|
655
655
|
// @__NO_SIDE_EFFECTS__
|
|
656
656
|
function ke(e) {
|
|
657
|
-
return
|
|
657
|
+
return nr.call(e);
|
|
658
658
|
}
|
|
659
|
-
function
|
|
660
|
-
if (!
|
|
661
|
-
return /* @__PURE__ */
|
|
659
|
+
function se(e, t) {
|
|
660
|
+
if (!B)
|
|
661
|
+
return /* @__PURE__ */ st(e);
|
|
662
662
|
var n = (
|
|
663
663
|
/** @type {TemplateNode} */
|
|
664
|
-
/* @__PURE__ */
|
|
664
|
+
/* @__PURE__ */ st(F)
|
|
665
665
|
);
|
|
666
666
|
if (n === null)
|
|
667
|
-
n = F.appendChild(
|
|
667
|
+
n = F.appendChild(gt());
|
|
668
668
|
else if (t && n.nodeType !== 3) {
|
|
669
|
-
var r =
|
|
670
|
-
return n?.before(r),
|
|
669
|
+
var r = gt();
|
|
670
|
+
return n?.before(r), de(r), r;
|
|
671
671
|
}
|
|
672
|
-
return
|
|
672
|
+
return de(n), n;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
let r =
|
|
674
|
+
function Vt(e, t = 1, n = !1) {
|
|
675
|
+
let r = B ? F : e;
|
|
676
676
|
for (var s; t--; )
|
|
677
677
|
s = r, r = /** @type {TemplateNode} */
|
|
678
678
|
/* @__PURE__ */ ke(r);
|
|
679
|
-
if (!
|
|
679
|
+
if (!B)
|
|
680
680
|
return r;
|
|
681
681
|
var o = r?.nodeType;
|
|
682
682
|
if (n && o !== 3) {
|
|
683
|
-
var i =
|
|
684
|
-
return r === null ? s?.after(i) : r.before(i),
|
|
683
|
+
var i = gt();
|
|
684
|
+
return r === null ? s?.after(i) : r.before(i), de(i), i;
|
|
685
685
|
}
|
|
686
|
-
return
|
|
686
|
+
return de(r), /** @type {TemplateNode} */
|
|
687
687
|
r;
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function Is(e) {
|
|
690
690
|
e.textContent = "";
|
|
691
691
|
}
|
|
692
|
-
const
|
|
693
|
-
let
|
|
694
|
-
function
|
|
695
|
-
|
|
692
|
+
const wn = /* @__PURE__ */ new WeakSet();
|
|
693
|
+
let ft = !1, _t = !1, mt = null, xe = !1, it = !1;
|
|
694
|
+
function bn(e) {
|
|
695
|
+
it = e;
|
|
696
696
|
}
|
|
697
|
-
let
|
|
698
|
-
function
|
|
699
|
-
|
|
697
|
+
let He = [], yt = [], b = null, oe = !1;
|
|
698
|
+
function be(e) {
|
|
699
|
+
b = e;
|
|
700
700
|
}
|
|
701
|
-
let
|
|
702
|
-
function
|
|
703
|
-
|
|
701
|
+
let P = null;
|
|
702
|
+
function Me(e) {
|
|
703
|
+
P = e;
|
|
704
704
|
}
|
|
705
|
-
let
|
|
706
|
-
function
|
|
707
|
-
|
|
705
|
+
let fe = null;
|
|
706
|
+
function Rs(e) {
|
|
707
|
+
fe = e;
|
|
708
708
|
}
|
|
709
|
-
function
|
|
710
|
-
|
|
709
|
+
function rr(e) {
|
|
710
|
+
b !== null && b.f & Mt && (fe === null ? Rs([e]) : fe.push(e));
|
|
711
711
|
}
|
|
712
|
-
let N = null,
|
|
713
|
-
function
|
|
714
|
-
|
|
712
|
+
let N = null, Y = 0, X = null;
|
|
713
|
+
function ks(e) {
|
|
714
|
+
X = e;
|
|
715
715
|
}
|
|
716
|
-
let
|
|
717
|
-
function
|
|
718
|
-
return ++
|
|
716
|
+
let sr = 1, wt = 0, ye = !1;
|
|
717
|
+
function or() {
|
|
718
|
+
return ++sr;
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function Ve(e) {
|
|
721
721
|
var t = e.f;
|
|
722
|
-
if ((t &
|
|
722
|
+
if ((t & pe) !== 0)
|
|
723
723
|
return !0;
|
|
724
|
-
if ((t &
|
|
725
|
-
var n = e.deps, r = (t &
|
|
724
|
+
if ((t & Re) !== 0) {
|
|
725
|
+
var n = e.deps, r = (t & Z) !== 0;
|
|
726
726
|
if (n !== null) {
|
|
727
|
-
var s, o, i = (t &
|
|
727
|
+
var s, o, i = (t & ht) !== 0, a = r && P !== null && !ye, c = n.length;
|
|
728
728
|
if (i || a) {
|
|
729
729
|
var l = (
|
|
730
730
|
/** @type {Derived} */
|
|
@@ -732,55 +732,55 @@ function qe(e) {
|
|
|
732
732
|
), u = l.parent;
|
|
733
733
|
for (s = 0; s < c; s++)
|
|
734
734
|
o = n[s], (i || !o?.reactions?.includes(l)) && (o.reactions ?? (o.reactions = [])).push(l);
|
|
735
|
-
i && (l.f ^=
|
|
735
|
+
i && (l.f ^= ht), a && u !== null && (u.f & Z) === 0 && (l.f ^= Z);
|
|
736
736
|
}
|
|
737
737
|
for (s = 0; s < c; s++)
|
|
738
|
-
if (o = n[s],
|
|
738
|
+
if (o = n[s], Ve(
|
|
739
739
|
/** @type {Derived} */
|
|
740
740
|
o
|
|
741
|
-
) &&
|
|
741
|
+
) && er(
|
|
742
742
|
/** @type {Derived} */
|
|
743
743
|
o
|
|
744
744
|
), o.wv > e.wv)
|
|
745
745
|
return !0;
|
|
746
746
|
}
|
|
747
|
-
(!r ||
|
|
747
|
+
(!r || P !== null && !ye) && te(e, q);
|
|
748
748
|
}
|
|
749
749
|
return !1;
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function $n(e, t) {
|
|
752
752
|
for (var n = t; n !== null; ) {
|
|
753
|
-
if ((n.f &
|
|
753
|
+
if ((n.f & vt) !== 0)
|
|
754
754
|
try {
|
|
755
755
|
n.fn(e);
|
|
756
756
|
return;
|
|
757
757
|
} catch {
|
|
758
|
-
n.f ^=
|
|
758
|
+
n.f ^= vt;
|
|
759
759
|
}
|
|
760
760
|
n = n.parent;
|
|
761
761
|
}
|
|
762
|
-
throw
|
|
762
|
+
throw ft = !1, e;
|
|
763
763
|
}
|
|
764
|
-
function
|
|
765
|
-
return (e.f &
|
|
764
|
+
function En(e) {
|
|
765
|
+
return (e.f & St) === 0 && (e.parent === null || (e.parent.f & vt) === 0);
|
|
766
766
|
}
|
|
767
|
-
function
|
|
768
|
-
if (
|
|
769
|
-
if (n === null && (
|
|
767
|
+
function Tt(e, t, n, r) {
|
|
768
|
+
if (ft) {
|
|
769
|
+
if (n === null && (ft = !1), En(t))
|
|
770
770
|
throw e;
|
|
771
771
|
return;
|
|
772
772
|
}
|
|
773
|
-
if (n !== null && (
|
|
774
|
-
|
|
773
|
+
if (n !== null && (ft = !0), r === null || !(e instanceof Error) || wn.has(e)) {
|
|
774
|
+
$n(e, t);
|
|
775
775
|
return;
|
|
776
776
|
}
|
|
777
|
-
|
|
777
|
+
wn.add(e);
|
|
778
778
|
const s = [], o = t.fn?.name;
|
|
779
779
|
o && s.push(o);
|
|
780
780
|
let i = r;
|
|
781
781
|
for (; i !== null; ) {
|
|
782
782
|
{
|
|
783
|
-
var a = i.function?.[
|
|
783
|
+
var a = i.function?.[R];
|
|
784
784
|
if (a) {
|
|
785
785
|
const u = a.split("/").pop();
|
|
786
786
|
s.push(u);
|
|
@@ -788,212 +788,212 @@ function St(e, t, n, r) {
|
|
|
788
788
|
}
|
|
789
789
|
i = i.p;
|
|
790
790
|
}
|
|
791
|
-
const c =
|
|
792
|
-
|
|
791
|
+
const c = nn ? " " : " ";
|
|
792
|
+
ie(e, "message", {
|
|
793
793
|
value: e.message + `
|
|
794
794
|
${s.map((u) => `
|
|
795
795
|
${c}in ${u}`).join("")}
|
|
796
796
|
`
|
|
797
|
-
}),
|
|
797
|
+
}), ie(e, "component_stack", {
|
|
798
798
|
value: s
|
|
799
799
|
});
|
|
800
800
|
const l = e.stack;
|
|
801
801
|
if (l) {
|
|
802
802
|
const u = l.split(`
|
|
803
|
-
`),
|
|
804
|
-
for (let
|
|
805
|
-
const
|
|
806
|
-
|
|
803
|
+
`), d = [];
|
|
804
|
+
for (let f = 0; f < u.length; f++) {
|
|
805
|
+
const h = u[f];
|
|
806
|
+
h.includes("svelte/src/internal") || d.push(h);
|
|
807
807
|
}
|
|
808
|
-
|
|
809
|
-
value:
|
|
808
|
+
ie(e, "stack", {
|
|
809
|
+
value: d.join(`
|
|
810
810
|
`)
|
|
811
811
|
});
|
|
812
812
|
}
|
|
813
|
-
if (
|
|
813
|
+
if ($n(e, t), En(t))
|
|
814
814
|
throw e;
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function ir(e, t, n = !0) {
|
|
817
817
|
var r = e.reactions;
|
|
818
818
|
if (r !== null)
|
|
819
819
|
for (var s = 0; s < r.length; s++) {
|
|
820
820
|
var o = r[s];
|
|
821
|
-
|
|
821
|
+
fe?.includes(e) || ((o.f & ae) !== 0 ? ir(
|
|
822
822
|
/** @type {Derived} */
|
|
823
823
|
o,
|
|
824
824
|
t,
|
|
825
825
|
!1
|
|
826
|
-
) : t === o && (n ?
|
|
826
|
+
) : t === o && (n ? te(o, pe) : (o.f & q) !== 0 && te(o, Re), Rt(
|
|
827
827
|
/** @type {Effect} */
|
|
828
828
|
o
|
|
829
829
|
)));
|
|
830
830
|
}
|
|
831
831
|
}
|
|
832
|
-
function
|
|
833
|
-
var
|
|
834
|
-
var t = N, n =
|
|
832
|
+
function lr(e) {
|
|
833
|
+
var h;
|
|
834
|
+
var t = N, n = Y, r = X, s = b, o = ye, i = fe, a = A, c = oe, l = e.f;
|
|
835
835
|
N = /** @type {null | Value[]} */
|
|
836
|
-
null,
|
|
836
|
+
null, Y = 0, X = null, ye = (l & Z) !== 0 && (oe || !xe || b === null), b = (l & (he | Ie)) === 0 ? e : null, fe = null, xn(e.ctx), oe = !1, wt++, e.f |= Mt;
|
|
837
837
|
try {
|
|
838
838
|
var u = (
|
|
839
839
|
/** @type {Function} */
|
|
840
840
|
(0, e.fn)()
|
|
841
|
-
),
|
|
841
|
+
), d = e.deps;
|
|
842
842
|
if (N !== null) {
|
|
843
|
-
var
|
|
844
|
-
if (
|
|
845
|
-
for (
|
|
846
|
-
|
|
843
|
+
var f;
|
|
844
|
+
if (bt(e, Y), d !== null && Y > 0)
|
|
845
|
+
for (d.length = Y + N.length, f = 0; f < N.length; f++)
|
|
846
|
+
d[Y + f] = N[f];
|
|
847
847
|
else
|
|
848
|
-
e.deps =
|
|
849
|
-
if (!
|
|
850
|
-
for (
|
|
851
|
-
((
|
|
852
|
-
} else
|
|
853
|
-
if (
|
|
854
|
-
for (
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
848
|
+
e.deps = d = N;
|
|
849
|
+
if (!ye)
|
|
850
|
+
for (f = Y; f < d.length; f++)
|
|
851
|
+
((h = d[f]).reactions ?? (h.reactions = [])).push(e);
|
|
852
|
+
} else d !== null && Y < d.length && (bt(e, Y), d.length = Y);
|
|
853
|
+
if (br() && X !== null && !oe && d !== null && (e.f & (ae | Re | pe)) === 0)
|
|
854
|
+
for (f = 0; f < /** @type {Source[]} */
|
|
855
|
+
X.length; f++)
|
|
856
|
+
ir(
|
|
857
|
+
X[f],
|
|
858
858
|
/** @type {Effect} */
|
|
859
859
|
e
|
|
860
860
|
);
|
|
861
|
-
return s !== null && (
|
|
862
|
-
|
|
861
|
+
return s !== null && (wt++, X !== null && (r === null ? r = X : r.push(.../** @type {Source[]} */
|
|
862
|
+
X))), u;
|
|
863
863
|
} finally {
|
|
864
|
-
N = t,
|
|
864
|
+
N = t, Y = n, X = r, b = s, ye = o, fe = i, xn(a), oe = c, e.f ^= Mt;
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Ls(e, t) {
|
|
868
868
|
let n = t.reactions;
|
|
869
869
|
if (n !== null) {
|
|
870
|
-
var r =
|
|
870
|
+
var r = Zr.call(n, e);
|
|
871
871
|
if (r !== -1) {
|
|
872
872
|
var s = n.length - 1;
|
|
873
873
|
s === 0 ? n = t.reactions = null : (n[r] = n[s], n.pop());
|
|
874
874
|
}
|
|
875
875
|
}
|
|
876
|
-
n === null && (t.f &
|
|
876
|
+
n === null && (t.f & ae) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
877
877
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
878
878
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
879
|
-
(N === null || !N.includes(t)) && (
|
|
879
|
+
(N === null || !N.includes(t)) && (te(t, Re), (t.f & (Z | ht)) === 0 && (t.f ^= ht), Kn(
|
|
880
880
|
/** @type {Derived} **/
|
|
881
881
|
t
|
|
882
|
-
),
|
|
882
|
+
), bt(
|
|
883
883
|
/** @type {Derived} **/
|
|
884
884
|
t,
|
|
885
885
|
0
|
|
886
886
|
));
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function bt(e, t) {
|
|
889
889
|
var n = e.deps;
|
|
890
890
|
if (n !== null)
|
|
891
891
|
for (var r = t; r < n.length; r++)
|
|
892
|
-
|
|
892
|
+
Ls(e, n[r]);
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function It(e) {
|
|
895
895
|
var t = e.f;
|
|
896
|
-
if ((t &
|
|
897
|
-
|
|
898
|
-
var n =
|
|
899
|
-
|
|
896
|
+
if ((t & St) === 0) {
|
|
897
|
+
te(e, q);
|
|
898
|
+
var n = P, r = A, s = xe;
|
|
899
|
+
P = e, xe = !0;
|
|
900
900
|
{
|
|
901
|
-
var o =
|
|
902
|
-
|
|
901
|
+
var o = Te;
|
|
902
|
+
Tn(e.component_function);
|
|
903
903
|
}
|
|
904
904
|
try {
|
|
905
|
-
(t &
|
|
906
|
-
var i =
|
|
907
|
-
e.teardown = typeof i == "function" ? i : null, e.wv =
|
|
905
|
+
(t & Zt) !== 0 ? Ms(e) : dr(e), fr(e);
|
|
906
|
+
var i = lr(e);
|
|
907
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = sr;
|
|
908
908
|
var a = e.deps, c;
|
|
909
|
-
|
|
909
|
+
dn && gs && e.f & pe, dn && yt.push(e);
|
|
910
910
|
} catch (l) {
|
|
911
|
-
|
|
911
|
+
Tt(l, e, n, r || e.ctx);
|
|
912
912
|
} finally {
|
|
913
|
-
|
|
913
|
+
xe = s, P = n, Tn(o);
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function Cn() {
|
|
918
918
|
console.error(
|
|
919
919
|
"Last ten effects were: ",
|
|
920
|
-
|
|
921
|
-
),
|
|
920
|
+
yt.slice(-10).map((e) => e.fn)
|
|
921
|
+
), yt = [];
|
|
922
922
|
}
|
|
923
|
-
function
|
|
923
|
+
function Os() {
|
|
924
924
|
try {
|
|
925
|
-
|
|
925
|
+
cs();
|
|
926
926
|
} catch (e) {
|
|
927
|
-
if (
|
|
927
|
+
if (ie(e, "stack", {
|
|
928
928
|
value: ""
|
|
929
|
-
}),
|
|
929
|
+
}), mt !== null)
|
|
930
930
|
try {
|
|
931
|
-
|
|
931
|
+
Tt(e, mt, null, null);
|
|
932
932
|
} catch (t) {
|
|
933
|
-
throw
|
|
933
|
+
throw Cn(), t;
|
|
934
934
|
}
|
|
935
935
|
else
|
|
936
|
-
throw
|
|
936
|
+
throw Cn(), e;
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
|
-
function
|
|
940
|
-
var e =
|
|
939
|
+
function ar() {
|
|
940
|
+
var e = xe;
|
|
941
941
|
try {
|
|
942
942
|
var t = 0;
|
|
943
|
-
for (
|
|
944
|
-
t++ > 1e3 &&
|
|
945
|
-
var n =
|
|
946
|
-
|
|
943
|
+
for (xe = !0; He.length > 0; ) {
|
|
944
|
+
t++ > 1e3 && Os();
|
|
945
|
+
var n = He, r = n.length;
|
|
946
|
+
He = [];
|
|
947
947
|
for (var s = 0; s < r; s++) {
|
|
948
|
-
var o =
|
|
949
|
-
|
|
948
|
+
var o = Bs(n[s]);
|
|
949
|
+
Fs(o);
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
952
|
} finally {
|
|
953
|
-
|
|
953
|
+
_t = !1, xe = e, mt = null, yt = [], nt.clear();
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
|
-
function
|
|
956
|
+
function Fs(e) {
|
|
957
957
|
var t = e.length;
|
|
958
958
|
if (t !== 0)
|
|
959
959
|
for (var n = 0; n < t; n++) {
|
|
960
960
|
var r = e[n];
|
|
961
|
-
if ((r.f & (
|
|
961
|
+
if ((r.f & (St | Qe)) === 0)
|
|
962
962
|
try {
|
|
963
|
-
|
|
963
|
+
Ve(r) && (It(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? vr(r) : r.fn = null));
|
|
964
964
|
} catch (s) {
|
|
965
|
-
|
|
965
|
+
Tt(s, r, null, r.ctx);
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
|
-
function
|
|
970
|
-
|
|
971
|
-
for (var t =
|
|
969
|
+
function Rt(e) {
|
|
970
|
+
_t || (_t = !0, queueMicrotask(ar));
|
|
971
|
+
for (var t = mt = e; t.parent !== null; ) {
|
|
972
972
|
t = t.parent;
|
|
973
973
|
var n = t.f;
|
|
974
|
-
if ((n & (Ie |
|
|
975
|
-
if ((n &
|
|
976
|
-
t.f ^=
|
|
974
|
+
if ((n & (Ie | he)) !== 0) {
|
|
975
|
+
if ((n & q) === 0) return;
|
|
976
|
+
t.f ^= q;
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
|
-
|
|
979
|
+
He.push(t);
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function Bs(e) {
|
|
982
982
|
for (var t = [], n = e; n !== null; ) {
|
|
983
|
-
var r = n.f, s = (r & (
|
|
984
|
-
if (!o && (r &
|
|
985
|
-
if ((r &
|
|
983
|
+
var r = n.f, s = (r & (he | Ie)) !== 0, o = s && (r & q) !== 0;
|
|
984
|
+
if (!o && (r & Qe) === 0) {
|
|
985
|
+
if ((r & Nn) !== 0)
|
|
986
986
|
t.push(n);
|
|
987
987
|
else if (s)
|
|
988
|
-
n.f ^=
|
|
988
|
+
n.f ^= q;
|
|
989
989
|
else {
|
|
990
|
-
var i =
|
|
990
|
+
var i = b;
|
|
991
991
|
try {
|
|
992
|
-
|
|
992
|
+
b = n, Ve(n) && It(n);
|
|
993
993
|
} catch (l) {
|
|
994
|
-
|
|
994
|
+
Tt(l, n, null, n.ctx);
|
|
995
995
|
} finally {
|
|
996
|
-
|
|
996
|
+
b = i;
|
|
997
997
|
}
|
|
998
998
|
}
|
|
999
999
|
var a = n.first;
|
|
@@ -1008,24 +1008,24 @@ function Ro(e) {
|
|
|
1008
1008
|
}
|
|
1009
1009
|
return t;
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function E(e) {
|
|
1012
1012
|
var t;
|
|
1013
|
-
for (
|
|
1014
|
-
|
|
1013
|
+
for (hn(); He.length > 0; )
|
|
1014
|
+
_t = !0, ar(), hn();
|
|
1015
1015
|
return (
|
|
1016
1016
|
/** @type {T} */
|
|
1017
1017
|
t
|
|
1018
1018
|
);
|
|
1019
1019
|
}
|
|
1020
|
-
async function
|
|
1021
|
-
await Promise.resolve(),
|
|
1020
|
+
async function cr() {
|
|
1021
|
+
await Promise.resolve(), E();
|
|
1022
1022
|
}
|
|
1023
1023
|
function g(e) {
|
|
1024
|
-
var t = e.f, n = (t &
|
|
1025
|
-
if (
|
|
1026
|
-
if (!
|
|
1027
|
-
var r =
|
|
1028
|
-
e.rv <
|
|
1024
|
+
var t = e.f, n = (t & ae) !== 0;
|
|
1025
|
+
if (b !== null && !oe) {
|
|
1026
|
+
if (!fe?.includes(e)) {
|
|
1027
|
+
var r = b.deps;
|
|
1028
|
+
e.rv < wt && (e.rv = wt, N === null && r !== null && r[Y] === e ? Y++ : N === null ? N = [e] : (!ye || !N.includes(e)) && N.push(e));
|
|
1029
1029
|
}
|
|
1030
1030
|
} else if (n && /** @type {Derived} */
|
|
1031
1031
|
e.deps === null && /** @type {Derived} */
|
|
@@ -1034,39 +1034,39 @@ function g(e) {
|
|
|
1034
1034
|
/** @type {Derived} */
|
|
1035
1035
|
e
|
|
1036
1036
|
), o = s.parent;
|
|
1037
|
-
o !== null && (o.f &
|
|
1037
|
+
o !== null && (o.f & Z) === 0 && (s.f ^= Z);
|
|
1038
1038
|
}
|
|
1039
1039
|
return n && (s = /** @type {Derived} */
|
|
1040
|
-
e,
|
|
1040
|
+
e, Ve(s) && er(s)), it && nt.has(e) ? nt.get(e) : e.v;
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1043
|
-
var t =
|
|
1042
|
+
function $t(e) {
|
|
1043
|
+
var t = oe;
|
|
1044
1044
|
try {
|
|
1045
|
-
return
|
|
1045
|
+
return oe = !0, e();
|
|
1046
1046
|
} finally {
|
|
1047
|
-
|
|
1047
|
+
oe = t;
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
|
-
const
|
|
1051
|
-
function
|
|
1052
|
-
e.f = e.f &
|
|
1050
|
+
const Us = -7169;
|
|
1051
|
+
function te(e, t) {
|
|
1052
|
+
e.f = e.f & Us | t;
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1055
|
-
|
|
1054
|
+
function Ds(e) {
|
|
1055
|
+
P === null && b === null && as(e), b !== null && (b.f & Z) !== 0 && P === null && ls(), it && is(e);
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function As(e, t) {
|
|
1058
1058
|
var n = t.last;
|
|
1059
1059
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1062
|
-
for (var s =
|
|
1061
|
+
function Le(e, t, n, r = !0) {
|
|
1062
|
+
for (var s = P; s !== null && (s.f & jn) !== 0; )
|
|
1063
1063
|
s = s.parent;
|
|
1064
1064
|
var o = {
|
|
1065
|
-
ctx:
|
|
1065
|
+
ctx: A,
|
|
1066
1066
|
deps: null,
|
|
1067
1067
|
nodes_start: null,
|
|
1068
1068
|
nodes_end: null,
|
|
1069
|
-
f: e |
|
|
1069
|
+
f: e | pe,
|
|
1070
1070
|
first: null,
|
|
1071
1071
|
fn: t,
|
|
1072
1072
|
last: null,
|
|
@@ -1077,107 +1077,107 @@ function Re(e, t, n, r = !0) {
|
|
|
1077
1077
|
transitions: null,
|
|
1078
1078
|
wv: 0
|
|
1079
1079
|
};
|
|
1080
|
-
if (o.component_function =
|
|
1080
|
+
if (o.component_function = Te, n)
|
|
1081
1081
|
try {
|
|
1082
|
-
|
|
1082
|
+
It(o), o.f |= Xr;
|
|
1083
1083
|
} catch (c) {
|
|
1084
|
-
throw
|
|
1084
|
+
throw ve(o), c;
|
|
1085
1085
|
}
|
|
1086
|
-
else t !== null &&
|
|
1087
|
-
var i = n && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & (
|
|
1088
|
-
if (!i && r && (s !== null &&
|
|
1086
|
+
else t !== null && Rt(o);
|
|
1087
|
+
var i = n && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & (Qn | vt)) === 0;
|
|
1088
|
+
if (!i && r && (s !== null && As(o, s), b !== null && (b.f & ae) !== 0)) {
|
|
1089
1089
|
var a = (
|
|
1090
1090
|
/** @type {Derived} */
|
|
1091
|
-
|
|
1091
|
+
b
|
|
1092
1092
|
);
|
|
1093
1093
|
(a.effects ?? (a.effects = [])).push(o);
|
|
1094
1094
|
}
|
|
1095
1095
|
return o;
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1098
|
-
const t =
|
|
1099
|
-
return
|
|
1097
|
+
function Ns(e) {
|
|
1098
|
+
const t = Le(Pt, null, !1);
|
|
1099
|
+
return te(t, q), t.teardown = e, t;
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1102
|
-
|
|
1103
|
-
var t =
|
|
1104
|
-
if (
|
|
1101
|
+
function De(e) {
|
|
1102
|
+
Ds("$effect");
|
|
1103
|
+
var t = P !== null && (P.f & he) !== 0 && A !== null && !A.m;
|
|
1104
|
+
if (ie(e, "name", {
|
|
1105
1105
|
value: "$effect"
|
|
1106
1106
|
}), t) {
|
|
1107
1107
|
var n = (
|
|
1108
1108
|
/** @type {ComponentContext} */
|
|
1109
|
-
|
|
1109
|
+
A
|
|
1110
1110
|
);
|
|
1111
1111
|
(n.e ?? (n.e = [])).push({
|
|
1112
1112
|
fn: e,
|
|
1113
|
-
effect:
|
|
1114
|
-
reaction:
|
|
1113
|
+
effect: P,
|
|
1114
|
+
reaction: b
|
|
1115
1115
|
});
|
|
1116
1116
|
} else {
|
|
1117
|
-
var r =
|
|
1117
|
+
var r = rn(e);
|
|
1118
1118
|
return r;
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1122
|
-
const t =
|
|
1121
|
+
function js(e) {
|
|
1122
|
+
const t = Le(Ie, e, !0);
|
|
1123
1123
|
return () => {
|
|
1124
|
-
|
|
1124
|
+
ve(t);
|
|
1125
1125
|
};
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1128
|
-
const t =
|
|
1127
|
+
function Qs(e) {
|
|
1128
|
+
const t = Le(Ie, e, !0);
|
|
1129
1129
|
return (n = {}) => new Promise((r) => {
|
|
1130
|
-
n.outro ?
|
|
1131
|
-
|
|
1132
|
-
}) : (
|
|
1130
|
+
n.outro ? Jt(t, () => {
|
|
1131
|
+
ve(t), r(void 0);
|
|
1132
|
+
}) : (ve(t), r(void 0));
|
|
1133
1133
|
});
|
|
1134
1134
|
}
|
|
1135
|
-
function
|
|
1136
|
-
return
|
|
1135
|
+
function rn(e) {
|
|
1136
|
+
return Le(Nn, e, !1);
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1139
|
-
return
|
|
1138
|
+
function ur(e) {
|
|
1139
|
+
return Le(Pt, e, !0);
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function Ze(e, t = [], n = tn) {
|
|
1142
1142
|
const r = t.map(n), s = () => e(...r.map(g));
|
|
1143
|
-
return
|
|
1143
|
+
return ie(s, "name", {
|
|
1144
1144
|
value: "{expression}"
|
|
1145
|
-
}),
|
|
1145
|
+
}), sn(s);
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1148
|
-
return
|
|
1147
|
+
function sn(e, t = 0) {
|
|
1148
|
+
return Le(Pt | Zt | t, e, !0);
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return
|
|
1150
|
+
function Et(e, t = !0) {
|
|
1151
|
+
return Le(Pt | he, e, !0, t);
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function fr(e) {
|
|
1154
1154
|
var t = e.teardown;
|
|
1155
1155
|
if (t !== null) {
|
|
1156
|
-
const n =
|
|
1157
|
-
|
|
1156
|
+
const n = it, r = b;
|
|
1157
|
+
bn(!0), be(null);
|
|
1158
1158
|
try {
|
|
1159
1159
|
t.call(null);
|
|
1160
1160
|
} finally {
|
|
1161
|
-
|
|
1161
|
+
bn(n), be(r);
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1165
|
+
function dr(e, t = !1) {
|
|
1166
1166
|
var n = e.first;
|
|
1167
1167
|
for (e.first = e.last = null; n !== null; ) {
|
|
1168
1168
|
var r = n.next;
|
|
1169
|
-
(n.f & Ie) !== 0 ? n.parent = null :
|
|
1169
|
+
(n.f & Ie) !== 0 ? n.parent = null : ve(n, t), n = r;
|
|
1170
1170
|
}
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1172
|
+
function Ms(e) {
|
|
1173
1173
|
for (var t = e.first; t !== null; ) {
|
|
1174
1174
|
var n = t.next;
|
|
1175
|
-
(t.f &
|
|
1175
|
+
(t.f & he) === 0 && ve(t), t = n;
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1178
|
+
function ve(e, t = !0) {
|
|
1179
1179
|
var n = !1;
|
|
1180
|
-
if ((t || (e.f &
|
|
1180
|
+
if ((t || (e.f & Hr) !== 0) && e.nodes_start !== null) {
|
|
1181
1181
|
for (var r = e.nodes_start, s = e.nodes_end; r !== null; ) {
|
|
1182
1182
|
var o = r === s ? null : (
|
|
1183
1183
|
/** @type {TemplateNode} */
|
|
@@ -1187,26 +1187,26 @@ function fe(e, t = !0) {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
n = !0;
|
|
1189
1189
|
}
|
|
1190
|
-
|
|
1190
|
+
dr(e, t && !n), bt(e, 0), te(e, St);
|
|
1191
1191
|
var i = e.transitions;
|
|
1192
1192
|
if (i !== null)
|
|
1193
1193
|
for (const c of i)
|
|
1194
1194
|
c.stop();
|
|
1195
|
-
|
|
1195
|
+
fr(e);
|
|
1196
1196
|
var a = e.parent;
|
|
1197
|
-
a !== null && a.first !== null &&
|
|
1197
|
+
a !== null && a.first !== null && vr(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
1198
|
}
|
|
1199
|
-
function
|
|
1199
|
+
function vr(e) {
|
|
1200
1200
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1201
1201
|
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
1202
|
}
|
|
1203
|
-
function
|
|
1203
|
+
function Jt(e, t) {
|
|
1204
1204
|
var n = [];
|
|
1205
|
-
|
|
1206
|
-
|
|
1205
|
+
hr(e, n, !0), zs(n, () => {
|
|
1206
|
+
ve(e), t && t();
|
|
1207
1207
|
});
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1209
|
+
function zs(e, t) {
|
|
1210
1210
|
var n = e.length;
|
|
1211
1211
|
if (n > 0) {
|
|
1212
1212
|
var r = () => --n || t();
|
|
@@ -1215,40 +1215,40 @@ function No(e, t) {
|
|
|
1215
1215
|
} else
|
|
1216
1216
|
t();
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1219
|
-
if ((e.f &
|
|
1220
|
-
if (e.f ^=
|
|
1218
|
+
function hr(e, t, n) {
|
|
1219
|
+
if ((e.f & Qe) === 0) {
|
|
1220
|
+
if (e.f ^= Qe, e.transitions !== null)
|
|
1221
1221
|
for (const i of e.transitions)
|
|
1222
1222
|
(i.is_global || n) && t.push(i);
|
|
1223
1223
|
for (var r = e.first; r !== null; ) {
|
|
1224
|
-
var s = r.next, o = (r.f &
|
|
1225
|
-
|
|
1224
|
+
var s = r.next, o = (r.f & Kt) !== 0 || (r.f & he) !== 0;
|
|
1225
|
+
hr(r, t, o ? n : !1), r = s;
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1230
|
-
|
|
1229
|
+
function Pn(e) {
|
|
1230
|
+
pr(e, !0);
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1233
|
-
if ((e.f &
|
|
1234
|
-
e.f ^=
|
|
1232
|
+
function pr(e, t) {
|
|
1233
|
+
if ((e.f & Qe) !== 0) {
|
|
1234
|
+
e.f ^= Qe, (e.f & q) === 0 && (e.f ^= q), Ve(e) && (te(e, pe), Rt(e));
|
|
1235
1235
|
for (var n = e.first; n !== null; ) {
|
|
1236
|
-
var r = n.next, s = (n.f &
|
|
1237
|
-
|
|
1236
|
+
var r = n.next, s = (n.f & Kt) !== 0 || (n.f & he) !== 0;
|
|
1237
|
+
pr(n, s ? t : !1), n = r;
|
|
1238
1238
|
}
|
|
1239
1239
|
if (e.transitions !== null)
|
|
1240
1240
|
for (const o of e.transitions)
|
|
1241
1241
|
(o.is_global || t) && o.in();
|
|
1242
1242
|
}
|
|
1243
1243
|
}
|
|
1244
|
-
const
|
|
1245
|
-
function
|
|
1244
|
+
const Ke = {}, qs = /at (?:.+ \()?(.+):(\d+):(\d+)\)?$/, Vs = /@(.+):(\d+):(\d+)$/;
|
|
1245
|
+
function on() {
|
|
1246
1246
|
const e = new Error().stack;
|
|
1247
1247
|
if (!e) return null;
|
|
1248
1248
|
const t = [];
|
|
1249
1249
|
for (const n of e.split(`
|
|
1250
1250
|
`)) {
|
|
1251
|
-
let r =
|
|
1251
|
+
let r = qs.exec(n) ?? Vs.exec(n);
|
|
1252
1252
|
r && t.push({
|
|
1253
1253
|
file: r[1],
|
|
1254
1254
|
line: +r[2],
|
|
@@ -1257,11 +1257,11 @@ function tn() {
|
|
|
1257
1257
|
}
|
|
1258
1258
|
return t;
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1261
|
-
const e =
|
|
1260
|
+
function gr() {
|
|
1261
|
+
const e = on()?.slice(4);
|
|
1262
1262
|
if (!e) return null;
|
|
1263
1263
|
for (let t = 0; t < e.length; t++) {
|
|
1264
|
-
const n = e[t], r =
|
|
1264
|
+
const n = e[t], r = Ke[n.file];
|
|
1265
1265
|
if (!r) {
|
|
1266
1266
|
if (t === 0) return null;
|
|
1267
1267
|
continue;
|
|
@@ -1275,10 +1275,10 @@ function dr() {
|
|
|
1275
1275
|
}
|
|
1276
1276
|
return null;
|
|
1277
1277
|
}
|
|
1278
|
-
function
|
|
1278
|
+
function _r() {
|
|
1279
1279
|
var t;
|
|
1280
|
-
const e =
|
|
1281
|
-
e && (
|
|
1280
|
+
const e = on()?.[2];
|
|
1281
|
+
e && (Ke[t = e.file] ?? (Ke[t] = [])).push({
|
|
1282
1282
|
start: e,
|
|
1283
1283
|
// @ts-expect-error
|
|
1284
1284
|
end: null,
|
|
@@ -1286,14 +1286,14 @@ function hr() {
|
|
|
1286
1286
|
component: null
|
|
1287
1287
|
});
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1290
|
-
const t =
|
|
1289
|
+
function mr(e) {
|
|
1290
|
+
const t = on()?.[2];
|
|
1291
1291
|
if (t) {
|
|
1292
|
-
const n =
|
|
1292
|
+
const n = Ke[t.file], r = n[n.length - 1];
|
|
1293
1293
|
r.end = t, r.component = e;
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1296
|
+
function Sn(e, t) {
|
|
1297
1297
|
if (t.owners !== null)
|
|
1298
1298
|
for (; e; ) {
|
|
1299
1299
|
if (e.owners === null) {
|
|
@@ -1305,39 +1305,39 @@ function En(e, t) {
|
|
|
1305
1305
|
e = e.parent;
|
|
1306
1306
|
}
|
|
1307
1307
|
}
|
|
1308
|
-
function
|
|
1308
|
+
function yr(e, t) {
|
|
1309
1309
|
return e.owners === null ? !0 : e.owners.has(t) || // This helps avoid false positives when using HMR, where the component function is replaced
|
|
1310
|
-
|
|
1310
|
+
R in t && [...e.owners].some(
|
|
1311
1311
|
(n) => (
|
|
1312
1312
|
/** @type {any} */
|
|
1313
|
-
n[
|
|
1313
|
+
n[R] === t[R]
|
|
1314
1314
|
)
|
|
1315
|
-
) || e.parent !== null &&
|
|
1315
|
+
) || e.parent !== null && yr(e.parent, t);
|
|
1316
1316
|
}
|
|
1317
|
-
function
|
|
1318
|
-
return e?.owners?.values().next().value ??
|
|
1317
|
+
function wr(e) {
|
|
1318
|
+
return e?.owners?.values().next().value ?? wr(
|
|
1319
1319
|
/** @type {ProxyMetadata} */
|
|
1320
1320
|
e.parent
|
|
1321
1321
|
);
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1324
|
-
const t =
|
|
1325
|
-
if (t && !
|
|
1326
|
-
let n =
|
|
1327
|
-
n[
|
|
1323
|
+
function Js(e) {
|
|
1324
|
+
const t = gr();
|
|
1325
|
+
if (t && !yr(e, t)) {
|
|
1326
|
+
let n = wr(e);
|
|
1327
|
+
n[R] !== t[R] ? mn(t[R], n[R]) : mn();
|
|
1328
1328
|
}
|
|
1329
1329
|
}
|
|
1330
|
-
let
|
|
1331
|
-
function
|
|
1332
|
-
|
|
1330
|
+
let A = null;
|
|
1331
|
+
function xn(e) {
|
|
1332
|
+
A = e;
|
|
1333
1333
|
}
|
|
1334
|
-
let
|
|
1335
|
-
function
|
|
1336
|
-
|
|
1334
|
+
let Te = null;
|
|
1335
|
+
function Tn(e) {
|
|
1336
|
+
Te = e;
|
|
1337
1337
|
}
|
|
1338
|
-
function
|
|
1339
|
-
var r =
|
|
1340
|
-
p:
|
|
1338
|
+
function ln(e, t = !1, n) {
|
|
1339
|
+
var r = A = {
|
|
1340
|
+
p: A,
|
|
1341
1341
|
c: null,
|
|
1342
1342
|
d: !1,
|
|
1343
1343
|
e: null,
|
|
@@ -1346,76 +1346,76 @@ function nn(e, t = !1, n) {
|
|
|
1346
1346
|
x: null,
|
|
1347
1347
|
l: null
|
|
1348
1348
|
};
|
|
1349
|
-
|
|
1349
|
+
Ns(() => {
|
|
1350
1350
|
r.d = !0;
|
|
1351
|
-
}),
|
|
1351
|
+
}), A.function = n, Te = n;
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1354
|
-
const t =
|
|
1353
|
+
function an(e) {
|
|
1354
|
+
const t = A;
|
|
1355
1355
|
if (t !== null) {
|
|
1356
1356
|
e !== void 0 && (t.x = e);
|
|
1357
1357
|
const i = t.e;
|
|
1358
1358
|
if (i !== null) {
|
|
1359
|
-
var n =
|
|
1359
|
+
var n = P, r = b;
|
|
1360
1360
|
t.e = null;
|
|
1361
1361
|
try {
|
|
1362
1362
|
for (var s = 0; s < i.length; s++) {
|
|
1363
1363
|
var o = i[s];
|
|
1364
|
-
|
|
1364
|
+
Me(o.effect), be(o.reaction), rn(o.fn);
|
|
1365
1365
|
}
|
|
1366
1366
|
} finally {
|
|
1367
|
-
|
|
1367
|
+
Me(n), be(r);
|
|
1368
1368
|
}
|
|
1369
1369
|
}
|
|
1370
|
-
|
|
1370
|
+
A = t.p, Te = t.p?.function ?? null, t.m = !0;
|
|
1371
1371
|
}
|
|
1372
1372
|
return e || /** @type {T} */
|
|
1373
1373
|
{};
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function br() {
|
|
1376
1376
|
return !0;
|
|
1377
1377
|
}
|
|
1378
|
-
const
|
|
1379
|
-
function
|
|
1380
|
-
e = e.replace(
|
|
1378
|
+
const Ys = /\r/g;
|
|
1379
|
+
function Ws(e) {
|
|
1380
|
+
e = e.replace(Ys, "");
|
|
1381
1381
|
let t = 5381, n = e.length;
|
|
1382
1382
|
for (; n--; ) t = (t << 5) - t ^ e.charCodeAt(n);
|
|
1383
1383
|
return (t >>> 0).toString(36);
|
|
1384
1384
|
}
|
|
1385
|
-
const
|
|
1386
|
-
function
|
|
1387
|
-
return
|
|
1385
|
+
const Gs = ["touchstart", "touchmove"];
|
|
1386
|
+
function Xs(e) {
|
|
1387
|
+
return Gs.includes(e);
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function Hs(e) {
|
|
1390
1390
|
return e?.replace(/\//g, "/");
|
|
1391
1391
|
}
|
|
1392
|
-
var
|
|
1393
|
-
function
|
|
1394
|
-
var n =
|
|
1395
|
-
n || (n = /* @__PURE__ */ new Set(),
|
|
1392
|
+
var In = /* @__PURE__ */ new Map();
|
|
1393
|
+
function Zs(e, t) {
|
|
1394
|
+
var n = In.get(e);
|
|
1395
|
+
n || (n = /* @__PURE__ */ new Set(), In.set(e, n)), n.add(t);
|
|
1396
1396
|
}
|
|
1397
1397
|
function $e(e, t, n) {
|
|
1398
1398
|
return (...r) => {
|
|
1399
1399
|
const s = e(...r);
|
|
1400
|
-
var o =
|
|
1401
|
-
return
|
|
1400
|
+
var o = B ? s : s.nodeType === 11 ? s.firstChild : s;
|
|
1401
|
+
return $r(o, t, n), s;
|
|
1402
1402
|
};
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1404
|
+
function Ks(e, t, n) {
|
|
1405
1405
|
e.__svelte_meta = {
|
|
1406
1406
|
loc: { file: t, line: n[0], column: n[1] }
|
|
1407
|
-
}, n[2] &&
|
|
1407
|
+
}, n[2] && $r(e.firstChild, t, n[2]);
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1409
|
+
function $r(e, t, n) {
|
|
1410
1410
|
for (var r = 0, s = 0; e && r < n.length; ) {
|
|
1411
|
-
if (
|
|
1411
|
+
if (B && e.nodeType === 8) {
|
|
1412
1412
|
var o = (
|
|
1413
1413
|
/** @type {Comment} */
|
|
1414
1414
|
e
|
|
1415
1415
|
);
|
|
1416
|
-
o.data ===
|
|
1416
|
+
o.data === Ct || o.data === Xt ? s += 1 : o.data[0] === Ht && (s -= 1);
|
|
1417
1417
|
}
|
|
1418
|
-
s === 0 && e.nodeType === 1 &&
|
|
1418
|
+
s === 0 && e.nodeType === 1 && Ks(
|
|
1419
1419
|
/** @type {Element} */
|
|
1420
1420
|
e,
|
|
1421
1421
|
t,
|
|
@@ -1423,8 +1423,8 @@ function mr(e, t, n) {
|
|
|
1423
1423
|
), e = e.nextSibling;
|
|
1424
1424
|
}
|
|
1425
1425
|
}
|
|
1426
|
-
const
|
|
1427
|
-
function
|
|
1426
|
+
const eo = /* @__PURE__ */ new Set(), Rn = /* @__PURE__ */ new Set();
|
|
1427
|
+
function lt(e) {
|
|
1428
1428
|
var t = this, n = (
|
|
1429
1429
|
/** @type {Node} */
|
|
1430
1430
|
t.ownerDocument
|
|
@@ -1446,77 +1446,77 @@ function st(e) {
|
|
|
1446
1446
|
}
|
|
1447
1447
|
if (o = /** @type {Element} */
|
|
1448
1448
|
s[i] || e.target, o !== t) {
|
|
1449
|
-
|
|
1449
|
+
ie(e, "currentTarget", {
|
|
1450
1450
|
configurable: !0,
|
|
1451
1451
|
get() {
|
|
1452
1452
|
return o || n;
|
|
1453
1453
|
}
|
|
1454
1454
|
});
|
|
1455
|
-
var u =
|
|
1456
|
-
|
|
1455
|
+
var u = b, d = P;
|
|
1456
|
+
be(null), Me(null);
|
|
1457
1457
|
try {
|
|
1458
|
-
for (var
|
|
1459
|
-
var
|
|
1458
|
+
for (var f, h = []; o !== null; ) {
|
|
1459
|
+
var _ = o.assignedSlot || o.parentNode || /** @type {any} */
|
|
1460
1460
|
o.host || null;
|
|
1461
1461
|
try {
|
|
1462
|
-
var
|
|
1463
|
-
if (
|
|
1462
|
+
var y = o["__" + r];
|
|
1463
|
+
if (y != null && (!/** @type {any} */
|
|
1464
1464
|
o.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1465
1465
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1466
1466
|
e.target === o))
|
|
1467
|
-
if (
|
|
1468
|
-
var [
|
|
1469
|
-
|
|
1467
|
+
if (en(y)) {
|
|
1468
|
+
var [$, ...O] = y;
|
|
1469
|
+
$.apply(o, [e, ...O]);
|
|
1470
1470
|
} else
|
|
1471
|
-
|
|
1472
|
-
} catch (
|
|
1473
|
-
|
|
1471
|
+
y.call(o, e);
|
|
1472
|
+
} catch (S) {
|
|
1473
|
+
f ? h.push(S) : f = S;
|
|
1474
1474
|
}
|
|
1475
|
-
if (e.cancelBubble ||
|
|
1475
|
+
if (e.cancelBubble || _ === t || _ === null)
|
|
1476
1476
|
break;
|
|
1477
|
-
o =
|
|
1477
|
+
o = _;
|
|
1478
1478
|
}
|
|
1479
|
-
if (
|
|
1480
|
-
for (let
|
|
1479
|
+
if (f) {
|
|
1480
|
+
for (let S of h)
|
|
1481
1481
|
queueMicrotask(() => {
|
|
1482
|
-
throw
|
|
1482
|
+
throw S;
|
|
1483
1483
|
});
|
|
1484
|
-
throw
|
|
1484
|
+
throw f;
|
|
1485
1485
|
}
|
|
1486
1486
|
} finally {
|
|
1487
|
-
e.__root = t, delete e.currentTarget,
|
|
1487
|
+
e.__root = t, delete e.currentTarget, be(u), Me(d);
|
|
1488
1488
|
}
|
|
1489
1489
|
}
|
|
1490
1490
|
}
|
|
1491
|
-
function
|
|
1491
|
+
function Er(e) {
|
|
1492
1492
|
var t = document.createElement("template");
|
|
1493
1493
|
return t.innerHTML = e, t.content;
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function ot(e, t) {
|
|
1496
1496
|
var n = (
|
|
1497
1497
|
/** @type {Effect} */
|
|
1498
|
-
|
|
1498
|
+
P
|
|
1499
1499
|
);
|
|
1500
1500
|
n.nodes_start === null && (n.nodes_start = e, n.nodes_end = t);
|
|
1501
1501
|
}
|
|
1502
1502
|
// @__NO_SIDE_EFFECTS__
|
|
1503
1503
|
function Ee(e, t) {
|
|
1504
|
-
var n = (t &
|
|
1504
|
+
var n = (t & Gr) !== 0, r, s = !e.startsWith("<!>");
|
|
1505
1505
|
return () => {
|
|
1506
|
-
if (
|
|
1507
|
-
return
|
|
1508
|
-
r === void 0 && (r =
|
|
1509
|
-
/* @__PURE__ */
|
|
1506
|
+
if (B)
|
|
1507
|
+
return ot(F, null), F;
|
|
1508
|
+
r === void 0 && (r = Er(s ? e : "<!>" + e), r = /** @type {Node} */
|
|
1509
|
+
/* @__PURE__ */ st(r));
|
|
1510
1510
|
var o = (
|
|
1511
1511
|
/** @type {TemplateNode} */
|
|
1512
|
-
n ||
|
|
1512
|
+
n || nn ? document.importNode(r, !0) : r.cloneNode(!0)
|
|
1513
1513
|
);
|
|
1514
|
-
return
|
|
1514
|
+
return ot(o, o), o;
|
|
1515
1515
|
};
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1518
|
-
if (
|
|
1519
|
-
|
|
1517
|
+
function ue(e, t) {
|
|
1518
|
+
if (B) {
|
|
1519
|
+
P.nodes_end = F, rt();
|
|
1520
1520
|
return;
|
|
1521
1521
|
}
|
|
1522
1522
|
e !== null && e.before(
|
|
@@ -1524,103 +1524,103 @@ function ae(e, t) {
|
|
|
1524
1524
|
t
|
|
1525
1525
|
);
|
|
1526
1526
|
}
|
|
1527
|
-
function
|
|
1527
|
+
function to(e, t) {
|
|
1528
1528
|
var n = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1529
1529
|
n !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = n, e.nodeValue = n + "");
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1532
|
-
return
|
|
1531
|
+
function Cr(e, t) {
|
|
1532
|
+
return Pr(e, t);
|
|
1533
1533
|
}
|
|
1534
|
-
function
|
|
1535
|
-
|
|
1536
|
-
const n = t.target, r =
|
|
1534
|
+
function no(e, t) {
|
|
1535
|
+
qt(), t.intro = t.intro ?? !1;
|
|
1536
|
+
const n = t.target, r = B, s = F;
|
|
1537
1537
|
try {
|
|
1538
1538
|
for (var o = (
|
|
1539
1539
|
/** @type {TemplateNode} */
|
|
1540
|
-
/* @__PURE__ */
|
|
1540
|
+
/* @__PURE__ */ st(n)
|
|
1541
1541
|
); o && (o.nodeType !== 8 || /** @type {Comment} */
|
|
1542
|
-
o.data !==
|
|
1542
|
+
o.data !== Ct); )
|
|
1543
1543
|
o = /** @type {TemplateNode} */
|
|
1544
1544
|
/* @__PURE__ */ ke(o);
|
|
1545
1545
|
if (!o)
|
|
1546
|
-
throw
|
|
1547
|
-
|
|
1546
|
+
throw Ne;
|
|
1547
|
+
Ue(!0), de(
|
|
1548
1548
|
/** @type {Comment} */
|
|
1549
1549
|
o
|
|
1550
|
-
),
|
|
1551
|
-
const i =
|
|
1550
|
+
), rt();
|
|
1551
|
+
const i = Pr(e, { ...t, anchor: o });
|
|
1552
1552
|
if (F === null || F.nodeType !== 8 || /** @type {Comment} */
|
|
1553
|
-
F.data !==
|
|
1554
|
-
throw
|
|
1555
|
-
return
|
|
1553
|
+
F.data !== Ht)
|
|
1554
|
+
throw xt(), Ne;
|
|
1555
|
+
return Ue(!1), /** @type {Exports} */
|
|
1556
1556
|
i;
|
|
1557
1557
|
} catch (i) {
|
|
1558
|
-
if (i ===
|
|
1559
|
-
return t.recover === !1 &&
|
|
1558
|
+
if (i === Ne)
|
|
1559
|
+
return t.recover === !1 && us(), qt(), Is(n), Ue(!1), Cr(e, t);
|
|
1560
1560
|
throw i;
|
|
1561
1561
|
} finally {
|
|
1562
|
-
|
|
1563
|
-
}
|
|
1564
|
-
}
|
|
1565
|
-
const
|
|
1566
|
-
function
|
|
1567
|
-
|
|
1568
|
-
var a = /* @__PURE__ */ new Set(), c = (
|
|
1569
|
-
for (var
|
|
1570
|
-
var
|
|
1571
|
-
if (!a.has(
|
|
1572
|
-
a.add(
|
|
1573
|
-
var
|
|
1574
|
-
t.addEventListener(
|
|
1575
|
-
var
|
|
1576
|
-
|
|
1562
|
+
Ue(r), de(s);
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
const Be = /* @__PURE__ */ new Map();
|
|
1566
|
+
function Pr(e, { target: t, anchor: n, props: r = {}, events: s, context: o, intro: i = !0 }) {
|
|
1567
|
+
qt();
|
|
1568
|
+
var a = /* @__PURE__ */ new Set(), c = (d) => {
|
|
1569
|
+
for (var f = 0; f < d.length; f++) {
|
|
1570
|
+
var h = d[f];
|
|
1571
|
+
if (!a.has(h)) {
|
|
1572
|
+
a.add(h);
|
|
1573
|
+
var _ = Xs(h);
|
|
1574
|
+
t.addEventListener(h, lt, { passive: _ });
|
|
1575
|
+
var y = Be.get(h);
|
|
1576
|
+
y === void 0 ? (document.addEventListener(h, lt, { passive: _ }), Be.set(h, 1)) : Be.set(h, y + 1);
|
|
1577
1577
|
}
|
|
1578
1578
|
}
|
|
1579
1579
|
};
|
|
1580
|
-
c(
|
|
1581
|
-
var l = void 0, u =
|
|
1582
|
-
var
|
|
1583
|
-
return
|
|
1580
|
+
c(Kr(eo)), Rn.add(c);
|
|
1581
|
+
var l = void 0, u = Qs(() => {
|
|
1582
|
+
var d = n ?? t.appendChild(gt());
|
|
1583
|
+
return Et(() => {
|
|
1584
1584
|
if (o) {
|
|
1585
|
-
|
|
1586
|
-
var
|
|
1585
|
+
ln({});
|
|
1586
|
+
var f = (
|
|
1587
1587
|
/** @type {ComponentContext} */
|
|
1588
|
-
|
|
1588
|
+
A
|
|
1589
1589
|
);
|
|
1590
|
-
|
|
1590
|
+
f.c = o;
|
|
1591
1591
|
}
|
|
1592
|
-
s && (r.$$events = s),
|
|
1592
|
+
s && (r.$$events = s), B && ot(
|
|
1593
1593
|
/** @type {TemplateNode} */
|
|
1594
|
-
|
|
1594
|
+
d,
|
|
1595
1595
|
null
|
|
1596
|
-
), l = e(
|
|
1596
|
+
), l = e(d, r) || {}, B && (P.nodes_end = F), o && an();
|
|
1597
1597
|
}), () => {
|
|
1598
|
-
for (var
|
|
1599
|
-
t.removeEventListener(
|
|
1600
|
-
var
|
|
1598
|
+
for (var f of a) {
|
|
1599
|
+
t.removeEventListener(f, lt);
|
|
1600
|
+
var h = (
|
|
1601
1601
|
/** @type {number} */
|
|
1602
|
-
|
|
1602
|
+
Be.get(f)
|
|
1603
1603
|
);
|
|
1604
|
-
--
|
|
1604
|
+
--h === 0 ? (document.removeEventListener(f, lt), Be.delete(f)) : Be.set(f, h);
|
|
1605
1605
|
}
|
|
1606
|
-
|
|
1606
|
+
Rn.delete(c), d !== n && d.parentNode?.removeChild(d);
|
|
1607
1607
|
};
|
|
1608
1608
|
});
|
|
1609
|
-
return
|
|
1609
|
+
return Yt.set(l, u), l;
|
|
1610
1610
|
}
|
|
1611
|
-
let
|
|
1612
|
-
function
|
|
1613
|
-
const n =
|
|
1614
|
-
return n ? (
|
|
1611
|
+
let Yt = /* @__PURE__ */ new WeakMap();
|
|
1612
|
+
function ro(e, t) {
|
|
1613
|
+
const n = Yt.get(e);
|
|
1614
|
+
return n ? (Yt.delete(e), n(t)) : (Ss(), Promise.resolve());
|
|
1615
1615
|
}
|
|
1616
|
-
function
|
|
1617
|
-
e &&
|
|
1616
|
+
function Sr(e) {
|
|
1617
|
+
e && ss(e[R] ?? "a component", e.name);
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1620
|
-
const e =
|
|
1619
|
+
function xr() {
|
|
1620
|
+
const e = A?.function;
|
|
1621
1621
|
function t(n) {
|
|
1622
|
-
const r =
|
|
1623
|
-
|
|
1622
|
+
const r = gr()?.[R] ?? "Something";
|
|
1623
|
+
rs(r, n, e[R]);
|
|
1624
1624
|
}
|
|
1625
1625
|
return {
|
|
1626
1626
|
$destroy: () => t("$destroy()"),
|
|
@@ -1628,79 +1628,79 @@ function br() {
|
|
|
1628
1628
|
$set: () => t("$set(...)")
|
|
1629
1629
|
};
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1632
|
-
|
|
1633
|
-
var s = e, o = null, i = null, a =
|
|
1634
|
-
const u = (
|
|
1635
|
-
l = !0,
|
|
1636
|
-
},
|
|
1637
|
-
if (a === (a =
|
|
1638
|
-
let
|
|
1639
|
-
if (
|
|
1631
|
+
function et(e, t, [n, r] = [0, 0]) {
|
|
1632
|
+
B && n === 0 && rt();
|
|
1633
|
+
var s = e, o = null, i = null, a = M, c = n > 0 ? Kt : 0, l = !1;
|
|
1634
|
+
const u = (f, h = !0) => {
|
|
1635
|
+
l = !0, d(h, f);
|
|
1636
|
+
}, d = (f, h) => {
|
|
1637
|
+
if (a === (a = f)) return;
|
|
1638
|
+
let _ = !1;
|
|
1639
|
+
if (B && r !== -1) {
|
|
1640
1640
|
if (n === 0) {
|
|
1641
|
-
const
|
|
1641
|
+
const $ = (
|
|
1642
1642
|
/** @type {Comment} */
|
|
1643
1643
|
s.data
|
|
1644
1644
|
);
|
|
1645
|
-
|
|
1645
|
+
$ === Ct ? r = 0 : $ === Xt ? r = 1 / 0 : (r = parseInt($.substring(1)), r !== r && (r = a ? 1 / 0 : -1));
|
|
1646
1646
|
}
|
|
1647
|
-
const
|
|
1648
|
-
!!a ===
|
|
1647
|
+
const y = r > n;
|
|
1648
|
+
!!a === y && (s = xs(), de(s), Ue(!1), _ = !0, r = -1);
|
|
1649
1649
|
}
|
|
1650
|
-
a ? (o ?
|
|
1650
|
+
a ? (o ? Pn(o) : h && (o = Et(() => h(s))), i && Jt(i, () => {
|
|
1651
1651
|
i = null;
|
|
1652
|
-
})) : (i ?
|
|
1652
|
+
})) : (i ? Pn(i) : h && (i = Et(() => h(s, [n + 1, r]))), o && Jt(o, () => {
|
|
1653
1653
|
o = null;
|
|
1654
|
-
})),
|
|
1654
|
+
})), _ && Ue(!0);
|
|
1655
1655
|
};
|
|
1656
|
-
|
|
1657
|
-
l = !1, t(u), l ||
|
|
1658
|
-
}, c),
|
|
1656
|
+
sn(() => {
|
|
1657
|
+
l = !1, t(u), l || d(null, null);
|
|
1658
|
+
}, c), B && (s = F);
|
|
1659
1659
|
}
|
|
1660
|
-
function
|
|
1661
|
-
if (!t || t ===
|
|
1660
|
+
function so(e, t, n) {
|
|
1661
|
+
if (!t || t === Ws(String(n ?? ""))) return;
|
|
1662
1662
|
let r;
|
|
1663
1663
|
const s = e.__svelte_meta?.loc;
|
|
1664
|
-
s ? r = `near ${s.file}:${s.line}:${s.column}` :
|
|
1664
|
+
s ? r = `near ${s.file}:${s.line}:${s.column}` : Te?.[R] && (r = `in ${Te[R]}`), Ps(Hs(r));
|
|
1665
1665
|
}
|
|
1666
|
-
function
|
|
1666
|
+
function kn(e, t, n, r, s) {
|
|
1667
1667
|
var o = e, i = "", a;
|
|
1668
|
-
|
|
1668
|
+
sn(() => {
|
|
1669
1669
|
if (i === (i = t() ?? "")) {
|
|
1670
|
-
|
|
1670
|
+
B && rt();
|
|
1671
1671
|
return;
|
|
1672
1672
|
}
|
|
1673
|
-
a !== void 0 && (
|
|
1674
|
-
if (
|
|
1673
|
+
a !== void 0 && (ve(a), a = void 0), i !== "" && (a = Et(() => {
|
|
1674
|
+
if (B) {
|
|
1675
1675
|
for (var c = (
|
|
1676
1676
|
/** @type {Comment} */
|
|
1677
1677
|
F.data
|
|
1678
|
-
), l =
|
|
1678
|
+
), l = rt(), u = l; l !== null && (l.nodeType !== 8 || /** @type {Comment} */
|
|
1679
1679
|
l.data !== ""); )
|
|
1680
1680
|
u = l, l = /** @type {TemplateNode} */
|
|
1681
1681
|
/* @__PURE__ */ ke(l);
|
|
1682
1682
|
if (l === null)
|
|
1683
|
-
throw
|
|
1684
|
-
|
|
1683
|
+
throw xt(), Ne;
|
|
1684
|
+
so(
|
|
1685
1685
|
/** @type {Element} */
|
|
1686
1686
|
l.parentNode,
|
|
1687
1687
|
c,
|
|
1688
1688
|
i
|
|
1689
|
-
),
|
|
1689
|
+
), ot(F, u), o = de(l);
|
|
1690
1690
|
return;
|
|
1691
1691
|
}
|
|
1692
|
-
var
|
|
1693
|
-
|
|
1692
|
+
var d = i + "", f = Er(d);
|
|
1693
|
+
ot(
|
|
1694
1694
|
/** @type {TemplateNode} */
|
|
1695
|
-
/* @__PURE__ */
|
|
1695
|
+
/* @__PURE__ */ st(f),
|
|
1696
1696
|
/** @type {TemplateNode} */
|
|
1697
|
-
|
|
1698
|
-
), o.before(
|
|
1697
|
+
f.lastChild
|
|
1698
|
+
), o.before(f);
|
|
1699
1699
|
}));
|
|
1700
1700
|
});
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1703
|
-
|
|
1702
|
+
function Tr(e, t) {
|
|
1703
|
+
Yn(() => {
|
|
1704
1704
|
var n = e.getRootNode(), r = (
|
|
1705
1705
|
/** @type {ShadowRoot} */
|
|
1706
1706
|
n.host ? (
|
|
@@ -1714,35 +1714,35 @@ function Cr(e, t) {
|
|
|
1714
1714
|
);
|
|
1715
1715
|
if (!r.querySelector("#" + t.hash)) {
|
|
1716
1716
|
const s = document.createElement("style");
|
|
1717
|
-
s.id = t.hash, s.textContent = t.code, r.appendChild(s),
|
|
1717
|
+
s.id = t.hash, s.textContent = t.code, r.appendChild(s), Zs(t.hash, s);
|
|
1718
1718
|
}
|
|
1719
1719
|
});
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1721
|
+
function oo(e, t, n) {
|
|
1722
1722
|
var r = e == null ? "" : "" + e;
|
|
1723
1723
|
return t && (r = r ? r + " " + t : t), r === "" ? null : r;
|
|
1724
1724
|
}
|
|
1725
1725
|
function Ae(e, t, n, r, s, o) {
|
|
1726
1726
|
var i = e.__className;
|
|
1727
|
-
if (
|
|
1728
|
-
var a =
|
|
1729
|
-
(!
|
|
1727
|
+
if (B || i !== n || i === void 0) {
|
|
1728
|
+
var a = oo(n, r);
|
|
1729
|
+
(!B || a !== e.getAttribute("class")) && (a == null ? e.removeAttribute("class") : e.className = a), e.__className = n;
|
|
1730
1730
|
}
|
|
1731
1731
|
return o;
|
|
1732
1732
|
}
|
|
1733
|
-
function
|
|
1734
|
-
return e === t || e?.[
|
|
1733
|
+
function Ln(e, t) {
|
|
1734
|
+
return e === t || e?.[we] === t;
|
|
1735
1735
|
}
|
|
1736
|
-
function
|
|
1737
|
-
return
|
|
1736
|
+
function io(e = {}, t, n, r) {
|
|
1737
|
+
return rn(() => {
|
|
1738
1738
|
var s, o;
|
|
1739
|
-
return
|
|
1740
|
-
s = o, o = [],
|
|
1741
|
-
e !== n(...o) && (t(e, ...o), s &&
|
|
1739
|
+
return ur(() => {
|
|
1740
|
+
s = o, o = [], $t(() => {
|
|
1741
|
+
e !== n(...o) && (t(e, ...o), s && Ln(n(...s), e) && t(null, ...s));
|
|
1742
1742
|
});
|
|
1743
1743
|
}), () => {
|
|
1744
|
-
|
|
1745
|
-
o &&
|
|
1744
|
+
Yn(() => {
|
|
1745
|
+
o && Ln(n(...o), e) && t(null, ...o);
|
|
1746
1746
|
});
|
|
1747
1747
|
};
|
|
1748
1748
|
}), e;
|
|
@@ -1757,7 +1757,7 @@ function ns(e = {}, t, n, r) {
|
|
|
1757
1757
|
get: () => {
|
|
1758
1758
|
if (n !== void 0)
|
|
1759
1759
|
return n;
|
|
1760
|
-
|
|
1760
|
+
ds(t);
|
|
1761
1761
|
},
|
|
1762
1762
|
set: (r) => {
|
|
1763
1763
|
n = r;
|
|
@@ -1765,74 +1765,74 @@ function ns(e = {}, t, n, r) {
|
|
|
1765
1765
|
});
|
|
1766
1766
|
}
|
|
1767
1767
|
};
|
|
1768
|
-
var
|
|
1768
|
+
var Oo = e;
|
|
1769
1769
|
e("$state"), e("$effect"), e("$derived"), e("$inspect"), e("$props"), e("$bindable");
|
|
1770
1770
|
}
|
|
1771
|
-
let
|
|
1772
|
-
function
|
|
1773
|
-
var t =
|
|
1771
|
+
let at = !1;
|
|
1772
|
+
function lo(e) {
|
|
1773
|
+
var t = at;
|
|
1774
1774
|
try {
|
|
1775
|
-
return
|
|
1775
|
+
return at = !1, [e(), at];
|
|
1776
1776
|
} finally {
|
|
1777
|
-
|
|
1777
|
+
at = t;
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
|
-
function
|
|
1780
|
+
function On(e) {
|
|
1781
1781
|
return e.ctx?.d ?? !1;
|
|
1782
1782
|
}
|
|
1783
|
-
function
|
|
1784
|
-
var s = (n &
|
|
1785
|
-
i ? [l, c] =
|
|
1783
|
+
function C(e, t, n, r) {
|
|
1784
|
+
var s = (n & Vr) !== 0, o = !0, i = (n & Yr) !== 0, a = (n & Wr) !== 0, c = !1, l;
|
|
1785
|
+
i ? [l, c] = lo(() => (
|
|
1786
1786
|
/** @type {V} */
|
|
1787
1787
|
e[t]
|
|
1788
1788
|
)) : l = /** @type {V} */
|
|
1789
1789
|
e[t];
|
|
1790
|
-
var u =
|
|
1790
|
+
var u = we in e || Mn in e, d = i && (Se(e, t)?.set ?? (u && t in e && ((x) => e[t] = x))) || void 0, f = (
|
|
1791
1791
|
/** @type {V} */
|
|
1792
1792
|
r
|
|
1793
|
-
),
|
|
1793
|
+
), h = !0, _ = !1, y = () => (_ = !0, h && (h = !1, a ? f = $t(
|
|
1794
1794
|
/** @type {() => V} */
|
|
1795
1795
|
r
|
|
1796
|
-
) :
|
|
1797
|
-
r),
|
|
1798
|
-
l === void 0 && r !== void 0 && (
|
|
1799
|
-
var
|
|
1800
|
-
if (
|
|
1801
|
-
var
|
|
1796
|
+
) : f = /** @type {V} */
|
|
1797
|
+
r), f);
|
|
1798
|
+
l === void 0 && r !== void 0 && (d && o && fs(t), l = y(), d && d(l));
|
|
1799
|
+
var $;
|
|
1800
|
+
if ($ = () => {
|
|
1801
|
+
var x = (
|
|
1802
1802
|
/** @type {V} */
|
|
1803
1803
|
e[t]
|
|
1804
1804
|
);
|
|
1805
|
-
return
|
|
1806
|
-
}, (n &
|
|
1807
|
-
return
|
|
1808
|
-
if (
|
|
1805
|
+
return x === void 0 ? y() : (h = !0, _ = !1, x);
|
|
1806
|
+
}, (n & Jr) === 0)
|
|
1807
|
+
return $;
|
|
1808
|
+
if (d) {
|
|
1809
1809
|
var O = e.$$legacy;
|
|
1810
|
-
return function(
|
|
1811
|
-
return arguments.length > 0 ? ((!
|
|
1810
|
+
return function(x, V) {
|
|
1811
|
+
return arguments.length > 0 ? ((!V || O || c) && d(V ? $() : x), x) : $();
|
|
1812
1812
|
};
|
|
1813
1813
|
}
|
|
1814
|
-
var
|
|
1815
|
-
var
|
|
1816
|
-
return
|
|
1814
|
+
var S = !1, U = /* @__PURE__ */ Hn(l), k = /* @__PURE__ */ tn(() => {
|
|
1815
|
+
var x = $(), V = g(U);
|
|
1816
|
+
return S ? (S = !1, V) : U.v = x;
|
|
1817
1817
|
});
|
|
1818
|
-
return i && g(
|
|
1818
|
+
return i && g(k), s || (k.equals = Gn), function(x, V) {
|
|
1819
1819
|
if (arguments.length > 0) {
|
|
1820
|
-
const
|
|
1821
|
-
if (!
|
|
1822
|
-
if (
|
|
1823
|
-
return
|
|
1824
|
-
|
|
1820
|
+
const j = V ? g(k) : i ? Pe(x) : x;
|
|
1821
|
+
if (!k.equals(j)) {
|
|
1822
|
+
if (S = !0, w(U, j), _ && f !== void 0 && (f = j), On(k))
|
|
1823
|
+
return x;
|
|
1824
|
+
$t(() => g(k));
|
|
1825
1825
|
}
|
|
1826
|
-
return
|
|
1826
|
+
return x;
|
|
1827
1827
|
}
|
|
1828
|
-
return
|
|
1828
|
+
return On(k) ? k.v : g(k);
|
|
1829
1829
|
};
|
|
1830
1830
|
}
|
|
1831
|
-
function
|
|
1832
|
-
return new
|
|
1831
|
+
function ao(e) {
|
|
1832
|
+
return new co(e);
|
|
1833
1833
|
}
|
|
1834
|
-
var
|
|
1835
|
-
class
|
|
1834
|
+
var ce, H;
|
|
1835
|
+
class co {
|
|
1836
1836
|
/**
|
|
1837
1837
|
* @param {ComponentConstructorOptions & {
|
|
1838
1838
|
* component: any;
|
|
@@ -1840,11 +1840,11 @@ class ss {
|
|
|
1840
1840
|
*/
|
|
1841
1841
|
constructor(t) {
|
|
1842
1842
|
/** @type {any} */
|
|
1843
|
-
|
|
1843
|
+
Dt(this, ce);
|
|
1844
1844
|
/** @type {Record<string, any>} */
|
|
1845
|
-
|
|
1845
|
+
Dt(this, H);
|
|
1846
1846
|
var n = /* @__PURE__ */ new Map(), r = (o, i) => {
|
|
1847
|
-
var a = /* @__PURE__ */
|
|
1847
|
+
var a = /* @__PURE__ */ Hn(i);
|
|
1848
1848
|
return n.set(o, a), a;
|
|
1849
1849
|
};
|
|
1850
1850
|
const s = new Proxy(
|
|
@@ -1854,42 +1854,42 @@ class ss {
|
|
|
1854
1854
|
return g(n.get(i) ?? r(i, Reflect.get(o, i)));
|
|
1855
1855
|
},
|
|
1856
1856
|
has(o, i) {
|
|
1857
|
-
return i ===
|
|
1857
|
+
return i === Mn ? !0 : (g(n.get(i) ?? r(i, Reflect.get(o, i))), Reflect.has(o, i));
|
|
1858
1858
|
},
|
|
1859
1859
|
set(o, i, a) {
|
|
1860
|
-
return
|
|
1860
|
+
return w(n.get(i) ?? r(i, a), a), Reflect.set(o, i, a);
|
|
1861
1861
|
}
|
|
1862
1862
|
}
|
|
1863
1863
|
);
|
|
1864
|
-
|
|
1864
|
+
At(this, H, (t.hydrate ? no : Cr)(t.component, {
|
|
1865
1865
|
target: t.target,
|
|
1866
1866
|
anchor: t.anchor,
|
|
1867
1867
|
props: s,
|
|
1868
1868
|
context: t.context,
|
|
1869
1869
|
intro: t.intro ?? !1,
|
|
1870
1870
|
recover: t.recover
|
|
1871
|
-
})), (!t?.props?.$$host || t.sync === !1) &&
|
|
1872
|
-
for (const o of Object.keys(
|
|
1873
|
-
o === "$set" || o === "$destroy" || o === "$on" ||
|
|
1871
|
+
})), (!t?.props?.$$host || t.sync === !1) && E(), At(this, ce, s.$$events);
|
|
1872
|
+
for (const o of Object.keys(Q(this, H)))
|
|
1873
|
+
o === "$set" || o === "$destroy" || o === "$on" || ie(this, o, {
|
|
1874
1874
|
get() {
|
|
1875
|
-
return
|
|
1875
|
+
return Q(this, H)[o];
|
|
1876
1876
|
},
|
|
1877
1877
|
/** @param {any} value */
|
|
1878
1878
|
set(i) {
|
|
1879
|
-
|
|
1879
|
+
Q(this, H)[o] = i;
|
|
1880
1880
|
},
|
|
1881
1881
|
enumerable: !0
|
|
1882
1882
|
});
|
|
1883
|
-
|
|
1883
|
+
Q(this, H).$set = /** @param {Record<string, any>} next */
|
|
1884
1884
|
(o) => {
|
|
1885
1885
|
Object.assign(s, o);
|
|
1886
|
-
},
|
|
1887
|
-
|
|
1886
|
+
}, Q(this, H).$destroy = () => {
|
|
1887
|
+
ro(Q(this, H));
|
|
1888
1888
|
};
|
|
1889
1889
|
}
|
|
1890
1890
|
/** @param {Record<string, any>} props */
|
|
1891
1891
|
$set(t) {
|
|
1892
|
-
|
|
1892
|
+
Q(this, H).$set(t);
|
|
1893
1893
|
}
|
|
1894
1894
|
/**
|
|
1895
1895
|
* @param {string} event
|
|
@@ -1897,22 +1897,22 @@ class ss {
|
|
|
1897
1897
|
* @returns {any}
|
|
1898
1898
|
*/
|
|
1899
1899
|
$on(t, n) {
|
|
1900
|
-
|
|
1900
|
+
Q(this, ce)[t] = Q(this, ce)[t] || [];
|
|
1901
1901
|
const r = (...s) => n.call(this, ...s);
|
|
1902
|
-
return
|
|
1903
|
-
|
|
1902
|
+
return Q(this, ce)[t].push(r), () => {
|
|
1903
|
+
Q(this, ce)[t] = Q(this, ce)[t].filter(
|
|
1904
1904
|
/** @param {any} fn */
|
|
1905
1905
|
(s) => s !== r
|
|
1906
1906
|
);
|
|
1907
1907
|
};
|
|
1908
1908
|
}
|
|
1909
1909
|
$destroy() {
|
|
1910
|
-
|
|
1910
|
+
Q(this, H).$destroy();
|
|
1911
1911
|
}
|
|
1912
1912
|
}
|
|
1913
|
-
|
|
1914
|
-
let
|
|
1915
|
-
typeof HTMLElement == "function" && (
|
|
1913
|
+
ce = new WeakMap(), H = new WeakMap();
|
|
1914
|
+
let Ir;
|
|
1915
|
+
typeof HTMLElement == "function" && (Ir = class extends HTMLElement {
|
|
1916
1916
|
/**
|
|
1917
1917
|
* @param {*} $$componentCtor
|
|
1918
1918
|
* @param {*} $$slots
|
|
@@ -1921,25 +1921,25 @@ typeof HTMLElement == "function" && (Pr = class extends HTMLElement {
|
|
|
1921
1921
|
constructor(t, n, r) {
|
|
1922
1922
|
super();
|
|
1923
1923
|
/** The Svelte component constructor */
|
|
1924
|
-
|
|
1924
|
+
K(this, "$$ctor");
|
|
1925
1925
|
/** Slots */
|
|
1926
|
-
|
|
1926
|
+
K(this, "$$s");
|
|
1927
1927
|
/** @type {any} The Svelte component instance */
|
|
1928
|
-
|
|
1928
|
+
K(this, "$$c");
|
|
1929
1929
|
/** Whether or not the custom element is connected */
|
|
1930
|
-
|
|
1930
|
+
K(this, "$$cn", !1);
|
|
1931
1931
|
/** @type {Record<string, any>} Component props data */
|
|
1932
|
-
|
|
1932
|
+
K(this, "$$d", {});
|
|
1933
1933
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
1934
|
-
|
|
1934
|
+
K(this, "$$r", !1);
|
|
1935
1935
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
1936
|
-
|
|
1936
|
+
K(this, "$$p_d", {});
|
|
1937
1937
|
/** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
|
|
1938
|
-
|
|
1938
|
+
K(this, "$$l", {});
|
|
1939
1939
|
/** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
|
|
1940
|
-
|
|
1940
|
+
K(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
1941
1941
|
/** @type {any} The managed render effect for reflecting attributes */
|
|
1942
|
-
|
|
1942
|
+
K(this, "$$me");
|
|
1943
1943
|
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
1944
1944
|
}
|
|
1945
1945
|
/**
|
|
@@ -1970,22 +1970,22 @@ typeof HTMLElement == "function" && (Pr = class extends HTMLElement {
|
|
|
1970
1970
|
let n = function(o) {
|
|
1971
1971
|
return (i) => {
|
|
1972
1972
|
const a = document.createElement("slot");
|
|
1973
|
-
o !== "default" && (a.name = o),
|
|
1973
|
+
o !== "default" && (a.name = o), ue(i, a);
|
|
1974
1974
|
};
|
|
1975
1975
|
};
|
|
1976
1976
|
var t = n;
|
|
1977
1977
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
1978
1978
|
return;
|
|
1979
|
-
const r = {}, s =
|
|
1979
|
+
const r = {}, s = uo(this);
|
|
1980
1980
|
for (const o of this.$$s)
|
|
1981
1981
|
o in s && (o === "default" && !this.$$d.children ? (this.$$d.children = n(o), r.default = !0) : r[o] = n(o));
|
|
1982
1982
|
for (const o of this.attributes) {
|
|
1983
1983
|
const i = this.$$g_p(o.name);
|
|
1984
|
-
i in this.$$d || (this.$$d[i] =
|
|
1984
|
+
i in this.$$d || (this.$$d[i] = dt(i, o.value, this.$$p_d, "toProp"));
|
|
1985
1985
|
}
|
|
1986
1986
|
for (const o in this.$$p_d)
|
|
1987
1987
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
1988
|
-
this.$$c =
|
|
1988
|
+
this.$$c = ao({
|
|
1989
1989
|
component: this.$$ctor,
|
|
1990
1990
|
target: this.shadowRoot || this,
|
|
1991
1991
|
props: {
|
|
@@ -1993,13 +1993,13 @@ typeof HTMLElement == "function" && (Pr = class extends HTMLElement {
|
|
|
1993
1993
|
$$slots: r,
|
|
1994
1994
|
$$host: this
|
|
1995
1995
|
}
|
|
1996
|
-
}), this.$$me =
|
|
1997
|
-
|
|
1996
|
+
}), this.$$me = js(() => {
|
|
1997
|
+
ur(() => {
|
|
1998
1998
|
this.$$r = !0;
|
|
1999
|
-
for (const o of
|
|
1999
|
+
for (const o of pt(this.$$c)) {
|
|
2000
2000
|
if (!this.$$p_d[o]?.reflect) continue;
|
|
2001
2001
|
this.$$d[o] = this.$$c[o];
|
|
2002
|
-
const i =
|
|
2002
|
+
const i = dt(
|
|
2003
2003
|
o,
|
|
2004
2004
|
this.$$d[o],
|
|
2005
2005
|
this.$$p_d,
|
|
@@ -2026,7 +2026,7 @@ typeof HTMLElement == "function" && (Pr = class extends HTMLElement {
|
|
|
2026
2026
|
* @param {string} newValue
|
|
2027
2027
|
*/
|
|
2028
2028
|
attributeChangedCallback(t, n, r) {
|
|
2029
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
2029
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = dt(t, r, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
|
|
2030
2030
|
}
|
|
2031
2031
|
disconnectedCallback() {
|
|
2032
2032
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2037,12 +2037,12 @@ typeof HTMLElement == "function" && (Pr = class extends HTMLElement {
|
|
|
2037
2037
|
* @param {string} attribute_name
|
|
2038
2038
|
*/
|
|
2039
2039
|
$$g_p(t) {
|
|
2040
|
-
return
|
|
2040
|
+
return pt(this.$$p_d).find(
|
|
2041
2041
|
(n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
|
|
2042
2042
|
) || t;
|
|
2043
2043
|
}
|
|
2044
2044
|
});
|
|
2045
|
-
function
|
|
2045
|
+
function dt(e, t, n, r) {
|
|
2046
2046
|
const s = n[e]?.type;
|
|
2047
2047
|
if (t = s === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
2048
2048
|
return t;
|
|
@@ -2072,7 +2072,7 @@ function ut(e, t, n, r) {
|
|
|
2072
2072
|
return t;
|
|
2073
2073
|
}
|
|
2074
2074
|
}
|
|
2075
|
-
function
|
|
2075
|
+
function uo(e) {
|
|
2076
2076
|
const t = {};
|
|
2077
2077
|
return e.childNodes.forEach((n) => {
|
|
2078
2078
|
t[
|
|
@@ -2081,33 +2081,33 @@ function is(e) {
|
|
|
2081
2081
|
] = !0;
|
|
2082
2082
|
}), t;
|
|
2083
2083
|
}
|
|
2084
|
-
function
|
|
2085
|
-
let i = class extends
|
|
2084
|
+
function Rr(e, t, n, r, s, o) {
|
|
2085
|
+
let i = class extends Ir {
|
|
2086
2086
|
constructor() {
|
|
2087
2087
|
super(e, n, s), this.$$p_d = t;
|
|
2088
2088
|
}
|
|
2089
2089
|
static get observedAttributes() {
|
|
2090
|
-
return
|
|
2090
|
+
return pt(t).map(
|
|
2091
2091
|
(a) => (t[a].attribute || a).toLowerCase()
|
|
2092
2092
|
);
|
|
2093
2093
|
}
|
|
2094
2094
|
};
|
|
2095
|
-
return
|
|
2096
|
-
|
|
2095
|
+
return pt(t).forEach((a) => {
|
|
2096
|
+
ie(i.prototype, a, {
|
|
2097
2097
|
get() {
|
|
2098
2098
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
2099
2099
|
},
|
|
2100
2100
|
set(c) {
|
|
2101
|
-
c =
|
|
2101
|
+
c = dt(a, c, t), this.$$d[a] = c;
|
|
2102
2102
|
var l = this.$$c;
|
|
2103
2103
|
if (l) {
|
|
2104
|
-
var u =
|
|
2104
|
+
var u = Se(l, a)?.get;
|
|
2105
2105
|
u ? l[a] = c : l.$set({ [a]: c });
|
|
2106
2106
|
}
|
|
2107
2107
|
}
|
|
2108
2108
|
});
|
|
2109
2109
|
}), r.forEach((a) => {
|
|
2110
|
-
|
|
2110
|
+
ie(i.prototype, a, {
|
|
2111
2111
|
get() {
|
|
2112
2112
|
return this.$$c?.[a];
|
|
2113
2113
|
}
|
|
@@ -2115,23 +2115,42 @@ function Sr(e, t, n, r, s, o) {
|
|
|
2115
2115
|
}), e.element = /** @type {any} */
|
|
2116
2116
|
i, i;
|
|
2117
2117
|
}
|
|
2118
|
-
function
|
|
2119
|
-
return
|
|
2118
|
+
function W(e, ...t) {
|
|
2119
|
+
return $t(() => {
|
|
2120
2120
|
try {
|
|
2121
2121
|
let n = !1;
|
|
2122
2122
|
const r = [];
|
|
2123
2123
|
for (const s of t)
|
|
2124
|
-
s && typeof s == "object" &&
|
|
2125
|
-
n && (
|
|
2124
|
+
s && typeof s == "object" && we in s ? (r.push(ws(s, !0)), n = !0) : r.push(s);
|
|
2125
|
+
n && (Cs(e), console.log("%c[snapshot]", "color: grey", ...r));
|
|
2126
2126
|
} catch {
|
|
2127
2127
|
}
|
|
2128
2128
|
}), t;
|
|
2129
2129
|
}
|
|
2130
|
-
const
|
|
2130
|
+
const Fn = "-pie-editor--", kr = (...e) => e.reduce((t, n) => {
|
|
2131
2131
|
for (const r in n)
|
|
2132
2132
|
n.hasOwnProperty(r) && n[r] !== null && n[r] !== void 0 && (t[r] = n[r]);
|
|
2133
2133
|
return t;
|
|
2134
|
-
}, {}),
|
|
2134
|
+
}, {}), Lr = {}, fo = "https://builder.pie-api.com", vo = Lr.PUBLIC_BUILDER_ORIGIN_URL || fo, ho = Lr.PUBLIC_BUILDER_BUNDLE_URL || `${vo}/api/v1/bundles/`;
|
|
2135
|
+
var z = /* @__PURE__ */ ((e) => (e.player = "player.js", e.clientPlayer = "client-player.js", e.editor = "editor.js", e))(z || {}), Wt = /* @__PURE__ */ ((e) => (e.loading = "loading", e.loaded = "loaded", e))(Wt || {});
|
|
2136
|
+
const po = {
|
|
2137
|
+
invokeControllerForModel: !0,
|
|
2138
|
+
env: { mode: "gather", role: "student", partialScoring: !1 },
|
|
2139
|
+
eventListeners: {}
|
|
2140
|
+
};
|
|
2141
|
+
function go(e) {
|
|
2142
|
+
return e && typeof e.pie == "object";
|
|
2143
|
+
}
|
|
2144
|
+
function Bn(e) {
|
|
2145
|
+
return typeof e == "function" && "prototype" in e && e.prototype instanceof HTMLElement;
|
|
2146
|
+
}
|
|
2147
|
+
function _o(e) {
|
|
2148
|
+
return e && typeof e.PIE_REGISTRY == "object";
|
|
2149
|
+
}
|
|
2150
|
+
const Or = () => {
|
|
2151
|
+
let e;
|
|
2152
|
+
return _o(window) ? e = window.PIE_REGISTRY : (e = {}, window.PIE_REGISTRY = e), e;
|
|
2153
|
+
}, Fr = (e) => {
|
|
2135
2154
|
if (!e)
|
|
2136
2155
|
throw new Error("Parameter is required: input");
|
|
2137
2156
|
const t = e.charAt(0) === "@" ? e.match(/^(@[^/]+\/[^/@]+)(?:\/([^@]+))?(?:@([\s\S]+))?/) : e.match(/^([^/@]+)(?:\/([^@]+))?(?:@([\s\S]+))?/);
|
|
@@ -2142,20 +2161,7 @@ const kn = "-pie-editor--", Lr = (...e) => e.reduce((t, n) => {
|
|
|
2142
2161
|
path: t[2] || "",
|
|
2143
2162
|
version: t[3] || ""
|
|
2144
2163
|
};
|
|
2145
|
-
},
|
|
2146
|
-
function fs(e) {
|
|
2147
|
-
return e && typeof e.pie == "object";
|
|
2148
|
-
}
|
|
2149
|
-
function Rn(e) {
|
|
2150
|
-
return typeof e == "function" && "prototype" in e && e.prototype instanceof HTMLElement;
|
|
2151
|
-
}
|
|
2152
|
-
function ds(e) {
|
|
2153
|
-
return e && typeof e.PIE_REGISTRY == "object";
|
|
2154
|
-
}
|
|
2155
|
-
const kr = () => {
|
|
2156
|
-
let e;
|
|
2157
|
-
return ds(window) ? e = window.PIE_REGISTRY : (e = {}, window.PIE_REGISTRY = e), e;
|
|
2158
|
-
}, Rr = (e, t, n) => {
|
|
2164
|
+
}, mo = (e) => e.split("+").map((t) => Fr(t).name).join("+"), Br = (e, t, n) => {
|
|
2159
2165
|
if (!e)
|
|
2160
2166
|
throw new Error("session data is required");
|
|
2161
2167
|
const r = e.find((o) => o.id === t);
|
|
@@ -2163,12 +2169,8 @@ const kr = () => {
|
|
|
2163
2169
|
return n && !r.element && (r.element = n), r;
|
|
2164
2170
|
const s = n ? { id: t, element: n } : { id: t };
|
|
2165
2171
|
return e.push(s), s;
|
|
2166
|
-
},
|
|
2167
|
-
|
|
2168
|
-
Vt(r, { config: e, session: t, env: n });
|
|
2169
|
-
});
|
|
2170
|
-
}, on = (e) => {
|
|
2171
|
-
const t = kr();
|
|
2172
|
+
}, cn = (e) => {
|
|
2173
|
+
const t = Or();
|
|
2172
2174
|
console.log(`[findPieController] Looking for controller for: ${e}`), console.log("[findPieController] Registry has entries for:", Object.keys(t));
|
|
2173
2175
|
const n = t[e];
|
|
2174
2176
|
if (!n) {
|
|
@@ -2179,18 +2181,50 @@ const kr = () => {
|
|
|
2179
2181
|
package: n.package,
|
|
2180
2182
|
tagName: n.tagName,
|
|
2181
2183
|
hasController: !!n.controller,
|
|
2182
|
-
controllerKeys: n.controller ? Object.keys(n.controller) : []
|
|
2184
|
+
controllerKeys: n.controller ? Object.keys(n.controller) : [],
|
|
2185
|
+
bundleType: n.bundleType
|
|
2183
2186
|
});
|
|
2184
2187
|
const r = n.controller;
|
|
2185
|
-
|
|
2186
|
-
`[findPieController]
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2188
|
+
if (r)
|
|
2189
|
+
console.log(`[findPieController] ✅ Controller found for ${e} with functions:`, Object.keys(r));
|
|
2190
|
+
else {
|
|
2191
|
+
if (n.bundleType === z.clientPlayer)
|
|
2192
|
+
throw console.error(
|
|
2193
|
+
`[findPieController] ❌ CRITICAL: Registry entry exists for ${e} but controller is missing!`
|
|
2194
|
+
), console.error(`[findPieController] Bundle type: ${n.bundleType} (controllers required)`), console.error("[findPieController] Entry:", n), new Error(
|
|
2195
|
+
`No controller found for ${e}. client-player.js bundles MUST include controllers. Check bundle loading and registration.`
|
|
2196
|
+
);
|
|
2197
|
+
console.log(
|
|
2198
|
+
`[findPieController] ℹ️ No controller for ${e} - using server-processed models (player.js bundle)`
|
|
2199
|
+
);
|
|
2200
|
+
}
|
|
2201
|
+
return r;
|
|
2202
|
+
}, yo = async (e, t, n, r, s, o) => {
|
|
2203
|
+
console.log(`${o} Using controller, env:`, s), console.log(`${o} Model before filter:`, {
|
|
2204
|
+
id: t.id,
|
|
2205
|
+
element: t.element,
|
|
2206
|
+
hasCorrectResponse: "correctResponse" in t
|
|
2207
|
+
});
|
|
2208
|
+
const i = (a, c, l) => (console.log(`${o} updateSession called for ${a} with:`, l), Object.assign(n, l), Promise.resolve());
|
|
2209
|
+
try {
|
|
2210
|
+
const a = await r.model(t, n, s, i), c = {
|
|
2211
|
+
id: t.id,
|
|
2212
|
+
element: t.element,
|
|
2213
|
+
...a
|
|
2214
|
+
};
|
|
2215
|
+
console.log(`${o} ✅ Controller filtered model:`, {
|
|
2216
|
+
id: c.id,
|
|
2217
|
+
element: c.element,
|
|
2218
|
+
hasCorrectResponse: "correctResponse" in c,
|
|
2219
|
+
mode: s.mode,
|
|
2220
|
+
role: s.role
|
|
2221
|
+
}), e.model = c;
|
|
2222
|
+
} catch (a) {
|
|
2223
|
+
throw console.error(`${o} ❌ Controller error:`, a), a;
|
|
2224
|
+
}
|
|
2225
|
+
}, Gt = (e, t) => {
|
|
2226
|
+
const { config: n, session: r, env: s, eventListeners: o, invokeControllerForModel: i } = kr(
|
|
2227
|
+
po,
|
|
2194
2228
|
t
|
|
2195
2229
|
);
|
|
2196
2230
|
if (!s)
|
|
@@ -2206,276 +2240,190 @@ const kr = () => {
|
|
|
2206
2240
|
}
|
|
2207
2241
|
a.forEach((c) => {
|
|
2208
2242
|
const l = c;
|
|
2209
|
-
let u = t?.config?.models?.find((
|
|
2243
|
+
let u = t?.config?.models?.find((f) => f.id === c.id);
|
|
2210
2244
|
if (!u)
|
|
2211
2245
|
throw console.error("[updatePieElement] Model not found for", e, t), new Error(`model not found for ${e}`);
|
|
2212
2246
|
console.log(`[updatePieElement] Updating ${e}#${c.id}, env:`, s);
|
|
2213
|
-
const
|
|
2214
|
-
if (l.session =
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
}
|
|
2220
|
-
if (!d)
|
|
2221
|
-
throw console.error(`[updatePieElement] ❌ FATAL: No controller found for ${e}`), new Error(`No controller found for ${e}. PIE elements MUST have controllers.`);
|
|
2222
|
-
console.log(`[updatePieElement] Invoking controller for ${e}#${c.id}`, {
|
|
2247
|
+
const d = Br(r, u.id, u.element);
|
|
2248
|
+
if (l.session = d, o && Object.entries(o).forEach(([f, h]) => {
|
|
2249
|
+
l.addEventListener(f, h);
|
|
2250
|
+
}), s && i) {
|
|
2251
|
+
const f = cn(e);
|
|
2252
|
+
f ? (console.log(`[updatePieElement] Invoking controller for ${e}#${c.id}`, {
|
|
2223
2253
|
mode: s.mode,
|
|
2224
2254
|
role: s.role,
|
|
2225
2255
|
hasCorrectResponse: "correctResponse" in u
|
|
2226
|
-
})
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
console.
|
|
2235
|
-
|
|
2236
|
-
element: m.element,
|
|
2237
|
-
hasCorrectResponse: "correctResponse" in m,
|
|
2238
|
-
mode: s.mode,
|
|
2239
|
-
role: s.role
|
|
2240
|
-
}), l.model = m;
|
|
2241
|
-
}).catch((p) => {
|
|
2242
|
-
throw console.error(`[updatePieElement] ❌ Controller error for ${e}#${c.id}:`, p), p;
|
|
2243
|
-
});
|
|
2256
|
+
}), yo(
|
|
2257
|
+
l,
|
|
2258
|
+
u,
|
|
2259
|
+
d,
|
|
2260
|
+
f,
|
|
2261
|
+
s,
|
|
2262
|
+
`[updatePieElement(${e}#${c.id})]`
|
|
2263
|
+
).catch((h) => {
|
|
2264
|
+
console.error(`[updatePieElement] Controller failed for ${e}#${c.id}:`, h), l.model = u;
|
|
2265
|
+
})) : (console.log(`[updatePieElement] ℹ️ No controller for ${e}, using server-processed model`), l.model = u);
|
|
2244
2266
|
} else
|
|
2245
2267
|
console.log(
|
|
2246
2268
|
`[updatePieElement] Direct model assignment for ${e}#${c.id} (no controller invocation requested)`
|
|
2247
2269
|
), l.model = u;
|
|
2248
|
-
o && Object.entries(o).forEach(([d, v]) => {
|
|
2249
|
-
l.addEventListener(d, v);
|
|
2250
|
-
});
|
|
2251
2270
|
});
|
|
2252
|
-
},
|
|
2253
|
-
|
|
2254
|
-
|
|
2271
|
+
}, ct = (e, t, n) => {
|
|
2272
|
+
console.log("[updatePieElements] Updating all elements with env:", n), Object.entries(e.elements).forEach(([r, s]) => {
|
|
2273
|
+
Gt(r, { config: e, session: t, env: n });
|
|
2274
|
+
});
|
|
2275
|
+
}, wo = {
|
|
2276
|
+
buildServiceBase: ho,
|
|
2277
|
+
bundleType: z.player,
|
|
2278
|
+
// Default to player.js (no controllers, server-processed models)
|
|
2255
2279
|
env: { mode: "gather", role: "student" }
|
|
2256
|
-
},
|
|
2280
|
+
}, jt = (e, t) => {
|
|
2257
2281
|
const { config: n, session: r, env: s, eventListeners: o } = t, i = e.tagName.toLowerCase();
|
|
2258
2282
|
console.log(`[initializePieElement] Initializing ${i}#${e.id}`);
|
|
2259
|
-
let a = n?.models?.find((
|
|
2283
|
+
let a = n?.models?.find((u) => u.id === e.id);
|
|
2260
2284
|
if (!a) {
|
|
2261
2285
|
console.warn(`[initializePieElement] Model not found for element ${i}#${e.id}`);
|
|
2262
2286
|
return;
|
|
2263
2287
|
}
|
|
2264
|
-
const c =
|
|
2288
|
+
const c = Br(r, a.id, a.element);
|
|
2265
2289
|
e.session = c, console.log(`[initializePieElement] Session set for ${i}#${e.id}:`, c);
|
|
2266
|
-
const l =
|
|
2267
|
-
if (!l)
|
|
2268
|
-
throw console.error(`[initializePieElement] ❌ FATAL: No controller found for ${i}`), new Error(
|
|
2269
|
-
`No controller found for ${i}. PIE elements MUST have controllers. Check bundle loading and registration.`
|
|
2270
|
-
);
|
|
2290
|
+
const l = cn(i);
|
|
2271
2291
|
if (!s)
|
|
2272
2292
|
throw console.error(`[initializePieElement] ❌ FATAL: No env provided for ${i}`), new Error(`No env provided for ${i}. PIE elements require an env object with mode and role.`);
|
|
2273
|
-
console.log(`[initializePieElement]
|
|
2293
|
+
l ? console.log(`[initializePieElement] Controller found for ${i}, will invoke model() function`) : (console.log(`[initializePieElement] ℹ️ No controller for ${i}, using server-processed model`), console.log("[initializePieElement] Model already processed by server:", {
|
|
2274
2294
|
id: a.id,
|
|
2275
2295
|
element: a.element,
|
|
2276
|
-
hasCorrectResponse: "correctResponse" in a
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
id: a.id,
|
|
2282
|
-
element: a.element,
|
|
2283
|
-
...f
|
|
2284
|
-
};
|
|
2285
|
-
console.log(`[initializePieElement] ✅ Controller filtered model for ${i}#${e.id}:`, {
|
|
2286
|
-
id: d.id,
|
|
2287
|
-
element: d.element,
|
|
2288
|
-
hasCorrectResponse: "correctResponse" in d,
|
|
2289
|
-
mode: s.mode,
|
|
2290
|
-
role: s.role
|
|
2291
|
-
}), e.model = d;
|
|
2292
|
-
}).catch((f) => {
|
|
2293
|
-
throw console.error(`[initializePieElement] ❌ Controller error for ${i}:`, f), f;
|
|
2294
|
-
}), o && Object.entries(o).forEach(([f, d]) => {
|
|
2295
|
-
e.addEventListener(f, d);
|
|
2296
|
+
hasCorrectResponse: "correctResponse" in a,
|
|
2297
|
+
mode: s.mode,
|
|
2298
|
+
role: s.role
|
|
2299
|
+
}), e.model = a), o && Object.entries(o).forEach(([u, d]) => {
|
|
2300
|
+
e.addEventListener(u, d);
|
|
2296
2301
|
});
|
|
2297
|
-
},
|
|
2298
|
-
const
|
|
2299
|
-
|
|
2300
|
-
console.log(
|
|
2301
|
-
const
|
|
2302
|
-
console.log(
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
console.
|
|
2306
|
-
|
|
2307
|
-
|
|
2302
|
+
}, bo = (e, t, n, r, s) => {
|
|
2303
|
+
const o = [];
|
|
2304
|
+
return console.log("[registerPieElementsFromBundle] Available packages in bundle:", Object.keys(e)), console.log("[registerPieElementsFromBundle] config.elements:", t.elements), typeof window < "u" && (window._pieCurrentContext = { config: t, session: n, env: s.env }), Object.entries(t.elements).forEach(([i, a]) => {
|
|
2305
|
+
console.log(`[registerPieElementsFromBundle] Processing element: ${i} -> ${a}`);
|
|
2306
|
+
const c = mo(a);
|
|
2307
|
+
console.log(`[registerPieElementsFromBundle] Package without version: "${c}"`);
|
|
2308
|
+
const l = e[c];
|
|
2309
|
+
if (console.log("[registerPieElementsFromBundle] elementData result:", l ? "FOUND" : "UNDEFINED"), !l)
|
|
2310
|
+
throw console.error(`[registerPieElementsFromBundle] ❌ Package "${c}" not found in bundle!`), console.error(`[registerPieElementsFromBundle] Lookup key: "${c}"`), console.error("[registerPieElementsFromBundle] Available packages:", Object.keys(e)), new Error(`pie ${c} not found in ${Object.keys(e)}`);
|
|
2311
|
+
if (console.log(`[registerPieElementsFromBundle] elementData for ${c}:`, {
|
|
2312
|
+
hasController: !!l.controller,
|
|
2313
|
+
hasElement: !!l.Element,
|
|
2314
|
+
hasConfig: !!l.config,
|
|
2315
|
+
controllerKeys: l.controller ? Object.keys(l.controller) : [],
|
|
2316
|
+
bundleType: s.bundleType
|
|
2317
|
+
}), !l.controller) {
|
|
2318
|
+
if (s.bundleType === z.clientPlayer)
|
|
2319
|
+
throw console.error(`[registerPieElementsFromBundle] ❌ CRITICAL: No controller found for ${c}!`), console.error(`[registerPieElementsFromBundle] Bundle type: ${s.bundleType} (controllers required)`), new Error(`No controller found for ${c}. client-player.js bundles MUST include controllers!`);
|
|
2320
|
+
console.log(
|
|
2321
|
+
`[registerPieElementsFromBundle] ℹ️ No controller found for ${c} - using server-processed models (player.js bundle)`
|
|
2308
2322
|
);
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2323
|
+
}
|
|
2324
|
+
if (customElements.get(i)) {
|
|
2325
|
+
if (Gt(i, {
|
|
2326
|
+
config: t,
|
|
2327
|
+
session: n,
|
|
2328
|
+
env: s.env,
|
|
2329
|
+
...s.eventListeners?.[i] && { eventListeners: s.eventListeners[i] }
|
|
2330
|
+
}), s.bundleType === z.editor) {
|
|
2331
|
+
const u = i + Fn;
|
|
2332
|
+
Gt(u, {
|
|
2333
|
+
config: t,
|
|
2334
|
+
session: n,
|
|
2335
|
+
...s.eventListeners?.[u] && {
|
|
2336
|
+
eventListeners: s.eventListeners[u]
|
|
2337
|
+
}
|
|
2338
|
+
});
|
|
2339
|
+
}
|
|
2340
|
+
} else if (console.log(
|
|
2341
|
+
`[registerPieElementsFromBundle] Registering ${i} in registry${l.controller ? " with controller" : " (no controller - server-processed models)"}`
|
|
2342
|
+
), r[i] = {
|
|
2343
|
+
package: a,
|
|
2344
|
+
status: Wt.loading,
|
|
2345
|
+
tagName: i,
|
|
2346
|
+
controller: l.controller || null,
|
|
2347
|
+
config: l.config,
|
|
2348
|
+
bundleType: s.bundleType
|
|
2349
|
+
}, Bn(l.Element)) {
|
|
2350
|
+
customElements.define(i, l.Element);
|
|
2351
|
+
const u = document.querySelectorAll(i);
|
|
2352
|
+
if (console.log(`[registerPieElementsFromBundle] Found ${u.length} elements for tag '${i}'`), u.forEach((d) => {
|
|
2353
|
+
jt(d, {
|
|
2354
|
+
config: t,
|
|
2355
|
+
session: n,
|
|
2356
|
+
env: s.env,
|
|
2357
|
+
eventListeners: s.eventListeners?.[i]
|
|
2358
|
+
});
|
|
2359
|
+
}), r[i] = {
|
|
2360
|
+
...r[i],
|
|
2361
|
+
status: Wt.loaded
|
|
2362
|
+
}, o.push(
|
|
2363
|
+
customElements.whenDefined(i).then(() => {
|
|
2364
|
+
console.debug("[registerPieElementsFromBundle] defined custom PIE element: %s", i);
|
|
2365
|
+
})
|
|
2366
|
+
), window._pieElementObserver || (window._pieElementObserver = new MutationObserver((d) => {
|
|
2367
|
+
const f = window._pieCurrentContext;
|
|
2368
|
+
if (!f) {
|
|
2369
|
+
console.warn("[MutationObserver] No current context available");
|
|
2370
|
+
return;
|
|
2345
2371
|
}
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
env: n.env,
|
|
2363
|
-
eventListeners: n.eventListeners?.[i]
|
|
2364
|
-
});
|
|
2365
|
-
}), r[i] = {
|
|
2366
|
-
...r[i],
|
|
2367
|
-
status: "loaded"
|
|
2368
|
-
/* loaded */
|
|
2369
|
-
}, customElements.whenDefined(i).then(() => {
|
|
2370
|
-
console.debug("defined custom PIE element: %s: %O", i, r[i]);
|
|
2371
|
-
}), window._pieElementObserver || (window._pieElementObserver = new MutationObserver((f) => {
|
|
2372
|
-
f.forEach((d) => {
|
|
2373
|
-
d.type === "childList" && d.addedNodes.forEach((v) => {
|
|
2374
|
-
if (v.nodeType === Node.ELEMENT_NODE) {
|
|
2375
|
-
const p = v.tagName.toLowerCase();
|
|
2376
|
-
r[p] && At(v, {
|
|
2377
|
-
config: e,
|
|
2378
|
-
session: t,
|
|
2379
|
-
env: n.env,
|
|
2380
|
-
eventListeners: n.eventListeners?.[p]
|
|
2381
|
-
}), v.querySelectorAll("*").forEach((m) => {
|
|
2382
|
-
const w = m.tagName.toLowerCase();
|
|
2383
|
-
r[w] && At(m, {
|
|
2384
|
-
config: e,
|
|
2385
|
-
session: t,
|
|
2386
|
-
env: n.env,
|
|
2387
|
-
eventListeners: n.eventListeners?.[w]
|
|
2388
|
-
});
|
|
2372
|
+
d.forEach((h) => {
|
|
2373
|
+
h.type === "childList" && h.addedNodes.forEach((_) => {
|
|
2374
|
+
if (_.nodeType === Node.ELEMENT_NODE) {
|
|
2375
|
+
const y = _.tagName.toLowerCase();
|
|
2376
|
+
r[y] && jt(_, {
|
|
2377
|
+
config: f.config,
|
|
2378
|
+
session: f.session,
|
|
2379
|
+
env: f.env,
|
|
2380
|
+
eventListeners: s.eventListeners?.[y]
|
|
2381
|
+
}), _.querySelectorAll("*").forEach(($) => {
|
|
2382
|
+
const O = $.tagName.toLowerCase();
|
|
2383
|
+
r[O] && jt($, {
|
|
2384
|
+
config: f.config,
|
|
2385
|
+
session: f.session,
|
|
2386
|
+
env: f.env,
|
|
2387
|
+
eventListeners: s.eventListeners?.[O]
|
|
2389
2388
|
});
|
|
2390
|
-
}
|
|
2391
|
-
}
|
|
2389
|
+
});
|
|
2390
|
+
}
|
|
2392
2391
|
});
|
|
2393
|
-
})
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2392
|
+
});
|
|
2393
|
+
}), window._pieElementObserver.observe(document.body, {
|
|
2394
|
+
childList: !0,
|
|
2395
|
+
subtree: !0
|
|
2396
|
+
})), s.bundleType === z.editor)
|
|
2397
|
+
if (Bn(l.Configure)) {
|
|
2398
|
+
const d = i + Fn;
|
|
2399
|
+
customElements.define(d, l.Configure), o.push(
|
|
2400
|
+
customElements.whenDefined(d).then(() => {
|
|
2401
|
+
console.debug(`[registerPieElementsFromBundle] defined custom PIE editor element: ${d}`);
|
|
2402
|
+
})
|
|
2403
|
+
);
|
|
2404
|
+
} else
|
|
2405
|
+
console.error(
|
|
2406
|
+
`[registerPieElementsFromBundle] pie.Configure for ${c} is not a valid custom element constructor.`,
|
|
2407
|
+
l.configure
|
|
2408
|
+
);
|
|
2409
|
+
} else
|
|
2410
|
+
console.error(
|
|
2411
|
+
`[registerPieElementsFromBundle] pie.Element for ${c} is not a valid custom element constructor.`
|
|
2412
|
+
);
|
|
2413
|
+
}), o;
|
|
2414
|
+
}, Un = (e, t, n = {}) => {
|
|
2415
|
+
const r = Or(), s = kr(wo, n);
|
|
2416
|
+
if (go(window)) {
|
|
2417
|
+
console.log("[initializePiesFromLoadedBundle] window.pie available");
|
|
2418
|
+
const o = window.pie.default;
|
|
2419
|
+
bo(o, e, t, r, s);
|
|
2410
2420
|
} else
|
|
2411
|
-
console.error("window.pie not found; was the bundle inlined correctly?");
|
|
2412
|
-
}, Dt = (e) => {
|
|
2413
|
-
const t = "--version-", n = (c) => {
|
|
2414
|
-
const l = c.match(`${t}(\\d+-\\d+-\\d+)$`);
|
|
2415
|
-
return l ? {
|
|
2416
|
-
baseName: c.replace(`${t}${l[1]}`, ""),
|
|
2417
|
-
existingVersion: l[1].replace(/-/g, ".")
|
|
2418
|
-
} : { baseName: c };
|
|
2419
|
-
}, r = (c, l) => {
|
|
2420
|
-
const { baseName: u, existingVersion: f } = n(c), { version: d } = xr(l);
|
|
2421
|
-
return f !== d ? `${u}${t}${d.replace(/\./g, "-")}` : c;
|
|
2422
|
-
}, s = Object.entries(e.config.elements).reduce(
|
|
2423
|
-
(c, [l, u]) => {
|
|
2424
|
-
const f = r(l, u);
|
|
2425
|
-
return {
|
|
2426
|
-
...c,
|
|
2427
|
-
[l]: {
|
|
2428
|
-
versionedName: f,
|
|
2429
|
-
package: u
|
|
2430
|
-
}
|
|
2431
|
-
};
|
|
2432
|
-
},
|
|
2433
|
-
{}
|
|
2434
|
-
), o = Object.entries(s).reduce(
|
|
2435
|
-
(c, [l, { versionedName: u }]) => l !== u ? c.replace(new RegExp(`<${l}`, "g"), `<${u}`).replace(new RegExp(`</${l}`, "g"), `</${u}`) : c,
|
|
2436
|
-
e.config.markup
|
|
2437
|
-
), i = Object.values(s).reduce(
|
|
2438
|
-
(c, { versionedName: l, package: u }) => ({
|
|
2439
|
-
...c,
|
|
2440
|
-
[l]: u
|
|
2441
|
-
}),
|
|
2442
|
-
{}
|
|
2443
|
-
), a = e.config.models.map((c) => {
|
|
2444
|
-
const l = c.element, u = s[l];
|
|
2445
|
-
if (u && u.versionedName !== l)
|
|
2446
|
-
return {
|
|
2447
|
-
...c,
|
|
2448
|
-
element: u.versionedName
|
|
2449
|
-
};
|
|
2450
|
-
if (i[l])
|
|
2451
|
-
return c;
|
|
2452
|
-
const f = Object.entries(s).filter(([d, { versionedName: v }]) => {
|
|
2453
|
-
const { baseName: p } = n(d);
|
|
2454
|
-
return p === l;
|
|
2455
|
-
});
|
|
2456
|
-
if (f.length > 0) {
|
|
2457
|
-
const [, { versionedName: d }] = f[0];
|
|
2458
|
-
return {
|
|
2459
|
-
...c,
|
|
2460
|
-
element: d
|
|
2461
|
-
};
|
|
2462
|
-
}
|
|
2463
|
-
return c;
|
|
2464
|
-
});
|
|
2465
|
-
return {
|
|
2466
|
-
...e,
|
|
2467
|
-
config: {
|
|
2468
|
-
...e.config,
|
|
2469
|
-
elements: i,
|
|
2470
|
-
markup: o,
|
|
2471
|
-
models: a
|
|
2472
|
-
}
|
|
2473
|
-
};
|
|
2421
|
+
console.error("[initializePiesFromLoadedBundle] window.pie not found; was the bundle inlined correctly?");
|
|
2474
2422
|
};
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
var
|
|
2478
|
-
const
|
|
2423
|
+
_r();
|
|
2424
|
+
le[R] = "src/lib/components/PieItemPlayer.svelte";
|
|
2425
|
+
var $o = $e(/* @__PURE__ */ Ee("<div><!></div>"), le[R], [[232, 2]]), Eo = $e(/* @__PURE__ */ Ee("<div><!></div>"), le[R], [[238, 2]]), Co = $e(/* @__PURE__ */ Ee('<div class="pie-item-player svelte-d1rctr"><!> <!></div>'), le[R], [[230, 0]]);
|
|
2426
|
+
const Po = {
|
|
2479
2427
|
hash: "svelte-d1rctr",
|
|
2480
2428
|
code: `
|
|
2481
2429
|
.pie-item-player.svelte-d1rctr {
|
|
@@ -2489,55 +2437,55 @@ const ms = {
|
|
|
2489
2437
|
width: 100%;
|
|
2490
2438
|
}
|
|
2491
2439
|
|
|
2492
|
-
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
2440
|
+
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGllSXRlbVBsYXllci5zdmVsdGUiLCJtYXBwaW5ncyI6IjtBQW9QQSxDQUFDLDhCQUFnQixDQUFDO0FBQ2xCLEVBQUUsY0FBYztBQUNoQixFQUFFLFdBQVc7QUFDYjs7QUFFQSxDQUFDLG9DQUFzQjtBQUN2QixDQUFDLGlDQUFtQixDQUFDO0FBQ3JCLEVBQUUsY0FBYztBQUNoQixFQUFFLFdBQVc7QUFDYiIsIm5hbWVzIjpbXSwiaWdub3JlTGlzdCI6W10sInNvdXJjZXMiOlsiUGllSXRlbVBsYXllci5zdmVsdGUiXX0= */`
|
|
2493
2441
|
};
|
|
2494
|
-
function
|
|
2495
|
-
|
|
2496
|
-
let n =
|
|
2497
|
-
const
|
|
2498
|
-
|
|
2499
|
-
const
|
|
2500
|
-
detail:
|
|
2442
|
+
function le(e, t) {
|
|
2443
|
+
Sr(new.target), ln(t, !0, le), Tr(e, Po);
|
|
2444
|
+
let n = C(t, "itemConfig", 7), r = C(t, "passageConfig", 7, null), s = C(t, "env", 23, () => ({ mode: "gather", role: "student" })), o = C(t, "session", 23, () => []), i = C(t, "addCorrectResponse", 7, !1), a = C(t, "customClassname", 7, ""), c = C(t, "passageContainerClass", 7, ""), l = C(t, "containerClass", 7, ""), u = C(t, "bundleType", 23, () => z.player), d = C(t, "onLoadComplete", 7), f = C(t, "onPlayerError", 7), h = C(t, "onSessionChanged", 7), _ = D(!1);
|
|
2445
|
+
const y = (p, T) => {
|
|
2446
|
+
L(p, "load-complete") && d() ? d()(T) : L(p, "player-error") && f() ? f()(T) : L(p, "session-changed") && h() && h()(T);
|
|
2447
|
+
const v = new CustomEvent(p, {
|
|
2448
|
+
detail: T,
|
|
2501
2449
|
bubbles: !0,
|
|
2502
2450
|
composed: !0
|
|
2503
2451
|
// Allow events to cross shadow DOM boundaries
|
|
2504
2452
|
});
|
|
2505
|
-
dispatchEvent(
|
|
2453
|
+
dispatchEvent(v);
|
|
2506
2454
|
};
|
|
2507
|
-
async function
|
|
2508
|
-
if (!i() || !n() || g(
|
|
2455
|
+
async function $() {
|
|
2456
|
+
if (!i() || !n() || g(_)) return;
|
|
2509
2457
|
console.log("[PieItemPlayer] Populating session with correct responses");
|
|
2510
|
-
const
|
|
2511
|
-
for (const
|
|
2512
|
-
const
|
|
2513
|
-
if (
|
|
2458
|
+
const p = [];
|
|
2459
|
+
for (const T of n().models) {
|
|
2460
|
+
const v = cn(T.element);
|
|
2461
|
+
if (v && v.createCorrectResponseSession)
|
|
2514
2462
|
try {
|
|
2515
|
-
const
|
|
2516
|
-
|
|
2517
|
-
id:
|
|
2518
|
-
element:
|
|
2519
|
-
...
|
|
2463
|
+
const m = await v.createCorrectResponseSession(T, s()), { id: I, ...G } = m;
|
|
2464
|
+
p.push({
|
|
2465
|
+
id: T.id,
|
|
2466
|
+
element: T.element,
|
|
2467
|
+
...G
|
|
2520
2468
|
});
|
|
2521
|
-
} catch (
|
|
2522
|
-
console.warn(...
|
|
2469
|
+
} catch (m) {
|
|
2470
|
+
console.warn(...W("warn", `[PieItemPlayer] Failed to create correct response for ${T.element}:`, m));
|
|
2523
2471
|
}
|
|
2524
2472
|
}
|
|
2525
|
-
o().length = 0, o().push(...
|
|
2473
|
+
o().length = 0, o().push(...p), w(_, !0), console.log(...W("log", "[PieItemPlayer] Correct responses added to session:", o()));
|
|
2526
2474
|
}
|
|
2527
|
-
const
|
|
2475
|
+
const O = ee(() => [
|
|
2528
2476
|
"pie-passage-container",
|
|
2529
2477
|
a(),
|
|
2530
2478
|
c()
|
|
2531
|
-
].filter(Boolean).join(" ")),
|
|
2479
|
+
].filter(Boolean).join(" ")), S = ee(() => [
|
|
2532
2480
|
"pie-item-container",
|
|
2533
2481
|
a(),
|
|
2534
2482
|
l()
|
|
2535
2483
|
].filter(Boolean).join(" "));
|
|
2536
|
-
let
|
|
2537
|
-
|
|
2538
|
-
!n() || g(
|
|
2484
|
+
let U = D(!1), k = D(!1), x = D(!1);
|
|
2485
|
+
De(() => {
|
|
2486
|
+
!n() || g(U) || (console.log("[PieItemPlayer] Item config received, initializing after DOM renders..."), cr().then(async () => {
|
|
2539
2487
|
try {
|
|
2540
|
-
if (console.log("[PieItemPlayer] DOM ready, initializing PIE elements"), console.log(...
|
|
2488
|
+
if (console.log("[PieItemPlayer] DOM ready, initializing PIE elements"), console.log(...W("log", "[PieItemPlayer] Config:", {
|
|
2541
2489
|
itemElements: Object.keys(n().elements || {}),
|
|
2542
2490
|
itemModels: (n().models || []).length,
|
|
2543
2491
|
passageElements: r() ? Object.keys(r().elements || {}) : [],
|
|
@@ -2545,126 +2493,132 @@ function oe(e, t) {
|
|
|
2545
2493
|
sessionLength: o().length,
|
|
2546
2494
|
addCorrectResponse: i(),
|
|
2547
2495
|
env: s()
|
|
2548
|
-
})),
|
|
2549
|
-
const
|
|
2550
|
-
if (g(
|
|
2496
|
+
})), Un(n(), [], { env: s(), bundleType: u() }), console.log(...W("log", "[PieItemPlayer] Item bundle initialized (bundle type: %s)", u())), r() && (Un(r(), [], { env: s(), bundleType: u() }), console.log(...W("log", "[PieItemPlayer] Passage bundle initialized (bundle type: %s)", u()))), await $(), console.log(...W("log", "[PieItemPlayer] Updating elements with session (length=" + o().length + ")")), ct(n(), o(), s()), r() && ct(r(), o(), s()), w(U, !0), !g(k)) {
|
|
2497
|
+
const p = document.querySelector(".pie-item-player"), T = (v) => {
|
|
2498
|
+
if (g(x))
|
|
2551
2499
|
return;
|
|
2552
|
-
const
|
|
2553
|
-
console.log("[PieItemPlayer] session-changed event received from PIE element"),
|
|
2500
|
+
const m = v;
|
|
2501
|
+
console.log("[PieItemPlayer] session-changed event received from PIE element"), w(x, !0);
|
|
2554
2502
|
try {
|
|
2555
|
-
|
|
2503
|
+
y("session-changed", m.detail);
|
|
2556
2504
|
} finally {
|
|
2557
2505
|
setTimeout(
|
|
2558
2506
|
() => {
|
|
2559
|
-
|
|
2507
|
+
w(x, !1);
|
|
2560
2508
|
},
|
|
2561
2509
|
0
|
|
2562
2510
|
);
|
|
2563
2511
|
}
|
|
2564
2512
|
};
|
|
2565
|
-
|
|
2513
|
+
p && (p.addEventListener("session-changed", T), w(k, !0), console.log("[PieItemPlayer] session-changed listener attached to root element"));
|
|
2566
2514
|
}
|
|
2567
|
-
console.log("[PieItemPlayer] ✅ Initialization complete, dispatching load-complete event"),
|
|
2568
|
-
} catch (
|
|
2569
|
-
console.error(...
|
|
2515
|
+
console.log("[PieItemPlayer] ✅ Initialization complete, dispatching load-complete event"), y("load-complete");
|
|
2516
|
+
} catch (p) {
|
|
2517
|
+
console.error(...W("error", "[PieItemPlayer] Error initializing:", p)), y("player-error", p.message);
|
|
2570
2518
|
}
|
|
2571
2519
|
}));
|
|
2572
|
-
}),
|
|
2573
|
-
!g(
|
|
2520
|
+
}), De(() => {
|
|
2521
|
+
!g(U) || !s() || !n() || !o() || (console.log("[PieItemPlayer] Dependencies changed, updating elements"), console.log(...W("log", "[PieItemPlayer] Env:", s())), console.log(...W("log", "[PieItemPlayer] Session (length=" + o().length + "):", o())), ct(n(), o(), s()), r() && ct(r(), o(), s()));
|
|
2574
2522
|
});
|
|
2575
|
-
var
|
|
2523
|
+
var V = Co(), j = se(V);
|
|
2576
2524
|
{
|
|
2577
|
-
var
|
|
2578
|
-
var
|
|
2579
|
-
|
|
2525
|
+
var Je = (p) => {
|
|
2526
|
+
var T = $o(), v = se(T);
|
|
2527
|
+
kn(v, () => r().markup), re(T), Ze(() => Ae(T, 1, g(O), "svelte-d1rctr")), ue(p, T);
|
|
2580
2528
|
};
|
|
2581
|
-
|
|
2582
|
-
r()?.markup &&
|
|
2529
|
+
et(j, (p) => {
|
|
2530
|
+
r()?.markup && p(Je);
|
|
2583
2531
|
});
|
|
2584
2532
|
}
|
|
2585
|
-
var
|
|
2533
|
+
var Ce = Vt(j, 2);
|
|
2586
2534
|
{
|
|
2587
|
-
var
|
|
2588
|
-
var
|
|
2589
|
-
|
|
2535
|
+
var kt = (p) => {
|
|
2536
|
+
var T = Eo(), v = se(T);
|
|
2537
|
+
kn(v, () => n().markup), re(T), Ze(() => Ae(T, 1, g(S), "svelte-d1rctr")), ue(p, T);
|
|
2590
2538
|
};
|
|
2591
|
-
|
|
2592
|
-
n()?.markup &&
|
|
2539
|
+
et(Ce, (p) => {
|
|
2540
|
+
n()?.markup && p(kt);
|
|
2593
2541
|
});
|
|
2594
2542
|
}
|
|
2595
|
-
return
|
|
2543
|
+
return re(V), ue(e, V), an({
|
|
2596
2544
|
get itemConfig() {
|
|
2597
2545
|
return n();
|
|
2598
2546
|
},
|
|
2599
|
-
set itemConfig(
|
|
2600
|
-
n(
|
|
2547
|
+
set itemConfig(p) {
|
|
2548
|
+
n(p), E();
|
|
2601
2549
|
},
|
|
2602
2550
|
get passageConfig() {
|
|
2603
2551
|
return r();
|
|
2604
2552
|
},
|
|
2605
|
-
set passageConfig(
|
|
2606
|
-
r(
|
|
2553
|
+
set passageConfig(p = null) {
|
|
2554
|
+
r(p), E();
|
|
2607
2555
|
},
|
|
2608
2556
|
get env() {
|
|
2609
2557
|
return s();
|
|
2610
2558
|
},
|
|
2611
|
-
set env(
|
|
2612
|
-
s(
|
|
2559
|
+
set env(p = { mode: "gather", role: "student" }) {
|
|
2560
|
+
s(p), E();
|
|
2613
2561
|
},
|
|
2614
2562
|
get session() {
|
|
2615
2563
|
return o();
|
|
2616
2564
|
},
|
|
2617
|
-
set session(
|
|
2618
|
-
o(
|
|
2565
|
+
set session(p = []) {
|
|
2566
|
+
o(p), E();
|
|
2619
2567
|
},
|
|
2620
2568
|
get addCorrectResponse() {
|
|
2621
2569
|
return i();
|
|
2622
2570
|
},
|
|
2623
|
-
set addCorrectResponse(
|
|
2624
|
-
i(
|
|
2571
|
+
set addCorrectResponse(p = !1) {
|
|
2572
|
+
i(p), E();
|
|
2625
2573
|
},
|
|
2626
2574
|
get customClassname() {
|
|
2627
2575
|
return a();
|
|
2628
2576
|
},
|
|
2629
|
-
set customClassname(
|
|
2630
|
-
a(
|
|
2577
|
+
set customClassname(p = "") {
|
|
2578
|
+
a(p), E();
|
|
2631
2579
|
},
|
|
2632
2580
|
get passageContainerClass() {
|
|
2633
2581
|
return c();
|
|
2634
2582
|
},
|
|
2635
|
-
set passageContainerClass(
|
|
2636
|
-
c(
|
|
2583
|
+
set passageContainerClass(p = "") {
|
|
2584
|
+
c(p), E();
|
|
2637
2585
|
},
|
|
2638
2586
|
get containerClass() {
|
|
2639
2587
|
return l();
|
|
2640
2588
|
},
|
|
2641
|
-
set containerClass(
|
|
2642
|
-
l(
|
|
2589
|
+
set containerClass(p = "") {
|
|
2590
|
+
l(p), E();
|
|
2643
2591
|
},
|
|
2644
|
-
get
|
|
2592
|
+
get bundleType() {
|
|
2645
2593
|
return u();
|
|
2646
2594
|
},
|
|
2647
|
-
set
|
|
2648
|
-
u(
|
|
2595
|
+
set bundleType(p = z.player) {
|
|
2596
|
+
u(p), E();
|
|
2597
|
+
},
|
|
2598
|
+
get onLoadComplete() {
|
|
2599
|
+
return d();
|
|
2600
|
+
},
|
|
2601
|
+
set onLoadComplete(p) {
|
|
2602
|
+
d(p), E();
|
|
2649
2603
|
},
|
|
2650
2604
|
get onPlayerError() {
|
|
2651
2605
|
return f();
|
|
2652
2606
|
},
|
|
2653
|
-
set onPlayerError(
|
|
2654
|
-
f(
|
|
2607
|
+
set onPlayerError(p) {
|
|
2608
|
+
f(p), E();
|
|
2655
2609
|
},
|
|
2656
2610
|
get onSessionChanged() {
|
|
2657
|
-
return
|
|
2611
|
+
return h();
|
|
2658
2612
|
},
|
|
2659
|
-
set onSessionChanged(
|
|
2660
|
-
|
|
2613
|
+
set onSessionChanged(p) {
|
|
2614
|
+
h(p), E();
|
|
2661
2615
|
},
|
|
2662
|
-
...
|
|
2616
|
+
...xr()
|
|
2663
2617
|
});
|
|
2664
2618
|
}
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2619
|
+
mr(le);
|
|
2620
|
+
Rr(
|
|
2621
|
+
le,
|
|
2668
2622
|
{
|
|
2669
2623
|
itemConfig: {},
|
|
2670
2624
|
passageConfig: {},
|
|
@@ -2674,6 +2628,7 @@ Sr(
|
|
|
2674
2628
|
customClassname: {},
|
|
2675
2629
|
passageContainerClass: {},
|
|
2676
2630
|
containerClass: {},
|
|
2631
|
+
bundleType: {},
|
|
2677
2632
|
onLoadComplete: {},
|
|
2678
2633
|
onPlayerError: {},
|
|
2679
2634
|
onSessionChanged: {}
|
|
@@ -2682,12 +2637,74 @@ Sr(
|
|
|
2682
2637
|
[],
|
|
2683
2638
|
!0
|
|
2684
2639
|
);
|
|
2685
|
-
const
|
|
2640
|
+
const Dn = {
|
|
2686
2641
|
trackPageActions: !1
|
|
2642
|
+
}, Qt = (e) => {
|
|
2643
|
+
const t = "--version-", n = (c) => {
|
|
2644
|
+
const l = c.match(`${t}(\\d+-\\d+-\\d+)$`);
|
|
2645
|
+
return l ? {
|
|
2646
|
+
baseName: c.replace(`${t}${l[1]}`, ""),
|
|
2647
|
+
existingVersion: l[1].replace(/-/g, ".")
|
|
2648
|
+
} : { baseName: c };
|
|
2649
|
+
}, r = (c, l) => {
|
|
2650
|
+
const { baseName: u, existingVersion: d } = n(c), { version: f } = Fr(l);
|
|
2651
|
+
return d !== f ? `${u}${t}${f.replace(/\./g, "-")}` : c;
|
|
2652
|
+
}, s = Object.entries(e.config.elements).reduce(
|
|
2653
|
+
(c, [l, u]) => {
|
|
2654
|
+
const d = r(l, u);
|
|
2655
|
+
return {
|
|
2656
|
+
...c,
|
|
2657
|
+
[l]: {
|
|
2658
|
+
versionedName: d,
|
|
2659
|
+
package: u
|
|
2660
|
+
}
|
|
2661
|
+
};
|
|
2662
|
+
},
|
|
2663
|
+
{}
|
|
2664
|
+
), o = Object.entries(s).reduce(
|
|
2665
|
+
(c, [l, { versionedName: u }]) => l !== u ? c.replace(new RegExp(`<${l}`, "g"), `<${u}`).replace(new RegExp(`</${l}`, "g"), `</${u}`) : c,
|
|
2666
|
+
e.config.markup
|
|
2667
|
+
), i = Object.values(s).reduce(
|
|
2668
|
+
(c, { versionedName: l, package: u }) => ({
|
|
2669
|
+
...c,
|
|
2670
|
+
[l]: u
|
|
2671
|
+
}),
|
|
2672
|
+
{}
|
|
2673
|
+
), a = e.config.models.map((c) => {
|
|
2674
|
+
const l = c.element, u = s[l];
|
|
2675
|
+
if (u && u.versionedName !== l)
|
|
2676
|
+
return {
|
|
2677
|
+
...c,
|
|
2678
|
+
element: u.versionedName
|
|
2679
|
+
};
|
|
2680
|
+
if (i[l])
|
|
2681
|
+
return c;
|
|
2682
|
+
const d = Object.entries(s).filter(([f, { versionedName: h }]) => {
|
|
2683
|
+
const { baseName: _ } = n(f);
|
|
2684
|
+
return _ === l;
|
|
2685
|
+
});
|
|
2686
|
+
if (d.length > 0) {
|
|
2687
|
+
const [, { versionedName: f }] = d[0];
|
|
2688
|
+
return {
|
|
2689
|
+
...c,
|
|
2690
|
+
element: f
|
|
2691
|
+
};
|
|
2692
|
+
}
|
|
2693
|
+
return c;
|
|
2694
|
+
});
|
|
2695
|
+
return {
|
|
2696
|
+
...e,
|
|
2697
|
+
config: {
|
|
2698
|
+
...e.config,
|
|
2699
|
+
elements: i,
|
|
2700
|
+
markup: o,
|
|
2701
|
+
models: a
|
|
2702
|
+
}
|
|
2703
|
+
};
|
|
2687
2704
|
};
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
var
|
|
2705
|
+
_r();
|
|
2706
|
+
ge[R] = "src/lib/tags/pie-fixed-player/PieFixedPlayer.svelte";
|
|
2707
|
+
var So = $e(
|
|
2691
2708
|
/* @__PURE__ */ Ee(`<div class="pie-player-error" style="
|
|
2692
2709
|
padding: 20px;
|
|
2693
2710
|
margin: 20px;
|
|
@@ -2697,10 +2714,10 @@ var ys = $e(
|
|
|
2697
2714
|
color: #c62828;
|
|
2698
2715
|
font-family: sans-serif;
|
|
2699
2716
|
"><h3 style="margin: 0 0 10px 0">⚠️ Configuration Error</h3> <p style="margin: 0"> </p></div>`),
|
|
2700
|
-
|
|
2701
|
-
[[
|
|
2702
|
-
),
|
|
2703
|
-
const
|
|
2717
|
+
ge[R],
|
|
2718
|
+
[[300, 2, [[309, 3], [310, 3]]]]
|
|
2719
|
+
), xo = $e(/* @__PURE__ */ Ee('<div class="pie-loading" style="padding: 20px; text-align: center;"><p>Loading...</p></div>'), ge[R], [[313, 2, [[314, 3]]]]), To = $e(/* @__PURE__ */ Ee('<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>'), ge[R], [[319, 2, [[320, 3], [336, 3]]]]), Io = $e(/* @__PURE__ */ Ee("<div><!></div>"), ge[R], [[355, 2]]), Ro = $e(/* @__PURE__ */ Ee("<div><!></div>"), ge[R], [[298, 0]]);
|
|
2720
|
+
const ko = {
|
|
2704
2721
|
hash: "svelte-1ol77e0",
|
|
2705
2722
|
code: `
|
|
2706
2723
|
:host {
|
|
@@ -2716,33 +2733,31 @@ const Cs = {
|
|
|
2716
2733
|
width: 100%;
|
|
2717
2734
|
}
|
|
2718
2735
|
|
|
2719
|
-
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
2736
|
+
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGllRml4ZWRQbGF5ZXIuc3ZlbHRlIiwibWFwcGluZ3MiOiI7QUF5WEEsQ0FBQyxLQUFLLENBQUM7QUFDUCxFQUFFLGNBQWM7QUFDaEI7QUFDQTtBQUNBLENBQVMsaUJBQWtCLENBQUM7QUFDNUIsRUFBRSxXQUFXO0FBQ2I7QUFDQTtBQUNBLENBQVMsc0JBQXVCO0FBQ2hDLENBQVMsMEJBQTJCLENBQUM7QUFDckMsRUFBRSxXQUFXO0FBQ2IiLCJuYW1lcyI6W10sImlnbm9yZUxpc3QiOltdLCJzb3VyY2VzIjpbIlBpZUZpeGVkUGxheWVyLnN2ZWx0ZSJdfQ== */`
|
|
2720
2737
|
};
|
|
2721
|
-
function
|
|
2722
|
-
|
|
2723
|
-
let n =
|
|
2724
|
-
const
|
|
2725
|
-
let
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
const S = l() || `pie-player-${Date.now().toString(36)}`;
|
|
2729
|
-
Ue(() => {
|
|
2738
|
+
function ge(e, t) {
|
|
2739
|
+
Sr(new.target), ln(t, !0, ge), Tr(e, ko);
|
|
2740
|
+
let n = C(t, "config", 7, null), r = C(t, "session", 23, () => ({ id: "", data: [] })), s = C(t, "env", 23, () => ({ mode: "gather", role: "student" })), o = C(t, "addCorrectResponse", 7, !1), i = C(t, "renderStimulus", 7, !0), a = C(t, "allowedResize", 7, !1), c = C(t, "showBottomBorder", 7, !1), l = C(t, "customClassname", 7, ""), u = C(t, "containerClass", 7, ""), d = C(t, "passageContainerClass", 7, ""), f = C(t, "externalStyleUrls", 7, ""), h = C(t, "bundleType", 7, "player.js"), _ = C(t, "loaderConfig", 7, Dn);
|
|
2741
|
+
const y = L(typeof window, "undefined", !1) && L(typeof document, "undefined", !1);
|
|
2742
|
+
let $ = D(!0), O = D(null), S = D(null), U = D(null), k = D(null);
|
|
2743
|
+
const x = l() || `pie-player-${Date.now().toString(36)}`;
|
|
2744
|
+
De(() => {
|
|
2730
2745
|
if (n()) {
|
|
2731
2746
|
performance.mark("pie-load-end");
|
|
2732
2747
|
try {
|
|
2733
|
-
const
|
|
2734
|
-
if (
|
|
2735
|
-
const
|
|
2736
|
-
|
|
2737
|
-
} else if (
|
|
2738
|
-
const
|
|
2739
|
-
|
|
2748
|
+
const v = L(typeof n(), "string") ? JSON.parse(n()) : n();
|
|
2749
|
+
if (v.pie && v.passage) {
|
|
2750
|
+
const m = Qt({ config: v.pie }), I = Qt({ config: v.passage });
|
|
2751
|
+
w(S, m.config, !0), w(U, i() ? I.config : null, !0), w($, !1), w(O, null);
|
|
2752
|
+
} else if (v.elements || v.models || v.markup) {
|
|
2753
|
+
const m = Qt({ config: v });
|
|
2754
|
+
w(S, m.config, !0), w(U, null), w($, !1), w(O, null);
|
|
2740
2755
|
} else {
|
|
2741
|
-
const
|
|
2742
|
-
if (
|
|
2756
|
+
const m = "Invalid config: must contain elements, models, and markup, or pie/passage structure";
|
|
2757
|
+
if (w(O, m), w($, !1), y && _()?.trackPageActions)
|
|
2743
2758
|
try {
|
|
2744
|
-
const
|
|
2745
|
-
|
|
2759
|
+
const I = window?.newrelic;
|
|
2760
|
+
I && L(typeof I.noticeError, "function") && I.noticeError(new Error(m), {
|
|
2746
2761
|
component: "pie-fixed-player",
|
|
2747
2762
|
errorType: "InvalidConfig"
|
|
2748
2763
|
});
|
|
@@ -2750,12 +2765,12 @@ function ve(e, t) {
|
|
|
2750
2765
|
console.debug("[pie-fixed-player] New Relic tracking skipped");
|
|
2751
2766
|
}
|
|
2752
2767
|
}
|
|
2753
|
-
} catch (
|
|
2754
|
-
const
|
|
2755
|
-
if (
|
|
2768
|
+
} catch (v) {
|
|
2769
|
+
const m = `Error parsing config: ${v.message}`;
|
|
2770
|
+
if (w(O, m), w($, !1), y && _()?.trackPageActions)
|
|
2756
2771
|
try {
|
|
2757
|
-
const
|
|
2758
|
-
|
|
2772
|
+
const I = window?.newrelic;
|
|
2773
|
+
I && L(typeof I.noticeError, "function") && I.noticeError(v, {
|
|
2759
2774
|
component: "pie-fixed-player",
|
|
2760
2775
|
errorType: "ConfigParseError"
|
|
2761
2776
|
});
|
|
@@ -2764,241 +2779,256 @@ function ve(e, t) {
|
|
|
2764
2779
|
}
|
|
2765
2780
|
}
|
|
2766
2781
|
} else
|
|
2767
|
-
|
|
2782
|
+
w(S, null), w(U, null), w($, !0);
|
|
2768
2783
|
});
|
|
2769
|
-
const
|
|
2770
|
-
if (!(!
|
|
2771
|
-
if (document.querySelector(`style[data-pie-style="${
|
|
2772
|
-
console.log(...
|
|
2784
|
+
const V = async (v) => {
|
|
2785
|
+
if (!(!y || !v || L(typeof v, "string", !1))) {
|
|
2786
|
+
if (document.querySelector(`style[data-pie-style="${v}"]`)) {
|
|
2787
|
+
console.log(...W("log", `[pie-fixed-player] Stylesheet already loaded: ${v}`));
|
|
2773
2788
|
return;
|
|
2774
2789
|
}
|
|
2775
2790
|
try {
|
|
2776
|
-
const
|
|
2777
|
-
|
|
2778
|
-
} catch (
|
|
2779
|
-
console.error(...
|
|
2791
|
+
const G = (await (await fetch(v)).text()).replace(/([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g, `.pie-fixed-player.${x} $1$2`), ne = document.createElement("style");
|
|
2792
|
+
ne.setAttribute("data-pie-style", v), ne.textContent = G, document.head.appendChild(ne), console.log(...W("log", `[pie-fixed-player] Loaded and scoped stylesheet: ${v}`));
|
|
2793
|
+
} catch (m) {
|
|
2794
|
+
console.error(...W("error", `[pie-fixed-player] Failed to load external stylesheet: ${v}`, m));
|
|
2780
2795
|
}
|
|
2781
2796
|
}
|
|
2782
2797
|
};
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2798
|
+
De(() => {
|
|
2799
|
+
f() && L(typeof f(), "string") && f().split(",").map((m) => m.trim()).forEach((m) => {
|
|
2800
|
+
m && V(m);
|
|
2786
2801
|
});
|
|
2787
|
-
}),
|
|
2788
|
-
if (!g(
|
|
2789
|
-
const
|
|
2790
|
-
Array.isArray(
|
|
2791
|
-
const
|
|
2792
|
-
|
|
2802
|
+
}), De(() => {
|
|
2803
|
+
if (!g(S)?.resources?.stylesheets) return;
|
|
2804
|
+
const v = g(S).resources.stylesheets;
|
|
2805
|
+
Array.isArray(v) && v.forEach((m) => {
|
|
2806
|
+
const I = m?.url;
|
|
2807
|
+
I && L(typeof I, "string") && V(I);
|
|
2793
2808
|
});
|
|
2794
|
-
}),
|
|
2795
|
-
c() &&
|
|
2796
|
-
Object.keys(g(
|
|
2797
|
-
document.querySelectorAll(
|
|
2798
|
-
|
|
2809
|
+
}), De(() => {
|
|
2810
|
+
c() && L(s().mode, "evaluate") && g(S)?.elements && cr().then(() => {
|
|
2811
|
+
Object.keys(g(S).elements).forEach((m) => {
|
|
2812
|
+
document.querySelectorAll(m).forEach((G) => {
|
|
2813
|
+
G instanceof HTMLElement && (G.style.borderBottom = "1px solid #ddd", G.style.paddingBottom = "20px", G.style.marginBottom = "20px");
|
|
2799
2814
|
});
|
|
2800
2815
|
});
|
|
2801
2816
|
});
|
|
2802
2817
|
});
|
|
2803
|
-
const
|
|
2804
|
-
const
|
|
2805
|
-
detail:
|
|
2818
|
+
const j = (v) => {
|
|
2819
|
+
const m = new CustomEvent(v.type, {
|
|
2820
|
+
detail: v.detail,
|
|
2806
2821
|
bubbles: !0,
|
|
2807
2822
|
composed: !0
|
|
2808
2823
|
});
|
|
2809
|
-
g(
|
|
2810
|
-
},
|
|
2811
|
-
|
|
2824
|
+
g(k)?.parentElement ? (g(k).parentElement.dispatchEvent(m), console.log(...W("log", `[pie-fixed-player] Dispatched ${v.type} event from custom element host`))) : console.warn("[pie-fixed-player] Cannot dispatch event: custom element host not found");
|
|
2825
|
+
}, Je = (v) => {
|
|
2826
|
+
j(v);
|
|
2812
2827
|
};
|
|
2813
|
-
var
|
|
2814
|
-
Ae(
|
|
2815
|
-
var
|
|
2828
|
+
var Ce = Ro();
|
|
2829
|
+
Ae(Ce, 1, `pie-fixed-player ${x ?? ""}`);
|
|
2830
|
+
var kt = se(Ce);
|
|
2816
2831
|
{
|
|
2817
|
-
var
|
|
2818
|
-
var
|
|
2819
|
-
|
|
2820
|
-
},
|
|
2832
|
+
var p = (v) => {
|
|
2833
|
+
var m = So(), I = Vt(se(m), 2), G = se(I, !0);
|
|
2834
|
+
re(I), re(m), Ze(() => to(G, g(O))), ue(v, m);
|
|
2835
|
+
}, T = (v, m) => {
|
|
2821
2836
|
{
|
|
2822
|
-
var
|
|
2823
|
-
var
|
|
2824
|
-
|
|
2825
|
-
},
|
|
2837
|
+
var I = (ne) => {
|
|
2838
|
+
var Lt = xo();
|
|
2839
|
+
ue(ne, Lt);
|
|
2840
|
+
}, G = (ne, Lt) => {
|
|
2826
2841
|
{
|
|
2827
|
-
var
|
|
2828
|
-
var
|
|
2829
|
-
const
|
|
2830
|
-
|
|
2842
|
+
var Ur = (Oe) => {
|
|
2843
|
+
var _e = To(), Fe = se(_e), Ot = se(Fe);
|
|
2844
|
+
const Ft = ee(() => L(typeof s(), "string") ? JSON.parse(s()) : s()), Bt = ee(() => (L(typeof r(), "string") ? JSON.parse(r()) : r()).data || []), me = ee(() => L(h(), "client-player.js") ? z.clientPlayer : z.player);
|
|
2845
|
+
le(Ot, {
|
|
2831
2846
|
get itemConfig() {
|
|
2832
|
-
return g(
|
|
2847
|
+
return g(U);
|
|
2833
2848
|
},
|
|
2834
2849
|
get env() {
|
|
2835
|
-
return g(
|
|
2850
|
+
return g(Ft);
|
|
2836
2851
|
},
|
|
2837
2852
|
get session() {
|
|
2838
|
-
return g(
|
|
2853
|
+
return g(Bt);
|
|
2839
2854
|
},
|
|
2840
2855
|
get addCorrectResponse() {
|
|
2841
2856
|
return o();
|
|
2842
2857
|
},
|
|
2843
|
-
customClassname:
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2858
|
+
customClassname: x,
|
|
2859
|
+
get bundleType() {
|
|
2860
|
+
return g(me);
|
|
2861
|
+
},
|
|
2862
|
+
onLoadComplete: (J) => j(new CustomEvent("load-complete", { detail: J })),
|
|
2863
|
+
onPlayerError: (J) => j(new CustomEvent("player-error", { detail: J })),
|
|
2864
|
+
onSessionChanged: (J) => Je(new CustomEvent("session-changed", { detail: J }))
|
|
2865
|
+
}), re(Fe);
|
|
2866
|
+
var Ut = Vt(Fe, 2), Ar = se(Ut);
|
|
2867
|
+
const Nr = ee(() => L(typeof s(), "string") ? JSON.parse(s()) : s()), jr = ee(() => (L(typeof r(), "string") ? JSON.parse(r()) : r()).data || []), Qr = ee(() => L(h(), "client-player.js") ? z.clientPlayer : z.player);
|
|
2868
|
+
le(Ar, {
|
|
2851
2869
|
get itemConfig() {
|
|
2852
|
-
return g(
|
|
2870
|
+
return g(S);
|
|
2853
2871
|
},
|
|
2854
2872
|
get env() {
|
|
2855
|
-
return g(
|
|
2873
|
+
return g(Nr);
|
|
2856
2874
|
},
|
|
2857
2875
|
get session() {
|
|
2858
|
-
return g(
|
|
2876
|
+
return g(jr);
|
|
2859
2877
|
},
|
|
2860
2878
|
get addCorrectResponse() {
|
|
2861
2879
|
return o();
|
|
2862
2880
|
},
|
|
2863
|
-
customClassname:
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2881
|
+
customClassname: x,
|
|
2882
|
+
get bundleType() {
|
|
2883
|
+
return g(Qr);
|
|
2884
|
+
},
|
|
2885
|
+
onLoadComplete: (J) => j(new CustomEvent("load-complete", { detail: J })),
|
|
2886
|
+
onPlayerError: (J) => j(new CustomEvent("player-error", { detail: J })),
|
|
2887
|
+
onSessionChanged: (J) => Je(new CustomEvent("session-changed", { detail: J }))
|
|
2888
|
+
}), re(Ut), re(_e), Ze(() => {
|
|
2889
|
+
Ae(Fe, 1, `player-stimulus-container ${d() ?? ""}`), Ae(Ut, 1, `player-item-container ${u() ?? ""}`);
|
|
2890
|
+
}), ue(Oe, _e);
|
|
2891
|
+
}, Dr = (Oe) => {
|
|
2892
|
+
var _e = Io(), Fe = se(_e);
|
|
2893
|
+
const Ot = ee(() => L(typeof s(), "string") ? JSON.parse(s()) : s()), Ft = ee(() => (L(typeof r(), "string") ? JSON.parse(r()) : r()).data || []), Bt = ee(() => L(h(), "client-player.js") ? z.clientPlayer : z.player);
|
|
2894
|
+
le(Fe, {
|
|
2874
2895
|
get itemConfig() {
|
|
2875
|
-
return g(
|
|
2896
|
+
return g(S);
|
|
2876
2897
|
},
|
|
2877
2898
|
get passageConfig() {
|
|
2878
|
-
return g(
|
|
2899
|
+
return g(U);
|
|
2879
2900
|
},
|
|
2880
2901
|
get env() {
|
|
2881
|
-
return g(
|
|
2902
|
+
return g(Ot);
|
|
2882
2903
|
},
|
|
2883
2904
|
get session() {
|
|
2884
|
-
return g(
|
|
2905
|
+
return g(Ft);
|
|
2885
2906
|
},
|
|
2886
2907
|
get addCorrectResponse() {
|
|
2887
2908
|
return o();
|
|
2888
2909
|
},
|
|
2889
|
-
customClassname:
|
|
2910
|
+
customClassname: x,
|
|
2890
2911
|
get passageContainerClass() {
|
|
2891
|
-
return
|
|
2912
|
+
return d();
|
|
2892
2913
|
},
|
|
2893
2914
|
get containerClass() {
|
|
2894
2915
|
return u();
|
|
2895
2916
|
},
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2917
|
+
get bundleType() {
|
|
2918
|
+
return g(Bt);
|
|
2919
|
+
},
|
|
2920
|
+
onLoadComplete: (me) => j(new CustomEvent("load-complete", { detail: me })),
|
|
2921
|
+
onPlayerError: (me) => j(new CustomEvent("player-error", { detail: me })),
|
|
2922
|
+
onSessionChanged: (me) => Je(new CustomEvent("session-changed", { detail: me }))
|
|
2923
|
+
}), re(_e), Ze(() => Ae(_e, 1, `player-item-container ${u() ?? ""}`)), ue(Oe, _e);
|
|
2900
2924
|
};
|
|
2901
|
-
|
|
2902
|
-
|
|
2925
|
+
et(
|
|
2926
|
+
ne,
|
|
2903
2927
|
(Oe) => {
|
|
2904
|
-
g(
|
|
2928
|
+
g(U) && i() ? Oe(Ur) : Oe(Dr, !1);
|
|
2905
2929
|
},
|
|
2906
|
-
|
|
2930
|
+
Lt
|
|
2907
2931
|
);
|
|
2908
2932
|
}
|
|
2909
2933
|
};
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
(
|
|
2913
|
-
g(
|
|
2934
|
+
et(
|
|
2935
|
+
v,
|
|
2936
|
+
(ne) => {
|
|
2937
|
+
g($) || !g(S) ? ne(I) : ne(G, !1);
|
|
2914
2938
|
},
|
|
2915
|
-
|
|
2939
|
+
m
|
|
2916
2940
|
);
|
|
2917
2941
|
}
|
|
2918
2942
|
};
|
|
2919
|
-
|
|
2920
|
-
g(
|
|
2943
|
+
et(kt, (v) => {
|
|
2944
|
+
g(O) ? v(p) : v(T, !1);
|
|
2921
2945
|
});
|
|
2922
2946
|
}
|
|
2923
|
-
return
|
|
2947
|
+
return re(Ce), io(Ce, (v) => w(k, v), () => g(k)), ue(e, Ce), an({
|
|
2924
2948
|
get config() {
|
|
2925
2949
|
return n();
|
|
2926
2950
|
},
|
|
2927
|
-
set config(
|
|
2928
|
-
n(
|
|
2951
|
+
set config(v = null) {
|
|
2952
|
+
n(v), E();
|
|
2929
2953
|
},
|
|
2930
2954
|
get session() {
|
|
2931
2955
|
return r();
|
|
2932
2956
|
},
|
|
2933
|
-
set session(
|
|
2934
|
-
r(
|
|
2957
|
+
set session(v = { id: "", data: [] }) {
|
|
2958
|
+
r(v), E();
|
|
2935
2959
|
},
|
|
2936
2960
|
get env() {
|
|
2937
2961
|
return s();
|
|
2938
2962
|
},
|
|
2939
|
-
set env(
|
|
2940
|
-
s(
|
|
2963
|
+
set env(v = { mode: "gather", role: "student" }) {
|
|
2964
|
+
s(v), E();
|
|
2941
2965
|
},
|
|
2942
2966
|
get addCorrectResponse() {
|
|
2943
2967
|
return o();
|
|
2944
2968
|
},
|
|
2945
|
-
set addCorrectResponse(
|
|
2946
|
-
o(
|
|
2969
|
+
set addCorrectResponse(v = !1) {
|
|
2970
|
+
o(v), E();
|
|
2947
2971
|
},
|
|
2948
2972
|
get renderStimulus() {
|
|
2949
2973
|
return i();
|
|
2950
2974
|
},
|
|
2951
|
-
set renderStimulus(
|
|
2952
|
-
i(
|
|
2975
|
+
set renderStimulus(v = !0) {
|
|
2976
|
+
i(v), E();
|
|
2953
2977
|
},
|
|
2954
2978
|
get allowedResize() {
|
|
2955
2979
|
return a();
|
|
2956
2980
|
},
|
|
2957
|
-
set allowedResize(
|
|
2958
|
-
a(
|
|
2981
|
+
set allowedResize(v = !1) {
|
|
2982
|
+
a(v), E();
|
|
2959
2983
|
},
|
|
2960
2984
|
get showBottomBorder() {
|
|
2961
2985
|
return c();
|
|
2962
2986
|
},
|
|
2963
|
-
set showBottomBorder(
|
|
2964
|
-
c(
|
|
2987
|
+
set showBottomBorder(v = !1) {
|
|
2988
|
+
c(v), E();
|
|
2965
2989
|
},
|
|
2966
2990
|
get customClassname() {
|
|
2967
2991
|
return l();
|
|
2968
2992
|
},
|
|
2969
|
-
set customClassname(
|
|
2970
|
-
l(
|
|
2993
|
+
set customClassname(v = "") {
|
|
2994
|
+
l(v), E();
|
|
2971
2995
|
},
|
|
2972
2996
|
get containerClass() {
|
|
2973
2997
|
return u();
|
|
2974
2998
|
},
|
|
2975
|
-
set containerClass(
|
|
2976
|
-
u(
|
|
2999
|
+
set containerClass(v = "") {
|
|
3000
|
+
u(v), E();
|
|
2977
3001
|
},
|
|
2978
3002
|
get passageContainerClass() {
|
|
2979
|
-
return
|
|
3003
|
+
return d();
|
|
2980
3004
|
},
|
|
2981
|
-
set passageContainerClass(
|
|
2982
|
-
|
|
3005
|
+
set passageContainerClass(v = "") {
|
|
3006
|
+
d(v), E();
|
|
2983
3007
|
},
|
|
2984
3008
|
get externalStyleUrls() {
|
|
2985
|
-
return
|
|
3009
|
+
return f();
|
|
3010
|
+
},
|
|
3011
|
+
set externalStyleUrls(v = "") {
|
|
3012
|
+
f(v), E();
|
|
3013
|
+
},
|
|
3014
|
+
get bundleType() {
|
|
3015
|
+
return h();
|
|
2986
3016
|
},
|
|
2987
|
-
set
|
|
2988
|
-
|
|
3017
|
+
set bundleType(v = "player.js") {
|
|
3018
|
+
h(v), E();
|
|
2989
3019
|
},
|
|
2990
3020
|
get loaderConfig() {
|
|
2991
|
-
return
|
|
3021
|
+
return _();
|
|
2992
3022
|
},
|
|
2993
|
-
set loaderConfig(
|
|
2994
|
-
v
|
|
3023
|
+
set loaderConfig(v = Dn) {
|
|
3024
|
+
_(v), E();
|
|
2995
3025
|
},
|
|
2996
|
-
...
|
|
3026
|
+
...xr()
|
|
2997
3027
|
});
|
|
2998
3028
|
}
|
|
2999
|
-
|
|
3000
|
-
customElements.define("pie-fixed-player",
|
|
3001
|
-
|
|
3029
|
+
mr(ge);
|
|
3030
|
+
customElements.define("pie-fixed-player", Rr(
|
|
3031
|
+
ge,
|
|
3002
3032
|
{
|
|
3003
3033
|
config: { attribute: "config", type: "Object" },
|
|
3004
3034
|
session: { attribute: "session", type: "Object" },
|
|
@@ -3023,6 +3053,7 @@ customElements.define("pie-fixed-player", Sr(
|
|
|
3023
3053
|
attribute: "external-style-urls",
|
|
3024
3054
|
type: "String"
|
|
3025
3055
|
},
|
|
3056
|
+
bundleType: { attribute: "bundle-type", type: "String" },
|
|
3026
3057
|
loaderConfig: { attribute: "loader-config", type: "Object" }
|
|
3027
3058
|
},
|
|
3028
3059
|
[],
|