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