@pie-element/element-player 0.1.2-next.2 → 0.1.2-next.20261002100925
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 +33 -31
- package/dist/index.d.ts +1 -1
- package/dist/lib/element-loader.d.ts +1 -1
- package/dist/lib/math-rendering-types.d.ts +0 -6
- package/dist/lib/types.d.ts +0 -6
- package/dist/lib/unified-player-loader.d.ts +4 -4
- package/dist/math-mathjax-Y_CMClAV.js +179 -0
- package/dist/pie-element-player.css +1 -1
- package/dist/pie-element-player.js +913 -898
- package/package.json +2 -2
- package/dist/math-mathjax-YIPQGZlD.js +0 -59
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "./math-mathjax-
|
|
2
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1
|
+
import { t as e } from "./math-mathjax-Y_CMClAV.js";
|
|
2
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/disclose-version.js
|
|
3
3
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
|
|
4
4
|
//#endregion
|
|
5
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
5
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/constants.js
|
|
6
6
|
var t = {}, n = Symbol("uninitialized"), r = Array.isArray, i = Array.prototype.indexOf, a = Array.prototype.includes, o = Array.from, s = Object.keys, c = Object.defineProperty, l = Object.getOwnPropertyDescriptor, u = Object.prototype, d = Array.prototype, f = Object.getPrototypeOf, p = Object.isExtensible, m = () => {};
|
|
7
7
|
function h(e) {
|
|
8
8
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
@@ -17,48 +17,48 @@ function g() {
|
|
|
17
17
|
reject: t
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
var _ = 1024, v = 2048, y = 4096, b = 8192, ee = 16384, x = 32768, te = 1 << 25, ne = 65536, S = 1 << 19, C = 1 << 20, re =
|
|
20
|
+
var _ = 1024, v = 2048, y = 4096, b = 8192, ee = 16384, x = 32768, te = 1 << 25, ne = 65536, S = 1 << 19, C = 1 << 20, re = 1 << 21, w = 1 << 22, ie = 1 << 23, ae = Symbol("$state"), oe = Symbol("component"), se = Symbol("legacy props"), ce = Symbol("attributes"), le = Symbol("class"), ue = Symbol("style"), de = Symbol("text"), fe = new class extends Error {
|
|
21
21
|
name = "StaleReactionError";
|
|
22
22
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
23
23
|
}();
|
|
24
24
|
globalThis.document?.contentType;
|
|
25
|
-
function
|
|
25
|
+
function pe() {
|
|
26
26
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function me(e) {
|
|
29
29
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function he() {
|
|
32
32
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
33
33
|
}
|
|
34
34
|
//#endregion
|
|
35
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
36
|
-
var
|
|
37
|
-
function
|
|
38
|
-
|
|
35
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
36
|
+
var T = !1;
|
|
37
|
+
function ge(e) {
|
|
38
|
+
T = e;
|
|
39
39
|
}
|
|
40
|
-
var
|
|
41
|
-
function
|
|
42
|
-
if (e === null) throw
|
|
43
|
-
return
|
|
40
|
+
var E;
|
|
41
|
+
function D(e) {
|
|
42
|
+
if (e === null) throw me(), t;
|
|
43
|
+
return E = e;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
return
|
|
45
|
+
function _e() {
|
|
46
|
+
return D(/* @__PURE__ */ Ut(E));
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
if (
|
|
50
|
-
if (/* @__PURE__ */
|
|
51
|
-
|
|
48
|
+
function ve(e) {
|
|
49
|
+
if (T) {
|
|
50
|
+
if (/* @__PURE__ */ Ut(E) !== null) throw me(), t;
|
|
51
|
+
E = e;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
if (
|
|
56
|
-
for (var t = e, n =
|
|
57
|
-
|
|
54
|
+
function ye(e = 1) {
|
|
55
|
+
if (T) {
|
|
56
|
+
for (var t = e, n = E; t--;) n = /* @__PURE__ */ Ut(n);
|
|
57
|
+
E = n;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
for (var t = 0, n =
|
|
60
|
+
function be(e = !0) {
|
|
61
|
+
for (var t = 0, n = E;;) {
|
|
62
62
|
if (n.nodeType === 8) {
|
|
63
63
|
var r = n.data;
|
|
64
64
|
if (r === "]") {
|
|
@@ -66,72 +66,72 @@ function _e(e = !0) {
|
|
|
66
66
|
--t;
|
|
67
67
|
} else (r === "[" || r === "[!" || r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
|
|
68
68
|
}
|
|
69
|
-
var i = /* @__PURE__ */
|
|
69
|
+
var i = /* @__PURE__ */ Ut(n);
|
|
70
70
|
e && n.remove(), n = i;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
if (!e || e.nodeType !== 8) throw
|
|
73
|
+
function O(e) {
|
|
74
|
+
if (!e || e.nodeType !== 8) throw me(), t;
|
|
75
75
|
return e.data;
|
|
76
76
|
}
|
|
77
77
|
//#endregion
|
|
78
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
79
|
-
function
|
|
78
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
79
|
+
function k(e) {
|
|
80
80
|
return e === this.v;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function xe(e, t) {
|
|
83
83
|
return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
|
|
84
84
|
}
|
|
85
|
-
function xe(e) {
|
|
86
|
-
return !be(e, this.v);
|
|
87
|
-
}
|
|
88
85
|
function Se(e) {
|
|
86
|
+
return !xe(e, this.v);
|
|
87
|
+
}
|
|
88
|
+
function Ce(e) {
|
|
89
89
|
throw Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
90
90
|
}
|
|
91
91
|
//#endregion
|
|
92
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
93
|
-
function
|
|
92
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/errors.js
|
|
93
|
+
function we() {
|
|
94
94
|
throw Error("https://svelte.dev/e/async_derived_orphan");
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Te(e) {
|
|
97
97
|
throw Error("https://svelte.dev/e/effect_in_teardown");
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Ee() {
|
|
100
100
|
throw Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function De(e) {
|
|
103
103
|
throw Error("https://svelte.dev/e/effect_orphan");
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Oe() {
|
|
106
106
|
throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function ke() {
|
|
109
109
|
throw Error("https://svelte.dev/e/hydration_failed");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Ae(e) {
|
|
112
112
|
throw Error("https://svelte.dev/e/props_invalid_value");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function je() {
|
|
115
115
|
throw Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Me() {
|
|
118
118
|
throw Error("https://svelte.dev/e/state_prototype_fixed");
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Ne() {
|
|
121
121
|
throw Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Pe() {
|
|
124
124
|
throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
125
125
|
}
|
|
126
126
|
//#endregion
|
|
127
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
128
|
-
var
|
|
129
|
-
function
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
function
|
|
133
|
-
|
|
134
|
-
p:
|
|
127
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/context.js
|
|
128
|
+
var A = null;
|
|
129
|
+
function Fe(e) {
|
|
130
|
+
A = e;
|
|
131
|
+
}
|
|
132
|
+
function Ie(e, t = !1, n) {
|
|
133
|
+
A = {
|
|
134
|
+
p: A,
|
|
135
135
|
i: !1,
|
|
136
136
|
c: null,
|
|
137
137
|
e: null,
|
|
@@ -141,70 +141,56 @@ function Fe(e, t = !1, n) {
|
|
|
141
141
|
l: null
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
var t =
|
|
144
|
+
function Le(e) {
|
|
145
|
+
var t = A, n = t.e;
|
|
146
146
|
if (n !== null) {
|
|
147
147
|
t.e = null;
|
|
148
|
-
for (var r of n)
|
|
148
|
+
for (var r of n) rn(r);
|
|
149
149
|
}
|
|
150
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
150
|
+
return e !== void 0 && (t.x = e), t.i = !0, A = t.p, Re(e);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
return c(e,
|
|
152
|
+
function Re(e = {}) {
|
|
153
|
+
return c(e, oe, { value: !0 }), e;
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function ze() {
|
|
156
156
|
return !0;
|
|
157
157
|
}
|
|
158
158
|
//#endregion
|
|
159
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
160
|
-
var
|
|
161
|
-
function
|
|
162
|
-
var e =
|
|
163
|
-
|
|
164
|
-
}
|
|
165
|
-
function
|
|
166
|
-
if (
|
|
167
|
-
var t =
|
|
159
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/task.js
|
|
160
|
+
var Be = [];
|
|
161
|
+
function Ve() {
|
|
162
|
+
var e = Be;
|
|
163
|
+
Be = [], h(e);
|
|
164
|
+
}
|
|
165
|
+
function He(e) {
|
|
166
|
+
if (Be.length === 0 && !dt) {
|
|
167
|
+
var t = Be;
|
|
168
168
|
queueMicrotask(() => {
|
|
169
|
-
t ===
|
|
169
|
+
t === Be && Ve();
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
|
|
172
|
+
Be.push(e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
for (;
|
|
174
|
+
function Ue() {
|
|
175
|
+
for (; Be.length > 0;) Ve();
|
|
176
176
|
}
|
|
177
177
|
//#endregion
|
|
178
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
179
|
-
var
|
|
180
|
-
function
|
|
181
|
-
e.f = e.f &
|
|
178
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/status.js
|
|
179
|
+
var We = ~(v | y | _);
|
|
180
|
+
function j(e, t) {
|
|
181
|
+
e.f = e.f & We | t;
|
|
182
182
|
}
|
|
183
|
-
function We(e) {
|
|
184
|
-
e.f & 512 || e.deps === null ? N(e, _) : N(e, y);
|
|
185
|
-
}
|
|
186
|
-
//#endregion
|
|
187
|
-
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/utils.js
|
|
188
183
|
function Ge(e) {
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
function Ke(e, t, n) {
|
|
192
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), Ge(e.deps), N(e, _);
|
|
184
|
+
e.f & 512 || e.deps === null ? j(e, _) : j(e, y);
|
|
193
185
|
}
|
|
194
186
|
//#endregion
|
|
195
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
var t = qe;
|
|
199
|
-
try {
|
|
200
|
-
return qe = !1, [e(), qe];
|
|
201
|
-
} finally {
|
|
202
|
-
qe = t;
|
|
203
|
-
}
|
|
187
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/utils.js
|
|
188
|
+
function Ke(e, t, n) {
|
|
189
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), j(e, _);
|
|
204
190
|
}
|
|
205
191
|
//#endregion
|
|
206
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
207
|
-
function
|
|
192
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
|
|
193
|
+
function qe(e) {
|
|
208
194
|
var t = H, n = G;
|
|
209
195
|
W(null), K(null);
|
|
210
196
|
try {
|
|
@@ -214,15 +200,15 @@ function Ye(e) {
|
|
|
214
200
|
}
|
|
215
201
|
}
|
|
216
202
|
//#endregion
|
|
217
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
218
|
-
function
|
|
219
|
-
let i =
|
|
203
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/async.js
|
|
204
|
+
function Je(e, t, n, r) {
|
|
205
|
+
let i = ze() ? Qe : nt;
|
|
220
206
|
var a = e.filter((e) => !e.settled), o = t.map(i);
|
|
221
207
|
if (n.length === 0 && a.length === 0) {
|
|
222
208
|
r(o);
|
|
223
209
|
return;
|
|
224
210
|
}
|
|
225
|
-
var s = G, c =
|
|
211
|
+
var s = G, c = Ye(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
|
|
226
212
|
function u(e) {
|
|
227
213
|
if (!(s.f & 16384)) {
|
|
228
214
|
c();
|
|
@@ -231,44 +217,44 @@ function Xe(e, t, n, r) {
|
|
|
231
217
|
} catch (e) {
|
|
232
218
|
z(e, s);
|
|
233
219
|
}
|
|
234
|
-
|
|
220
|
+
Xe();
|
|
235
221
|
}
|
|
236
222
|
}
|
|
237
|
-
var d =
|
|
223
|
+
var d = Ze();
|
|
238
224
|
if (n.length === 0) {
|
|
239
225
|
l.then(() => u([])).finally(d);
|
|
240
226
|
return;
|
|
241
227
|
}
|
|
242
228
|
function f() {
|
|
243
|
-
Promise.all(n.map((e) => /* @__PURE__ */
|
|
229
|
+
Promise.all(n.map((e) => /* @__PURE__ */ et(e))).then(u).catch((e) => z(e, s)).finally(d);
|
|
244
230
|
}
|
|
245
231
|
l ? l.then(() => {
|
|
246
|
-
c(), f(),
|
|
232
|
+
c(), f(), Xe();
|
|
247
233
|
}) : f();
|
|
248
234
|
}
|
|
249
|
-
function
|
|
250
|
-
var e = G, t = H, n =
|
|
235
|
+
function Ye() {
|
|
236
|
+
var e = G, t = H, n = A, r = M;
|
|
251
237
|
return function(i = !0) {
|
|
252
|
-
K(e), W(t),
|
|
238
|
+
K(e), W(t), Fe(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
|
|
253
239
|
};
|
|
254
240
|
}
|
|
255
|
-
function
|
|
256
|
-
K(null), W(null),
|
|
241
|
+
function Xe(e = !0) {
|
|
242
|
+
K(null), W(null), Fe(null), e && M?.deactivate();
|
|
257
243
|
}
|
|
258
|
-
function
|
|
259
|
-
var e = G, t = e.b, n =
|
|
244
|
+
function Ze() {
|
|
245
|
+
var e = G, t = e.b, n = M, r = !!t?.is_rendered();
|
|
260
246
|
return t?.update_pending_count(1, n), n.increment(r, e), () => {
|
|
261
247
|
t?.update_pending_count(-1, n), n.decrement(r, e);
|
|
262
248
|
};
|
|
263
249
|
}
|
|
264
250
|
/*#__NO_SIDE_EFFECTS__*/
|
|
265
|
-
function
|
|
251
|
+
function Qe(e) {
|
|
266
252
|
var t = 2 | v;
|
|
267
253
|
return G !== null && (G.f |= S), {
|
|
268
|
-
ctx:
|
|
254
|
+
ctx: A,
|
|
269
255
|
deps: null,
|
|
270
256
|
effects: null,
|
|
271
|
-
equals:
|
|
257
|
+
equals: k,
|
|
272
258
|
f: t,
|
|
273
259
|
fn: e,
|
|
274
260
|
reactions: null,
|
|
@@ -279,35 +265,35 @@ function et(e) {
|
|
|
279
265
|
ac: null
|
|
280
266
|
};
|
|
281
267
|
}
|
|
282
|
-
var
|
|
268
|
+
var $e = Symbol("obsolete");
|
|
283
269
|
/*#__NO_SIDE_EFFECTS__*/
|
|
284
|
-
function
|
|
270
|
+
function et(e, t, r) {
|
|
285
271
|
let i = G;
|
|
286
|
-
i === null &&
|
|
287
|
-
var a = void 0, o =
|
|
288
|
-
return
|
|
272
|
+
i === null && we();
|
|
273
|
+
var a = void 0, o = Dt(n), s = !H, c = /* @__PURE__ */ new Set();
|
|
274
|
+
return cn(() => {
|
|
289
275
|
var t = G, n = g();
|
|
290
276
|
a = n.promise;
|
|
291
277
|
try {
|
|
292
278
|
Promise.resolve(e()).then(n.resolve, (e) => {
|
|
293
|
-
e !==
|
|
294
|
-
}).finally(
|
|
279
|
+
e !== fe && n.reject(e);
|
|
280
|
+
}).finally(Xe);
|
|
295
281
|
} catch (e) {
|
|
296
|
-
n.reject(e),
|
|
282
|
+
n.reject(e), Xe();
|
|
297
283
|
}
|
|
298
|
-
var r =
|
|
284
|
+
var r = M;
|
|
299
285
|
if (s) {
|
|
300
|
-
if (t.f & 32768) var l =
|
|
301
|
-
if (i.b?.is_rendered()) r.async_deriveds.get(t)?.reject(
|
|
302
|
-
else for (let e of c.values()) e.reject(
|
|
286
|
+
if (t.f & 32768) var l = Ze();
|
|
287
|
+
if (i.b?.is_rendered()) r.async_deriveds.get(t)?.reject($e);
|
|
288
|
+
else for (let e of c.values()) e.reject($e);
|
|
303
289
|
c.add(n), r.async_deriveds.set(t, n);
|
|
304
290
|
}
|
|
305
291
|
let u = (e, t = void 0) => {
|
|
306
|
-
l?.(), c.delete(n), t !==
|
|
292
|
+
l?.(), c.delete(n), t !== $e && (r.activate(), t ? (o.f |= ie, jt(o, t)) : (o.f & 8388608 && (o.f ^= ie), jt(o, e)), r.deactivate());
|
|
307
293
|
};
|
|
308
294
|
n.promise.then(u, (e) => u(null, e || "unknown"));
|
|
309
|
-
}),
|
|
310
|
-
for (let e of c) e.reject(
|
|
295
|
+
}), tn(() => {
|
|
296
|
+
for (let e of c) e.reject($e);
|
|
311
297
|
}), new Promise((e) => {
|
|
312
298
|
function t(n) {
|
|
313
299
|
function r() {
|
|
@@ -319,53 +305,53 @@ function nt(e, t, r) {
|
|
|
319
305
|
});
|
|
320
306
|
}
|
|
321
307
|
/*#__NO_SIDE_EFFECTS__*/
|
|
322
|
-
function
|
|
323
|
-
let t = /* @__PURE__ */
|
|
324
|
-
return
|
|
308
|
+
function tt(e) {
|
|
309
|
+
let t = /* @__PURE__ */ Qe(e);
|
|
310
|
+
return Dn(t), t;
|
|
325
311
|
}
|
|
326
312
|
/*#__NO_SIDE_EFFECTS__*/
|
|
327
|
-
function
|
|
328
|
-
let t = /* @__PURE__ */
|
|
329
|
-
return t.equals =
|
|
313
|
+
function nt(e) {
|
|
314
|
+
let t = /* @__PURE__ */ Qe(e);
|
|
315
|
+
return t.equals = Se, t;
|
|
330
316
|
}
|
|
331
|
-
function
|
|
317
|
+
function rt(e) {
|
|
332
318
|
var t = e.effects;
|
|
333
319
|
if (t !== null) {
|
|
334
320
|
e.effects = null;
|
|
335
321
|
for (var n = 0; n < t.length; n += 1) V(t[n]);
|
|
336
322
|
}
|
|
337
323
|
}
|
|
338
|
-
function
|
|
324
|
+
function it(e) {
|
|
339
325
|
var t, r = G, i = e.parent;
|
|
340
|
-
if (!
|
|
326
|
+
if (!Tn && i !== null && e.v !== n && i.f & 24576) return pe(), e.v;
|
|
341
327
|
K(i);
|
|
342
328
|
try {
|
|
343
|
-
|
|
329
|
+
rt(e), t = In(e);
|
|
344
330
|
} finally {
|
|
345
331
|
K(r);
|
|
346
332
|
}
|
|
347
333
|
return t;
|
|
348
334
|
}
|
|
349
|
-
function
|
|
350
|
-
var t =
|
|
351
|
-
if (!e.equals(t) && (e.wv =
|
|
352
|
-
|
|
335
|
+
function at(e) {
|
|
336
|
+
var t = it(e);
|
|
337
|
+
if (!e.equals(t) && (e.wv = Nn(), (!M?.is_fork || e.deps === null) && (M === null ? e.v = t : (M.capture(e, t, !0), lt?.capture(e, t, !0)), e.deps === null))) {
|
|
338
|
+
j(e, _);
|
|
353
339
|
return;
|
|
354
340
|
}
|
|
355
|
-
|
|
341
|
+
Tn || (N === null ? Ge(e) : (en() || M?.is_fork) && N.set(e, t));
|
|
356
342
|
}
|
|
357
|
-
function
|
|
358
|
-
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null &&
|
|
359
|
-
t.ac.abort(
|
|
360
|
-
}), t.fn !== null && (t.teardown = m),
|
|
343
|
+
function ot(e) {
|
|
344
|
+
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && qe(() => {
|
|
345
|
+
t.ac.abort(fe), t.ac = null;
|
|
346
|
+
}), t.fn !== null && (t.teardown = m), zn(t, 0), mn(t));
|
|
361
347
|
}
|
|
362
|
-
function
|
|
363
|
-
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null &&
|
|
348
|
+
function st(e) {
|
|
349
|
+
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Bn(t);
|
|
364
350
|
}
|
|
365
351
|
//#endregion
|
|
366
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
367
|
-
var
|
|
368
|
-
id =
|
|
352
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
353
|
+
var ct = null, M = null, lt = null, N = null, ut = null, dt = !1, ft = !1, pt = null, mt = null, ht = 0, gt = 1, _t = class e {
|
|
354
|
+
id = gt++;
|
|
369
355
|
#e = !1;
|
|
370
356
|
linked = !0;
|
|
371
357
|
#t = null;
|
|
@@ -387,7 +373,7 @@ var ut = null, P = null, dt = null, F = null, ft = null, pt = !1, mt = !1, ht =
|
|
|
387
373
|
is_fork = !1;
|
|
388
374
|
#m = !1;
|
|
389
375
|
constructor() {
|
|
390
|
-
|
|
376
|
+
ct === null ? ct = this : (ct.#n = this, this.#t = ct), ct = this;
|
|
391
377
|
}
|
|
392
378
|
#h() {
|
|
393
379
|
if (this.is_fork) return !0;
|
|
@@ -413,54 +399,73 @@ var ut = null, P = null, dt = null, F = null, ft = null, pt = !1, mt = !1, ht =
|
|
|
413
399
|
var n = this.#f.get(e);
|
|
414
400
|
if (n) {
|
|
415
401
|
this.#f.delete(e);
|
|
416
|
-
for (var r of n.d)
|
|
417
|
-
for (r of n.m)
|
|
402
|
+
for (var r of n.d) j(r, v), t(r);
|
|
403
|
+
for (r of n.m) j(r, y), t(r);
|
|
418
404
|
}
|
|
419
405
|
this.#p.add(e);
|
|
420
406
|
}
|
|
421
407
|
#g() {
|
|
422
|
-
|
|
423
|
-
for (let
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
408
|
+
var e = [];
|
|
409
|
+
for (let i of this.#c) if (!(i.f & 16384 || !(i.f & 6144))) {
|
|
410
|
+
for (var t = i, n = !1; t.parent !== null;) {
|
|
411
|
+
t = t.parent;
|
|
412
|
+
var r = t.f;
|
|
413
|
+
if (r & 96) {
|
|
414
|
+
if (!(r & 1024)) {
|
|
415
|
+
n = !0;
|
|
416
|
+
break;
|
|
417
|
+
}
|
|
418
|
+
t.f ^= _;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
n || e.push(t);
|
|
422
|
+
}
|
|
423
|
+
return this.#c = [], e;
|
|
424
|
+
}
|
|
425
|
+
#_() {
|
|
426
|
+
this.#e = !0;
|
|
427
|
+
for (let e of this.#u) this.#d.delete(e), j(e, v), this.schedule(e);
|
|
428
|
+
for (let e of this.#d) j(e, y), this.schedule(e);
|
|
429
|
+
this.apply();
|
|
430
|
+
for (var t = pt = [], n = [], r = mt = []; this.#c.length > 0;) {
|
|
431
|
+
ht++ > 1e3 && (this.#S(), vt());
|
|
432
|
+
for (let e of this.#g()) try {
|
|
433
|
+
this.#v(e, t, n);
|
|
434
|
+
} catch (t) {
|
|
435
|
+
throw wt(e), this.#h() || this.discard(), t;
|
|
436
|
+
}
|
|
432
437
|
}
|
|
433
|
-
if (
|
|
434
|
-
var
|
|
435
|
-
for (let e of
|
|
438
|
+
if (M = null, r.length > 0) {
|
|
439
|
+
var i = e.ensure();
|
|
440
|
+
for (let e of r) i.schedule(e);
|
|
436
441
|
}
|
|
437
|
-
if (
|
|
438
|
-
this.#
|
|
439
|
-
for (let [e, t] of this.#f)
|
|
440
|
-
|
|
442
|
+
if (pt = null, mt = null, this.#h()) {
|
|
443
|
+
this.#x(n), this.#x(t);
|
|
444
|
+
for (let [e, t] of this.#f) Ct(e, t);
|
|
445
|
+
r.length > 0 && M.#_();
|
|
441
446
|
return;
|
|
442
447
|
}
|
|
443
|
-
let
|
|
444
|
-
if (
|
|
445
|
-
this.#
|
|
448
|
+
let a = this.#y();
|
|
449
|
+
if (a) {
|
|
450
|
+
this.#x(n), this.#x(t), a.#b(this);
|
|
446
451
|
return;
|
|
447
452
|
}
|
|
448
453
|
this.#u.clear(), this.#d.clear();
|
|
449
454
|
for (let e of this.#r) e(this);
|
|
450
|
-
this.#r.clear(),
|
|
451
|
-
var
|
|
452
|
-
if (this.#a === 0 && (this.#c.length === 0 ||
|
|
453
|
-
let e
|
|
454
|
-
|
|
455
|
-
} else
|
|
456
|
-
|
|
457
|
-
}
|
|
458
|
-
#
|
|
455
|
+
this.#r.clear(), lt = this, yt(n), yt(t), lt = null, this.#s?.resolve();
|
|
456
|
+
var o = M;
|
|
457
|
+
if (this.#a === 0 && (this.#c.length === 0 || o !== null) && this.#S(), this.#c.length > 0) if (o !== null) {
|
|
458
|
+
for (let e of this.#c) o.#c.push(e);
|
|
459
|
+
this.#c = [];
|
|
460
|
+
} else o = this;
|
|
461
|
+
o !== null && (I.clear(), o.#_());
|
|
462
|
+
}
|
|
463
|
+
#v(e, t, n) {
|
|
459
464
|
e.f ^= _;
|
|
460
465
|
for (var r = e.first; r !== null;) {
|
|
461
466
|
var i = r.f, a = (i & 96) != 0;
|
|
462
467
|
if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
|
|
463
|
-
a ? r.f ^= _ : i & 4 ? t.push(r) :
|
|
468
|
+
a ? r.f ^= _ : i & 4 ? t.push(r) : Pn(r) && (i & 16 && this.#d.add(r), Bn(r));
|
|
464
469
|
var o = r.first;
|
|
465
470
|
if (o !== null) {
|
|
466
471
|
r = o;
|
|
@@ -477,7 +482,7 @@ var ut = null, P = null, dt = null, F = null, ft = null, pt = !1, mt = !1, ht =
|
|
|
477
482
|
}
|
|
478
483
|
}
|
|
479
484
|
}
|
|
480
|
-
#
|
|
485
|
+
#y() {
|
|
481
486
|
for (var e = this.#t; e !== null;) {
|
|
482
487
|
if (!e.is_fork) {
|
|
483
488
|
for (let [t, [, n]] of this.current) if (e.current.has(t) && !n) return e;
|
|
@@ -486,7 +491,7 @@ var ut = null, P = null, dt = null, F = null, ft = null, pt = !1, mt = !1, ht =
|
|
|
486
491
|
}
|
|
487
492
|
return null;
|
|
488
493
|
}
|
|
489
|
-
#
|
|
494
|
+
#b(e) {
|
|
490
495
|
for (let [t, n] of e.current) !this.previous.has(t) && e.previous.has(t) && this.previous.set(t, e.previous.get(t)), this.current.set(t, n);
|
|
491
496
|
for (let [t, n] of e.async_deriveds) {
|
|
492
497
|
let e = this.async_deriveds.get(t);
|
|
@@ -500,37 +505,37 @@ var ut = null, P = null, dt = null, F = null, ft = null, pt = !1, mt = !1, ht =
|
|
|
500
505
|
if (r & 2) t(e);
|
|
501
506
|
else {
|
|
502
507
|
var i = e;
|
|
503
|
-
r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i),
|
|
508
|
+
r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), j(i, v), this.schedule(i));
|
|
504
509
|
}
|
|
505
510
|
}
|
|
506
511
|
};
|
|
507
512
|
for (let e of this.current.keys()) t(e);
|
|
508
|
-
this.oncommit(() => e.discard()), e.#
|
|
513
|
+
this.oncommit(() => e.discard()), e.#S(), M = this, this.#_();
|
|
509
514
|
}
|
|
510
|
-
#
|
|
515
|
+
#x(e) {
|
|
511
516
|
for (var t = 0; t < e.length; t += 1) Ke(e[t], this.#u, this.#d);
|
|
512
517
|
}
|
|
513
518
|
capture(e, t, r = !1) {
|
|
514
|
-
e.v !== n && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, r]),
|
|
519
|
+
e.v !== n && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, r]), N?.set(e, t)), this.is_fork || (e.v = t);
|
|
515
520
|
}
|
|
516
521
|
activate() {
|
|
517
|
-
|
|
522
|
+
M = this;
|
|
518
523
|
}
|
|
519
524
|
deactivate() {
|
|
520
|
-
|
|
525
|
+
M = null, N = null;
|
|
521
526
|
}
|
|
522
527
|
flush() {
|
|
523
528
|
try {
|
|
524
|
-
|
|
529
|
+
ft = !0, M = this, this.#_();
|
|
525
530
|
} finally {
|
|
526
|
-
|
|
531
|
+
ht = 0, ut = null, pt = null, mt = null, ft = !1, M = null, N = null, I.clear();
|
|
527
532
|
}
|
|
528
533
|
}
|
|
529
534
|
discard() {
|
|
530
535
|
for (let e of this.#i) e(this);
|
|
531
536
|
this.#i.clear();
|
|
532
|
-
for (let e of this.async_deriveds.values()) e.reject(
|
|
533
|
-
this.#
|
|
537
|
+
for (let e of this.async_deriveds.values()) e.reject($e);
|
|
538
|
+
this.#S(), this.#s?.resolve();
|
|
534
539
|
}
|
|
535
540
|
register_created_effect(e) {
|
|
536
541
|
this.#l.push(e);
|
|
@@ -546,7 +551,7 @@ var ut = null, P = null, dt = null, F = null, ft = null, pt = !1, mt = !1, ht =
|
|
|
546
551
|
let e = this.#o.get(t) ?? 0;
|
|
547
552
|
e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
|
|
548
553
|
}
|
|
549
|
-
this.#m || (this.#m = !0,
|
|
554
|
+
this.#m || (this.#m = !0, He(() => {
|
|
550
555
|
this.#m = !1, this.linked && this.flush();
|
|
551
556
|
}));
|
|
552
557
|
}
|
|
@@ -565,197 +570,196 @@ var ut = null, P = null, dt = null, F = null, ft = null, pt = !1, mt = !1, ht =
|
|
|
565
570
|
return (this.#s ??= g()).promise;
|
|
566
571
|
}
|
|
567
572
|
static ensure() {
|
|
568
|
-
if (
|
|
569
|
-
let t =
|
|
570
|
-
!
|
|
573
|
+
if (M === null) {
|
|
574
|
+
let t = M = new e();
|
|
575
|
+
!ft && !dt && He(() => {
|
|
571
576
|
t.#e || t.flush();
|
|
572
577
|
});
|
|
573
578
|
}
|
|
574
|
-
return
|
|
579
|
+
return M;
|
|
575
580
|
}
|
|
576
581
|
apply() {
|
|
577
|
-
|
|
582
|
+
N = null;
|
|
578
583
|
}
|
|
579
584
|
schedule(e) {
|
|
580
|
-
if (
|
|
585
|
+
if (ut = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
|
|
581
586
|
e.b.defer_effect(e);
|
|
582
587
|
return;
|
|
583
588
|
}
|
|
584
|
-
|
|
585
|
-
t = t.parent;
|
|
586
|
-
var n = t.f;
|
|
587
|
-
if (ht !== null && t === G && (H === null || !(H.f & 2))) return;
|
|
588
|
-
if (n & 96) {
|
|
589
|
-
if (!(n & 1024)) return;
|
|
590
|
-
t.f ^= _;
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
this.#c.push(t);
|
|
589
|
+
this.#c.push(e);
|
|
594
590
|
}
|
|
595
|
-
#
|
|
591
|
+
#S() {
|
|
596
592
|
if (this.linked) {
|
|
597
593
|
var e = this.#t, t = this.#n;
|
|
598
|
-
e === null || (e.#n = t), t === null ?
|
|
594
|
+
e === null || (e.#n = t), t === null ? ct = e : t.#t = e, this.linked = !1;
|
|
599
595
|
}
|
|
600
596
|
}
|
|
601
597
|
};
|
|
602
|
-
function
|
|
603
|
-
var t =
|
|
604
|
-
|
|
598
|
+
function P(e) {
|
|
599
|
+
var t = dt;
|
|
600
|
+
dt = !0;
|
|
605
601
|
try {
|
|
606
602
|
var n;
|
|
607
|
-
for (e && (
|
|
608
|
-
if (
|
|
609
|
-
|
|
603
|
+
for (e && (M !== null && !M.is_fork && M.flush(), n = e());;) {
|
|
604
|
+
if (Ue(), M === null) return n;
|
|
605
|
+
M.flush();
|
|
610
606
|
}
|
|
611
607
|
} finally {
|
|
612
|
-
|
|
608
|
+
dt = t;
|
|
613
609
|
}
|
|
614
610
|
}
|
|
615
|
-
function
|
|
611
|
+
function vt() {
|
|
616
612
|
try {
|
|
617
|
-
|
|
613
|
+
Oe();
|
|
618
614
|
} catch (e) {
|
|
619
|
-
z(e,
|
|
615
|
+
z(e, ut);
|
|
620
616
|
}
|
|
621
617
|
}
|
|
622
|
-
var
|
|
623
|
-
function
|
|
618
|
+
var F = null;
|
|
619
|
+
function yt(e) {
|
|
624
620
|
var t = e.length;
|
|
625
621
|
if (t !== 0) {
|
|
626
622
|
for (var n = 0; n < t;) {
|
|
627
623
|
var r = e[n++];
|
|
628
|
-
if (!(r.f & 24576) &&
|
|
629
|
-
|
|
630
|
-
for (let e of
|
|
624
|
+
if (!(r.f & 24576) && Pn(r) && (F = /* @__PURE__ */ new Set(), Bn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && _n(r), F?.size > 0)) {
|
|
625
|
+
I.clear();
|
|
626
|
+
for (let e of F) {
|
|
631
627
|
if (e.f & 24576) continue;
|
|
632
628
|
let t = [e], n = e.parent;
|
|
633
|
-
for (; n !== null;)
|
|
629
|
+
for (; n !== null;) F.has(n) && (F.delete(n), t.push(n)), n = n.parent;
|
|
634
630
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
635
631
|
let n = t[e];
|
|
636
|
-
n.f & 24576 ||
|
|
632
|
+
n.f & 24576 || Bn(n);
|
|
637
633
|
}
|
|
638
634
|
}
|
|
639
|
-
|
|
635
|
+
F.clear();
|
|
640
636
|
}
|
|
641
637
|
}
|
|
642
|
-
|
|
638
|
+
F = null;
|
|
643
639
|
}
|
|
644
640
|
}
|
|
645
|
-
function
|
|
641
|
+
function bt(e, t, n, r) {
|
|
646
642
|
if (!n.has(e) && (n.add(e), e.reactions !== null)) for (let i of e.reactions) {
|
|
647
643
|
let e = i.f;
|
|
648
|
-
e & 2 ?
|
|
644
|
+
e & 2 ? bt(i, t, n, r) : e & 4194320 && !(e & 2048) && xt(i, t, r) && (j(i, v), St(i));
|
|
649
645
|
}
|
|
650
646
|
}
|
|
651
|
-
function
|
|
647
|
+
function xt(e, t, n) {
|
|
652
648
|
let r = n.get(e);
|
|
653
649
|
if (r !== void 0) return r;
|
|
654
650
|
if (e.deps !== null) for (let r of e.deps) {
|
|
655
651
|
if (a.call(t, r)) return !0;
|
|
656
|
-
if (r.f & 2 &&
|
|
652
|
+
if (r.f & 2 && xt(r, t, n)) return n.set(r, !0), !0;
|
|
657
653
|
}
|
|
658
654
|
return n.set(e, !1), !1;
|
|
659
655
|
}
|
|
660
|
-
function
|
|
661
|
-
|
|
656
|
+
function St(e) {
|
|
657
|
+
M.schedule(e);
|
|
662
658
|
}
|
|
663
|
-
function
|
|
659
|
+
function Ct(e, t) {
|
|
664
660
|
if (!(e.f & 32 && e.f & 1024)) {
|
|
665
|
-
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e),
|
|
666
|
-
for (var n = e.first; n !== null;)
|
|
661
|
+
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), j(e, _);
|
|
662
|
+
for (var n = e.first; n !== null;) Ct(n, t), n = n.next;
|
|
667
663
|
}
|
|
668
664
|
}
|
|
669
|
-
function
|
|
670
|
-
|
|
671
|
-
for (var t = e.first; t !== null;)
|
|
665
|
+
function wt(e) {
|
|
666
|
+
j(e, _);
|
|
667
|
+
for (var t = e.first; t !== null;) wt(t), t = t.next;
|
|
672
668
|
}
|
|
673
669
|
//#endregion
|
|
674
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
675
|
-
var
|
|
676
|
-
function
|
|
670
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/sources.js
|
|
671
|
+
var Tt = /* @__PURE__ */ new Set(), I = /* @__PURE__ */ new Map(), Et = !1;
|
|
672
|
+
function Dt(e, t) {
|
|
677
673
|
return {
|
|
678
674
|
f: 0,
|
|
679
675
|
v: e,
|
|
680
676
|
reactions: null,
|
|
681
|
-
equals:
|
|
677
|
+
equals: k,
|
|
682
678
|
rv: 0,
|
|
683
679
|
wv: 0
|
|
684
680
|
};
|
|
685
681
|
}
|
|
686
682
|
/*#__NO_SIDE_EFFECTS__*/
|
|
687
683
|
function L(e, t) {
|
|
688
|
-
let n =
|
|
689
|
-
return
|
|
684
|
+
let n = Dt(e, t);
|
|
685
|
+
return Dn(n), n;
|
|
690
686
|
}
|
|
691
687
|
/*#__NO_SIDE_EFFECTS__*/
|
|
692
|
-
function
|
|
693
|
-
let r =
|
|
694
|
-
return t || (r.equals =
|
|
688
|
+
function Ot(e, t = !1, n = !0) {
|
|
689
|
+
let r = Dt(e);
|
|
690
|
+
return t || (r.equals = Se), r;
|
|
695
691
|
}
|
|
696
692
|
function R(e, t, n = !1) {
|
|
697
|
-
return H !== null && (!U || H.f & 131072) &&
|
|
693
|
+
return H !== null && (!U || H.f & 131072) && ze() && H.f & 4325394 && (q === null || !q.has(e)) && Ne(), jt(e, n ? Ft(t) : t, mt);
|
|
698
694
|
}
|
|
699
|
-
|
|
695
|
+
var kt = null, At = 0;
|
|
696
|
+
function jt(e, t, n = null) {
|
|
700
697
|
if (!e.equals(t)) {
|
|
701
|
-
|
|
702
|
-
var r =
|
|
698
|
+
Tn ? I.set(e, t) : I.has(e) || I.set(e, e.v);
|
|
699
|
+
var r = _t.ensure();
|
|
703
700
|
if (r.capture(e, t), e.f & 2) {
|
|
704
701
|
let t = e;
|
|
705
|
-
e.f & 2048 &&
|
|
702
|
+
e.f & 2048 && it(t), N === null && Ge(t);
|
|
706
703
|
}
|
|
707
|
-
e.wv =
|
|
704
|
+
e.wv = Nn(), kt = null, At = 0, Pt(e, v, n), kt = null, ze() && G !== null && G.f & 1024 && !(G.f & 96) && (X === null ? On([e]) : X.push(e)), !r.is_fork && Tt.size > 0 && !Et && Mt();
|
|
708
705
|
}
|
|
709
706
|
return t;
|
|
710
707
|
}
|
|
711
|
-
function
|
|
712
|
-
|
|
713
|
-
for (let e of
|
|
714
|
-
e.f & 1024 &&
|
|
708
|
+
function Mt() {
|
|
709
|
+
Et = !1;
|
|
710
|
+
for (let e of Tt) {
|
|
711
|
+
e.f & 1024 && j(e, y);
|
|
715
712
|
let t;
|
|
716
713
|
try {
|
|
717
|
-
t =
|
|
714
|
+
t = Pn(e);
|
|
718
715
|
} catch {
|
|
719
716
|
t = !0;
|
|
720
717
|
}
|
|
721
|
-
t &&
|
|
718
|
+
t && Bn(e);
|
|
722
719
|
}
|
|
723
|
-
|
|
720
|
+
Tt.clear();
|
|
724
721
|
}
|
|
725
|
-
function
|
|
722
|
+
function Nt(e) {
|
|
726
723
|
R(e, e.v + 1);
|
|
727
724
|
}
|
|
728
|
-
function
|
|
725
|
+
function Pt(e, t, n) {
|
|
729
726
|
var r = e.reactions;
|
|
730
|
-
if (r !== null)
|
|
731
|
-
var
|
|
732
|
-
if (
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
var
|
|
740
|
-
|
|
727
|
+
if (r !== null) {
|
|
728
|
+
var i = ze(), a = r.length;
|
|
729
|
+
if (At += a, At > 1e5 && kt === null && (kt = /* @__PURE__ */ new Set()), kt !== null) {
|
|
730
|
+
if (kt.has(e)) return;
|
|
731
|
+
kt.add(e);
|
|
732
|
+
}
|
|
733
|
+
for (var o = 0; o < a; o++) {
|
|
734
|
+
var s = r[o], c = s.f;
|
|
735
|
+
if (!(!i && s === G)) {
|
|
736
|
+
var l = (c & v) === 0;
|
|
737
|
+
if (l && j(s, t), c & 131072) Tt.add(s);
|
|
738
|
+
else if (c & 2) {
|
|
739
|
+
var u = s;
|
|
740
|
+
N?.delete(u), Pt(u, y, n);
|
|
741
|
+
} else if (l) {
|
|
742
|
+
var d = s;
|
|
743
|
+
c & 16 && F !== null && F.add(d), n === null ? St(d) : n.push(d);
|
|
744
|
+
}
|
|
741
745
|
}
|
|
742
746
|
}
|
|
743
747
|
}
|
|
744
748
|
}
|
|
745
|
-
function
|
|
746
|
-
if (typeof e != "object" || !e ||
|
|
749
|
+
function Ft(e) {
|
|
750
|
+
if (typeof e != "object" || !e || ae in e || oe in e) return e;
|
|
747
751
|
let t = f(e);
|
|
748
752
|
if (t !== u && t !== d) return e;
|
|
749
|
-
var i = /* @__PURE__ */ new Map(), a = r(e), o = /* @__PURE__ */ L(0), s = null, c =
|
|
750
|
-
if (
|
|
751
|
-
var t = H, n =
|
|
752
|
-
W(null),
|
|
753
|
+
var i = /* @__PURE__ */ new Map(), a = r(e), o = /* @__PURE__ */ L(0), s = null, c = jn, p = (e) => {
|
|
754
|
+
if (jn === c) return e();
|
|
755
|
+
var t = H, n = jn;
|
|
756
|
+
W(null), Mn(c);
|
|
753
757
|
var r = e();
|
|
754
|
-
return W(t),
|
|
758
|
+
return W(t), Mn(n), r;
|
|
755
759
|
};
|
|
756
760
|
return a && i.set("length", /* @__PURE__ */ L(e.length, s)), new Proxy(e, {
|
|
757
761
|
defineProperty(e, t, n) {
|
|
758
|
-
(!("value" in n) || n.configurable === !1 || n.enumerable === !1 || n.writable === !1) &&
|
|
762
|
+
(!("value" in n) || n.configurable === !1 || n.enumerable === !1 || n.writable === !1) && je();
|
|
759
763
|
var r = i.get(t);
|
|
760
764
|
return r === void 0 ? p(() => {
|
|
761
765
|
var e = /* @__PURE__ */ L(n.value, s);
|
|
@@ -767,40 +771,40 @@ function Lt(e) {
|
|
|
767
771
|
if (r === void 0) {
|
|
768
772
|
if (t in e) {
|
|
769
773
|
let e = p(() => /* @__PURE__ */ L(n, s));
|
|
770
|
-
i.set(t, e),
|
|
774
|
+
i.set(t, e), Nt(o);
|
|
771
775
|
}
|
|
772
|
-
} else R(r, n),
|
|
776
|
+
} else R(r, n), Nt(o);
|
|
773
777
|
return !0;
|
|
774
778
|
},
|
|
775
779
|
get(t, r, a) {
|
|
776
|
-
if (r ===
|
|
780
|
+
if (r === ae) return e;
|
|
777
781
|
var o = i.get(r), c = r in t;
|
|
778
|
-
if (o === void 0 && (!c || l(t, r)?.writable) && (o = p(() => /* @__PURE__ */ L(
|
|
782
|
+
if (o === void 0 && (!c || l(t, r)?.writable) && (o = p(() => /* @__PURE__ */ L(Ft(c ? t[r] : n), s)), i.set(r, o)), o !== void 0) {
|
|
779
783
|
var u = Z(o);
|
|
780
784
|
return u === n ? void 0 : u;
|
|
781
785
|
}
|
|
782
786
|
return Reflect.get(t, r, a);
|
|
783
787
|
},
|
|
784
788
|
getOwnPropertyDescriptor(e, t) {
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
789
|
+
this.has?.(e, t);
|
|
790
|
+
var r = Reflect.getOwnPropertyDescriptor(e, t), a = i.get(t);
|
|
791
|
+
if (a !== void 0) {
|
|
792
|
+
var o = Z(a);
|
|
793
|
+
if (o === n) return;
|
|
794
|
+
if (r && "value" in r) r.value = o;
|
|
795
|
+
else return {
|
|
792
796
|
enumerable: !0,
|
|
793
797
|
configurable: !0,
|
|
794
|
-
value:
|
|
798
|
+
value: o,
|
|
795
799
|
writable: !0
|
|
796
800
|
};
|
|
797
801
|
}
|
|
798
802
|
return r;
|
|
799
803
|
},
|
|
800
804
|
has(e, t) {
|
|
801
|
-
if (t ===
|
|
805
|
+
if (t === ae) return !0;
|
|
802
806
|
var r = i.get(t), a = r !== void 0 && r.v !== n || Reflect.has(e, t);
|
|
803
|
-
return (r !== void 0 || G !== null && (!a || l(e, t)?.writable)) && (r === void 0 && (r = p(() => /* @__PURE__ */ L(a ?
|
|
807
|
+
return (r !== void 0 || G !== null && (!a || l(e, t)?.writable)) && (r === void 0 && (r = p(() => /* @__PURE__ */ L(a ? Ft(e[t]) : n, s)), i.set(t, r)), Z(r) === n) ? !1 : a;
|
|
804
808
|
},
|
|
805
809
|
set(e, t, r, c) {
|
|
806
810
|
var u = i.get(t), d = t in e;
|
|
@@ -808,10 +812,10 @@ function Lt(e) {
|
|
|
808
812
|
var m = i.get(f + "");
|
|
809
813
|
m === void 0 ? f in e && (m = p(() => /* @__PURE__ */ L(n, s)), i.set(f + "", m)) : R(m, n);
|
|
810
814
|
}
|
|
811
|
-
if (u === void 0) (!d || l(e, t)?.writable) && (u = p(() => /* @__PURE__ */ L(void 0, s)), R(u,
|
|
815
|
+
if (u === void 0) (!d || l(e, t)?.writable) && (u = p(() => /* @__PURE__ */ L(void 0, s)), R(u, Ft(r)), i.set(t, u));
|
|
812
816
|
else {
|
|
813
817
|
d = u.v !== n;
|
|
814
|
-
var h = p(() =>
|
|
818
|
+
var h = p(() => Ft(r));
|
|
815
819
|
R(u, h);
|
|
816
820
|
}
|
|
817
821
|
var g = Reflect.getOwnPropertyDescriptor(e, t);
|
|
@@ -820,7 +824,7 @@ function Lt(e) {
|
|
|
820
824
|
var _ = i.get("length"), v = Number(t);
|
|
821
825
|
Number.isInteger(v) && v >= _.v && R(_, v + 1);
|
|
822
826
|
}
|
|
823
|
-
|
|
827
|
+
Nt(o);
|
|
824
828
|
}
|
|
825
829
|
return !0;
|
|
826
830
|
},
|
|
@@ -834,74 +838,74 @@ function Lt(e) {
|
|
|
834
838
|
return t;
|
|
835
839
|
},
|
|
836
840
|
setPrototypeOf() {
|
|
837
|
-
|
|
841
|
+
Me();
|
|
838
842
|
}
|
|
839
843
|
});
|
|
840
844
|
}
|
|
841
|
-
var
|
|
842
|
-
function
|
|
843
|
-
if (
|
|
844
|
-
|
|
845
|
+
var It, Lt, Rt, zt;
|
|
846
|
+
function Bt() {
|
|
847
|
+
if (It === void 0) {
|
|
848
|
+
It = window, Lt = /Firefox/.test(navigator.userAgent);
|
|
845
849
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
846
|
-
|
|
850
|
+
Rt = l(t, "firstChild").get, zt = l(t, "nextSibling").get, p(e) && (e[le] = void 0, e[ce] = null, e[ue] = void 0, e.__e = void 0), p(n) && (n[de] = void 0);
|
|
847
851
|
}
|
|
848
852
|
}
|
|
849
|
-
function
|
|
853
|
+
function Vt(e = "") {
|
|
850
854
|
return document.createTextNode(e);
|
|
851
855
|
}
|
|
852
856
|
/*@__NO_SIDE_EFFECTS__*/
|
|
853
|
-
function
|
|
854
|
-
return
|
|
857
|
+
function Ht(e) {
|
|
858
|
+
return Rt.call(e);
|
|
855
859
|
}
|
|
856
860
|
/*@__NO_SIDE_EFFECTS__*/
|
|
857
|
-
function
|
|
858
|
-
return
|
|
861
|
+
function Ut(e) {
|
|
862
|
+
return zt.call(e);
|
|
859
863
|
}
|
|
860
|
-
function
|
|
861
|
-
if (!
|
|
862
|
-
var n = /* @__PURE__ */
|
|
863
|
-
if (n === null) n =
|
|
864
|
+
function Wt(e, t) {
|
|
865
|
+
if (!T) return /* @__PURE__ */ Ht(e);
|
|
866
|
+
var n = /* @__PURE__ */ Ht(E);
|
|
867
|
+
if (n === null) n = E.appendChild(Vt());
|
|
864
868
|
else if (t && n.nodeType !== 3) {
|
|
865
|
-
var r =
|
|
866
|
-
return n?.before(r),
|
|
869
|
+
var r = Vt();
|
|
870
|
+
return n?.before(r), D(r), r;
|
|
867
871
|
}
|
|
868
|
-
return t &&
|
|
872
|
+
return t && Xt(n), D(n), n;
|
|
869
873
|
}
|
|
870
|
-
function
|
|
871
|
-
if (!
|
|
872
|
-
var n =
|
|
873
|
-
return
|
|
874
|
+
function Gt(e, t = !1) {
|
|
875
|
+
if (!T) return /* @__PURE__ */ Ht(e);
|
|
876
|
+
var n = Wt(e, t);
|
|
877
|
+
return ve(e), n;
|
|
874
878
|
}
|
|
875
|
-
function
|
|
876
|
-
let r =
|
|
877
|
-
for (var i; t--;) i = r, r = /* @__PURE__ */
|
|
878
|
-
if (!
|
|
879
|
+
function Kt(e, t = 1, n = !1) {
|
|
880
|
+
let r = T ? E : e;
|
|
881
|
+
for (var i; t--;) i = r, r = /* @__PURE__ */ Ut(r);
|
|
882
|
+
if (!T) return r;
|
|
879
883
|
if (n) {
|
|
880
884
|
if (r?.nodeType !== 3) {
|
|
881
|
-
var a =
|
|
882
|
-
return r === null ? i?.after(a) : r.before(a),
|
|
885
|
+
var a = Vt();
|
|
886
|
+
return r === null ? i?.after(a) : r.before(a), D(a), a;
|
|
883
887
|
}
|
|
884
|
-
|
|
888
|
+
Xt(r);
|
|
885
889
|
}
|
|
886
|
-
return
|
|
890
|
+
return D(r), r;
|
|
887
891
|
}
|
|
888
|
-
function
|
|
892
|
+
function qt(e) {
|
|
889
893
|
e.textContent = "";
|
|
890
894
|
}
|
|
891
|
-
function
|
|
895
|
+
function Jt() {
|
|
892
896
|
return !1;
|
|
893
897
|
}
|
|
894
|
-
function
|
|
898
|
+
function Yt(e, t, n) {
|
|
895
899
|
return t == null || t === "http://www.w3.org/1999/xhtml" ? n ? document.createElement(e, { is: n }) : document.createElement(e) : n ? document.createElementNS(t, e, { is: n }) : document.createElementNS(t, e);
|
|
896
900
|
}
|
|
897
|
-
function
|
|
901
|
+
function Xt(e) {
|
|
898
902
|
if (e.nodeValue.length < 65536) return;
|
|
899
903
|
let t = e.nextSibling;
|
|
900
904
|
for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
901
905
|
}
|
|
902
|
-
function
|
|
906
|
+
function Zt(e) {
|
|
903
907
|
var t = G;
|
|
904
|
-
if (t === null) return H.f |=
|
|
908
|
+
if (t === null) return H.f |= ie, e;
|
|
905
909
|
if (!(t.f & 32768) && !(t.f & 4)) throw e;
|
|
906
910
|
z(e, t);
|
|
907
911
|
}
|
|
@@ -923,11 +927,11 @@ function z(e, t) {
|
|
|
923
927
|
}
|
|
924
928
|
}
|
|
925
929
|
//#endregion
|
|
926
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
927
|
-
function
|
|
928
|
-
G === null && (H === null &&
|
|
930
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/effects.js
|
|
931
|
+
function Qt(e) {
|
|
932
|
+
G === null && (H === null && De(e), Ee()), Tn && Te(e);
|
|
929
933
|
}
|
|
930
|
-
function
|
|
934
|
+
function $t(e, t) {
|
|
931
935
|
var n = t.last;
|
|
932
936
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
933
937
|
}
|
|
@@ -935,7 +939,7 @@ function B(e, t) {
|
|
|
935
939
|
var n = G;
|
|
936
940
|
n !== null && n.f & 8192 && (e |= b);
|
|
937
941
|
var r = {
|
|
938
|
-
ctx:
|
|
942
|
+
ctx: A,
|
|
939
943
|
deps: null,
|
|
940
944
|
nodes: null,
|
|
941
945
|
f: e | v | 512,
|
|
@@ -950,105 +954,105 @@ function B(e, t) {
|
|
|
950
954
|
wv: 0,
|
|
951
955
|
ac: null
|
|
952
956
|
};
|
|
953
|
-
|
|
957
|
+
M?.register_created_effect(r);
|
|
954
958
|
var i = r;
|
|
955
|
-
if (e & 4)
|
|
959
|
+
if (e & 4) pt === null ? _t.ensure().schedule(r) : pt.push(r);
|
|
956
960
|
else if (t !== null) {
|
|
957
961
|
try {
|
|
958
|
-
|
|
962
|
+
Bn(r);
|
|
959
963
|
} catch (e) {
|
|
960
964
|
throw V(r), e;
|
|
961
965
|
}
|
|
962
966
|
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= ne));
|
|
963
967
|
}
|
|
964
|
-
if (i !== null && (i.parent = n, n !== null &&
|
|
968
|
+
if (i !== null && (i.parent = n, n !== null && $t(i, n), H !== null && H.f & 2 && !(e & 64))) {
|
|
965
969
|
var a = H;
|
|
966
970
|
(a.effects ??= []).push(i);
|
|
967
971
|
}
|
|
968
972
|
return r;
|
|
969
973
|
}
|
|
970
|
-
function
|
|
974
|
+
function en() {
|
|
971
975
|
return H !== null && !U;
|
|
972
976
|
}
|
|
973
|
-
function
|
|
977
|
+
function tn(e) {
|
|
974
978
|
let t = B(8, null);
|
|
975
|
-
return
|
|
979
|
+
return j(t, _), t.teardown = e, t;
|
|
976
980
|
}
|
|
977
|
-
function
|
|
978
|
-
|
|
981
|
+
function nn(e) {
|
|
982
|
+
Qt("$effect");
|
|
979
983
|
var t = G.f;
|
|
980
|
-
if (!H && t & 32 &&
|
|
981
|
-
var n =
|
|
984
|
+
if (!H && t & 32 && A !== null && !A.i) {
|
|
985
|
+
var n = A;
|
|
982
986
|
(n.e ??= []).push(e);
|
|
983
|
-
} else return
|
|
987
|
+
} else return rn(e);
|
|
984
988
|
}
|
|
985
|
-
function
|
|
989
|
+
function rn(e) {
|
|
986
990
|
return B(4 | C, e);
|
|
987
991
|
}
|
|
988
|
-
function
|
|
989
|
-
|
|
992
|
+
function an(e) {
|
|
993
|
+
_t.ensure();
|
|
990
994
|
let t = B(64 | S, e);
|
|
991
995
|
return () => {
|
|
992
996
|
V(t);
|
|
993
997
|
};
|
|
994
998
|
}
|
|
995
|
-
function
|
|
996
|
-
|
|
999
|
+
function on(e) {
|
|
1000
|
+
_t.ensure();
|
|
997
1001
|
let t = B(64 | S, e);
|
|
998
1002
|
return (e = {}) => new Promise((n) => {
|
|
999
|
-
e.outro ?
|
|
1003
|
+
e.outro ? vn(t, () => {
|
|
1000
1004
|
V(t), n(void 0);
|
|
1001
1005
|
}) : (V(t), n(void 0));
|
|
1002
1006
|
});
|
|
1003
1007
|
}
|
|
1004
|
-
function
|
|
1008
|
+
function sn(e) {
|
|
1005
1009
|
return B(4, e);
|
|
1006
1010
|
}
|
|
1007
|
-
function
|
|
1008
|
-
return B(
|
|
1011
|
+
function cn(e) {
|
|
1012
|
+
return B(w | S, e);
|
|
1009
1013
|
}
|
|
1010
|
-
function
|
|
1014
|
+
function ln(e, t = 0) {
|
|
1011
1015
|
return B(8 | t, e);
|
|
1012
1016
|
}
|
|
1013
|
-
function
|
|
1014
|
-
|
|
1017
|
+
function un(e, t = [], n = [], r = []) {
|
|
1018
|
+
Je(r, t, n, (t) => {
|
|
1015
1019
|
B(8, () => {
|
|
1016
1020
|
e(...t.map(Z));
|
|
1017
1021
|
});
|
|
1018
1022
|
});
|
|
1019
1023
|
}
|
|
1020
|
-
function
|
|
1024
|
+
function dn(e, t = 0) {
|
|
1021
1025
|
return B(16 | t, e);
|
|
1022
1026
|
}
|
|
1023
|
-
function
|
|
1027
|
+
function fn(e) {
|
|
1024
1028
|
return B(32 | S, e);
|
|
1025
1029
|
}
|
|
1026
|
-
function
|
|
1030
|
+
function pn(e) {
|
|
1027
1031
|
var t = e.teardown;
|
|
1028
1032
|
if (t !== null) {
|
|
1029
|
-
let n =
|
|
1030
|
-
|
|
1033
|
+
let n = Tn, r = H;
|
|
1034
|
+
En(!0), W(null);
|
|
1031
1035
|
try {
|
|
1032
1036
|
t.call(null);
|
|
1033
1037
|
} catch (t) {
|
|
1034
1038
|
z(t, e.parent);
|
|
1035
1039
|
} finally {
|
|
1036
|
-
|
|
1040
|
+
En(n), W(r);
|
|
1037
1041
|
}
|
|
1038
1042
|
}
|
|
1039
1043
|
}
|
|
1040
|
-
function
|
|
1044
|
+
function mn(e, t = !1) {
|
|
1041
1045
|
var n = e.first;
|
|
1042
1046
|
for (e.first = e.last = null; n !== null;) {
|
|
1043
1047
|
let e = n.ac;
|
|
1044
|
-
e !== null &&
|
|
1045
|
-
e.abort(
|
|
1048
|
+
e !== null && qe(() => {
|
|
1049
|
+
e.abort(fe);
|
|
1046
1050
|
});
|
|
1047
1051
|
var r = n.next;
|
|
1048
1052
|
n.f & 64 ? n.parent = null : V(n, t), n = r;
|
|
1049
1053
|
}
|
|
1050
1054
|
}
|
|
1051
|
-
function
|
|
1055
|
+
function hn(e) {
|
|
1052
1056
|
for (var t = e.first; t !== null;) {
|
|
1053
1057
|
var n = t.next;
|
|
1054
1058
|
t.f & 32 || V(t), t = n;
|
|
@@ -1056,26 +1060,26 @@ function _n(e) {
|
|
|
1056
1060
|
}
|
|
1057
1061
|
function V(e, t = !0) {
|
|
1058
1062
|
var n = !1;
|
|
1059
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (
|
|
1063
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (gn(e.nodes.start, e.nodes.end), n = !0), e.f |= te, mn(e, t && !n), zn(e, 0);
|
|
1060
1064
|
var r = e.nodes && e.nodes.t;
|
|
1061
1065
|
if (r !== null) for (let e of r) e.stop();
|
|
1062
|
-
|
|
1066
|
+
pn(e), e.f ^= te, e.f |= ee;
|
|
1063
1067
|
var i = e.parent;
|
|
1064
|
-
i !== null && i.first !== null &&
|
|
1068
|
+
i !== null && i.first !== null && _n(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1065
1069
|
}
|
|
1066
|
-
function
|
|
1070
|
+
function gn(e, t) {
|
|
1067
1071
|
for (; e !== null;) {
|
|
1068
|
-
var n = e === t ? null : /* @__PURE__ */
|
|
1072
|
+
var n = e === t ? null : /* @__PURE__ */ Ut(e);
|
|
1069
1073
|
e.remove(), e = n;
|
|
1070
1074
|
}
|
|
1071
1075
|
}
|
|
1072
|
-
function
|
|
1076
|
+
function _n(e) {
|
|
1073
1077
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1074
1078
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1075
1079
|
}
|
|
1076
|
-
function
|
|
1080
|
+
function vn(e, t, n = !0) {
|
|
1077
1081
|
var r = [];
|
|
1078
|
-
e.f |= 256,
|
|
1082
|
+
e.f |= 256, yn(e, r, !0);
|
|
1079
1083
|
var i = () => {
|
|
1080
1084
|
n && V(e), t && t();
|
|
1081
1085
|
}, a = r.length;
|
|
@@ -1084,7 +1088,7 @@ function bn(e, t, n = !0) {
|
|
|
1084
1088
|
for (var s of r) s.out(o);
|
|
1085
1089
|
} else i();
|
|
1086
1090
|
}
|
|
1087
|
-
function
|
|
1091
|
+
function yn(e, t, n) {
|
|
1088
1092
|
if (!(e.f & 8192)) {
|
|
1089
1093
|
e.f ^= b;
|
|
1090
1094
|
var r = e.nodes && e.nodes.t;
|
|
@@ -1093,37 +1097,37 @@ function xn(e, t, n) {
|
|
|
1093
1097
|
var a = i.next;
|
|
1094
1098
|
if (!(i.f & 64)) {
|
|
1095
1099
|
var o = (i.f & 65536) != 0 || (i.f & 32) != 0 && (e.f & 16) != 0;
|
|
1096
|
-
|
|
1100
|
+
yn(i, t, o ? n : !1);
|
|
1097
1101
|
}
|
|
1098
1102
|
i = a;
|
|
1099
1103
|
}
|
|
1100
1104
|
}
|
|
1101
1105
|
}
|
|
1102
|
-
function
|
|
1103
|
-
e.f &= -257,
|
|
1106
|
+
function bn(e) {
|
|
1107
|
+
e.f &= -257, xn(e, !0);
|
|
1104
1108
|
}
|
|
1105
|
-
function
|
|
1109
|
+
function xn(e, t) {
|
|
1106
1110
|
if (!(e.f & 256) && e.f & 8192) {
|
|
1107
|
-
e.f ^= b, e.f & 1024 || (
|
|
1111
|
+
e.f ^= b, e.f & 1024 || (j(e, v), _t.ensure().schedule(e));
|
|
1108
1112
|
for (var n = e.first; n !== null;) {
|
|
1109
1113
|
var r = n.next, i = (n.f & 65536) != 0 || (n.f & 32) != 0;
|
|
1110
|
-
|
|
1114
|
+
xn(n, i ? t : !1), n = r;
|
|
1111
1115
|
}
|
|
1112
1116
|
var a = e.nodes && e.nodes.t;
|
|
1113
1117
|
if (a !== null) for (let e of a) (e.is_global || t) && e.in();
|
|
1114
1118
|
}
|
|
1115
1119
|
}
|
|
1116
|
-
function
|
|
1120
|
+
function Sn(e, t) {
|
|
1117
1121
|
if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
|
|
1118
|
-
var i = n === r ? null : /* @__PURE__ */
|
|
1122
|
+
var i = n === r ? null : /* @__PURE__ */ Ut(n);
|
|
1119
1123
|
t.append(n), n = i;
|
|
1120
1124
|
}
|
|
1121
1125
|
}
|
|
1122
1126
|
//#endregion
|
|
1123
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1124
|
-
var
|
|
1125
|
-
function
|
|
1126
|
-
|
|
1127
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/legacy.js
|
|
1128
|
+
var Cn = null, wn = !1, Tn = !1;
|
|
1129
|
+
function En(e) {
|
|
1130
|
+
Tn = e;
|
|
1127
1131
|
}
|
|
1128
1132
|
var H = null, U = !1;
|
|
1129
1133
|
function W(e) {
|
|
@@ -1134,73 +1138,73 @@ function K(e) {
|
|
|
1134
1138
|
G = e;
|
|
1135
1139
|
}
|
|
1136
1140
|
var q = null;
|
|
1137
|
-
function
|
|
1138
|
-
H !== null && (q ??= /* @__PURE__ */ new Set()).add(e);
|
|
1141
|
+
function Dn(e) {
|
|
1142
|
+
H !== null && (H.f & 2097152 || H.f & 2) && (q ??= /* @__PURE__ */ new Set()).add(e);
|
|
1139
1143
|
}
|
|
1140
1144
|
var J = null, Y = 0, X = null;
|
|
1141
|
-
function
|
|
1145
|
+
function On(e) {
|
|
1142
1146
|
X = e;
|
|
1143
1147
|
}
|
|
1144
|
-
var
|
|
1145
|
-
function
|
|
1146
|
-
|
|
1148
|
+
var kn = 1, An = 0, jn = An;
|
|
1149
|
+
function Mn(e) {
|
|
1150
|
+
jn = e;
|
|
1147
1151
|
}
|
|
1148
|
-
function
|
|
1149
|
-
return ++
|
|
1152
|
+
function Nn() {
|
|
1153
|
+
return ++kn;
|
|
1150
1154
|
}
|
|
1151
|
-
function
|
|
1155
|
+
function Pn(e) {
|
|
1152
1156
|
var t = e.f;
|
|
1153
1157
|
if (t & 2048) return !0;
|
|
1154
|
-
if (t &
|
|
1158
|
+
if (t & 4096) {
|
|
1155
1159
|
for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
|
|
1156
1160
|
var a = n[i];
|
|
1157
|
-
if (
|
|
1161
|
+
if (Pn(a) && at(a), a.wv > e.wv) return !0;
|
|
1158
1162
|
}
|
|
1159
|
-
t & 512 &&
|
|
1163
|
+
t & 512 && N === null && j(e, _);
|
|
1160
1164
|
}
|
|
1161
1165
|
return !1;
|
|
1162
1166
|
}
|
|
1163
|
-
function
|
|
1167
|
+
function Fn(e, t, n = !0) {
|
|
1164
1168
|
var r = e.reactions;
|
|
1165
1169
|
if (r !== null && !(q !== null && q.has(e))) for (var i = 0; i < r.length; i++) {
|
|
1166
1170
|
var a = r[i];
|
|
1167
|
-
a.f & 2 ?
|
|
1171
|
+
a.f & 2 ? Fn(a, t, !1) : t === a && (n ? j(a, v) : a.f & 1024 && j(a, y), St(a));
|
|
1168
1172
|
}
|
|
1169
1173
|
}
|
|
1170
|
-
function
|
|
1171
|
-
var t = J, n = Y, r = X, i = H, a = q, o =
|
|
1172
|
-
J = null, Y = 0, X = null, H = l & 96 ? null : e, q = null,
|
|
1173
|
-
e.ac.abort(
|
|
1174
|
+
function In(e) {
|
|
1175
|
+
var t = J, n = Y, r = X, i = H, a = q, o = A, s = U, c = jn, l = e.f;
|
|
1176
|
+
J = null, Y = 0, X = null, H = l & 96 ? null : e, q = null, Fe(e.ctx), U = !1, jn = ++An, e.ac !== null && (qe(() => {
|
|
1177
|
+
e.ac.abort(fe);
|
|
1174
1178
|
}), e.ac = null);
|
|
1175
1179
|
try {
|
|
1176
|
-
e.f |=
|
|
1180
|
+
e.f |= re;
|
|
1177
1181
|
var u = e.fn, d = u();
|
|
1178
1182
|
e.f |= x;
|
|
1179
|
-
var f =
|
|
1180
|
-
if (
|
|
1183
|
+
var f = Ln(e);
|
|
1184
|
+
if (ze() && X !== null && !U && f !== null && !(e.f & 6146)) for (var p = 0; p < X.length; p++) Fn(X[p], e);
|
|
1181
1185
|
if (i !== null && i !== e) {
|
|
1182
|
-
if (
|
|
1183
|
-
if (t !== null) for (let e of t) e.rv =
|
|
1186
|
+
if (An++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = An;
|
|
1187
|
+
if (t !== null) for (let e of t) e.rv = An;
|
|
1184
1188
|
X !== null && (r === null ? r = X : r.push(...X));
|
|
1185
1189
|
}
|
|
1186
|
-
return e.f & 8388608 && (e.f ^=
|
|
1190
|
+
return e.f & 8388608 && (e.f ^= ie), d;
|
|
1187
1191
|
} catch (t) {
|
|
1188
|
-
return
|
|
1192
|
+
return Ln(e), Zt(t);
|
|
1189
1193
|
} finally {
|
|
1190
|
-
e.f ^=
|
|
1194
|
+
e.f ^= re, J = t, Y = n, X = r, H = i, q = a, Fe(o), U = s, jn = c;
|
|
1191
1195
|
}
|
|
1192
1196
|
}
|
|
1193
|
-
function
|
|
1194
|
-
var t = e.deps, n =
|
|
1197
|
+
function Ln(e) {
|
|
1198
|
+
var t = e.deps, n = M?.is_fork;
|
|
1195
1199
|
if (J !== null) {
|
|
1196
1200
|
var r;
|
|
1197
|
-
if (n ||
|
|
1201
|
+
if (n || zn(e, Y), t !== null && Y > 0) for (t.length = Y + J.length, r = 0; r < J.length; r++) t[Y + r] = J[r];
|
|
1198
1202
|
else e.deps = t = J;
|
|
1199
|
-
if (
|
|
1200
|
-
} else !n && t !== null && Y < t.length && (
|
|
1203
|
+
if (en() && e.f & 512) for (r = Y; r < t.length; r++) (t[r].reactions ??= []).push(e);
|
|
1204
|
+
} else !n && t !== null && Y < t.length && (zn(e, Y), t.length = Y);
|
|
1201
1205
|
return t;
|
|
1202
1206
|
}
|
|
1203
|
-
function
|
|
1207
|
+
function Rn(e, t) {
|
|
1204
1208
|
let r = t.reactions;
|
|
1205
1209
|
if (r !== null) {
|
|
1206
1210
|
var o = i.call(r, e);
|
|
@@ -1211,65 +1215,65 @@ function Bn(e, t) {
|
|
|
1211
1215
|
}
|
|
1212
1216
|
if (r === null && t.f & 2 && (J === null || !a.call(J, t))) {
|
|
1213
1217
|
var c = t;
|
|
1214
|
-
c.f & 512 && (c.f ^= 512
|
|
1215
|
-
c.ac.abort(
|
|
1216
|
-
}),
|
|
1218
|
+
c.f & 512 && (c.f ^= 512), c.v !== n && Ge(c), c.ac !== null && qe(() => {
|
|
1219
|
+
c.ac.abort(fe), c.ac = null, j(c, v);
|
|
1220
|
+
}), ot(c), zn(c, 0);
|
|
1217
1221
|
}
|
|
1218
1222
|
}
|
|
1219
|
-
function
|
|
1223
|
+
function zn(e, t) {
|
|
1220
1224
|
var n = e.deps;
|
|
1221
|
-
if (n !== null) for (var r = t; r < n.length; r++)
|
|
1225
|
+
if (n !== null) for (var r = t; r < n.length; r++) Rn(e, n[r]);
|
|
1222
1226
|
}
|
|
1223
|
-
function
|
|
1227
|
+
function Bn(e) {
|
|
1224
1228
|
var t = e.f;
|
|
1225
1229
|
if (!(t & 16384)) {
|
|
1226
|
-
|
|
1227
|
-
var n = G, r =
|
|
1228
|
-
G = e,
|
|
1230
|
+
j(e, _);
|
|
1231
|
+
var n = G, r = wn;
|
|
1232
|
+
G = e, wn = (t & 96) == 0;
|
|
1229
1233
|
try {
|
|
1230
|
-
t & 16777232 ?
|
|
1231
|
-
var i =
|
|
1232
|
-
e.teardown = typeof i == "function" ? i : null, e.wv =
|
|
1234
|
+
t & 16777232 ? hn(e) : mn(e), pn(e);
|
|
1235
|
+
var i = In(e);
|
|
1236
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = kn;
|
|
1233
1237
|
} finally {
|
|
1234
|
-
|
|
1238
|
+
wn = r, G = n;
|
|
1235
1239
|
}
|
|
1236
1240
|
}
|
|
1237
1241
|
}
|
|
1238
1242
|
function Z(e) {
|
|
1239
1243
|
var t = (e.f & 2) != 0;
|
|
1240
|
-
if (
|
|
1244
|
+
if (Cn?.add(e), H !== null && !U && !(G !== null && G.f & 16384) && (q === null || !q.has(e))) {
|
|
1241
1245
|
var n = H.deps;
|
|
1242
|
-
if (H.f & 2097152) e.rv <
|
|
1246
|
+
if (H.f & 2097152) e.rv < An && (e.rv = An, J === null && n !== null && n[Y] === e ? Y++ : J === null ? J = [e] : J.push(e));
|
|
1243
1247
|
else {
|
|
1244
1248
|
H.deps ??= [], a.call(H.deps, e) || H.deps.push(e);
|
|
1245
1249
|
var r = e.reactions;
|
|
1246
1250
|
r === null ? e.reactions = [H] : a.call(r, H) || r.push(H);
|
|
1247
1251
|
}
|
|
1248
1252
|
}
|
|
1249
|
-
if (
|
|
1253
|
+
if (Tn && I.has(e)) return I.get(e);
|
|
1250
1254
|
if (t) {
|
|
1251
1255
|
var i = e;
|
|
1252
|
-
if (
|
|
1256
|
+
if (Tn) {
|
|
1253
1257
|
var o = i.v;
|
|
1254
|
-
return (!(i.f & 1024) && i.reactions !== null ||
|
|
1258
|
+
return (!(i.f & 1024) && i.reactions !== null || Hn(i)) && (o = it(i)), I.set(i, o), o;
|
|
1255
1259
|
}
|
|
1256
|
-
var s = (i.f & 512) == 0 && !U && H !== null && (
|
|
1257
|
-
|
|
1260
|
+
var s = (i.f & 512) == 0 && !U && H !== null && (wn || (H.f & 512) != 0), c = (i.f & x) === 0;
|
|
1261
|
+
Pn(i) && (s && (i.f |= 512), at(i)), s && !c && (st(i), Vn(i));
|
|
1258
1262
|
}
|
|
1259
|
-
if (
|
|
1263
|
+
if (N?.has(e)) return N.get(e);
|
|
1260
1264
|
if (e.f & 8388608) throw e.v;
|
|
1261
1265
|
return e.v;
|
|
1262
1266
|
}
|
|
1263
|
-
function
|
|
1264
|
-
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (
|
|
1267
|
+
function Vn(e) {
|
|
1268
|
+
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (st(t), Vn(t));
|
|
1265
1269
|
}
|
|
1266
|
-
function
|
|
1270
|
+
function Hn(e) {
|
|
1267
1271
|
if (e.v === n) return !0;
|
|
1268
1272
|
if (e.deps === null) return !1;
|
|
1269
|
-
for (let t of e.deps) if (
|
|
1273
|
+
for (let t of e.deps) if (I.has(t) || t.f & 2 && Hn(t)) return !0;
|
|
1270
1274
|
return !1;
|
|
1271
1275
|
}
|
|
1272
|
-
function
|
|
1276
|
+
function Un(e) {
|
|
1273
1277
|
var t = U;
|
|
1274
1278
|
try {
|
|
1275
1279
|
return U = !0, e();
|
|
@@ -1278,18 +1282,18 @@ function Gn(e) {
|
|
|
1278
1282
|
}
|
|
1279
1283
|
}
|
|
1280
1284
|
//#endregion
|
|
1281
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1282
|
-
var
|
|
1283
|
-
function
|
|
1285
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/events.js
|
|
1286
|
+
var Wn = Symbol("events"), Gn = /* @__PURE__ */ new Set(), Kn = /* @__PURE__ */ new Set(), qn = null, Jn = !1;
|
|
1287
|
+
function Yn(e) {
|
|
1284
1288
|
var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
|
|
1285
|
-
|
|
1286
|
-
|
|
1289
|
+
qn = e, Jn || (Jn = !0, setTimeout(() => {
|
|
1290
|
+
Jn = !1, qn = null;
|
|
1287
1291
|
}));
|
|
1288
|
-
var o = 0, s =
|
|
1292
|
+
var o = 0, s = qn === e && e[Wn];
|
|
1289
1293
|
if (s) {
|
|
1290
1294
|
var l = i.indexOf(s);
|
|
1291
1295
|
if (l !== -1 && (t === document || t === window)) {
|
|
1292
|
-
e[
|
|
1296
|
+
e[Wn] = t;
|
|
1293
1297
|
return;
|
|
1294
1298
|
}
|
|
1295
1299
|
var u = i.indexOf(t);
|
|
@@ -1308,7 +1312,7 @@ function Zn(e) {
|
|
|
1308
1312
|
try {
|
|
1309
1313
|
for (var p, m = []; a !== null && a !== t;) {
|
|
1310
1314
|
try {
|
|
1311
|
-
var h = a[
|
|
1315
|
+
var h = a[Wn]?.[r];
|
|
1312
1316
|
h != null && (!a.disabled || e.target === a) && h.call(a, e);
|
|
1313
1317
|
} catch (e) {
|
|
1314
1318
|
p ? m.push(e) : p = e;
|
|
@@ -1323,23 +1327,23 @@ function Zn(e) {
|
|
|
1323
1327
|
throw p;
|
|
1324
1328
|
}
|
|
1325
1329
|
} finally {
|
|
1326
|
-
e[
|
|
1330
|
+
e[Wn] = t, delete e.currentTarget, W(d), K(f);
|
|
1327
1331
|
}
|
|
1328
1332
|
}
|
|
1329
1333
|
}
|
|
1330
1334
|
//#endregion
|
|
1331
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1332
|
-
var
|
|
1333
|
-
function
|
|
1334
|
-
return
|
|
1335
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/reconciler.js
|
|
1336
|
+
var Xn = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1337
|
+
function Zn(e) {
|
|
1338
|
+
return Xn?.createHTML(e) ?? e;
|
|
1335
1339
|
}
|
|
1336
|
-
function
|
|
1337
|
-
var t =
|
|
1338
|
-
return t.innerHTML =
|
|
1340
|
+
function Qn(e) {
|
|
1341
|
+
var t = Yt("template");
|
|
1342
|
+
return t.innerHTML = Zn(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1339
1343
|
}
|
|
1340
1344
|
//#endregion
|
|
1341
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1342
|
-
function
|
|
1345
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/template.js
|
|
1346
|
+
function $n(e, t) {
|
|
1343
1347
|
var n = G;
|
|
1344
1348
|
n.nodes === null && (n.nodes = {
|
|
1345
1349
|
start: e,
|
|
@@ -1349,56 +1353,56 @@ function tr(e, t) {
|
|
|
1349
1353
|
});
|
|
1350
1354
|
}
|
|
1351
1355
|
/*#__NO_SIDE_EFFECTS__*/
|
|
1352
|
-
function
|
|
1356
|
+
function er(e, t) {
|
|
1353
1357
|
var n = (t & 1) != 0, r = (t & 2) != 0, i, a = !e.startsWith("<!>");
|
|
1354
1358
|
return () => {
|
|
1355
|
-
if (
|
|
1356
|
-
i === void 0 && (i =
|
|
1357
|
-
var t = r ||
|
|
1359
|
+
if (T) return $n(E, null), E;
|
|
1360
|
+
i === void 0 && (i = Qn(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ Ht(i)));
|
|
1361
|
+
var t = r || Lt ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1358
1362
|
if (n) {
|
|
1359
|
-
var o = /* @__PURE__ */
|
|
1360
|
-
|
|
1361
|
-
} else
|
|
1363
|
+
var o = /* @__PURE__ */ Ht(t), s = t.lastChild;
|
|
1364
|
+
$n(o, s);
|
|
1365
|
+
} else $n(t, t);
|
|
1362
1366
|
return t;
|
|
1363
1367
|
};
|
|
1364
1368
|
}
|
|
1365
|
-
function
|
|
1366
|
-
if (
|
|
1369
|
+
function tr(e, t) {
|
|
1370
|
+
if (T) {
|
|
1367
1371
|
var n = G;
|
|
1368
|
-
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end =
|
|
1372
|
+
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = E), _e();
|
|
1369
1373
|
return;
|
|
1370
1374
|
}
|
|
1371
1375
|
e !== null && e.before(t);
|
|
1372
1376
|
}
|
|
1373
1377
|
[.../* @__PURE__ */ "allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback".split(".")];
|
|
1374
|
-
var
|
|
1375
|
-
function
|
|
1376
|
-
return
|
|
1378
|
+
var nr = ["touchstart", "touchmove"];
|
|
1379
|
+
function rr(e) {
|
|
1380
|
+
return nr.includes(e);
|
|
1377
1381
|
}
|
|
1378
1382
|
//#endregion
|
|
1379
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1380
|
-
function
|
|
1381
|
-
let t = 0, n =
|
|
1383
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/reactivity/create-subscriber.js
|
|
1384
|
+
function ir(e) {
|
|
1385
|
+
let t = 0, n = Dt(0), r;
|
|
1382
1386
|
return () => {
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
--t, t === 0 && (r?.(), r = void 0,
|
|
1387
|
+
en() && (Z(n), ln(() => (t === 0 && (r = Un(() => e(() => Nt(n)))), t += 1, () => {
|
|
1388
|
+
He(() => {
|
|
1389
|
+
--t, t === 0 && (r?.(), r = void 0, Nt(n));
|
|
1386
1390
|
});
|
|
1387
1391
|
})));
|
|
1388
1392
|
};
|
|
1389
1393
|
}
|
|
1390
1394
|
//#endregion
|
|
1391
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1392
|
-
var
|
|
1393
|
-
function
|
|
1394
|
-
new
|
|
1395
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
1396
|
+
var ar = ne | S;
|
|
1397
|
+
function or(e, t, n, r) {
|
|
1398
|
+
new sr(e, t, n, r);
|
|
1395
1399
|
}
|
|
1396
|
-
var
|
|
1400
|
+
var sr = class {
|
|
1397
1401
|
parent;
|
|
1398
1402
|
is_pending = !1;
|
|
1399
1403
|
transform_error;
|
|
1400
1404
|
#e;
|
|
1401
|
-
#t =
|
|
1405
|
+
#t = T ? E : null;
|
|
1402
1406
|
#n;
|
|
1403
1407
|
#r;
|
|
1404
1408
|
#i;
|
|
@@ -1412,35 +1416,35 @@ var lr = class {
|
|
|
1412
1416
|
#f = /* @__PURE__ */ new Set();
|
|
1413
1417
|
#p = /* @__PURE__ */ new Set();
|
|
1414
1418
|
#m = null;
|
|
1415
|
-
#h =
|
|
1419
|
+
#h = ir(() => (this.#m = Dt(this.#l), () => {
|
|
1416
1420
|
this.#m = null;
|
|
1417
1421
|
}));
|
|
1418
1422
|
constructor(e, t, n, r) {
|
|
1419
1423
|
this.#e = e, this.#n = t, this.#r = (e) => {
|
|
1420
1424
|
var t = G;
|
|
1421
1425
|
t.b = this, t.f |= 128, n(e);
|
|
1422
|
-
}, this.parent = G.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i =
|
|
1423
|
-
if (
|
|
1426
|
+
}, this.parent = G.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = dn(() => {
|
|
1427
|
+
if (T) {
|
|
1424
1428
|
let e = this.#t;
|
|
1425
|
-
|
|
1429
|
+
_e();
|
|
1426
1430
|
let t = e.data === "[!";
|
|
1427
1431
|
if (e.data.startsWith("[?")) {
|
|
1428
1432
|
let t = JSON.parse(e.data.slice(2));
|
|
1429
1433
|
this.#_(t);
|
|
1430
1434
|
} else t ? this.#y() : this.#g();
|
|
1431
1435
|
} else this.#b();
|
|
1432
|
-
},
|
|
1436
|
+
}, ar), T && (this.#e = E);
|
|
1433
1437
|
}
|
|
1434
1438
|
#g() {
|
|
1435
1439
|
try {
|
|
1436
|
-
this.#a =
|
|
1440
|
+
this.#a = fn(() => this.#r(this.#e));
|
|
1437
1441
|
} catch (e) {
|
|
1438
1442
|
this.error(e);
|
|
1439
1443
|
}
|
|
1440
1444
|
}
|
|
1441
1445
|
#_(e) {
|
|
1442
1446
|
let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
|
|
1443
|
-
|
|
1447
|
+
He(r), t && (this.#s = fn(() => {
|
|
1444
1448
|
t(this.#e, () => e, () => n);
|
|
1445
1449
|
}));
|
|
1446
1450
|
}
|
|
@@ -1448,10 +1452,10 @@ var lr = class {
|
|
|
1448
1452
|
var t = !1, n = !1;
|
|
1449
1453
|
let r = () => {
|
|
1450
1454
|
if (t) {
|
|
1451
|
-
|
|
1455
|
+
he();
|
|
1452
1456
|
return;
|
|
1453
1457
|
}
|
|
1454
|
-
t = !0, n &&
|
|
1458
|
+
t = !0, n && Pe(), this.#s !== null && vn(this.#s, () => {
|
|
1455
1459
|
this.#s = null;
|
|
1456
1460
|
}), this.#S(() => {
|
|
1457
1461
|
this.#b();
|
|
@@ -1470,11 +1474,11 @@ var lr = class {
|
|
|
1470
1474
|
}
|
|
1471
1475
|
#y() {
|
|
1472
1476
|
let e = this.#n.pending;
|
|
1473
|
-
e && (this.is_pending = !0, this.#o =
|
|
1474
|
-
var e = this.#c = document.createDocumentFragment(), t =
|
|
1477
|
+
e && (this.is_pending = !0, this.#o = fn(() => e(this.#e)), He(() => {
|
|
1478
|
+
var e = this.#c = document.createDocumentFragment(), t = Vt(), n = !1;
|
|
1475
1479
|
if (e.append(t), this.#a = this.#S(() => {
|
|
1476
1480
|
try {
|
|
1477
|
-
return
|
|
1481
|
+
return fn(() => this.#r(t));
|
|
1478
1482
|
} catch (e) {
|
|
1479
1483
|
try {
|
|
1480
1484
|
this.error(e), n = !0;
|
|
@@ -1484,24 +1488,24 @@ var lr = class {
|
|
|
1484
1488
|
return null;
|
|
1485
1489
|
}
|
|
1486
1490
|
}), this.#a === null) {
|
|
1487
|
-
this.#c = null, n && this.#x(
|
|
1491
|
+
this.#c = null, n && this.#x(M);
|
|
1488
1492
|
return;
|
|
1489
1493
|
}
|
|
1490
|
-
this.#u === 0 && (this.#e.before(e), this.#c = null,
|
|
1494
|
+
this.#u === 0 && (this.#e.before(e), this.#c = null, vn(this.#o, () => {
|
|
1491
1495
|
this.#o = null;
|
|
1492
|
-
}), this.#x(
|
|
1496
|
+
}), this.#x(M));
|
|
1493
1497
|
}));
|
|
1494
1498
|
}
|
|
1495
1499
|
#b() {
|
|
1496
1500
|
try {
|
|
1497
|
-
if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a =
|
|
1501
|
+
if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = fn(() => {
|
|
1498
1502
|
this.#r(this.#e);
|
|
1499
1503
|
}), this.#u > 0) {
|
|
1500
1504
|
var e = this.#c = document.createDocumentFragment();
|
|
1501
|
-
|
|
1505
|
+
Sn(this.#a, e);
|
|
1502
1506
|
let t = this.#n.pending;
|
|
1503
|
-
this.#o =
|
|
1504
|
-
} else this.#x(
|
|
1507
|
+
this.#o = fn(() => t(this.#e));
|
|
1508
|
+
} else this.#x(M);
|
|
1505
1509
|
} catch (e) {
|
|
1506
1510
|
this.error(e);
|
|
1507
1511
|
}
|
|
@@ -1519,12 +1523,12 @@ var lr = class {
|
|
|
1519
1523
|
return !!this.#n.pending;
|
|
1520
1524
|
}
|
|
1521
1525
|
#S(e) {
|
|
1522
|
-
var t = G, n = H, r =
|
|
1523
|
-
K(this.#i), W(this.#i),
|
|
1526
|
+
var t = G, n = H, r = A;
|
|
1527
|
+
K(this.#i), W(this.#i), Fe(this.#i.ctx);
|
|
1524
1528
|
try {
|
|
1525
|
-
return
|
|
1529
|
+
return _t.ensure(), e();
|
|
1526
1530
|
} finally {
|
|
1527
|
-
K(t), W(n),
|
|
1531
|
+
K(t), W(n), Fe(r);
|
|
1528
1532
|
}
|
|
1529
1533
|
}
|
|
1530
1534
|
#C(e, t) {
|
|
@@ -1532,13 +1536,13 @@ var lr = class {
|
|
|
1532
1536
|
this.parent && this.parent.#C(e, t);
|
|
1533
1537
|
return;
|
|
1534
1538
|
}
|
|
1535
|
-
this.#u += e, this.#u === 0 && (this.#x(t), this.#o &&
|
|
1539
|
+
this.#u += e, this.#u === 0 && (this.#x(t), this.#o && vn(this.#o, () => {
|
|
1536
1540
|
this.#o = null;
|
|
1537
1541
|
}), this.#c &&= (this.#e.before(this.#c), null));
|
|
1538
1542
|
}
|
|
1539
1543
|
update_pending_count(e, t) {
|
|
1540
|
-
this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0,
|
|
1541
|
-
this.#d = !1, this.#m &&
|
|
1544
|
+
this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, He(() => {
|
|
1545
|
+
this.#d = !1, this.#m && jt(this.#m, this.#l);
|
|
1542
1546
|
}));
|
|
1543
1547
|
}
|
|
1544
1548
|
get_effect_pending() {
|
|
@@ -1546,17 +1550,17 @@ var lr = class {
|
|
|
1546
1550
|
}
|
|
1547
1551
|
error(e) {
|
|
1548
1552
|
if (!this.#n.onerror && !this.#n.failed) throw e;
|
|
1549
|
-
|
|
1553
|
+
M?.is_fork ? (this.#a && M.skip_effect(this.#a), this.#o && M.skip_effect(this.#o), this.#s && M.skip_effect(this.#s), M.oncommit(() => {
|
|
1550
1554
|
this.#w(e);
|
|
1551
1555
|
})) : this.#w(e);
|
|
1552
1556
|
}
|
|
1553
1557
|
#w(e) {
|
|
1554
|
-
this.#a &&= (V(this.#a), null), this.#o &&= (V(this.#o), null), this.#s &&= (V(this.#s), null),
|
|
1558
|
+
this.#a &&= (V(this.#a), null), this.#o &&= (V(this.#o), null), this.#s &&= (V(this.#s), null), T && (D(this.#t), ye(), D(be()));
|
|
1555
1559
|
let t = this.#n.failed, n = (e) => {
|
|
1556
1560
|
let { reset: n, invoke_onerror: r } = this.#v(e);
|
|
1557
1561
|
r(), t && (this.#s = this.#S(() => {
|
|
1558
1562
|
try {
|
|
1559
|
-
return
|
|
1563
|
+
return fn(() => {
|
|
1560
1564
|
var r = G;
|
|
1561
1565
|
r.b = this, r.f |= 128, t(this.#e, () => e, () => n);
|
|
1562
1566
|
});
|
|
@@ -1565,7 +1569,7 @@ var lr = class {
|
|
|
1565
1569
|
}
|
|
1566
1570
|
}));
|
|
1567
1571
|
};
|
|
1568
|
-
|
|
1572
|
+
He(() => {
|
|
1569
1573
|
var t;
|
|
1570
1574
|
try {
|
|
1571
1575
|
t = this.transform_error(e);
|
|
@@ -1577,76 +1581,76 @@ var lr = class {
|
|
|
1577
1581
|
});
|
|
1578
1582
|
}
|
|
1579
1583
|
};
|
|
1580
|
-
function
|
|
1584
|
+
function cr(e, t) {
|
|
1581
1585
|
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1582
|
-
n !== (e[
|
|
1586
|
+
n !== (e[de] ??= e.nodeValue) && (e[de] = n, e.nodeValue = `${n}`);
|
|
1583
1587
|
}
|
|
1584
|
-
function
|
|
1585
|
-
return
|
|
1588
|
+
function lr(e, t) {
|
|
1589
|
+
return fr(e, t);
|
|
1586
1590
|
}
|
|
1587
|
-
function
|
|
1588
|
-
|
|
1589
|
-
let r = n.target, i =
|
|
1591
|
+
function ur(e, n) {
|
|
1592
|
+
Bt(), n.intro = n.intro ?? !1;
|
|
1593
|
+
let r = n.target, i = T, a = E;
|
|
1590
1594
|
try {
|
|
1591
|
-
for (var o = /* @__PURE__ */
|
|
1595
|
+
for (var o = /* @__PURE__ */ Ht(r); o && (o.nodeType !== 8 || o.data !== "[");) o = /* @__PURE__ */ Ut(o);
|
|
1592
1596
|
if (!o) throw t;
|
|
1593
|
-
|
|
1594
|
-
let i =
|
|
1597
|
+
ge(!0), D(o);
|
|
1598
|
+
let i = fr(e, {
|
|
1595
1599
|
...n,
|
|
1596
1600
|
anchor: o
|
|
1597
1601
|
});
|
|
1598
|
-
return
|
|
1602
|
+
return ge(!1), i;
|
|
1599
1603
|
} catch (i) {
|
|
1600
1604
|
if (i instanceof Error && i.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw i;
|
|
1601
|
-
return i !== t && console.warn("Failed to hydrate: ", i), n.recover === !1 &&
|
|
1605
|
+
return i !== t && console.warn("Failed to hydrate: ", i), n.recover === !1 && ke(), Bt(), qt(r), ge(!1), lr(e, n);
|
|
1602
1606
|
} finally {
|
|
1603
|
-
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
var
|
|
1607
|
-
function
|
|
1608
|
-
|
|
1609
|
-
var u = void 0, d =
|
|
1610
|
-
var c = r ?? n.appendChild(
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
var r =
|
|
1614
|
-
if (s && (r.c = s), a && (i.$$events = a),
|
|
1615
|
-
|
|
1607
|
+
ge(i), D(a);
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
var dr = /* @__PURE__ */ new Map();
|
|
1611
|
+
function fr(e, { target: n, anchor: r, props: i = {}, events: a, context: s, intro: c = !0, transformError: l }) {
|
|
1612
|
+
Bt();
|
|
1613
|
+
var u = void 0, d = on(() => {
|
|
1614
|
+
var c = r ?? n.appendChild(Vt());
|
|
1615
|
+
or(c, { pending: () => {} }, (n) => {
|
|
1616
|
+
Ie({});
|
|
1617
|
+
var r = A;
|
|
1618
|
+
if (s && (r.c = s), a && (i.$$events = a), T && $n(n, null), u = e(n, i) || Re(), T && (G.nodes.end = E, E === null || E.nodeType !== 8 || E.data !== "]")) throw me(), t;
|
|
1619
|
+
Le();
|
|
1616
1620
|
}, l);
|
|
1617
1621
|
var d = /* @__PURE__ */ new Set(), f = (e) => {
|
|
1618
1622
|
for (var t = 0; t < e.length; t++) {
|
|
1619
1623
|
var r = e[t];
|
|
1620
1624
|
if (!d.has(r)) {
|
|
1621
1625
|
d.add(r);
|
|
1622
|
-
var i =
|
|
1626
|
+
var i = rr(r);
|
|
1623
1627
|
for (let e of [n, document]) {
|
|
1624
|
-
var a =
|
|
1625
|
-
a === void 0 && (a = /* @__PURE__ */ new Map(),
|
|
1628
|
+
var a = dr.get(e);
|
|
1629
|
+
a === void 0 && (a = /* @__PURE__ */ new Map(), dr.set(e, a));
|
|
1626
1630
|
var o = a.get(r);
|
|
1627
|
-
o === void 0 ? (e.addEventListener(r,
|
|
1631
|
+
o === void 0 ? (e.addEventListener(r, Yn, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
|
|
1628
1632
|
}
|
|
1629
1633
|
}
|
|
1630
1634
|
}
|
|
1631
1635
|
};
|
|
1632
|
-
return f(o(
|
|
1636
|
+
return f(o(Gn)), Kn.add(f), () => {
|
|
1633
1637
|
for (var e of d) for (let r of [n, document]) {
|
|
1634
|
-
var t =
|
|
1635
|
-
--i == 0 ? (r.removeEventListener(e,
|
|
1638
|
+
var t = dr.get(r), i = t.get(e);
|
|
1639
|
+
--i == 0 ? (r.removeEventListener(e, Yn), t.delete(e), t.size === 0 && dr.delete(r)) : t.set(e, i);
|
|
1636
1640
|
}
|
|
1637
|
-
|
|
1641
|
+
Kn.delete(f), c !== r && c.parentNode?.removeChild(c);
|
|
1638
1642
|
};
|
|
1639
1643
|
});
|
|
1640
|
-
return
|
|
1644
|
+
return pr.set(u, d), u;
|
|
1641
1645
|
}
|
|
1642
|
-
var
|
|
1643
|
-
function
|
|
1644
|
-
let n =
|
|
1645
|
-
return n ? (
|
|
1646
|
+
var pr = /* @__PURE__ */ new WeakMap();
|
|
1647
|
+
function mr(e, t) {
|
|
1648
|
+
let n = pr.get(e);
|
|
1649
|
+
return n ? (pr.delete(e), n(t)) : Promise.resolve();
|
|
1646
1650
|
}
|
|
1647
1651
|
//#endregion
|
|
1648
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1649
|
-
var
|
|
1652
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/branches.js
|
|
1653
|
+
var hr = class {
|
|
1650
1654
|
anchor;
|
|
1651
1655
|
#e = /* @__PURE__ */ new Map();
|
|
1652
1656
|
#t = /* @__PURE__ */ new Map();
|
|
@@ -1659,10 +1663,10 @@ var _r = class {
|
|
|
1659
1663
|
#a = (e) => {
|
|
1660
1664
|
if (this.#e.has(e)) {
|
|
1661
1665
|
var t = this.#e.get(e), n = this.#t.get(t);
|
|
1662
|
-
if (n)
|
|
1666
|
+
if (n) bn(n), this.#r.delete(t);
|
|
1663
1667
|
else {
|
|
1664
1668
|
var r = this.#n.get(t);
|
|
1665
|
-
r && (
|
|
1669
|
+
r && (bn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
|
|
1666
1670
|
}
|
|
1667
1671
|
for (let [t, n] of this.#e) {
|
|
1668
1672
|
if (this.#e.delete(t), t === e) break;
|
|
@@ -1674,14 +1678,14 @@ var _r = class {
|
|
|
1674
1678
|
let i = () => {
|
|
1675
1679
|
if (Array.from(this.#e.values()).includes(e)) {
|
|
1676
1680
|
var t = document.createDocumentFragment();
|
|
1677
|
-
|
|
1681
|
+
Sn(r, t), t.append(Vt()), this.#n.set(e, {
|
|
1678
1682
|
effect: r,
|
|
1679
1683
|
fragment: t
|
|
1680
1684
|
});
|
|
1681
1685
|
} else V(r);
|
|
1682
1686
|
this.#r.delete(e), this.#t.delete(e);
|
|
1683
1687
|
};
|
|
1684
|
-
this.#i || !n ? (this.#r.add(e),
|
|
1688
|
+
this.#i || !n ? (this.#r.add(e), vn(r, i, !1)) : i();
|
|
1685
1689
|
}
|
|
1686
1690
|
}
|
|
1687
1691
|
};
|
|
@@ -1691,64 +1695,45 @@ var _r = class {
|
|
|
1691
1695
|
for (let [e, n] of this.#n) t.includes(e) || (V(n.effect), this.#n.delete(e));
|
|
1692
1696
|
};
|
|
1693
1697
|
ensure(e, t) {
|
|
1694
|
-
var n =
|
|
1698
|
+
var n = M, r = Jt();
|
|
1695
1699
|
if (t && !this.#t.has(e) && !this.#n.has(e)) if (r) {
|
|
1696
|
-
var i = document.createDocumentFragment(), a =
|
|
1700
|
+
var i = document.createDocumentFragment(), a = Vt();
|
|
1697
1701
|
i.append(a), this.#n.set(e, {
|
|
1698
|
-
effect:
|
|
1702
|
+
effect: fn(() => t(a)),
|
|
1699
1703
|
fragment: i
|
|
1700
1704
|
});
|
|
1701
|
-
} else this.#t.set(e,
|
|
1705
|
+
} else this.#t.set(e, fn(() => t(this.anchor)));
|
|
1702
1706
|
if (this.#e.set(n, e), r) {
|
|
1703
1707
|
for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
|
|
1704
1708
|
for (let [t, r] of this.#n) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
|
|
1705
1709
|
n.oncommit(this.#a), n.ondiscard(this.#o);
|
|
1706
|
-
} else
|
|
1710
|
+
} else T && (this.anchor = E), this.#a(n);
|
|
1707
1711
|
}
|
|
1708
1712
|
};
|
|
1709
|
-
function
|
|
1710
|
-
|
|
1711
|
-
let t =
|
|
1713
|
+
function gr(e) {
|
|
1714
|
+
A === null && Ce("onMount"), nn(() => {
|
|
1715
|
+
let t = Un(e);
|
|
1712
1716
|
if (typeof t == "function") return t;
|
|
1713
1717
|
});
|
|
1714
1718
|
}
|
|
1715
|
-
function yr(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
1716
|
-
return new CustomEvent(e, {
|
|
1717
|
-
detail: t,
|
|
1718
|
-
bubbles: n,
|
|
1719
|
-
cancelable: r
|
|
1720
|
-
});
|
|
1721
|
-
}
|
|
1722
|
-
function br() {
|
|
1723
|
-
let e = M;
|
|
1724
|
-
return e === null && Se("createEventDispatcher"), (t, n, i) => {
|
|
1725
|
-
let a = e.s.$$events?.[t];
|
|
1726
|
-
if (a) {
|
|
1727
|
-
let o = r(a) ? a.slice() : [a], s = yr(t, n, i);
|
|
1728
|
-
for (let t of o) t.call(e.x, s);
|
|
1729
|
-
return !s.defaultPrevented;
|
|
1730
|
-
}
|
|
1731
|
-
return !0;
|
|
1732
|
-
};
|
|
1733
|
-
}
|
|
1734
1719
|
//#endregion
|
|
1735
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1736
|
-
function
|
|
1720
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/blocks/if.js
|
|
1721
|
+
function _r(e, t, n = !1) {
|
|
1737
1722
|
var r;
|
|
1738
|
-
|
|
1739
|
-
var i = new
|
|
1723
|
+
T && (r = E, _e());
|
|
1724
|
+
var i = new hr(e), a = n ? ne : 0;
|
|
1740
1725
|
function o(e, t) {
|
|
1741
|
-
if (
|
|
1742
|
-
var n =
|
|
1726
|
+
if (T) {
|
|
1727
|
+
var n = O(r);
|
|
1743
1728
|
if (e !== parseInt(n.substring(1))) {
|
|
1744
|
-
var a =
|
|
1745
|
-
|
|
1729
|
+
var a = be();
|
|
1730
|
+
D(a), i.anchor = a, ge(!1), i.ensure(e, t), ge(!0);
|
|
1746
1731
|
return;
|
|
1747
1732
|
}
|
|
1748
1733
|
}
|
|
1749
1734
|
i.ensure(e, t);
|
|
1750
1735
|
}
|
|
1751
|
-
|
|
1736
|
+
dn(() => {
|
|
1752
1737
|
var e = !1;
|
|
1753
1738
|
t((t, n = 0) => {
|
|
1754
1739
|
e = !0, o(n, t);
|
|
@@ -1756,35 +1741,35 @@ function xr(e, t, n = !1) {
|
|
|
1756
1741
|
}, a);
|
|
1757
1742
|
}
|
|
1758
1743
|
//#endregion
|
|
1759
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1760
|
-
function
|
|
1761
|
-
|
|
1744
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/css.js
|
|
1745
|
+
function vr(e, t) {
|
|
1746
|
+
sn(() => {
|
|
1762
1747
|
e = G?.parent?.nodes?.start ?? e;
|
|
1763
1748
|
var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
|
|
1764
1749
|
if (!r.querySelector("#" + t.hash)) {
|
|
1765
|
-
let e =
|
|
1750
|
+
let e = Yt("style");
|
|
1766
1751
|
e.id = t.hash, e.textContent = t.code, r.appendChild(e);
|
|
1767
1752
|
}
|
|
1768
1753
|
});
|
|
1769
1754
|
}
|
|
1770
1755
|
//#endregion
|
|
1771
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1772
|
-
function
|
|
1773
|
-
return e === t || e?.[
|
|
1756
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
|
|
1757
|
+
function yr(e, t) {
|
|
1758
|
+
return e === t || e?.[ae] === t;
|
|
1774
1759
|
}
|
|
1775
|
-
function
|
|
1776
|
-
var i =
|
|
1777
|
-
return
|
|
1760
|
+
function br(e = Re(), t, n, r) {
|
|
1761
|
+
var i = A.r, a = G;
|
|
1762
|
+
return sn(() => {
|
|
1778
1763
|
var o, s;
|
|
1779
|
-
return
|
|
1780
|
-
o = s, s = r?.() || [],
|
|
1781
|
-
|
|
1764
|
+
return ln(() => {
|
|
1765
|
+
o = s, s = r?.() || [], Un(() => {
|
|
1766
|
+
yr(n(...s), e) || (t(e, ...s), o && yr(n(...o), e) && t(null, ...o));
|
|
1782
1767
|
});
|
|
1783
1768
|
}), () => {
|
|
1784
1769
|
let r = a;
|
|
1785
1770
|
for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
|
|
1786
1771
|
let o = () => {
|
|
1787
|
-
s &&
|
|
1772
|
+
s && yr(n(...s), e) && t(null, ...s);
|
|
1788
1773
|
}, c = r.teardown;
|
|
1789
1774
|
r.teardown = () => {
|
|
1790
1775
|
o(), c?.();
|
|
@@ -1793,16 +1778,27 @@ function wr(e = Le(), t, n, r) {
|
|
|
1793
1778
|
}), e;
|
|
1794
1779
|
}
|
|
1795
1780
|
//#endregion
|
|
1796
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1781
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/store.js
|
|
1782
|
+
var xr = !1;
|
|
1783
|
+
function Sr(e) {
|
|
1784
|
+
var t = xr;
|
|
1785
|
+
try {
|
|
1786
|
+
return xr = !1, [e(), xr];
|
|
1787
|
+
} finally {
|
|
1788
|
+
xr = t;
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
//#endregion
|
|
1792
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/internal/client/reactivity/props.js
|
|
1797
1793
|
function Q(e, t, n, r) {
|
|
1798
|
-
var i = !0, a = (n & 8) != 0, o = (n & 16) != 0, s = r, c = !0, u = void 0, d = () => o && i ? (u ??= /* @__PURE__ */
|
|
1794
|
+
var i = !0, a = (n & 8) != 0, o = (n & 16) != 0, s = r, c = !0, u = void 0, d = () => o && i ? (u ??= /* @__PURE__ */ Qe(r), Z(u)) : (c && (c = !1, s = o ? Un(r) : r), s);
|
|
1799
1795
|
let f;
|
|
1800
1796
|
if (a) {
|
|
1801
|
-
var p =
|
|
1797
|
+
var p = ae in e || se in e;
|
|
1802
1798
|
f = l(e, t)?.set ?? (p && t in e ? (n) => e[t] = n : void 0);
|
|
1803
1799
|
}
|
|
1804
1800
|
var m, h = !1;
|
|
1805
|
-
a ? [m, h] =
|
|
1801
|
+
a ? [m, h] = Sr(() => e[t]) : m = e[t], m === void 0 && r !== void 0 && (m = d(), f && (i && Ae(t), f(m)));
|
|
1806
1802
|
var g = i ? () => {
|
|
1807
1803
|
var n = e[t];
|
|
1808
1804
|
return n === void 0 ? d() : (c = !0, n);
|
|
@@ -1817,28 +1813,28 @@ function Q(e, t, n, r) {
|
|
|
1817
1813
|
return arguments.length > 0 ? ((!i || !t || _ || h) && f(t ? g() : e), e) : g();
|
|
1818
1814
|
});
|
|
1819
1815
|
}
|
|
1820
|
-
var v = !1, y = (n & 1 ?
|
|
1816
|
+
var v = !1, y = (n & 1 ? Qe : nt)(() => (v = !1, g()));
|
|
1821
1817
|
a && Z(y);
|
|
1822
1818
|
var b = G;
|
|
1823
1819
|
return (function(e, t) {
|
|
1824
1820
|
if (arguments.length > 0) {
|
|
1825
|
-
let n = t ? Z(y) : i && a ?
|
|
1821
|
+
let n = t ? Z(y) : i && a ? Ft(e) : e;
|
|
1826
1822
|
return R(y, n), v = !0, s !== void 0 && (s = n), e;
|
|
1827
1823
|
}
|
|
1828
|
-
return
|
|
1824
|
+
return Tn && v || b.f & 16384 ? y.v : Z(y);
|
|
1829
1825
|
});
|
|
1830
1826
|
}
|
|
1831
1827
|
//#endregion
|
|
1832
|
-
//#region ../../node_modules/.bun/svelte@5.57.
|
|
1833
|
-
function
|
|
1834
|
-
return new
|
|
1828
|
+
//#region ../../node_modules/.bun/svelte@5.57.1/node_modules/svelte/src/legacy/legacy-client.js
|
|
1829
|
+
function Cr(e) {
|
|
1830
|
+
return new wr(e);
|
|
1835
1831
|
}
|
|
1836
|
-
var
|
|
1832
|
+
var wr = class {
|
|
1837
1833
|
#e;
|
|
1838
1834
|
#t;
|
|
1839
1835
|
constructor(e) {
|
|
1840
1836
|
var t = /* @__PURE__ */ new Map(), n = (e, n) => {
|
|
1841
|
-
var r = /* @__PURE__ */
|
|
1837
|
+
var r = /* @__PURE__ */ Ot(n, !1, !1);
|
|
1842
1838
|
return t.set(e, r), r;
|
|
1843
1839
|
};
|
|
1844
1840
|
let r = new Proxy({
|
|
@@ -1849,13 +1845,13 @@ var Er = class {
|
|
|
1849
1845
|
return Z(t.get(r) ?? n(r, Reflect.get(e, r)));
|
|
1850
1846
|
},
|
|
1851
1847
|
has(e, r) {
|
|
1852
|
-
return r ===
|
|
1848
|
+
return r === se ? !0 : (Z(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
|
|
1853
1849
|
},
|
|
1854
1850
|
set(e, r, i) {
|
|
1855
1851
|
return R(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
|
|
1856
1852
|
}
|
|
1857
1853
|
});
|
|
1858
|
-
this.#t = (e.hydrate ?
|
|
1854
|
+
this.#t = (e.hydrate ? ur : lr)(e.component, {
|
|
1859
1855
|
target: e.target,
|
|
1860
1856
|
anchor: e.anchor,
|
|
1861
1857
|
props: r,
|
|
@@ -1863,7 +1859,7 @@ var Er = class {
|
|
|
1863
1859
|
intro: e.intro ?? !1,
|
|
1864
1860
|
recover: e.recover,
|
|
1865
1861
|
transformError: e.transformError
|
|
1866
|
-
}), (!e?.props?.$$host || e.sync === !1) &&
|
|
1862
|
+
}), (!e?.props?.$$host || e.sync === !1) && P(), this.#e = r.$$events;
|
|
1867
1863
|
for (let e of Object.keys(this.#t)) e === "$set" || e === "$destroy" || e === "$on" || c(this, e, {
|
|
1868
1864
|
get() {
|
|
1869
1865
|
return this.#t[e];
|
|
@@ -1876,7 +1872,7 @@ var Er = class {
|
|
|
1876
1872
|
this.#t.$set = (e) => {
|
|
1877
1873
|
Object.assign(r, e);
|
|
1878
1874
|
}, this.#t.$destroy = () => {
|
|
1879
|
-
|
|
1875
|
+
mr(this.#t);
|
|
1880
1876
|
};
|
|
1881
1877
|
}
|
|
1882
1878
|
$set(e) {
|
|
@@ -1892,8 +1888,8 @@ var Er = class {
|
|
|
1892
1888
|
$destroy() {
|
|
1893
1889
|
this.#t.$destroy();
|
|
1894
1890
|
}
|
|
1895
|
-
},
|
|
1896
|
-
typeof HTMLElement == "function" && (
|
|
1891
|
+
}, Tr;
|
|
1892
|
+
typeof HTMLElement == "function" && (Tr = class extends HTMLElement {
|
|
1897
1893
|
$$ctor;
|
|
1898
1894
|
$$s;
|
|
1899
1895
|
$$c;
|
|
@@ -1926,18 +1922,18 @@ typeof HTMLElement == "function" && (Dr = class extends HTMLElement {
|
|
|
1926
1922
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
1927
1923
|
function e(e) {
|
|
1928
1924
|
return (t) => {
|
|
1929
|
-
let n =
|
|
1930
|
-
e !== "default" && (n.name = e),
|
|
1925
|
+
let n = Yt("slot");
|
|
1926
|
+
e !== "default" && (n.name = e), tr(t, n);
|
|
1931
1927
|
};
|
|
1932
1928
|
}
|
|
1933
|
-
let t = {}, n =
|
|
1929
|
+
let t = {}, n = Dr(this);
|
|
1934
1930
|
for (let r of this.$$s) r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
|
|
1935
1931
|
for (let e of this.attributes) {
|
|
1936
1932
|
let t = this.$$g_p(e.name);
|
|
1937
|
-
t in this.$$d || (this.$$d[t] =
|
|
1933
|
+
t in this.$$d || (this.$$d[t] = Er(t, e.value, this.$$p_d, "toProp"));
|
|
1938
1934
|
}
|
|
1939
1935
|
for (let e in this.$$p_d) !(e in this.$$d) && this[e] !== void 0 && (this.$$d[e] = this[e], delete this[e]);
|
|
1940
|
-
this.$$c =
|
|
1936
|
+
this.$$c = Cr({
|
|
1941
1937
|
component: this.$$ctor,
|
|
1942
1938
|
target: this.$$shadowRoot || this,
|
|
1943
1939
|
props: {
|
|
@@ -1945,13 +1941,13 @@ typeof HTMLElement == "function" && (Dr = class extends HTMLElement {
|
|
|
1945
1941
|
$$slots: t,
|
|
1946
1942
|
$$host: this
|
|
1947
1943
|
}
|
|
1948
|
-
}), this.$$me =
|
|
1949
|
-
|
|
1944
|
+
}), this.$$me = an(() => {
|
|
1945
|
+
ln(() => {
|
|
1950
1946
|
this.$$r = !0;
|
|
1951
1947
|
for (let e of s(this.$$c)) {
|
|
1952
1948
|
if (!this.$$p_d[e]?.reflect) continue;
|
|
1953
1949
|
this.$$d[e] = this.$$c[e];
|
|
1954
|
-
let t =
|
|
1950
|
+
let t = Er(e, this.$$d[e], this.$$p_d, "toAttribute");
|
|
1955
1951
|
t == null ? this.removeAttribute(this.$$p_d[e].attribute || e) : this.setAttribute(this.$$p_d[e].attribute || e, t);
|
|
1956
1952
|
}
|
|
1957
1953
|
this.$$r = !1;
|
|
@@ -1965,7 +1961,7 @@ typeof HTMLElement == "function" && (Dr = class extends HTMLElement {
|
|
|
1965
1961
|
}
|
|
1966
1962
|
}
|
|
1967
1963
|
attributeChangedCallback(e, t, n) {
|
|
1968
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
1964
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Er(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
1969
1965
|
}
|
|
1970
1966
|
disconnectedCallback() {
|
|
1971
1967
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -1976,7 +1972,7 @@ typeof HTMLElement == "function" && (Dr = class extends HTMLElement {
|
|
|
1976
1972
|
return s(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
1977
1973
|
}
|
|
1978
1974
|
});
|
|
1979
|
-
function
|
|
1975
|
+
function Er(e, t, n, r) {
|
|
1980
1976
|
let i = n[e]?.type;
|
|
1981
1977
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
|
|
1982
1978
|
if (r === "toAttribute") switch (i) {
|
|
@@ -1994,14 +1990,14 @@ function Or(e, t, n, r) {
|
|
|
1994
1990
|
default: return t;
|
|
1995
1991
|
}
|
|
1996
1992
|
}
|
|
1997
|
-
function
|
|
1993
|
+
function Dr(e) {
|
|
1998
1994
|
let t = {};
|
|
1999
1995
|
return e.childNodes.forEach((e) => {
|
|
2000
1996
|
t[e.slot || "default"] = !0;
|
|
2001
1997
|
}), t;
|
|
2002
1998
|
}
|
|
2003
|
-
function
|
|
2004
|
-
let o = class extends
|
|
1999
|
+
function Or(e, t, n, r, i, a) {
|
|
2000
|
+
let o = class extends Tr {
|
|
2005
2001
|
constructor() {
|
|
2006
2002
|
super(e, n, i), this.$$p_d = t;
|
|
2007
2003
|
}
|
|
@@ -2015,7 +2011,7 @@ function Ar(e, t, n, r, i, a) {
|
|
|
2015
2011
|
return this.$$c && e in this.$$c ? this.$$c[e] : this.$$d[e];
|
|
2016
2012
|
},
|
|
2017
2013
|
set(n) {
|
|
2018
|
-
n =
|
|
2014
|
+
n = Er(e, n, t), this.$$d[e] = n;
|
|
2019
2015
|
var r = this.$$c;
|
|
2020
2016
|
r && (l(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
|
|
2021
2017
|
}
|
|
@@ -2028,13 +2024,13 @@ function Ar(e, t, n, r, i, a) {
|
|
|
2028
2024
|
}
|
|
2029
2025
|
//#endregion
|
|
2030
2026
|
//#region src/lib/element-loader.ts
|
|
2031
|
-
var
|
|
2032
|
-
function
|
|
2033
|
-
|
|
2027
|
+
var kr = null;
|
|
2028
|
+
function Ar(e) {
|
|
2029
|
+
kr = e ?? null;
|
|
2034
2030
|
}
|
|
2035
|
-
async function
|
|
2036
|
-
if (!e.cdnUrl &&
|
|
2037
|
-
let n = await
|
|
2031
|
+
async function jr(e, t = !1) {
|
|
2032
|
+
if (!e.cdnUrl && kr) {
|
|
2033
|
+
let n = await kr(e);
|
|
2038
2034
|
if (n != null) return t && console.log(`[element-loader] Resolved ${e.kind} module via injected resolver for ${e.packagePath}`), n;
|
|
2039
2035
|
}
|
|
2040
2036
|
let n = e.cdnUrl ? `${e.cdnUrl}/${e.packagePath}` : e.packagePath;
|
|
@@ -2043,14 +2039,14 @@ async function Nr(e, t = !1) {
|
|
|
2043
2039
|
n
|
|
2044
2040
|
);
|
|
2045
2041
|
}
|
|
2046
|
-
async function
|
|
2042
|
+
async function Mr(e, t, n, r = !1, i = !1) {
|
|
2047
2043
|
if (customElements.get(t)) {
|
|
2048
2044
|
r && console.log(`[element-loader] Element ${t} already registered`);
|
|
2049
2045
|
return;
|
|
2050
2046
|
}
|
|
2051
2047
|
r && console.log(`[element-loader] Loading element ${e} (cdnUrl: ${n || "local"})`);
|
|
2052
2048
|
try {
|
|
2053
|
-
let i = e.replace(/^@pie-element\//, "").replace(/\/(author|print|controller)$/, ""), a = e.endsWith("/author") ? "author" : e.endsWith("/print") ? "print" : "delivery", o = await
|
|
2049
|
+
let i = e.replace(/^@pie-element\//, "").replace(/\/(author|print|controller)$/, ""), a = e.endsWith("/author") ? "author" : e.endsWith("/print") ? "print" : "delivery", o = await jr({
|
|
2054
2050
|
packagePath: e,
|
|
2055
2051
|
packageName: `@pie-element/${i}`,
|
|
2056
2052
|
elementName: i,
|
|
@@ -2066,11 +2062,11 @@ async function Pr(e, t, n, r = !1, i = !1) {
|
|
|
2066
2062
|
r && console.log(`[element-loader] Optional element ${e} not available`);
|
|
2067
2063
|
}
|
|
2068
2064
|
}
|
|
2069
|
-
async function
|
|
2065
|
+
async function Nr(e, t, n = !1) {
|
|
2070
2066
|
let r = `${e}/controller`;
|
|
2071
2067
|
n && console.log(`[element-loader] Loading controller from ${r} (cdnUrl: ${t || "local"})`);
|
|
2072
2068
|
try {
|
|
2073
|
-
let i = await
|
|
2069
|
+
let i = await jr({
|
|
2074
2070
|
packagePath: r,
|
|
2075
2071
|
packageName: e,
|
|
2076
2072
|
elementName: e.replace(/^@pie-element\//, ""),
|
|
@@ -2084,10 +2080,10 @@ async function Fr(e, t, n = !1) {
|
|
|
2084
2080
|
throw console.error(`[element-loader] Failed to load controller ${e}:`, n), Error(`Failed to load controller ${e}: ${n.message}`);
|
|
2085
2081
|
}
|
|
2086
2082
|
}
|
|
2087
|
-
async function
|
|
2083
|
+
async function Pr(e, t, n = !1) {
|
|
2088
2084
|
let r = `${e}/runtime-support`;
|
|
2089
2085
|
n && console.log(`[element-loader] Loading runtime support ${r} (cdnUrl: ${t || "local"})`);
|
|
2090
|
-
let i = await
|
|
2086
|
+
let i = await jr({
|
|
2091
2087
|
packagePath: r,
|
|
2092
2088
|
packageName: e,
|
|
2093
2089
|
elementName: e.replace(/^@pie-element\//, ""),
|
|
@@ -2099,7 +2095,7 @@ async function Ir(e, t, n = !1) {
|
|
|
2099
2095
|
}
|
|
2100
2096
|
//#endregion
|
|
2101
2097
|
//#region src/lib/iife-bundle-loader.ts
|
|
2102
|
-
var
|
|
2098
|
+
var Fr = {
|
|
2103
2099
|
retryDelayMs: 3e3,
|
|
2104
2100
|
timeoutMs: 12e4
|
|
2105
2101
|
}, $ = class extends Error {
|
|
@@ -2107,30 +2103,30 @@ var Lr = {
|
|
|
2107
2103
|
super(t), this.name = "IifeBundleLoadError", this.code = e, this.metadata = n;
|
|
2108
2104
|
}
|
|
2109
2105
|
};
|
|
2110
|
-
function
|
|
2106
|
+
function Ir(e) {
|
|
2111
2107
|
return {
|
|
2112
|
-
retryDelayMs: typeof e?.retryDelayMs == "number" && e.retryDelayMs > 0 ? e.retryDelayMs :
|
|
2113
|
-
timeoutMs: typeof e?.timeoutMs == "number" && e.timeoutMs > 0 ? e.timeoutMs :
|
|
2108
|
+
retryDelayMs: typeof e?.retryDelayMs == "number" && e.retryDelayMs > 0 ? e.retryDelayMs : Fr.retryDelayMs,
|
|
2109
|
+
timeoutMs: typeof e?.timeoutMs == "number" && e.timeoutMs > 0 ? e.timeoutMs : Fr.timeoutMs
|
|
2114
2110
|
};
|
|
2115
2111
|
}
|
|
2116
|
-
function
|
|
2112
|
+
function Lr(e) {
|
|
2117
2113
|
return e instanceof $ ? e.code === "SCRIPT_LOAD_FAILED" || e.code === "BUILD_START_FAILED" || e.code === "BUILD_STATUS_FAILED" : !1;
|
|
2118
2114
|
}
|
|
2119
|
-
function
|
|
2115
|
+
function Rr(e) {
|
|
2120
2116
|
return e instanceof Error ? e.message : typeof e == "string" ? e : String(e);
|
|
2121
2117
|
}
|
|
2122
|
-
function
|
|
2118
|
+
function zr(e) {
|
|
2123
2119
|
return new Promise((t) => setTimeout(t, e));
|
|
2124
2120
|
}
|
|
2125
|
-
function
|
|
2121
|
+
function Br(e) {
|
|
2126
2122
|
if (e?.aborted) throw new $("LOAD_ABORTED", "IIFE bundle load aborted");
|
|
2127
2123
|
}
|
|
2128
|
-
async function
|
|
2124
|
+
async function Vr(e, t) {
|
|
2129
2125
|
if (!t) {
|
|
2130
|
-
await
|
|
2126
|
+
await zr(e);
|
|
2131
2127
|
return;
|
|
2132
2128
|
}
|
|
2133
|
-
t.aborted &&
|
|
2129
|
+
t.aborted && Br(t), await new Promise((n, r) => {
|
|
2134
2130
|
let i = setTimeout(() => {
|
|
2135
2131
|
t.removeEventListener("abort", a), n();
|
|
2136
2132
|
}, e), a = () => {
|
|
@@ -2139,48 +2135,48 @@ async function Ur(e, t) {
|
|
|
2139
2135
|
t.addEventListener("abort", a);
|
|
2140
2136
|
});
|
|
2141
2137
|
}
|
|
2142
|
-
var
|
|
2143
|
-
function
|
|
2144
|
-
|
|
2138
|
+
var Hr = /* @__PURE__ */ new Map(), Ur = {};
|
|
2139
|
+
function Wr(e) {
|
|
2140
|
+
Ur = e ?? {};
|
|
2145
2141
|
}
|
|
2146
|
-
function
|
|
2142
|
+
function Gr() {
|
|
2147
2143
|
let e = window.pie;
|
|
2148
2144
|
if (!e) throw new $("REGISTRY_INVALID", "window.pie not found after loading IIFE bundle");
|
|
2149
2145
|
let t = e.default || e;
|
|
2150
2146
|
if (!t || typeof t != "object") throw new $("REGISTRY_INVALID", "Invalid IIFE package registry shape");
|
|
2151
2147
|
return t;
|
|
2152
2148
|
}
|
|
2153
|
-
function
|
|
2154
|
-
let t =
|
|
2149
|
+
function Kr(e) {
|
|
2150
|
+
let t = Hr.get(e);
|
|
2155
2151
|
if (t) return t;
|
|
2156
2152
|
let n = new Promise((t, n) => {
|
|
2157
2153
|
let r = document.createElement("script");
|
|
2158
2154
|
r.src = e, r.defer = !0, r.dataset.pieBundle = "true", r.onload = () => {
|
|
2159
2155
|
try {
|
|
2160
|
-
t(
|
|
2156
|
+
t(Gr());
|
|
2161
2157
|
} catch (t) {
|
|
2162
|
-
|
|
2158
|
+
Hr.delete(e), n(t instanceof Error ? t : new $("REGISTRY_INVALID", String(t)));
|
|
2163
2159
|
}
|
|
2164
2160
|
}, r.onerror = () => {
|
|
2165
|
-
|
|
2161
|
+
Hr.delete(e), n(new $("SCRIPT_LOAD_FAILED", `Failed to load IIFE bundle: ${e}`, { url: e }));
|
|
2166
2162
|
}, document.head.appendChild(r);
|
|
2167
2163
|
});
|
|
2168
|
-
return
|
|
2164
|
+
return Hr.set(e, n), n;
|
|
2169
2165
|
}
|
|
2170
|
-
function
|
|
2166
|
+
function qr(e, t) {
|
|
2171
2167
|
return e ? t === "player" ? e.player || "" : t === "editor" ? e.editor || "" : e.clientPlayer || "" : "";
|
|
2172
2168
|
}
|
|
2173
|
-
function
|
|
2169
|
+
function Jr(e) {
|
|
2174
2170
|
return `${e.trim().replace(/\/+$/, "")}/`;
|
|
2175
2171
|
}
|
|
2176
|
-
function
|
|
2172
|
+
function Yr(e) {
|
|
2177
2173
|
return e === "editor" ? "editor.js" : e === "player" ? "player.js" : "client-player.js";
|
|
2178
2174
|
}
|
|
2179
|
-
function
|
|
2180
|
-
let a = encodeURI(`${t}@${n}`), o = `${
|
|
2175
|
+
function Xr({ bundleHost: e, packageName: t, version: n, bundleTarget: r, forceRebuild: i }) {
|
|
2176
|
+
let a = encodeURI(`${t}@${n}`), o = `${Jr(e)}${a}/${Yr(r)}`;
|
|
2181
2177
|
return i ? `${o}${o.includes("?") ? "&" : "?"}overwrite=true&rebuild=${Date.now()}` : o;
|
|
2182
2178
|
}
|
|
2183
|
-
function
|
|
2179
|
+
function Zr(e, t) {
|
|
2184
2180
|
let n = e[t];
|
|
2185
2181
|
if (!n) throw new $("PACKAGE_MISSING", `Package ${t} not found in loaded bundle. Available: ${Object.keys(e).join(", ")}`, {
|
|
2186
2182
|
packageName: t,
|
|
@@ -2188,7 +2184,7 @@ function $r(e, t) {
|
|
|
2188
2184
|
});
|
|
2189
2185
|
return n;
|
|
2190
2186
|
}
|
|
2191
|
-
var
|
|
2187
|
+
var Qr = {
|
|
2192
2188
|
async startBuild(e) {
|
|
2193
2189
|
let t = await fetch(e.endpoint, {
|
|
2194
2190
|
method: "POST",
|
|
@@ -2232,23 +2228,23 @@ var ei = {
|
|
|
2232
2228
|
await new Promise((e) => setTimeout(e, 500));
|
|
2233
2229
|
}
|
|
2234
2230
|
}
|
|
2235
|
-
},
|
|
2236
|
-
async function
|
|
2237
|
-
let t = e.bundleTarget || "client-player", n = e.endpoint || "/api/bundle", r =
|
|
2231
|
+
}, $r = { load: (e) => Kr(e) };
|
|
2232
|
+
async function ei(e) {
|
|
2233
|
+
let t = e.bundleTarget || "client-player", n = e.endpoint || "/api/bundle", r = Ir(e.iifeBundleRetry), i = e.adapters ?? Ur, a = i.buildClient ?? Qr, o = i.registryClient ?? $r, s = Date.now(), c = 0;
|
|
2238
2234
|
for (;;) {
|
|
2239
2235
|
c += 1;
|
|
2240
2236
|
try {
|
|
2241
|
-
if (
|
|
2237
|
+
if (Br(e.signal), e.bundleHost) {
|
|
2242
2238
|
e.onProgress?.({ stage: "script-load" });
|
|
2243
|
-
let n =
|
|
2239
|
+
let n = Xr({
|
|
2244
2240
|
bundleHost: e.bundleHost,
|
|
2245
2241
|
packageName: e.packageName,
|
|
2246
2242
|
version: e.version,
|
|
2247
2243
|
bundleTarget: t,
|
|
2248
2244
|
forceRebuild: !!e.forceRebuild
|
|
2249
2245
|
}), i = await o.load(n);
|
|
2250
|
-
|
|
2251
|
-
let a =
|
|
2246
|
+
Br(e.signal);
|
|
2247
|
+
let a = Zr(i, e.packageName), l = {
|
|
2252
2248
|
source: "hosted",
|
|
2253
2249
|
url: n
|
|
2254
2250
|
};
|
|
@@ -2277,11 +2273,11 @@ async function ni(e) {
|
|
|
2277
2273
|
endpoint: n,
|
|
2278
2274
|
onProgress: e.onProgress
|
|
2279
2275
|
});
|
|
2280
|
-
if (
|
|
2276
|
+
if (Br(e.signal), !l.success) throw new $("BUILD_RESULT_FAILED", l.errors?.join("\n") || "Local bundle build failed", {
|
|
2281
2277
|
packageName: e.packageName,
|
|
2282
2278
|
endpoint: n
|
|
2283
2279
|
});
|
|
2284
|
-
let u =
|
|
2280
|
+
let u = qr(l.bundles, t);
|
|
2285
2281
|
if (!u) throw new $("BUNDLE_URL_MISSING", "Bundle URL was not returned", {
|
|
2286
2282
|
packageName: e.packageName,
|
|
2287
2283
|
bundleTarget: t
|
|
@@ -2298,8 +2294,8 @@ async function ni(e) {
|
|
|
2298
2294
|
cached: l.cached,
|
|
2299
2295
|
url: u
|
|
2300
2296
|
}, p = await o.load(u);
|
|
2301
|
-
|
|
2302
|
-
let m =
|
|
2297
|
+
Br(e.signal);
|
|
2298
|
+
let m = Zr(p, e.packageName);
|
|
2303
2299
|
if (c > 1) {
|
|
2304
2300
|
let t = Date.now() - s;
|
|
2305
2301
|
console.info(`[iife-bundle-loader] retry recovered after ${c} attempts (${t}ms): ${e.packageName}@${e.version}`);
|
|
@@ -2321,10 +2317,10 @@ async function ni(e) {
|
|
|
2321
2317
|
attempt: c,
|
|
2322
2318
|
elapsedMs: Date.now() - s,
|
|
2323
2319
|
timeoutMs: r.timeoutMs,
|
|
2324
|
-
reason:
|
|
2320
|
+
reason: Rr(t)
|
|
2325
2321
|
}), t;
|
|
2326
|
-
if (!
|
|
2327
|
-
let i = Date.now() - s, a = r.timeoutMs - i, o =
|
|
2322
|
+
if (!Lr(t)) throw t;
|
|
2323
|
+
let i = Date.now() - s, a = r.timeoutMs - i, o = Rr(t);
|
|
2328
2324
|
if (a <= 0) throw e.onRetryStatus?.({
|
|
2329
2325
|
state: "timeout",
|
|
2330
2326
|
stage: t.code === "SCRIPT_LOAD_FAILED" ? "script-load" : "build-status",
|
|
@@ -2352,31 +2348,31 @@ async function ni(e) {
|
|
|
2352
2348
|
retryDelayMs: l,
|
|
2353
2349
|
timeoutMs: r.timeoutMs,
|
|
2354
2350
|
reason: o
|
|
2355
|
-
}), await
|
|
2351
|
+
}), await Vr(l, e.signal);
|
|
2356
2352
|
}
|
|
2357
2353
|
}
|
|
2358
2354
|
}
|
|
2359
2355
|
//#endregion
|
|
2360
2356
|
//#region src/lib/player-strategy.ts
|
|
2361
|
-
function
|
|
2357
|
+
function ti(e, t = "esm") {
|
|
2362
2358
|
return e === "esm" || e === "iife" || e === "preloaded" ? e : t;
|
|
2363
2359
|
}
|
|
2364
|
-
function
|
|
2360
|
+
function ni(e, t = "delivery") {
|
|
2365
2361
|
return e === "delivery" || e === "author" || e === "print" ? e : t;
|
|
2366
2362
|
}
|
|
2367
|
-
function
|
|
2368
|
-
let n =
|
|
2363
|
+
function ri(e, t = "delivery") {
|
|
2364
|
+
let n = ni(e.view ?? void 0, t);
|
|
2369
2365
|
return e.view ? n : e.mode === "author" ? "author" : e.mode === "print" ? "print" : t;
|
|
2370
2366
|
}
|
|
2371
2367
|
//#endregion
|
|
2372
2368
|
//#region src/lib/runtime-support.ts
|
|
2373
|
-
function
|
|
2369
|
+
function ii(e, t = "off") {
|
|
2374
2370
|
return e === "off" || e === "on" ? e : t;
|
|
2375
2371
|
}
|
|
2376
|
-
function
|
|
2372
|
+
function ai(e) {
|
|
2377
2373
|
return e === "on";
|
|
2378
2374
|
}
|
|
2379
|
-
function
|
|
2375
|
+
function oi(e, t, n) {
|
|
2380
2376
|
let r = e.supports?.[t];
|
|
2381
2377
|
if (!r) return !0;
|
|
2382
2378
|
let i = r[n];
|
|
@@ -2384,17 +2380,17 @@ function ci(e, t, n) {
|
|
|
2384
2380
|
}
|
|
2385
2381
|
//#endregion
|
|
2386
2382
|
//#region src/lib/unified-player-loader.ts
|
|
2387
|
-
var
|
|
2388
|
-
function
|
|
2383
|
+
var si = 3e4, ci = /* @__PURE__ */ new Map(), li = /* @__PURE__ */ new Map();
|
|
2384
|
+
function ui(e, t, n, r) {
|
|
2389
2385
|
if (n !== "delivery" || r?.status === "loaded") return;
|
|
2390
2386
|
let i = r?.message || `controller status=${r?.status || "missing"}`;
|
|
2391
2387
|
throw Error(`Controller contract violation for ${e.packageName} (${t}/${n}): ${i}. Delivery mode requires a loadable controller.`);
|
|
2392
2388
|
}
|
|
2393
|
-
var
|
|
2394
|
-
function
|
|
2395
|
-
return e === "iife" ?
|
|
2389
|
+
var di = (e, t) => t === "delivery" ? `pie-iife-${e}`.replace(/[^a-z0-9-]/g, "-") : t === "author" ? `${e}-configure` : `${e}-print`, fi = (e, t) => t === "delivery" ? `${e}-element` : t === "author" ? `${e}-configure` : `${e}-print`;
|
|
2390
|
+
function pi(e, t, n) {
|
|
2391
|
+
return e === "iife" ? di(n, t) : fi(n, t);
|
|
2396
2392
|
}
|
|
2397
|
-
function
|
|
2393
|
+
function mi(e, t, n) {
|
|
2398
2394
|
return {
|
|
2399
2395
|
status: "not-required",
|
|
2400
2396
|
source: "none",
|
|
@@ -2403,13 +2399,13 @@ function gi(e, t, n) {
|
|
|
2403
2399
|
view: n
|
|
2404
2400
|
};
|
|
2405
2401
|
}
|
|
2406
|
-
async function
|
|
2402
|
+
async function hi(e, t, n) {
|
|
2407
2403
|
if (n !== "delivery" && n !== "author") return {
|
|
2408
2404
|
controller: void 0,
|
|
2409
|
-
diagnostic:
|
|
2405
|
+
diagnostic: mi(e.packageName, t, n)
|
|
2410
2406
|
};
|
|
2411
2407
|
try {
|
|
2412
|
-
let r = await
|
|
2408
|
+
let r = await Nr(e.packageName, e.cdnUrl || "");
|
|
2413
2409
|
return {
|
|
2414
2410
|
controller: r,
|
|
2415
2411
|
diagnostic: {
|
|
@@ -2436,18 +2432,18 @@ async function _i(e, t, n) {
|
|
|
2436
2432
|
};
|
|
2437
2433
|
}
|
|
2438
2434
|
}
|
|
2439
|
-
function
|
|
2440
|
-
|
|
2435
|
+
function gi(e) {
|
|
2436
|
+
Ar(e);
|
|
2441
2437
|
}
|
|
2442
|
-
function
|
|
2438
|
+
function _i(e) {
|
|
2443
2439
|
return `${e.packageName}@${e.elementVersion || "latest"}`;
|
|
2444
2440
|
}
|
|
2445
|
-
function
|
|
2441
|
+
function vi(e) {
|
|
2446
2442
|
let t = String(e || "").toLowerCase();
|
|
2447
2443
|
return t.includes("cannot find module") || t.includes("no known conditions") || t.includes("failed to fetch dynamically imported module") || t.includes("404") || t.includes("/runtime-support");
|
|
2448
2444
|
}
|
|
2449
|
-
async function
|
|
2450
|
-
if (!
|
|
2445
|
+
async function yi(e, t, n) {
|
|
2446
|
+
if (!ai(ii(e.runtimeSupportCheck, "off"))) return {
|
|
2451
2447
|
runtimeSupport: void 0,
|
|
2452
2448
|
diagnostic: {
|
|
2453
2449
|
status: "skipped",
|
|
@@ -2456,7 +2452,7 @@ async function xi(e, t, n) {
|
|
|
2456
2452
|
view: n
|
|
2457
2453
|
}
|
|
2458
2454
|
};
|
|
2459
|
-
let r =
|
|
2455
|
+
let r = _i(e), i = ci.get(r);
|
|
2460
2456
|
if (i) return {
|
|
2461
2457
|
runtimeSupport: i,
|
|
2462
2458
|
diagnostic: {
|
|
@@ -2466,8 +2462,8 @@ async function xi(e, t, n) {
|
|
|
2466
2462
|
view: n
|
|
2467
2463
|
}
|
|
2468
2464
|
};
|
|
2469
|
-
let a =
|
|
2470
|
-
if (a && Date.now() - a <
|
|
2465
|
+
let a = li.get(r);
|
|
2466
|
+
if (a && Date.now() - a < si) return {
|
|
2471
2467
|
runtimeSupport: void 0,
|
|
2472
2468
|
diagnostic: {
|
|
2473
2469
|
status: "missing",
|
|
@@ -2478,8 +2474,8 @@ async function xi(e, t, n) {
|
|
|
2478
2474
|
}
|
|
2479
2475
|
};
|
|
2480
2476
|
try {
|
|
2481
|
-
let i = await
|
|
2482
|
-
return
|
|
2477
|
+
let i = await Pr(e.packageName, e.cdnUrl || "");
|
|
2478
|
+
return ci.set(r, i), li.delete(r), {
|
|
2483
2479
|
runtimeSupport: i,
|
|
2484
2480
|
diagnostic: {
|
|
2485
2481
|
status: "loaded",
|
|
@@ -2490,7 +2486,7 @@ async function xi(e, t, n) {
|
|
|
2490
2486
|
};
|
|
2491
2487
|
} catch (i) {
|
|
2492
2488
|
let a = i instanceof Error ? i.message : String(i);
|
|
2493
|
-
return
|
|
2489
|
+
return vi(i) ? (li.set(r, Date.now()), {
|
|
2494
2490
|
runtimeSupport: void 0,
|
|
2495
2491
|
diagnostic: {
|
|
2496
2492
|
status: "missing",
|
|
@@ -2511,14 +2507,14 @@ async function xi(e, t, n) {
|
|
|
2511
2507
|
};
|
|
2512
2508
|
}
|
|
2513
2509
|
}
|
|
2514
|
-
function
|
|
2515
|
-
return !r || e !== "esm" && e !== "iife" ||
|
|
2510
|
+
function bi(e, t, n, r) {
|
|
2511
|
+
return !r || e !== "esm" && e !== "iife" || oi(r, e, t) ? "" : ` Runtime support metadata indicates ${e}/${t} is unsupported for ${n}.`;
|
|
2516
2512
|
}
|
|
2517
|
-
async function
|
|
2518
|
-
let a =
|
|
2519
|
-
await
|
|
2520
|
-
let { controller: o, diagnostic: s } = await
|
|
2521
|
-
return
|
|
2513
|
+
async function xi(e, t, n, r, i) {
|
|
2514
|
+
let a = fi(e.elementName, t);
|
|
2515
|
+
await Mr(t === "delivery" ? e.packageName : t === "author" ? `${e.packageName}/author` : `${e.packageName}/print`, a, e.cdnUrl || ""), await customElements.whenDefined(a);
|
|
2516
|
+
let { controller: o, diagnostic: s } = await hi(e, "esm", t);
|
|
2517
|
+
return ui(e, "esm", t, s), {
|
|
2522
2518
|
strategy: "esm",
|
|
2523
2519
|
requestedStrategy: n,
|
|
2524
2520
|
view: t,
|
|
@@ -2529,19 +2525,19 @@ async function Ci(e, t, n, r, i) {
|
|
|
2529
2525
|
runtimeSupportDiagnostic: i
|
|
2530
2526
|
};
|
|
2531
2527
|
}
|
|
2532
|
-
async function
|
|
2533
|
-
let a = t === "author" ? "editor" : t === "print" ? "player" : "client-player", { pkg: o, meta: s } = await
|
|
2528
|
+
async function Si(e, t, n, r, i) {
|
|
2529
|
+
let a = t === "author" ? "editor" : t === "print" ? "player" : "client-player", { pkg: o, meta: s } = await ei({
|
|
2534
2530
|
packageName: e.packageName,
|
|
2535
2531
|
version: e.elementVersion,
|
|
2536
2532
|
endpoint: e.iifeBundleEndpoint,
|
|
2537
2533
|
bundleHost: e.iifeBundleHost,
|
|
2538
|
-
iifeBundleRetry: e.iifeBundleRetry ??
|
|
2534
|
+
iifeBundleRetry: e.iifeBundleRetry ?? Fr,
|
|
2539
2535
|
onRetryStatus: e.onIifeBundleRetryStatus,
|
|
2540
2536
|
signal: e.signal,
|
|
2541
2537
|
bundleTarget: a,
|
|
2542
2538
|
forceRebuild: (e.rebuildVersion || 0) > 0,
|
|
2543
2539
|
clearCache: (e.rebuildVersion || 0) > 0
|
|
2544
|
-
}), c =
|
|
2540
|
+
}), c = di(e.elementName, t), l = t === "delivery" ? o.Element : t === "author" ? o.Configure : o.Print;
|
|
2545
2541
|
if (!l) throw Error(`IIFE bundle is missing ${t} export for ${e.packageName}`);
|
|
2546
2542
|
customElements.get(c) || customElements.define(c, class extends l {}), await customElements.whenDefined(c);
|
|
2547
2543
|
let u = o.controller, d;
|
|
@@ -2561,10 +2557,10 @@ async function wi(e, t, n, r, i) {
|
|
|
2561
2557
|
message: "client-player bundle did not include controller export"
|
|
2562
2558
|
};
|
|
2563
2559
|
else {
|
|
2564
|
-
let n = await
|
|
2560
|
+
let n = await hi(e, "iife", t);
|
|
2565
2561
|
u = n.controller, d = n.diagnostic;
|
|
2566
2562
|
}
|
|
2567
|
-
return
|
|
2563
|
+
return ui(e, "iife", t, d), {
|
|
2568
2564
|
strategy: "iife",
|
|
2569
2565
|
requestedStrategy: n,
|
|
2570
2566
|
view: t,
|
|
@@ -2576,50 +2572,64 @@ async function wi(e, t, n, r, i) {
|
|
|
2576
2572
|
runtimeSupportDiagnostic: i
|
|
2577
2573
|
};
|
|
2578
2574
|
}
|
|
2579
|
-
async function
|
|
2580
|
-
let t =
|
|
2575
|
+
async function Ci(e) {
|
|
2576
|
+
let t = ti(e.strategy, "esm"), n = t, r = ni(e.view, "delivery");
|
|
2581
2577
|
if (n === "preloaded") {
|
|
2582
|
-
let t =
|
|
2578
|
+
let t = ti(e.preloadedFallbackStrategy, "esm"), n = pi(t, r, e.elementName);
|
|
2583
2579
|
return customElements.get(n) ? {
|
|
2584
2580
|
strategy: "preloaded",
|
|
2585
2581
|
view: r,
|
|
2586
2582
|
tagName: n
|
|
2587
|
-
} :
|
|
2583
|
+
} : Ci({
|
|
2588
2584
|
...e,
|
|
2589
2585
|
strategy: t
|
|
2590
2586
|
});
|
|
2591
2587
|
}
|
|
2592
|
-
let i = await
|
|
2588
|
+
let i = await yi(e, n, r);
|
|
2593
2589
|
try {
|
|
2594
|
-
return n === "iife" ?
|
|
2590
|
+
return n === "iife" ? Si(e, r, t, i.runtimeSupport, i.diagnostic) : xi(e, r, t, i.runtimeSupport, i.diagnostic);
|
|
2595
2591
|
} catch (t) {
|
|
2596
|
-
let a = t instanceof Error ? t.message : String(t), o =
|
|
2592
|
+
let a = t instanceof Error ? t.message : String(t), o = bi(n, r, e.packageName, i.runtimeSupport);
|
|
2597
2593
|
throw Error(`${a}${o}`);
|
|
2598
2594
|
}
|
|
2599
2595
|
}
|
|
2600
2596
|
//#endregion
|
|
2601
2597
|
//#region src/players/PieElementPlayer.svelte
|
|
2602
|
-
var
|
|
2598
|
+
var wi = /* @__PURE__ */ er("<div class=\"loading-warning svelte-srjg3v\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div>"), Ti = /* @__PURE__ */ er("<div class=\"loading svelte-srjg3v\"> <!></div>"), Ei = /* @__PURE__ */ er("<div class=\"error svelte-srjg3v\"><strong>Element player error:</strong> <pre class=\"svelte-srjg3v\"> </pre></div>"), Di = /* @__PURE__ */ er("<div class=\"demo-element-player element-player-host svelte-srjg3v\"><div class=\"element-player-mount svelte-srjg3v\"></div> <!> <!></div>"), Oi = {
|
|
2603
2599
|
hash: "svelte-srjg3v",
|
|
2604
2600
|
code: ".element-player-host.svelte-srjg3v {width:100%;min-height:100px;}.element-player-mount.svelte-srjg3v {width:100%;}.loading.svelte-srjg3v {padding:2rem;text-align:center;color:hsl(var(--bc) / 0.6);font-style:italic;}.loading-warning.svelte-srjg3v {margin-top:0.5rem;color:#9a6700;font-style:normal;}.error.svelte-srjg3v {padding:1rem;background:hsl(var(--er) / 0.1);border:1px solid hsl(var(--er) / 0.3);border-radius:4px;color:hsl(var(--er));}.error.svelte-srjg3v pre:where(.svelte-srjg3v) {margin:0.5rem 0 0;padding:0.5rem;background:#fff;border-radius:4px;font-size:0.875rem;overflow-x:auto;}"
|
|
2605
2601
|
};
|
|
2606
|
-
function
|
|
2607
|
-
|
|
2608
|
-
let r = Q(n, "strategy", 7, "esm"), i = Q(n, "view", 7, "delivery"), a = Q(n, "mode", 7, ""), o = Q(n, "elementName", 7, ""), s = Q(n, "packageName", 7, ""), c = Q(n, "elementVersion", 7, "latest"), l = Q(n, "role", 7, "student"), u = Q(n, "cdnUrl", 7, ""), d = Q(n, "iifeBundleEndpoint", 7, "/api/bundle"), f = Q(n, "iifeBundleHost", 7, ""), p = Q(n, "iifeBundleRetry", 7,
|
|
2602
|
+
function ki(t, n) {
|
|
2603
|
+
Ie(n, !0), vr(t, Oi);
|
|
2604
|
+
let r = Q(n, "strategy", 7, "esm"), i = Q(n, "view", 7, "delivery"), a = Q(n, "mode", 7, ""), o = Q(n, "elementName", 7, ""), s = Q(n, "packageName", 7, ""), c = Q(n, "elementVersion", 7, "latest"), l = Q(n, "role", 7, "student"), u = Q(n, "cdnUrl", 7, ""), d = Q(n, "iifeBundleEndpoint", 7, "/api/bundle"), f = Q(n, "iifeBundleHost", 7, ""), p = Q(n, "iifeBundleRetry", 7, Fr), m = Q(n, "preloadedFallbackStrategy", 7, "esm"), h = Q(n, "runtimeSupportCheck", 7, "off"), g = Q(n, "rebuildVersion", 7, 0), _ = Q(n, "model", 15), v = Q(n, "session", 15);
|
|
2605
|
+
function y(e, t) {
|
|
2606
|
+
Un(() => {
|
|
2607
|
+
n.$$host.dispatchEvent(new CustomEvent(e, {
|
|
2608
|
+
detail: t,
|
|
2609
|
+
bubbles: !0,
|
|
2610
|
+
composed: !0
|
|
2611
|
+
}));
|
|
2612
|
+
});
|
|
2613
|
+
}
|
|
2614
|
+
let b, ee, x = /* @__PURE__ */ L(null), te = /* @__PURE__ */ L(null), ne = /* @__PURE__ */ L(!0), S = /* @__PURE__ */ L(null), C = /* @__PURE__ */ L(null), re = 0, w = null, ie = "@pie-lib/math-rendering";
|
|
2615
|
+
function ae() {
|
|
2616
|
+
return window[ie];
|
|
2617
|
+
}
|
|
2618
|
+
let oe = null, se = null, ce = null, le = !1, ue = !1, de = null, fe = null, pe = !1, me = !1, he = "", T = "", ge = /* @__PURE__ */ new Set(["complete", "component"]), E = null, D = "", _e = "", ye = /* @__PURE__ */ tt(() => {
|
|
2609
2619
|
if (Z(C)?.state !== "retrying") return null;
|
|
2610
2620
|
let e = Math.max(1, Math.ceil(Z(C).elapsedMs / 1e3)), t = Math.max(1, Math.ceil(Z(C).timeoutMs / 1e3));
|
|
2611
2621
|
return `Bundle is still building. Retrying attempt ${Z(C).attempt} (${e}s of ${t}s).`;
|
|
2612
2622
|
});
|
|
2613
|
-
function
|
|
2623
|
+
function be(e) {
|
|
2614
2624
|
if (!e || typeof e != "object") return !1;
|
|
2615
2625
|
let t = e;
|
|
2616
2626
|
return t.code === "LOAD_ABORTED" || typeof t.message == "string" && t.message.includes("aborted");
|
|
2617
2627
|
}
|
|
2618
|
-
let
|
|
2628
|
+
let O = /* @__PURE__ */ tt(() => ti(r(), "esm")), k = /* @__PURE__ */ tt(() => ri({
|
|
2619
2629
|
mode: a(),
|
|
2620
2630
|
view: i()
|
|
2621
|
-
}, "delivery")),
|
|
2622
|
-
function
|
|
2631
|
+
}, "delivery")), xe = /* @__PURE__ */ tt(() => s() || (o() ? `@pie-element/${o()}` : ""));
|
|
2632
|
+
function Se(e) {
|
|
2623
2633
|
if (typeof e != "object" || !e) return e;
|
|
2624
2634
|
try {
|
|
2625
2635
|
return structuredClone(e);
|
|
@@ -2631,7 +2641,7 @@ function ji(t, n) {
|
|
|
2631
2641
|
}
|
|
2632
2642
|
}
|
|
2633
2643
|
}
|
|
2634
|
-
function
|
|
2644
|
+
function Ce(e) {
|
|
2635
2645
|
try {
|
|
2636
2646
|
let t = JSON.stringify(e);
|
|
2637
2647
|
return t === void 0 ? "__undefined__" : t;
|
|
@@ -2639,47 +2649,47 @@ function ji(t, n) {
|
|
|
2639
2649
|
return `__unserializable__:${String(e)}`;
|
|
2640
2650
|
}
|
|
2641
2651
|
}
|
|
2642
|
-
function
|
|
2652
|
+
function we(e) {
|
|
2643
2653
|
if (!e || typeof e != "object") return !1;
|
|
2644
2654
|
let t = e;
|
|
2645
2655
|
if ("session" in t) return !0;
|
|
2646
2656
|
let n = Object.keys(t);
|
|
2647
|
-
return n.length !== 0 && !n.every((e) =>
|
|
2657
|
+
return n.length !== 0 && !n.every((e) => ge.has(e));
|
|
2648
2658
|
}
|
|
2649
|
-
function
|
|
2650
|
-
|
|
2659
|
+
function Te() {
|
|
2660
|
+
se && b && se.observe(b, {
|
|
2651
2661
|
childList: !0,
|
|
2652
2662
|
subtree: !0,
|
|
2653
2663
|
attributes: !1,
|
|
2654
2664
|
characterData: !1
|
|
2655
2665
|
});
|
|
2656
2666
|
}
|
|
2657
|
-
async function
|
|
2658
|
-
if (!(!
|
|
2659
|
-
if (
|
|
2660
|
-
|
|
2667
|
+
async function Ee() {
|
|
2668
|
+
if (!(!oe || !b)) {
|
|
2669
|
+
if (le) {
|
|
2670
|
+
ue = !0;
|
|
2661
2671
|
return;
|
|
2662
2672
|
}
|
|
2663
|
-
|
|
2673
|
+
le = !0, se && se.disconnect();
|
|
2664
2674
|
try {
|
|
2665
|
-
await
|
|
2675
|
+
await oe(b);
|
|
2666
2676
|
} catch (e) {
|
|
2667
2677
|
console.error("[pie-element-player] Math rendering error:", e);
|
|
2668
2678
|
} finally {
|
|
2669
|
-
|
|
2679
|
+
le = !1, Te(), ue && (ue = !1, queueMicrotask(() => void Ee()));
|
|
2670
2680
|
}
|
|
2671
2681
|
}
|
|
2672
2682
|
}
|
|
2673
|
-
function
|
|
2674
|
-
Z(x) && (
|
|
2683
|
+
function De() {
|
|
2684
|
+
Z(x) && (de &&= (Z(x).removeEventListener("session-changed", de), null), fe &&= (Z(x).removeEventListener("model.updated", fe, !0), null));
|
|
2675
2685
|
}
|
|
2676
|
-
function
|
|
2677
|
-
Z(x) && (
|
|
2678
|
-
if (
|
|
2686
|
+
function Oe(e) {
|
|
2687
|
+
Z(x) && (De(), e === "delivery" && (de = (e) => {
|
|
2688
|
+
if (pe || me || !D) {
|
|
2679
2689
|
e.stopPropagation();
|
|
2680
2690
|
return;
|
|
2681
2691
|
}
|
|
2682
|
-
let t = e.detail, n = t && typeof t == "object" ? t : null, r =
|
|
2692
|
+
let t = e.detail, n = t && typeof t == "object" ? t : null, r = we(n), i = Z(x)?.session, a = t?.session ?? i ?? v();
|
|
2683
2693
|
if (a === void 0) {
|
|
2684
2694
|
e.stopPropagation();
|
|
2685
2695
|
return;
|
|
@@ -2688,57 +2698,57 @@ function ji(t, n) {
|
|
|
2688
2698
|
e.stopPropagation();
|
|
2689
2699
|
return;
|
|
2690
2700
|
}
|
|
2691
|
-
let o =
|
|
2692
|
-
if (s ===
|
|
2701
|
+
let o = Se(a ?? {}), s = Ce(o);
|
|
2702
|
+
if (s === T) {
|
|
2693
2703
|
e.stopPropagation();
|
|
2694
2704
|
return;
|
|
2695
2705
|
}
|
|
2696
2706
|
let c = {
|
|
2697
2707
|
...n ?? {},
|
|
2698
2708
|
session: o
|
|
2699
|
-
}, l =
|
|
2700
|
-
if (l ===
|
|
2709
|
+
}, l = Ce(c);
|
|
2710
|
+
if (l === he) {
|
|
2701
2711
|
e.stopPropagation();
|
|
2702
2712
|
return;
|
|
2703
2713
|
}
|
|
2704
|
-
|
|
2714
|
+
he = l, T = s, e.stopPropagation(), me = !0, v(Se(o)), _e = Ce(o);
|
|
2705
2715
|
try {
|
|
2706
2716
|
y("session-changed", c);
|
|
2707
2717
|
} finally {
|
|
2708
2718
|
setTimeout(() => {
|
|
2709
|
-
|
|
2719
|
+
me = !1;
|
|
2710
2720
|
}, 0);
|
|
2711
2721
|
}
|
|
2712
|
-
}, Z(x).addEventListener("session-changed",
|
|
2722
|
+
}, Z(x).addEventListener("session-changed", de)), e === "author" && (fe = (e) => {
|
|
2713
2723
|
let t = e.detail, n = Z(x)?.model ?? _(), r = Z(x)?.model ?? t?.model ?? t?.update ?? t;
|
|
2714
2724
|
t?.update && typeof t.update == "object" && n && typeof n == "object" && (r = {
|
|
2715
2725
|
...n,
|
|
2716
2726
|
...t.update
|
|
2717
2727
|
}), y("model-changed", r);
|
|
2718
|
-
}, Z(x).addEventListener("model.updated",
|
|
2728
|
+
}, Z(x).addEventListener("model.updated", fe, !0)));
|
|
2719
2729
|
}
|
|
2720
|
-
function
|
|
2730
|
+
function ke(e) {
|
|
2721
2731
|
if (!Z(x) || e == null) return;
|
|
2722
|
-
let t =
|
|
2723
|
-
t !== D && (Z(x).model =
|
|
2724
|
-
}
|
|
2725
|
-
function
|
|
2726
|
-
if (!Z(x) || Z(
|
|
2727
|
-
let t =
|
|
2728
|
-
if (t !==
|
|
2729
|
-
|
|
2732
|
+
let t = Ce(e ?? {});
|
|
2733
|
+
t !== D && (Z(x).model = Se(e ?? {}), D = t);
|
|
2734
|
+
}
|
|
2735
|
+
function Ae(e) {
|
|
2736
|
+
if (!Z(x) || Z(k) !== "delivery" || e == null || !D) return;
|
|
2737
|
+
let t = Ce(e ?? {});
|
|
2738
|
+
if (t !== _e) {
|
|
2739
|
+
pe = !0;
|
|
2730
2740
|
try {
|
|
2731
|
-
Z(x).session =
|
|
2741
|
+
Z(x).session = Se(e ?? {}), _e = t;
|
|
2732
2742
|
} finally {
|
|
2733
|
-
|
|
2743
|
+
pe = !1;
|
|
2734
2744
|
}
|
|
2735
2745
|
}
|
|
2736
2746
|
}
|
|
2737
|
-
function
|
|
2738
|
-
!Z(x) || Z(
|
|
2747
|
+
function je(e) {
|
|
2748
|
+
!Z(x) || Z(k) !== "print" || e === E || (Z(x).role = e, Z(x).options = { role: e }, E = e);
|
|
2739
2749
|
}
|
|
2740
|
-
async function
|
|
2741
|
-
if (!o() || !Z(
|
|
2750
|
+
async function Me() {
|
|
2751
|
+
if (!o() || !Z(xe)) {
|
|
2742
2752
|
R(ne, !1), R(S, "Missing required element metadata");
|
|
2743
2753
|
return;
|
|
2744
2754
|
}
|
|
@@ -2747,29 +2757,29 @@ function ji(t, n) {
|
|
|
2747
2757
|
loading: !1,
|
|
2748
2758
|
error: null,
|
|
2749
2759
|
stage: "cancelled",
|
|
2750
|
-
strategy: Z(
|
|
2751
|
-
view: Z(
|
|
2760
|
+
strategy: Z(O),
|
|
2761
|
+
view: Z(k),
|
|
2752
2762
|
retry: {
|
|
2753
2763
|
state: "cancelled",
|
|
2754
2764
|
stage: "build-status",
|
|
2755
2765
|
attempt: 0,
|
|
2756
2766
|
elapsedMs: 0,
|
|
2757
|
-
timeoutMs: p()?.timeoutMs ??
|
|
2767
|
+
timeoutMs: p()?.timeoutMs ?? Fr.timeoutMs,
|
|
2758
2768
|
reason: "superseded by new load request"
|
|
2759
2769
|
}
|
|
2760
2770
|
}), y("load-cancelled", {
|
|
2761
2771
|
reason: "superseded by new load request",
|
|
2762
|
-
strategy: Z(
|
|
2763
|
-
view: Z(
|
|
2772
|
+
strategy: Z(O),
|
|
2773
|
+
view: Z(k)
|
|
2764
2774
|
}));
|
|
2765
2775
|
let t = new AbortController();
|
|
2766
2776
|
w = t, R(ne, !0), R(S, null), R(C, null);
|
|
2767
2777
|
try {
|
|
2768
|
-
let n = await
|
|
2769
|
-
strategy: Z(
|
|
2770
|
-
view: Z(
|
|
2778
|
+
let n = await Ci({
|
|
2779
|
+
strategy: Z(O),
|
|
2780
|
+
view: Z(k),
|
|
2771
2781
|
elementName: o(),
|
|
2772
|
-
packageName: Z(
|
|
2782
|
+
packageName: Z(xe),
|
|
2773
2783
|
elementVersion: c(),
|
|
2774
2784
|
cdnUrl: u(),
|
|
2775
2785
|
iifeBundleEndpoint: d(),
|
|
@@ -2778,23 +2788,20 @@ function ji(t, n) {
|
|
|
2778
2788
|
signal: t.signal,
|
|
2779
2789
|
runtimeSupportCheck: h(),
|
|
2780
2790
|
onIifeBundleRetryStatus: (t) => {
|
|
2781
|
-
|
|
2782
|
-
R(C, t, !0), y("bundle-retry-status", t);
|
|
2783
|
-
let n = {
|
|
2791
|
+
e === re && (R(C, t, !0), y("bundle-retry-status", t), y("build-state", {
|
|
2784
2792
|
loading: t.state === "retrying",
|
|
2785
2793
|
error: null,
|
|
2786
2794
|
stage: t.state,
|
|
2787
|
-
strategy: Z(
|
|
2788
|
-
view: Z(
|
|
2795
|
+
strategy: Z(O),
|
|
2796
|
+
view: Z(k),
|
|
2789
2797
|
retry: t
|
|
2790
|
-
};
|
|
2791
|
-
y("build-state", n);
|
|
2798
|
+
}));
|
|
2792
2799
|
},
|
|
2793
2800
|
preloadedFallbackStrategy: m(),
|
|
2794
2801
|
rebuildVersion: g()
|
|
2795
2802
|
});
|
|
2796
2803
|
if (e !== re) return;
|
|
2797
|
-
n.bundleMeta && y("bundle-meta", n.bundleMeta), n.controllerDiagnostic && y("controller-load", n.controllerDiagnostic), n.controller && n.view === "delivery" && n.strategy === "iife" && y("controller-changed", n.controller), (!Z(x) || Z(te) !== n.tagName) && (
|
|
2804
|
+
n.bundleMeta && y("bundle-meta", n.bundleMeta), n.controllerDiagnostic && y("controller-load", n.controllerDiagnostic), n.controller && n.view === "delivery" && n.strategy === "iife" && y("controller-changed", n.controller), (!Z(x) || Z(te) !== n.tagName) && (De(), Z(x) && Z(x).remove(), R(x, document.createElement(n.tagName), !0), R(te, n.tagName, !0), E = null, D = "", _e = "", he = "", T = ""), Oe(n.view), ke(_()), Ae(v()), je(l()), ee && Z(x).parentElement !== ee && ee.replaceChildren(Z(x)), y("build-state", {
|
|
2798
2805
|
loading: !1,
|
|
2799
2806
|
error: null,
|
|
2800
2807
|
stage: "completed"
|
|
@@ -2805,26 +2812,26 @@ function ji(t, n) {
|
|
|
2805
2812
|
}), R(ne, !1), R(C, null), w === t && (w = null);
|
|
2806
2813
|
} catch (n) {
|
|
2807
2814
|
if (e !== re) return;
|
|
2808
|
-
if (
|
|
2815
|
+
if (be(n) || t.signal.aborted) {
|
|
2809
2816
|
let e = Z(C), r = e?.state === "cancelled" ? e : {
|
|
2810
2817
|
state: "cancelled",
|
|
2811
2818
|
stage: "build-status",
|
|
2812
2819
|
attempt: 0,
|
|
2813
2820
|
elapsedMs: 0,
|
|
2814
|
-
timeoutMs: p()?.timeoutMs ??
|
|
2821
|
+
timeoutMs: p()?.timeoutMs ?? Fr.timeoutMs,
|
|
2815
2822
|
reason: n instanceof Error ? n.message : String(n)
|
|
2816
2823
|
};
|
|
2817
2824
|
R(S, null), R(ne, !1), R(C, r, !0), y("bundle-retry-status", r), y("build-state", {
|
|
2818
2825
|
loading: !1,
|
|
2819
2826
|
error: null,
|
|
2820
2827
|
stage: "cancelled",
|
|
2821
|
-
strategy: Z(
|
|
2822
|
-
view: Z(
|
|
2828
|
+
strategy: Z(O),
|
|
2829
|
+
view: Z(k),
|
|
2823
2830
|
retry: r
|
|
2824
2831
|
}), y("load-cancelled", {
|
|
2825
2832
|
reason: r.reason || "load cancelled",
|
|
2826
|
-
strategy: Z(
|
|
2827
|
-
view: Z(
|
|
2833
|
+
strategy: Z(O),
|
|
2834
|
+
view: Z(k)
|
|
2828
2835
|
}), w === t && (w = null);
|
|
2829
2836
|
return;
|
|
2830
2837
|
}
|
|
@@ -2834,165 +2841,173 @@ function ji(t, n) {
|
|
|
2834
2841
|
loading: !1,
|
|
2835
2842
|
error: Z(S),
|
|
2836
2843
|
stage: "error",
|
|
2837
|
-
strategy: Z(
|
|
2838
|
-
view: Z(
|
|
2844
|
+
strategy: Z(O),
|
|
2845
|
+
view: Z(k),
|
|
2839
2846
|
retry: i
|
|
2840
2847
|
}), y("player-error", {
|
|
2841
2848
|
error: Z(S),
|
|
2842
|
-
strategy: Z(
|
|
2843
|
-
view: Z(
|
|
2849
|
+
strategy: Z(O),
|
|
2850
|
+
view: Z(k),
|
|
2844
2851
|
retry: i
|
|
2845
2852
|
}), w === t && (w = null);
|
|
2846
2853
|
}
|
|
2847
2854
|
}
|
|
2848
|
-
|
|
2855
|
+
nn(() => {
|
|
2849
2856
|
[
|
|
2850
2857
|
o(),
|
|
2851
|
-
Z(
|
|
2858
|
+
Z(xe),
|
|
2852
2859
|
c(),
|
|
2853
|
-
Z(
|
|
2854
|
-
Z(
|
|
2860
|
+
Z(O),
|
|
2861
|
+
Z(k),
|
|
2855
2862
|
h(),
|
|
2856
2863
|
u(),
|
|
2857
2864
|
d(),
|
|
2858
2865
|
f(),
|
|
2859
|
-
JSON.stringify(p() ||
|
|
2866
|
+
JSON.stringify(p() || Fr),
|
|
2860
2867
|
m(),
|
|
2861
2868
|
g()
|
|
2862
|
-
].join("|"),
|
|
2863
|
-
}),
|
|
2864
|
-
Z(x) && (
|
|
2869
|
+
].join("|"), Me();
|
|
2870
|
+
}), nn(() => {
|
|
2871
|
+
Z(x) && (ke(_()), Ae(v()), je(l()), requestAnimationFrame(() => {
|
|
2865
2872
|
requestAnimationFrame(() => {
|
|
2866
|
-
|
|
2873
|
+
Ee();
|
|
2867
2874
|
});
|
|
2868
2875
|
}));
|
|
2869
|
-
}),
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2876
|
+
}), gr(() => {
|
|
2877
|
+
if (typeof ae()?.renderMath != "function") {
|
|
2878
|
+
let t = e();
|
|
2879
|
+
window[ie] = { renderMath: t }, t(document.createElement("div"));
|
|
2880
|
+
}
|
|
2881
|
+
return oe = async (e) => {
|
|
2882
|
+
await ae()?.renderMath?.(e);
|
|
2883
|
+
}, b && (se = new MutationObserver(() => {
|
|
2884
|
+
ce && clearTimeout(ce), ce = window.setTimeout(() => {
|
|
2885
|
+
Ee();
|
|
2886
|
+
}, 100);
|
|
2887
|
+
}), Te(), Ee()), () => {
|
|
2888
|
+
ce &&= (clearTimeout(ce), null), se &&= (se.disconnect(), null), ee && ee.replaceChildren(), re++, w?.abort(), w = null, De();
|
|
2889
|
+
};
|
|
2890
|
+
});
|
|
2891
|
+
var Ne = {
|
|
2877
2892
|
get strategy() {
|
|
2878
2893
|
return r();
|
|
2879
2894
|
},
|
|
2880
2895
|
set strategy(e = "esm") {
|
|
2881
|
-
r(e),
|
|
2896
|
+
r(e), P();
|
|
2882
2897
|
},
|
|
2883
2898
|
get view() {
|
|
2884
2899
|
return i();
|
|
2885
2900
|
},
|
|
2886
2901
|
set view(e = "delivery") {
|
|
2887
|
-
i(e),
|
|
2902
|
+
i(e), P();
|
|
2888
2903
|
},
|
|
2889
2904
|
get mode() {
|
|
2890
2905
|
return a();
|
|
2891
2906
|
},
|
|
2892
2907
|
set mode(e = "") {
|
|
2893
|
-
a(e),
|
|
2908
|
+
a(e), P();
|
|
2894
2909
|
},
|
|
2895
2910
|
get elementName() {
|
|
2896
2911
|
return o();
|
|
2897
2912
|
},
|
|
2898
2913
|
set elementName(e = "") {
|
|
2899
|
-
o(e),
|
|
2914
|
+
o(e), P();
|
|
2900
2915
|
},
|
|
2901
2916
|
get packageName() {
|
|
2902
2917
|
return s();
|
|
2903
2918
|
},
|
|
2904
2919
|
set packageName(e = "") {
|
|
2905
|
-
s(e),
|
|
2920
|
+
s(e), P();
|
|
2906
2921
|
},
|
|
2907
2922
|
get elementVersion() {
|
|
2908
2923
|
return c();
|
|
2909
2924
|
},
|
|
2910
2925
|
set elementVersion(e = "latest") {
|
|
2911
|
-
c(e),
|
|
2926
|
+
c(e), P();
|
|
2912
2927
|
},
|
|
2913
2928
|
get role() {
|
|
2914
2929
|
return l();
|
|
2915
2930
|
},
|
|
2916
2931
|
set role(e = "student") {
|
|
2917
|
-
l(e),
|
|
2932
|
+
l(e), P();
|
|
2918
2933
|
},
|
|
2919
2934
|
get cdnUrl() {
|
|
2920
2935
|
return u();
|
|
2921
2936
|
},
|
|
2922
2937
|
set cdnUrl(e = "") {
|
|
2923
|
-
u(e),
|
|
2938
|
+
u(e), P();
|
|
2924
2939
|
},
|
|
2925
2940
|
get iifeBundleEndpoint() {
|
|
2926
2941
|
return d();
|
|
2927
2942
|
},
|
|
2928
2943
|
set iifeBundleEndpoint(e = "/api/bundle") {
|
|
2929
|
-
d(e),
|
|
2944
|
+
d(e), P();
|
|
2930
2945
|
},
|
|
2931
2946
|
get iifeBundleHost() {
|
|
2932
2947
|
return f();
|
|
2933
2948
|
},
|
|
2934
2949
|
set iifeBundleHost(e = "") {
|
|
2935
|
-
f(e),
|
|
2950
|
+
f(e), P();
|
|
2936
2951
|
},
|
|
2937
2952
|
get iifeBundleRetry() {
|
|
2938
2953
|
return p();
|
|
2939
2954
|
},
|
|
2940
|
-
set iifeBundleRetry(e =
|
|
2941
|
-
p(e),
|
|
2955
|
+
set iifeBundleRetry(e = Fr) {
|
|
2956
|
+
p(e), P();
|
|
2942
2957
|
},
|
|
2943
2958
|
get preloadedFallbackStrategy() {
|
|
2944
2959
|
return m();
|
|
2945
2960
|
},
|
|
2946
2961
|
set preloadedFallbackStrategy(e = "esm") {
|
|
2947
|
-
m(e),
|
|
2962
|
+
m(e), P();
|
|
2948
2963
|
},
|
|
2949
2964
|
get runtimeSupportCheck() {
|
|
2950
2965
|
return h();
|
|
2951
2966
|
},
|
|
2952
2967
|
set runtimeSupportCheck(e = "off") {
|
|
2953
|
-
h(e),
|
|
2968
|
+
h(e), P();
|
|
2954
2969
|
},
|
|
2955
2970
|
get rebuildVersion() {
|
|
2956
2971
|
return g();
|
|
2957
2972
|
},
|
|
2958
2973
|
set rebuildVersion(e = 0) {
|
|
2959
|
-
g(e),
|
|
2974
|
+
g(e), P();
|
|
2960
2975
|
},
|
|
2961
2976
|
get model() {
|
|
2962
2977
|
return _();
|
|
2963
2978
|
},
|
|
2964
2979
|
set model(e) {
|
|
2965
|
-
_(e),
|
|
2980
|
+
_(e), P();
|
|
2966
2981
|
},
|
|
2967
2982
|
get session() {
|
|
2968
2983
|
return v();
|
|
2969
2984
|
},
|
|
2970
2985
|
set session(e) {
|
|
2971
|
-
v(e),
|
|
2972
|
-
}
|
|
2973
|
-
},
|
|
2974
|
-
|
|
2975
|
-
var
|
|
2976
|
-
var t =
|
|
2977
|
-
var t =
|
|
2978
|
-
|
|
2986
|
+
v(e), P();
|
|
2987
|
+
}
|
|
2988
|
+
}, Pe = Di(), A = Wt(Pe);
|
|
2989
|
+
br(A, (e) => ee = e, () => ee);
|
|
2990
|
+
var Fe = Kt(A, 2), Re = (e) => {
|
|
2991
|
+
var t = Ti(), n = Wt(t), r = Kt(n), i = (e) => {
|
|
2992
|
+
var t = wi(), n = Gt(t, !0);
|
|
2993
|
+
un(() => cr(n, Z(ye))), tr(e, t);
|
|
2979
2994
|
};
|
|
2980
|
-
|
|
2981
|
-
Z(
|
|
2982
|
-
}),
|
|
2995
|
+
_r(r, (e) => {
|
|
2996
|
+
Z(ye) && e(i);
|
|
2997
|
+
}), ve(t), un(() => cr(n, `Loading ${o() ?? ""} (${Z(O) ?? ""}/${Z(k) ?? ""})... `)), tr(e, t);
|
|
2983
2998
|
};
|
|
2984
|
-
|
|
2985
|
-
Z(ne) && e(
|
|
2999
|
+
_r(Fe, (e) => {
|
|
3000
|
+
Z(ne) && e(Re);
|
|
2986
3001
|
});
|
|
2987
|
-
var
|
|
2988
|
-
var t =
|
|
2989
|
-
|
|
3002
|
+
var ze = Kt(Fe, 2), Be = (e) => {
|
|
3003
|
+
var t = Ei(), n = Gt(Kt(Wt(t), 2), !0);
|
|
3004
|
+
ve(t), un(() => cr(n, Z(S))), tr(e, t);
|
|
2990
3005
|
};
|
|
2991
|
-
return
|
|
2992
|
-
Z(S) && e(
|
|
2993
|
-
}),
|
|
3006
|
+
return _r(ze, (e) => {
|
|
3007
|
+
Z(S) && e(Be);
|
|
3008
|
+
}), ve(Pe), br(Pe, (e) => b = e, () => b), tr(t, Pe), Le(Ne);
|
|
2994
3009
|
}
|
|
2995
|
-
customElements.define("pie-element-player",
|
|
3010
|
+
customElements.define("pie-element-player", Or(ki, {
|
|
2996
3011
|
strategy: {
|
|
2997
3012
|
reflect: !0,
|
|
2998
3013
|
type: "String"
|
|
@@ -3058,4 +3073,4 @@ customElements.define("pie-element-player", Ar(ji, {
|
|
|
3058
3073
|
session: { type: "Object" }
|
|
3059
3074
|
}, [], []));
|
|
3060
3075
|
//#endregion
|
|
3061
|
-
export {
|
|
3076
|
+
export { Fr as DEFAULT_IIFE_BUNDLE_RETRY_CONFIG, $ as IifeBundleLoadError, Wr as configureIifeBundleLoader, gi as configureUnifiedPlayerResolver, ti as normalizeElementPlayerStrategy, ni as normalizeElementPlayerView, ii as normalizeRuntimeSupportCheck, ri as resolveElementPlayerView };
|