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