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