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