@pie-players/pie-tool-answer-eliminator 0.3.26 → 0.3.28

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 u } from "./defineProperty-CyepwRr5.js";
2
2
  if (typeof window < "u") {
3
- var dr, fr;
4
- ((dr = (fr = window).__svelte ?? (fr.__svelte = {})).v ?? (dr.v = /* @__PURE__ */ new Set())).add("5");
3
+ var hr, pr;
4
+ ((hr = (pr = window).__svelte ?? (pr.__svelte = {})).v ?? (hr.v = /* @__PURE__ */ new Set())).add("5");
5
5
  }
6
- var wt = {}, M = Symbol(), ko = Symbol("filename");
7
- var Ki = Array.isArray, Ui = Array.prototype.indexOf, ze = Array.prototype.includes, Yi = Array.from, Tt = Object.keys, At = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, Xi = Object.prototype, Qi = Array.prototype, Ji = Object.getPrototypeOf, hr = Object.isExtensible, Zi = () => {
6
+ var wt = {}, M = Symbol(), Ro = Symbol("filename");
7
+ var Qi = Array.isArray, Ji = Array.prototype.indexOf, ze = Array.prototype.includes, Zi = Array.from, Tt = Object.keys, At = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, en = Object.prototype, tn = Array.prototype, rn = Object.getPrototypeOf, vr = Object.isExtensible, nn = () => {
8
8
  };
9
- function en(e) {
9
+ function sn(e) {
10
10
  for (var t = 0; t < e.length; t++) e[t]();
11
11
  }
12
- function tn() {
12
+ function on() {
13
13
  var e, t;
14
14
  return {
15
15
  promise: new Promise((r, i) => {
@@ -19,48 +19,48 @@ function tn() {
19
19
  reject: t
20
20
  };
21
21
  }
22
- var Co = 1 << 24, ee = 1024, ce = 2048, Pe = 4096, Fr = 8192, rn = 16384, Br = 32768, pr = 1 << 25, jr = 65536, $o = 1 << 17, Oo = 1 << 18, st = 1 << 19, nn = 1 << 20, Lo = 1 << 25, ot = 65536, vr = 1 << 21, Ro = 1 << 22, Vr = 1 << 23, Je = Symbol("$state"), zr = Symbol("legacy props"), sn = Symbol("proxy path"), Xt = new class extends Error {
22
+ var Mo = 1 << 24, ee = 1024, ce = 2048, Pe = 4096, jr = 8192, an = 16384, zr = 32768, mr = 1 << 25, Gr = 65536, Po = 1 << 17, xo = 1 << 18, st = 1 << 19, ln = 1 << 20, Ho = 1 << 25, ot = 65536, gr = 1 << 21, No = 1 << 22, Wr = 1 << 23, Je = Symbol("$state"), qr = Symbol("legacy props"), cn = Symbol("proxy path"), Jt = new class extends Error {
23
23
  constructor(...t) {
24
24
  super(...t), u(this, "name", "StaleReactionError"), u(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
25
25
  }
26
- }(), Po = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
27
- function on(e) {
26
+ }(), Fo = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
27
+ function un(e) {
28
28
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
29
29
  }
30
- function an(e) {
30
+ function dn(e) {
31
31
  throw new Error("https://svelte.dev/e/effect_in_teardown");
32
32
  }
33
- function ln() {
33
+ function fn() {
34
34
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
35
35
  }
36
- function cn(e) {
36
+ function hn(e) {
37
37
  throw new Error("https://svelte.dev/e/effect_orphan");
38
38
  }
39
- function un() {
39
+ function pn() {
40
40
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
41
41
  }
42
- function dn() {
42
+ function vn() {
43
43
  throw new Error("https://svelte.dev/e/hydration_failed");
44
44
  }
45
- function fn(e) {
45
+ function mn(e) {
46
46
  throw new Error("https://svelte.dev/e/props_invalid_value");
47
47
  }
48
- function hn() {
48
+ function gn() {
49
49
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
50
50
  }
51
- function pn() {
51
+ function _n() {
52
52
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
53
53
  }
54
- function vn() {
54
+ function yn() {
55
55
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
56
56
  }
57
- function mn() {
57
+ function bn() {
58
58
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
59
59
  }
60
- function Gr(e) {
60
+ function Kr(e) {
61
61
  console.warn("https://svelte.dev/e/hydration_mismatch");
62
62
  }
63
- function gn() {
63
+ function wn() {
64
64
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
65
65
  }
66
66
  var Y = !1;
@@ -70,19 +70,19 @@ function ct(e) {
70
70
  var x;
71
71
  function tt(e) {
72
72
  if (e === null)
73
- throw Gr(), wt;
73
+ throw Kr(), wt;
74
74
  return x = e;
75
75
  }
76
- function Wr() {
76
+ function Ur() {
77
77
  return tt(/* @__PURE__ */ Ue(x));
78
78
  }
79
- function _n(e = 1) {
79
+ function Tn(e = 1) {
80
80
  if (Y) {
81
81
  for (var t = e, r = x; t--; ) r = /* @__PURE__ */ Ue(r);
82
82
  x = r;
83
83
  }
84
84
  }
85
- function yn(e = !0) {
85
+ function An(e = !0) {
86
86
  for (var t = 0, r = x; ; ) {
87
87
  if (r.nodeType === 8) {
88
88
  var i = r.data;
@@ -95,27 +95,27 @@ function yn(e = !0) {
95
95
  e && r.remove(), r = n;
96
96
  }
97
97
  }
98
- function qr(e) {
98
+ function Yr(e) {
99
99
  return e === this.v;
100
100
  }
101
- function bn(e, t) {
101
+ function Sn(e, t) {
102
102
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
103
103
  }
104
- function Kr(e) {
105
- return !bn(e, this.v);
104
+ function Xr(e) {
105
+ return !Sn(e, this.v);
106
106
  }
107
107
  var Re = !1, at = !1;
108
- function mr(e, t) {
109
- return e.label = t, wn(e.v, t), e;
108
+ function _r(e, t) {
109
+ return e.label = t, In(e.v, t), e;
110
110
  }
111
- function wn(e, t) {
112
- return e?.[sn]?.(t), e;
111
+ function In(e, t) {
112
+ return e?.[cn]?.(t), e;
113
113
  }
114
114
  var O = null;
115
115
  function St(e) {
116
116
  O = e;
117
117
  }
118
- function Ur(e, t = !1, r) {
118
+ function Qr(e, t = !1, r) {
119
119
  O = {
120
120
  p: O,
121
121
  i: !1,
@@ -131,43 +131,43 @@ function Ur(e, t = !1, r) {
131
131
  } : null
132
132
  };
133
133
  }
134
- function Yr(e) {
134
+ function Jr(e) {
135
135
  var t = O, r = t.e;
136
136
  if (r !== null) {
137
137
  t.e = null;
138
- for (var i of r) Ti(i);
138
+ for (var i of r) Ii(i);
139
139
  }
140
140
  return e !== void 0 && (t.x = e), t.i = !0, O = t.p, e ?? {};
141
141
  }
142
- function Ct() {
142
+ function $t() {
143
143
  return !at || O !== null && O.l === null;
144
144
  }
145
145
  var Ie = [];
146
- function Xr() {
146
+ function Zr() {
147
147
  var e = Ie;
148
- Ie = [], en(e);
148
+ Ie = [], sn(e);
149
149
  }
150
150
  function Ge(e) {
151
151
  if (Ie.length === 0 && !Ze) {
152
152
  var t = Ie;
153
153
  queueMicrotask(() => {
154
- t === Ie && Xr();
154
+ t === Ie && Zr();
155
155
  });
156
156
  }
157
157
  Ie.push(e);
158
158
  }
159
- function Tn() {
160
- for (; Ie.length > 0; ) Xr();
159
+ function En() {
160
+ for (; Ie.length > 0; ) Zr();
161
161
  }
162
- function Qr(e) {
162
+ function ei(e) {
163
163
  var t = T;
164
164
  if (t === null)
165
- return w.f |= Vr, e;
165
+ return w.f |= Wr, e;
166
166
  if (!(t.f & 32768) && !(t.f & 4))
167
167
  throw e;
168
- je(e, t);
168
+ Ve(e, t);
169
169
  }
170
- function je(e, t) {
170
+ function Ve(e, t) {
171
171
  for (; t !== null; ) {
172
172
  if (t.f & 128) {
173
173
  if (!(t.f & 32768)) throw e;
@@ -182,23 +182,23 @@ function je(e, t) {
182
182
  }
183
183
  throw e;
184
184
  }
185
- var An = ~(ce | Pe | ee);
185
+ var kn = ~(ce | Pe | ee);
186
186
  function R(e, t) {
187
- e.f = e.f & An | t;
187
+ e.f = e.f & kn | t;
188
188
  }
189
- function Qt(e) {
189
+ function Zt(e) {
190
190
  e.f & 512 || e.deps === null ? R(e, ee) : R(e, Pe);
191
191
  }
192
- function Jr(e) {
192
+ function ti(e) {
193
193
  if (e !== null)
194
194
  for (const t of e)
195
- !(t.f & 2) || !(t.f & 65536) || (t.f ^= ot, Jr(t.deps));
195
+ !(t.f & 2) || !(t.f & 65536) || (t.f ^= ot, ti(t.deps));
196
196
  }
197
- function Zr(e, t, r) {
198
- e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e), Jr(e.deps), R(e, ee);
197
+ function ri(e, t, r) {
198
+ e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e), ti(e.deps), R(e, ee);
199
199
  }
200
- var Sn = !1, ut = !1;
201
- function In(e) {
200
+ var Cn = !1, ut = !1;
201
+ function $n(e) {
202
202
  var t = ut;
203
203
  try {
204
204
  return ut = !1, [e(), ut];
@@ -206,14 +206,14 @@ function In(e) {
206
206
  ut = t;
207
207
  }
208
208
  }
209
- function ei(e, t) {
209
+ function ii(e, t) {
210
210
  if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
211
211
  }
212
- function Jt(e, t) {
213
- ei(e, t), t.add(e);
212
+ function er(e, t) {
213
+ ii(e, t), t.add(e);
214
214
  }
215
215
  function A(e, t, r) {
216
- ei(e, t), t.set(e, r);
216
+ ii(e, t), t.set(e, r);
217
217
  }
218
218
  function E(e, t, r) {
219
219
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
@@ -225,10 +225,10 @@ function l(e, t) {
225
225
  function b(e, t, r) {
226
226
  return e.set(E(e, t), r), r;
227
227
  }
228
- var ti, le = /* @__PURE__ */ new Set(), C = null, gr = null, F = null, Bt = null, Ze = !1, xt = !1, We = null, It = null, ri = 0;
229
- var En = 1, Et = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakSet(), Ke = class ii {
228
+ var ni, le = /* @__PURE__ */ new Set(), C = null, yr = null, F = null, jt = null, Ze = !1, Ht = !1, We = null, It = null, si = 0;
229
+ var On = 1, Et = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakSet(), Ke = class oi {
230
230
  constructor() {
231
- Jt(this, re), u(this, "id", En++), u(this, "current", /* @__PURE__ */ new Map()), u(this, "previous", /* @__PURE__ */ new Map()), A(this, Et, /* @__PURE__ */ new Set()), A(this, dt, /* @__PURE__ */ new Set()), A(this, Ne, 0), A(this, De, 0), A(this, mt, null), A(this, U, []), A(this, rt, /* @__PURE__ */ new Set()), A(this, Ce, /* @__PURE__ */ new Set()), A(this, Se, /* @__PURE__ */ new Map()), u(this, "is_fork", !1), A(this, ft, !1);
231
+ er(this, re), u(this, "id", On++), u(this, "current", /* @__PURE__ */ new Map()), u(this, "previous", /* @__PURE__ */ new Map()), A(this, Et, /* @__PURE__ */ new Set()), A(this, dt, /* @__PURE__ */ new Set()), A(this, Ne, 0), A(this, De, 0), A(this, mt, null), A(this, U, []), A(this, rt, /* @__PURE__ */ new Set()), A(this, Ce, /* @__PURE__ */ new Set()), A(this, Se, /* @__PURE__ */ new Map()), u(this, "is_fork", !1), A(this, ft, !1);
232
232
  }
233
233
  skip_effect(t) {
234
234
  l(Se, this).has(t) || l(Se, this).set(t, {
@@ -258,9 +258,9 @@ var En = 1, Et = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap
258
258
  flush() {
259
259
  var t = null;
260
260
  try {
261
- xt = !0, C = this, E(re, this, ni).call(this);
261
+ Ht = !0, C = this, E(re, this, ai).call(this);
262
262
  } finally {
263
- ri = 0, Bt = null, We = null, It = null, xt = !1, C = null, F = null, me.clear();
263
+ si = 0, jt = null, We = null, It = null, Ht = !1, C = null, F = null, me.clear();
264
264
  }
265
265
  }
266
266
  discard() {
@@ -287,12 +287,12 @@ var En = 1, Et = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap
287
287
  l(dt, this).add(t);
288
288
  }
289
289
  settled() {
290
- return (l(mt, this) ?? b(mt, this, tn())).promise;
290
+ return (l(mt, this) ?? b(mt, this, on())).promise;
291
291
  }
292
292
  static ensure() {
293
293
  if (C === null) {
294
- const t = C = new ii();
295
- xt || (le.add(C), Ze || Ge(() => {
294
+ const t = C = new oi();
295
+ Ht || (le.add(C), Ze || Ge(() => {
296
296
  C === t && t.flush();
297
297
  }));
298
298
  }
@@ -309,14 +309,14 @@ var En = 1, Et = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap
309
309
  for (const [r, i] of t.previous) F.has(r) || F.set(r, i);
310
310
  }
311
311
  schedule(t) {
312
- if (Bt = t, t.b?.is_pending && t.f & 16777228 && !(t.f & 32768)) {
312
+ if (jt = t, t.b?.is_pending && t.f & 16777228 && !(t.f & 32768)) {
313
313
  t.b.defer_effect(t);
314
314
  return;
315
315
  }
316
316
  for (var r = t; r.parent !== null; ) {
317
317
  r = r.parent;
318
318
  var i = r.f;
319
- if (We !== null && r === T && (Re || (w === null || !(w.f & 2)) && !Sn))
319
+ if (We !== null && r === T && (Re || (w === null || !(w.f & 2)) && !Cn))
320
320
  return;
321
321
  if (i & 96) {
322
322
  if (!(i & 1024)) return;
@@ -326,12 +326,12 @@ var En = 1, Et = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap
326
326
  l(U, this).push(r);
327
327
  }
328
328
  };
329
- ti = Ke;
330
- function _r() {
329
+ ni = Ke;
330
+ function br() {
331
331
  return this.is_fork || l(De, this) > 0;
332
332
  }
333
- function ni() {
334
- if (ri++ > 1e3 && (le.delete(this), Cn()), !E(re, this, _r).call(this)) {
333
+ function ai() {
334
+ if (si++ > 1e3 && (le.delete(this), Rn()), !E(re, this, br).call(this)) {
335
335
  for (const o of l(rt, this))
336
336
  l(Ce, this).delete(o), R(o, ce), this.schedule(o);
337
337
  for (const o of l(Ce, this))
@@ -341,30 +341,30 @@ function ni() {
341
341
  b(U, this, []), this.apply();
342
342
  var t = We = [], r = [], i = It = [];
343
343
  for (const o of e) try {
344
- E(re, this, si).call(this, o, t, r);
344
+ E(re, this, li).call(this, o, t, r);
345
345
  } catch (a) {
346
- throw ci(o), a;
346
+ throw fi(o), a;
347
347
  }
348
348
  if (C = null, i.length > 0) {
349
- var n = ti.ensure();
349
+ var n = ni.ensure();
350
350
  for (const o of i) n.schedule(o);
351
351
  }
352
- if (We = null, It = null, E(re, this, _r).call(this)) {
353
- E(re, this, yr).call(this, r), E(re, this, yr).call(this, t);
354
- for (const [o, a] of l(Se, this)) li(o, a);
352
+ if (We = null, It = null, E(re, this, br).call(this)) {
353
+ E(re, this, wr).call(this, r), E(re, this, wr).call(this, t);
354
+ for (const [o, a] of l(Se, this)) di(o, a);
355
355
  } else {
356
356
  l(Ne, this) === 0 && le.delete(this), l(rt, this).clear(), l(Ce, this).clear();
357
357
  for (const o of l(Et, this)) o(this);
358
- l(Et, this).clear(), gr = this, br(r), br(t), gr = null, l(mt, this)?.resolve();
358
+ l(Et, this).clear(), yr = this, Tr(r), Tr(t), yr = null, l(mt, this)?.resolve();
359
359
  }
360
360
  var s = C;
361
361
  if (l(U, this).length > 0) {
362
362
  const o = s ?? (s = this);
363
363
  l(U, o).push(...l(U, this).filter((a) => !l(U, o).includes(a)));
364
364
  }
365
- s !== null && (le.add(s), E(re, s, ni).call(s)), le.has(this) || E(re, this, kn).call(this);
365
+ s !== null && (le.add(s), E(re, s, ai).call(s)), le.has(this) || E(re, this, Ln).call(this);
366
366
  }
367
- function si(e, t, r) {
367
+ function li(e, t, r) {
368
368
  e.f ^= ee;
369
369
  for (var i = e.first; i !== null; ) {
370
370
  var n = i.f, s = (n & 96) !== 0;
@@ -386,14 +386,14 @@ function si(e, t, r) {
386
386
  }
387
387
  }
388
388
  }
389
- function yr(e) {
390
- for (var t = 0; t < e.length; t += 1) Zr(e[t], l(rt, this), l(Ce, this));
389
+ function wr(e) {
390
+ for (var t = 0; t < e.length; t += 1) ri(e[t], l(rt, this), l(Ce, this));
391
391
  }
392
- function kn() {
392
+ function Ln() {
393
393
  for (const a of le) {
394
394
  var e = a.id < this.id, t = [];
395
- for (const [c, h] of this.current) {
396
- if (a.current.has(c)) if (e && h !== a.current.get(c)) a.current.set(c, h);
395
+ for (const [c, p] of this.current) {
396
+ if (a.current.has(c)) if (e && p !== a.current.get(c)) a.current.set(c, p);
397
397
  else continue;
398
398
  t.push(c);
399
399
  }
@@ -403,10 +403,10 @@ function kn() {
403
403
  else if (t.length > 0) {
404
404
  a.activate();
405
405
  var i = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
406
- for (var s of t) oi(s, r, i, n);
406
+ for (var s of t) ci(s, r, i, n);
407
407
  if (l(U, a).length > 0) {
408
408
  a.apply();
409
- for (var o of l(U, a)) E(re, a, si).call(a, o, [], []);
409
+ for (var o of l(U, a)) E(re, a, li).call(a, o, [], []);
410
410
  b(U, a, []);
411
411
  }
412
412
  a.deactivate();
@@ -419,32 +419,32 @@ function se(e) {
419
419
  try {
420
420
  var r;
421
421
  for (e && (C !== null && !C.is_fork && C.flush(), r = e()); ; ) {
422
- if (Tn(), C === null) return r;
422
+ if (En(), C === null) return r;
423
423
  C.flush();
424
424
  }
425
425
  } finally {
426
426
  Ze = t;
427
427
  }
428
428
  }
429
- function Cn() {
429
+ function Rn() {
430
430
  if (0) {
431
431
  var e;
432
432
  for (const r of C.current.keys()) for (const [i, n] of r.updated ?? [])
433
433
  var t;
434
434
  }
435
435
  try {
436
- un();
436
+ pn();
437
437
  } catch (r) {
438
- je(r, Bt);
438
+ Ve(r, jt);
439
439
  }
440
440
  }
441
441
  var ae = null;
442
- function br(e) {
442
+ function Tr(e) {
443
443
  var t = e.length;
444
444
  if (t !== 0) {
445
445
  for (var r = 0; r < t; ) {
446
446
  var i = e[r++];
447
- if (!(i.f & 24576) && lt(i) && (ae = /* @__PURE__ */ new Set(), qe(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null && Si(i), ae?.size > 0)) {
447
+ if (!(i.f & 24576) && lt(i) && (ae = /* @__PURE__ */ new Set(), qe(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null && ki(i), ae?.size > 0)) {
448
448
  me.clear();
449
449
  for (const n of ae) {
450
450
  if (n.f & 24576) continue;
@@ -463,73 +463,73 @@ function br(e) {
463
463
  ae = null;
464
464
  }
465
465
  }
466
- function oi(e, t, r, i) {
466
+ function ci(e, t, r, i) {
467
467
  if (!r.has(e) && (r.add(e), e.reactions !== null))
468
468
  for (const n of e.reactions) {
469
469
  const s = n.f;
470
- s & 2 ? oi(n, t, r, i) : s & 4194320 && !(s & 2048) && ai(n, t, i) && (R(n, ce), Zt(n));
470
+ s & 2 ? ci(n, t, r, i) : s & 4194320 && !(s & 2048) && ui(n, t, i) && (R(n, ce), tr(n));
471
471
  }
472
472
  }
473
- function ai(e, t, r) {
473
+ function ui(e, t, r) {
474
474
  const i = r.get(e);
475
475
  if (i !== void 0) return i;
476
476
  if (e.deps !== null) for (const n of e.deps) {
477
477
  if (ze.call(t, n)) return !0;
478
- if (n.f & 2 && ai(n, t, r))
478
+ if (n.f & 2 && ui(n, t, r))
479
479
  return r.set(n, !0), !0;
480
480
  }
481
481
  return r.set(e, !1), !1;
482
482
  }
483
- function Zt(e) {
483
+ function tr(e) {
484
484
  C.schedule(e);
485
485
  }
486
- function li(e, t) {
486
+ function di(e, t) {
487
487
  if (!(e.f & 32 && e.f & 1024)) {
488
488
  e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), R(e, ee);
489
489
  for (var r = e.first; r !== null; )
490
- li(r, t), r = r.next;
490
+ di(r, t), r = r.next;
491
491
  }
492
492
  }
493
- function ci(e) {
493
+ function fi(e) {
494
494
  R(e, ee);
495
495
  for (var t = e.first; t !== null; )
496
- ci(t), t = t.next;
496
+ fi(t), t = t.next;
497
497
  }
498
- function $n(e) {
499
- let t = 0, r = $t(0), i;
498
+ function Mn(e) {
499
+ let t = 0, r = Ot(0), i;
500
500
  return () => {
501
- ir() && (m(r), nr(() => (t === 0 && (i = Lt(() => e(() => et(r)))), t += 1, () => {
501
+ sr() && (g(r), or(() => (t === 0 && (i = Rt(() => e(() => et(r)))), t += 1, () => {
502
502
  Ge(() => {
503
503
  t -= 1, t === 0 && (i?.(), i = void 0, et(r));
504
504
  });
505
505
  })));
506
506
  };
507
507
  }
508
- var On = jr | st;
509
- function Ln(e, t, r, i) {
510
- new Rn(e, t, r, i);
508
+ var Pn = Gr | st;
509
+ function xn(e, t, r, i) {
510
+ new Hn(e, t, r, i);
511
511
  }
512
- var X = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), Vt = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), wr = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakSet(), Rn = class {
512
+ var X = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), we = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakSet(), Hn = class {
513
513
  constructor(e, t, r, i) {
514
- Jt(this, N), u(this, "parent", void 0), u(this, "is_pending", !1), u(this, "transform_error", void 0), A(this, X, void 0), A(this, Ht, Y ? x : null), A(this, pe, void 0), A(this, it, void 0), A(this, z, void 0), A(this, ve, null), A(this, Q, null), A(this, oe, null), A(this, $e, null), A(this, Fe, 0), A(this, Oe, 0), A(this, ht, !1), A(this, jt, /* @__PURE__ */ new Set()), A(this, Vt, /* @__PURE__ */ new Set()), A(this, we, null), A(this, wr, $n(() => (b(we, this, $t(l(Fe, this))), () => {
514
+ er(this, N), u(this, "parent", void 0), u(this, "is_pending", !1), u(this, "transform_error", void 0), A(this, X, void 0), A(this, Nt, Y ? x : null), A(this, pe, void 0), A(this, it, void 0), A(this, z, void 0), A(this, ve, null), A(this, Q, null), A(this, oe, null), A(this, $e, null), A(this, Fe, 0), A(this, Oe, 0), A(this, ht, !1), A(this, zt, /* @__PURE__ */ new Set()), A(this, Gt, /* @__PURE__ */ new Set()), A(this, we, null), A(this, Ar, Mn(() => (b(we, this, Ot(l(Fe, this))), () => {
515
515
  b(we, this, null);
516
516
  }))), b(X, this, e), b(pe, this, t), b(it, this, (n) => {
517
517
  var s = T;
518
518
  s.b = this, s.f |= 128, r(n);
519
- }), this.parent = T.b, this.transform_error = i ?? this.parent?.transform_error ?? ((n) => n), b(z, this, Qn(() => {
519
+ }), this.parent = T.b, this.transform_error = i ?? this.parent?.transform_error ?? ((n) => n), b(z, this, ts(() => {
520
520
  if (Y) {
521
- const n = l(Ht, this);
522
- Wr();
521
+ const n = l(Nt, this);
522
+ Ur();
523
523
  const s = n.data === "[!";
524
524
  if (n.data.startsWith("[?")) {
525
525
  const o = JSON.parse(n.data.slice(2));
526
- E(N, this, Pn).call(this, o);
527
- } else s ? E(N, this, xn).call(this) : E(N, this, Mn).call(this);
528
- } else E(N, this, Tr).call(this);
529
- }, On)), Y && b(X, this, x);
526
+ E(N, this, Dn).call(this, o);
527
+ } else s ? E(N, this, Fn).call(this) : E(N, this, Nn).call(this);
528
+ } else E(N, this, Sr).call(this);
529
+ }, Pn)), Y && b(X, this, x);
530
530
  }
531
531
  defer_effect(e) {
532
- Zr(e, l(jt, this), l(Vt, this));
532
+ ri(e, l(zt, this), l(Gt, this));
533
533
  }
534
534
  is_rendered() {
535
535
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
@@ -538,43 +538,43 @@ var X = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), pe =
538
538
  return !!l(pe, this).pending;
539
539
  }
540
540
  update_pending_count(e, t) {
541
- E(N, this, ui).call(this, e, t), b(Fe, this, l(Fe, this) + e), !(!l(we, this) || l(ht, this)) && (b(ht, this, !0), Ge(() => {
542
- b(ht, this, !1), l(we, this) && pi(l(we, this), l(Fe, this));
541
+ E(N, this, hi).call(this, e, t), b(Fe, this, l(Fe, this) + e), !(!l(we, this) || l(ht, this)) && (b(ht, this, !0), Ge(() => {
542
+ b(ht, this, !1), l(we, this) && gi(l(we, this), l(Fe, this));
543
543
  }));
544
544
  }
545
545
  get_effect_pending() {
546
- return l(wr, this).call(this), m(l(we, this));
546
+ return l(Ar, this).call(this), g(l(we, this));
547
547
  }
548
548
  error(e) {
549
549
  var t = l(pe, this).onerror;
550
550
  let r = l(pe, this).failed;
551
551
  if (!t && !r) throw e;
552
- l(ve, this) && (Z(l(ve, this)), b(ve, this, null)), l(Q, this) && (Z(l(Q, this)), b(Q, this, null)), l(oe, this) && (Z(l(oe, this)), b(oe, this, null)), Y && (tt(l(Ht, this)), _n(), tt(yn()));
552
+ l(ve, this) && (Z(l(ve, this)), b(ve, this, null)), l(Q, this) && (Z(l(Q, this)), b(Q, this, null)), l(oe, this) && (Z(l(oe, this)), b(oe, this, null)), Y && (tt(l(Nt, this)), Tn(), tt(An()));
553
553
  var i = !1, n = !1;
554
554
  const s = () => {
555
555
  if (i) {
556
- gn();
556
+ wn();
557
557
  return;
558
558
  }
559
- i = !0, n && mn(), l(oe, this) !== null && Ot(l(oe, this), () => {
559
+ i = !0, n && bn(), l(oe, this) !== null && Lt(l(oe, this), () => {
560
560
  b(oe, this, null);
561
- }), E(N, this, zt).call(this, () => {
562
- E(N, this, Tr).call(this);
561
+ }), E(N, this, Wt).call(this, () => {
562
+ E(N, this, Sr).call(this);
563
563
  });
564
564
  }, o = (a) => {
565
565
  try {
566
566
  n = !0, t?.(a, s), n = !1;
567
567
  } catch (c) {
568
- je(c, l(z, this) && l(z, this).parent);
568
+ Ve(c, l(z, this) && l(z, this).parent);
569
569
  }
570
- r && b(oe, this, E(N, this, zt).call(this, () => {
570
+ r && b(oe, this, E(N, this, Wt).call(this, () => {
571
571
  try {
572
572
  return Me(() => {
573
573
  var c = T;
574
574
  c.b = this, c.f |= 128, r(l(X, this), () => a, () => s);
575
575
  });
576
576
  } catch (c) {
577
- return je(c, l(z, this).parent), null;
577
+ return Ve(c, l(z, this).parent), null;
578
578
  }
579
579
  }));
580
580
  };
@@ -583,84 +583,84 @@ var X = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), pe =
583
583
  try {
584
584
  a = this.transform_error(e);
585
585
  } catch (c) {
586
- je(c, l(z, this) && l(z, this).parent);
586
+ Ve(c, l(z, this) && l(z, this).parent);
587
587
  return;
588
588
  }
589
- a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(o, (c) => je(c, l(z, this) && l(z, this).parent)) : o(a);
589
+ a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(o, (c) => Ve(c, l(z, this) && l(z, this).parent)) : o(a);
590
590
  });
591
591
  }
592
592
  };
593
- function Mn() {
593
+ function Nn() {
594
594
  try {
595
595
  b(ve, this, Me(() => l(it, this).call(this, l(X, this))));
596
596
  } catch (e) {
597
597
  this.error(e);
598
598
  }
599
599
  }
600
- function Pn(e) {
600
+ function Dn(e) {
601
601
  const t = l(pe, this).failed;
602
602
  t && b(oe, this, Me(() => {
603
603
  t(l(X, this), () => e, () => () => {
604
604
  });
605
605
  }));
606
606
  }
607
- function xn() {
607
+ function Fn() {
608
608
  const e = l(pe, this).pending;
609
609
  e && (this.is_pending = !0, b(Q, this, Me(() => e(l(X, this)))), Ge(() => {
610
- var t = b($e, this, document.createDocumentFragment()), r = yi();
611
- t.append(r), b(ve, this, E(N, this, zt).call(this, () => Me(() => l(it, this).call(this, r)))), l(Oe, this) === 0 && (l(X, this).before(t), b($e, this, null), Ot(l(Q, this), () => {
610
+ var t = b($e, this, document.createDocumentFragment()), r = Ti();
611
+ t.append(r), b(ve, this, E(N, this, Wt).call(this, () => Me(() => l(it, this).call(this, r)))), l(Oe, this) === 0 && (l(X, this).before(t), b($e, this, null), Lt(l(Q, this), () => {
612
612
  b(Q, this, null);
613
- }), E(N, this, er).call(this, C));
613
+ }), E(N, this, rr).call(this, C));
614
614
  }));
615
615
  }
616
- function Tr() {
616
+ function Sr() {
617
617
  try {
618
618
  if (this.is_pending = this.has_pending_snippet(), b(Oe, this, 0), b(Fe, this, 0), b(ve, this, Me(() => {
619
619
  l(it, this).call(this, l(X, this));
620
620
  })), l(Oe, this) > 0) {
621
621
  var e = b($e, this, document.createDocumentFragment());
622
- es(l(ve, this), e);
622
+ ns(l(ve, this), e);
623
623
  const t = l(pe, this).pending;
624
624
  b(Q, this, Me(() => t(l(X, this))));
625
- } else E(N, this, er).call(this, C);
625
+ } else E(N, this, rr).call(this, C);
626
626
  } catch (t) {
627
627
  this.error(t);
628
628
  }
629
629
  }
630
- function er(e) {
631
- this.is_pending = !1, e.transfer_effects(l(jt, this), l(Vt, this));
630
+ function rr(e) {
631
+ this.is_pending = !1, e.transfer_effects(l(zt, this), l(Gt, this));
632
632
  }
633
- function zt(e) {
633
+ function Wt(e) {
634
634
  var t = T, r = w, i = O;
635
635
  _e(l(z, this)), ie(l(z, this)), St(l(z, this).ctx);
636
636
  try {
637
637
  return Ke.ensure(), e();
638
638
  } catch (n) {
639
- return Qr(n), null;
639
+ return ei(n), null;
640
640
  } finally {
641
641
  _e(t), ie(r), St(i);
642
642
  }
643
643
  }
644
- function ui(e, t) {
644
+ function hi(e, t) {
645
645
  if (!this.has_pending_snippet()) {
646
646
  if (this.parent) {
647
647
  var r;
648
- E(N, r = this.parent, ui).call(r, e, t);
648
+ E(N, r = this.parent, hi).call(r, e, t);
649
649
  }
650
650
  return;
651
651
  }
652
- b(Oe, this, l(Oe, this) + e), l(Oe, this) === 0 && (E(N, this, er).call(this, t), l(Q, this) && Ot(l(Q, this), () => {
652
+ b(Oe, this, l(Oe, this) + e), l(Oe, this) === 0 && (E(N, this, rr).call(this, t), l(Q, this) && Lt(l(Q, this), () => {
653
653
  b(Q, this, null);
654
654
  }), l($e, this) && (l(X, this).before(l($e, this)), b($e, this, null)));
655
655
  }
656
656
  // @__NO_SIDE_EFFECTS__
657
- function tr(e) {
657
+ function ir(e) {
658
658
  var t = 2 | ce, r = w !== null && w.f & 2 ? w : null;
659
659
  return T !== null && (T.f |= st), {
660
660
  ctx: O,
661
661
  deps: null,
662
662
  effects: null,
663
- equals: qr,
663
+ equals: Yr,
664
664
  f: t,
665
665
  fn: e,
666
666
  reactions: null,
@@ -672,66 +672,66 @@ function tr(e) {
672
672
  };
673
673
  }
674
674
  // @__NO_SIDE_EFFECTS__
675
- function Ar(e) {
676
- const t = /* @__PURE__ */ tr(e);
677
- return Re || Ei(t), t;
675
+ function Ir(e) {
676
+ const t = /* @__PURE__ */ ir(e);
677
+ return Re || $i(t), t;
678
678
  }
679
679
  // @__NO_SIDE_EFFECTS__
680
- function Hn(e) {
681
- const t = /* @__PURE__ */ tr(e);
682
- return t.equals = Kr, t;
680
+ function Bn(e) {
681
+ const t = /* @__PURE__ */ ir(e);
682
+ return t.equals = Xr, t;
683
683
  }
684
- function Nn(e) {
684
+ function Vn(e) {
685
685
  var t = e.effects;
686
686
  if (t !== null) {
687
687
  e.effects = null;
688
688
  for (var r = 0; r < t.length; r += 1) Z(t[r]);
689
689
  }
690
690
  }
691
- function Dn(e) {
691
+ function jn(e) {
692
692
  for (var t = e.parent; t !== null; ) {
693
693
  if (!(t.f & 2)) return t.f & 16384 ? null : t;
694
694
  t = t.parent;
695
695
  }
696
696
  return null;
697
697
  }
698
- function rr(e) {
698
+ function nr(e) {
699
699
  var t, r = T;
700
- if (_e(Dn(e)), 0)
700
+ if (_e(jn(e)), 0)
701
701
  try {
702
702
  } finally {
703
703
  }
704
704
  else try {
705
- e.f &= ~ot, Nn(e), t = Oi(e);
705
+ e.f &= ~ot, Vn(e), t = Mi(e);
706
706
  } finally {
707
707
  _e(r);
708
708
  }
709
709
  return t;
710
710
  }
711
- function di(e) {
712
- var t = e.v, r = rr(e);
713
- if (!e.equals(r) && (e.wv = Ci(), (!C?.is_fork || e.deps === null) && (e.v = r, C?.capture(e, t), e.deps === null))) {
711
+ function pi(e) {
712
+ var t = e.v, r = nr(e);
713
+ if (!e.equals(r) && (e.wv = Li(), (!C?.is_fork || e.deps === null) && (e.v = r, C?.capture(e, t), e.deps === null))) {
714
714
  R(e, ee);
715
715
  return;
716
716
  }
717
- ge || (F !== null ? (ir() || C?.is_fork) && F.set(e, r) : Qt(e));
717
+ ge || (F !== null ? (sr() || C?.is_fork) && F.set(e, r) : Zt(e));
718
718
  }
719
- function Fn(e) {
719
+ function zn(e) {
720
720
  if (e.effects !== null)
721
- for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Xt), t.teardown = Zi, t.ac = null, nt(t, 0), sr(t));
721
+ for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Jt), t.teardown = nn, t.ac = null, nt(t, 0), ar(t));
722
722
  }
723
- function fi(e) {
723
+ function vi(e) {
724
724
  if (e.effects !== null)
725
725
  for (const t of e.effects) t.teardown && qe(t);
726
726
  }
727
- var Gt = /* @__PURE__ */ new Set(), me = /* @__PURE__ */ new Map();
728
- var hi = !1;
729
- function $t(e, t) {
727
+ var qt = /* @__PURE__ */ new Set(), me = /* @__PURE__ */ new Map();
728
+ var mi = !1;
729
+ function Ot(e, t) {
730
730
  var r = {
731
731
  f: 0,
732
732
  v: e,
733
733
  reactions: null,
734
- equals: qr,
734
+ equals: Yr,
735
735
  rv: 0,
736
736
  wv: 0
737
737
  };
@@ -739,207 +739,207 @@ function $t(e, t) {
739
739
  }
740
740
  // @__NO_SIDE_EFFECTS__
741
741
  function P(e, t) {
742
- const r = $t(e, t);
743
- return Ei(r), r;
742
+ const r = Ot(e, t);
743
+ return $i(r), r;
744
744
  }
745
745
  // @__NO_SIDE_EFFECTS__
746
- function Bn(e, t = !1, r = !0) {
747
- const i = $t(e);
748
- if (t || (i.equals = Kr), at && r && O !== null && O.l !== null) {
746
+ function Gn(e, t = !1, r = !0) {
747
+ const i = Ot(e);
748
+ if (t || (i.equals = Xr), at && r && O !== null && O.l !== null) {
749
749
  var n;
750
750
  ((n = O.l).s ?? (n.s = [])).push(i);
751
751
  }
752
752
  return i;
753
753
  }
754
754
  function $(e, t, r = !1) {
755
- w !== null && (!J || w.f & 131072) && Ct() && w.f & 4325394 && (W === null || !ze.call(W, e)) && vn();
756
- let i = r ? Ve(t) : t;
757
- return pi(e, i, It);
755
+ w !== null && (!J || w.f & 131072) && $t() && w.f & 4325394 && (W === null || !ze.call(W, e)) && yn();
756
+ let i = r ? je(t) : t;
757
+ return gi(e, i, It);
758
758
  }
759
- function pi(e, t, r = null) {
759
+ function gi(e, t, r = null) {
760
760
  if (!e.equals(t)) {
761
761
  var i = e.v;
762
762
  ge ? me.set(e, t) : me.set(e, i), e.v = t;
763
763
  var n = Ke.ensure();
764
764
  if (n.capture(e, i), e.f & 2) {
765
765
  const s = e;
766
- e.f & 2048 && rr(s), F === null && Qt(s);
766
+ e.f & 2048 && nr(s), F === null && Zt(s);
767
767
  }
768
- e.wv = Ci(), vi(e, ce, r), Ct() && T !== null && T.f & 1024 && !(T.f & 96) && (G === null ? rs([e]) : G.push(e)), !n.is_fork && Gt.size > 0 && !hi && jn();
768
+ e.wv = Li(), _i(e, ce, r), $t() && T !== null && T.f & 1024 && !(T.f & 96) && (G === null ? os([e]) : G.push(e)), !n.is_fork && qt.size > 0 && !mi && Wn();
769
769
  }
770
770
  return t;
771
771
  }
772
- function jn() {
773
- hi = !1;
774
- for (const e of Gt)
772
+ function Wn() {
773
+ mi = !1;
774
+ for (const e of qt)
775
775
  e.f & 1024 && R(e, Pe), lt(e) && qe(e);
776
- Gt.clear();
776
+ qt.clear();
777
777
  }
778
778
  function et(e) {
779
779
  $(e, e.v + 1);
780
780
  }
781
- function vi(e, t, r) {
781
+ function _i(e, t, r) {
782
782
  var i = e.reactions;
783
783
  if (i !== null)
784
- for (var n = Ct(), s = i.length, o = 0; o < s; o++) {
784
+ for (var n = $t(), s = i.length, o = 0; o < s; o++) {
785
785
  var a = i[o], c = a.f;
786
786
  if (!(!n && a === T)) {
787
- var h = (c & ce) === 0;
788
- if (h && R(a, t), c & 2) {
789
- var _ = a;
790
- F?.delete(_), c & 65536 || (c & 512 && (a.f |= ot), vi(_, Pe, r));
791
- } else if (h) {
792
- var v = a;
793
- c & 16 && ae !== null && ae.add(v), r !== null ? r.push(v) : Zt(v);
787
+ var p = (c & ce) === 0;
788
+ if (p && R(a, t), c & 2) {
789
+ var f = a;
790
+ F?.delete(f), c & 65536 || (c & 512 && (a.f |= ot), _i(f, Pe, r));
791
+ } else if (p) {
792
+ var m = a;
793
+ c & 16 && ae !== null && ae.add(m), r !== null ? r.push(m) : tr(m);
794
794
  }
795
795
  }
796
796
  }
797
797
  }
798
- var Vn = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
799
- function Ve(e) {
798
+ var qn = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
799
+ function je(e) {
800
800
  if (typeof e != "object" || e === null || Je in e) return e;
801
- const t = Ji(e);
802
- if (t !== Xi && t !== Qi) return e;
803
- var r = /* @__PURE__ */ new Map(), i = Ki(e), n = /* @__PURE__ */ P(0), s = null, o = Le, a = (v) => {
804
- if (Le === o) return v();
805
- var f = w, p = Le;
806
- ie(null), Er(o);
807
- var d = v();
808
- return ie(f), Er(p), d;
801
+ const t = rn(e);
802
+ if (t !== en && t !== tn) return e;
803
+ var r = /* @__PURE__ */ new Map(), i = Qi(e), n = /* @__PURE__ */ P(0), s = null, o = Le, a = (m) => {
804
+ if (Le === o) return m();
805
+ var h = w, v = Le;
806
+ ie(null), Cr(o);
807
+ var d = m();
808
+ return ie(h), Cr(v), d;
809
809
  };
810
810
  i && r.set("length", /* @__PURE__ */ P(e.length, s));
811
811
  var c = "";
812
- let h = !1;
813
- function _(v) {
814
- if (!h) {
815
- h = !0, c = v, mr(n, `${c} version`);
816
- for (const [f, p] of r) mr(p, zn(c, f));
817
- h = !1;
812
+ let p = !1;
813
+ function f(m) {
814
+ if (!p) {
815
+ p = !0, c = m, _r(n, `${c} version`);
816
+ for (const [h, v] of r) _r(v, Kn(c, h));
817
+ p = !1;
818
818
  }
819
819
  }
820
820
  return new Proxy(e, {
821
- defineProperty(v, f, p) {
822
- (!("value" in p) || p.configurable === !1 || p.enumerable === !1 || p.writable === !1) && hn();
823
- var d = r.get(f);
821
+ defineProperty(m, h, v) {
822
+ (!("value" in v) || v.configurable === !1 || v.enumerable === !1 || v.writable === !1) && gn();
823
+ var d = r.get(h);
824
824
  return d === void 0 ? a(() => {
825
- var y = /* @__PURE__ */ P(p.value, s);
826
- return r.set(f, y), y;
827
- }) : $(d, p.value, !0), !0;
825
+ var y = /* @__PURE__ */ P(v.value, s);
826
+ return r.set(h, y), y;
827
+ }) : $(d, v.value, !0), !0;
828
828
  },
829
- deleteProperty(v, f) {
830
- var p = r.get(f);
831
- if (p === void 0) {
832
- if (f in v) {
829
+ deleteProperty(m, h) {
830
+ var v = r.get(h);
831
+ if (v === void 0) {
832
+ if (h in m) {
833
833
  const d = a(() => /* @__PURE__ */ P(M, s));
834
- r.set(f, d), et(n);
834
+ r.set(h, d), et(n);
835
835
  }
836
836
  } else
837
- $(p, M), et(n);
837
+ $(v, M), et(n);
838
838
  return !0;
839
839
  },
840
- get(v, f, p) {
841
- if (f === Je) return e;
842
- var d = r.get(f), y = f in v;
843
- if (d === void 0 && (!y || ke(v, f)?.writable) && (d = a(() => {
844
- var S = /* @__PURE__ */ P(Ve(y ? v[f] : M), s);
840
+ get(m, h, v) {
841
+ if (h === Je) return e;
842
+ var d = r.get(h), y = h in m;
843
+ if (d === void 0 && (!y || ke(m, h)?.writable) && (d = a(() => {
844
+ var S = /* @__PURE__ */ P(je(y ? m[h] : M), s);
845
845
  return S;
846
- }), r.set(f, d)), d !== void 0) {
847
- var g = m(d);
848
- return g === M ? void 0 : g;
846
+ }), r.set(h, d)), d !== void 0) {
847
+ var _ = g(d);
848
+ return _ === M ? void 0 : _;
849
849
  }
850
- return Reflect.get(v, f, p);
850
+ return Reflect.get(m, h, v);
851
851
  },
852
- getOwnPropertyDescriptor(v, f) {
853
- var p = Reflect.getOwnPropertyDescriptor(v, f);
854
- if (p && "value" in p) {
855
- var d = r.get(f);
856
- d && (p.value = m(d));
857
- } else if (p === void 0) {
858
- var y = r.get(f), g = y?.v;
859
- if (y !== void 0 && g !== M) return {
852
+ getOwnPropertyDescriptor(m, h) {
853
+ var v = Reflect.getOwnPropertyDescriptor(m, h);
854
+ if (v && "value" in v) {
855
+ var d = r.get(h);
856
+ d && (v.value = g(d));
857
+ } else if (v === void 0) {
858
+ var y = r.get(h), _ = y?.v;
859
+ if (y !== void 0 && _ !== M) return {
860
860
  enumerable: !0,
861
861
  configurable: !0,
862
- value: g,
862
+ value: _,
863
863
  writable: !0
864
864
  };
865
865
  }
866
- return p;
866
+ return v;
867
867
  },
868
- has(v, f) {
869
- if (f === Je) return !0;
870
- var p = r.get(f), d = p !== void 0 && p.v !== M || Reflect.has(v, f);
871
- return (p !== void 0 || T !== null && (!d || ke(v, f)?.writable)) && (p === void 0 && (p = a(() => {
872
- var y = /* @__PURE__ */ P(d ? Ve(v[f]) : M, s);
868
+ has(m, h) {
869
+ if (h === Je) return !0;
870
+ var v = r.get(h), d = v !== void 0 && v.v !== M || Reflect.has(m, h);
871
+ return (v !== void 0 || T !== null && (!d || ke(m, h)?.writable)) && (v === void 0 && (v = a(() => {
872
+ var y = /* @__PURE__ */ P(d ? je(m[h]) : M, s);
873
873
  return y;
874
- }), r.set(f, p)), m(p) === M) ? !1 : d;
874
+ }), r.set(h, v)), g(v) === M) ? !1 : d;
875
875
  },
876
- set(v, f, p, d) {
877
- var y = r.get(f), g = f in v;
878
- if (i && f === "length") for (var S = p; S < y.v; S += 1) {
876
+ set(m, h, v, d) {
877
+ var y = r.get(h), _ = h in m;
878
+ if (i && h === "length") for (var S = v; S < y.v; S += 1) {
879
879
  var B = r.get(S + "");
880
- B !== void 0 ? $(B, M) : S in v && (B = a(() => /* @__PURE__ */ P(M, s)), r.set(S + "", B));
880
+ B !== void 0 ? $(B, M) : S in m && (B = a(() => /* @__PURE__ */ P(M, s)), r.set(S + "", B));
881
881
  }
882
882
  if (y === void 0)
883
- (!g || ke(v, f)?.writable) && (y = a(() => /* @__PURE__ */ P(void 0, s)), $(y, Ve(p)), r.set(f, y));
883
+ (!_ || ke(m, h)?.writable) && (y = a(() => /* @__PURE__ */ P(void 0, s)), $(y, je(v)), r.set(h, y));
884
884
  else {
885
- g = y.v !== M;
886
- var k = a(() => Ve(p));
885
+ _ = y.v !== M;
886
+ var k = a(() => je(v));
887
887
  $(y, k);
888
888
  }
889
- var q = Reflect.getOwnPropertyDescriptor(v, f);
890
- if (q?.set && q.set.call(d, p), !g) {
891
- if (i && typeof f == "string") {
892
- var be = r.get("length"), Ye = Number(f);
889
+ var q = Reflect.getOwnPropertyDescriptor(m, h);
890
+ if (q?.set && q.set.call(d, v), !_) {
891
+ if (i && typeof h == "string") {
892
+ var be = r.get("length"), Ye = Number(h);
893
893
  Number.isInteger(Ye) && Ye >= be.v && $(be, Ye + 1);
894
894
  }
895
895
  et(n);
896
896
  }
897
897
  return !0;
898
898
  },
899
- ownKeys(v) {
900
- m(n);
901
- var f = Reflect.ownKeys(v).filter((y) => {
902
- var g = r.get(y);
903
- return g === void 0 || g.v !== M;
899
+ ownKeys(m) {
900
+ g(n);
901
+ var h = Reflect.ownKeys(m).filter((y) => {
902
+ var _ = r.get(y);
903
+ return _ === void 0 || _.v !== M;
904
904
  });
905
- for (var [p, d] of r) d.v !== M && !(p in v) && f.push(p);
906
- return f;
905
+ for (var [v, d] of r) d.v !== M && !(v in m) && h.push(v);
906
+ return h;
907
907
  },
908
908
  setPrototypeOf() {
909
- pn();
909
+ _n();
910
910
  }
911
911
  });
912
912
  }
913
- function zn(e, t) {
914
- return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : Vn.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
913
+ function Kn(e, t) {
914
+ return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : qn.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
915
915
  }
916
- var Sr, Gn, mi, gi, _i;
917
- function Wt() {
918
- if (Sr === void 0) {
919
- Sr = window, Gn = document, mi = /Firefox/.test(navigator.userAgent);
916
+ var Er, Un, yi, bi, wi;
917
+ function Kt() {
918
+ if (Er === void 0) {
919
+ Er = window, Un = document, yi = /Firefox/.test(navigator.userAgent);
920
920
  var e = Element.prototype, t = Node.prototype, r = Text.prototype;
921
- gi = ke(t, "firstChild").get, _i = ke(t, "nextSibling").get, hr(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), hr(r) && (r.__t = void 0);
921
+ bi = ke(t, "firstChild").get, wi = ke(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);
922
922
  }
923
923
  }
924
- function yi(e = "") {
924
+ function Ti(e = "") {
925
925
  return document.createTextNode(e);
926
926
  }
927
927
  // @__NO_SIDE_EFFECTS__
928
- function qt(e) {
929
- return gi.call(e);
928
+ function Ut(e) {
929
+ return bi.call(e);
930
930
  }
931
931
  // @__NO_SIDE_EFFECTS__
932
932
  function Ue(e) {
933
- return _i.call(e);
933
+ return wi.call(e);
934
934
  }
935
- function Wn(e) {
935
+ function Yn(e) {
936
936
  e.textContent = "";
937
937
  }
938
- function bi(e, t, r) {
938
+ function Ai(e, t, r) {
939
939
  let i = r ? { is: r } : void 0;
940
940
  return document.createElementNS(t ?? "http://www.w3.org/1999/xhtml", e, i);
941
941
  }
942
- function wi(e) {
942
+ function Si(e) {
943
943
  var t = w, r = T;
944
944
  ie(null), _e(null);
945
945
  try {
@@ -948,16 +948,16 @@ function wi(e) {
948
948
  ie(t), _e(r);
949
949
  }
950
950
  }
951
- function qn(e) {
952
- T === null && (w === null && cn(e), ln()), ge && an(e);
951
+ function Xn(e) {
952
+ T === null && (w === null && hn(e), fn()), ge && dn(e);
953
953
  }
954
- function Kn(e, t) {
954
+ function Qn(e, t) {
955
955
  var r = t.last;
956
956
  r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
957
957
  }
958
958
  function xe(e, t) {
959
959
  var r = T;
960
- r !== null && r.f & 8192 && (e |= Fr);
960
+ r !== null && r.f & 8192 && (e |= jr);
961
961
  var i = {
962
962
  ctx: O,
963
963
  deps: null,
@@ -981,81 +981,81 @@ function xe(e, t) {
981
981
  } catch (o) {
982
982
  throw Z(i), o;
983
983
  }
984
- 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 |= jr));
984
+ 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));
985
985
  }
986
- if (n !== null && (n.parent = r, r !== null && Kn(n, r), w !== null && w.f & 2 && !(e & 64))) {
986
+ if (n !== null && (n.parent = r, r !== null && Qn(n, r), w !== null && w.f & 2 && !(e & 64))) {
987
987
  var s = w;
988
988
  (s.effects ?? (s.effects = [])).push(n);
989
989
  }
990
990
  return i;
991
991
  }
992
- function ir() {
992
+ function sr() {
993
993
  return w !== null && !J;
994
994
  }
995
995
  function Ae(e) {
996
- qn("$effect");
996
+ Xn("$effect");
997
997
  var t = T.f;
998
998
  if (!w && t & 32 && !(t & 32768)) {
999
999
  var r = O;
1000
1000
  (r.e ?? (r.e = [])).push(e);
1001
- } else return Ti(e);
1001
+ } else return Ii(e);
1002
1002
  }
1003
- function Ti(e) {
1004
- return xe(4 | nn, e);
1003
+ function Ii(e) {
1004
+ return xe(4 | ln, e);
1005
1005
  }
1006
- function Un(e) {
1006
+ function Jn(e) {
1007
1007
  Ke.ensure();
1008
1008
  const t = xe(64 | st, e);
1009
1009
  return () => {
1010
1010
  Z(t);
1011
1011
  };
1012
1012
  }
1013
- function Yn(e) {
1013
+ function Zn(e) {
1014
1014
  Ke.ensure();
1015
1015
  const t = xe(64 | st, e);
1016
1016
  return (r = {}) => new Promise((i) => {
1017
- r.outro ? Ot(t, () => {
1017
+ r.outro ? Lt(t, () => {
1018
1018
  Z(t), i(void 0);
1019
1019
  }) : (Z(t), i(void 0));
1020
1020
  });
1021
1021
  }
1022
- function Xn(e) {
1022
+ function es(e) {
1023
1023
  return xe(4, e);
1024
1024
  }
1025
- function nr(e, t = 0) {
1025
+ function or(e, t = 0) {
1026
1026
  return xe(8 | t, e);
1027
1027
  }
1028
- function Qn(e, t = 0) {
1028
+ function ts(e, t = 0) {
1029
1029
  var r = xe(16 | t, e);
1030
1030
  return r;
1031
1031
  }
1032
1032
  function Me(e) {
1033
1033
  return xe(32 | st, e);
1034
1034
  }
1035
- function Ai(e) {
1035
+ function Ei(e) {
1036
1036
  var t = e.teardown;
1037
1037
  if (t !== null) {
1038
1038
  const r = ge, i = w;
1039
- Ir(!0), ie(null);
1039
+ kr(!0), ie(null);
1040
1040
  try {
1041
1041
  t.call(null);
1042
1042
  } finally {
1043
- Ir(r), ie(i);
1043
+ kr(r), ie(i);
1044
1044
  }
1045
1045
  }
1046
1046
  }
1047
- function sr(e, t = !1) {
1047
+ function ar(e, t = !1) {
1048
1048
  var r = e.first;
1049
1049
  for (e.first = e.last = null; r !== null; ) {
1050
1050
  const n = r.ac;
1051
- n !== null && wi(() => {
1052
- n.abort(Xt);
1051
+ n !== null && Si(() => {
1052
+ n.abort(Jt);
1053
1053
  });
1054
1054
  var i = r.next;
1055
1055
  r.f & 64 ? r.parent = null : Z(r, t), r = i;
1056
1056
  }
1057
1057
  }
1058
- function Jn(e) {
1058
+ function rs(e) {
1059
1059
  for (var t = e.first; t !== null; ) {
1060
1060
  var r = t.next;
1061
1061
  t.f & 32 || Z(t), t = r;
@@ -1063,26 +1063,26 @@ function Jn(e) {
1063
1063
  }
1064
1064
  function Z(e, t = !0) {
1065
1065
  var r = !1;
1066
- (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Zn(e.nodes.start, e.nodes.end), r = !0), R(e, pr), sr(e, t && !r), nt(e, 0);
1066
+ (t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (is(e.nodes.start, e.nodes.end), r = !0), R(e, mr), ar(e, t && !r), nt(e, 0);
1067
1067
  var i = e.nodes && e.nodes.t;
1068
1068
  if (i !== null) for (const s of i) s.stop();
1069
- Ai(e), e.f ^= pr, e.f |= rn;
1069
+ Ei(e), e.f ^= mr, e.f |= an;
1070
1070
  var n = e.parent;
1071
- n !== null && n.first !== null && Si(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1071
+ n !== null && n.first !== null && ki(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1072
1072
  }
1073
- function Zn(e, t) {
1073
+ function is(e, t) {
1074
1074
  for (; e !== null; ) {
1075
1075
  var r = e === t ? null : /* @__PURE__ */ Ue(e);
1076
1076
  e.remove(), e = r;
1077
1077
  }
1078
1078
  }
1079
- function Si(e) {
1079
+ function ki(e) {
1080
1080
  var t = e.parent, r = e.prev, i = e.next;
1081
1081
  r !== null && (r.next = i), i !== null && (i.prev = r), t !== null && (t.first === e && (t.first = i), t.last === e && (t.last = r));
1082
1082
  }
1083
- function Ot(e, t, r = !0) {
1083
+ function Lt(e, t, r = !0) {
1084
1084
  var i = [];
1085
- Ii(e, i, !0);
1085
+ Ci(e, i, !0);
1086
1086
  var n = () => {
1087
1087
  r && Z(e), t && t();
1088
1088
  }, s = i.length;
@@ -1091,27 +1091,27 @@ function Ot(e, t, r = !0) {
1091
1091
  for (var a of i) a.out(o);
1092
1092
  } else n();
1093
1093
  }
1094
- function Ii(e, t, r) {
1094
+ function Ci(e, t, r) {
1095
1095
  if (!(e.f & 8192)) {
1096
- e.f ^= Fr;
1096
+ e.f ^= jr;
1097
1097
  var i = e.nodes && e.nodes.t;
1098
1098
  if (i !== null)
1099
1099
  for (const a of i) (a.is_global || r) && t.push(a);
1100
1100
  for (var n = e.first; n !== null; ) {
1101
1101
  var s = n.next, o = (n.f & 65536) !== 0 || (n.f & 32) !== 0 && (e.f & 16) !== 0;
1102
- Ii(n, t, o ? r : !1), n = s;
1102
+ Ci(n, t, o ? r : !1), n = s;
1103
1103
  }
1104
1104
  }
1105
1105
  }
1106
- function es(e, t) {
1106
+ function ns(e, t) {
1107
1107
  if (e.nodes)
1108
1108
  for (var r = e.nodes.start, i = e.nodes.end; r !== null; ) {
1109
1109
  var n = r === i ? null : /* @__PURE__ */ Ue(r);
1110
1110
  t.append(r), r = n;
1111
1111
  }
1112
1112
  }
1113
- var ts = null, gt = !1, ge = !1;
1114
- function Ir(e) {
1113
+ var ss = null, gt = !1, ge = !1;
1114
+ function kr(e) {
1115
1115
  ge = e;
1116
1116
  }
1117
1117
  var w = null, J = !1;
@@ -1123,19 +1123,19 @@ function _e(e) {
1123
1123
  T = e;
1124
1124
  }
1125
1125
  var W = null;
1126
- function Ei(e) {
1126
+ function $i(e) {
1127
1127
  w !== null && (!Re || w.f & 2) && (W === null ? W = [e] : W.push(e));
1128
1128
  }
1129
- var D = null, j = 0, G = null;
1130
- function rs(e) {
1129
+ var D = null, V = 0, G = null;
1130
+ function os(e) {
1131
1131
  G = e;
1132
1132
  }
1133
- var ki = 1, Ee = 0, Le = Ee;
1134
- function Er(e) {
1133
+ var Oi = 1, Ee = 0, Le = Ee;
1134
+ function Cr(e) {
1135
1135
  Le = e;
1136
1136
  }
1137
- function Ci() {
1138
- return ++ki;
1137
+ function Li() {
1138
+ return ++Oi;
1139
1139
  }
1140
1140
  function lt(e) {
1141
1141
  var t = e.f;
@@ -1143,57 +1143,57 @@ function lt(e) {
1143
1143
  if (t & 2 && (e.f &= ~ot), t & 4096) {
1144
1144
  for (var r = e.deps, i = r.length, n = 0; n < i; n++) {
1145
1145
  var s = r[n];
1146
- if (lt(s) && di(s), s.wv > e.wv) return !0;
1146
+ if (lt(s) && pi(s), s.wv > e.wv) return !0;
1147
1147
  }
1148
1148
  t & 512 && F === null && R(e, ee);
1149
1149
  }
1150
1150
  return !1;
1151
1151
  }
1152
- function $i(e, t, r = !0) {
1152
+ function Ri(e, t, r = !0) {
1153
1153
  var i = e.reactions;
1154
1154
  if (i !== null && !(!Re && W !== null && ze.call(W, e)))
1155
1155
  for (var n = 0; n < i.length; n++) {
1156
1156
  var s = i[n];
1157
- s.f & 2 ? $i(s, t, !1) : t === s && (r ? R(s, ce) : s.f & 1024 && R(s, Pe), Zt(s));
1157
+ s.f & 2 ? Ri(s, t, !1) : t === s && (r ? R(s, ce) : s.f & 1024 && R(s, Pe), tr(s));
1158
1158
  }
1159
1159
  }
1160
- function Oi(e) {
1161
- var t = D, r = j, i = G, n = w, s = W, o = O, a = J, c = Le, h = e.f;
1162
- D = null, j = 0, G = null, w = h & 96 ? null : e, W = null, St(e.ctx), J = !1, Le = ++Ee, e.ac !== null && (wi(() => {
1163
- e.ac.abort(Xt);
1160
+ function Mi(e) {
1161
+ var t = D, r = V, i = G, n = w, s = W, o = O, a = J, c = Le, p = e.f;
1162
+ D = null, V = 0, G = null, w = p & 96 ? null : e, W = null, St(e.ctx), J = !1, Le = ++Ee, e.ac !== null && (Si(() => {
1163
+ e.ac.abort(Jt);
1164
1164
  }), e.ac = null);
1165
1165
  try {
1166
- e.f |= vr;
1167
- var _ = e.fn, v = _();
1168
- e.f |= Br;
1169
- var f = e.deps, p = C?.is_fork;
1166
+ e.f |= gr;
1167
+ var f = e.fn, m = f();
1168
+ e.f |= zr;
1169
+ var h = e.deps, v = C?.is_fork;
1170
1170
  if (D !== null) {
1171
1171
  var d;
1172
- if (p || nt(e, j), f !== null && j > 0)
1173
- for (f.length = j + D.length, d = 0; d < D.length; d++) f[j + d] = D[d];
1174
- else e.deps = f = D;
1175
- if (ir() && e.f & 512) for (d = j; d < f.length; d++) {
1172
+ if (v || nt(e, V), h !== null && V > 0)
1173
+ for (h.length = V + D.length, d = 0; d < D.length; d++) h[V + d] = D[d];
1174
+ else e.deps = h = D;
1175
+ if (sr() && e.f & 512) for (d = V; d < h.length; d++) {
1176
1176
  var y;
1177
- ((y = f[d]).reactions ?? (y.reactions = [])).push(e);
1177
+ ((y = h[d]).reactions ?? (y.reactions = [])).push(e);
1178
1178
  }
1179
- } else !p && f !== null && j < f.length && (nt(e, j), f.length = j);
1180
- if (Ct() && G !== null && !J && f !== null && !(e.f & 6146)) for (d = 0; d < G.length; d++) $i(G[d], e);
1179
+ } else !v && h !== null && V < h.length && (nt(e, V), h.length = V);
1180
+ if ($t() && G !== null && !J && h !== null && !(e.f & 6146)) for (d = 0; d < G.length; d++) Ri(G[d], e);
1181
1181
  if (n !== null && n !== e) {
1182
- if (Ee++, n.deps !== null) for (let g = 0; g < r; g += 1) n.deps[g].rv = Ee;
1183
- if (t !== null) for (const g of t) g.rv = Ee;
1182
+ if (Ee++, n.deps !== null) for (let _ = 0; _ < r; _ += 1) n.deps[_].rv = Ee;
1183
+ if (t !== null) for (const _ of t) _.rv = Ee;
1184
1184
  G !== null && (i === null ? i = G : i.push(...G));
1185
1185
  }
1186
- return e.f & 8388608 && (e.f ^= Vr), v;
1187
- } catch (g) {
1188
- return Qr(g);
1186
+ return e.f & 8388608 && (e.f ^= Wr), m;
1187
+ } catch (_) {
1188
+ return ei(_);
1189
1189
  } finally {
1190
- e.f ^= vr, D = t, j = r, G = i, w = n, W = s, St(o), J = a, Le = c;
1190
+ e.f ^= gr, D = t, V = r, G = i, w = n, W = s, St(o), J = a, Le = c;
1191
1191
  }
1192
1192
  }
1193
- function is(e, t) {
1193
+ function as(e, t) {
1194
1194
  let r = t.reactions;
1195
1195
  if (r !== null) {
1196
- var i = Ui.call(r, e);
1196
+ var i = Ji.call(r, e);
1197
1197
  if (i !== -1) {
1198
1198
  var n = r.length - 1;
1199
1199
  n === 0 ? r = t.reactions = null : (r[i] = r[n], r.pop());
@@ -1201,13 +1201,13 @@ function is(e, t) {
1201
1201
  }
1202
1202
  if (r === null && t.f & 2 && (D === null || !ze.call(D, t))) {
1203
1203
  var s = t;
1204
- s.f & 512 && (s.f ^= 512, s.f &= ~ot), Qt(s), Fn(s), nt(s, 0);
1204
+ s.f & 512 && (s.f ^= 512, s.f &= ~ot), Zt(s), zn(s), nt(s, 0);
1205
1205
  }
1206
1206
  }
1207
1207
  function nt(e, t) {
1208
1208
  var r = e.deps;
1209
1209
  if (r !== null)
1210
- for (var i = t; i < r.length; i++) is(e, r[i]);
1210
+ for (var i = t; i < r.length; i++) as(e, r[i]);
1211
1211
  }
1212
1212
  function qe(e) {
1213
1213
  var t = e.f;
@@ -1217,21 +1217,21 @@ function qe(e) {
1217
1217
  if (T = e, gt = !0, 0)
1218
1218
  var n, s;
1219
1219
  try {
1220
- t & 16777232 ? Jn(e) : sr(e), Ai(e);
1221
- var o = Oi(e);
1222
- if (e.teardown = typeof o == "function" ? o : null, e.wv = ki, 0)
1220
+ t & 16777232 ? rs(e) : ar(e), Ei(e);
1221
+ var o = Mi(e);
1222
+ if (e.teardown = typeof o == "function" ? o : null, e.wv = Oi, 0)
1223
1223
  for (var a of e.deps) ;
1224
1224
  } finally {
1225
1225
  gt = i, T = r;
1226
1226
  }
1227
1227
  }
1228
1228
  }
1229
- function m(e) {
1229
+ function g(e) {
1230
1230
  var t = (e.f & 2) !== 0;
1231
- if (ts?.add(e), w !== null && !J && !(T !== null && T.f & 16384) && (W === null || !ze.call(W, e))) {
1231
+ if (ss?.add(e), w !== null && !J && !(T !== null && T.f & 16384) && (W === null || !ze.call(W, e))) {
1232
1232
  var r = w.deps;
1233
1233
  if (w.f & 2097152)
1234
- e.rv < Ee && (e.rv = Ee, D === null && r !== null && r[j] === e ? j++ : D === null ? D = [e] : D.push(e));
1234
+ e.rv < Ee && (e.rv = Ee, D === null && r !== null && r[V] === e ? V++ : D === null ? D = [e] : D.push(e));
1235
1235
  else {
1236
1236
  var i;
1237
1237
  ((i = w).deps ?? (i.deps = [])).push(e);
@@ -1251,29 +1251,29 @@ function m(e) {
1251
1251
  if (t) {
1252
1252
  var c = e;
1253
1253
  if (ge) {
1254
- var h = c.v;
1255
- return (!(c.f & 1024) && c.reactions !== null || Ri(c)) && (h = rr(c)), me.set(c, h), h;
1254
+ var p = c.v;
1255
+ return (!(c.f & 1024) && c.reactions !== null || xi(c)) && (p = nr(c)), me.set(c, p), p;
1256
1256
  }
1257
- var _ = (c.f & 512) === 0 && !J && w !== null && (gt || (w.f & 512) !== 0), v = (c.f & Br) === 0;
1258
- lt(c) && (_ && (c.f |= 512), di(c)), _ && !v && (fi(c), Li(c));
1257
+ var f = (c.f & 512) === 0 && !J && w !== null && (gt || (w.f & 512) !== 0), m = (c.f & zr) === 0;
1258
+ lt(c) && (f && (c.f |= 512), pi(c)), f && !m && (vi(c), Pi(c));
1259
1259
  }
1260
1260
  if (F?.has(e)) return F.get(e);
1261
1261
  if (e.f & 8388608) throw e.v;
1262
1262
  return e.v;
1263
1263
  }
1264
- function Li(e) {
1264
+ function Pi(e) {
1265
1265
  if (e.f |= 512, e.deps !== null)
1266
1266
  for (const t of e.deps)
1267
- (t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (fi(t), Li(t));
1267
+ (t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (vi(t), Pi(t));
1268
1268
  }
1269
- function Ri(e) {
1269
+ function xi(e) {
1270
1270
  if (e.v === M) return !0;
1271
1271
  if (e.deps === null) return !1;
1272
1272
  for (const t of e.deps)
1273
- if (me.has(t) || t.f & 2 && Ri(t)) return !0;
1273
+ if (me.has(t) || t.f & 2 && xi(t)) return !0;
1274
1274
  return !1;
1275
1275
  }
1276
- function Lt(e) {
1276
+ function Rt(e) {
1277
1277
  var t = J;
1278
1278
  try {
1279
1279
  return J = !0, e();
@@ -1281,20 +1281,20 @@ function Lt(e) {
1281
1281
  J = t;
1282
1282
  }
1283
1283
  }
1284
- var pt = Symbol("events"), ns = /* @__PURE__ */ new Set(), kr = /* @__PURE__ */ new Set(), Cr = null;
1285
- function $r(e) {
1284
+ var pt = Symbol("events"), ls = /* @__PURE__ */ new Set(), $r = /* @__PURE__ */ new Set(), Or = null;
1285
+ function Lr(e) {
1286
1286
  var t = this, r = t.ownerDocument, i = e.type, n = e.composedPath?.() || [], s = n[0] || e.target;
1287
- Cr = e;
1288
- var o = 0, a = Cr === e && e[pt];
1287
+ Or = e;
1288
+ var o = 0, a = Or === e && e[pt];
1289
1289
  if (a) {
1290
1290
  var c = n.indexOf(a);
1291
1291
  if (c !== -1 && (t === document || t === window)) {
1292
1292
  e[pt] = t;
1293
1293
  return;
1294
1294
  }
1295
- var h = n.indexOf(t);
1296
- if (h === -1) return;
1297
- c <= h && (o = c);
1295
+ var p = n.indexOf(t);
1296
+ if (p === -1) return;
1297
+ c <= p && (o = c);
1298
1298
  }
1299
1299
  if (s = n[o] || e.target, s !== t) {
1300
1300
  At(e, "currentTarget", {
@@ -1303,38 +1303,38 @@ function $r(e) {
1303
1303
  return s || r;
1304
1304
  }
1305
1305
  });
1306
- var _ = w, v = T;
1306
+ var f = w, m = T;
1307
1307
  ie(null), _e(null);
1308
1308
  try {
1309
- for (var f, p = []; s !== null; ) {
1309
+ for (var h, v = []; s !== null; ) {
1310
1310
  var d = s.assignedSlot || s.parentNode || s.host || null;
1311
1311
  try {
1312
1312
  var y = s[pt]?.[i];
1313
1313
  y != null && (!s.disabled || e.target === s) && y.call(s, e);
1314
- } catch (g) {
1315
- f ? p.push(g) : f = g;
1314
+ } catch (_) {
1315
+ h ? v.push(_) : h = _;
1316
1316
  }
1317
1317
  if (e.cancelBubble || d === t || d === null) break;
1318
1318
  s = d;
1319
1319
  }
1320
- if (f) {
1321
- for (let g of p) queueMicrotask(() => {
1322
- throw g;
1320
+ if (h) {
1321
+ for (let _ of v) queueMicrotask(() => {
1322
+ throw _;
1323
1323
  });
1324
- throw f;
1324
+ throw h;
1325
1325
  }
1326
1326
  } finally {
1327
- e[pt] = t, delete e.currentTarget, ie(_), _e(v);
1327
+ e[pt] = t, delete e.currentTarget, ie(f), _e(m);
1328
1328
  }
1329
1329
  }
1330
1330
  }
1331
- var ss = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1332
- function os(e) {
1333
- return ss?.createHTML(e) ?? e;
1331
+ var cs = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1332
+ function us(e) {
1333
+ return cs?.createHTML(e) ?? e;
1334
1334
  }
1335
- function as(e) {
1336
- var t = bi("template");
1337
- return t.innerHTML = os(e.replaceAll("<!>", "<!---->")), t.content;
1335
+ function ds(e) {
1336
+ var t = Ai("template");
1337
+ return t.innerHTML = us(e.replaceAll("<!>", "<!---->")), t.content;
1338
1338
  }
1339
1339
  function _t(e, t) {
1340
1340
  var r = T;
@@ -1346,29 +1346,29 @@ function _t(e, t) {
1346
1346
  });
1347
1347
  }
1348
1348
  // @__NO_SIDE_EFFECTS__
1349
- function ls(e, t) {
1349
+ function fs(e, t) {
1350
1350
  var r = (t & 1) !== 0, i = (t & 2) !== 0, n, s = !e.startsWith("<!>");
1351
1351
  return () => {
1352
1352
  if (Y)
1353
1353
  return _t(x, null), x;
1354
- n === void 0 && (n = as(s ? e : "<!>" + e), r || (n = /* @__PURE__ */ qt(n)));
1355
- var o = i || mi ? document.importNode(n, !0) : n.cloneNode(!0);
1354
+ n === void 0 && (n = ds(s ? e : "<!>" + e), r || (n = /* @__PURE__ */ Ut(n)));
1355
+ var o = i || yi ? document.importNode(n, !0) : n.cloneNode(!0);
1356
1356
  if (r) {
1357
- var a = /* @__PURE__ */ qt(o), c = o.lastChild;
1357
+ var a = /* @__PURE__ */ Ut(o), c = o.lastChild;
1358
1358
  _t(a, c);
1359
1359
  } else _t(o, o);
1360
1360
  return o;
1361
1361
  };
1362
1362
  }
1363
- function Mi(e, t) {
1363
+ function Hi(e, t) {
1364
1364
  if (Y) {
1365
1365
  var r = T;
1366
- (!(r.f & 32768) || r.nodes.end === null) && (r.nodes.end = x), Wr();
1366
+ (!(r.f & 32768) || r.nodes.end === null) && (r.nodes.end = x), Ur();
1367
1367
  return;
1368
1368
  }
1369
1369
  e !== null && e.before(t);
1370
1370
  }
1371
- var cs = [
1371
+ var hs = [
1372
1372
  "allowfullscreen",
1373
1373
  "async",
1374
1374
  "autofocus",
@@ -1397,8 +1397,8 @@ var cs = [
1397
1397
  "defer",
1398
1398
  "disablepictureinpicture",
1399
1399
  "disableremoteplayback"
1400
- ], xo = [
1401
- ...cs,
1400
+ ], Bo = [
1401
+ ...hs,
1402
1402
  "formNoValidate",
1403
1403
  "isMap",
1404
1404
  "noModule",
@@ -1413,17 +1413,17 @@ var cs = [
1413
1413
  "allowFullscreen",
1414
1414
  "disablePictureInPicture",
1415
1415
  "disableRemotePlayback"
1416
- ], us = ["touchstart", "touchmove"];
1417
- function ds(e) {
1418
- return us.includes(e);
1416
+ ], ps = ["touchstart", "touchmove"];
1417
+ function vs(e) {
1418
+ return ps.includes(e);
1419
1419
  }
1420
- var fs = [
1420
+ var ms = [
1421
1421
  "$state",
1422
1422
  "$state.raw",
1423
1423
  "$derived",
1424
1424
  "$derived.by"
1425
- ], Ho = [
1426
- ...fs,
1425
+ ], Vo = [
1426
+ ...ms,
1427
1427
  "$state.eager",
1428
1428
  "$state.snapshot",
1429
1429
  "$props",
@@ -1438,18 +1438,18 @@ var fs = [
1438
1438
  "$inspect().with",
1439
1439
  "$inspect.trace",
1440
1440
  "$host"
1441
- ], Or = !0;
1442
- function Pi(e, t) {
1443
- return xi(e, t);
1441
+ ], Rr = !0;
1442
+ function Ni(e, t) {
1443
+ return Di(e, t);
1444
1444
  }
1445
- function hs(e, t) {
1446
- Wt(), t.intro = t.intro ?? !1;
1445
+ function gs(e, t) {
1446
+ Kt(), t.intro = t.intro ?? !1;
1447
1447
  const r = t.target, i = Y, n = x;
1448
1448
  try {
1449
- for (var s = /* @__PURE__ */ qt(r); s && (s.nodeType !== 8 || s.data !== "["); ) s = /* @__PURE__ */ Ue(s);
1449
+ for (var s = /* @__PURE__ */ Ut(r); s && (s.nodeType !== 8 || s.data !== "["); ) s = /* @__PURE__ */ Ue(s);
1450
1450
  if (!s) throw wt;
1451
1451
  ct(!0), tt(s);
1452
- const o = xi(e, {
1452
+ const o = Di(e, {
1453
1453
  ...t,
1454
1454
  anchor: s
1455
1455
  });
@@ -1457,61 +1457,61 @@ function hs(e, t) {
1457
1457
  } catch (o) {
1458
1458
  if (o instanceof Error && o.message.split(`
1459
1459
  `).some((a) => a.startsWith("https://svelte.dev/e/"))) throw o;
1460
- return o !== wt && console.warn("Failed to hydrate: ", o), t.recover === !1 && dn(), Wt(), Wn(r), ct(!1), Pi(e, t);
1460
+ return o !== wt && console.warn("Failed to hydrate: ", o), t.recover === !1 && vn(), Kt(), Yn(r), ct(!1), Ni(e, t);
1461
1461
  } finally {
1462
1462
  ct(i), tt(n);
1463
1463
  }
1464
1464
  }
1465
1465
  var vt = /* @__PURE__ */ new Map();
1466
- function xi(e, { target: t, anchor: r, props: i = {}, events: n, context: s, intro: o = !0, transformError: a }) {
1467
- Wt();
1468
- var c = void 0, h = Yn(() => {
1469
- var _ = r ?? t.appendChild(yi());
1470
- Ln(_, { pending: () => {
1471
- } }, (p) => {
1472
- Ur({});
1466
+ function Di(e, { target: t, anchor: r, props: i = {}, events: n, context: s, intro: o = !0, transformError: a }) {
1467
+ Kt();
1468
+ var c = void 0, p = Zn(() => {
1469
+ var f = r ?? t.appendChild(Ti());
1470
+ xn(f, { pending: () => {
1471
+ } }, (v) => {
1472
+ Qr({});
1473
1473
  var d = O;
1474
- if (s && (d.c = s), n && (i.$$events = n), Y && _t(p, null), Or = o, c = e(p, i) || {}, Or = !0, Y && (T.nodes.end = x, x === null || x.nodeType !== 8 || x.data !== "]"))
1475
- throw Gr(), wt;
1476
- Yr();
1474
+ if (s && (d.c = s), n && (i.$$events = n), Y && _t(v, null), Rr = o, c = e(v, i) || {}, Rr = !0, Y && (T.nodes.end = x, x === null || x.nodeType !== 8 || x.data !== "]"))
1475
+ throw Kr(), wt;
1476
+ Jr();
1477
1477
  }, a);
1478
- var v = /* @__PURE__ */ new Set(), f = (p) => {
1479
- for (var d = 0; d < p.length; d++) {
1480
- var y = p[d];
1481
- if (!v.has(y)) {
1482
- v.add(y);
1483
- var g = ds(y);
1478
+ var m = /* @__PURE__ */ new Set(), h = (v) => {
1479
+ for (var d = 0; d < v.length; d++) {
1480
+ var y = v[d];
1481
+ if (!m.has(y)) {
1482
+ m.add(y);
1483
+ var _ = vs(y);
1484
1484
  for (const k of [t, document]) {
1485
1485
  var S = vt.get(k);
1486
1486
  S === void 0 && (S = /* @__PURE__ */ new Map(), vt.set(k, S));
1487
1487
  var B = S.get(y);
1488
- B === void 0 ? (k.addEventListener(y, $r, { passive: g }), S.set(y, 1)) : S.set(y, B + 1);
1488
+ B === void 0 ? (k.addEventListener(y, Lr, { passive: _ }), S.set(y, 1)) : S.set(y, B + 1);
1489
1489
  }
1490
1490
  }
1491
1491
  }
1492
1492
  };
1493
- return f(Yi(ns)), kr.add(f), () => {
1494
- for (var p of v) for (const g of [t, document]) {
1495
- var d = vt.get(g), y = d.get(p);
1496
- --y == 0 ? (g.removeEventListener(p, $r), d.delete(p), d.size === 0 && vt.delete(g)) : d.set(p, y);
1493
+ return h(Zi(ls)), $r.add(h), () => {
1494
+ for (var v of m) for (const _ of [t, document]) {
1495
+ var d = vt.get(_), y = d.get(v);
1496
+ --y == 0 ? (_.removeEventListener(v, Lr), d.delete(v), d.size === 0 && vt.delete(_)) : d.set(v, y);
1497
1497
  }
1498
- kr.delete(f), _ !== r && _.parentNode?.removeChild(_);
1498
+ $r.delete(h), f !== r && f.parentNode?.removeChild(f);
1499
1499
  };
1500
1500
  });
1501
- return Kt.set(c, h), c;
1501
+ return Yt.set(c, p), c;
1502
1502
  }
1503
- var Kt = /* @__PURE__ */ new WeakMap();
1504
- function ps(e, t) {
1505
- const r = Kt.get(e);
1506
- return r ? (Kt.delete(e), r(t)) : Promise.resolve();
1503
+ var Yt = /* @__PURE__ */ new WeakMap();
1504
+ function _s(e, t) {
1505
+ const r = Yt.get(e);
1506
+ return r ? (Yt.delete(e), r(t)) : Promise.resolve();
1507
1507
  }
1508
- function vs(e) {
1509
- O === null && on("onMount"), at && O.l !== null ? ms(O).m.push(e) : Ae(() => {
1510
- const t = Lt(e);
1508
+ function ys(e) {
1509
+ O === null && un("onMount"), at && O.l !== null ? bs(O).m.push(e) : Ae(() => {
1510
+ const t = Rt(e);
1511
1511
  if (typeof t == "function") return t;
1512
1512
  });
1513
1513
  }
1514
- function ms(e) {
1514
+ function bs(e) {
1515
1515
  var t = e.l;
1516
1516
  return t.u ?? (t.u = {
1517
1517
  a: [],
@@ -1519,94 +1519,94 @@ function ms(e) {
1519
1519
  m: []
1520
1520
  });
1521
1521
  }
1522
- var No = [...`
1523
- \r\f \v\uFEFF`], Hi, Be = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakSet(), Ni = class {
1522
+ var jo = [...`
1523
+ \r\f \v\uFEFF`], Fi, Be = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), Dt = /* @__PURE__ */ new WeakMap(), Mr = /* @__PURE__ */ new WeakSet(), Bi = class {
1524
1524
  constructor(e) {
1525
- Jt(this, Lr), A(this, Be, /* @__PURE__ */ new WeakMap()), A(this, kt, void 0), A(this, Nt, void 0), b(Nt, this, e);
1525
+ er(this, Mr), A(this, Be, /* @__PURE__ */ new WeakMap()), A(this, kt, void 0), A(this, Dt, void 0), b(Dt, this, e);
1526
1526
  }
1527
1527
  observe(e, t) {
1528
1528
  var r = l(Be, this).get(e) || /* @__PURE__ */ new Set();
1529
- return r.add(t), l(Be, this).set(e, r), E(Lr, this, gs).call(this).observe(e, l(Nt, this)), () => {
1529
+ return r.add(t), l(Be, this).set(e, r), E(Mr, this, ws).call(this).observe(e, l(Dt, this)), () => {
1530
1530
  var i = l(Be, this).get(e);
1531
1531
  i.delete(t), i.size === 0 && (l(Be, this).delete(e), l(kt, this).unobserve(e));
1532
1532
  };
1533
1533
  }
1534
1534
  };
1535
- Hi = Ni;
1536
- function gs() {
1535
+ Fi = Bi;
1536
+ function ws() {
1537
1537
  return l(kt, this) ?? b(kt, this, new ResizeObserver((e) => {
1538
1538
  for (var t of e) {
1539
- Hi.entries.set(t.target, t);
1539
+ Fi.entries.set(t.target, t);
1540
1540
  for (var r of l(Be, this).get(t.target) || []) r(t);
1541
1541
  }
1542
1542
  }));
1543
1543
  }
1544
- u(Ni, "entries", /* @__PURE__ */ new WeakMap());
1545
- function Rr(e, t) {
1544
+ u(Bi, "entries", /* @__PURE__ */ new WeakMap());
1545
+ function Pr(e, t) {
1546
1546
  return e === t || e?.[Je] === t;
1547
1547
  }
1548
- function _s(e = {}, t, r, i) {
1548
+ function Ts(e = {}, t, r, i) {
1549
1549
  var n = O.r, s = T;
1550
- return Xn(() => {
1550
+ return es(() => {
1551
1551
  var o, a;
1552
- return nr(() => {
1553
- o = a, a = i?.() || [], Lt(() => {
1554
- e !== r(...a) && (t(e, ...a), o && Rr(r(...o), e) && t(null, ...o));
1552
+ return or(() => {
1553
+ o = a, a = i?.() || [], Rt(() => {
1554
+ e !== r(...a) && (t(e, ...a), o && Pr(r(...o), e) && t(null, ...o));
1555
1555
  });
1556
1556
  }), () => {
1557
1557
  let c = s;
1558
1558
  for (; c !== n && c.parent !== null && c.parent.f & 33554432; ) c = c.parent;
1559
- const h = () => {
1560
- a && Rr(r(...a), e) && t(null, ...a);
1561
- }, _ = c.teardown;
1559
+ const p = () => {
1560
+ a && Pr(r(...a), e) && t(null, ...a);
1561
+ }, f = c.teardown;
1562
1562
  c.teardown = () => {
1563
- h(), _?.();
1563
+ p(), f?.();
1564
1564
  };
1565
1565
  };
1566
1566
  }), e;
1567
1567
  }
1568
1568
  function he(e, t, r, i) {
1569
- var n = !at || (r & 2) !== 0, s = (r & 8) !== 0, o = (r & 16) !== 0, a = i, c = !0, h = () => (c && (c = !1, a = o ? Lt(i) : i), a);
1570
- let _;
1569
+ var n = !at || (r & 2) !== 0, s = (r & 8) !== 0, o = (r & 16) !== 0, a = i, c = !0, p = () => (c && (c = !1, a = o ? Rt(i) : i), a);
1570
+ let f;
1571
1571
  if (s) {
1572
- var v = Je in e || zr in e;
1573
- _ = ke(e, t)?.set ?? (v && t in e ? (k) => e[t] = k : void 0);
1572
+ var m = Je in e || qr in e;
1573
+ f = ke(e, t)?.set ?? (m && t in e ? (k) => e[t] = k : void 0);
1574
1574
  }
1575
- var f, p = !1;
1576
- s ? [f, p] = In(() => e[t]) : f = e[t], f === void 0 && i !== void 0 && (f = h(), _ && (n && fn(t), _(f)));
1575
+ var h, v = !1;
1576
+ s ? [h, v] = $n(() => e[t]) : h = e[t], h === void 0 && i !== void 0 && (h = p(), f && (n && mn(t), f(h)));
1577
1577
  var d;
1578
1578
  if (n ? d = () => {
1579
1579
  var k = e[t];
1580
- return k === void 0 ? h() : (c = !0, k);
1580
+ return k === void 0 ? p() : (c = !0, k);
1581
1581
  } : d = () => {
1582
1582
  var k = e[t];
1583
1583
  return k !== void 0 && (a = void 0), k === void 0 ? a : k;
1584
1584
  }, n && !(r & 4)) return d;
1585
- if (_) {
1585
+ if (f) {
1586
1586
  var y = e.$$legacy;
1587
1587
  return function(k, q) {
1588
- return arguments.length > 0 ? ((!n || !q || y || p) && _(q ? d() : k), k) : d();
1588
+ return arguments.length > 0 ? ((!n || !q || y || v) && f(q ? d() : k), k) : d();
1589
1589
  };
1590
1590
  }
1591
- var g = !1, S = (r & 1 ? tr : Hn)(() => (g = !1, d()));
1592
- s && m(S);
1591
+ var _ = !1, S = (r & 1 ? ir : Bn)(() => (_ = !1, d()));
1592
+ s && g(S);
1593
1593
  var B = T;
1594
1594
  return function(k, q) {
1595
1595
  if (arguments.length > 0) {
1596
- const be = q ? m(S) : n && s ? Ve(k) : k;
1597
- return $(S, be), g = !0, a !== void 0 && (a = be), k;
1596
+ const be = q ? g(S) : n && s ? je(k) : k;
1597
+ return $(S, be), _ = !0, a !== void 0 && (a = be), k;
1598
1598
  }
1599
- return ge && g || B.f & 16384 ? S.v : m(S);
1599
+ return ge && _ || B.f & 16384 ? S.v : g(S);
1600
1600
  };
1601
1601
  }
1602
- function ys(e) {
1603
- return new bs(e);
1602
+ function As(e) {
1603
+ return new Ss(e);
1604
1604
  }
1605
- var Te = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), bs = class {
1605
+ var Te = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Ss = class {
1606
1606
  constructor(e) {
1607
1607
  A(this, Te, void 0), A(this, te, void 0);
1608
1608
  var t = /* @__PURE__ */ new Map(), r = (n, s) => {
1609
- var o = /* @__PURE__ */ Bn(s, !1, !1);
1609
+ var o = /* @__PURE__ */ Gn(s, !1, !1);
1610
1610
  return t.set(n, o), o;
1611
1611
  };
1612
1612
  const i = new Proxy({
@@ -1614,16 +1614,16 @@ var Te = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), bs =
1614
1614
  $$events: {}
1615
1615
  }, {
1616
1616
  get(n, s) {
1617
- return m(t.get(s) ?? r(s, Reflect.get(n, s)));
1617
+ return g(t.get(s) ?? r(s, Reflect.get(n, s)));
1618
1618
  },
1619
1619
  has(n, s) {
1620
- return s === zr ? !0 : (m(t.get(s) ?? r(s, Reflect.get(n, s))), Reflect.has(n, s));
1620
+ return s === qr ? !0 : (g(t.get(s) ?? r(s, Reflect.get(n, s))), Reflect.has(n, s));
1621
1621
  },
1622
1622
  set(n, s, o) {
1623
1623
  return $(t.get(s) ?? r(s, o), o), Reflect.set(n, s, o);
1624
1624
  }
1625
1625
  });
1626
- b(te, this, (e.hydrate ? hs : Pi)(e.component, {
1626
+ b(te, this, (e.hydrate ? gs : Ni)(e.component, {
1627
1627
  target: e.target,
1628
1628
  anchor: e.anchor,
1629
1629
  props: i,
@@ -1645,7 +1645,7 @@ var Te = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), bs =
1645
1645
  l(te, this).$set = (n) => {
1646
1646
  Object.assign(i, n);
1647
1647
  }, l(te, this).$destroy = () => {
1648
- ps(l(te, this));
1648
+ _s(l(te, this));
1649
1649
  };
1650
1650
  }
1651
1651
  $set(e) {
@@ -1661,8 +1661,8 @@ var Te = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), bs =
1661
1661
  $destroy() {
1662
1662
  l(te, this).$destroy();
1663
1663
  }
1664
- }, Di;
1665
- typeof HTMLElement == "function" && (Di = class extends HTMLElement {
1664
+ }, Vi;
1665
+ typeof HTMLElement == "function" && (Vi = class extends HTMLElement {
1666
1666
  constructor(e, t, r) {
1667
1667
  super(), u(this, "$$ctor", void 0), u(this, "$$s", void 0), u(this, "$$c", void 0), u(this, "$$cn", !1), u(this, "$$d", {}), u(this, "$$r", !1), u(this, "$$p_d", {}), u(this, "$$l", {}), u(this, "$$l_u", /* @__PURE__ */ new Map()), u(this, "$$me", void 0), u(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
1668
1668
  }
@@ -1683,19 +1683,19 @@ typeof HTMLElement == "function" && (Di = class extends HTMLElement {
1683
1683
  if (this.$$cn = !0, !this.$$c) {
1684
1684
  let e = function(i) {
1685
1685
  return (n) => {
1686
- const s = bi("slot");
1687
- i !== "default" && (s.name = i), Mi(n, s);
1686
+ const s = Ai("slot");
1687
+ i !== "default" && (s.name = i), Hi(n, s);
1688
1688
  };
1689
1689
  };
1690
1690
  if (await Promise.resolve(), !this.$$cn || this.$$c) return;
1691
- const t = {}, r = ws(this);
1691
+ const t = {}, r = Is(this);
1692
1692
  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));
1693
1693
  for (const i of this.attributes) {
1694
1694
  const n = this.$$g_p(i.name);
1695
1695
  n in this.$$d || (this.$$d[n] = yt(n, i.value, this.$$p_d, "toProp"));
1696
1696
  }
1697
1697
  for (const i in this.$$p_d) !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
1698
- this.$$c = ys({
1698
+ this.$$c = As({
1699
1699
  component: this.$$ctor,
1700
1700
  target: this.$$shadowRoot || this,
1701
1701
  props: {
@@ -1703,8 +1703,8 @@ typeof HTMLElement == "function" && (Di = class extends HTMLElement {
1703
1703
  $$slots: t,
1704
1704
  $$host: this
1705
1705
  }
1706
- }), this.$$me = Un(() => {
1707
- nr(() => {
1706
+ }), this.$$me = Jn(() => {
1707
+ or(() => {
1708
1708
  this.$$r = !0;
1709
1709
  for (const i of Tt(this.$$c)) {
1710
1710
  if (!this.$$p_d[i]?.reflect) continue;
@@ -1760,14 +1760,14 @@ function yt(e, t, r, i) {
1760
1760
  return t;
1761
1761
  }
1762
1762
  }
1763
- function ws(e) {
1763
+ function Is(e) {
1764
1764
  const t = {};
1765
1765
  return e.childNodes.forEach((r) => {
1766
1766
  t[r.slot || "default"] = !0;
1767
1767
  }), t;
1768
1768
  }
1769
- function Ts(e, t, r, i, n, s) {
1770
- let o = class extends Di {
1769
+ function Es(e, t, r, i, n, s) {
1770
+ let o = class extends Vi {
1771
1771
  constructor() {
1772
1772
  super(e, r, n), this.$$p_d = t;
1773
1773
  }
@@ -1782,8 +1782,8 @@ function Ts(e, t, r, i, n, s) {
1782
1782
  },
1783
1783
  set(c) {
1784
1784
  c = yt(a, c, t), this.$$d[a] = c;
1785
- var h = this.$$c;
1786
- h && (ke(h, a)?.get ? h[a] = c : h.$set({ [a]: c }));
1785
+ var p = this.$$c;
1786
+ p && (ke(p, a)?.get ? p[a] = c : p.$set({ [a]: c }));
1787
1787
  }
1788
1788
  });
1789
1789
  }), i.forEach((a) => {
@@ -1792,14 +1792,14 @@ function Ts(e, t, r, i, n, s) {
1792
1792
  } });
1793
1793
  }), s && (o = s(o)), e.element = o, o;
1794
1794
  }
1795
- var As = class extends Event {
1795
+ var ks = class extends Event {
1796
1796
  constructor(e, t, r, i) {
1797
1797
  super("context-request", {
1798
1798
  bubbles: !0,
1799
1799
  composed: !0
1800
1800
  }), u(this, "context", void 0), u(this, "contextTarget", void 0), u(this, "callback", void 0), u(this, "subscribe", void 0), this.context = e, this.contextTarget = t, this.callback = r, this.subscribe = i ?? !1;
1801
1801
  }
1802
- }, Ss = class {
1802
+ }, Cs = class {
1803
1803
  constructor(e, t) {
1804
1804
  u(this, "host", void 0), u(this, "context", void 0), u(this, "subscribe", void 0), u(this, "onValue", void 0), u(this, "isConnected", !1), u(this, "unsubscribe", void 0), u(this, "currentValue", void 0), u(this, "handleValue", (r, i) => {
1805
1805
  i !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = i), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = r, this.onValue?.(r);
@@ -1815,21 +1815,21 @@ var As = class extends Event {
1815
1815
  return this.currentValue;
1816
1816
  }
1817
1817
  requestValue() {
1818
- this.host.dispatchEvent(new As(this.context, this.host, this.handleValue, this.subscribe));
1818
+ this.host.dispatchEvent(new ks(this.context, this.host, this.handleValue, this.subscribe));
1819
1819
  }
1820
- }, Rt = (e) => e, Is = Rt(Symbol.for("pie.assessmentToolkit.runtimeContext")), Do = Rt(Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), Es = Rt(Symbol.for("pie.assessmentToolkit.shellContext")), Fo = Rt(Symbol.for("pie.assessmentToolkit.regionScopeContext"));
1821
- function Fi(e, t, r) {
1820
+ }, Mt = (e) => e, $s = Mt(Symbol.for("pie.assessmentToolkit.runtimeContext")), zo = Mt(Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), Os = Mt(Symbol.for("pie.assessmentToolkit.shellContext")), Go = Mt(Symbol.for("pie.assessmentToolkit.regionScopeContext"));
1821
+ function ji(e, t, r) {
1822
1822
  let i = !1;
1823
- const n = new Ss(e, {
1823
+ const n = new Cs(e, {
1824
1824
  context: t,
1825
1825
  subscribe: !0,
1826
- onValue: (h) => {
1827
- i = !0, r(h);
1826
+ onValue: (p) => {
1827
+ i = !0, r(p);
1828
1828
  }
1829
1829
  });
1830
1830
  n.connect();
1831
- const s = (h) => {
1832
- h.context === t && n.requestValue();
1831
+ const s = (p) => {
1832
+ p.context === t && n.requestValue();
1833
1833
  };
1834
1834
  e.addEventListener("context-provider", s);
1835
1835
  let o = 0;
@@ -1844,48 +1844,48 @@ function Fi(e, t, r) {
1844
1844
  globalThis.clearInterval(c), e.removeEventListener("context-provider", s), n.disconnect();
1845
1845
  };
1846
1846
  }
1847
- function ks(e, t) {
1848
- return Fi(e, Is, t);
1847
+ function Ls(e, t) {
1848
+ return ji(e, $s, t);
1849
1849
  }
1850
- function Cs(e, t) {
1851
- return Fi(e, Es, t);
1850
+ function Rs(e, t) {
1851
+ return ji(e, Os, t);
1852
1852
  }
1853
- function $s(e, t) {
1854
- return ks(e, t);
1853
+ function Ms(e, t) {
1854
+ return Ls(e, t);
1855
1855
  }
1856
- function Os(e, t) {
1857
- return Cs(e, t);
1856
+ function Ps(e, t) {
1857
+ return Rs(e, t);
1858
1858
  }
1859
- var Mr;
1859
+ var xr;
1860
1860
  (function(e) {
1861
1861
  e.TTS_WORD = "tts-word", e.TTS_SENTENCE = "tts-sentence", e.ANNOTATION = "annotation";
1862
- })(Mr || (Mr = {}));
1863
- var Pr;
1862
+ })(xr || (xr = {}));
1863
+ var Hr;
1864
1864
  (function(e) {
1865
1865
  e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
1866
- })(Pr || (Pr = {}));
1867
- function Bi(e) {
1866
+ })(Hr || (Hr = {}));
1867
+ function zi(e) {
1868
1868
  return (...t) => {
1869
1869
  console.debug(`[${e}]`, ...t);
1870
1870
  };
1871
1871
  }
1872
- var Bo = Bi("I18nService"), Dt = {
1872
+ var Wo = zi("I18nService"), Ft = {
1873
1873
  assessment: [],
1874
1874
  section: [],
1875
1875
  item: [],
1876
1876
  passage: [],
1877
1877
  rubric: [],
1878
1878
  element: []
1879
- }, jo = {
1880
- section: [...Dt.section],
1881
- item: [...Dt.item],
1882
- passage: [...Dt.passage]
1879
+ }, qo = {
1880
+ section: [...Ft.section],
1881
+ item: [...Ft.item],
1882
+ passage: [...Ft.passage]
1883
1883
  };
1884
- function Ls(e) {
1884
+ function xs(e) {
1885
1885
  const t = e.trim();
1886
1886
  return t || "";
1887
1887
  }
1888
- var Rs = [
1888
+ var Hs = [
1889
1889
  "assessment",
1890
1890
  "section",
1891
1891
  "item",
@@ -1896,10 +1896,10 @@ var Rs = [
1896
1896
  function bt(e, t) {
1897
1897
  if (typeof e != "string" || e.trim().length === 0) throw new Error(`Invalid tool registration: "${t}" must be a non-empty string.`);
1898
1898
  }
1899
- function xr(e) {
1899
+ function Nr(e) {
1900
1900
  if (bt(e.toolId, "toolId"), bt(e.name, "name"), bt(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.`);
1901
1901
  if (!Array.isArray(e.supportedLevels) || e.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${e.toolId}": "supportedLevels" must be a non-empty array.`);
1902
- const t = e.supportedLevels.find((r) => !Rs.includes(r));
1902
+ const t = e.supportedLevels.find((r) => !Hs.includes(r));
1903
1903
  if (t) throw new Error(`Invalid tool registration "${e.toolId}": unsupported level "${t}".`);
1904
1904
  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)}".`);
1905
1905
  if (e.singletonScope !== void 0 && e.singletonScope !== "section") throw new Error(`Invalid tool registration "${e.toolId}": unsupported singletonScope "${String(e.singletonScope)}".`);
@@ -1908,23 +1908,23 @@ function xr(e) {
1908
1908
  if (typeof e.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${e.toolId}": "isVisibleInContext" must be a function.`);
1909
1909
  if (typeof e.renderToolbar != "function") throw new Error(`Invalid tool registration "${e.toolId}": "renderToolbar" must be a function.`);
1910
1910
  }
1911
- var Ms = class {
1911
+ var Ns = class {
1912
1912
  constructor() {
1913
1913
  u(this, "tools", /* @__PURE__ */ new Map()), u(this, "pnpIndex", /* @__PURE__ */ new Map()), u(this, "componentOverrides", {}), u(this, "moduleLoaders", /* @__PURE__ */ new Map()), u(this, "loadedToolModules", /* @__PURE__ */ new Set()), u(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
1914
1914
  }
1915
1915
  normalizeToolId(e) {
1916
- return Ls(e);
1916
+ return xs(e);
1917
1917
  }
1918
1918
  normalizeToolIds(e) {
1919
1919
  return e.map((t) => this.normalizeToolId(t));
1920
1920
  }
1921
1921
  register(e) {
1922
- if (xr(e), this.tools.has(e.toolId)) throw new Error(`Tool '${e.toolId}' is already registered`);
1922
+ if (Nr(e), this.tools.has(e.toolId)) throw new Error(`Tool '${e.toolId}' is already registered`);
1923
1923
  if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const t of e.pnpSupportIds)
1924
1924
  this.pnpIndex.has(t) || this.pnpIndex.set(t, /* @__PURE__ */ new Set()), this.pnpIndex.get(t).add(e.toolId);
1925
1925
  }
1926
1926
  override(e) {
1927
- if (xr(e), !this.tools.has(e.toolId)) throw new Error(`Cannot override non-existent tool '${e.toolId}'`);
1927
+ if (Nr(e), !this.tools.has(e.toolId)) throw new Error(`Cannot override non-existent tool '${e.toolId}'`);
1928
1928
  const t = this.tools.get(e.toolId);
1929
1929
  if (t.pnpSupportIds) for (const r of t.pnpSupportIds) this.pnpIndex.get(r)?.delete(e.toolId);
1930
1930
  if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const r of e.pnpSupportIds)
@@ -2051,20 +2051,20 @@ var Ms = class {
2051
2051
  return i.renderToolbar(t, n);
2052
2052
  }
2053
2053
  };
2054
- function ji(e) {
2054
+ function Gi(e) {
2055
2055
  return e.level === "item";
2056
2056
  }
2057
- function Ps(e) {
2057
+ function Ds(e) {
2058
2058
  return e.level === "passage";
2059
2059
  }
2060
- function xs(e) {
2060
+ function Fs(e) {
2061
2061
  return e.level === "rubric";
2062
2062
  }
2063
- function Vi(e) {
2063
+ function Wi(e) {
2064
2064
  return e.level === "element";
2065
2065
  }
2066
- function or(e) {
2067
- if (Vi(e)) {
2066
+ function lr(e) {
2067
+ if (Wi(e)) {
2068
2068
  const t = e.item.config;
2069
2069
  if (!t) return "";
2070
2070
  const r = [], i = (a) => a.replace(/<[^>]*>/g, " ").trim(), n = t.elements?.[e.elementId];
@@ -2074,12 +2074,12 @@ function or(e) {
2074
2074
  for (const a of Object.values(o))
2075
2075
  if (typeof a == "string" && r.push(i(a)), Array.isArray(a)) {
2076
2076
  for (const c of a) if (c && typeof c == "object")
2077
- for (const h of Object.values(c)) typeof h == "string" && r.push(i(h));
2077
+ for (const p of Object.values(c)) typeof p == "string" && r.push(i(p));
2078
2078
  }
2079
2079
  }
2080
2080
  return r.filter(Boolean).join(" ").trim();
2081
2081
  }
2082
- if (ji(e)) {
2082
+ if (Gi(e)) {
2083
2083
  const t = e.item;
2084
2084
  if (!t?.config) return "";
2085
2085
  const r = t.config, i = [], n = (c) => c.replace(/<[^>]*>/g, " ").trim();
@@ -2090,15 +2090,15 @@ function or(e) {
2090
2090
  const o = r.models, a = Array.isArray(o) ? o : o && typeof o == "object" ? Object.values(o) : [];
2091
2091
  for (const c of a)
2092
2092
  if (!(!c || typeof c != "object")) {
2093
- for (const h of Object.values(c))
2094
- if (typeof h == "string" && i.push(n(h)), Array.isArray(h)) {
2095
- for (const _ of h) if (_ && typeof _ == "object")
2096
- for (const v of Object.values(_)) typeof v == "string" && i.push(n(v));
2093
+ for (const p of Object.values(c))
2094
+ if (typeof p == "string" && i.push(n(p)), Array.isArray(p)) {
2095
+ for (const f of p) if (f && typeof f == "object")
2096
+ for (const m of Object.values(f)) typeof m == "string" && i.push(n(m));
2097
2097
  }
2098
2098
  }
2099
2099
  return i.filter(Boolean).join(" ").trim();
2100
2100
  }
2101
- if (Ps(e)) {
2101
+ if (Ds(e)) {
2102
2102
  const t = e.passage;
2103
2103
  if (!t?.config) return "";
2104
2104
  const r = t.config, i = [], n = (c) => c.replace(/<[^>]*>/g, " ").trim();
@@ -2109,22 +2109,22 @@ function or(e) {
2109
2109
  const o = r.models, a = Array.isArray(o) ? o : o && typeof o == "object" ? Object.values(o) : [];
2110
2110
  for (const c of a)
2111
2111
  if (!(!c || typeof c != "object")) {
2112
- for (const h of Object.values(c))
2113
- if (typeof h == "string" && i.push(n(h)), Array.isArray(h)) {
2114
- for (const _ of h) if (_ && typeof _ == "object")
2115
- for (const v of Object.values(_)) typeof v == "string" && i.push(n(v));
2112
+ for (const p of Object.values(c))
2113
+ if (typeof p == "string" && i.push(n(p)), Array.isArray(p)) {
2114
+ for (const f of p) if (f && typeof f == "object")
2115
+ for (const m of Object.values(f)) typeof m == "string" && i.push(n(m));
2116
2116
  }
2117
2117
  }
2118
2118
  return i.filter(Boolean).join(" ").trim();
2119
2119
  }
2120
- if (xs(e)) {
2120
+ if (Fs(e)) {
2121
2121
  const t = e.rubricBlock;
2122
2122
  return t.passage?.config ? (t.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (t.content || "").replace(/<[^>]*>/g, " ").trim();
2123
2123
  }
2124
2124
  return "";
2125
2125
  }
2126
- function Mt(e) {
2127
- const t = or(e);
2126
+ function Pt(e) {
2127
+ const t = lr(e);
2128
2128
  return [
2129
2129
  /<math[>\s]/i,
2130
2130
  /\\\[([^\]]+)\\\]/,
@@ -2134,7 +2134,7 @@ function Mt(e) {
2134
2134
  /\d+\s*[+\-*/=]\s*\d+/
2135
2135
  ].some((r) => r.test(t));
2136
2136
  }
2137
- function Hs(e) {
2137
+ function Bs(e) {
2138
2138
  const t = [
2139
2139
  "pie-multiple-choice",
2140
2140
  "pie-inline-choice",
@@ -2143,7 +2143,7 @@ function Hs(e) {
2143
2143
  "inline-choice",
2144
2144
  "select-text"
2145
2145
  ];
2146
- if (Vi(e)) {
2146
+ if (Wi(e)) {
2147
2147
  const r = e.item.config;
2148
2148
  if (!r?.models) return !1;
2149
2149
  const i = (Array.isArray(r.models) ? r.models : Object.values(r.models)).find((s) => s && typeof s == "object" && s.id === e.elementId);
@@ -2151,7 +2151,7 @@ function Hs(e) {
2151
2151
  const n = i.element || "";
2152
2152
  return t.includes(n);
2153
2153
  }
2154
- if (ji(e)) {
2154
+ if (Gi(e)) {
2155
2155
  const r = e.item.config?.models;
2156
2156
  return (Array.isArray(r) ? r : r && typeof r == "object" ? Object.values(r) : []).some((i) => {
2157
2157
  if (!i || typeof i != "object") return !1;
@@ -2161,11 +2161,11 @@ function Hs(e) {
2161
2161
  }
2162
2162
  return !1;
2163
2163
  }
2164
- function Pt(e) {
2165
- return or(e).trim().length >= 10;
2164
+ function xt(e) {
2165
+ return lr(e).trim().length >= 10;
2166
2166
  }
2167
- function Ns(e) {
2168
- const t = or(e);
2167
+ function Vs(e) {
2168
+ const t = lr(e);
2169
2169
  return [
2170
2170
  /chemistry|chemical|element|atom|molecule|compound/i,
2171
2171
  /periodic\s+table/i,
@@ -2175,23 +2175,23 @@ function Ns(e) {
2175
2175
  /physics|force|energy|velocity|acceleration/i
2176
2176
  ].some((r) => r.test(t));
2177
2177
  }
2178
- var Ds = [
2178
+ var js = [
2179
2179
  "assessment",
2180
2180
  "section",
2181
2181
  "item",
2182
2182
  "passage",
2183
2183
  "rubric"
2184
- ], Fs = new Set(Ds);
2185
- function Bs(e) {
2186
- return Fs.has(e);
2184
+ ], zs = new Set(js);
2185
+ function Gs(e) {
2186
+ return zs.has(e);
2187
2187
  }
2188
- function ar(e, t, r) {
2188
+ function cr(e, t, r) {
2189
2189
  const i = e.trim(), n = r.trim();
2190
2190
  if (!i || !n) throw new Error("Tool instance ids require non-empty tool and scope ids");
2191
- if (!Bs(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
2191
+ if (!Gs(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
2192
2192
  return `${i}:${t}:${n}`;
2193
2193
  }
2194
- var js = class {
2194
+ var Ws = class {
2195
2195
  constructor() {
2196
2196
  u(this, "providerId", "desmos-calculator"), u(this, "providerName", "Desmos Calculator"), u(this, "category", "calculator"), u(this, "version", "1.10"), u(this, "requiresAuth", !0), u(this, "desmosProvider", null), u(this, "config", null);
2197
2197
  }
@@ -2266,16 +2266,16 @@ var js = class {
2266
2266
  destroy() {
2267
2267
  this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
2268
2268
  }
2269
- }, Vs = (e, t) => {
2269
+ }, qs = (e, t) => {
2270
2270
  const r = t?.useSentenceSegmenter !== !1;
2271
2271
  try {
2272
2272
  if (!r) throw new Error("Segmenter disabled by policy");
2273
2273
  const o = globalThis.Intl?.Segmenter;
2274
2274
  if (typeof o == "function") {
2275
- const a = new o(t?.locale, { granularity: "sentence" }), c = Array.from(a.segment(e)).map((h) => ({
2276
- text: h.segment,
2277
- offset: h.index
2278
- })).filter((h) => h.text.trim().length > 0);
2275
+ const a = new o(t?.locale, { granularity: "sentence" }), c = Array.from(a.segment(e)).map((p) => ({
2276
+ text: p.segment,
2277
+ offset: p.index
2278
+ })).filter((p) => p.text.trim().length > 0);
2279
2279
  if (c.length > 0) return c;
2280
2280
  }
2281
2281
  } catch {
@@ -2293,14 +2293,14 @@ var js = class {
2293
2293
  text: e,
2294
2294
  offset: 0
2295
2295
  }];
2296
- }, zs = class {
2296
+ }, Ks = class {
2297
2297
  constructor() {
2298
2298
  u(this, "providerId", "browser"), u(this, "providerName", "Browser Speech Synthesis"), u(this, "version", "1.0.0");
2299
2299
  }
2300
2300
  async initialize(e) {
2301
2301
  if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
2302
2302
  if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
2303
- return new Gs(e);
2303
+ return new Us(e);
2304
2304
  }
2305
2305
  supportsFeature(e) {
2306
2306
  return !0;
@@ -2317,7 +2317,7 @@ var js = class {
2317
2317
  }
2318
2318
  destroy() {
2319
2319
  }
2320
- }, Gs = class {
2320
+ }, Us = class {
2321
2321
  constructor(e) {
2322
2322
  u(this, "utterance", null), u(this, "config", null), u(this, "_isPlaying", !1), u(this, "_isPaused", !1), u(this, "speakRunId", 0), u(this, "onWordBoundary", void 0), this.config = e;
2323
2323
  }
@@ -2355,16 +2355,16 @@ var js = class {
2355
2355
  for (const o of r) {
2356
2356
  const a = o.text.trim();
2357
2357
  if (!a) continue;
2358
- const c = o.text.search(/\S/), h = o.offset + (c === -1 ? 0 : c);
2358
+ const c = o.text.search(/\S/), p = o.offset + (c === -1 ? 0 : c);
2359
2359
  if (!n) {
2360
- n = a, s = h;
2360
+ n = a, s = p;
2361
2361
  continue;
2362
2362
  }
2363
- const _ = `${n} ${a}`;
2364
- _.length <= 260 ? n = _ : (i.push({
2363
+ const f = `${n} ${a}`;
2364
+ f.length <= 260 ? n = f : (i.push({
2365
2365
  text: n,
2366
2366
  offset: s
2367
- }), n = a, s = h);
2367
+ }), n = a, s = p);
2368
2368
  }
2369
2369
  return n && i.push({
2370
2370
  text: n,
@@ -2387,7 +2387,7 @@ var js = class {
2387
2387
  }
2388
2388
  segmentSentences(e) {
2389
2389
  const t = this.getSegmentationPolicy();
2390
- return Vs(e, {
2390
+ return qs(e, {
2391
2391
  locale: t.locale,
2392
2392
  useSentenceSegmenter: t.useSentenceSegmenter
2393
2393
  });
@@ -2430,8 +2430,8 @@ var js = class {
2430
2430
  r === this.speakRunId && (this._isPaused = !1);
2431
2431
  }, this.utterance.onboundary = (s) => {
2432
2432
  if (r !== this.speakRunId || (console.log("[BrowserProvider] Boundary event:", s.name, "charIndex:", s.charIndex, "charLength:", s.charLength), s.name !== "word" || !this.onWordBoundary) || this.getHighlightMode() === "sentence") return;
2433
- const o = Math.max(0, Math.min(s.charIndex, Math.max(0, e.length - 1))), a = Number(s.charLength || 0), c = this.inferWordLength(e, o), h = Number.isFinite(a) && a > 0 && a <= 80 && o + a <= e.length ? a : c, _ = e.substring(o, Math.min(e.length, o + h)).trim(), v = t + o;
2434
- console.log("[BrowserProvider] Calling onWordBoundary with word:", _, "at position:", v), this.onWordBoundary(_, v, h);
2433
+ const o = Math.max(0, Math.min(s.charIndex, Math.max(0, e.length - 1))), a = Number(s.charLength || 0), c = this.inferWordLength(e, o), p = Number.isFinite(a) && a > 0 && a <= 80 && o + a <= e.length ? a : c, f = e.substring(o, Math.min(e.length, o + p)).trim(), m = t + o;
2434
+ console.log("[BrowserProvider] Calling onWordBoundary with word:", f, "at position:", m), this.onWordBoundary(f, m, p);
2435
2435
  }, speechSynthesis.speak(this.utterance);
2436
2436
  });
2437
2437
  }
@@ -2456,7 +2456,7 @@ var js = class {
2456
2456
  ...e.providerOptions || {}
2457
2457
  });
2458
2458
  }
2459
- }, Ws = class {
2459
+ }, Ys = class {
2460
2460
  async emitTelemetry(e, t) {
2461
2461
  try {
2462
2462
  await this.config?.onTelemetry?.(e, t);
@@ -2488,7 +2488,7 @@ var js = class {
2488
2488
  }
2489
2489
  async _initializeBrowserTTS(e) {
2490
2490
  if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
2491
- this.ttsProvider = new zs(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
2491
+ this.ttsProvider = new Ks(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
2492
2492
  }
2493
2493
  async _initializeServerTTS(e) {
2494
2494
  if (!e.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
@@ -2544,7 +2544,7 @@ var js = class {
2544
2544
  destroy() {
2545
2545
  this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
2546
2546
  }
2547
- }, qs = /* @__PURE__ */ new Set([
2547
+ }, Xs = /* @__PURE__ */ new Set([
2548
2548
  "annotation-xml",
2549
2549
  "color-profile",
2550
2550
  "font-face",
@@ -2553,16 +2553,16 @@ var js = class {
2553
2553
  "font-face-format",
2554
2554
  "font-face-name",
2555
2555
  "missing-glyph"
2556
- ]), Ks = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, Us = (e, t = "custom element tag") => {
2556
+ ]), Qs = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, Js = (e, t = "custom element tag") => {
2557
2557
  if (!e || typeof e != "string") throw new Error(`Invalid ${t}: expected a non-empty string`);
2558
2558
  const r = e.trim();
2559
2559
  if (!r) throw new Error(`Invalid ${t}: tag is empty`);
2560
2560
  if (r !== r.toLowerCase()) throw new Error(`Invalid ${t} "${r}": custom element names must be lowercase`);
2561
2561
  if (!r.includes("-")) throw new Error(`Invalid ${t} "${r}": custom element names must include a hyphen`);
2562
- if (qs.has(r)) throw new Error(`Invalid ${t} "${r}": this name is reserved by the HTML spec`);
2563
- if (!Ks.test(r)) throw new Error(`Invalid ${t} "${r}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
2562
+ if (Xs.has(r)) throw new Error(`Invalid ${t} "${r}": this name is reserved by the HTML spec`);
2563
+ if (!Qs.test(r)) throw new Error(`Invalid ${t} "${r}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
2564
2564
  return r;
2565
- }, zi = {
2565
+ }, qi = {
2566
2566
  calculator: "pie-tool-calculator",
2567
2567
  textToSpeech: "pie-tool-text-to-speech",
2568
2568
  ruler: "pie-tool-ruler",
@@ -2575,22 +2575,22 @@ var js = class {
2575
2575
  annotationToolbar: "pie-tool-annotation-toolbar",
2576
2576
  graph: "pie-tool-graph",
2577
2577
  periodicTable: "pie-tool-periodic-table"
2578
- }, Ys = (e, t) => Us(t?.toolTagMap?.[e] ?? zi[e] ?? e, `tool component tag for "${e}"`), Xs = (e) => document.createElement(e), ne = (e, t, r, i) => {
2579
- const n = Ys(e, i), s = i?.toolComponentFactories?.[e] ?? i?.toolComponentFactory;
2578
+ }, Zs = (e, t) => Js(t?.toolTagMap?.[e] ?? qi[e] ?? e, `tool component tag for "${e}"`), eo = (e) => document.createElement(e), ne = (e, t, r, i) => {
2579
+ const n = Zs(e, i), s = i?.toolComponentFactories?.[e] ?? i?.toolComponentFactory;
2580
2580
  return s ? s({
2581
2581
  toolId: e,
2582
2582
  tagName: n,
2583
2583
  context: t,
2584
2584
  toolbarContext: r
2585
- }) : Xs(n);
2586
- }, Qs = {
2585
+ }) : eo(n);
2586
+ }, to = {
2587
2587
  toolId: "calculator",
2588
2588
  name: "Calculator",
2589
2589
  description: "Multi-type calculator (basic, scientific, graphing)",
2590
2590
  icon: "calculator",
2591
2591
  provider: {
2592
2592
  getProviderId: (e) => typeof e?.provider?.id == "string" && e.provider.id.length > 0 ? e.provider.id : "calculator-desmos",
2593
- createProvider: () => new js(),
2593
+ createProvider: () => new Ws(),
2594
2594
  getInitConfig: (e) => e?.provider?.init ?? {},
2595
2595
  getAuthFetcher: (e) => {
2596
2596
  const t = e?.provider?.runtime?.authFetcher;
@@ -2613,10 +2613,10 @@ var js = class {
2613
2613
  "scientificCalculator"
2614
2614
  ],
2615
2615
  isVisibleInContext(e) {
2616
- return Mt(e);
2616
+ return Pt(e);
2617
2617
  },
2618
2618
  renderToolbar(e, t) {
2619
- const r = ar(this.toolId, t.scope.level, t.scope.scopeId), i = t.componentOverrides, n = ne(this.toolId, e, t, i);
2619
+ const r = cr(this.toolId, t.scope.level, t.scope.scopeId), i = t.componentOverrides, n = ne(this.toolId, e, t, i);
2620
2620
  n.setAttribute("tool-id", r), n.toolkitCoordinator = t.toolkitCoordinator;
2621
2621
  const s = {
2622
2622
  toolId: this.toolId,
@@ -2656,37 +2656,55 @@ var js = class {
2656
2656
  }
2657
2657
  };
2658
2658
  }
2659
- }, Hr = (e) => e && typeof e == "object" ? e : {}, Js = (e) => e === "polly" || e === "google" || e === "server", V = (e, t) => e === void 0 ? t : e, Zs = (e) => {
2660
- const t = e.backend || "browser";
2661
- if (!Js(t)) return e;
2662
- const r = {
2659
+ }, ro = /* @__PURE__ */ new Set([
2660
+ "reserved-row",
2661
+ "expanding-row",
2662
+ "floating-overlay",
2663
+ "left-aligned"
2664
+ ]), Dr = (e) => e && typeof e == "object" ? e : {}, io = (e) => e === "polly" || e === "google" || e === "server", j = (e, t) => e === void 0 ? t : e, Ct = (e, t = "left-aligned") => typeof e == "string" && ro.has(e) ? e : t, Fr = Object.freeze([0.8, 1.25]), Bt = (e) => {
2665
+ if (!Array.isArray(e)) return [...Fr];
2666
+ if (e.length === 0) return [];
2667
+ const t = /* @__PURE__ */ new Set();
2668
+ for (const r of e) {
2669
+ if (typeof r != "number" || !Number.isFinite(r) || r <= 0) continue;
2670
+ const i = Math.round(r * 100) / 100;
2671
+ i !== 1 && t.add(i);
2672
+ }
2673
+ return t.size ? Array.from(t) : [...Fr];
2674
+ }, no = (e) => {
2675
+ const t = {
2663
2676
  ...e,
2664
- apiEndpoint: V(e.apiEndpoint, "/api/tts"),
2665
- transportMode: V(e.transportMode, "pie"),
2666
- endpointValidationMode: V(e.endpointValidationMode, "voices"),
2667
- validateEndpoint: V(e.validateEndpoint, !0),
2668
- includeAuthOnAssetFetch: V(e.includeAuthOnAssetFetch, !1),
2669
- rate: V(e.rate, 1),
2670
- language: V(e.language, "en-US")
2677
+ layoutMode: Ct(e.layoutMode)
2678
+ }, r = e.backend || "browser";
2679
+ if (!io(r)) return t;
2680
+ const i = {
2681
+ ...t,
2682
+ apiEndpoint: j(t.apiEndpoint, "/api/tts"),
2683
+ transportMode: j(t.transportMode, "pie"),
2684
+ endpointValidationMode: j(t.endpointValidationMode, "voices"),
2685
+ validateEndpoint: j(t.validateEndpoint, !0),
2686
+ includeAuthOnAssetFetch: j(t.includeAuthOnAssetFetch, !1),
2687
+ rate: j(t.rate, 1),
2688
+ language: j(t.language, "en-US")
2671
2689
  };
2672
- return t === "polly" ? {
2673
- ...r,
2674
- defaultVoice: V(r.defaultVoice, "Joanna"),
2675
- engine: V(r.engine, "neural"),
2676
- format: V(r.format, "mp3"),
2677
- speechMarksMode: V(r.speechMarksMode, "word+sentence")
2678
- } : t === "google" ? {
2679
- ...r,
2680
- defaultVoice: V(r.defaultVoice, "en-US-Wavenet-A")
2681
- } : r;
2682
- }, Ft = (e) => {
2683
- const t = Hr(e), r = Hr(e?.settings);
2684
- return Zs({
2690
+ return r === "polly" ? {
2691
+ ...i,
2692
+ defaultVoice: j(i.defaultVoice, "Joanna"),
2693
+ engine: j(i.engine, "neural"),
2694
+ format: j(i.format, "mp3"),
2695
+ speechMarksMode: j(i.speechMarksMode, "word+sentence")
2696
+ } : r === "google" ? {
2697
+ ...i,
2698
+ defaultVoice: j(i.defaultVoice, "en-US-Wavenet-A")
2699
+ } : i;
2700
+ }, Vt = (e) => {
2701
+ const t = Dr(e), r = Dr(e?.settings);
2702
+ return no({
2685
2703
  ...t,
2686
2704
  ...r
2687
2705
  });
2688
- }, Ut = (e) => e.backend || "browser", Gi = (e, t) => t === "polly" || t === "google" ? t : e.serverProvider || e.provider, Wi = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), eo = (e) => {
2689
- const t = Ut(e), r = Gi(e, t), i = Wi(e, r);
2706
+ }, Xt = (e) => e.backend || "browser", Ki = (e, t) => t === "polly" || t === "google" ? t : e.serverProvider || e.provider, Ui = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), so = (e) => {
2707
+ const t = Xt(e), r = Ki(e, t), i = Ui(e, r);
2690
2708
  return {
2691
2709
  voice: e.defaultVoice,
2692
2710
  rate: e.rate,
@@ -2710,45 +2728,63 @@ var js = class {
2710
2728
  includeAuthOnAssetFetch: e.includeAuthOnAssetFetch,
2711
2729
  validateEndpoint: e.validateEndpoint
2712
2730
  };
2713
- }, Xe = /* @__PURE__ */ new Map(), to = "__pieToolElementUnmount", Nr = Object.freeze([1.5, 2]), ro = (e) => {
2714
- if (!Array.isArray(e)) return [...Nr];
2715
- if (e.length === 0) return [];
2716
- const t = /* @__PURE__ */ new Set();
2717
- for (const r of e) {
2718
- if (typeof r != "number" || !Number.isFinite(r) || r <= 0) continue;
2719
- const i = Math.round(r * 100) / 100;
2720
- i !== 1 && t.add(i);
2731
+ }, Yi = (e) => Ct(e.layoutMode), oo = (e) => {
2732
+ switch (Yi(e)) {
2733
+ case "reserved-row":
2734
+ return {
2735
+ mount: "before-buttons",
2736
+ controlsRow: {
2737
+ reserveSpace: !0,
2738
+ expandWhenToolActive: !1
2739
+ }
2740
+ };
2741
+ case "expanding-row":
2742
+ return {
2743
+ mount: "before-buttons",
2744
+ controlsRow: {
2745
+ reserveSpace: !1,
2746
+ expandWhenToolActive: !0
2747
+ }
2748
+ };
2749
+ default:
2750
+ return {
2751
+ mount: "before-buttons",
2752
+ controlsRow: {
2753
+ reserveSpace: !1,
2754
+ expandWhenToolActive: !1
2755
+ }
2756
+ };
2721
2757
  }
2722
- return t.size ? Array.from(t) : [...Nr];
2723
- }, io = {
2758
+ }, Xe = /* @__PURE__ */ new Map(), ao = "__pieToolElementUnmount", Br = "pie-tool-active-change", lo = {
2724
2759
  toolId: "textToSpeech",
2725
2760
  name: "Text to Speech",
2726
2761
  description: "Read content aloud",
2727
2762
  icon: "volume-up",
2728
2763
  provider: {
2729
2764
  getProviderId: () => "tts",
2730
- createProvider: (e) => new Ws(Ut(Ft(e))),
2765
+ createProvider: (e) => new Ys(Xt(Vt(e))),
2731
2766
  getInitConfig: (e) => {
2732
- const t = Ft(e), r = Ut(t), i = Gi(t, r);
2767
+ const t = Vt(e), r = Xt(t), i = Ki(t, r);
2733
2768
  return {
2734
2769
  backend: r,
2735
2770
  serverProvider: i,
2736
- transportMode: Wi(t, i),
2737
- ...eo(t)
2771
+ transportMode: Ui(t, i),
2772
+ ...so(t)
2738
2773
  };
2739
2774
  },
2740
2775
  getAuthFetcher: (e) => {
2741
2776
  const t = e?.provider?.runtime?.authFetcher;
2742
2777
  return typeof t == "function" ? t : void 0;
2743
2778
  },
2779
+ sanitizeConfig: (e) => {
2780
+ const t = e.settings && typeof e.settings == "object" ? { ...e.settings } : void 0;
2781
+ t && "layoutMode" in t && (t.layoutMode = Ct(t.layoutMode)), t && "speedOptions" in t && (t.speedOptions = Bt(t.speedOptions));
2782
+ const r = { ...e };
2783
+ return "layoutMode" in r && (r.layoutMode = Ct(r.layoutMode)), "speedOptions" in r && (r.speedOptions = Bt(r.speedOptions)), t && (r.settings = t), r;
2784
+ },
2744
2785
  lazy: !0
2745
2786
  },
2746
- supportedLevels: [
2747
- "section",
2748
- "item",
2749
- "passage",
2750
- "rubric"
2751
- ],
2787
+ supportedLevels: ["item", "passage"],
2752
2788
  pnpSupportIds: [
2753
2789
  "textToSpeech",
2754
2790
  "readAloud",
@@ -2756,34 +2792,47 @@ var js = class {
2756
2792
  "speechOutput"
2757
2793
  ],
2758
2794
  isVisibleInContext(e) {
2759
- return Pt(e);
2795
+ return xt(e);
2760
2796
  },
2761
2797
  renderToolbar(e, t) {
2762
- const r = () => ro(Ft(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0).speedOptions), i = ar(this.toolId, t.scope.level, t.scope.scopeId), n = () => {
2763
- const o = t.ui?.size;
2764
- return o === "sm" || o === "lg" ? o : "md";
2765
- }, s = () => {
2766
- let o = Xe.get(i);
2767
- return o && typeof o.isConnected == "boolean" && !o.isConnected && (Xe.delete(i), o = void 0), o || (o = document.createElement("pie-tool-tts-inline"), o[to] = () => {
2768
- Xe.get(i) === o && Xe.delete(i);
2769
- }, Xe.set(i, o)), o.setAttribute("tool-id", i), o.setAttribute("catalog-id", t.catalogId || t.itemId), o.setAttribute("language", t.language || "en-US"), o.setAttribute("size", n()), o.speedOptions = r(), o;
2770
- };
2798
+ const r = () => Vt(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), i = () => Bt(r().speedOptions), n = () => Yi(r()), s = () => oo(r()), o = cr(this.toolId, t.scope.level, t.scope.scopeId), a = () => {
2799
+ const f = t.ui?.size;
2800
+ return f === "sm" || f === "lg" ? f : "md";
2801
+ }, c = () => {
2802
+ let f = Xe.get(o);
2803
+ return f && typeof f.isConnected == "boolean" && !f.isConnected && (Xe.delete(o), f = void 0), f || (f = document.createElement("pie-tool-tts-inline"), f[ao] = () => {
2804
+ Xe.get(o) === f && Xe.delete(o);
2805
+ }, Xe.set(o, f)), f.setAttribute("tool-id", o), f.setAttribute("catalog-id", t.catalogId || t.itemId), f.setAttribute("language", t.language || "en-US"), f.setAttribute("size", a()), f.setAttribute("layout-mode", n()), f.speedOptions = i(), f;
2806
+ }, p = s();
2771
2807
  return {
2772
2808
  toolId: this.toolId,
2773
2809
  button: null,
2774
2810
  elements: [{
2775
- element: s(),
2776
- mount: "before-buttons"
2811
+ element: c(),
2812
+ mount: p.mount,
2813
+ layoutHints: { controlsRow: {
2814
+ reserveSpace: p.controlsRow.reserveSpace,
2815
+ showWhenToolActive: p.controlsRow.expandWhenToolActive
2816
+ } }
2777
2817
  }],
2818
+ subscribeActive: (f) => {
2819
+ const m = c(), h = (v) => {
2820
+ const d = v.detail;
2821
+ f(d?.active === !0);
2822
+ };
2823
+ return m.addEventListener(Br, h), () => {
2824
+ m.removeEventListener(Br, h);
2825
+ };
2826
+ },
2778
2827
  sync: () => {
2779
- const o = s();
2780
- o.setAttribute("tool-id", i), o.setAttribute("catalog-id", t.catalogId || t.itemId), o.setAttribute("language", t.language || "en-US"), o.setAttribute("size", n()), o.speedOptions = r();
2828
+ const f = c();
2829
+ f.setAttribute("tool-id", o), f.setAttribute("catalog-id", t.catalogId || t.itemId), f.setAttribute("language", t.language || "en-US"), f.setAttribute("size", a()), f.setAttribute("layout-mode", n()), f.speedOptions = i();
2781
2830
  }
2782
2831
  };
2783
2832
  }
2784
2833
  };
2785
2834
  function ue(e, t) {
2786
- const r = ar(e, t.scope.level, t.scope.scopeId);
2835
+ const r = cr(e, t.scope.level, t.scope.scopeId);
2787
2836
  return {
2788
2837
  fullToolId: r,
2789
2838
  isActive: () => t.isToolVisible(r),
@@ -2797,18 +2846,22 @@ function de(e) {
2797
2846
  const t = e.isActive();
2798
2847
  e.button.active = t, e.overlay.visible = t, e.onActiveChange?.(t);
2799
2848
  }
2800
- function lr(e, t) {
2849
+ function ur(e, t) {
2801
2850
  e.setAttribute("data-pie-tool-surface", t);
2802
2851
  }
2803
- var no = {
2852
+ var co = {
2804
2853
  toolId: "ruler",
2805
2854
  name: "Ruler",
2806
2855
  description: "On-screen ruler for measurements",
2807
2856
  icon: "ruler",
2808
- supportedLevels: ["item", "element"],
2857
+ supportedLevels: [
2858
+ "section",
2859
+ "item",
2860
+ "element"
2861
+ ],
2809
2862
  pnpSupportIds: ["ruler", "measurement"],
2810
2863
  isVisibleInContext(e) {
2811
- return Mt(e);
2864
+ return Pt(e);
2812
2865
  },
2813
2866
  renderToolbar(e, t) {
2814
2867
  const r = ue(this.toolId, t), i = {
@@ -2821,7 +2874,7 @@ var no = {
2821
2874
  onClick: () => t.toggleTool(this.toolId),
2822
2875
  active: r.isActive()
2823
2876
  }, n = t.componentOverrides ?? {}, s = ne(this.toolId, e, t, n);
2824
- return s.setAttribute("tool-id", r.fullToolId), lr(s, "frameless"), {
2877
+ return s.setAttribute("tool-id", r.fullToolId), ur(s, "frameless"), {
2825
2878
  toolId: this.toolId,
2826
2879
  button: i,
2827
2880
  elements: [{
@@ -2838,15 +2891,19 @@ var no = {
2838
2891
  subscribeActive: r.subscribeActive
2839
2892
  };
2840
2893
  }
2841
- }, so = {
2894
+ }, uo = {
2842
2895
  toolId: "protractor",
2843
2896
  name: "Protractor",
2844
2897
  description: "On-screen protractor for angle measurements",
2845
2898
  icon: "protractor",
2846
- supportedLevels: ["item", "element"],
2899
+ supportedLevels: [
2900
+ "section",
2901
+ "item",
2902
+ "element"
2903
+ ],
2847
2904
  pnpSupportIds: ["protractor", "angleMeasurement"],
2848
2905
  isVisibleInContext(e) {
2849
- return Mt(e);
2906
+ return Pt(e);
2850
2907
  },
2851
2908
  renderToolbar(e, t) {
2852
2909
  const r = ue(this.toolId, t), i = {
@@ -2859,7 +2916,7 @@ var no = {
2859
2916
  onClick: () => t.toggleTool(this.toolId),
2860
2917
  active: r.isActive()
2861
2918
  }, n = t.componentOverrides ?? {}, s = ne(this.toolId, e, t, n);
2862
- return s.setAttribute("tool-id", r.fullToolId), lr(s, "frameless"), {
2919
+ return s.setAttribute("tool-id", r.fullToolId), ur(s, "frameless"), {
2863
2920
  toolId: this.toolId,
2864
2921
  button: i,
2865
2922
  elements: [{
@@ -2876,7 +2933,7 @@ var no = {
2876
2933
  subscribeActive: r.subscribeActive
2877
2934
  };
2878
2935
  }
2879
- }, oo = {
2936
+ }, fo = {
2880
2937
  toolId: "answerEliminator",
2881
2938
  name: "Answer Eliminator",
2882
2939
  description: "Strike through answer choices",
@@ -2889,7 +2946,7 @@ var no = {
2889
2946
  "choiceMasking"
2890
2947
  ],
2891
2948
  isVisibleInContext(e) {
2892
- return Hs(e);
2949
+ return Bs(e);
2893
2950
  },
2894
2951
  renderToolbar(e, t) {
2895
2952
  const r = ue(this.toolId, t), i = t.componentOverrides ?? {}, n = ne(this.toolId, e, t, i);
@@ -2923,7 +2980,7 @@ var no = {
2923
2980
  subscribeActive: r.subscribeActive
2924
2981
  };
2925
2982
  }
2926
- }, ao = {
2983
+ }, ho = {
2927
2984
  toolId: "highlighter",
2928
2985
  name: "Highlighter",
2929
2986
  description: "Highlight text",
@@ -2941,7 +2998,7 @@ var no = {
2941
2998
  "annotation"
2942
2999
  ],
2943
3000
  isVisibleInContext(e) {
2944
- return Pt(e);
3001
+ return xt(e);
2945
3002
  },
2946
3003
  renderToolbar(e, t) {
2947
3004
  const r = ue(this.toolId, t), i = {
@@ -2974,12 +3031,13 @@ var no = {
2974
3031
  subscribeActive: r.subscribeActive
2975
3032
  };
2976
3033
  }
2977
- }, lo = {
3034
+ }, po = {
2978
3035
  toolId: "lineReader",
2979
3036
  name: "Line Reader",
2980
3037
  description: "Reading guide overlay",
2981
3038
  icon: "bars-3",
2982
3039
  supportedLevels: [
3040
+ "section",
2983
3041
  "passage",
2984
3042
  "rubric",
2985
3043
  "item"
@@ -2992,7 +3050,7 @@ var no = {
2992
3050
  "trackingGuide"
2993
3051
  ],
2994
3052
  isVisibleInContext(e) {
2995
- return Pt(e);
3053
+ return xt(e);
2996
3054
  },
2997
3055
  renderToolbar(e, t) {
2998
3056
  const r = ue(this.toolId, t), i = {
@@ -3005,7 +3063,7 @@ var no = {
3005
3063
  onClick: () => t.toggleTool(this.toolId),
3006
3064
  active: r.isActive()
3007
3065
  }, n = t.componentOverrides ?? {}, s = ne(this.toolId, e, t, n);
3008
- return s.setAttribute("tool-id", r.fullToolId), lr(s, "frameless"), {
3066
+ return s.setAttribute("tool-id", r.fullToolId), ur(s, "frameless"), {
3009
3067
  toolId: this.toolId,
3010
3068
  button: i,
3011
3069
  elements: [{
@@ -3022,7 +3080,7 @@ var no = {
3022
3080
  subscribeActive: r.subscribeActive
3023
3081
  };
3024
3082
  }
3025
- }, co = {
3083
+ }, vo = {
3026
3084
  toolId: "theme",
3027
3085
  name: "Theme",
3028
3086
  description: "Accessible themes and contrast",
@@ -3078,7 +3136,7 @@ var no = {
3078
3136
  subscribeActive: r.subscribeActive
3079
3137
  };
3080
3138
  }
3081
- }, uo = {
3139
+ }, mo = {
3082
3140
  toolId: "annotationToolbar",
3083
3141
  name: "Highlighter",
3084
3142
  description: "Highlight and annotate text",
@@ -3099,7 +3157,7 @@ var no = {
3099
3157
  "annotation"
3100
3158
  ],
3101
3159
  isVisibleInContext(e) {
3102
- return Pt(e);
3160
+ return xt(e);
3103
3161
  },
3104
3162
  renderToolbar(e, t) {
3105
3163
  const r = ue(this.toolId, t), i = {
@@ -3129,7 +3187,7 @@ var no = {
3129
3187
  subscribeActive: r.subscribeActive
3130
3188
  };
3131
3189
  }
3132
- }, fo = {
3190
+ }, go = {
3133
3191
  toolId: "graph",
3134
3192
  name: "Graph",
3135
3193
  description: "Graphing calculator and coordinate plane",
@@ -3142,7 +3200,7 @@ var no = {
3142
3200
  "graphingTool"
3143
3201
  ],
3144
3202
  isVisibleInContext(e) {
3145
- return Mt(e);
3203
+ return Pt(e);
3146
3204
  },
3147
3205
  renderToolbar(e, t) {
3148
3206
  const r = ue(this.toolId, t), i = {
@@ -3182,7 +3240,7 @@ var no = {
3182
3240
  subscribeActive: r.subscribeActive
3183
3241
  };
3184
3242
  }
3185
- }, ho = {
3243
+ }, _o = {
3186
3244
  toolId: "periodicTable",
3187
3245
  name: "Periodic Table",
3188
3246
  description: "Chemistry periodic table reference",
@@ -3194,7 +3252,7 @@ var no = {
3194
3252
  "elementReference"
3195
3253
  ],
3196
3254
  isVisibleInContext(e) {
3197
- return Ns(e);
3255
+ return Vs(e);
3198
3256
  },
3199
3257
  renderToolbar(e, t) {
3200
3258
  const r = ue(this.toolId, t), i = {
@@ -3234,54 +3292,54 @@ var no = {
3234
3292
  subscribeActive: r.subscribeActive
3235
3293
  };
3236
3294
  }
3237
- }, po = [
3238
- Qs,
3239
- io,
3240
- no,
3241
- so,
3242
- oo,
3243
- ao,
3295
+ }, yo = [
3296
+ to,
3244
3297
  lo,
3245
3298
  co,
3246
3299
  uo,
3247
3300
  fo,
3248
- ho
3301
+ ho,
3302
+ po,
3303
+ vo,
3304
+ mo,
3305
+ go,
3306
+ _o
3249
3307
  ];
3250
- function vo(e = {}) {
3251
- const t = new Ms(), r = {
3308
+ function bo(e = {}) {
3309
+ const t = new Ns(), r = {
3252
3310
  toolTagMap: {
3253
- ...zi,
3311
+ ...qi,
3254
3312
  ...e.toolTagMap || {}
3255
3313
  },
3256
3314
  toolComponentFactory: e.toolComponentFactory,
3257
3315
  toolComponentFactories: e.toolComponentFactories
3258
3316
  }, i = (n) => e.overrides?.[n.toolId] || n;
3259
- return e.includePackagedTools && mo(t, {
3317
+ return e.includePackagedTools && wo(t, {
3260
3318
  toolIds: e.toolIds,
3261
3319
  applyOverrides: i
3262
3320
  }), e.toolModuleLoaders && Object.keys(e.toolModuleLoaders).length > 0 && t.setToolModuleLoaders(e.toolModuleLoaders), t.setComponentOverrides(r), t;
3263
3321
  }
3264
- function mo(e, t = {}) {
3322
+ function wo(e, t = {}) {
3265
3323
  const r = t.toolIds && t.toolIds.length > 0 ? new Set(t.toolIds) : null, i = t.applyOverrides || ((n) => n);
3266
- for (const n of po)
3324
+ for (const n of yo)
3267
3325
  r && !r.has(n.toolId) || e.register(i(n));
3268
3326
  }
3269
- function go(e = {}) {
3270
- return vo({
3327
+ function To(e = {}) {
3328
+ return bo({
3271
3329
  ...e,
3272
3330
  includePackagedTools: !0
3273
3331
  });
3274
3332
  }
3275
- function _o() {
3276
- const e = go(), t = /* @__PURE__ */ new Set();
3333
+ function Ao() {
3334
+ const e = To(), t = /* @__PURE__ */ new Set();
3277
3335
  for (const r of e.getAllTools()) for (const i of r.pnpSupportIds || []) t.add(i);
3278
3336
  return [...t].sort();
3279
3337
  }
3280
- var yo = _o(), Vo = {
3281
- supports: [...yo],
3338
+ var So = Ao(), Ko = {
3339
+ supports: [...So],
3282
3340
  prohibitedSupports: [],
3283
3341
  activateAtInit: []
3284
- }, bo = {
3342
+ }, Io = {
3285
3343
  visual: {
3286
3344
  magnification: "magnification",
3287
3345
  screenMagnifier: "screenMagnifier",
@@ -3394,15 +3452,15 @@ var yo = _o(), Vo = {
3394
3452
  itemGlossary: "itemGlossary",
3395
3453
  tutorialAvailable: "tutorialAvailable"
3396
3454
  }
3397
- }, zo = Object.values(bo).flatMap((e) => Object.values(e)), Go = Bi("ToolCoordinator"), Yt;
3455
+ }, Uo = Object.values(Io).flatMap((e) => Object.values(e)), Yo = zi("ToolCoordinator"), Qt;
3398
3456
  (function(e) {
3399
3457
  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";
3400
- })(Yt || (Yt = {}));
3401
- var Dr;
3458
+ })(Qt || (Qt = {}));
3459
+ var Vr;
3402
3460
  (function(e) {
3403
3461
  e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
3404
- })(Dr || (Dr = {}));
3405
- var qi, ye = class K {
3462
+ })(Vr || (Vr = {}));
3463
+ var Xi, ye = class K {
3406
3464
  constructor() {
3407
3465
  u(this, "elementType", "multiple-choice"), u(this, "priority", 100);
3408
3466
  }
@@ -3451,13 +3509,13 @@ var qi, ye = class K {
3451
3509
  for (const r of t.querySelectorAll(".feedback-tick")) r.setAttribute(K.FEEDBACK_HOOK_ATTR, "true");
3452
3510
  }
3453
3511
  };
3454
- qi = ye;
3512
+ Xi = ye;
3455
3513
  u(ye, "CHOICE_HOOK_ATTR", "data-pie-answer-eliminator-choice");
3456
3514
  u(ye, "LABEL_HOOK_ATTR", "data-pie-answer-eliminator-label");
3457
3515
  u(ye, "ROOT_HOOK_ATTR", "data-pie-answer-eliminator-root");
3458
3516
  u(ye, "FEEDBACK_HOOK_ATTR", "data-pie-answer-eliminator-feedback-tick");
3459
- u(ye, "CHOICE_SELECTOR", `[${qi.CHOICE_HOOK_ATTR}="true"], .corespring-checkbox, .corespring-radio-button`);
3460
- var wo = class {
3517
+ u(ye, "CHOICE_SELECTOR", `[${Xi.CHOICE_HOOK_ATTR}="true"], .corespring-checkbox, .corespring-radio-button`);
3518
+ var Eo = class {
3461
3519
  constructor() {
3462
3520
  u(this, "elementType", "ebsr"), u(this, "priority", 95), u(this, "mcAdapter", new ye());
3463
3521
  }
@@ -3483,7 +3541,7 @@ var wo = class {
3483
3541
  getButtonContainer(e) {
3484
3542
  return this.mcAdapter.getButtonContainer(e);
3485
3543
  }
3486
- }, To = class {
3544
+ }, ko = class {
3487
3545
  constructor() {
3488
3546
  u(this, "elementType", "inline-dropdown"), u(this, "priority", 90);
3489
3547
  }
@@ -3509,12 +3567,12 @@ var wo = class {
3509
3567
  getButtonContainer(e) {
3510
3568
  return e;
3511
3569
  }
3512
- }, Ao = class {
3570
+ }, Co = class {
3513
3571
  constructor() {
3514
3572
  u(this, "adapters", void 0), this.adapters = [
3515
3573
  new ye(),
3516
- new wo(),
3517
- new To()
3574
+ new Eo(),
3575
+ new ko()
3518
3576
  ].sort((e, t) => t.priority - e.priority);
3519
3577
  }
3520
3578
  findAdapter(e) {
@@ -3725,9 +3783,9 @@ u(fe, "CHOICE_HOOK_ATTR", "data-pie-answer-eliminator-choice");
3725
3783
  u(fe, "LABEL_HOOK_ATTR", "data-pie-answer-eliminator-label");
3726
3784
  u(fe, "ELIMINATED_ATTR", "data-pie-answer-eliminated");
3727
3785
  u(fe, "ELIMINATED_ID_ATTR", "data-pie-answer-eliminated-id");
3728
- var cr = class Qe {
3786
+ var dr = class Qe {
3729
3787
  constructor(t = "strikethrough", r = "right") {
3730
- u(this, "registry", void 0), u(this, "strategy", void 0), u(this, "eliminatedChoices", /* @__PURE__ */ new Set()), u(this, "choiceElements", /* @__PURE__ */ new Map()), u(this, "choiceButtons", /* @__PURE__ */ new Map()), u(this, "choiceAdapters", /* @__PURE__ */ new Map()), u(this, "buttonAlignment", "right"), u(this, "shouldRestoreState", !0), u(this, "storeIntegration", null), this.registry = new Ao(), this.strategy = this.createStrategy(t), this.strategy.initialize(), this.buttonAlignment = r;
3788
+ u(this, "registry", void 0), u(this, "strategy", void 0), u(this, "eliminatedChoices", /* @__PURE__ */ new Set()), u(this, "choiceElements", /* @__PURE__ */ new Map()), u(this, "choiceButtons", /* @__PURE__ */ new Map()), u(this, "choiceAdapters", /* @__PURE__ */ new Map()), u(this, "buttonAlignment", "right"), u(this, "shouldRestoreState", !0), u(this, "storeIntegration", null), this.registry = new Co(), this.strategy = this.createStrategy(t), this.strategy.initialize(), this.buttonAlignment = r;
3731
3789
  }
3732
3790
  createStrategy(t) {
3733
3791
  switch (t) {
@@ -3874,36 +3932,36 @@ var cr = class Qe {
3874
3932
  this.cleanupButtons(), this.strategy.destroy();
3875
3933
  }
3876
3934
  };
3877
- u(cr, "TOGGLE_CLASS", "pie-answer-eliminator-toggle");
3878
- u(cr, "TOGGLE_ACTIVE_CLASS", "pie-answer-eliminator-toggle--active");
3879
- var So = /* @__PURE__ */ ls('<div style="display: none;" aria-hidden="true"></div>');
3880
- function Io(e, t) {
3881
- Ur(t, !0);
3882
- let r = he(t, "visible", 7, !1), i = he(t, "toolId", 7, "answerEliminator"), n = he(t, "strategy", 7, "strikethrough"), s = he(t, "alwaysOn", 7, !1), o = he(t, "buttonAlignment", 7, "right"), a = he(t, "scopeElement", 7, null), c = he(t, "elementToolStateStore", 7, null), h = he(t, "globalElementId", 7, ""), _ = /* @__PURE__ */ P(null), v = /* @__PURE__ */ P(null), f = /* @__PURE__ */ P(null);
3883
- const p = /* @__PURE__ */ Ar(() => m(v)?.toolCoordinator);
3884
- let d = /* @__PURE__ */ P(null), y = /* @__PURE__ */ P(null), g = /* @__PURE__ */ P(null), S = /* @__PURE__ */ P(null), B = /* @__PURE__ */ Ar(() => s() || r());
3935
+ u(dr, "TOGGLE_CLASS", "pie-answer-eliminator-toggle");
3936
+ u(dr, "TOGGLE_ACTIVE_CLASS", "pie-answer-eliminator-toggle--active");
3937
+ var $o = /* @__PURE__ */ fs('<div style="display: none;" aria-hidden="true"></div>');
3938
+ function Oo(e, t) {
3939
+ Qr(t, !0);
3940
+ let r = he(t, "visible", 7, !1), i = he(t, "toolId", 7, "answerEliminator"), n = he(t, "strategy", 7, "strikethrough"), s = he(t, "alwaysOn", 7, !1), o = he(t, "buttonAlignment", 7, "right"), a = he(t, "scopeElement", 7, null), c = he(t, "elementToolStateStore", 7, null), p = he(t, "globalElementId", 7, ""), f = /* @__PURE__ */ P(null), m = /* @__PURE__ */ P(null), h = /* @__PURE__ */ P(null);
3941
+ const v = /* @__PURE__ */ Ir(() => g(m)?.toolCoordinator);
3942
+ let d = /* @__PURE__ */ P(null), y = /* @__PURE__ */ P(null), _ = /* @__PURE__ */ P(null), S = /* @__PURE__ */ P(null), B = /* @__PURE__ */ Ir(() => s() || r());
3885
3943
  Ae(() => {
3886
- if (m(_))
3887
- return $s(m(_), (I) => {
3888
- $(v, I, !0);
3944
+ if (g(f))
3945
+ return Ms(g(f), (I) => {
3946
+ $(m, I, !0);
3889
3947
  });
3890
3948
  }), Ae(() => {
3891
- if (m(_))
3892
- return Os(m(_), (I) => {
3893
- $(f, I, !0);
3949
+ if (g(f))
3950
+ return Ps(g(f), (I) => {
3951
+ $(h, I, !0);
3894
3952
  });
3895
3953
  });
3896
3954
  function k() {
3897
- return a() || m(f)?.scopeElement || null;
3955
+ return a() || g(h)?.scopeElement || null;
3898
3956
  }
3899
3957
  function q() {
3900
- if (!m(B) || !m(d)) return;
3958
+ if (!g(B) || !g(d)) return;
3901
3959
  const I = k();
3902
3960
  if (!I) {
3903
3961
  console.warn("[AnswerEliminator] Missing shell scope context for question root");
3904
3962
  return;
3905
3963
  }
3906
- m(d).initializeForQuestion(I);
3964
+ g(d).initializeForQuestion(I);
3907
3965
  }
3908
3966
  function be() {
3909
3967
  requestAnimationFrame(() => {
@@ -3913,22 +3971,22 @@ function Io(e, t) {
3913
3971
  });
3914
3972
  }
3915
3973
  Ae(() => {
3916
- !m(p) || !i() || (m(S) && m(g) && (m(S) !== m(p) || m(g) !== i()) && (m(S).unregisterTool(m(g)), $(S, null), $(g, null)), m(g) || (m(p).registerTool(i(), "Answer Eliminator", void 0, Yt.MODAL), $(S, m(p), !0), $(g, i())));
3974
+ !g(v) || !i() || (g(S) && g(_) && (g(S) !== g(v) || g(_) !== i()) && (g(S).unregisterTool(g(_)), $(S, null), $(_, null)), g(_) || (g(v).registerTool(i(), "Answer Eliminator", void 0, Qt.MODAL), $(S, g(v), !0), $(_, i())));
3917
3975
  }), Ae(() => {
3918
- m(d) && c() && h() && m(d).setStoreIntegration(c(), h());
3919
- }), vs(() => ($(d, new cr(n(), o()), !0), m(d) && c() && h() && m(d).setStoreIntegration(c(), h()), m(B) ? q() : m(d).cleanup(), () => {
3920
- m(d)?.destroy(), $(d, null), m(S) && m(g) && (m(S).unregisterTool(m(g)), $(S, null), $(g, null));
3976
+ g(d) && c() && p() && g(d).setStoreIntegration(c(), p());
3977
+ }), ys(() => ($(d, new dr(n(), o()), !0), g(d) && c() && p() && g(d).setStoreIntegration(c(), p()), g(B) ? q() : g(d).cleanup(), () => {
3978
+ g(d)?.destroy(), $(d, null), g(S) && g(_) && (g(S).unregisterTool(g(_)), $(S, null), $(_, null));
3921
3979
  })), Ae(() => {
3922
- const I = m(f)?.contextVersion ?? null;
3980
+ const I = g(h)?.contextVersion ?? null;
3923
3981
  if (I !== null) {
3924
- if (m(y) === null) {
3982
+ if (g(y) === null) {
3925
3983
  $(y, I, !0);
3926
3984
  return;
3927
3985
  }
3928
- I !== m(y) && ($(y, I, !0), be());
3986
+ I !== g(y) && ($(y, I, !0), be());
3929
3987
  }
3930
3988
  }), Ae(() => {
3931
- m(d) && (m(B) ? (m(d).enableStateRestoration(), q()) : m(d).cleanup());
3989
+ g(d) && (g(B) ? (g(d).enableStateRestoration(), q()) : g(d).cleanup());
3932
3990
  });
3933
3991
  var Ye = {
3934
3992
  get visible() {
@@ -3974,15 +4032,15 @@ function Io(e, t) {
3974
4032
  c(I), se();
3975
4033
  },
3976
4034
  get globalElementId() {
3977
- return h();
4035
+ return p();
3978
4036
  },
3979
4037
  set globalElementId(I = "") {
3980
- h(I), se();
4038
+ p(I), se();
3981
4039
  }
3982
- }, ur = So();
3983
- return _s(ur, (I) => $(_, I), () => m(_)), Mi(e, ur), Yr(Ye);
4040
+ }, fr = $o();
4041
+ return Ts(fr, (I) => $(f, I), () => g(f)), Hi(e, fr), Jr(Ye);
3984
4042
  }
3985
- customElements.define("pie-tool-answer-eliminator", Ts(Io, {
4043
+ customElements.define("pie-tool-answer-eliminator", Es(Oo, {
3986
4044
  visible: {
3987
4045
  attribute: "visible",
3988
4046
  type: "Boolean"
@@ -4008,5 +4066,5 @@ customElements.define("pie-tool-answer-eliminator", Ts(Io, {
4008
4066
  globalElementId: { type: "String" }
4009
4067
  }, [], [], { mode: "open" }));
4010
4068
  export {
4011
- Io as default
4069
+ Oo as default
4012
4070
  };