@pie-players/pie-tool-line-reader 0.3.20 → 0.3.22

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.
@@ -1,15 +1,15 @@
1
1
  import { t as g } from "./defineProperty-CyepwRr5.js";
2
2
  if (typeof window < "u") {
3
- var jr, zr;
4
- ((jr = (zr = window).__svelte ?? (zr.__svelte = {})).v ?? (jr.v = /* @__PURE__ */ new Set())).add("5");
3
+ var zr, Vr;
4
+ ((zr = (Vr = window).__svelte ?? (Vr.__svelte = {})).v ?? (zr.v = /* @__PURE__ */ new Set())).add("5");
5
5
  }
6
- var Xe = {}, N = Symbol(), za = Symbol("filename");
7
- var Gn = Array.isArray, qn = Array.prototype.indexOf, Je = Array.prototype.includes, Yn = Array.from, Pt = Object.keys, xt = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, Kn = Object.getOwnPropertyDescriptors, Xn = Object.prototype, Jn = Array.prototype, wi = Object.getPrototypeOf, Vr = Object.isExtensible, Qn = () => {
6
+ var Xe = {}, N = Symbol(), Va = Symbol("filename");
7
+ var qn = Array.isArray, Yn = Array.prototype.indexOf, Je = Array.prototype.includes, Kn = Array.from, Pt = Object.keys, xt = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, Xn = Object.getOwnPropertyDescriptors, Jn = Object.prototype, Qn = Array.prototype, Ti = Object.getPrototypeOf, Fr = Object.isExtensible, Zn = () => {
8
8
  };
9
- function Zn(e) {
9
+ function eo(e) {
10
10
  for (var t = 0; t < e.length; t++) e[t]();
11
11
  }
12
- function Ti() {
12
+ function ki() {
13
13
  var e, t;
14
14
  return {
15
15
  promise: new Promise((r, i) => {
@@ -19,51 +19,51 @@ function Ti() {
19
19
  reject: t
20
20
  };
21
21
  }
22
- var Va = 1 << 24, K = 1024, le = 2048, Ve = 4096, vr = 8192, eo = 16384, _r = 32768, Fr = 1 << 25, gr = 65536, Fa = 1 << 17, Wa = 1 << 18, it = 1 << 19, to = 1 << 20, Ba = 1 << 25, pt = 65536, Wr = 1 << 21, ro = 1 << 22, Rt = 1 << 23, lt = Symbol("$state"), ki = Symbol("legacy props"), io = Symbol(""), no = Symbol("proxy path"), pe = new class extends Error {
22
+ var Fa = 1 << 24, K = 1024, le = 2048, Ve = 4096, vr = 8192, to = 16384, _r = 32768, Wr = 1 << 25, gr = 65536, Wa = 1 << 17, Ba = 1 << 18, it = 1 << 19, ro = 1 << 20, Ha = 1 << 25, pt = 65536, Br = 1 << 21, io = 1 << 22, Rt = 1 << 23, lt = Symbol("$state"), Si = Symbol("legacy props"), no = Symbol(""), oo = Symbol("proxy path"), pe = new class extends Error {
23
23
  constructor(...t) {
24
24
  super(...t), g(this, "name", "StaleReactionError"), g(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
25
25
  }
26
- }(), oo = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
27
- function so(e) {
26
+ }(), so = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
27
+ function ao(e) {
28
28
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
29
29
  }
30
- function ao() {
30
+ function lo() {
31
31
  throw new Error("https://svelte.dev/e/async_derived_orphan");
32
32
  }
33
- function lo(e) {
33
+ function co(e) {
34
34
  throw new Error("https://svelte.dev/e/effect_in_teardown");
35
35
  }
36
- function co() {
36
+ function uo() {
37
37
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
38
38
  }
39
- function uo(e) {
39
+ function fo(e) {
40
40
  throw new Error("https://svelte.dev/e/effect_orphan");
41
41
  }
42
- function fo() {
42
+ function ho() {
43
43
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
44
44
  }
45
- function ho() {
45
+ function po() {
46
46
  throw new Error("https://svelte.dev/e/hydration_failed");
47
47
  }
48
- function po(e) {
48
+ function vo(e) {
49
49
  throw new Error("https://svelte.dev/e/props_invalid_value");
50
50
  }
51
- function vo() {
51
+ function _o() {
52
52
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
53
53
  }
54
- function _o() {
54
+ function go() {
55
55
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
56
56
  }
57
- function go() {
57
+ function mo() {
58
58
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
59
59
  }
60
- function mo() {
60
+ function bo() {
61
61
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
62
62
  }
63
63
  function zt(e) {
64
64
  console.warn("https://svelte.dev/e/hydration_mismatch");
65
65
  }
66
- function bo() {
66
+ function yo() {
67
67
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
68
68
  }
69
69
  var O = !1;
@@ -79,20 +79,20 @@ function re(e) {
79
79
  function mr() {
80
80
  return re(/* @__PURE__ */ me(I));
81
81
  }
82
- function Br(e) {
82
+ function Hr(e) {
83
83
  if (O) {
84
84
  if (/* @__PURE__ */ me(I) !== null)
85
85
  throw zt(), Xe;
86
86
  I = e;
87
87
  }
88
88
  }
89
- function Si(e = 1) {
89
+ function $i(e = 1) {
90
90
  if (O) {
91
91
  for (var t = e, r = I; t--; ) r = /* @__PURE__ */ me(r);
92
92
  I = r;
93
93
  }
94
94
  }
95
- function $i(e = !0) {
95
+ function Ii(e = !0) {
96
96
  for (var t = 0, r = I; ; ) {
97
97
  if (r.nodeType === 8) {
98
98
  var i = r.data;
@@ -105,32 +105,32 @@ function $i(e = !0) {
105
105
  e && r.remove(), r = n;
106
106
  }
107
107
  }
108
- function yo(e) {
108
+ function wo(e) {
109
109
  if (!e || e.nodeType !== 8)
110
110
  throw zt(), Xe;
111
111
  return e.data;
112
112
  }
113
- function Ii(e) {
113
+ function Ai(e) {
114
114
  return e === this.v;
115
115
  }
116
- function wo(e, t) {
116
+ function To(e, t) {
117
117
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
118
118
  }
119
- function Ai(e) {
120
- return !wo(e, this.v);
119
+ function Ei(e) {
120
+ return !To(e, this.v);
121
121
  }
122
122
  var Ee = !1, vt = !1;
123
- function Hr(e, t) {
124
- return e.label = t, To(e.v, t), e;
123
+ function Ur(e, t) {
124
+ return e.label = t, ko(e.v, t), e;
125
125
  }
126
- function To(e, t) {
127
- return e?.[no]?.(t), e;
126
+ function ko(e, t) {
127
+ return e?.[oo]?.(t), e;
128
128
  }
129
129
  var R = null;
130
130
  function Qe(e) {
131
131
  R = e;
132
132
  }
133
- function Ei(e, t = !1, r) {
133
+ function Mi(e, t = !1, r) {
134
134
  R = {
135
135
  p: R,
136
136
  i: !1,
@@ -146,11 +146,11 @@ function Ei(e, t = !1, r) {
146
146
  } : null
147
147
  };
148
148
  }
149
- function Mi(e) {
149
+ function Oi(e) {
150
150
  var t = R, r = t.e;
151
151
  if (r !== null) {
152
152
  t.e = null;
153
- for (var i of r) tn(i);
153
+ for (var i of r) rn(i);
154
154
  }
155
155
  return e !== void 0 && (t.x = e), t.i = !0, R = t.p, e ?? {};
156
156
  }
@@ -158,23 +158,23 @@ function _t() {
158
158
  return !vt || R !== null && R.l === null;
159
159
  }
160
160
  var Re = [];
161
- function Oi() {
161
+ function Pi() {
162
162
  var e = Re;
163
- Re = [], Zn(e);
163
+ Re = [], eo(e);
164
164
  }
165
165
  function Ze(e) {
166
166
  if (Re.length === 0 && !ct) {
167
167
  var t = Re;
168
168
  queueMicrotask(() => {
169
- t === Re && Oi();
169
+ t === Re && Pi();
170
170
  });
171
171
  }
172
172
  Re.push(e);
173
173
  }
174
- function ko() {
175
- for (; Re.length > 0; ) Oi();
174
+ function So() {
175
+ for (; Re.length > 0; ) Pi();
176
176
  }
177
- function Pi(e) {
177
+ function xi(e) {
178
178
  var t = k;
179
179
  if (t === null)
180
180
  return S.f |= Rt, e;
@@ -197,23 +197,23 @@ function $e(e, t) {
197
197
  }
198
198
  throw e;
199
199
  }
200
- var So = ~(le | Ve | K);
200
+ var $o = ~(le | Ve | K);
201
201
  function C(e, t) {
202
- e.f = e.f & So | t;
202
+ e.f = e.f & $o | t;
203
203
  }
204
204
  function br(e) {
205
205
  e.f & 512 || e.deps === null ? C(e, K) : C(e, Ve);
206
206
  }
207
- function xi(e) {
207
+ function Ri(e) {
208
208
  if (e !== null)
209
209
  for (const t of e)
210
- !(t.f & 2) || !(t.f & 65536) || (t.f ^= pt, xi(t.deps));
210
+ !(t.f & 2) || !(t.f & 65536) || (t.f ^= pt, Ri(t.deps));
211
211
  }
212
- function Ri(e, t, r) {
213
- e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e), xi(e.deps), C(e, K);
212
+ function Ci(e, t, r) {
213
+ e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e), Ri(e.deps), C(e, K);
214
214
  }
215
- var $o = !1, wt = !1;
216
- function Io(e) {
215
+ var Io = !1, wt = !1;
216
+ function Ao(e) {
217
217
  var t = wt;
218
218
  try {
219
219
  return wt = !1, [e(), wt];
@@ -221,14 +221,14 @@ function Io(e) {
221
221
  wt = t;
222
222
  }
223
223
  }
224
- function Ci(e, t) {
224
+ function Li(e, t) {
225
225
  if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
226
226
  }
227
227
  function yr(e, t) {
228
- Ci(e, t), t.add(e);
228
+ Li(e, t), t.add(e);
229
229
  }
230
230
  function T(e, t, r) {
231
- Ci(e, t), t.set(e, r);
231
+ Li(e, t), t.set(e, r);
232
232
  }
233
233
  function M(e, t, r) {
234
234
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
@@ -240,10 +240,10 @@ function l(e, t) {
240
240
  function b(e, t, r) {
241
241
  return e.set(M(e, t), r), r;
242
242
  }
243
- var Li, ve = /* @__PURE__ */ new Set(), $ = null, Ur = null, z = null, nr = null, ct = !1, Yt = !1, et = null, Ct = null, Ni = 0;
244
- var Ao = 1, Lt = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakSet(), Fe = class Di {
243
+ var Ni, ve = /* @__PURE__ */ new Set(), $ = null, Gr = null, z = null, nr = null, ct = !1, Yt = !1, et = null, Ct = null, Di = 0;
244
+ var Eo = 1, Lt = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakSet(), Fe = class ji {
245
245
  constructor() {
246
- yr(this, ne), g(this, "id", Ao++), g(this, "current", /* @__PURE__ */ new Map()), g(this, "previous", /* @__PURE__ */ new Map()), T(this, Lt, /* @__PURE__ */ new Set()), T(this, Tt, /* @__PURE__ */ new Set()), T(this, Be, 0), T(this, He, 0), T(this, It, null), T(this, Q, []), T(this, ft, /* @__PURE__ */ new Set()), T(this, Ne, /* @__PURE__ */ new Set()), T(this, xe, /* @__PURE__ */ new Map()), g(this, "is_fork", !1), T(this, kt, !1);
246
+ yr(this, ne), g(this, "id", Eo++), g(this, "current", /* @__PURE__ */ new Map()), g(this, "previous", /* @__PURE__ */ new Map()), T(this, Lt, /* @__PURE__ */ new Set()), T(this, Tt, /* @__PURE__ */ new Set()), T(this, Be, 0), T(this, He, 0), T(this, It, null), T(this, Q, []), T(this, ft, /* @__PURE__ */ new Set()), T(this, Ne, /* @__PURE__ */ new Set()), T(this, xe, /* @__PURE__ */ new Map()), g(this, "is_fork", !1), T(this, kt, !1);
247
247
  }
248
248
  skip_effect(t) {
249
249
  l(xe, this).has(t) || l(xe, this).set(t, {
@@ -273,9 +273,9 @@ var Ao = 1, Lt = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap
273
273
  flush() {
274
274
  var t = null;
275
275
  try {
276
- Yt = !0, $ = this, M(ne, this, ji).call(this);
276
+ Yt = !0, $ = this, M(ne, this, zi).call(this);
277
277
  } finally {
278
- Ni = 0, nr = null, et = null, Ct = null, Yt = !1, $ = null, z = null, Ae.clear();
278
+ Di = 0, nr = null, et = null, Ct = null, Yt = !1, $ = null, z = null, Ae.clear();
279
279
  }
280
280
  }
281
281
  discard() {
@@ -302,11 +302,11 @@ var Ao = 1, Lt = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap
302
302
  l(Tt, this).add(t);
303
303
  }
304
304
  settled() {
305
- return (l(It, this) ?? b(It, this, Ti())).promise;
305
+ return (l(It, this) ?? b(It, this, ki())).promise;
306
306
  }
307
307
  static ensure() {
308
308
  if ($ === null) {
309
- const t = $ = new Di();
309
+ const t = $ = new ji();
310
310
  Yt || (ve.add($), ct || Ze(() => {
311
311
  $ === t && t.flush();
312
312
  }));
@@ -331,7 +331,7 @@ var Ao = 1, Lt = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap
331
331
  for (var r = t; r.parent !== null; ) {
332
332
  r = r.parent;
333
333
  var i = r.f;
334
- if (et !== null && r === k && (Ee || (S === null || !(S.f & 2)) && !$o))
334
+ if (et !== null && r === k && (Ee || (S === null || !(S.f & 2)) && !Io))
335
335
  return;
336
336
  if (i & 96) {
337
337
  if (!(i & 1024)) return;
@@ -341,12 +341,12 @@ var Ao = 1, Lt = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap
341
341
  l(Q, this).push(r);
342
342
  }
343
343
  };
344
- Li = Fe;
345
- function Gr() {
344
+ Ni = Fe;
345
+ function qr() {
346
346
  return this.is_fork || l(He, this) > 0;
347
347
  }
348
- function ji() {
349
- if (Ni++ > 1e3 && (ve.delete(this), Mo()), !M(ne, this, Gr).call(this)) {
348
+ function zi() {
349
+ if (Di++ > 1e3 && (ve.delete(this), Oo()), !M(ne, this, qr).call(this)) {
350
350
  for (const s of l(ft, this))
351
351
  l(Ne, this).delete(s), C(s, le), this.schedule(s);
352
352
  for (const s of l(Ne, this))
@@ -356,30 +356,30 @@ function ji() {
356
356
  b(Q, this, []), this.apply();
357
357
  var t = et = [], r = [], i = Ct = [];
358
358
  for (const s of e) try {
359
- M(ne, this, zi).call(this, s, t, r);
359
+ M(ne, this, Vi).call(this, s, t, r);
360
360
  } catch (a) {
361
- throw Bi(s), a;
361
+ throw Hi(s), a;
362
362
  }
363
363
  if ($ = null, i.length > 0) {
364
- var n = Li.ensure();
364
+ var n = Ni.ensure();
365
365
  for (const s of i) n.schedule(s);
366
366
  }
367
- if (et = null, Ct = null, M(ne, this, Gr).call(this)) {
368
- M(ne, this, qr).call(this, r), M(ne, this, qr).call(this, t);
369
- for (const [s, a] of l(xe, this)) Wi(s, a);
367
+ if (et = null, Ct = null, M(ne, this, qr).call(this)) {
368
+ M(ne, this, Yr).call(this, r), M(ne, this, Yr).call(this, t);
369
+ for (const [s, a] of l(xe, this)) Bi(s, a);
370
370
  } else {
371
371
  l(Be, this) === 0 && ve.delete(this), l(ft, this).clear(), l(Ne, this).clear();
372
372
  for (const s of l(Lt, this)) s(this);
373
- l(Lt, this).clear(), Ur = this, Yr(r), Yr(t), Ur = null, l(It, this)?.resolve();
373
+ l(Lt, this).clear(), Gr = this, Kr(r), Kr(t), Gr = null, l(It, this)?.resolve();
374
374
  }
375
375
  var o = $;
376
376
  if (l(Q, this).length > 0) {
377
377
  const s = o ?? (o = this);
378
378
  l(Q, s).push(...l(Q, this).filter((a) => !l(Q, s).includes(a)));
379
379
  }
380
- o !== null && (ve.add(o), M(ne, o, ji).call(o)), ve.has(this) || M(ne, this, Eo).call(this);
380
+ o !== null && (ve.add(o), M(ne, o, zi).call(o)), ve.has(this) || M(ne, this, Mo).call(this);
381
381
  }
382
- function zi(e, t, r) {
382
+ function Vi(e, t, r) {
383
383
  e.f ^= K;
384
384
  for (var i = e.first; i !== null; ) {
385
385
  var n = i.f, o = (n & 96) !== 0;
@@ -401,10 +401,10 @@ function zi(e, t, r) {
401
401
  }
402
402
  }
403
403
  }
404
- function qr(e) {
405
- for (var t = 0; t < e.length; t += 1) Ri(e[t], l(ft, this), l(Ne, this));
404
+ function Yr(e) {
405
+ for (var t = 0; t < e.length; t += 1) Ci(e[t], l(ft, this), l(Ne, this));
406
406
  }
407
- function Eo() {
407
+ function Mo() {
408
408
  for (const a of ve) {
409
409
  var e = a.id < this.id, t = [];
410
410
  for (const [c, h] of this.current) {
@@ -418,10 +418,10 @@ function Eo() {
418
418
  else if (t.length > 0) {
419
419
  a.activate();
420
420
  var i = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
421
- for (var o of t) Vi(o, r, i, n);
421
+ for (var o of t) Fi(o, r, i, n);
422
422
  if (l(Q, a).length > 0) {
423
423
  a.apply();
424
- for (var s of l(Q, a)) M(ne, a, zi).call(a, s, [], []);
424
+ for (var s of l(Q, a)) M(ne, a, Vi).call(a, s, [], []);
425
425
  b(Q, a, []);
426
426
  }
427
427
  a.deactivate();
@@ -434,32 +434,32 @@ function or(e) {
434
434
  try {
435
435
  var r;
436
436
  for (e && ($ !== null && !$.is_fork && $.flush(), r = e()); ; ) {
437
- if (ko(), $ === null) return r;
437
+ if (So(), $ === null) return r;
438
438
  $.flush();
439
439
  }
440
440
  } finally {
441
441
  ct = t;
442
442
  }
443
443
  }
444
- function Mo() {
444
+ function Oo() {
445
445
  if (0) {
446
446
  var e;
447
447
  for (const r of $.current.keys()) for (const [i, n] of r.updated ?? [])
448
448
  var t;
449
449
  }
450
450
  try {
451
- fo();
451
+ ho();
452
452
  } catch (r) {
453
453
  $e(r, nr);
454
454
  }
455
455
  }
456
456
  var oe = null;
457
- function Yr(e) {
457
+ function Kr(e) {
458
458
  var t = e.length;
459
459
  if (t !== 0) {
460
460
  for (var r = 0; r < t; ) {
461
461
  var i = e[r++];
462
- if (!(i.f & 24576) && bt(i) && (oe = /* @__PURE__ */ new Set(), rt(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null && sn(i), oe?.size > 0)) {
462
+ if (!(i.f & 24576) && bt(i) && (oe = /* @__PURE__ */ new Set(), rt(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null && an(i), oe?.size > 0)) {
463
463
  Ae.clear();
464
464
  for (const n of oe) {
465
465
  if (n.f & 24576) continue;
@@ -478,19 +478,19 @@ function Yr(e) {
478
478
  oe = null;
479
479
  }
480
480
  }
481
- function Vi(e, t, r, i) {
481
+ function Fi(e, t, r, i) {
482
482
  if (!r.has(e) && (r.add(e), e.reactions !== null))
483
483
  for (const n of e.reactions) {
484
484
  const o = n.f;
485
- o & 2 ? Vi(n, t, r, i) : o & 4194320 && !(o & 2048) && Fi(n, t, i) && (C(n, le), wr(n));
485
+ o & 2 ? Fi(n, t, r, i) : o & 4194320 && !(o & 2048) && Wi(n, t, i) && (C(n, le), wr(n));
486
486
  }
487
487
  }
488
- function Fi(e, t, r) {
488
+ function Wi(e, t, r) {
489
489
  const i = r.get(e);
490
490
  if (i !== void 0) return i;
491
491
  if (e.deps !== null) for (const n of e.deps) {
492
492
  if (Je.call(t, n)) return !0;
493
- if (n.f & 2 && Fi(n, t, r))
493
+ if (n.f & 2 && Wi(n, t, r))
494
494
  return r.set(n, !0), !0;
495
495
  }
496
496
  return r.set(e, !1), !1;
@@ -498,19 +498,19 @@ function Fi(e, t, r) {
498
498
  function wr(e) {
499
499
  $.schedule(e);
500
500
  }
501
- function Wi(e, t) {
501
+ function Bi(e, t) {
502
502
  if (!(e.f & 32 && e.f & 1024)) {
503
503
  e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), C(e, K);
504
504
  for (var r = e.first; r !== null; )
505
- Wi(r, t), r = r.next;
505
+ Bi(r, t), r = r.next;
506
506
  }
507
507
  }
508
- function Bi(e) {
508
+ function Hi(e) {
509
509
  C(e, K);
510
510
  for (var t = e.first; t !== null; )
511
- Bi(t), t = t.next;
511
+ Hi(t), t = t.next;
512
512
  }
513
- function Oo(e) {
513
+ function Po(e) {
514
514
  let t = 0, r = gt(0), i;
515
515
  return () => {
516
516
  Ir() && (u(r), Ar(() => (t === 0 && (i = Ft(() => e(() => ut(r)))), t += 1, () => {
@@ -520,31 +520,31 @@ function Oo(e) {
520
520
  })));
521
521
  };
522
522
  }
523
- var Po = gr | it;
524
- function xo(e, t, r, i) {
525
- new Ro(e, t, r, i);
523
+ var xo = gr | it;
524
+ function Ro(e, t, r, i) {
525
+ new Co(e, t, r, i);
526
526
  }
527
- var Z = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Kr = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakSet(), Ro = class {
527
+ var Z = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Xr = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakSet(), Co = class {
528
528
  constructor(e, t, r, i) {
529
- yr(this, D), g(this, "parent", void 0), g(this, "is_pending", !1), g(this, "transform_error", void 0), T(this, Z, void 0), T(this, Kt, O ? I : null), T(this, Se, void 0), T(this, dt, void 0), T(this, G, void 0), T(this, Ie, null), T(this, ee, null), T(this, he, null), T(this, De, null), T(this, Ue, 0), T(this, je, 0), T(this, St, !1), T(this, sr, /* @__PURE__ */ new Set()), T(this, ar, /* @__PURE__ */ new Set()), T(this, Oe, null), T(this, Kr, Oo(() => (b(Oe, this, gt(l(Ue, this))), () => {
529
+ yr(this, D), g(this, "parent", void 0), g(this, "is_pending", !1), g(this, "transform_error", void 0), T(this, Z, void 0), T(this, Kt, O ? I : null), T(this, Se, void 0), T(this, dt, void 0), T(this, G, void 0), T(this, Ie, null), T(this, ee, null), T(this, he, null), T(this, De, null), T(this, Ue, 0), T(this, je, 0), T(this, St, !1), T(this, sr, /* @__PURE__ */ new Set()), T(this, ar, /* @__PURE__ */ new Set()), T(this, Oe, null), T(this, Xr, Po(() => (b(Oe, this, gt(l(Ue, this))), () => {
530
530
  b(Oe, this, null);
531
531
  }))), b(Z, this, e), b(Se, this, t), b(dt, this, (n) => {
532
532
  var o = k;
533
533
  o.b = this, o.f |= 128, r(n);
534
- }), this.parent = k.b, this.transform_error = i ?? this.parent?.transform_error ?? ((n) => n), b(G, this, nn(() => {
534
+ }), this.parent = k.b, this.transform_error = i ?? this.parent?.transform_error ?? ((n) => n), b(G, this, on(() => {
535
535
  if (O) {
536
536
  const n = l(Kt, this);
537
537
  mr();
538
538
  const o = n.data === "[!";
539
539
  if (n.data.startsWith("[?")) {
540
540
  const s = JSON.parse(n.data.slice(2));
541
- M(D, this, Lo).call(this, s);
542
- } else o ? M(D, this, No).call(this) : M(D, this, Co).call(this);
543
- } else M(D, this, Xr).call(this);
544
- }, Po)), O && b(Z, this, I);
541
+ M(D, this, No).call(this, s);
542
+ } else o ? M(D, this, Do).call(this) : M(D, this, Lo).call(this);
543
+ } else M(D, this, Jr).call(this);
544
+ }, xo)), O && b(Z, this, I);
545
545
  }
546
546
  defer_effect(e) {
547
- Ri(e, l(sr, this), l(ar, this));
547
+ Ci(e, l(sr, this), l(ar, this));
548
548
  }
549
549
  is_rendered() {
550
550
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
@@ -553,28 +553,28 @@ var Z = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), Se =
553
553
  return !!l(Se, this).pending;
554
554
  }
555
555
  update_pending_count(e, t) {
556
- M(D, this, Hi).call(this, e, t), b(Ue, this, l(Ue, this) + e), !(!l(Oe, this) || l(St, this)) && (b(St, this, !0), Ze(() => {
556
+ M(D, this, Ui).call(this, e, t), b(Ue, this, l(Ue, this) + e), !(!l(Oe, this) || l(St, this)) && (b(St, this, !0), Ze(() => {
557
557
  b(St, this, !1), l(Oe, this) && Dt(l(Oe, this), l(Ue, this));
558
558
  }));
559
559
  }
560
560
  get_effect_pending() {
561
- return l(Kr, this).call(this), u(l(Oe, this));
561
+ return l(Xr, this).call(this), u(l(Oe, this));
562
562
  }
563
563
  error(e) {
564
564
  var t = l(Se, this).onerror;
565
565
  let r = l(Se, this).failed;
566
566
  if (!t && !r) throw e;
567
- l(Ie, this) && (V(l(Ie, this)), b(Ie, this, null)), l(ee, this) && (V(l(ee, this)), b(ee, this, null)), l(he, this) && (V(l(he, this)), b(he, this, null)), O && (re(l(Kt, this)), Si(), re($i()));
567
+ l(Ie, this) && (V(l(Ie, this)), b(Ie, this, null)), l(ee, this) && (V(l(ee, this)), b(ee, this, null)), l(he, this) && (V(l(he, this)), b(he, this, null)), O && (re(l(Kt, this)), $i(), re(Ii()));
568
568
  var i = !1, n = !1;
569
569
  const o = () => {
570
570
  if (i) {
571
- bo();
571
+ yo();
572
572
  return;
573
573
  }
574
- i = !0, n && mo(), l(he, this) !== null && mt(l(he, this), () => {
574
+ i = !0, n && bo(), l(he, this) !== null && mt(l(he, this), () => {
575
575
  b(he, this, null);
576
576
  }), M(D, this, lr).call(this, () => {
577
- M(D, this, Xr).call(this);
577
+ M(D, this, Jr).call(this);
578
578
  });
579
579
  }, s = (a) => {
580
580
  try {
@@ -605,21 +605,21 @@ var Z = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), Se =
605
605
  });
606
606
  }
607
607
  };
608
- function Co() {
608
+ function Lo() {
609
609
  try {
610
610
  b(Ie, this, ge(() => l(dt, this).call(this, l(Z, this))));
611
611
  } catch (e) {
612
612
  this.error(e);
613
613
  }
614
614
  }
615
- function Lo(e) {
615
+ function No(e) {
616
616
  const t = l(Se, this).failed;
617
617
  t && b(he, this, ge(() => {
618
618
  t(l(Z, this), () => e, () => () => {
619
619
  });
620
620
  }));
621
621
  }
622
- function No() {
622
+ function Do() {
623
623
  const e = l(Se, this).pending;
624
624
  e && (this.is_pending = !0, b(ee, this, ge(() => e(l(Z, this)))), Ze(() => {
625
625
  var t = b(De, this, document.createDocumentFragment()), r = _e();
@@ -628,13 +628,13 @@ function No() {
628
628
  }), M(D, this, Tr).call(this, $));
629
629
  }));
630
630
  }
631
- function Xr() {
631
+ function Jr() {
632
632
  try {
633
633
  if (this.is_pending = this.has_pending_snippet(), b(je, this, 0), b(Ue, this, 0), b(Ie, this, ge(() => {
634
634
  l(dt, this).call(this, l(Z, this));
635
635
  })), l(je, this) > 0) {
636
636
  var e = b(De, this, document.createDocumentFragment());
637
- cn(l(Ie, this), e);
637
+ un(l(Ie, this), e);
638
638
  const t = l(Se, this).pending;
639
639
  b(ee, this, ge(() => t(l(Z, this))));
640
640
  } else M(D, this, Tr).call(this, $);
@@ -651,16 +651,16 @@ function lr(e) {
651
651
  try {
652
652
  return Fe.ensure(), e();
653
653
  } catch (n) {
654
- return Pi(n), null;
654
+ return xi(n), null;
655
655
  } finally {
656
656
  ae(t), X(r), Qe(i);
657
657
  }
658
658
  }
659
- function Hi(e, t) {
659
+ function Ui(e, t) {
660
660
  if (!this.has_pending_snippet()) {
661
661
  if (this.parent) {
662
662
  var r;
663
- M(D, r = this.parent, Hi).call(r, e, t);
663
+ M(D, r = this.parent, Ui).call(r, e, t);
664
664
  }
665
665
  return;
666
666
  }
@@ -668,14 +668,14 @@ function Hi(e, t) {
668
668
  b(ee, this, null);
669
669
  }), l(De, this) && (l(Z, this).before(l(De, this)), b(De, this, null)));
670
670
  }
671
- function Do(e, t, r, i) {
672
- const n = _t() ? Vt : Gi;
671
+ function jo(e, t, r, i) {
672
+ const n = _t() ? Vt : qi;
673
673
  var o = e.filter((f) => !f.settled);
674
674
  if (r.length === 0 && o.length === 0) {
675
675
  i(t.map(n));
676
676
  return;
677
677
  }
678
- var s = k, a = jo(), c = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((f) => f.promise)) : null;
678
+ var s = k, a = zo(), c = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((f) => f.promise)) : null;
679
679
  function h(f) {
680
680
  a();
681
681
  try {
@@ -689,15 +689,15 @@ function Do(e, t, r, i) {
689
689
  c.then(() => h(t.map(n)));
690
690
  return;
691
691
  }
692
- var p = Ui();
692
+ var p = Gi();
693
693
  function d() {
694
- Promise.all(r.map((f) => /* @__PURE__ */ zo(f))).then((f) => h([...t.map(n), ...f])).catch((f) => $e(f, s)).finally(() => p());
694
+ Promise.all(r.map((f) => /* @__PURE__ */ Vo(f))).then((f) => h([...t.map(n), ...f])).catch((f) => $e(f, s)).finally(() => p());
695
695
  }
696
696
  c ? c.then(() => {
697
697
  a(), d(), Nt();
698
698
  }) : d();
699
699
  }
700
- function jo() {
700
+ function zo() {
701
701
  var e = k, t = S, r = R, i = $;
702
702
  if (0) var n;
703
703
  return function(s = !0) {
@@ -707,7 +707,7 @@ function jo() {
707
707
  function Nt(e = !0) {
708
708
  ae(null), X(null), Qe(null), e && $?.deactivate();
709
709
  }
710
- function Ui() {
710
+ function Gi() {
711
711
  var e = k.b, t = $, r = e.is_rendered();
712
712
  return e.update_pending_count(1, t), t.increment(r), (i = !1) => {
713
713
  e.update_pending_count(-1, t), t.decrement(r, i);
@@ -720,7 +720,7 @@ function Vt(e) {
720
720
  ctx: R,
721
721
  deps: null,
722
722
  effects: null,
723
- equals: Ii,
723
+ equals: Ai,
724
724
  f: t,
725
725
  fn: e,
726
726
  reactions: null,
@@ -732,12 +732,12 @@ function Vt(e) {
732
732
  };
733
733
  }
734
734
  // @__NO_SIDE_EFFECTS__
735
- function zo(e, t, r) {
735
+ function Vo(e, t, r) {
736
736
  let i = k;
737
- i === null && ao();
737
+ i === null && lo();
738
738
  var n = void 0, o = gt(N), s = !S, a = /* @__PURE__ */ new Map();
739
- return ts(() => {
740
- var c = k, h = Ti();
739
+ return rs(() => {
740
+ var c = k, h = ki();
741
741
  n = h.promise;
742
742
  try {
743
743
  Promise.resolve(e()).then(h.resolve, h.reject).finally(Nt);
@@ -746,7 +746,7 @@ function zo(e, t, r) {
746
746
  }
747
747
  var p = $;
748
748
  if (s) {
749
- if (c.f & 32768) var d = Ui();
749
+ if (c.f & 32768) var d = Gi();
750
750
  if (i.b.is_rendered())
751
751
  a.get(p)?.reject(pe), a.delete(p);
752
752
  else {
@@ -770,7 +770,7 @@ function zo(e, t, r) {
770
770
  }
771
771
  };
772
772
  h.promise.then(f, (v) => f(null, v || "unknown"));
773
- }), Qo(() => {
773
+ }), Zo(() => {
774
774
  for (const c of a.values()) c.reject(pe);
775
775
  }), new Promise((c) => {
776
776
  function h(p) {
@@ -783,23 +783,23 @@ function zo(e, t, r) {
783
783
  });
784
784
  }
785
785
  // @__NO_SIDE_EFFECTS__
786
- function Jr(e) {
786
+ function Qr(e) {
787
787
  const t = /* @__PURE__ */ Vt(e);
788
- return Ee || un(t), t;
788
+ return Ee || fn(t), t;
789
789
  }
790
790
  // @__NO_SIDE_EFFECTS__
791
- function Gi(e) {
791
+ function qi(e) {
792
792
  const t = /* @__PURE__ */ Vt(e);
793
- return t.equals = Ai, t;
793
+ return t.equals = Ei, t;
794
794
  }
795
- function Vo(e) {
795
+ function Fo(e) {
796
796
  var t = e.effects;
797
797
  if (t !== null) {
798
798
  e.effects = null;
799
799
  for (var r = 0; r < t.length; r += 1) V(t[r]);
800
800
  }
801
801
  }
802
- function Fo(e) {
802
+ function Wo(e) {
803
803
  for (var t = e.parent; t !== null; ) {
804
804
  if (!(t.f & 2)) return t.f & 16384 ? null : t;
805
805
  t = t.parent;
@@ -808,41 +808,41 @@ function Fo(e) {
808
808
  }
809
809
  function kr(e) {
810
810
  var t, r = k;
811
- if (ae(Fo(e)), 0)
811
+ if (ae(Wo(e)), 0)
812
812
  try {
813
813
  } finally {
814
814
  }
815
815
  else try {
816
- e.f &= ~pt, Vo(e), t = pn(e);
816
+ e.f &= ~pt, Fo(e), t = vn(e);
817
817
  } finally {
818
818
  ae(r);
819
819
  }
820
820
  return t;
821
821
  }
822
- function qi(e) {
822
+ function Yi(e) {
823
823
  var t = e.v, r = kr(e);
824
- if (!e.equals(r) && (e.wv = dn(), (!$?.is_fork || e.deps === null) && (e.v = r, $?.capture(e, t), e.deps === null))) {
824
+ if (!e.equals(r) && (e.wv = hn(), (!$?.is_fork || e.deps === null) && (e.v = r, $?.capture(e, t), e.deps === null))) {
825
825
  C(e, K);
826
826
  return;
827
827
  }
828
828
  Me || (z !== null ? (Ir() || $?.is_fork) && z.set(e, r) : br(e));
829
829
  }
830
- function Wo(e) {
830
+ function Bo(e) {
831
831
  if (e.effects !== null)
832
- for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(pe), t.teardown = Qn, t.ac = null, ht(t, 0), Er(t));
832
+ for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(pe), t.teardown = Zn, t.ac = null, ht(t, 0), Er(t));
833
833
  }
834
- function Yi(e) {
834
+ function Ki(e) {
835
835
  if (e.effects !== null)
836
836
  for (const t of e.effects) t.teardown && rt(t);
837
837
  }
838
838
  var cr = /* @__PURE__ */ new Set(), Ae = /* @__PURE__ */ new Map();
839
- var Ki = !1;
839
+ var Xi = !1;
840
840
  function gt(e, t) {
841
841
  var r = {
842
842
  f: 0,
843
843
  v: e,
844
844
  reactions: null,
845
- equals: Ii,
845
+ equals: Ai,
846
846
  rv: 0,
847
847
  wv: 0
848
848
  };
@@ -851,19 +851,19 @@ function gt(e, t) {
851
851
  // @__NO_SIDE_EFFECTS__
852
852
  function x(e, t) {
853
853
  const r = gt(e, t);
854
- return un(r), r;
854
+ return fn(r), r;
855
855
  }
856
856
  // @__NO_SIDE_EFFECTS__
857
- function Bo(e, t = !1, r = !0) {
857
+ function Ho(e, t = !1, r = !0) {
858
858
  const i = gt(e);
859
- if (t || (i.equals = Ai), vt && r && R !== null && R.l !== null) {
859
+ if (t || (i.equals = Ei), vt && r && R !== null && R.l !== null) {
860
860
  var n;
861
861
  ((n = R.l).s ?? (n.s = [])).push(i);
862
862
  }
863
863
  return i;
864
864
  }
865
865
  function P(e, t, r = !1) {
866
- S !== null && (!te || S.f & 131072) && _t() && S.f & 4325394 && (Y === null || !Je.call(Y, e)) && go();
866
+ S !== null && (!te || S.f & 131072) && _t() && S.f & 4325394 && (Y === null || !Je.call(Y, e)) && mo();
867
867
  let i = r ? se(t) : t;
868
868
  return Dt(e, i, Ct);
869
869
  }
@@ -876,12 +876,12 @@ function Dt(e, t, r = null) {
876
876
  const o = e;
877
877
  e.f & 2048 && kr(o), z === null && br(o);
878
878
  }
879
- e.wv = dn(), Xi(e, le, r), _t() && k !== null && k.f & 1024 && !(k.f & 96) && (q === null ? ss([e]) : q.push(e)), !n.is_fork && cr.size > 0 && !Ki && Ho();
879
+ e.wv = hn(), Ji(e, le, r), _t() && k !== null && k.f & 1024 && !(k.f & 96) && (q === null ? as([e]) : q.push(e)), !n.is_fork && cr.size > 0 && !Xi && Uo();
880
880
  }
881
881
  return t;
882
882
  }
883
- function Ho() {
884
- Ki = !1;
883
+ function Uo() {
884
+ Xi = !1;
885
885
  for (const e of cr)
886
886
  e.f & 1024 && C(e, Ve), bt(e) && rt(e);
887
887
  cr.clear();
@@ -889,7 +889,7 @@ function Ho() {
889
889
  function ut(e) {
890
890
  P(e, e.v + 1);
891
891
  }
892
- function Xi(e, t, r) {
892
+ function Ji(e, t, r) {
893
893
  var i = e.reactions;
894
894
  if (i !== null)
895
895
  for (var n = _t(), o = i.length, s = 0; s < o; s++) {
@@ -898,7 +898,7 @@ function Xi(e, t, r) {
898
898
  var h = (c & le) === 0;
899
899
  if (h && C(a, t), c & 2) {
900
900
  var p = a;
901
- z?.delete(p), c & 65536 || (c & 512 && (a.f |= pt), Xi(p, Ve, r));
901
+ z?.delete(p), c & 65536 || (c & 512 && (a.f |= pt), Ji(p, Ve, r));
902
902
  } else if (h) {
903
903
  var d = a;
904
904
  c & 16 && oe !== null && oe.add(d), r !== null ? r.push(d) : wr(d);
@@ -906,31 +906,31 @@ function Xi(e, t, r) {
906
906
  }
907
907
  }
908
908
  }
909
- var Uo = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
909
+ var Go = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
910
910
  function se(e) {
911
911
  if (typeof e != "object" || e === null || lt in e) return e;
912
- const t = wi(e);
913
- if (t !== Xn && t !== Jn) return e;
914
- var r = /* @__PURE__ */ new Map(), i = Gn(e), n = /* @__PURE__ */ x(0), o = null, s = ze, a = (d) => {
912
+ const t = Ti(e);
913
+ if (t !== Jn && t !== Qn) return e;
914
+ var r = /* @__PURE__ */ new Map(), i = qn(e), n = /* @__PURE__ */ x(0), o = null, s = ze, a = (d) => {
915
915
  if (ze === s) return d();
916
916
  var f = S, v = ze;
917
- X(null), ri(s);
917
+ X(null), ii(s);
918
918
  var _ = d();
919
- return X(f), ri(v), _;
919
+ return X(f), ii(v), _;
920
920
  };
921
921
  i && r.set("length", /* @__PURE__ */ x(e.length, o));
922
922
  var c = "";
923
923
  let h = !1;
924
924
  function p(d) {
925
925
  if (!h) {
926
- h = !0, c = d, Hr(n, `${c} version`);
927
- for (const [f, v] of r) Hr(v, Go(c, f));
926
+ h = !0, c = d, Ur(n, `${c} version`);
927
+ for (const [f, v] of r) Ur(v, qo(c, f));
928
928
  h = !1;
929
929
  }
930
930
  }
931
931
  return new Proxy(e, {
932
932
  defineProperty(d, f, v) {
933
- (!("value" in v) || v.configurable === !1 || v.enumerable === !1 || v.writable === !1) && vo();
933
+ (!("value" in v) || v.configurable === !1 || v.enumerable === !1 || v.writable === !1) && _o();
934
934
  var _ = r.get(f);
935
935
  return _ === void 0 ? a(() => {
936
936
  var m = /* @__PURE__ */ x(v.value, o);
@@ -1017,19 +1017,19 @@ function se(e) {
1017
1017
  return f;
1018
1018
  },
1019
1019
  setPrototypeOf() {
1020
- _o();
1020
+ go();
1021
1021
  }
1022
1022
  });
1023
1023
  }
1024
- function Go(e, t) {
1025
- return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : Uo.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
1024
+ function qo(e, t) {
1025
+ return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : Go.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
1026
1026
  }
1027
- var Qr, qo, Ji, Qi, Zi;
1027
+ var Zr, Yo, Qi, Zi, en;
1028
1028
  function ur() {
1029
- if (Qr === void 0) {
1030
- Qr = window, qo = document, Ji = /Firefox/.test(navigator.userAgent);
1029
+ if (Zr === void 0) {
1030
+ Zr = window, Yo = document, Qi = /Firefox/.test(navigator.userAgent);
1031
1031
  var e = Element.prototype, t = Node.prototype, r = Text.prototype;
1032
- Qi = Le(t, "firstChild").get, Zi = Le(t, "nextSibling").get, Vr(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Vr(r) && (r.__t = void 0);
1032
+ Zi = Le(t, "firstChild").get, en = Le(t, "nextSibling").get, Fr(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Fr(r) && (r.__t = void 0);
1033
1033
  }
1034
1034
  }
1035
1035
  function _e(e = "") {
@@ -1037,13 +1037,13 @@ function _e(e = "") {
1037
1037
  }
1038
1038
  // @__NO_SIDE_EFFECTS__
1039
1039
  function tt(e) {
1040
- return Qi.call(e);
1040
+ return Zi.call(e);
1041
1041
  }
1042
1042
  // @__NO_SIDE_EFFECTS__
1043
1043
  function me(e) {
1044
- return Zi.call(e);
1044
+ return en.call(e);
1045
1045
  }
1046
- function Zr(e, t) {
1046
+ function ei(e, t) {
1047
1047
  if (!O) return /* @__PURE__ */ tt(e);
1048
1048
  var r = /* @__PURE__ */ tt(I);
1049
1049
  if (r === null) r = I.appendChild(_e());
@@ -1081,10 +1081,10 @@ function nt(e, t = 1, r = !1) {
1081
1081
  }
1082
1082
  return re(i), i;
1083
1083
  }
1084
- function Yo(e) {
1084
+ function Ko(e) {
1085
1085
  e.textContent = "";
1086
1086
  }
1087
- function Ko() {
1087
+ function Xo() {
1088
1088
  return !Ee || oe !== null ? !1 : (k.f & _r) !== 0;
1089
1089
  }
1090
1090
  function Sr(e, t, r) {
@@ -1097,7 +1097,7 @@ function $r(e) {
1097
1097
  for (; t !== null && t.nodeType === 3; )
1098
1098
  t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
1099
1099
  }
1100
- function en(e) {
1100
+ function tn(e) {
1101
1101
  var t = S, r = k;
1102
1102
  X(null), ae(null);
1103
1103
  try {
@@ -1106,10 +1106,10 @@ function en(e) {
1106
1106
  X(t), ae(r);
1107
1107
  }
1108
1108
  }
1109
- function Xo(e) {
1110
- k === null && (S === null && uo(e), co()), Me && lo(e);
1109
+ function Jo(e) {
1110
+ k === null && (S === null && fo(e), uo()), Me && co(e);
1111
1111
  }
1112
- function Jo(e, t) {
1112
+ function Qo(e, t) {
1113
1113
  var r = t.last;
1114
1114
  r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
1115
1115
  }
@@ -1141,7 +1141,7 @@ function ce(e, t) {
1141
1141
  }
1142
1142
  n.deps === null && n.teardown === null && n.nodes === null && n.first === n.last && !(n.f & 524288) && (n = n.first, e & 16 && e & 65536 && n !== null && (n.f |= gr));
1143
1143
  }
1144
- if (n !== null && (n.parent = r, r !== null && Jo(n, r), S !== null && S.f & 2 && !(e & 64))) {
1144
+ if (n !== null && (n.parent = r, r !== null && Qo(n, r), S !== null && S.f & 2 && !(e & 64))) {
1145
1145
  var o = S;
1146
1146
  (o.effects ?? (o.effects = [])).push(n);
1147
1147
  }
@@ -1150,29 +1150,29 @@ function ce(e, t) {
1150
1150
  function Ir() {
1151
1151
  return S !== null && !te;
1152
1152
  }
1153
- function Qo(e) {
1153
+ function Zo(e) {
1154
1154
  const t = ce(8, null);
1155
1155
  return C(t, K), t.teardown = e, t;
1156
1156
  }
1157
1157
  function at(e) {
1158
- Xo("$effect");
1158
+ Jo("$effect");
1159
1159
  var t = k.f;
1160
1160
  if (!S && t & 32 && !(t & 32768)) {
1161
1161
  var r = R;
1162
1162
  (r.e ?? (r.e = [])).push(e);
1163
- } else return tn(e);
1163
+ } else return rn(e);
1164
1164
  }
1165
- function tn(e) {
1166
- return ce(4 | to, e);
1165
+ function rn(e) {
1166
+ return ce(4 | ro, e);
1167
1167
  }
1168
- function Zo(e) {
1168
+ function es(e) {
1169
1169
  Fe.ensure();
1170
1170
  const t = ce(64 | it, e);
1171
1171
  return () => {
1172
1172
  V(t);
1173
1173
  };
1174
1174
  }
1175
- function es(e) {
1175
+ function ts(e) {
1176
1176
  Fe.ensure();
1177
1177
  const t = ce(64 | it, e);
1178
1178
  return (r = {}) => new Promise((i) => {
@@ -1181,36 +1181,36 @@ function es(e) {
1181
1181
  }) : (V(t), i(void 0));
1182
1182
  });
1183
1183
  }
1184
- function rn(e) {
1184
+ function nn(e) {
1185
1185
  return ce(4, e);
1186
1186
  }
1187
- function ts(e) {
1188
- return ce(ro | it, e);
1187
+ function rs(e) {
1188
+ return ce(io | it, e);
1189
1189
  }
1190
1190
  function Ar(e, t = 0) {
1191
1191
  return ce(8 | t, e);
1192
1192
  }
1193
- function ei(e, t = [], r = [], i = []) {
1194
- Do(i, t, r, (n) => {
1193
+ function ti(e, t = [], r = [], i = []) {
1194
+ jo(i, t, r, (n) => {
1195
1195
  ce(8, () => e(...n.map(u)));
1196
1196
  });
1197
1197
  }
1198
- function nn(e, t = 0) {
1198
+ function on(e, t = 0) {
1199
1199
  var r = ce(16 | t, e);
1200
1200
  return r;
1201
1201
  }
1202
1202
  function ge(e) {
1203
1203
  return ce(32 | it, e);
1204
1204
  }
1205
- function on(e) {
1205
+ function sn(e) {
1206
1206
  var t = e.teardown;
1207
1207
  if (t !== null) {
1208
1208
  const r = Me, i = S;
1209
- ti(!0), X(null);
1209
+ ri(!0), X(null);
1210
1210
  try {
1211
1211
  t.call(null);
1212
1212
  } finally {
1213
- ti(r), X(i);
1213
+ ri(r), X(i);
1214
1214
  }
1215
1215
  }
1216
1216
  }
@@ -1218,14 +1218,14 @@ function Er(e, t = !1) {
1218
1218
  var r = e.first;
1219
1219
  for (e.first = e.last = null; r !== null; ) {
1220
1220
  const n = r.ac;
1221
- n !== null && en(() => {
1221
+ n !== null && tn(() => {
1222
1222
  n.abort(pe);
1223
1223
  });
1224
1224
  var i = r.next;
1225
1225
  r.f & 64 ? r.parent = null : V(r, t), r = i;
1226
1226
  }
1227
1227
  }
1228
- function rs(e) {
1228
+ function is(e) {
1229
1229
  for (var t = e.first; t !== null; ) {
1230
1230
  var r = t.next;
1231
1231
  t.f & 32 || V(t), t = r;
@@ -1233,26 +1233,26 @@ function rs(e) {
1233
1233
  }
1234
1234
  function V(e, t = !0) {
1235
1235
  var r = !1;
1236
- (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (is(e.nodes.start, e.nodes.end), r = !0), C(e, Fr), Er(e, t && !r), ht(e, 0);
1236
+ (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (ns(e.nodes.start, e.nodes.end), r = !0), C(e, Wr), Er(e, t && !r), ht(e, 0);
1237
1237
  var i = e.nodes && e.nodes.t;
1238
1238
  if (i !== null) for (const o of i) o.stop();
1239
- on(e), e.f ^= Fr, e.f |= eo;
1239
+ sn(e), e.f ^= Wr, e.f |= to;
1240
1240
  var n = e.parent;
1241
- n !== null && n.first !== null && sn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1241
+ n !== null && n.first !== null && an(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1242
1242
  }
1243
- function is(e, t) {
1243
+ function ns(e, t) {
1244
1244
  for (; e !== null; ) {
1245
1245
  var r = e === t ? null : /* @__PURE__ */ me(e);
1246
1246
  e.remove(), e = r;
1247
1247
  }
1248
1248
  }
1249
- function sn(e) {
1249
+ function an(e) {
1250
1250
  var t = e.parent, r = e.prev, i = e.next;
1251
1251
  r !== null && (r.next = i), i !== null && (i.prev = r), t !== null && (t.first === e && (t.first = i), t.last === e && (t.last = r));
1252
1252
  }
1253
1253
  function mt(e, t, r = !0) {
1254
1254
  var i = [];
1255
- an(e, i, !0);
1255
+ ln(e, i, !0);
1256
1256
  var n = () => {
1257
1257
  r && V(e), t && t();
1258
1258
  }, o = i.length;
@@ -1261,7 +1261,7 @@ function mt(e, t, r = !0) {
1261
1261
  for (var a of i) a.out(s);
1262
1262
  } else n();
1263
1263
  }
1264
- function an(e, t, r) {
1264
+ function ln(e, t, r) {
1265
1265
  if (!(e.f & 8192)) {
1266
1266
  e.f ^= vr;
1267
1267
  var i = e.nodes && e.nodes.t;
@@ -1269,34 +1269,34 @@ function an(e, t, r) {
1269
1269
  for (const a of i) (a.is_global || r) && t.push(a);
1270
1270
  for (var n = e.first; n !== null; ) {
1271
1271
  var o = n.next, s = (n.f & 65536) !== 0 || (n.f & 32) !== 0 && (e.f & 16) !== 0;
1272
- an(n, t, s ? r : !1), n = o;
1272
+ ln(n, t, s ? r : !1), n = o;
1273
1273
  }
1274
1274
  }
1275
1275
  }
1276
- function ns(e) {
1277
- ln(e, !0);
1276
+ function os(e) {
1277
+ cn(e, !0);
1278
1278
  }
1279
- function ln(e, t) {
1279
+ function cn(e, t) {
1280
1280
  if (e.f & 8192) {
1281
1281
  e.f ^= vr, e.f & 1024 || (C(e, le), Fe.ensure().schedule(e));
1282
1282
  for (var r = e.first; r !== null; ) {
1283
1283
  var i = r.next, n = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
1284
- ln(r, n ? t : !1), r = i;
1284
+ cn(r, n ? t : !1), r = i;
1285
1285
  }
1286
1286
  var o = e.nodes && e.nodes.t;
1287
1287
  if (o !== null)
1288
1288
  for (const s of o) (s.is_global || t) && s.in();
1289
1289
  }
1290
1290
  }
1291
- function cn(e, t) {
1291
+ function un(e, t) {
1292
1292
  if (e.nodes)
1293
1293
  for (var r = e.nodes.start, i = e.nodes.end; r !== null; ) {
1294
1294
  var n = r === i ? null : /* @__PURE__ */ me(r);
1295
1295
  t.append(r), r = n;
1296
1296
  }
1297
1297
  }
1298
- var os = null, At = !1, Me = !1;
1299
- function ti(e) {
1298
+ var ss = null, At = !1, Me = !1;
1299
+ function ri(e) {
1300
1300
  Me = e;
1301
1301
  }
1302
1302
  var S = null, te = !1;
@@ -1308,19 +1308,19 @@ function ae(e) {
1308
1308
  k = e;
1309
1309
  }
1310
1310
  var Y = null;
1311
- function un(e) {
1311
+ function fn(e) {
1312
1312
  S !== null && (!Ee || S.f & 2) && (Y === null ? Y = [e] : Y.push(e));
1313
1313
  }
1314
1314
  var j = null, W = 0, q = null;
1315
- function ss(e) {
1315
+ function as(e) {
1316
1316
  q = e;
1317
1317
  }
1318
- var fn = 1, Ce = 0, ze = Ce;
1319
- function ri(e) {
1318
+ var dn = 1, Ce = 0, ze = Ce;
1319
+ function ii(e) {
1320
1320
  ze = e;
1321
1321
  }
1322
- function dn() {
1323
- return ++fn;
1322
+ function hn() {
1323
+ return ++dn;
1324
1324
  }
1325
1325
  function bt(e) {
1326
1326
  var t = e.f;
@@ -1328,27 +1328,27 @@ function bt(e) {
1328
1328
  if (t & 2 && (e.f &= ~pt), t & 4096) {
1329
1329
  for (var r = e.deps, i = r.length, n = 0; n < i; n++) {
1330
1330
  var o = r[n];
1331
- if (bt(o) && qi(o), o.wv > e.wv) return !0;
1331
+ if (bt(o) && Yi(o), o.wv > e.wv) return !0;
1332
1332
  }
1333
1333
  t & 512 && z === null && C(e, K);
1334
1334
  }
1335
1335
  return !1;
1336
1336
  }
1337
- function hn(e, t, r = !0) {
1337
+ function pn(e, t, r = !0) {
1338
1338
  var i = e.reactions;
1339
1339
  if (i !== null && !(!Ee && Y !== null && Je.call(Y, e)))
1340
1340
  for (var n = 0; n < i.length; n++) {
1341
1341
  var o = i[n];
1342
- o.f & 2 ? hn(o, t, !1) : t === o && (r ? C(o, le) : o.f & 1024 && C(o, Ve), wr(o));
1342
+ o.f & 2 ? pn(o, t, !1) : t === o && (r ? C(o, le) : o.f & 1024 && C(o, Ve), wr(o));
1343
1343
  }
1344
1344
  }
1345
- function pn(e) {
1345
+ function vn(e) {
1346
1346
  var t = j, r = W, i = q, n = S, o = Y, s = R, a = te, c = ze, h = e.f;
1347
- j = null, W = 0, q = null, S = h & 96 ? null : e, Y = null, Qe(e.ctx), te = !1, ze = ++Ce, e.ac !== null && (en(() => {
1347
+ j = null, W = 0, q = null, S = h & 96 ? null : e, Y = null, Qe(e.ctx), te = !1, ze = ++Ce, e.ac !== null && (tn(() => {
1348
1348
  e.ac.abort(pe);
1349
1349
  }), e.ac = null);
1350
1350
  try {
1351
- e.f |= Wr;
1351
+ e.f |= Br;
1352
1352
  var p = e.fn, d = p();
1353
1353
  e.f |= _r;
1354
1354
  var f = e.deps, v = $?.is_fork;
@@ -1362,7 +1362,7 @@ function pn(e) {
1362
1362
  ((m = f[_]).reactions ?? (m.reactions = [])).push(e);
1363
1363
  }
1364
1364
  } else !v && f !== null && W < f.length && (ht(e, W), f.length = W);
1365
- if (_t() && q !== null && !te && f !== null && !(e.f & 6146)) for (_ = 0; _ < q.length; _++) hn(q[_], e);
1365
+ if (_t() && q !== null && !te && f !== null && !(e.f & 6146)) for (_ = 0; _ < q.length; _++) pn(q[_], e);
1366
1366
  if (n !== null && n !== e) {
1367
1367
  if (Ce++, n.deps !== null) for (let y = 0; y < r; y += 1) n.deps[y].rv = Ce;
1368
1368
  if (t !== null) for (const y of t) y.rv = Ce;
@@ -1370,15 +1370,15 @@ function pn(e) {
1370
1370
  }
1371
1371
  return e.f & 8388608 && (e.f ^= Rt), d;
1372
1372
  } catch (y) {
1373
- return Pi(y);
1373
+ return xi(y);
1374
1374
  } finally {
1375
- e.f ^= Wr, j = t, W = r, q = i, S = n, Y = o, Qe(s), te = a, ze = c;
1375
+ e.f ^= Br, j = t, W = r, q = i, S = n, Y = o, Qe(s), te = a, ze = c;
1376
1376
  }
1377
1377
  }
1378
- function as(e, t) {
1378
+ function ls(e, t) {
1379
1379
  let r = t.reactions;
1380
1380
  if (r !== null) {
1381
- var i = qn.call(r, e);
1381
+ var i = Yn.call(r, e);
1382
1382
  if (i !== -1) {
1383
1383
  var n = r.length - 1;
1384
1384
  n === 0 ? r = t.reactions = null : (r[i] = r[n], r.pop());
@@ -1386,13 +1386,13 @@ function as(e, t) {
1386
1386
  }
1387
1387
  if (r === null && t.f & 2 && (j === null || !Je.call(j, t))) {
1388
1388
  var o = t;
1389
- o.f & 512 && (o.f ^= 512, o.f &= ~pt), br(o), Wo(o), ht(o, 0);
1389
+ o.f & 512 && (o.f ^= 512, o.f &= ~pt), br(o), Bo(o), ht(o, 0);
1390
1390
  }
1391
1391
  }
1392
1392
  function ht(e, t) {
1393
1393
  var r = e.deps;
1394
1394
  if (r !== null)
1395
- for (var i = t; i < r.length; i++) as(e, r[i]);
1395
+ for (var i = t; i < r.length; i++) ls(e, r[i]);
1396
1396
  }
1397
1397
  function rt(e) {
1398
1398
  var t = e.f;
@@ -1402,9 +1402,9 @@ function rt(e) {
1402
1402
  if (k = e, At = !0, 0)
1403
1403
  var n, o;
1404
1404
  try {
1405
- t & 16777232 ? rs(e) : Er(e), on(e);
1406
- var s = pn(e);
1407
- if (e.teardown = typeof s == "function" ? s : null, e.wv = fn, 0)
1405
+ t & 16777232 ? is(e) : Er(e), sn(e);
1406
+ var s = vn(e);
1407
+ if (e.teardown = typeof s == "function" ? s : null, e.wv = dn, 0)
1408
1408
  for (var a of e.deps) ;
1409
1409
  } finally {
1410
1410
  At = i, k = r;
@@ -1413,7 +1413,7 @@ function rt(e) {
1413
1413
  }
1414
1414
  function u(e) {
1415
1415
  var t = (e.f & 2) !== 0;
1416
- if (os?.add(e), S !== null && !te && !(k !== null && k.f & 16384) && (Y === null || !Je.call(Y, e))) {
1416
+ if (ss?.add(e), S !== null && !te && !(k !== null && k.f & 16384) && (Y === null || !Je.call(Y, e))) {
1417
1417
  var r = S.deps;
1418
1418
  if (S.f & 2097152)
1419
1419
  e.rv < Ce && (e.rv = Ce, j === null && r !== null && r[W] === e ? W++ : j === null ? j = [e] : j.push(e));
@@ -1437,25 +1437,25 @@ function u(e) {
1437
1437
  var c = e;
1438
1438
  if (Me) {
1439
1439
  var h = c.v;
1440
- return (!(c.f & 1024) && c.reactions !== null || _n(c)) && (h = kr(c)), Ae.set(c, h), h;
1440
+ return (!(c.f & 1024) && c.reactions !== null || gn(c)) && (h = kr(c)), Ae.set(c, h), h;
1441
1441
  }
1442
1442
  var p = (c.f & 512) === 0 && !te && S !== null && (At || (S.f & 512) !== 0), d = (c.f & _r) === 0;
1443
- bt(c) && (p && (c.f |= 512), qi(c)), p && !d && (Yi(c), vn(c));
1443
+ bt(c) && (p && (c.f |= 512), Yi(c)), p && !d && (Ki(c), _n(c));
1444
1444
  }
1445
1445
  if (z?.has(e)) return z.get(e);
1446
1446
  if (e.f & 8388608) throw e.v;
1447
1447
  return e.v;
1448
1448
  }
1449
- function vn(e) {
1449
+ function _n(e) {
1450
1450
  if (e.f |= 512, e.deps !== null)
1451
1451
  for (const t of e.deps)
1452
- (t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (Yi(t), vn(t));
1452
+ (t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (Ki(t), _n(t));
1453
1453
  }
1454
- function _n(e) {
1454
+ function gn(e) {
1455
1455
  if (e.v === N) return !0;
1456
1456
  if (e.deps === null) return !1;
1457
1457
  for (const t of e.deps)
1458
- if (Ae.has(t) || t.f & 2 && _n(t)) return !0;
1458
+ if (Ae.has(t) || t.f & 2 && gn(t)) return !0;
1459
1459
  return !1;
1460
1460
  }
1461
1461
  function Ft(e) {
@@ -1466,19 +1466,19 @@ function Ft(e) {
1466
1466
  te = t;
1467
1467
  }
1468
1468
  }
1469
- var Ye = Symbol("events"), gn = /* @__PURE__ */ new Set(), fr = /* @__PURE__ */ new Set();
1470
- function ii(e, t, r) {
1469
+ var Ye = Symbol("events"), mn = /* @__PURE__ */ new Set(), fr = /* @__PURE__ */ new Set();
1470
+ function ni(e, t, r) {
1471
1471
  (t[Ye] ?? (t[Ye] = {}))[e] = r;
1472
1472
  }
1473
- function ls(e) {
1474
- for (var t = 0; t < e.length; t++) gn.add(e[t]);
1473
+ function cs(e) {
1474
+ for (var t = 0; t < e.length; t++) mn.add(e[t]);
1475
1475
  for (var r of fr) r(e);
1476
1476
  }
1477
- var ni = null;
1478
- function oi(e) {
1477
+ var oi = null;
1478
+ function si(e) {
1479
1479
  var t = this, r = t.ownerDocument, i = e.type, n = e.composedPath?.() || [], o = n[0] || e.target;
1480
- ni = e;
1481
- var s = 0, a = ni === e && e[Ye];
1480
+ oi = e;
1481
+ var s = 0, a = oi === e && e[Ye];
1482
1482
  if (a) {
1483
1483
  var c = n.indexOf(a);
1484
1484
  if (c !== -1 && (t === document || t === window)) {
@@ -1521,13 +1521,13 @@ function oi(e) {
1521
1521
  }
1522
1522
  }
1523
1523
  }
1524
- var cs = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1525
- function us(e) {
1526
- return cs?.createHTML(e) ?? e;
1527
- }
1524
+ var us = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1528
1525
  function fs(e) {
1526
+ return us?.createHTML(e) ?? e;
1527
+ }
1528
+ function ds(e) {
1529
1529
  var t = Sr("template");
1530
- return t.innerHTML = us(e.replaceAll("<!>", "<!---->")), t.content;
1530
+ return t.innerHTML = fs(e.replaceAll("<!>", "<!---->")), t.content;
1531
1531
  }
1532
1532
  function Ke(e, t) {
1533
1533
  var r = k;
@@ -1539,13 +1539,13 @@ function Ke(e, t) {
1539
1539
  });
1540
1540
  }
1541
1541
  // @__NO_SIDE_EFFECTS__
1542
- function mn(e, t) {
1542
+ function bn(e, t) {
1543
1543
  var r = (t & 1) !== 0, i = (t & 2) !== 0, n, o = !e.startsWith("<!>");
1544
1544
  return () => {
1545
1545
  if (O)
1546
1546
  return Ke(I, null), I;
1547
- n === void 0 && (n = fs(o ? e : "<!>" + e), r || (n = /* @__PURE__ */ tt(n)));
1548
- var s = i || Ji ? document.importNode(n, !0) : n.cloneNode(!0);
1547
+ n === void 0 && (n = ds(o ? e : "<!>" + e), r || (n = /* @__PURE__ */ tt(n)));
1548
+ var s = i || Qi ? document.importNode(n, !0) : n.cloneNode(!0);
1549
1549
  if (r) {
1550
1550
  var a = /* @__PURE__ */ tt(s), c = s.lastChild;
1551
1551
  Ke(a, c);
@@ -1553,7 +1553,7 @@ function mn(e, t) {
1553
1553
  return s;
1554
1554
  };
1555
1555
  }
1556
- function ds() {
1556
+ function hs() {
1557
1557
  if (O)
1558
1558
  return Ke(I, null), I;
1559
1559
  var e = document.createDocumentFragment(), t = document.createComment(""), r = _e();
@@ -1567,7 +1567,7 @@ function Et(e, t) {
1567
1567
  }
1568
1568
  e !== null && e.before(t);
1569
1569
  }
1570
- var hs = [
1570
+ var ps = [
1571
1571
  "allowfullscreen",
1572
1572
  "async",
1573
1573
  "autofocus",
@@ -1596,8 +1596,8 @@ var hs = [
1596
1596
  "defer",
1597
1597
  "disablepictureinpicture",
1598
1598
  "disableremoteplayback"
1599
- ], Ua = [
1600
- ...hs,
1599
+ ], Ga = [
1600
+ ...ps,
1601
1601
  "formNoValidate",
1602
1602
  "isMap",
1603
1603
  "noModule",
@@ -1612,17 +1612,17 @@ var hs = [
1612
1612
  "allowFullscreen",
1613
1613
  "disablePictureInPicture",
1614
1614
  "disableRemotePlayback"
1615
- ], ps = ["touchstart", "touchmove"];
1616
- function vs(e) {
1617
- return ps.includes(e);
1615
+ ], vs = ["touchstart", "touchmove"];
1616
+ function _s(e) {
1617
+ return vs.includes(e);
1618
1618
  }
1619
- var _s = [
1619
+ var gs = [
1620
1620
  "$state",
1621
1621
  "$state.raw",
1622
1622
  "$derived",
1623
1623
  "$derived.by"
1624
- ], Ga = [
1625
- ..._s,
1624
+ ], qa = [
1625
+ ...gs,
1626
1626
  "$state.eager",
1627
1627
  "$state.snapshot",
1628
1628
  "$props",
@@ -1637,22 +1637,22 @@ var _s = [
1637
1637
  "$inspect().with",
1638
1638
  "$inspect.trace",
1639
1639
  "$host"
1640
- ], si = !0;
1641
- function gs(e, t) {
1640
+ ], ai = !0;
1641
+ function ms(e, t) {
1642
1642
  var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
1643
1643
  r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = `${r}`);
1644
1644
  }
1645
- function bn(e, t) {
1646
- return yn(e, t);
1645
+ function yn(e, t) {
1646
+ return wn(e, t);
1647
1647
  }
1648
- function ms(e, t) {
1648
+ function bs(e, t) {
1649
1649
  ur(), t.intro = t.intro ?? !1;
1650
1650
  const r = t.target, i = O, n = I;
1651
1651
  try {
1652
1652
  for (var o = /* @__PURE__ */ tt(r); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ me(o);
1653
1653
  if (!o) throw Xe;
1654
1654
  qe(!0), re(o);
1655
- const s = yn(e, {
1655
+ const s = wn(e, {
1656
1656
  ...t,
1657
1657
  anchor: o
1658
1658
  });
@@ -1660,43 +1660,43 @@ function ms(e, t) {
1660
1660
  } catch (s) {
1661
1661
  if (s instanceof Error && s.message.split(`
1662
1662
  `).some((a) => a.startsWith("https://svelte.dev/e/"))) throw s;
1663
- return s !== Xe && console.warn("Failed to hydrate: ", s), t.recover === !1 && ho(), ur(), Yo(r), qe(!1), bn(e, t);
1663
+ return s !== Xe && console.warn("Failed to hydrate: ", s), t.recover === !1 && po(), ur(), Ko(r), qe(!1), yn(e, t);
1664
1664
  } finally {
1665
1665
  qe(i), re(n);
1666
1666
  }
1667
1667
  }
1668
1668
  var $t = /* @__PURE__ */ new Map();
1669
- function yn(e, { target: t, anchor: r, props: i = {}, events: n, context: o, intro: s = !0, transformError: a }) {
1669
+ function wn(e, { target: t, anchor: r, props: i = {}, events: n, context: o, intro: s = !0, transformError: a }) {
1670
1670
  ur();
1671
- var c = void 0, h = es(() => {
1671
+ var c = void 0, h = ts(() => {
1672
1672
  var p = r ?? t.appendChild(_e());
1673
- xo(p, { pending: () => {
1673
+ Ro(p, { pending: () => {
1674
1674
  } }, (v) => {
1675
- Ei({});
1675
+ Mi({});
1676
1676
  var _ = R;
1677
- if (o && (_.c = o), n && (i.$$events = n), O && Ke(v, null), si = s, c = e(v, i) || {}, si = !0, O && (k.nodes.end = I, I === null || I.nodeType !== 8 || I.data !== "]"))
1677
+ if (o && (_.c = o), n && (i.$$events = n), O && Ke(v, null), ai = s, c = e(v, i) || {}, ai = !0, O && (k.nodes.end = I, I === null || I.nodeType !== 8 || I.data !== "]"))
1678
1678
  throw zt(), Xe;
1679
- Mi();
1679
+ Oi();
1680
1680
  }, a);
1681
1681
  var d = /* @__PURE__ */ new Set(), f = (v) => {
1682
1682
  for (var _ = 0; _ < v.length; _++) {
1683
1683
  var m = v[_];
1684
1684
  if (!d.has(m)) {
1685
1685
  d.add(m);
1686
- var y = vs(m);
1686
+ var y = _s(m);
1687
1687
  for (const E of [t, document]) {
1688
1688
  var A = $t.get(E);
1689
1689
  A === void 0 && (A = /* @__PURE__ */ new Map(), $t.set(E, A));
1690
1690
  var B = A.get(m);
1691
- B === void 0 ? (E.addEventListener(m, oi, { passive: y }), A.set(m, 1)) : A.set(m, B + 1);
1691
+ B === void 0 ? (E.addEventListener(m, si, { passive: y }), A.set(m, 1)) : A.set(m, B + 1);
1692
1692
  }
1693
1693
  }
1694
1694
  }
1695
1695
  };
1696
- return f(Yn(gn)), fr.add(f), () => {
1696
+ return f(Kn(mn)), fr.add(f), () => {
1697
1697
  for (var v of d) for (const y of [t, document]) {
1698
1698
  var _ = $t.get(y), m = _.get(v);
1699
- --m == 0 ? (y.removeEventListener(v, oi), _.delete(v), _.size === 0 && $t.delete(y)) : _.set(v, m);
1699
+ --m == 0 ? (y.removeEventListener(v, si), _.delete(v), _.size === 0 && $t.delete(y)) : _.set(v, m);
1700
1700
  }
1701
1701
  fr.delete(f), p !== r && p.parentNode?.removeChild(p);
1702
1702
  };
@@ -1704,17 +1704,17 @@ function yn(e, { target: t, anchor: r, props: i = {}, events: n, context: o, int
1704
1704
  return dr.set(c, h), c;
1705
1705
  }
1706
1706
  var dr = /* @__PURE__ */ new WeakMap();
1707
- function bs(e, t) {
1707
+ function ys(e, t) {
1708
1708
  const r = dr.get(e);
1709
1709
  return r ? (dr.delete(e), r(t)) : Promise.resolve();
1710
1710
  }
1711
- var de = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), ai = /* @__PURE__ */ new WeakMap(), ys = class {
1711
+ var de = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), li = /* @__PURE__ */ new WeakMap(), ws = class {
1712
1712
  constructor(e, t = !0) {
1713
1713
  g(this, "anchor", void 0), T(this, de, /* @__PURE__ */ new Map()), T(this, ke, /* @__PURE__ */ new Map()), T(this, J, /* @__PURE__ */ new Map()), T(this, ot, /* @__PURE__ */ new Set()), T(this, Jt, !0), T(this, Qt, (r) => {
1714
1714
  if (l(de, this).has(r)) {
1715
1715
  var i = l(de, this).get(r), n = l(ke, this).get(i);
1716
1716
  if (n)
1717
- ns(n), l(ot, this).delete(i);
1717
+ os(n), l(ot, this).delete(i);
1718
1718
  else {
1719
1719
  var o = l(J, this).get(i);
1720
1720
  o && (l(ke, this).set(i, o.effect), l(J, this).delete(i), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), n = o.effect);
@@ -1729,7 +1729,7 @@ var de = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), J =
1729
1729
  const c = () => {
1730
1730
  if (Array.from(l(de, this).values()).includes(s)) {
1731
1731
  var h = document.createDocumentFragment();
1732
- cn(a, h), h.append(_e()), l(J, this).set(s, {
1732
+ un(a, h), h.append(_e()), l(J, this).set(s, {
1733
1733
  effect: a,
1734
1734
  fragment: h
1735
1735
  });
@@ -1739,14 +1739,14 @@ var de = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), J =
1739
1739
  l(Jt, this) || !n ? (l(ot, this).add(s), mt(a, c, !1)) : c();
1740
1740
  }
1741
1741
  }
1742
- }), T(this, ai, (r) => {
1742
+ }), T(this, li, (r) => {
1743
1743
  l(de, this).delete(r);
1744
1744
  const i = Array.from(l(de, this).values());
1745
1745
  for (const [n, o] of l(J, this)) i.includes(n) || (V(o.effect), l(J, this).delete(n));
1746
1746
  }), this.anchor = e, b(Jt, this, t);
1747
1747
  }
1748
1748
  ensure(e, t) {
1749
- var r = $, i = Ko();
1749
+ var r = $, i = Xo();
1750
1750
  if (t && !l(ke, this).has(e) && !l(J, this).has(e)) if (i) {
1751
1751
  var n = document.createDocumentFragment(), o = _e();
1752
1752
  n.append(o), l(J, this).set(e, {
@@ -1757,18 +1757,18 @@ var de = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), J =
1757
1757
  if (l(de, this).set(r, e), i) {
1758
1758
  for (const [s, a] of l(ke, this)) s === e ? r.unskip_effect(a) : r.skip_effect(a);
1759
1759
  for (const [s, a] of l(J, this)) s === e ? r.unskip_effect(a.effect) : r.skip_effect(a.effect);
1760
- r.oncommit(l(Qt, this)), r.ondiscard(l(ai, this));
1760
+ r.oncommit(l(Qt, this)), r.ondiscard(l(li, this));
1761
1761
  } else
1762
1762
  O && (this.anchor = I), l(Qt, this).call(this, r);
1763
1763
  }
1764
1764
  };
1765
- function ws(e) {
1766
- R === null && so("onMount"), vt && R.l !== null ? Ts(R).m.push(e) : at(() => {
1765
+ function Ts(e) {
1766
+ R === null && ao("onMount"), vt && R.l !== null ? ks(R).m.push(e) : at(() => {
1767
1767
  const t = Ft(e);
1768
1768
  if (typeof t == "function") return t;
1769
1769
  });
1770
1770
  }
1771
- function Ts(e) {
1771
+ function ks(e) {
1772
1772
  var t = e.l;
1773
1773
  return t.u ?? (t.u = {
1774
1774
  a: [],
@@ -1776,30 +1776,30 @@ function Ts(e) {
1776
1776
  m: []
1777
1777
  });
1778
1778
  }
1779
- function li(e, t, r = !1) {
1779
+ function ci(e, t, r = !1) {
1780
1780
  var i;
1781
1781
  O && (i = I, mr());
1782
- var n = new ys(e), o = r ? gr : 0;
1782
+ var n = new ws(e), o = r ? gr : 0;
1783
1783
  function s(a, c) {
1784
1784
  if (O) {
1785
- var h = yo(i);
1785
+ var h = wo(i);
1786
1786
  if (a !== parseInt(h.substring(1))) {
1787
- var p = $i();
1787
+ var p = Ii();
1788
1788
  re(p), n.anchor = p, qe(!1), n.ensure(a, c), qe(!0);
1789
1789
  return;
1790
1790
  }
1791
1791
  }
1792
1792
  n.ensure(a, c);
1793
1793
  }
1794
- nn(() => {
1794
+ on(() => {
1795
1795
  var a = !1;
1796
1796
  t((c, h = 0) => {
1797
1797
  a = !0, s(h, c);
1798
1798
  }), a || s(-1, null);
1799
1799
  }, o);
1800
1800
  }
1801
- function ks(e, t) {
1802
- rn(() => {
1801
+ function Ss(e, t) {
1802
+ nn(() => {
1803
1803
  var r = e.getRootNode(), i = r.host ? r : r.head ?? r.ownerDocument.head;
1804
1804
  if (!i.querySelector("#" + t.hash)) {
1805
1805
  const n = Sr("style");
@@ -1807,21 +1807,21 @@ function ks(e, t) {
1807
1807
  }
1808
1808
  });
1809
1809
  }
1810
- var ci = [...`
1810
+ var ui = [...`
1811
1811
  \r\f \v\uFEFF`];
1812
- function Ss(e, t, r) {
1812
+ function $s(e, t, r) {
1813
1813
  var i = e == null ? "" : "" + e;
1814
1814
  if (t && (i = i ? i + " " + t : t), r) {
1815
1815
  for (var n of Object.keys(r)) if (r[n]) i = i ? i + " " + n : n;
1816
1816
  else if (i.length)
1817
1817
  for (var o = n.length, s = 0; (s = i.indexOf(n, s)) >= 0; ) {
1818
1818
  var a = s + o;
1819
- (s === 0 || ci.includes(i[s - 1])) && (a === i.length || ci.includes(i[a])) ? i = (s === 0 ? "" : i.substring(0, s)) + i.substring(a + 1) : s = a;
1819
+ (s === 0 || ui.includes(i[s - 1])) && (a === i.length || ui.includes(i[a])) ? i = (s === 0 ? "" : i.substring(0, s)) + i.substring(a + 1) : s = a;
1820
1820
  }
1821
1821
  }
1822
1822
  return i === "" ? null : i;
1823
1823
  }
1824
- function ui(e, t = !1) {
1824
+ function fi(e, t = !1) {
1825
1825
  var r = t ? " !important;" : ";", i = "";
1826
1826
  for (var n of Object.keys(e)) {
1827
1827
  var o = e[n];
@@ -1832,7 +1832,7 @@ function ui(e, t = !1) {
1832
1832
  function Zt(e) {
1833
1833
  return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
1834
1834
  }
1835
- function $s(e, t) {
1835
+ function Is(e, t) {
1836
1836
  if (t) {
1837
1837
  var r = "", i, n;
1838
1838
  if (Array.isArray(t) ? (i = t[0], n = t[1]) : i = t, e) {
@@ -1859,14 +1859,14 @@ function $s(e, t) {
1859
1859
  }
1860
1860
  }
1861
1861
  }
1862
- return i && (r += ui(i)), n && (r += ui(n, !0)), r = r.trim(), r === "" ? null : r;
1862
+ return i && (r += fi(i)), n && (r += fi(n, !0)), r = r.trim(), r === "" ? null : r;
1863
1863
  }
1864
1864
  return e == null ? null : String(e);
1865
1865
  }
1866
- function Is(e, t, r, i, n, o) {
1866
+ function As(e, t, r, i, n, o) {
1867
1867
  var s = e.__className;
1868
1868
  if (O || s !== r || s === void 0) {
1869
- var a = Ss(r, i, o);
1869
+ var a = $s(r, i, o);
1870
1870
  (!O || a !== e.getAttribute("class")) && (a == null ? e.removeAttribute("class") : t ? e.className = a : e.setAttribute("class", a)), e.__className = r;
1871
1871
  } else if (o && n !== o) for (var c in o) {
1872
1872
  var h = !!o[c];
@@ -1883,76 +1883,76 @@ function er(e, t = {}, r, i) {
1883
1883
  function We(e, t, r, i) {
1884
1884
  var n = e.__style;
1885
1885
  if (O || n !== t) {
1886
- var o = $s(t, i);
1886
+ var o = Is(t, i);
1887
1887
  (!O || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e.__style = t;
1888
1888
  } else i && (Array.isArray(i) ? (er(e, r?.[0], i[0]), er(e, r?.[1], i[1], "important")) : er(e, r, i));
1889
1889
  return i;
1890
1890
  }
1891
- var As = Symbol("is custom element"), Es = Symbol("is html"), Ms = oo ? "link" : "LINK";
1892
- function Os(e, t, r, i) {
1893
- var n = Ps(e);
1894
- if (O && (n[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Ms)) {
1891
+ var Es = Symbol("is custom element"), Ms = Symbol("is html"), Os = so ? "link" : "LINK";
1892
+ function Ps(e, t, r, i) {
1893
+ var n = xs(e);
1894
+ if (O && (n[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Os)) {
1895
1895
  i || void 0;
1896
1896
  return;
1897
1897
  }
1898
- n[t] !== (n[t] = r) && (t === "loading" && (e[io] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && xs(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
1898
+ n[t] !== (n[t] = r) && (t === "loading" && (e[no] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Rs(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
1899
1899
  }
1900
- function Ps(e) {
1900
+ function xs(e) {
1901
1901
  return e.__attributes ?? (e.__attributes = {
1902
- [As]: e.nodeName.includes("-"),
1903
- [Es]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
1902
+ [Es]: e.nodeName.includes("-"),
1903
+ [Ms]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
1904
1904
  });
1905
1905
  }
1906
- var fi = /* @__PURE__ */ new Map();
1907
- function xs(e) {
1908
- var t = e.getAttribute("is") || e.nodeName, r = fi.get(t);
1906
+ var di = /* @__PURE__ */ new Map();
1907
+ function Rs(e) {
1908
+ var t = e.getAttribute("is") || e.nodeName, r = di.get(t);
1909
1909
  if (r) return r;
1910
- fi.set(t, r = []);
1910
+ di.set(t, r = []);
1911
1911
  for (var i, n = e, o = Element.prototype; o !== n; ) {
1912
- i = Kn(n);
1912
+ i = Xn(n);
1913
1913
  for (var s in i) i[s].set && r.push(s);
1914
- n = wi(n);
1914
+ n = Ti(n);
1915
1915
  }
1916
1916
  return r;
1917
1917
  }
1918
- var wn, Ge = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), di = /* @__PURE__ */ new WeakSet(), Tn = class {
1918
+ var Tn, Ge = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), hi = /* @__PURE__ */ new WeakSet(), kn = class {
1919
1919
  constructor(e) {
1920
- yr(this, di), T(this, Ge, /* @__PURE__ */ new WeakMap()), T(this, jt, void 0), T(this, tr, void 0), b(tr, this, e);
1920
+ yr(this, hi), T(this, Ge, /* @__PURE__ */ new WeakMap()), T(this, jt, void 0), T(this, tr, void 0), b(tr, this, e);
1921
1921
  }
1922
1922
  observe(e, t) {
1923
1923
  var r = l(Ge, this).get(e) || /* @__PURE__ */ new Set();
1924
- return r.add(t), l(Ge, this).set(e, r), M(di, this, Rs).call(this).observe(e, l(tr, this)), () => {
1924
+ return r.add(t), l(Ge, this).set(e, r), M(hi, this, Cs).call(this).observe(e, l(tr, this)), () => {
1925
1925
  var i = l(Ge, this).get(e);
1926
1926
  i.delete(t), i.size === 0 && (l(Ge, this).delete(e), l(jt, this).unobserve(e));
1927
1927
  };
1928
1928
  }
1929
1929
  };
1930
- wn = Tn;
1931
- function Rs() {
1930
+ Tn = kn;
1931
+ function Cs() {
1932
1932
  return l(jt, this) ?? b(jt, this, new ResizeObserver((e) => {
1933
1933
  for (var t of e) {
1934
- wn.entries.set(t.target, t);
1934
+ Tn.entries.set(t.target, t);
1935
1935
  for (var r of l(Ge, this).get(t.target) || []) r(t);
1936
1936
  }
1937
1937
  }));
1938
1938
  }
1939
- g(Tn, "entries", /* @__PURE__ */ new WeakMap());
1940
- function hi(e, t) {
1939
+ g(kn, "entries", /* @__PURE__ */ new WeakMap());
1940
+ function pi(e, t) {
1941
1941
  return e === t || e?.[lt] === t;
1942
1942
  }
1943
- function Cs(e = {}, t, r, i) {
1943
+ function Ls(e = {}, t, r, i) {
1944
1944
  var n = R.r, o = k;
1945
- return rn(() => {
1945
+ return nn(() => {
1946
1946
  var s, a;
1947
1947
  return Ar(() => {
1948
1948
  s = a, a = i?.() || [], Ft(() => {
1949
- e !== r(...a) && (t(e, ...a), s && hi(r(...s), e) && t(null, ...s));
1949
+ e !== r(...a) && (t(e, ...a), s && pi(r(...s), e) && t(null, ...s));
1950
1950
  });
1951
1951
  }), () => {
1952
1952
  let c = o;
1953
1953
  for (; c !== n && c.parent !== null && c.parent.f & 33554432; ) c = c.parent;
1954
1954
  const h = () => {
1955
- a && hi(r(...a), e) && t(null, ...a);
1955
+ a && pi(r(...a), e) && t(null, ...a);
1956
1956
  }, p = c.teardown;
1957
1957
  c.teardown = () => {
1958
1958
  h(), p?.();
@@ -1960,15 +1960,15 @@ function Cs(e = {}, t, r, i) {
1960
1960
  };
1961
1961
  }), e;
1962
1962
  }
1963
- function pi(e, t, r, i) {
1963
+ function vi(e, t, r, i) {
1964
1964
  var n = !vt || (r & 2) !== 0, o = (r & 8) !== 0, s = (r & 16) !== 0, a = i, c = !0, h = () => (c && (c = !1, a = s ? Ft(i) : i), a);
1965
1965
  let p;
1966
1966
  if (o) {
1967
- var d = lt in e || ki in e;
1967
+ var d = lt in e || Si in e;
1968
1968
  p = Le(e, t)?.set ?? (d && t in e ? (E) => e[t] = E : void 0);
1969
1969
  }
1970
1970
  var f, v = !1;
1971
- o ? [f, v] = Io(() => e[t]) : f = e[t], f === void 0 && i !== void 0 && (f = h(), p && (n && po(t), p(f)));
1971
+ o ? [f, v] = Ao(() => e[t]) : f = e[t], f === void 0 && i !== void 0 && (f = h(), p && (n && vo(t), p(f)));
1972
1972
  var _;
1973
1973
  if (n ? _ = () => {
1974
1974
  var E = e[t];
@@ -1983,7 +1983,7 @@ function pi(e, t, r, i) {
1983
1983
  return arguments.length > 0 ? ((!n || !H || m || v) && p(H ? _() : E), E) : _();
1984
1984
  };
1985
1985
  }
1986
- var y = !1, A = (r & 1 ? Vt : Gi)(() => (y = !1, _()));
1986
+ var y = !1, A = (r & 1 ? Vt : qi)(() => (y = !1, _()));
1987
1987
  o && u(A);
1988
1988
  var B = k;
1989
1989
  return function(E, H) {
@@ -1994,14 +1994,14 @@ function pi(e, t, r, i) {
1994
1994
  return Me && y || B.f & 16384 ? A.v : u(A);
1995
1995
  };
1996
1996
  }
1997
- function Ls(e) {
1998
- return new Ns(e);
1997
+ function Ns(e) {
1998
+ return new Ds(e);
1999
1999
  }
2000
- var Pe = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Ns = class {
2000
+ var Pe = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Ds = class {
2001
2001
  constructor(e) {
2002
2002
  T(this, Pe, void 0), T(this, ie, void 0);
2003
2003
  var t = /* @__PURE__ */ new Map(), r = (n, o) => {
2004
- var s = /* @__PURE__ */ Bo(o, !1, !1);
2004
+ var s = /* @__PURE__ */ Ho(o, !1, !1);
2005
2005
  return t.set(n, s), s;
2006
2006
  };
2007
2007
  const i = new Proxy({
@@ -2012,13 +2012,13 @@ var Pe = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Ns =
2012
2012
  return u(t.get(o) ?? r(o, Reflect.get(n, o)));
2013
2013
  },
2014
2014
  has(n, o) {
2015
- return o === ki ? !0 : (u(t.get(o) ?? r(o, Reflect.get(n, o))), Reflect.has(n, o));
2015
+ return o === Si ? !0 : (u(t.get(o) ?? r(o, Reflect.get(n, o))), Reflect.has(n, o));
2016
2016
  },
2017
2017
  set(n, o, s) {
2018
2018
  return P(t.get(o) ?? r(o, s), s), Reflect.set(n, o, s);
2019
2019
  }
2020
2020
  });
2021
- b(ie, this, (e.hydrate ? ms : bn)(e.component, {
2021
+ b(ie, this, (e.hydrate ? bs : yn)(e.component, {
2022
2022
  target: e.target,
2023
2023
  anchor: e.anchor,
2024
2024
  props: i,
@@ -2040,7 +2040,7 @@ var Pe = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Ns =
2040
2040
  l(ie, this).$set = (n) => {
2041
2041
  Object.assign(i, n);
2042
2042
  }, l(ie, this).$destroy = () => {
2043
- bs(l(ie, this));
2043
+ ys(l(ie, this));
2044
2044
  };
2045
2045
  }
2046
2046
  $set(e) {
@@ -2056,8 +2056,8 @@ var Pe = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Ns =
2056
2056
  $destroy() {
2057
2057
  l(ie, this).$destroy();
2058
2058
  }
2059
- }, kn;
2060
- typeof HTMLElement == "function" && (kn = class extends HTMLElement {
2059
+ }, Sn;
2060
+ typeof HTMLElement == "function" && (Sn = class extends HTMLElement {
2061
2061
  constructor(e, t, r) {
2062
2062
  super(), g(this, "$$ctor", void 0), g(this, "$$s", void 0), g(this, "$$c", void 0), g(this, "$$cn", !1), g(this, "$$d", {}), g(this, "$$r", !1), g(this, "$$p_d", {}), g(this, "$$l", {}), g(this, "$$l_u", /* @__PURE__ */ new Map()), g(this, "$$me", void 0), g(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
2063
2063
  }
@@ -2083,14 +2083,14 @@ typeof HTMLElement == "function" && (kn = class extends HTMLElement {
2083
2083
  };
2084
2084
  };
2085
2085
  if (await Promise.resolve(), !this.$$cn || this.$$c) return;
2086
- const t = {}, r = Ds(this);
2086
+ const t = {}, r = js(this);
2087
2087
  for (const i of this.$$s) i in r && (i === "default" && !this.$$d.children ? (this.$$d.children = e(i), t.default = !0) : t[i] = e(i));
2088
2088
  for (const i of this.attributes) {
2089
2089
  const n = this.$$g_p(i.name);
2090
2090
  n in this.$$d || (this.$$d[n] = Mt(n, i.value, this.$$p_d, "toProp"));
2091
2091
  }
2092
2092
  for (const i in this.$$p_d) !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
2093
- this.$$c = Ls({
2093
+ this.$$c = Ns({
2094
2094
  component: this.$$ctor,
2095
2095
  target: this.$$shadowRoot || this,
2096
2096
  props: {
@@ -2098,7 +2098,7 @@ typeof HTMLElement == "function" && (kn = class extends HTMLElement {
2098
2098
  $$slots: t,
2099
2099
  $$host: this
2100
2100
  }
2101
- }), this.$$me = Zo(() => {
2101
+ }), this.$$me = es(() => {
2102
2102
  Ar(() => {
2103
2103
  this.$$r = !0;
2104
2104
  for (const i of Pt(this.$$c)) {
@@ -2155,14 +2155,14 @@ function Mt(e, t, r, i) {
2155
2155
  return t;
2156
2156
  }
2157
2157
  }
2158
- function Ds(e) {
2158
+ function js(e) {
2159
2159
  const t = {};
2160
2160
  return e.childNodes.forEach((r) => {
2161
2161
  t[r.slot || "default"] = !0;
2162
2162
  }), t;
2163
2163
  }
2164
- function js(e, t, r, i, n, o) {
2165
- let s = class extends kn {
2164
+ function zs(e, t, r, i, n, o) {
2165
+ let s = class extends Sn {
2166
2166
  constructor() {
2167
2167
  super(e, r, n), this.$$p_d = t;
2168
2168
  }
@@ -2187,14 +2187,14 @@ function js(e, t, r, i, n, o) {
2187
2187
  } });
2188
2188
  }), o && (s = o(s)), e.element = s, s;
2189
2189
  }
2190
- var zs = class extends Event {
2190
+ var Vs = class extends Event {
2191
2191
  constructor(e, t, r, i) {
2192
2192
  super("context-request", {
2193
2193
  bubbles: !0,
2194
2194
  composed: !0
2195
2195
  }), g(this, "context", void 0), g(this, "contextTarget", void 0), g(this, "callback", void 0), g(this, "subscribe", void 0), this.context = e, this.contextTarget = t, this.callback = r, this.subscribe = i ?? !1;
2196
2196
  }
2197
- }, Vs = class {
2197
+ }, Fs = class {
2198
2198
  constructor(e, t) {
2199
2199
  g(this, "host", void 0), g(this, "context", void 0), g(this, "subscribe", void 0), g(this, "onValue", void 0), g(this, "isConnected", !1), g(this, "unsubscribe", void 0), g(this, "currentValue", void 0), g(this, "handleValue", (r, i) => {
2200
2200
  i !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = i), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = r, this.onValue?.(r);
@@ -2210,12 +2210,12 @@ var zs = class extends Event {
2210
2210
  return this.currentValue;
2211
2211
  }
2212
2212
  requestValue() {
2213
- this.host.dispatchEvent(new zs(this.context, this.host, this.handleValue, this.subscribe));
2213
+ this.host.dispatchEvent(new Vs(this.context, this.host, this.handleValue, this.subscribe));
2214
2214
  }
2215
- }, Wt = (e) => e, Fs = Wt(Symbol.for("pie.assessmentToolkit.runtimeContext")), qa = Wt(Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), Ya = Wt(Symbol.for("pie.assessmentToolkit.shellContext")), Ka = Wt(Symbol.for("pie.assessmentToolkit.regionScopeContext"));
2216
- function Ws(e, t, r) {
2215
+ }, Wt = (e) => e, Ws = Wt(Symbol.for("pie.assessmentToolkit.runtimeContext")), Ya = Wt(Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), Ka = Wt(Symbol.for("pie.assessmentToolkit.shellContext")), Xa = Wt(Symbol.for("pie.assessmentToolkit.regionScopeContext"));
2216
+ function Bs(e, t, r) {
2217
2217
  let i = !1;
2218
- const n = new Vs(e, {
2218
+ const n = new Fs(e, {
2219
2219
  context: t,
2220
2220
  subscribe: !0,
2221
2221
  onValue: (h) => {
@@ -2239,42 +2239,42 @@ function Ws(e, t, r) {
2239
2239
  globalThis.clearInterval(c), e.removeEventListener("context-provider", o), n.disconnect();
2240
2240
  };
2241
2241
  }
2242
- function Bs(e, t) {
2243
- return Ws(e, Fs, t);
2244
- }
2245
2242
  function Hs(e, t) {
2246
- return Bs(e, t);
2243
+ return Bs(e, Ws, t);
2244
+ }
2245
+ function Us(e, t) {
2246
+ return Hs(e, t);
2247
2247
  }
2248
- var vi;
2248
+ var _i;
2249
2249
  (function(e) {
2250
2250
  e.TTS_WORD = "tts-word", e.TTS_SENTENCE = "tts-sentence", e.ANNOTATION = "annotation";
2251
- })(vi || (vi = {}));
2252
- var _i;
2251
+ })(_i || (_i = {}));
2252
+ var gi;
2253
2253
  (function(e) {
2254
2254
  e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
2255
- })(_i || (_i = {}));
2256
- function Sn(e) {
2255
+ })(gi || (gi = {}));
2256
+ function $n(e) {
2257
2257
  return (...t) => {
2258
2258
  console.debug(`[${e}]`, ...t);
2259
2259
  };
2260
2260
  }
2261
- var Xa = Sn("I18nService"), rr = {
2261
+ var Ja = $n("I18nService"), rr = {
2262
2262
  assessment: [],
2263
2263
  section: [],
2264
2264
  item: [],
2265
2265
  passage: [],
2266
2266
  rubric: [],
2267
2267
  element: []
2268
- }, Ja = {
2268
+ }, Qa = {
2269
2269
  section: [...rr.section],
2270
2270
  item: [...rr.item],
2271
2271
  passage: [...rr.passage]
2272
2272
  };
2273
- function Us(e) {
2273
+ function Gs(e) {
2274
2274
  const t = e.trim();
2275
2275
  return t || "";
2276
2276
  }
2277
- var Gs = [
2277
+ var qs = [
2278
2278
  "assessment",
2279
2279
  "section",
2280
2280
  "item",
@@ -2285,10 +2285,10 @@ var Gs = [
2285
2285
  function Ot(e, t) {
2286
2286
  if (typeof e != "string" || e.trim().length === 0) throw new Error(`Invalid tool registration: "${t}" must be a non-empty string.`);
2287
2287
  }
2288
- function gi(e) {
2288
+ function mi(e) {
2289
2289
  if (Ot(e.toolId, "toolId"), Ot(e.name, "name"), Ot(e.description, "description"), typeof e.icon != "string" && typeof e.icon != "function") throw new Error(`Invalid tool registration "${e.toolId}": "icon" must be a string or function.`);
2290
2290
  if (!Array.isArray(e.supportedLevels) || e.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${e.toolId}": "supportedLevels" must be a non-empty array.`);
2291
- const t = e.supportedLevels.find((r) => !Gs.includes(r));
2291
+ const t = e.supportedLevels.find((r) => !qs.includes(r));
2292
2292
  if (t) throw new Error(`Invalid tool registration "${e.toolId}": unsupported level "${t}".`);
2293
2293
  if (e.activation !== void 0 && e.activation !== "toolbar-toggle" && e.activation !== "selection-gateway") throw new Error(`Invalid tool registration "${e.toolId}": unsupported activation "${String(e.activation)}".`);
2294
2294
  if (e.singletonScope !== void 0 && e.singletonScope !== "section") throw new Error(`Invalid tool registration "${e.toolId}": unsupported singletonScope "${String(e.singletonScope)}".`);
@@ -2297,23 +2297,23 @@ function gi(e) {
2297
2297
  if (typeof e.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${e.toolId}": "isVisibleInContext" must be a function.`);
2298
2298
  if (typeof e.renderToolbar != "function") throw new Error(`Invalid tool registration "${e.toolId}": "renderToolbar" must be a function.`);
2299
2299
  }
2300
- var qs = class {
2300
+ var Ys = class {
2301
2301
  constructor() {
2302
2302
  g(this, "tools", /* @__PURE__ */ new Map()), g(this, "pnpIndex", /* @__PURE__ */ new Map()), g(this, "componentOverrides", {}), g(this, "moduleLoaders", /* @__PURE__ */ new Map()), g(this, "loadedToolModules", /* @__PURE__ */ new Set()), g(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
2303
2303
  }
2304
2304
  normalizeToolId(e) {
2305
- return Us(e);
2305
+ return Gs(e);
2306
2306
  }
2307
2307
  normalizeToolIds(e) {
2308
2308
  return e.map((t) => this.normalizeToolId(t));
2309
2309
  }
2310
2310
  register(e) {
2311
- if (gi(e), this.tools.has(e.toolId)) throw new Error(`Tool '${e.toolId}' is already registered`);
2311
+ if (mi(e), this.tools.has(e.toolId)) throw new Error(`Tool '${e.toolId}' is already registered`);
2312
2312
  if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const t of e.pnpSupportIds)
2313
2313
  this.pnpIndex.has(t) || this.pnpIndex.set(t, /* @__PURE__ */ new Set()), this.pnpIndex.get(t).add(e.toolId);
2314
2314
  }
2315
2315
  override(e) {
2316
- if (gi(e), !this.tools.has(e.toolId)) throw new Error(`Cannot override non-existent tool '${e.toolId}'`);
2316
+ if (mi(e), !this.tools.has(e.toolId)) throw new Error(`Cannot override non-existent tool '${e.toolId}'`);
2317
2317
  const t = this.tools.get(e.toolId);
2318
2318
  if (t.pnpSupportIds) for (const r of t.pnpSupportIds) this.pnpIndex.get(r)?.delete(e.toolId);
2319
2319
  if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const r of e.pnpSupportIds)
@@ -2440,20 +2440,20 @@ var qs = class {
2440
2440
  return i.renderToolbar(t, n);
2441
2441
  }
2442
2442
  };
2443
- function $n(e) {
2443
+ function In(e) {
2444
2444
  return e.level === "item";
2445
2445
  }
2446
- function Ys(e) {
2446
+ function Ks(e) {
2447
2447
  return e.level === "passage";
2448
2448
  }
2449
- function Ks(e) {
2449
+ function Xs(e) {
2450
2450
  return e.level === "rubric";
2451
2451
  }
2452
- function In(e) {
2452
+ function An(e) {
2453
2453
  return e.level === "element";
2454
2454
  }
2455
2455
  function Mr(e) {
2456
- if (In(e)) {
2456
+ if (An(e)) {
2457
2457
  const t = e.item.config;
2458
2458
  if (!t) return "";
2459
2459
  const r = [], i = (a) => a.replace(/<[^>]*>/g, " ").trim(), n = t.elements?.[e.elementId];
@@ -2468,7 +2468,7 @@ function Mr(e) {
2468
2468
  }
2469
2469
  return r.filter(Boolean).join(" ").trim();
2470
2470
  }
2471
- if ($n(e)) {
2471
+ if (In(e)) {
2472
2472
  const t = e.item;
2473
2473
  if (!t?.config) return "";
2474
2474
  const r = t.config, i = [], n = (c) => c.replace(/<[^>]*>/g, " ").trim();
@@ -2487,7 +2487,7 @@ function Mr(e) {
2487
2487
  }
2488
2488
  return i.filter(Boolean).join(" ").trim();
2489
2489
  }
2490
- if (Ys(e)) {
2490
+ if (Ks(e)) {
2491
2491
  const t = e.passage;
2492
2492
  if (!t?.config) return "";
2493
2493
  const r = t.config, i = [], n = (c) => c.replace(/<[^>]*>/g, " ").trim();
@@ -2506,7 +2506,7 @@ function Mr(e) {
2506
2506
  }
2507
2507
  return i.filter(Boolean).join(" ").trim();
2508
2508
  }
2509
- if (Ks(e)) {
2509
+ if (Xs(e)) {
2510
2510
  const t = e.rubricBlock;
2511
2511
  return t.passage?.config ? (t.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (t.content || "").replace(/<[^>]*>/g, " ").trim();
2512
2512
  }
@@ -2523,7 +2523,7 @@ function Bt(e) {
2523
2523
  /\d+\s*[+\-*/=]\s*\d+/
2524
2524
  ].some((r) => r.test(t));
2525
2525
  }
2526
- function Xs(e) {
2526
+ function Js(e) {
2527
2527
  const t = [
2528
2528
  "pie-multiple-choice",
2529
2529
  "pie-inline-choice",
@@ -2532,7 +2532,7 @@ function Xs(e) {
2532
2532
  "inline-choice",
2533
2533
  "select-text"
2534
2534
  ];
2535
- if (In(e)) {
2535
+ if (An(e)) {
2536
2536
  const r = e.item.config;
2537
2537
  if (!r?.models) return !1;
2538
2538
  const i = (Array.isArray(r.models) ? r.models : Object.values(r.models)).find((o) => o && typeof o == "object" && o.id === e.elementId);
@@ -2540,7 +2540,7 @@ function Xs(e) {
2540
2540
  const n = i.element || "";
2541
2541
  return t.includes(n);
2542
2542
  }
2543
- if ($n(e)) {
2543
+ if (In(e)) {
2544
2544
  const r = e.item.config?.models;
2545
2545
  return (Array.isArray(r) ? r : r && typeof r == "object" ? Object.values(r) : []).some((i) => {
2546
2546
  if (!i || typeof i != "object") return !1;
@@ -2553,7 +2553,7 @@ function Xs(e) {
2553
2553
  function Ht(e) {
2554
2554
  return Mr(e).trim().length >= 10;
2555
2555
  }
2556
- function Js(e) {
2556
+ function Qs(e) {
2557
2557
  const t = Mr(e);
2558
2558
  return [
2559
2559
  /chemistry|chemical|element|atom|molecule|compound/i,
@@ -2564,23 +2564,23 @@ function Js(e) {
2564
2564
  /physics|force|energy|velocity|acceleration/i
2565
2565
  ].some((r) => r.test(t));
2566
2566
  }
2567
- var Qs = [
2567
+ var Zs = [
2568
2568
  "assessment",
2569
2569
  "section",
2570
2570
  "item",
2571
2571
  "passage",
2572
2572
  "rubric"
2573
- ], Zs = new Set(Qs);
2574
- function ea(e) {
2575
- return Zs.has(e);
2573
+ ], ea = new Set(Zs);
2574
+ function ta(e) {
2575
+ return ea.has(e);
2576
2576
  }
2577
2577
  function Or(e, t, r) {
2578
2578
  const i = e.trim(), n = r.trim();
2579
2579
  if (!i || !n) throw new Error("Tool instance ids require non-empty tool and scope ids");
2580
- if (!ea(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
2580
+ if (!ta(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
2581
2581
  return `${i}:${t}:${n}`;
2582
2582
  }
2583
- var ta = class {
2583
+ var ra = class {
2584
2584
  constructor() {
2585
2585
  g(this, "providerId", "desmos-calculator"), g(this, "providerName", "Desmos Calculator"), g(this, "category", "calculator"), g(this, "version", "1.10"), g(this, "requiresAuth", !0), g(this, "desmosProvider", null), g(this, "config", null);
2586
2586
  }
@@ -2655,7 +2655,7 @@ var ta = class {
2655
2655
  destroy() {
2656
2656
  this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
2657
2657
  }
2658
- }, ra = (e, t) => {
2658
+ }, ia = (e, t) => {
2659
2659
  const r = t?.useSentenceSegmenter !== !1;
2660
2660
  try {
2661
2661
  if (!r) throw new Error("Segmenter disabled by policy");
@@ -2682,14 +2682,14 @@ var ta = class {
2682
2682
  text: e,
2683
2683
  offset: 0
2684
2684
  }];
2685
- }, ia = class {
2685
+ }, na = class {
2686
2686
  constructor() {
2687
2687
  g(this, "providerId", "browser"), g(this, "providerName", "Browser Speech Synthesis"), g(this, "version", "1.0.0");
2688
2688
  }
2689
2689
  async initialize(e) {
2690
2690
  if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
2691
2691
  if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
2692
- return new na(e);
2692
+ return new oa(e);
2693
2693
  }
2694
2694
  supportsFeature(e) {
2695
2695
  return !0;
@@ -2706,7 +2706,7 @@ var ta = class {
2706
2706
  }
2707
2707
  destroy() {
2708
2708
  }
2709
- }, na = class {
2709
+ }, oa = class {
2710
2710
  constructor(e) {
2711
2711
  g(this, "utterance", null), g(this, "config", null), g(this, "_isPlaying", !1), g(this, "_isPaused", !1), g(this, "speakRunId", 0), g(this, "onWordBoundary", void 0), this.config = e;
2712
2712
  }
@@ -2776,7 +2776,7 @@ var ta = class {
2776
2776
  }
2777
2777
  segmentSentences(e) {
2778
2778
  const t = this.getSegmentationPolicy();
2779
- return ra(e, {
2779
+ return ia(e, {
2780
2780
  locale: t.locale,
2781
2781
  useSentenceSegmenter: t.useSentenceSegmenter
2782
2782
  });
@@ -2845,7 +2845,7 @@ var ta = class {
2845
2845
  ...e.providerOptions || {}
2846
2846
  });
2847
2847
  }
2848
- }, oa = class {
2848
+ }, sa = class {
2849
2849
  async emitTelemetry(e, t) {
2850
2850
  try {
2851
2851
  await this.config?.onTelemetry?.(e, t);
@@ -2877,7 +2877,7 @@ var ta = class {
2877
2877
  }
2878
2878
  async _initializeBrowserTTS(e) {
2879
2879
  if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
2880
- this.ttsProvider = new ia(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
2880
+ this.ttsProvider = new na(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
2881
2881
  }
2882
2882
  async _initializeServerTTS(e) {
2883
2883
  if (!e.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
@@ -2888,7 +2888,7 @@ var ta = class {
2888
2888
  backend: e.serverProvider || e.backend
2889
2889
  }), this.ttsProvider = new (await (async () => {
2890
2890
  try {
2891
- const r = await import("./dist-BIgX-aC4.js");
2891
+ const r = await import("./dist-Bud4G4lv.js");
2892
2892
  return await this.emitTelemetry("pie-tool-library-load-success", {
2893
2893
  toolId: "tts",
2894
2894
  operation: "server-provider-module-import",
@@ -2933,7 +2933,7 @@ var ta = class {
2933
2933
  destroy() {
2934
2934
  this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
2935
2935
  }
2936
- }, sa = /* @__PURE__ */ new Set([
2936
+ }, aa = /* @__PURE__ */ new Set([
2937
2937
  "annotation-xml",
2938
2938
  "color-profile",
2939
2939
  "font-face",
@@ -2942,16 +2942,16 @@ var ta = class {
2942
2942
  "font-face-format",
2943
2943
  "font-face-name",
2944
2944
  "missing-glyph"
2945
- ]), aa = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, la = (e, t = "custom element tag") => {
2945
+ ]), la = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, ca = (e, t = "custom element tag") => {
2946
2946
  if (!e || typeof e != "string") throw new Error(`Invalid ${t}: expected a non-empty string`);
2947
2947
  const r = e.trim();
2948
2948
  if (!r) throw new Error(`Invalid ${t}: tag is empty`);
2949
2949
  if (r !== r.toLowerCase()) throw new Error(`Invalid ${t} "${r}": custom element names must be lowercase`);
2950
2950
  if (!r.includes("-")) throw new Error(`Invalid ${t} "${r}": custom element names must include a hyphen`);
2951
- if (sa.has(r)) throw new Error(`Invalid ${t} "${r}": this name is reserved by the HTML spec`);
2952
- if (!aa.test(r)) throw new Error(`Invalid ${t} "${r}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
2951
+ if (aa.has(r)) throw new Error(`Invalid ${t} "${r}": this name is reserved by the HTML spec`);
2952
+ if (!la.test(r)) throw new Error(`Invalid ${t} "${r}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
2953
2953
  return r;
2954
- }, An = {
2954
+ }, En = {
2955
2955
  calculator: "pie-tool-calculator",
2956
2956
  textToSpeech: "pie-tool-text-to-speech",
2957
2957
  ruler: "pie-tool-ruler",
@@ -2964,22 +2964,22 @@ var ta = class {
2964
2964
  annotationToolbar: "pie-tool-annotation-toolbar",
2965
2965
  graph: "pie-tool-graph",
2966
2966
  periodicTable: "pie-tool-periodic-table"
2967
- }, ca = (e, t) => la(t?.toolTagMap?.[e] ?? An[e] ?? e, `tool component tag for "${e}"`), ua = (e) => document.createElement(e), ue = (e, t, r, i) => {
2968
- const n = ca(e, i), o = i?.toolComponentFactories?.[e] ?? i?.toolComponentFactory;
2967
+ }, ua = (e, t) => ca(t?.toolTagMap?.[e] ?? En[e] ?? e, `tool component tag for "${e}"`), fa = (e) => document.createElement(e), ue = (e, t, r, i) => {
2968
+ const n = ua(e, i), o = i?.toolComponentFactories?.[e] ?? i?.toolComponentFactory;
2969
2969
  return o ? o({
2970
2970
  toolId: e,
2971
2971
  tagName: n,
2972
2972
  context: t,
2973
2973
  toolbarContext: r
2974
- }) : ua(n);
2975
- }, fa = {
2974
+ }) : fa(n);
2975
+ }, da = {
2976
2976
  toolId: "calculator",
2977
2977
  name: "Calculator",
2978
2978
  description: "Multi-type calculator (basic, scientific, graphing)",
2979
2979
  icon: "calculator",
2980
2980
  provider: {
2981
2981
  getProviderId: (e) => typeof e?.provider?.id == "string" && e.provider.id.length > 0 ? e.provider.id : "calculator-desmos",
2982
- createProvider: () => new ta(),
2982
+ createProvider: () => new ra(),
2983
2983
  getInitConfig: (e) => e?.provider?.init ?? {},
2984
2984
  getAuthFetcher: (e) => {
2985
2985
  const t = e?.provider?.runtime?.authFetcher;
@@ -3045,9 +3045,9 @@ var ta = class {
3045
3045
  }
3046
3046
  };
3047
3047
  }
3048
- }, mi = (e) => e && typeof e == "object" ? e : {}, da = (e) => e === "polly" || e === "google" || e === "server", U = (e, t) => e === void 0 ? t : e, ha = (e) => {
3048
+ }, bi = (e) => e && typeof e == "object" ? e : {}, ha = (e) => e === "polly" || e === "google" || e === "server", U = (e, t) => e === void 0 ? t : e, pa = (e) => {
3049
3049
  const t = e.backend || "browser";
3050
- if (!da(t)) return e;
3050
+ if (!ha(t)) return e;
3051
3051
  const r = {
3052
3052
  ...e,
3053
3053
  apiEndpoint: U(e.apiEndpoint, "/api/tts"),
@@ -3069,13 +3069,13 @@ var ta = class {
3069
3069
  defaultVoice: U(r.defaultVoice, "en-US-Wavenet-A")
3070
3070
  } : r;
3071
3071
  }, ir = (e) => {
3072
- const t = mi(e), r = mi(e?.settings);
3073
- return ha({
3072
+ const t = bi(e), r = bi(e?.settings);
3073
+ return pa({
3074
3074
  ...t,
3075
3075
  ...r
3076
3076
  });
3077
- }, hr = (e) => e.backend || "browser", En = (e, t) => e.serverProvider || e.provider || (t === "polly" || t === "google" ? t : void 0), Mn = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), pa = (e) => {
3078
- const t = hr(e), r = En(e, t), i = Mn(e, r);
3077
+ }, hr = (e) => e.backend || "browser", Mn = (e, t) => e.serverProvider || e.provider || (t === "polly" || t === "google" ? t : void 0), On = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), va = (e) => {
3078
+ const t = hr(e), r = Mn(e, t), i = On(e, r);
3079
3079
  return {
3080
3080
  voice: e.defaultVoice,
3081
3081
  rate: e.rate,
@@ -3099,30 +3099,31 @@ var ta = class {
3099
3099
  includeAuthOnAssetFetch: e.includeAuthOnAssetFetch,
3100
3100
  validateEndpoint: e.validateEndpoint
3101
3101
  };
3102
- }, st = /* @__PURE__ */ new Map(), va = "__pieToolElementUnmount", bi = Object.freeze([1.5, 2]), _a = (e) => {
3103
- if (!Array.isArray(e)) return [...bi];
3102
+ }, st = /* @__PURE__ */ new Map(), _a = "__pieToolElementUnmount", yi = Object.freeze([1.5, 2]), ga = (e) => {
3103
+ if (!Array.isArray(e)) return [...yi];
3104
+ if (e.length === 0) return [];
3104
3105
  const t = /* @__PURE__ */ new Set();
3105
3106
  for (const r of e) {
3106
3107
  if (typeof r != "number" || !Number.isFinite(r) || r <= 0) continue;
3107
3108
  const i = Math.round(r * 100) / 100;
3108
3109
  i !== 1 && t.add(i);
3109
3110
  }
3110
- return t.size ? Array.from(t) : [...bi];
3111
- }, ga = {
3111
+ return t.size ? Array.from(t) : [...yi];
3112
+ }, ma = {
3112
3113
  toolId: "textToSpeech",
3113
3114
  name: "Text to Speech",
3114
3115
  description: "Read content aloud",
3115
3116
  icon: "volume-up",
3116
3117
  provider: {
3117
3118
  getProviderId: () => "tts",
3118
- createProvider: (e) => new oa(hr(ir(e))),
3119
+ createProvider: (e) => new sa(hr(ir(e))),
3119
3120
  getInitConfig: (e) => {
3120
- const t = ir(e), r = hr(t), i = En(t, r);
3121
+ const t = ir(e), r = hr(t), i = Mn(t, r);
3121
3122
  return {
3122
3123
  backend: r,
3123
3124
  serverProvider: i,
3124
- transportMode: Mn(t, i),
3125
- ...pa(t)
3125
+ transportMode: On(t, i),
3126
+ ...va(t)
3126
3127
  };
3127
3128
  },
3128
3129
  getAuthFetcher: (e) => {
@@ -3147,12 +3148,12 @@ var ta = class {
3147
3148
  return Ht(e);
3148
3149
  },
3149
3150
  renderToolbar(e, t) {
3150
- const r = () => _a(ir(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0).speedOptions), i = Or(this.toolId, t.scope.level, t.scope.scopeId), n = () => {
3151
+ const r = () => ga(ir(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0).speedOptions), i = Or(this.toolId, t.scope.level, t.scope.scopeId), n = () => {
3151
3152
  const s = t.ui?.size;
3152
3153
  return s === "sm" || s === "lg" ? s : "md";
3153
3154
  }, o = () => {
3154
3155
  let s = st.get(i);
3155
- return s && typeof s.isConnected == "boolean" && !s.isConnected && (st.delete(i), s = void 0), s || (s = document.createElement("pie-tool-tts-inline"), s[va] = () => {
3156
+ return s && typeof s.isConnected == "boolean" && !s.isConnected && (st.delete(i), s = void 0), s || (s = document.createElement("pie-tool-tts-inline"), s[_a] = () => {
3156
3157
  st.get(i) === s && st.delete(i);
3157
3158
  }, st.set(i, s)), s.setAttribute("tool-id", i), s.setAttribute("catalog-id", t.catalogId || t.itemId), s.setAttribute("language", t.language || "en-US"), s.setAttribute("size", n()), s.speedOptions = r(), s;
3158
3159
  };
@@ -3185,7 +3186,10 @@ function ye(e) {
3185
3186
  const t = e.isActive();
3186
3187
  e.button.active = t, e.overlay.visible = t, e.onActiveChange?.(t);
3187
3188
  }
3188
- var ma = {
3189
+ function Pr(e, t) {
3190
+ e.setAttribute("data-pie-tool-surface", t);
3191
+ }
3192
+ var ba = {
3189
3193
  toolId: "ruler",
3190
3194
  name: "Ruler",
3191
3195
  description: "On-screen ruler for measurements",
@@ -3206,7 +3210,7 @@ var ma = {
3206
3210
  onClick: () => t.toggleTool(this.toolId),
3207
3211
  active: r.isActive()
3208
3212
  }, n = t.componentOverrides ?? {}, o = ue(this.toolId, e, t, n);
3209
- return o.setAttribute("tool-id", r.fullToolId), {
3213
+ return o.setAttribute("tool-id", r.fullToolId), Pr(o, "frameless"), {
3210
3214
  toolId: this.toolId,
3211
3215
  button: i,
3212
3216
  elements: [{
@@ -3223,7 +3227,7 @@ var ma = {
3223
3227
  subscribeActive: r.subscribeActive
3224
3228
  };
3225
3229
  }
3226
- }, ba = {
3230
+ }, ya = {
3227
3231
  toolId: "protractor",
3228
3232
  name: "Protractor",
3229
3233
  description: "On-screen protractor for angle measurements",
@@ -3244,7 +3248,7 @@ var ma = {
3244
3248
  onClick: () => t.toggleTool(this.toolId),
3245
3249
  active: r.isActive()
3246
3250
  }, n = t.componentOverrides ?? {}, o = ue(this.toolId, e, t, n);
3247
- return o.setAttribute("tool-id", r.fullToolId), {
3251
+ return o.setAttribute("tool-id", r.fullToolId), Pr(o, "frameless"), {
3248
3252
  toolId: this.toolId,
3249
3253
  button: i,
3250
3254
  elements: [{
@@ -3261,7 +3265,7 @@ var ma = {
3261
3265
  subscribeActive: r.subscribeActive
3262
3266
  };
3263
3267
  }
3264
- }, ya = {
3268
+ }, wa = {
3265
3269
  toolId: "answerEliminator",
3266
3270
  name: "Answer Eliminator",
3267
3271
  description: "Strike through answer choices",
@@ -3274,7 +3278,7 @@ var ma = {
3274
3278
  "choiceMasking"
3275
3279
  ],
3276
3280
  isVisibleInContext(e) {
3277
- return Xs(e);
3281
+ return Js(e);
3278
3282
  },
3279
3283
  renderToolbar(e, t) {
3280
3284
  const r = be(this.toolId, t), i = t.componentOverrides ?? {}, n = ue(this.toolId, e, t, i);
@@ -3308,7 +3312,7 @@ var ma = {
3308
3312
  subscribeActive: r.subscribeActive
3309
3313
  };
3310
3314
  }
3311
- }, wa = {
3315
+ }, Ta = {
3312
3316
  toolId: "highlighter",
3313
3317
  name: "Highlighter",
3314
3318
  description: "Highlight text",
@@ -3359,7 +3363,7 @@ var ma = {
3359
3363
  subscribeActive: r.subscribeActive
3360
3364
  };
3361
3365
  }
3362
- }, Ta = {
3366
+ }, ka = {
3363
3367
  toolId: "lineReader",
3364
3368
  name: "Line Reader",
3365
3369
  description: "Reading guide overlay",
@@ -3390,7 +3394,7 @@ var ma = {
3390
3394
  onClick: () => t.toggleTool(this.toolId),
3391
3395
  active: r.isActive()
3392
3396
  }, n = t.componentOverrides ?? {}, o = ue(this.toolId, e, t, n);
3393
- return o.setAttribute("tool-id", r.fullToolId), {
3397
+ return o.setAttribute("tool-id", r.fullToolId), Pr(o, "frameless"), {
3394
3398
  toolId: this.toolId,
3395
3399
  button: i,
3396
3400
  elements: [{
@@ -3407,7 +3411,7 @@ var ma = {
3407
3411
  subscribeActive: r.subscribeActive
3408
3412
  };
3409
3413
  }
3410
- }, ka = {
3414
+ }, Sa = {
3411
3415
  toolId: "theme",
3412
3416
  name: "Theme",
3413
3417
  description: "Accessible themes and contrast",
@@ -3463,7 +3467,7 @@ var ma = {
3463
3467
  subscribeActive: r.subscribeActive
3464
3468
  };
3465
3469
  }
3466
- }, Sa = {
3470
+ }, $a = {
3467
3471
  toolId: "annotationToolbar",
3468
3472
  name: "Highlighter",
3469
3473
  description: "Highlight and annotate text",
@@ -3514,7 +3518,7 @@ var ma = {
3514
3518
  subscribeActive: r.subscribeActive
3515
3519
  };
3516
3520
  }
3517
- }, $a = {
3521
+ }, Ia = {
3518
3522
  toolId: "graph",
3519
3523
  name: "Graph",
3520
3524
  description: "Graphing calculator and coordinate plane",
@@ -3567,7 +3571,7 @@ var ma = {
3567
3571
  subscribeActive: r.subscribeActive
3568
3572
  };
3569
3573
  }
3570
- }, Ia = {
3574
+ }, Aa = {
3571
3575
  toolId: "periodicTable",
3572
3576
  name: "Periodic Table",
3573
3577
  description: "Chemistry periodic table reference",
@@ -3579,7 +3583,7 @@ var ma = {
3579
3583
  "elementReference"
3580
3584
  ],
3581
3585
  isVisibleInContext(e) {
3582
- return Js(e);
3586
+ return Qs(e);
3583
3587
  },
3584
3588
  renderToolbar(e, t) {
3585
3589
  const r = be(this.toolId, t), i = {
@@ -3619,9 +3623,8 @@ var ma = {
3619
3623
  subscribeActive: r.subscribeActive
3620
3624
  };
3621
3625
  }
3622
- }, Aa = [
3623
- fa,
3624
- ga,
3626
+ }, Ea = [
3627
+ da,
3625
3628
  ma,
3626
3629
  ba,
3627
3630
  ya,
@@ -3630,43 +3633,44 @@ var ma = {
3630
3633
  ka,
3631
3634
  Sa,
3632
3635
  $a,
3633
- Ia
3636
+ Ia,
3637
+ Aa
3634
3638
  ];
3635
- function Ea(e = {}) {
3636
- const t = new qs(), r = {
3639
+ function Ma(e = {}) {
3640
+ const t = new Ys(), r = {
3637
3641
  toolTagMap: {
3638
- ...An,
3642
+ ...En,
3639
3643
  ...e.toolTagMap || {}
3640
3644
  },
3641
3645
  toolComponentFactory: e.toolComponentFactory,
3642
3646
  toolComponentFactories: e.toolComponentFactories
3643
3647
  }, i = (n) => e.overrides?.[n.toolId] || n;
3644
- return e.includePackagedTools && Ma(t, {
3648
+ return e.includePackagedTools && Oa(t, {
3645
3649
  toolIds: e.toolIds,
3646
3650
  applyOverrides: i
3647
3651
  }), e.toolModuleLoaders && Object.keys(e.toolModuleLoaders).length > 0 && t.setToolModuleLoaders(e.toolModuleLoaders), t.setComponentOverrides(r), t;
3648
3652
  }
3649
- function Ma(e, t = {}) {
3653
+ function Oa(e, t = {}) {
3650
3654
  const r = t.toolIds && t.toolIds.length > 0 ? new Set(t.toolIds) : null, i = t.applyOverrides || ((n) => n);
3651
- for (const n of Aa)
3655
+ for (const n of Ea)
3652
3656
  r && !r.has(n.toolId) || e.register(i(n));
3653
3657
  }
3654
- function Oa(e = {}) {
3655
- return Ea({
3658
+ function Pa(e = {}) {
3659
+ return Ma({
3656
3660
  ...e,
3657
3661
  includePackagedTools: !0
3658
3662
  });
3659
3663
  }
3660
- function Pa() {
3661
- const e = Oa(), t = /* @__PURE__ */ new Set();
3664
+ function xa() {
3665
+ const e = Pa(), t = /* @__PURE__ */ new Set();
3662
3666
  for (const r of e.getAllTools()) for (const i of r.pnpSupportIds || []) t.add(i);
3663
3667
  return [...t].sort();
3664
3668
  }
3665
- var xa = Pa(), Qa = {
3666
- supports: [...xa],
3669
+ var Ra = xa(), Za = {
3670
+ supports: [...Ra],
3667
3671
  prohibitedSupports: [],
3668
3672
  activateAtInit: []
3669
- }, Ra = {
3673
+ }, Ca = {
3670
3674
  visual: {
3671
3675
  magnification: "magnification",
3672
3676
  screenMagnifier: "screenMagnifier",
@@ -3779,17 +3783,17 @@ var xa = Pa(), Qa = {
3779
3783
  itemGlossary: "itemGlossary",
3780
3784
  tutorialAvailable: "tutorialAvailable"
3781
3785
  }
3782
- }, Za = Object.values(Ra).flatMap((e) => Object.values(e)), el = Sn("ToolCoordinator"), pr;
3786
+ }, el = Object.values(Ca).flatMap((e) => Object.values(e)), tl = $n("ToolCoordinator"), pr;
3783
3787
  (function(e) {
3784
3788
  e[e.BASE = 0] = "BASE", e[e.TOOL = 1e3] = "TOOL", e[e.MODAL = 2e3] = "MODAL", e[e.CONTROL = 3e3] = "CONTROL", e[e.HIGHLIGHT = 4e3] = "HIGHLIGHT";
3785
3789
  })(pr || (pr = {}));
3786
- var yi;
3790
+ var wi;
3787
3791
  (function(e) {
3788
3792
  e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
3789
- })(yi || (yi = {}));
3790
- var Ca = /* @__PURE__ */ mn('<div class="pie-tool-line-reader__mask pie-tool-line-reader__mask--top svelte-1a3d6dx" aria-hidden="true"></div> <div class="pie-tool-line-reader__mask pie-tool-line-reader__mask--bottom svelte-1a3d6dx" aria-hidden="true"></div> <div class="pie-tool-line-reader__mask pie-tool-line-reader__mask--left svelte-1a3d6dx" aria-hidden="true"></div> <div class="pie-tool-line-reader__mask pie-tool-line-reader__mask--right svelte-1a3d6dx" aria-hidden="true"></div>', 1), La = /* @__PURE__ */ mn('<div class="pie-sr-only svelte-1a3d6dx" role="status" aria-live="polite" aria-atomic="true"> </div> <!> <div role="group" tabindex="0" aria-roledescription="Draggable and resizable reading guide overlay"><div class="pie-tool-line-reader__container svelte-1a3d6dx"></div> <div class="pie-tool-line-reader__resize-handle pie-tool-line-reader__resize-handle--bottom svelte-1a3d6dx" title="Drag to resize height" role="button" tabindex="-1" aria-label="Resize handle - drag to adjust height"><svg width="20" height="8" viewBox="0 0 20 8" aria-hidden="true"><rect x="8" y="3" width="4" height="2" fill="var(--pie-primary, #4CAF50)" rx="1"></rect></svg></div></div>', 1), Na = {
3793
+ })(wi || (wi = {}));
3794
+ var La = /* @__PURE__ */ bn('<div class="pie-tool-line-reader__mask pie-tool-line-reader__mask--top svelte-1a3d6dx" aria-hidden="true"></div> <div class="pie-tool-line-reader__mask pie-tool-line-reader__mask--bottom svelte-1a3d6dx" aria-hidden="true"></div> <div class="pie-tool-line-reader__mask pie-tool-line-reader__mask--left svelte-1a3d6dx" aria-hidden="true"></div> <div class="pie-tool-line-reader__mask pie-tool-line-reader__mask--right svelte-1a3d6dx" aria-hidden="true"></div>', 1), Na = /* @__PURE__ */ bn('<div class="pie-sr-only svelte-1a3d6dx" role="status" aria-live="polite" aria-atomic="true"> </div> <!> <div role="group" tabindex="0" aria-roledescription="Draggable and resizable reading guide overlay"><div class="pie-tool-line-reader__container svelte-1a3d6dx"></div> <div class="pie-tool-line-reader__resize-handle pie-tool-line-reader__resize-handle--bottom svelte-1a3d6dx" title="Drag to resize height" role="button" tabindex="-1" aria-label="Resize handle - drag to adjust height"><svg width="20" height="8" viewBox="0 0 20 8" aria-hidden="true"><rect x="8" y="3" width="4" height="2" fill="var(--pie-primary, #4CAF50)" rx="1"></rect></svg></div></div>', 1), Da = {
3791
3795
  hash: "svelte-1a3d6dx",
3792
- code: `.pie-sr-only.svelte-1a3d6dx {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;}.pie-tool-line-reader.svelte-1a3d6dx {border:none;cursor:move;overflow:visible;position:absolute;transform:translate(-50%, -50%);user-select:none;pointer-events:auto;touch-action:none;}.pie-tool-line-reader.svelte-1a3d6dx:focus {outline:3px solid var(--pie-button-focus-outline, var(--pie-primary, #4A90E2));outline-offset:2px;}.pie-tool-line-reader.svelte-1a3d6dx:focus-visible {outline:3px solid var(--pie-button-focus-outline, var(--pie-primary, #4A90E2));outline-offset:2px;}.pie-tool-line-reader__container.svelte-1a3d6dx {width:100%;height:100%;position:relative;transition:background-color 0.2s ease;}.pie-tool-line-reader__resize-handle.svelte-1a3d6dx {position:absolute;cursor:ns-resize;z-index:10;display:flex;align-items:center;justify-content:center;}.pie-tool-line-reader__resize-handle--bottom.svelte-1a3d6dx {bottom:-12px;left:50%;transform:translateX(-50%);width:44px;height:24px;background-color:color-mix(in srgb, var(--pie-background, #fff) 90%, transparent);border-radius:12px;border:2px solid var(--pie-primary, #4caf50);}.pie-tool-line-reader__resize-handle.svelte-1a3d6dx:hover {background-color:color-mix(in srgb, var(--pie-primary, #4caf50) 20%, transparent);}.pie-tool-line-reader__resize-handle.svelte-1a3d6dx:active {cursor:ns-resize;}.pie-tool-line-reader.svelte-1a3d6dx:active {cursor:grabbing;}
3796
+ code: `.pie-sr-only.svelte-1a3d6dx {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;}.pie-tool-line-reader.svelte-1a3d6dx {border:none;cursor:move;overflow:visible;position:absolute;transform:translate(-50%, -50%);user-select:none;pointer-events:auto;touch-action:none;}.pie-tool-line-reader.svelte-1a3d6dx:focus-visible {outline:3px solid var(--pie-button-focus-outline, var(--pie-primary, #4A90E2));outline-offset:2px;}.pie-tool-line-reader__container.svelte-1a3d6dx {width:100%;height:100%;position:relative;transition:background-color 0.2s ease;}.pie-tool-line-reader__resize-handle.svelte-1a3d6dx {position:absolute;cursor:ns-resize;z-index:10;display:flex;align-items:center;justify-content:center;}.pie-tool-line-reader__resize-handle--bottom.svelte-1a3d6dx {bottom:-12px;left:50%;transform:translateX(-50%);width:44px;height:24px;background-color:color-mix(in srgb, var(--pie-background, #fff) 90%, transparent);border-radius:12px;border:2px solid var(--pie-primary, #4caf50);}.pie-tool-line-reader__resize-handle.svelte-1a3d6dx:hover {background-color:color-mix(in srgb, var(--pie-primary, #4caf50) 20%, transparent);}.pie-tool-line-reader__resize-handle.svelte-1a3d6dx:active {cursor:ns-resize;}.pie-tool-line-reader.svelte-1a3d6dx:active {cursor:grabbing;}
3793
3797
 
3794
3798
  /* Masking overlays for obscure mode - 4 rectangles covering all areas except line reader window */.pie-tool-line-reader__mask.svelte-1a3d6dx {position:fixed;background:color-mix(in srgb, var(--pie-text, #000) 85%, transparent);z-index:999;pointer-events:none;}.pie-tool-line-reader__mask--top.svelte-1a3d6dx {top:0;left:0;right:0;
3795
3799
  /* Height set via inline style */}.pie-tool-line-reader__mask--bottom.svelte-1a3d6dx {
@@ -3801,12 +3805,12 @@ var Ca = /* @__PURE__ */ mn('<div class="pie-tool-line-reader__mask pie-tool-lin
3801
3805
 
3802
3806
  /* In masking mode, the window should be transparent to show content underneath */.pie-tool-line-reader.pie-tool-line-reader--masking-mode.svelte-1a3d6dx .pie-tool-line-reader__container:where(.svelte-1a3d6dx) {background-color:transparent !important;}`
3803
3807
  };
3804
- function Da(e, t) {
3805
- Ei(t, !0), ks(e, Na);
3806
- let r = pi(t, "visible", 7, !1), i = pi(t, "toolId", 7, "lineReader");
3808
+ function ja(e, t) {
3809
+ Mi(t, !0), Ss(e, Da);
3810
+ let r = vi(t, "visible", 7, !1), i = vi(t, "toolId", 7, "lineReader");
3807
3811
  const n = typeof window < "u";
3808
3812
  let o = /* @__PURE__ */ x(void 0), s = /* @__PURE__ */ x(null);
3809
- const a = /* @__PURE__ */ Jr(() => u(s)?.toolCoordinator);
3813
+ const a = /* @__PURE__ */ Qr(() => u(s)?.toolCoordinator);
3810
3814
  let c = /* @__PURE__ */ x(!1), h = /* @__PURE__ */ x(!1), p = /* @__PURE__ */ x(se({
3811
3815
  x: n ? window.innerWidth / 2 : 400,
3812
3816
  y: n ? window.innerHeight / 2 : 300
@@ -3845,33 +3849,33 @@ function Da(e, t) {
3845
3849
  ], H = 10, we = 10;
3846
3850
  at(() => {
3847
3851
  if (u(o))
3848
- return Hs(u(o), (w) => {
3852
+ return Us(u(o), (w) => {
3849
3853
  P(s, w, !0);
3850
3854
  });
3851
3855
  });
3852
3856
  function F(w) {
3853
3857
  P(_, w, !0), setTimeout(() => P(_, ""), 1e3);
3854
3858
  }
3855
- function On() {
3859
+ function Pn() {
3856
3860
  const w = (E.findIndex((L) => L.value === u(m)) + 1) % E.length;
3857
3861
  P(m, E[w].value, !0), F(`Color changed to ${E[w].name}`);
3858
3862
  }
3859
- function Pr(w) {
3863
+ function xr(w) {
3860
3864
  P(y, Math.max(0.1, Math.min(0.9, u(y) + w)), !0), F(`Opacity ${Math.round(u(y) * 100)}%`);
3861
3865
  }
3862
- function Pn() {
3866
+ function xn() {
3863
3867
  P(A, u(A) === "highlight" ? "obscure" : "highlight", !0), F(`Mode changed to ${u(A) === "highlight" ? "highlight" : "masking"}`);
3864
3868
  }
3865
- function xn(w) {
3866
- w.target.closest(".resize-handle") ? Cn(w) : Rn(w);
3867
- }
3868
3869
  function Rn(w) {
3870
+ w.target.closest(".resize-handle") ? Ln(w) : Cn(w);
3871
+ }
3872
+ function Cn(w) {
3869
3873
  u(o) && (u(o).setPointerCapture(w.pointerId), P(c, !0), P(f, {
3870
3874
  x: w.clientX - u(p).x,
3871
3875
  y: w.clientY - u(p).y
3872
3876
  }, !0), u(a)?.bringToFront(u(o)), u(o).addEventListener("pointermove", Ut), u(o).addEventListener("pointerup", Gt), w.preventDefault());
3873
3877
  }
3874
- function Cn(w) {
3878
+ function Ln(w) {
3875
3879
  u(o) && (u(o).setPointerCapture(w.pointerId), P(h, !0), P(v, {
3876
3880
  width: u(d).width,
3877
3881
  height: u(d).height,
@@ -3891,7 +3895,7 @@ function Da(e, t) {
3891
3895
  function Gt(w) {
3892
3896
  u(o) && (u(o).releasePointerCapture(w.pointerId), u(o).removeEventListener("pointermove", Ut), u(o).removeEventListener("pointerup", Gt), P(c, !1), P(h, !1));
3893
3897
  }
3894
- function Ln(w) {
3898
+ function Nn(w) {
3895
3899
  let L = !1;
3896
3900
  switch (w.key) {
3897
3901
  case "ArrowUp":
@@ -3916,32 +3920,32 @@ function Da(e, t) {
3916
3920
  break;
3917
3921
  case "c":
3918
3922
  case "C":
3919
- On(), L = !0;
3923
+ Pn(), L = !0;
3920
3924
  break;
3921
3925
  case "]":
3922
- Pr(0.1), L = !0;
3926
+ xr(0.1), L = !0;
3923
3927
  break;
3924
3928
  case "[":
3925
- Pr(-0.1), L = !0;
3929
+ xr(-0.1), L = !0;
3926
3930
  break;
3927
3931
  case "m":
3928
3932
  case "M":
3929
- Pn(), L = !0;
3933
+ xn(), L = !0;
3930
3934
  break;
3931
3935
  }
3932
3936
  L && w.preventDefault();
3933
3937
  }
3934
3938
  at(() => {
3935
3939
  u(a) && i() && !u(B) && (u(a).registerTool(i(), "Line Reader", void 0, pr.TOOL), P(B, !0));
3936
- }), ws(() => () => {
3940
+ }), Ts(() => () => {
3937
3941
  u(a) && i() && u(a).unregisterTool(i());
3938
3942
  }), at(() => {
3939
3943
  u(a) && u(o) && i() && u(a).updateToolElement(i(), u(o));
3940
3944
  }), at(() => {
3941
3945
  r() && u(o) && setTimeout(() => u(o)?.focus(), 100);
3942
3946
  });
3943
- let Nn = /* @__PURE__ */ Jr(() => u(m) + Math.round(u(y) * 255).toString(16).padStart(2, "0"));
3944
- var Dn = {
3947
+ let Dn = /* @__PURE__ */ Qr(() => u(m) + Math.round(u(y) * 255).toString(16).padStart(2, "0"));
3948
+ var jn = {
3945
3949
  get visible() {
3946
3950
  return r();
3947
3951
  },
@@ -3954,31 +3958,31 @@ function Da(e, t) {
3954
3958
  set toolId(w = "lineReader") {
3955
3959
  i(w), or();
3956
3960
  }
3957
- }, xr = ds(), jn = Xt(xr), zn = (w) => {
3958
- var L = La(), qt = Xt(L), Vn = Zr(qt, !0);
3959
- Br(qt);
3960
- var Rr = nt(qt, 2), Fn = (fe) => {
3961
- var yt = Ca(), Lr = Xt(yt), Nr = nt(Lr, 2), Dr = nt(Nr, 2), Bn = nt(Dr, 2);
3962
- ei((Hn, Un) => {
3963
- We(Lr, `height: ${Hn ?? ""}px;`), We(Nr, `top: ${u(p).y + u(d).height / 2}px;`), We(Dr, `top: ${u(p).y - u(d).height / 2}px; height: ${u(d).height ?? ""}px; width: ${Un ?? ""}px;`), We(Bn, `top: ${u(p).y - u(d).height / 2}px; height: ${u(d).height ?? ""}px; left: ${u(p).x + u(d).width / 2}px;`);
3961
+ }, Rr = hs(), zn = Xt(Rr), Vn = (w) => {
3962
+ var L = Na(), qt = Xt(L), Fn = ei(qt, !0);
3963
+ Hr(qt);
3964
+ var Cr = nt(qt, 2), Wn = (fe) => {
3965
+ var yt = La(), Nr = Xt(yt), Dr = nt(Nr, 2), jr = nt(Dr, 2), Hn = nt(jr, 2);
3966
+ ti((Un, Gn) => {
3967
+ We(Nr, `height: ${Un ?? ""}px;`), We(Dr, `top: ${u(p).y + u(d).height / 2}px;`), We(jr, `top: ${u(p).y - u(d).height / 2}px; height: ${u(d).height ?? ""}px; width: ${Gn ?? ""}px;`), We(Hn, `top: ${u(p).y - u(d).height / 2}px; height: ${u(d).height ?? ""}px; left: ${u(p).x + u(d).width / 2}px;`);
3964
3968
  }, [() => Math.max(0, u(p).y - u(d).height / 2), () => Math.max(0, u(p).x - u(d).width / 2)]), Et(fe, yt);
3965
3969
  };
3966
- li(Rr, (fe) => {
3967
- u(A) === "obscure" && fe(Fn);
3970
+ ci(Cr, (fe) => {
3971
+ u(A) === "obscure" && fe(Wn);
3968
3972
  });
3969
- var Te = nt(Rr, 2);
3970
- let Cr;
3971
- var Wn = Zr(Te);
3972
- Si(2), Br(Te), Cs(Te, (fe) => P(o, fe), () => u(o)), ei((fe, yt) => {
3973
- gs(Vn, u(_)), Cr = Is(Te, 1, "pie-tool-line-reader svelte-1a3d6dx", null, Cr, { "pie-tool-line-reader--masking-mode": u(A) === "obscure" }), We(Te, `left: ${u(p).x ?? ""}px; top: ${u(p).y ?? ""}px; width: ${u(d).width ?? ""}px; height: ${u(d).height ?? ""}px;`), Os(Te, "aria-label", `Line Reader tool. Mode: ${u(A) === "highlight" ? "Highlight" : "Masking"}. Use arrow keys to move, +/- to resize height, C to change color, [ and ] to adjust opacity, M to toggle mode. Current color: ${fe ?? ""}, Opacity: ${yt ?? ""}%`), We(Wn, `background-color: ${u(Nn) ?? ""};`);
3974
- }, [() => E.find((fe) => fe.value === u(m))?.name, () => Math.round(u(y) * 100)]), ii("pointerdown", Te, xn), ii("keydown", Te, Ln), Et(w, L);
3973
+ var Te = nt(Cr, 2);
3974
+ let Lr;
3975
+ var Bn = ei(Te);
3976
+ $i(2), Hr(Te), Ls(Te, (fe) => P(o, fe), () => u(o)), ti((fe, yt) => {
3977
+ ms(Fn, u(_)), Lr = As(Te, 1, "pie-tool-line-reader svelte-1a3d6dx", null, Lr, { "pie-tool-line-reader--masking-mode": u(A) === "obscure" }), We(Te, `left: ${u(p).x ?? ""}px; top: ${u(p).y ?? ""}px; width: ${u(d).width ?? ""}px; height: ${u(d).height ?? ""}px;`), Ps(Te, "aria-label", `Line Reader tool. Mode: ${u(A) === "highlight" ? "Highlight" : "Masking"}. Use arrow keys to move, +/- to resize height, C to change color, [ and ] to adjust opacity, M to toggle mode. Current color: ${fe ?? ""}, Opacity: ${yt ?? ""}%`), We(Bn, `background-color: ${u(Dn) ?? ""};`);
3978
+ }, [() => E.find((fe) => fe.value === u(m))?.name, () => Math.round(u(y) * 100)]), ni("pointerdown", Te, Rn), ni("keydown", Te, Nn), Et(w, L);
3975
3979
  };
3976
- return li(jn, (w) => {
3977
- r() && w(zn);
3978
- }), Et(e, xr), Mi(Dn);
3980
+ return ci(zn, (w) => {
3981
+ r() && w(Vn);
3982
+ }), Et(e, Rr), Oi(jn);
3979
3983
  }
3980
- ls(["pointerdown", "keydown"]);
3981
- customElements.define("pie-tool-line-reader", js(Da, {
3984
+ cs(["pointerdown", "keydown"]);
3985
+ customElements.define("pie-tool-line-reader", zs(ja, {
3982
3986
  visible: {
3983
3987
  attribute: "visible",
3984
3988
  type: "Boolean"
@@ -3989,5 +3993,5 @@ customElements.define("pie-tool-line-reader", js(Da, {
3989
3993
  }
3990
3994
  }, [], [], { mode: "open" }));
3991
3995
  export {
3992
- Da as default
3996
+ ja as default
3993
3997
  };