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