@pie-players/pie-section-player 0.3.40 → 0.3.42

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,14 +1,14 @@
1
1
  import { t as y } from "./defineProperty-CyepwRr5-3800a70a.js";
2
2
  if (typeof window < "u") {
3
- var Ln, On;
4
- ((Ln = (On = window).__svelte ?? (On.__svelte = {})).v ?? (Ln.v = /* @__PURE__ */ new Set())).add("5");
3
+ var Ln, Pn;
4
+ ((Ln = (Pn = window).__svelte ?? (Pn.__svelte = {})).v ?? (Ln.v = /* @__PURE__ */ new Set())).add("5");
5
5
  }
6
- var me = {}, N = /* @__PURE__ */ Symbol(), li = Array.isArray, xr = Array.prototype.indexOf, be = Array.prototype.includes, To = Array.from, ho = Object.keys, fo = Object.defineProperty, Qt = Object.getOwnPropertyDescriptor, Ar = Object.getOwnPropertyDescriptors, _r = Object.prototype, Cr = Array.prototype, ci = Object.getPrototypeOf, Pn = Object.isExtensible, Er = () => {
6
+ var me = {}, N = /* @__PURE__ */ Symbol(), ui = Array.isArray, _r = Array.prototype.indexOf, be = Array.prototype.includes, To = Array.from, ho = Object.keys, fo = Object.defineProperty, Qt = Object.getOwnPropertyDescriptor, Cr = Object.getOwnPropertyDescriptors, Er = Object.prototype, Mr = Array.prototype, di = Object.getPrototypeOf, On = Object.isExtensible, Lr = () => {
7
7
  };
8
- function Mr(t) {
8
+ function Pr(t) {
9
9
  for (var e = 0; e < t.length; e++) t[e]();
10
10
  }
11
- function ui() {
11
+ function hi() {
12
12
  var t, e;
13
13
  return {
14
14
  promise: new Promise((o, n) => {
@@ -18,59 +18,59 @@ function ui() {
18
18
  reject: e
19
19
  };
20
20
  }
21
- var nt = 1024, vt = 2048, ce = 4096, nn = 8192, Lr = 16384, rn = 32768, Rn = 1 << 25, sn = 65536, $e = 1 << 19, Or = 1 << 20, Pe = 1 << 25, ze = 65536, jn = 1 << 21, Pr = 1 << 22, po = 1 << 23, Re = /* @__PURE__ */ Symbol("$state"), di = /* @__PURE__ */ Symbol("legacy props"), Rr = /* @__PURE__ */ Symbol(""), Mt = new class extends Error {
21
+ var nt = 1024, vt = 2048, ce = 4096, nn = 8192, Or = 16384, rn = 32768, Rn = 1 << 25, sn = 65536, $e = 1 << 19, Rr = 1 << 20, Oe = 1 << 25, ze = 65536, jn = 1 << 21, jr = 1 << 22, po = 1 << 23, Re = /* @__PURE__ */ Symbol("$state"), fi = /* @__PURE__ */ Symbol("legacy props"), Nr = /* @__PURE__ */ Symbol(""), Mt = new class extends Error {
22
22
  constructor(...t) {
23
23
  super(...t), y(this, "name", "StaleReactionError"), y(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
24
24
  }
25
- }(), jr = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
26
- function Nr() {
25
+ }(), Wr = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
26
+ function Vr() {
27
27
  throw new Error("https://svelte.dev/e/async_derived_orphan");
28
28
  }
29
- function Wr(t, e, o) {
29
+ function zr(t, e, o) {
30
30
  throw new Error("https://svelte.dev/e/each_key_duplicate");
31
31
  }
32
- function Vr(t) {
32
+ function qr(t) {
33
33
  throw new Error("https://svelte.dev/e/effect_in_teardown");
34
34
  }
35
- function zr() {
35
+ function Dr() {
36
36
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
37
37
  }
38
- function qr(t) {
38
+ function Hr(t) {
39
39
  throw new Error("https://svelte.dev/e/effect_orphan");
40
40
  }
41
- function Dr() {
41
+ function Br() {
42
42
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
43
43
  }
44
- function Hr() {
44
+ function Fr() {
45
45
  throw new Error("https://svelte.dev/e/hydration_failed");
46
46
  }
47
- function Br(t) {
47
+ function Gr(t) {
48
48
  throw new Error("https://svelte.dev/e/props_invalid_value");
49
49
  }
50
- function Fr() {
50
+ function Ur() {
51
51
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
52
52
  }
53
- function Gr() {
53
+ function Jr() {
54
54
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
55
55
  }
56
- function Ur() {
56
+ function Kr() {
57
57
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
58
58
  }
59
- function Jr() {
59
+ function Zr() {
60
60
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
61
61
  }
62
- function Kr() {
62
+ function Yr() {
63
63
  console.warn("https://svelte.dev/e/derived_inert");
64
64
  }
65
65
  function Io(t) {
66
66
  console.warn("https://svelte.dev/e/hydration_mismatch");
67
67
  }
68
- function Zr() {
68
+ function Xr() {
69
69
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
70
70
  }
71
- var O = !1;
71
+ var P = !1;
72
72
  function Lt(t) {
73
- O = t;
73
+ P = t;
74
74
  }
75
75
  var L;
76
76
  function U(t) {
@@ -81,13 +81,13 @@ function ko() {
81
81
  return U(/* @__PURE__ */ St(L));
82
82
  }
83
83
  function Ue(t) {
84
- if (O) {
84
+ if (P) {
85
85
  if (/* @__PURE__ */ St(L) !== null) throw Io(), me;
86
86
  L = t;
87
87
  }
88
88
  }
89
- function Yr(t = 1) {
90
- if (O) {
89
+ function Qr(t = 1) {
90
+ if (P) {
91
91
  for (var e = t, o = L; e--; ) o = /* @__PURE__ */ St(o);
92
92
  L = o;
93
93
  }
@@ -105,24 +105,24 @@ function vo(t = !0) {
105
105
  t && o.remove(), o = i;
106
106
  }
107
107
  }
108
- function hi(t) {
108
+ function pi(t) {
109
109
  if (!t || t.nodeType !== 8) throw Io(), me;
110
110
  return t.data;
111
111
  }
112
- function fi(t) {
112
+ function vi(t) {
113
113
  return t === this.v;
114
114
  }
115
- function Xr(t, e) {
115
+ function ts(t, e) {
116
116
  return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
117
117
  }
118
- function pi(t) {
119
- return !Xr(t, this.v);
118
+ function gi(t) {
119
+ return !ts(t, this.v);
120
120
  }
121
- var Ot = !1, $o = !1, V = null;
121
+ var Pt = !1, $o = !1, V = null;
122
122
  function ye(t) {
123
123
  V = t;
124
124
  }
125
- function vi(t, e = !1, o) {
125
+ function mi(t, e = !1, o) {
126
126
  V = {
127
127
  p: V,
128
128
  i: !1,
@@ -138,11 +138,11 @@ function vi(t, e = !1, o) {
138
138
  } : null
139
139
  };
140
140
  }
141
- function gi(t) {
141
+ function bi(t) {
142
142
  var e = V, o = e.e;
143
143
  if (o !== null) {
144
144
  e.e = null;
145
- for (var n of o) Hi(n);
145
+ for (var n of o) Fi(n);
146
146
  }
147
147
  return t !== void 0 && (e.x = t), e.i = !0, V = e.p, t ?? {};
148
148
  }
@@ -150,23 +150,23 @@ function qe() {
150
150
  return !$o || V !== null && V.l === null;
151
151
  }
152
152
  var Zt = [];
153
- function mi() {
153
+ function yi() {
154
154
  var t = Zt;
155
- Zt = [], Mr(t);
155
+ Zt = [], Pr(t);
156
156
  }
157
157
  function se(t) {
158
158
  if (Zt.length === 0 && !je) {
159
159
  var e = Zt;
160
160
  queueMicrotask(() => {
161
- e === Zt && mi();
161
+ e === Zt && yi();
162
162
  });
163
163
  }
164
164
  Zt.push(t);
165
165
  }
166
- function Qr() {
167
- for (; Zt.length > 0; ) mi();
166
+ function es() {
167
+ for (; Zt.length > 0; ) yi();
168
168
  }
169
- function bi(t) {
169
+ function wi(t) {
170
170
  var e = S;
171
171
  if (e === null) return _.f |= po, t;
172
172
  if ((e.f & 32768) === 0 && (e.f & 4) === 0) throw t;
@@ -187,21 +187,21 @@ function Bt(t, e) {
187
187
  }
188
188
  throw t;
189
189
  }
190
- var ts = ~(vt | ce | nt);
190
+ var os = ~(vt | ce | nt);
191
191
  function j(t, e) {
192
- t.f = t.f & ts | e;
192
+ t.f = t.f & os | e;
193
193
  }
194
194
  function an(t) {
195
195
  (t.f & 512) !== 0 || t.deps === null ? j(t, nt) : j(t, ce);
196
196
  }
197
- function yi(t) {
198
- if (t !== null) for (const e of t) !(e.f & 2) || !(e.f & 65536) || (e.f ^= ze, yi(e.deps));
197
+ function Ti(t) {
198
+ if (t !== null) for (const e of t) !(e.f & 2) || !(e.f & 65536) || (e.f ^= ze, Ti(e.deps));
199
199
  }
200
- function wi(t, e, o) {
201
- (t.f & 2048) !== 0 ? e.add(t) : t.f & 4096 && o.add(t), yi(t.deps), j(t, nt);
200
+ function Ii(t, e, o) {
201
+ (t.f & 2048) !== 0 ? e.add(t) : t.f & 4096 && o.add(t), Ti(t.deps), j(t, nt);
202
202
  }
203
- var es = !1, Je = !1;
204
- function os(t) {
203
+ var ns = !1, Je = !1;
204
+ function is(t) {
205
205
  var e = Je;
206
206
  try {
207
207
  return Je = !1, [t(), Je];
@@ -209,14 +209,14 @@ function os(t) {
209
209
  Je = e;
210
210
  }
211
211
  }
212
- function Ti(t, e) {
212
+ function ki(t, e) {
213
213
  if (e.has(t)) throw new TypeError("Cannot initialize the same private elements twice on an object");
214
214
  }
215
215
  function ln(t, e) {
216
- Ti(t, e), e.add(t);
216
+ ki(t, e), e.add(t);
217
217
  }
218
218
  function I(t, e, o) {
219
- Ti(t, e), e.set(t, o);
219
+ ki(t, e), e.set(t, o);
220
220
  }
221
221
  function E(t, e, o) {
222
222
  if (typeof t == "function" ? t === e : t.has(e)) return arguments.length < 3 ? e : o;
@@ -228,9 +228,9 @@ function c(t, e) {
228
228
  function $(t, e, o) {
229
229
  return t.set(E(t, e), o), o;
230
230
  }
231
- var Ii, It = /* @__PURE__ */ new Set(), A = null, q = null, Ho = null, je = !1, Co = !1, we = null, go = null, ki = 0, ns = 1, mo = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), oo = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), Bo = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), no = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakSet(), ue = class $i {
231
+ var $i, It = /* @__PURE__ */ new Set(), x = null, q = null, Ho = null, je = !1, Co = !1, we = null, go = null, Si = 0, rs = 1, mo = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), oo = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), Bo = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), no = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), F = /* @__PURE__ */ new WeakSet(), ue = class Ai {
232
232
  constructor() {
233
- ln(this, F), y(this, "id", ns++), y(this, "current", /* @__PURE__ */ new Map()), y(this, "previous", /* @__PURE__ */ new Map()), I(this, mo, /* @__PURE__ */ new Set()), I(this, Ke, /* @__PURE__ */ new Set()), I(this, Ae, /* @__PURE__ */ new Set()), I(this, Kt, /* @__PURE__ */ new Map()), I(this, qt, /* @__PURE__ */ new Map()), I(this, oo, null), I(this, dt, []), I(this, Bo, []), I(this, Te, /* @__PURE__ */ new Set()), I(this, te, /* @__PURE__ */ new Set()), I(this, Ht, /* @__PURE__ */ new Map()), I(this, no, /* @__PURE__ */ new Set()), y(this, "is_fork", !1), I(this, Ze, !1), I(this, ge, /* @__PURE__ */ new Set());
233
+ ln(this, F), y(this, "id", rs++), y(this, "current", /* @__PURE__ */ new Map()), y(this, "previous", /* @__PURE__ */ new Map()), I(this, mo, /* @__PURE__ */ new Set()), I(this, Ke, /* @__PURE__ */ new Set()), I(this, xe, /* @__PURE__ */ new Set()), I(this, Kt, /* @__PURE__ */ new Map()), I(this, qt, /* @__PURE__ */ new Map()), I(this, oo, null), I(this, dt, []), I(this, Bo, []), I(this, Te, /* @__PURE__ */ new Set()), I(this, te, /* @__PURE__ */ new Set()), I(this, Ht, /* @__PURE__ */ new Map()), I(this, no, /* @__PURE__ */ new Set()), y(this, "is_fork", !1), I(this, Ze, !1), I(this, ge, /* @__PURE__ */ new Set());
234
234
  }
235
235
  skip_effect(e) {
236
236
  c(Ht, this).has(e) || c(Ht, this).set(e, {
@@ -251,21 +251,21 @@ var Ii, It = /* @__PURE__ */ new Set(), A = null, q = null, Ho = null, je = !1,
251
251
  e.v !== N && !this.previous.has(e) && this.previous.set(e, e.v), !(e.f & 8388608) && (this.current.set(e, [o, n]), q?.set(e, o)), this.is_fork || (e.v = o);
252
252
  }
253
253
  activate() {
254
- A = this;
254
+ x = this;
255
255
  }
256
256
  deactivate() {
257
- A = null, q = null;
257
+ x = null, q = null;
258
258
  }
259
259
  flush() {
260
260
  try {
261
- Co = !0, A = this, E(F, this, cn).call(this);
261
+ Co = !0, x = this, E(F, this, cn).call(this);
262
262
  } finally {
263
- ki = 0, Ho = null, we = null, go = null, Co = !1, A = null, q = null, ne.clear();
263
+ Si = 0, Ho = null, we = null, go = null, Co = !1, x = null, q = null, ne.clear();
264
264
  }
265
265
  }
266
266
  discard() {
267
267
  for (const e of c(Ke, this)) e(this);
268
- c(Ke, this).clear(), c(Ae, this).clear(), It.delete(this);
268
+ c(Ke, this).clear(), c(xe, this).clear(), It.delete(this);
269
269
  }
270
270
  register_created_effect(e) {
271
271
  c(Bo, this).push(e);
@@ -299,26 +299,26 @@ var Ii, It = /* @__PURE__ */ new Set(), A = null, q = null, Ho = null, je = !1,
299
299
  c(Ke, this).add(e);
300
300
  }
301
301
  on_fork_commit(e) {
302
- c(Ae, this).add(e);
302
+ c(xe, this).add(e);
303
303
  }
304
304
  run_fork_commit_callbacks() {
305
- for (const e of c(Ae, this)) e(this);
306
- c(Ae, this).clear();
305
+ for (const e of c(xe, this)) e(this);
306
+ c(xe, this).clear();
307
307
  }
308
308
  settled() {
309
- return (c(oo, this) ?? $(oo, this, ui())).promise;
309
+ return (c(oo, this) ?? $(oo, this, hi())).promise;
310
310
  }
311
311
  static ensure() {
312
- if (A === null) {
313
- const e = A = new $i();
314
- Co || (It.add(A), je || se(() => {
315
- A === e && e.flush();
312
+ if (x === null) {
313
+ const e = x = new Ai();
314
+ Co || (It.add(x), je || se(() => {
315
+ x === e && e.flush();
316
316
  }));
317
317
  }
318
- return A;
318
+ return x;
319
319
  }
320
320
  apply() {
321
- if (!Ot || !this.is_fork && It.size === 1) {
321
+ if (!Pt || !this.is_fork && It.size === 1) {
322
322
  q = null;
323
323
  return;
324
324
  }
@@ -339,7 +339,7 @@ var Ii, It = /* @__PURE__ */ new Set(), A = null, q = null, Ho = null, je = !1,
339
339
  for (var o = e; o.parent !== null; ) {
340
340
  o = o.parent;
341
341
  var n = o.f;
342
- if (we !== null && o === S && (Ot || (_ === null || (_.f & 2) === 0) && !es)) return;
342
+ if (we !== null && o === S && (Pt || (_ === null || (_.f & 2) === 0) && !ns)) return;
343
343
  if ((n & 96) !== 0) {
344
344
  if ((n & 1024) === 0) return;
345
345
  o.f ^= nt;
@@ -348,11 +348,11 @@ var Ii, It = /* @__PURE__ */ new Set(), A = null, q = null, Ho = null, je = !1,
348
348
  c(dt, this).push(o);
349
349
  }
350
350
  };
351
- Ii = ue;
351
+ $i = ue;
352
352
  function Fo() {
353
353
  return this.is_fork || c(qt, this).size > 0;
354
354
  }
355
- function is() {
355
+ function ss() {
356
356
  for (const o of c(ge, this)) for (const n of c(qt, o).keys()) {
357
357
  for (var t = !1, e = n; e.parent !== null; ) {
358
358
  if (c(Ht, this).has(e)) {
@@ -366,7 +366,7 @@ function is() {
366
366
  return !1;
367
367
  }
368
368
  function cn() {
369
- if (ki++ > 1e3 && (It.delete(this), ss()), !E(F, this, Fo).call(this)) {
369
+ if (Si++ > 1e3 && (It.delete(this), ls()), !E(F, this, Fo).call(this)) {
370
370
  for (const s of c(Te, this)) c(te, this).delete(s), j(s, vt), this.schedule(s);
371
371
  for (const s of c(te, this)) j(s, ce), this.schedule(s);
372
372
  }
@@ -374,35 +374,35 @@ function cn() {
374
374
  $(dt, this, []), this.apply();
375
375
  var e = we = [], o = [], n = go = [];
376
376
  for (const s of t) try {
377
- E(F, this, Si).call(this, s, e, o);
377
+ E(F, this, xi).call(this, s, e, o);
378
378
  } catch (a) {
379
- throw _i(s), a;
379
+ throw Ei(s), a;
380
380
  }
381
- if (A = null, n.length > 0) {
382
- var i = Ii.ensure();
381
+ if (x = null, n.length > 0) {
382
+ var i = $i.ensure();
383
383
  for (const s of n) i.schedule(s);
384
384
  }
385
- if (we = null, go = null, E(F, this, Fo).call(this) || E(F, this, is).call(this)) {
385
+ if (we = null, go = null, E(F, this, Fo).call(this) || E(F, this, ss).call(this)) {
386
386
  E(F, this, Go).call(this, o), E(F, this, Go).call(this, e);
387
- for (const [s, a] of c(Ht, this)) Ai(s, a);
387
+ for (const [s, a] of c(Ht, this)) Ci(s, a);
388
388
  } else {
389
389
  c(Kt, this).size === 0 && It.delete(this), c(Te, this).clear(), c(te, this).clear();
390
390
  for (const s of c(mo, this)) s(this);
391
391
  c(mo, this).clear(), Nn(o), Nn(e), c(oo, this)?.resolve();
392
392
  }
393
- var r = A;
393
+ var r = x;
394
394
  if (c(dt, this).length > 0) {
395
395
  const s = r ?? (r = this);
396
396
  c(dt, s).push(...c(dt, this).filter((a) => !c(dt, s).includes(a)));
397
397
  }
398
- r !== null && (It.add(r), E(F, r, cn).call(r)), Ot && !It.has(this) && E(F, this, rs).call(this);
398
+ r !== null && (It.add(r), E(F, r, cn).call(r)), Pt && !It.has(this) && E(F, this, as).call(this);
399
399
  }
400
- function Si(t, e, o) {
400
+ function xi(t, e, o) {
401
401
  t.f ^= nt;
402
402
  for (var n = t.first; n !== null; ) {
403
403
  var i = n.f, r = (i & 96) !== 0;
404
404
  if (!(r && (i & 1024) !== 0 || (i & 8192) !== 0 || c(Ht, this).has(n)) && n.fn !== null) {
405
- r ? n.f ^= nt : (i & 4) !== 0 ? e.push(n) : Ot && (i & 16777224) !== 0 ? o.push(n) : De(n) && (i & 16 && c(te, this).add(n), ke(n));
405
+ r ? n.f ^= nt : (i & 4) !== 0 ? e.push(n) : Pt && (i & 16777224) !== 0 ? o.push(n) : De(n) && (i & 16 && c(te, this).add(n), ke(n));
406
406
  var s = n.first;
407
407
  if (s !== null) {
408
408
  n = s;
@@ -420,15 +420,15 @@ function Si(t, e, o) {
420
420
  }
421
421
  }
422
422
  function Go(t) {
423
- for (var e = 0; e < t.length; e += 1) wi(t[e], c(Te, this), c(te, this));
423
+ for (var e = 0; e < t.length; e += 1) Ii(t[e], c(Te, this), c(te, this));
424
424
  }
425
- function rs() {
425
+ function as() {
426
426
  for (const l of It) {
427
427
  var t = l.id < this.id, e = [];
428
- for (const [d, [h, f]] of this.current) {
428
+ for (const [d, [f, h]] of this.current) {
429
429
  if (l.current.has(d)) {
430
430
  var o = l.current.get(d)[0];
431
- if (t && h !== o) l.current.set(d, [h, f]);
431
+ if (t && f !== o) l.current.set(d, [f, h]);
432
432
  else continue;
433
433
  }
434
434
  e.push(d);
@@ -436,18 +436,18 @@ function rs() {
436
436
  var n = [...l.current.keys()].filter((d) => !this.current.has(d));
437
437
  if (n.length === 0) t && l.discard();
438
438
  else if (e.length > 0) {
439
- if (t) for (const d of c(no, this)) l.unskip_effect(d, (h) => {
440
- (h.f & 4194320) !== 0 ? l.schedule(h) : E(F, l, Go).call(l, [h]);
439
+ if (t) for (const d of c(no, this)) l.unskip_effect(d, (f) => {
440
+ (f.f & 4194320) !== 0 ? l.schedule(f) : E(F, l, Go).call(l, [f]);
441
441
  });
442
442
  l.activate();
443
443
  var i = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map();
444
- for (var s of e) xi(s, n, i, r);
444
+ for (var s of e) _i(s, n, i, r);
445
445
  r = /* @__PURE__ */ new Map();
446
446
  var a = [...l.current.keys()].filter((d) => this.current.has(d) ? this.current.get(d)[0] !== d : !0);
447
447
  for (const d of c(Bo, this)) !(d.f & 155648) && un(d, a, r) && ((d.f & 4194320) !== 0 ? (j(d, vt), l.schedule(d)) : c(Te, l).add(d));
448
448
  if (c(dt, l).length > 0) {
449
449
  l.apply();
450
- for (var u of c(dt, l)) E(F, l, Si).call(l, u, [], []);
450
+ for (var u of c(dt, l)) E(F, l, xi).call(l, u, [], []);
451
451
  $(dt, l, []);
452
452
  }
453
453
  l.deactivate();
@@ -460,17 +460,17 @@ function io(t) {
460
460
  je = !0;
461
461
  try {
462
462
  var o;
463
- for (t && (A !== null && !A.is_fork && A.flush(), o = t()); ; ) {
464
- if (Qr(), A === null) return o;
465
- A.flush();
463
+ for (t && (x !== null && !x.is_fork && x.flush(), o = t()); ; ) {
464
+ if (es(), x === null) return o;
465
+ x.flush();
466
466
  }
467
467
  } finally {
468
468
  je = e;
469
469
  }
470
470
  }
471
- function ss() {
471
+ function ls() {
472
472
  try {
473
- Dr();
473
+ Br();
474
474
  } catch (t) {
475
475
  Bt(t, Ho);
476
476
  }
@@ -481,7 +481,7 @@ function Nn(t) {
481
481
  if (e !== 0) {
482
482
  for (var o = 0; o < e; ) {
483
483
  var n = t[o++];
484
- if ((n.f & 24576) === 0 && De(n) && (wt = /* @__PURE__ */ new Set(), ke(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Gi(n), wt?.size > 0)) {
484
+ if ((n.f & 24576) === 0 && De(n) && (wt = /* @__PURE__ */ new Set(), ke(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Ji(n), wt?.size > 0)) {
485
485
  ne.clear();
486
486
  for (const i of wt) {
487
487
  if ((i.f & 24576) !== 0) continue;
@@ -499,10 +499,10 @@ function Nn(t) {
499
499
  wt = null;
500
500
  }
501
501
  }
502
- function xi(t, e, o, n) {
502
+ function _i(t, e, o, n) {
503
503
  if (!o.has(t) && (o.add(t), t.reactions !== null)) for (const i of t.reactions) {
504
504
  const r = i.f;
505
- (r & 2) !== 0 ? xi(i, e, o, n) : r & 4194320 && !(r & 2048) && un(i, e, n) && (j(i, vt), dn(i));
505
+ (r & 2) !== 0 ? _i(i, e, o, n) : r & 4194320 && !(r & 2048) && un(i, e, n) && (j(i, vt), dn(i));
506
506
  }
507
507
  }
508
508
  function un(t, e, o) {
@@ -515,19 +515,19 @@ function un(t, e, o) {
515
515
  return o.set(t, !1), !1;
516
516
  }
517
517
  function dn(t) {
518
- A.schedule(t);
518
+ x.schedule(t);
519
519
  }
520
- function Ai(t, e) {
520
+ function Ci(t, e) {
521
521
  if (!((t.f & 32) !== 0 && (t.f & 1024) !== 0)) {
522
522
  (t.f & 2048) !== 0 ? e.d.push(t) : t.f & 4096 && e.m.push(t), j(t, nt);
523
- for (var o = t.first; o !== null; ) Ai(o, e), o = o.next;
523
+ for (var o = t.first; o !== null; ) Ci(o, e), o = o.next;
524
524
  }
525
525
  }
526
- function _i(t) {
526
+ function Ei(t) {
527
527
  j(t, nt);
528
- for (var e = t.first; e !== null; ) _i(e), e = e.next;
528
+ for (var e = t.first; e !== null; ) Ei(e), e = e.next;
529
529
  }
530
- function as(t) {
530
+ function cs(t) {
531
531
  let e = 0, o = ae(0), n;
532
532
  return () => {
533
533
  mn() && (g(o), bn(() => (e === 0 && (n = kn(() => t(() => Ne(o)))), e += 1, () => {
@@ -537,31 +537,31 @@ function as(t) {
537
537
  })));
538
538
  };
539
539
  }
540
- var ls = sn | $e;
541
- function cs(t, e, o, n) {
542
- new us(t, e, o, n);
540
+ var us = sn | $e;
541
+ function ds(t, e, o, n) {
542
+ new hs(t, e, o, n);
543
543
  }
544
- var ft = /* @__PURE__ */ new WeakMap(), Uo = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), Jo = /* @__PURE__ */ new WeakMap(), Ko = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), Wn = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakSet(), us = class {
544
+ var ft = /* @__PURE__ */ new WeakMap(), Uo = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), Jo = /* @__PURE__ */ new WeakMap(), Ko = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), Wn = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakSet(), hs = class {
545
545
  constructor(t, e, o, n) {
546
- ln(this, z), y(this, "parent", void 0), y(this, "is_pending", !1), y(this, "transform_error", void 0), I(this, ft, void 0), I(this, Uo, O ? L : null), I(this, Tt, void 0), I(this, We, void 0), I(this, et, void 0), I(this, kt, null), I(this, X, null), I(this, ut, null), I(this, ee, null), I(this, fe, 0), I(this, oe, 0), I(this, Ye, !1), I(this, Jo, /* @__PURE__ */ new Set()), I(this, Ko, /* @__PURE__ */ new Set()), I(this, Ut, null), I(this, Wn, as(() => ($(Ut, this, ae(c(fe, this))), () => {
546
+ ln(this, z), y(this, "parent", void 0), y(this, "is_pending", !1), y(this, "transform_error", void 0), I(this, ft, void 0), I(this, Uo, P ? L : null), I(this, Tt, void 0), I(this, We, void 0), I(this, et, void 0), I(this, kt, null), I(this, X, null), I(this, ut, null), I(this, ee, null), I(this, fe, 0), I(this, oe, 0), I(this, Ye, !1), I(this, Jo, /* @__PURE__ */ new Set()), I(this, Ko, /* @__PURE__ */ new Set()), I(this, Ut, null), I(this, Wn, cs(() => ($(Ut, this, ae(c(fe, this))), () => {
547
547
  $(Ut, this, null);
548
548
  }))), $(ft, this, t), $(Tt, this, e), $(We, this, (i) => {
549
549
  var r = S;
550
550
  r.b = this, r.f |= 128, o(i);
551
551
  }), this.parent = S.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), $(et, this, yn(() => {
552
- if (O) {
552
+ if (P) {
553
553
  const i = c(Uo, this);
554
554
  ko();
555
555
  const r = i.data === "[!";
556
556
  if (i.data.startsWith("[?")) {
557
557
  const s = JSON.parse(i.data.slice(2));
558
- E(z, this, hs).call(this, s);
559
- } else r ? E(z, this, fs).call(this) : E(z, this, ds).call(this);
560
- } else E(z, this, Ci).call(this);
561
- }, ls)), O && $(ft, this, L);
558
+ E(z, this, ps).call(this, s);
559
+ } else r ? E(z, this, vs).call(this) : E(z, this, fs).call(this);
560
+ } else E(z, this, Mi).call(this);
561
+ }, us)), P && $(ft, this, L);
562
562
  }
563
563
  defer_effect(t) {
564
- wi(t, c(Jo, this), c(Ko, this));
564
+ Ii(t, c(Jo, this), c(Ko, this));
565
565
  }
566
566
  is_rendered() {
567
567
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
@@ -570,7 +570,7 @@ var ft = /* @__PURE__ */ new WeakMap(), Uo = /* @__PURE__ */ new WeakMap(), Tt =
570
570
  return !!c(Tt, this).pending;
571
571
  }
572
572
  update_pending_count(t, e) {
573
- E(z, this, Ei).call(this, t, e), $(fe, this, c(fe, this) + t), !(!c(Ut, this) || c(Ye, this)) && ($(Ye, this, !0), se(() => {
573
+ E(z, this, Li).call(this, t, e), $(fe, this, c(fe, this) + t), !(!c(Ut, this) || c(Ye, this)) && ($(Ye, this, !0), se(() => {
574
574
  $(Ye, this, !1), c(Ut, this) && Ie(c(Ut, this), c(fe, this));
575
575
  }));
576
576
  }
@@ -579,35 +579,35 @@ var ft = /* @__PURE__ */ new WeakMap(), Uo = /* @__PURE__ */ new WeakMap(), Tt =
579
579
  }
580
580
  error(t) {
581
581
  if (!c(Tt, this).onerror && !c(Tt, this).failed) throw t;
582
- A?.is_fork ? (c(kt, this) && A.skip_effect(c(kt, this)), c(X, this) && A.skip_effect(c(X, this)), c(ut, this) && A.skip_effect(c(ut, this)), A.on_fork_commit(() => {
582
+ x?.is_fork ? (c(kt, this) && x.skip_effect(c(kt, this)), c(X, this) && x.skip_effect(c(X, this)), c(ut, this) && x.skip_effect(c(ut, this)), x.on_fork_commit(() => {
583
583
  E(z, this, Vn).call(this, t);
584
584
  })) : E(z, this, Vn).call(this, t);
585
585
  }
586
586
  };
587
- function ds() {
587
+ function fs() {
588
588
  try {
589
589
  $(kt, this, it(() => c(We, this).call(this, c(ft, this))));
590
590
  } catch (t) {
591
591
  this.error(t);
592
592
  }
593
593
  }
594
- function hs(t) {
594
+ function ps(t) {
595
595
  const e = c(Tt, this).failed;
596
596
  e && $(ut, this, it(() => {
597
597
  e(c(ft, this), () => t, () => () => {
598
598
  });
599
599
  }));
600
600
  }
601
- function fs() {
601
+ function vs() {
602
602
  const t = c(Tt, this).pending;
603
603
  t && (this.is_pending = !0, $(X, this, it(() => t(c(ft, this)))), se(() => {
604
604
  var e = $(ee, this, document.createDocumentFragment()), o = pt();
605
605
  e.append(o), $(kt, this, E(z, this, Zo).call(this, () => it(() => c(We, this).call(this, o)))), c(oe, this) === 0 && (c(ft, this).before(e), $(ee, this, null), de(c(X, this), () => {
606
606
  $(X, this, null);
607
- }), E(z, this, hn).call(this, A));
607
+ }), E(z, this, hn).call(this, x));
608
608
  }));
609
609
  }
610
- function Ci() {
610
+ function Mi() {
611
611
  try {
612
612
  if (this.is_pending = this.has_pending_snippet(), $(oe, this, 0), $(fe, this, 0), $(kt, this, it(() => {
613
613
  c(We, this).call(this, c(ft, this));
@@ -616,7 +616,7 @@ function Ci() {
616
616
  In(c(kt, this), t);
617
617
  const e = c(Tt, this).pending;
618
618
  $(X, this, it(() => e(c(ft, this))));
619
- } else E(z, this, hn).call(this, A);
619
+ } else E(z, this, hn).call(this, x);
620
620
  } catch (e) {
621
621
  this.error(e);
622
622
  }
@@ -630,16 +630,16 @@ function Zo(t) {
630
630
  try {
631
631
  return ue.ensure(), t();
632
632
  } catch (i) {
633
- return bi(i), null;
633
+ return wi(i), null;
634
634
  } finally {
635
635
  $t(e), rt(o), ye(n);
636
636
  }
637
637
  }
638
- function Ei(t, e) {
638
+ function Li(t, e) {
639
639
  if (!this.has_pending_snippet()) {
640
640
  if (this.parent) {
641
641
  var o;
642
- E(z, o = this.parent, Ei).call(o, t, e);
642
+ E(z, o = this.parent, Li).call(o, t, e);
643
643
  }
644
644
  return;
645
645
  }
@@ -648,19 +648,19 @@ function Ei(t, e) {
648
648
  }), c(ee, this) && (c(ft, this).before(c(ee, this)), $(ee, this, null)));
649
649
  }
650
650
  function Vn(t) {
651
- c(kt, this) && (D(c(kt, this)), $(kt, this, null)), c(X, this) && (D(c(X, this)), $(X, this, null)), c(ut, this) && (D(c(ut, this)), $(ut, this, null)), O && (U(c(Uo, this)), Yr(), U(vo()));
651
+ c(kt, this) && (D(c(kt, this)), $(kt, this, null)), c(X, this) && (D(c(X, this)), $(X, this, null)), c(ut, this) && (D(c(ut, this)), $(ut, this, null)), P && (U(c(Uo, this)), Qr(), U(vo()));
652
652
  var e = c(Tt, this).onerror;
653
653
  let o = c(Tt, this).failed;
654
654
  var n = !1, i = !1;
655
655
  const r = () => {
656
656
  if (n) {
657
- Zr();
657
+ Xr();
658
658
  return;
659
659
  }
660
- n = !0, i && Jr(), c(ut, this) !== null && de(c(ut, this), () => {
660
+ n = !0, i && Zr(), c(ut, this) !== null && de(c(ut, this), () => {
661
661
  $(ut, this, null);
662
662
  }), E(z, this, Zo).call(this, () => {
663
- E(z, this, Ci).call(this);
663
+ E(z, this, Mi).call(this);
664
664
  });
665
665
  }, s = (a) => {
666
666
  try {
@@ -690,18 +690,18 @@ function Vn(t) {
690
690
  a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(s, (u) => Bt(u, c(et, this) && c(et, this).parent)) : s(a);
691
691
  });
692
692
  }
693
- function ps(t, e, o, n) {
693
+ function gs(t, e, o, n) {
694
694
  const i = qe() ? So : fn;
695
- var r = t.filter((f) => !f.settled);
695
+ var r = t.filter((h) => !h.settled);
696
696
  if (o.length === 0 && r.length === 0) {
697
697
  n(e.map(i));
698
698
  return;
699
699
  }
700
- var s = S, a = vs(), u = r.length === 1 ? r[0].promise : r.length > 1 ? Promise.all(r.map((f) => f.promise)) : null;
701
- function l(f) {
700
+ var s = S, a = ms(), u = r.length === 1 ? r[0].promise : r.length > 1 ? Promise.all(r.map((h) => h.promise)) : null;
701
+ function l(h) {
702
702
  a();
703
703
  try {
704
- n(f);
704
+ n(h);
705
705
  } catch (v) {
706
706
  !(s.f & 16384) && Bt(v, s);
707
707
  }
@@ -711,25 +711,25 @@ function ps(t, e, o, n) {
711
711
  u.then(() => l(e.map(i)));
712
712
  return;
713
713
  }
714
- var d = Mi();
715
- function h() {
716
- Promise.all(o.map((f) => /* @__PURE__ */ gs(f))).then((f) => l([...e.map(i), ...f])).catch((f) => Bt(f, s)).finally(() => d());
714
+ var d = Pi();
715
+ function f() {
716
+ Promise.all(o.map((h) => /* @__PURE__ */ bs(h))).then((h) => l([...e.map(i), ...h])).catch((h) => Bt(h, s)).finally(() => d());
717
717
  }
718
718
  u ? u.then(() => {
719
- a(), h(), bo();
720
- }) : h();
719
+ a(), f(), bo();
720
+ }) : f();
721
721
  }
722
- function vs() {
723
- var t = S, e = _, o = V, n = A;
722
+ function ms() {
723
+ var t = S, e = _, o = V, n = x;
724
724
  return function(i = !0) {
725
725
  $t(t), rt(e), ye(o), i && !(t.f & 16384) && (n?.activate(), n?.apply());
726
726
  };
727
727
  }
728
728
  function bo(t = !0) {
729
- $t(null), rt(null), ye(null), t && A?.deactivate();
729
+ $t(null), rt(null), ye(null), t && x?.deactivate();
730
730
  }
731
- function Mi() {
732
- var t = S, e = t.b, o = A, n = e.is_rendered();
731
+ function Pi() {
732
+ var t = S, e = t.b, o = x, n = e.is_rendered();
733
733
  return e.update_pending_count(1, o), o.increment(n, t), (i = !1) => {
734
734
  e.update_pending_count(-1, o), o.decrement(n, t, i);
735
735
  };
@@ -741,7 +741,7 @@ function So(t) {
741
741
  ctx: V,
742
742
  deps: null,
743
743
  effects: null,
744
- equals: fi,
744
+ equals: vi,
745
745
  f: e,
746
746
  fn: t,
747
747
  reactions: null,
@@ -753,21 +753,21 @@ function So(t) {
753
753
  };
754
754
  }
755
755
  // @__NO_SIDE_EFFECTS__
756
- function gs(t, e, o) {
756
+ function bs(t, e, o) {
757
757
  let n = S;
758
- n === null && Nr();
758
+ n === null && Vr();
759
759
  var i = void 0, r = ae(N), s = !_, a = /* @__PURE__ */ new Map();
760
- return Ss(() => {
761
- var u = S, l = ui();
760
+ return xs(() => {
761
+ var u = S, l = hi();
762
762
  i = l.promise;
763
763
  try {
764
764
  Promise.resolve(t()).then(l.resolve, l.reject).finally(bo);
765
765
  } catch (v) {
766
766
  l.reject(v), bo();
767
767
  }
768
- var d = A;
768
+ var d = x;
769
769
  if (s) {
770
- if ((u.f & 32768) !== 0) var h = Mi();
770
+ if ((u.f & 32768) !== 0) var f = Pi();
771
771
  if (n.b.is_rendered()) a.get(d)?.reject(Mt), a.delete(d);
772
772
  else {
773
773
  for (const v of a.values()) v.reject(Mt);
@@ -775,8 +775,8 @@ function gs(t, e, o) {
775
775
  }
776
776
  a.set(d, l);
777
777
  }
778
- const f = (v, m = void 0) => {
779
- if (h && h(m === Mt), !(m === Mt || (u.f & 16384) !== 0)) {
778
+ const h = (v, m = void 0) => {
779
+ if (f && f(m === Mt), !(m === Mt || (u.f & 16384) !== 0)) {
780
780
  if (d.activate(), m) r.f |= po, Ie(r, m);
781
781
  else {
782
782
  r.f & 8388608 && (r.f ^= po), Ie(r, v);
@@ -788,15 +788,15 @@ function gs(t, e, o) {
788
788
  d.deactivate();
789
789
  }
790
790
  };
791
- l.promise.then(f, (v) => f(null, v || "unknown"));
792
- }), Is(() => {
791
+ l.promise.then(h, (v) => h(null, v || "unknown"));
792
+ }), $s(() => {
793
793
  for (const u of a.values()) u.reject(Mt);
794
794
  }), new Promise((u) => {
795
795
  function l(d) {
796
- function h() {
796
+ function f() {
797
797
  d === i ? u(r) : l(i);
798
798
  }
799
- d.then(h, h);
799
+ d.then(f, f);
800
800
  }
801
801
  l(i);
802
802
  });
@@ -804,14 +804,14 @@ function gs(t, e, o) {
804
804
  // @__NO_SIDE_EFFECTS__
805
805
  function Eo(t) {
806
806
  const e = /* @__PURE__ */ So(t);
807
- return Ot || Ki(e), e;
807
+ return Pt || Yi(e), e;
808
808
  }
809
809
  // @__NO_SIDE_EFFECTS__
810
810
  function fn(t) {
811
811
  const e = /* @__PURE__ */ So(t);
812
- return e.equals = pi, e;
812
+ return e.equals = gi, e;
813
813
  }
814
- function ms(t) {
814
+ function ys(t) {
815
815
  var e = t.effects;
816
816
  if (e !== null) {
817
817
  t.effects = null;
@@ -820,36 +820,36 @@ function ms(t) {
820
820
  }
821
821
  function pn(t) {
822
822
  var e, o = S, n = t.parent;
823
- if (!Pt && n !== null && (n.f & 24576) !== 0) return Kr(), t.v;
823
+ if (!Ot && n !== null && (n.f & 24576) !== 0) return Yr(), t.v;
824
824
  $t(n);
825
825
  try {
826
- t.f &= ~ze, ms(t), e = Qi(t);
826
+ t.f &= ~ze, ys(t), e = er(t);
827
827
  } finally {
828
828
  $t(o);
829
829
  }
830
830
  return e;
831
831
  }
832
- function Li(t) {
832
+ function Oi(t) {
833
833
  var e = pn(t);
834
- if (!t.equals(e) && (t.wv = Yi(), (!A?.is_fork || t.deps === null) && (A !== null ? A.capture(t, e, !0) : t.v = e, t.deps === null))) {
834
+ if (!t.equals(e) && (t.wv = Qi(), (!x?.is_fork || t.deps === null) && (x !== null ? x.capture(t, e, !0) : t.v = e, t.deps === null))) {
835
835
  j(t, nt);
836
836
  return;
837
837
  }
838
- Pt || (q !== null ? (mn() || A?.is_fork) && q.set(t, e) : an(t));
838
+ Ot || (q !== null ? (mn() || x?.is_fork) && q.set(t, e) : an(t));
839
839
  }
840
- function bs(t) {
841
- if (t.effects !== null) for (const e of t.effects) (e.teardown || e.ac) && (e.teardown?.(), e.ac?.abort(Mt), e.teardown = Er, e.ac = null, Ve(e, 0), wn(e));
840
+ function ws(t) {
841
+ if (t.effects !== null) for (const e of t.effects) (e.teardown || e.ac) && (e.teardown?.(), e.ac?.abort(Mt), e.teardown = Lr, e.ac = null, Ve(e, 0), wn(e));
842
842
  }
843
- function Oi(t) {
843
+ function Ri(t) {
844
844
  if (t.effects !== null) for (const e of t.effects) e.teardown && ke(e);
845
845
  }
846
- var Yo = /* @__PURE__ */ new Set(), ne = /* @__PURE__ */ new Map(), Pi = !1;
846
+ var Yo = /* @__PURE__ */ new Set(), ne = /* @__PURE__ */ new Map(), ji = !1;
847
847
  function ae(t, e) {
848
848
  return {
849
849
  f: 0,
850
850
  v: t,
851
851
  reactions: null,
852
- equals: fi,
852
+ equals: vi,
853
853
  rv: 0,
854
854
  wv: 0
855
855
  };
@@ -857,41 +857,41 @@ function ae(t, e) {
857
857
  // @__NO_SIDE_EFFECTS__
858
858
  function W(t, e) {
859
859
  const o = ae(t, e);
860
- return Ki(o), o;
860
+ return Yi(o), o;
861
861
  }
862
862
  // @__NO_SIDE_EFFECTS__
863
- function Ri(t, e = !1, o = !0) {
863
+ function Ni(t, e = !1, o = !0) {
864
864
  const n = ae(t);
865
- if (e || (n.equals = pi), $o && o && V !== null && V.l !== null) {
865
+ if (e || (n.equals = gi), $o && o && V !== null && V.l !== null) {
866
866
  var i;
867
867
  ((i = V.l).s ?? (i.s = [])).push(n);
868
868
  }
869
869
  return n;
870
870
  }
871
871
  function C(t, e, o = !1) {
872
- return _ !== null && (!ht || _.f & 131072) && qe() && _.f & 4325394 && (ot === null || !be.call(ot, t)) && Ur(), Ie(t, o ? Yt(e) : e, go);
872
+ return _ !== null && (!ht || _.f & 131072) && qe() && _.f & 4325394 && (ot === null || !be.call(ot, t)) && Kr(), Ie(t, o ? Yt(e) : e, go);
873
873
  }
874
874
  function Ie(t, e, o = null) {
875
875
  if (!t.equals(e)) {
876
- ne.set(t, Pt ? e : t.v);
876
+ ne.set(t, Ot ? e : t.v);
877
877
  var n = ue.ensure();
878
878
  if (n.capture(t, e), (t.f & 2) !== 0) {
879
879
  const i = t;
880
880
  t.f & 2048 && pn(i), q === null && an(i);
881
881
  }
882
- t.wv = Yi(), ji(t, vt, o), qe() && S !== null && S.f & 1024 && !(S.f & 96) && (tt === null ? Cs([t]) : tt.push(t)), !n.is_fork && Yo.size > 0 && !Pi && ys();
882
+ t.wv = Qi(), Wi(t, vt, o), qe() && S !== null && S.f & 1024 && !(S.f & 96) && (tt === null ? Ms([t]) : tt.push(t)), !n.is_fork && Yo.size > 0 && !ji && Ts();
883
883
  }
884
884
  return e;
885
885
  }
886
- function ys() {
887
- Pi = !1;
886
+ function Ts() {
887
+ ji = !1;
888
888
  for (const t of Yo) t.f & 1024 && j(t, ce), De(t) && ke(t);
889
889
  Yo.clear();
890
890
  }
891
891
  function Ne(t) {
892
892
  C(t, t.v + 1);
893
893
  }
894
- function ji(t, e, o) {
894
+ function Wi(t, e, o) {
895
895
  var n = t.reactions;
896
896
  if (n !== null) for (var i = qe(), r = n.length, s = 0; s < r; s++) {
897
897
  var a = n[s], u = a.f;
@@ -899,49 +899,49 @@ function ji(t, e, o) {
899
899
  var l = (u & vt) === 0;
900
900
  if (l && j(a, e), (u & 2) !== 0) {
901
901
  var d = a;
902
- q?.delete(d), !(u & 65536) && (u & 512 && (a.f |= ze), ji(d, ce, o));
902
+ q?.delete(d), !(u & 65536) && (u & 512 && (a.f |= ze), Wi(d, ce, o));
903
903
  } else if (l) {
904
- var h = a;
905
- u & 16 && wt !== null && wt.add(h), o !== null ? o.push(h) : dn(h);
904
+ var f = a;
905
+ u & 16 && wt !== null && wt.add(f), o !== null ? o.push(f) : dn(f);
906
906
  }
907
907
  }
908
908
  }
909
909
  }
910
910
  function Yt(t) {
911
911
  if (typeof t != "object" || t === null || Re in t) return t;
912
- const e = ci(t);
913
- if (e !== _r && e !== Cr) return t;
914
- var o = /* @__PURE__ */ new Map(), n = li(t), i = /* @__PURE__ */ W(0), r = null, s = ie, a = (u) => {
912
+ const e = di(t);
913
+ if (e !== Er && e !== Mr) return t;
914
+ var o = /* @__PURE__ */ new Map(), n = ui(t), i = /* @__PURE__ */ W(0), r = null, s = ie, a = (u) => {
915
915
  if (ie === s) return u();
916
916
  var l = _, d = ie;
917
917
  rt(null), Hn(s);
918
- var h = u();
919
- return rt(l), Hn(d), h;
918
+ var f = u();
919
+ return rt(l), Hn(d), f;
920
920
  };
921
921
  return n && o.set("length", /* @__PURE__ */ W(t.length, r)), new Proxy(t, {
922
922
  defineProperty(u, l, d) {
923
- (!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) && Fr();
924
- var h = o.get(l);
925
- return h === void 0 ? a(() => {
926
- var f = /* @__PURE__ */ W(d.value, r);
927
- return o.set(l, f), f;
928
- }) : C(h, d.value, !0), !0;
923
+ (!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) && Ur();
924
+ var f = o.get(l);
925
+ return f === void 0 ? a(() => {
926
+ var h = /* @__PURE__ */ W(d.value, r);
927
+ return o.set(l, h), h;
928
+ }) : C(f, d.value, !0), !0;
929
929
  },
930
930
  deleteProperty(u, l) {
931
931
  var d = o.get(l);
932
932
  if (d === void 0) {
933
933
  if (l in u) {
934
- const h = a(() => /* @__PURE__ */ W(N, r));
935
- o.set(l, h), Ne(i);
934
+ const f = a(() => /* @__PURE__ */ W(N, r));
935
+ o.set(l, f), Ne(i);
936
936
  }
937
937
  } else C(d, N), Ne(i);
938
938
  return !0;
939
939
  },
940
940
  get(u, l, d) {
941
941
  if (l === Re) return t;
942
- var h = o.get(l), f = l in u;
943
- if (h === void 0 && (!f || Qt(u, l)?.writable) && (h = a(() => /* @__PURE__ */ W(Yt(f ? u[l] : N), r)), o.set(l, h)), h !== void 0) {
944
- var v = g(h);
942
+ var f = o.get(l), h = l in u;
943
+ if (f === void 0 && (!h || Qt(u, l)?.writable) && (f = a(() => /* @__PURE__ */ W(Yt(h ? u[l] : N), r)), o.set(l, f)), f !== void 0) {
944
+ var v = g(f);
945
945
  return v === N ? void 0 : v;
946
946
  }
947
947
  return Reflect.get(u, l, d);
@@ -949,11 +949,11 @@ function Yt(t) {
949
949
  getOwnPropertyDescriptor(u, l) {
950
950
  var d = Reflect.getOwnPropertyDescriptor(u, l);
951
951
  if (d && "value" in d) {
952
- var h = o.get(l);
953
- h && (d.value = g(h));
952
+ var f = o.get(l);
953
+ f && (d.value = g(f));
954
954
  } else if (d === void 0) {
955
- var f = o.get(l), v = f?.v;
956
- if (f !== void 0 && v !== N) return {
955
+ var h = o.get(l), v = h?.v;
956
+ if (h !== void 0 && v !== N) return {
957
957
  enumerable: !0,
958
958
  configurable: !0,
959
959
  value: v,
@@ -964,26 +964,26 @@ function Yt(t) {
964
964
  },
965
965
  has(u, l) {
966
966
  if (l === Re) return !0;
967
- var d = o.get(l), h = d !== void 0 && d.v !== N || Reflect.has(u, l);
968
- return (d !== void 0 || S !== null && (!h || Qt(u, l)?.writable)) && (d === void 0 && (d = a(() => /* @__PURE__ */ W(h ? Yt(u[l]) : N, r)), o.set(l, d)), g(d) === N) ? !1 : h;
967
+ var d = o.get(l), f = d !== void 0 && d.v !== N || Reflect.has(u, l);
968
+ return (d !== void 0 || S !== null && (!f || Qt(u, l)?.writable)) && (d === void 0 && (d = a(() => /* @__PURE__ */ W(f ? Yt(u[l]) : N, r)), o.set(l, d)), g(d) === N) ? !1 : f;
969
969
  },
970
- set(u, l, d, h) {
971
- var f = o.get(l), v = l in u;
972
- if (n && l === "length") for (var m = d; m < f.v; m += 1) {
970
+ set(u, l, d, f) {
971
+ var h = o.get(l), v = l in u;
972
+ if (n && l === "length") for (var m = d; m < h.v; m += 1) {
973
973
  var k = o.get(m + "");
974
974
  k !== void 0 ? C(k, N) : m in u && (k = a(() => /* @__PURE__ */ W(N, r)), o.set(m + "", k));
975
975
  }
976
- if (f === void 0) (!v || Qt(u, l)?.writable) && (f = a(() => /* @__PURE__ */ W(void 0, r)), C(f, Yt(d)), o.set(l, f));
976
+ if (h === void 0) (!v || Qt(u, l)?.writable) && (h = a(() => /* @__PURE__ */ W(void 0, r)), C(h, Yt(d)), o.set(l, h));
977
977
  else {
978
- v = f.v !== N;
978
+ v = h.v !== N;
979
979
  var p = a(() => Yt(d));
980
- C(f, p);
980
+ C(h, p);
981
981
  }
982
982
  var w = Reflect.getOwnPropertyDescriptor(u, l);
983
- if (w?.set && w.set.call(h, d), !v) {
983
+ if (w?.set && w.set.call(f, d), !v) {
984
984
  if (n && typeof l == "string") {
985
- var R = o.get("length"), x = Number(l);
986
- Number.isInteger(x) && x >= R.v && C(R, x + 1);
985
+ var R = o.get("length"), A = Number(l);
986
+ Number.isInteger(A) && A >= R.v && C(R, A + 1);
987
987
  }
988
988
  Ne(i);
989
989
  }
@@ -991,24 +991,24 @@ function Yt(t) {
991
991
  },
992
992
  ownKeys(u) {
993
993
  g(i);
994
- var l = Reflect.ownKeys(u).filter((f) => {
995
- var v = o.get(f);
994
+ var l = Reflect.ownKeys(u).filter((h) => {
995
+ var v = o.get(h);
996
996
  return v === void 0 || v.v !== N;
997
997
  });
998
- for (var [d, h] of o) h.v !== N && !(d in u) && l.push(d);
998
+ for (var [d, f] of o) f.v !== N && !(d in u) && l.push(d);
999
999
  return l;
1000
1000
  },
1001
1001
  setPrototypeOf() {
1002
- Gr();
1002
+ Jr();
1003
1003
  }
1004
1004
  });
1005
1005
  }
1006
- var zn, Ni, Wi, Vi;
1006
+ var zn, Vi, zi, qi;
1007
1007
  function Xo() {
1008
1008
  if (zn === void 0) {
1009
- zn = window, Ni = /Firefox/.test(navigator.userAgent);
1009
+ zn = window, Vi = /Firefox/.test(navigator.userAgent);
1010
1010
  var t = Element.prototype, e = Node.prototype, o = Text.prototype;
1011
- Wi = Qt(e, "firstChild").get, Vi = Qt(e, "nextSibling").get, Pn(t) && (t.__click = void 0, t.__className = void 0, t.__attributes = null, t.__style = void 0, t.__e = void 0), Pn(o) && (o.__t = void 0);
1011
+ zi = Qt(e, "firstChild").get, qi = Qt(e, "nextSibling").get, On(t) && (t.__click = void 0, t.__className = void 0, t.__attributes = null, t.__style = void 0, t.__e = void 0), On(o) && (o.__t = void 0);
1012
1012
  }
1013
1013
  }
1014
1014
  function pt(t = "") {
@@ -1016,14 +1016,14 @@ function pt(t = "") {
1016
1016
  }
1017
1017
  // @__NO_SIDE_EFFECTS__
1018
1018
  function le(t) {
1019
- return Wi.call(t);
1019
+ return zi.call(t);
1020
1020
  }
1021
1021
  // @__NO_SIDE_EFFECTS__
1022
1022
  function St(t) {
1023
- return Vi.call(t);
1023
+ return qi.call(t);
1024
1024
  }
1025
1025
  function Xe(t, e) {
1026
- if (!O) return /* @__PURE__ */ le(t);
1026
+ if (!P) return /* @__PURE__ */ le(t);
1027
1027
  var o = /* @__PURE__ */ le(L);
1028
1028
  if (o === null) o = L.appendChild(pt());
1029
1029
  else if (e && o.nodeType !== 3) {
@@ -1033,7 +1033,7 @@ function Xe(t, e) {
1033
1033
  return e && gn(o), U(o), o;
1034
1034
  }
1035
1035
  function Mo(t, e = !1) {
1036
- if (!O) {
1036
+ if (!P) {
1037
1037
  var o = /* @__PURE__ */ le(t);
1038
1038
  return o instanceof Comment && o.data === "" ? /* @__PURE__ */ St(o) : o;
1039
1039
  }
@@ -1047,9 +1047,9 @@ function Mo(t, e = !1) {
1047
1047
  return L;
1048
1048
  }
1049
1049
  function Rt(t, e = 1, o = !1) {
1050
- let n = O ? L : t;
1050
+ let n = P ? L : t;
1051
1051
  for (var i; e--; ) i = n, n = /* @__PURE__ */ St(n);
1052
- if (!O) return n;
1052
+ if (!P) return n;
1053
1053
  if (o) {
1054
1054
  if (n?.nodeType !== 3) {
1055
1055
  var r = pt();
@@ -1059,11 +1059,11 @@ function Rt(t, e = 1, o = !1) {
1059
1059
  }
1060
1060
  return U(n), n;
1061
1061
  }
1062
- function zi(t) {
1062
+ function Di(t) {
1063
1063
  t.textContent = "";
1064
1064
  }
1065
- function qi() {
1066
- return !Ot || wt !== null ? !1 : (S.f & rn) !== 0;
1065
+ function Hi() {
1066
+ return !Pt || wt !== null ? !1 : (S.f & rn) !== 0;
1067
1067
  }
1068
1068
  function vn(t, e, o) {
1069
1069
  let n = o ? { is: o } : void 0;
@@ -1074,7 +1074,7 @@ function gn(t) {
1074
1074
  let e = t.nextSibling;
1075
1075
  for (; e !== null && e.nodeType === 3; ) e.remove(), t.nodeValue += e.nodeValue, e = t.nextSibling;
1076
1076
  }
1077
- function Di(t) {
1077
+ function Bi(t) {
1078
1078
  var e = _, o = S;
1079
1079
  rt(null), $t(null);
1080
1080
  try {
@@ -1083,14 +1083,14 @@ function Di(t) {
1083
1083
  rt(e), $t(o);
1084
1084
  }
1085
1085
  }
1086
- function ws(t) {
1087
- S === null && (_ === null && qr(t), zr()), Pt && Vr(t);
1086
+ function Is(t) {
1087
+ S === null && (_ === null && Hr(t), Dr()), Ot && qr(t);
1088
1088
  }
1089
- function Ts(t, e) {
1089
+ function ks(t, e) {
1090
1090
  var o = e.last;
1091
1091
  o === null ? e.last = e.first = t : (o.next = t, t.prev = o, e.last = t);
1092
1092
  }
1093
- function xt(t, e) {
1093
+ function At(t, e) {
1094
1094
  var o = S;
1095
1095
  o !== null && o.f & 8192 && (t |= nn);
1096
1096
  var n = {
@@ -1109,7 +1109,7 @@ function xt(t, e) {
1109
1109
  wv: 0,
1110
1110
  ac: null
1111
1111
  };
1112
- A?.register_created_effect(n);
1112
+ x?.register_created_effect(n);
1113
1113
  var i = n;
1114
1114
  if ((t & 4) !== 0) we !== null ? we.push(n) : ue.ensure().schedule(n);
1115
1115
  else if (e !== null) {
@@ -1120,7 +1120,7 @@ function xt(t, e) {
1120
1120
  }
1121
1121
  i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, t & 16 && t & 65536 && i !== null && (i.f |= sn));
1122
1122
  }
1123
- if (i !== null && (i.parent = o, o !== null && Ts(i, o), _ !== null && (_.f & 2) !== 0 && (t & 64) === 0)) {
1123
+ if (i !== null && (i.parent = o, o !== null && ks(i, o), _ !== null && (_.f & 2) !== 0 && (t & 64) === 0)) {
1124
1124
  var r = _;
1125
1125
  (r.effects ?? (r.effects = [])).push(i);
1126
1126
  }
@@ -1129,61 +1129,61 @@ function xt(t, e) {
1129
1129
  function mn() {
1130
1130
  return _ !== null && !ht;
1131
1131
  }
1132
- function Is(t) {
1133
- const e = xt(8, null);
1132
+ function $s(t) {
1133
+ const e = At(8, null);
1134
1134
  return j(e, nt), e.teardown = t, e;
1135
1135
  }
1136
1136
  function qn(t) {
1137
- ws("$effect");
1137
+ Is("$effect");
1138
1138
  var e = S.f;
1139
1139
  if (!_ && (e & 32) !== 0 && (e & 32768) === 0) {
1140
1140
  var o = V;
1141
1141
  (o.e ?? (o.e = [])).push(t);
1142
- } else return Hi(t);
1142
+ } else return Fi(t);
1143
1143
  }
1144
- function Hi(t) {
1145
- return xt(4 | Or, t);
1144
+ function Fi(t) {
1145
+ return At(4 | Rr, t);
1146
1146
  }
1147
- function ks(t) {
1147
+ function Ss(t) {
1148
1148
  ue.ensure();
1149
- const e = xt(64 | $e, t);
1149
+ const e = At(64 | $e, t);
1150
1150
  return () => {
1151
1151
  D(e);
1152
1152
  };
1153
1153
  }
1154
- function $s(t) {
1154
+ function As(t) {
1155
1155
  ue.ensure();
1156
- const e = xt(64 | $e, t);
1156
+ const e = At(64 | $e, t);
1157
1157
  return (o = {}) => new Promise((n) => {
1158
1158
  o.outro ? de(e, () => {
1159
1159
  D(e), n(void 0);
1160
1160
  }) : (D(e), n(void 0));
1161
1161
  });
1162
1162
  }
1163
- function Bi(t) {
1164
- return xt(4, t);
1163
+ function Gi(t) {
1164
+ return At(4, t);
1165
1165
  }
1166
- function Ss(t) {
1167
- return xt(Pr | $e, t);
1166
+ function xs(t) {
1167
+ return At(jr | $e, t);
1168
1168
  }
1169
1169
  function bn(t, e = 0) {
1170
- return xt(8 | e, t);
1170
+ return At(8 | e, t);
1171
1171
  }
1172
1172
  function Qe(t, e = [], o = [], n = []) {
1173
- ps(n, e, o, (i) => {
1174
- xt(8, () => t(...i.map(g)));
1173
+ gs(n, e, o, (i) => {
1174
+ At(8, () => t(...i.map(g)));
1175
1175
  });
1176
1176
  }
1177
1177
  function yn(t, e = 0) {
1178
- return xt(16 | e, t);
1178
+ return At(16 | e, t);
1179
1179
  }
1180
1180
  function it(t) {
1181
- return xt(32 | $e, t);
1181
+ return At(32 | $e, t);
1182
1182
  }
1183
- function Fi(t) {
1183
+ function Ui(t) {
1184
1184
  var e = t.teardown;
1185
1185
  if (e !== null) {
1186
- const o = Pt, n = _;
1186
+ const o = Ot, n = _;
1187
1187
  Dn(!0), rt(null);
1188
1188
  try {
1189
1189
  e.call(null);
@@ -1196,14 +1196,14 @@ function wn(t, e = !1) {
1196
1196
  var o = t.first;
1197
1197
  for (t.first = t.last = null; o !== null; ) {
1198
1198
  const i = o.ac;
1199
- i !== null && Di(() => {
1199
+ i !== null && Bi(() => {
1200
1200
  i.abort(Mt);
1201
1201
  });
1202
1202
  var n = o.next;
1203
1203
  (o.f & 64) !== 0 ? o.parent = null : D(o, e), o = n;
1204
1204
  }
1205
1205
  }
1206
- function xs(t) {
1206
+ function _s(t) {
1207
1207
  for (var e = t.first; e !== null; ) {
1208
1208
  var o = e.next;
1209
1209
  !(e.f & 32) && D(e), e = o;
@@ -1211,26 +1211,26 @@ function xs(t) {
1211
1211
  }
1212
1212
  function D(t, e = !0) {
1213
1213
  var o = !1;
1214
- (e || t.f & 262144) && t.nodes !== null && t.nodes.end !== null && (As(t.nodes.start, t.nodes.end), o = !0), j(t, Rn), wn(t, e && !o), Ve(t, 0);
1214
+ (e || t.f & 262144) && t.nodes !== null && t.nodes.end !== null && (Cs(t.nodes.start, t.nodes.end), o = !0), j(t, Rn), wn(t, e && !o), Ve(t, 0);
1215
1215
  var n = t.nodes && t.nodes.t;
1216
1216
  if (n !== null) for (const r of n) r.stop();
1217
- Fi(t), t.f ^= Rn, t.f |= Lr;
1217
+ Ui(t), t.f ^= Rn, t.f |= Or;
1218
1218
  var i = t.parent;
1219
- i !== null && i.first !== null && Gi(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes = t.ac = t.b = null;
1219
+ i !== null && i.first !== null && Ji(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes = t.ac = t.b = null;
1220
1220
  }
1221
- function As(t, e) {
1221
+ function Cs(t, e) {
1222
1222
  for (; t !== null; ) {
1223
1223
  var o = t === e ? null : /* @__PURE__ */ St(t);
1224
1224
  t.remove(), t = o;
1225
1225
  }
1226
1226
  }
1227
- function Gi(t) {
1227
+ function Ji(t) {
1228
1228
  var e = t.parent, o = t.prev, n = t.next;
1229
1229
  o !== null && (o.next = n), n !== null && (n.prev = o), e !== null && (e.first === t && (e.first = n), e.last === t && (e.last = o));
1230
1230
  }
1231
1231
  function de(t, e, o = !0) {
1232
1232
  var n = [];
1233
- Ui(t, n, !0);
1233
+ Ki(t, n, !0);
1234
1234
  var i = () => {
1235
1235
  o && D(t), e && e();
1236
1236
  }, r = n.length;
@@ -1239,7 +1239,7 @@ function de(t, e, o = !0) {
1239
1239
  for (var a of n) a.out(s);
1240
1240
  } else i();
1241
1241
  }
1242
- function Ui(t, e, o) {
1242
+ function Ki(t, e, o) {
1243
1243
  if ((t.f & 8192) === 0) {
1244
1244
  t.f ^= nn;
1245
1245
  var n = t.nodes && t.nodes.t;
@@ -1248,21 +1248,21 @@ function Ui(t, e, o) {
1248
1248
  var r = i.next;
1249
1249
  if ((i.f & 64) === 0) {
1250
1250
  var s = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (t.f & 16) !== 0;
1251
- Ui(i, e, s ? o : !1);
1251
+ Ki(i, e, s ? o : !1);
1252
1252
  }
1253
1253
  i = r;
1254
1254
  }
1255
1255
  }
1256
1256
  }
1257
1257
  function Tn(t) {
1258
- Ji(t, !0);
1258
+ Zi(t, !0);
1259
1259
  }
1260
- function Ji(t, e) {
1260
+ function Zi(t, e) {
1261
1261
  if ((t.f & 8192) !== 0) {
1262
1262
  t.f ^= nn, !(t.f & 1024) && (j(t, vt), ue.ensure().schedule(t));
1263
1263
  for (var o = t.first; o !== null; ) {
1264
1264
  var n = o.next, i = (o.f & 65536) !== 0 || (o.f & 32) !== 0;
1265
- Ji(o, i ? e : !1), o = n;
1265
+ Zi(o, i ? e : !1), o = n;
1266
1266
  }
1267
1267
  var r = t.nodes && t.nodes.t;
1268
1268
  if (r !== null) for (const s of r) (s.is_global || e) && s.in();
@@ -1274,9 +1274,9 @@ function In(t, e) {
1274
1274
  e.append(o), o = i;
1275
1275
  }
1276
1276
  }
1277
- var _s = null, ro = !1, Pt = !1;
1277
+ var Es = null, ro = !1, Ot = !1;
1278
1278
  function Dn(t) {
1279
- Pt = t;
1279
+ Ot = t;
1280
1280
  }
1281
1281
  var _ = null, ht = !1;
1282
1282
  function rt(t) {
@@ -1287,19 +1287,19 @@ function $t(t) {
1287
1287
  S = t;
1288
1288
  }
1289
1289
  var ot = null;
1290
- function Ki(t) {
1291
- _ !== null && (!Ot || _.f & 2) && (ot === null ? ot = [t] : ot.push(t));
1290
+ function Yi(t) {
1291
+ _ !== null && (!Pt || _.f & 2) && (ot === null ? ot = [t] : ot.push(t));
1292
1292
  }
1293
1293
  var G = null, Y = 0, tt = null;
1294
- function Cs(t) {
1294
+ function Ms(t) {
1295
1295
  tt = t;
1296
1296
  }
1297
- var Zi = 1, Xt = 0, ie = Xt;
1297
+ var Xi = 1, Xt = 0, ie = Xt;
1298
1298
  function Hn(t) {
1299
1299
  ie = t;
1300
1300
  }
1301
- function Yi() {
1302
- return ++Zi;
1301
+ function Qi() {
1302
+ return ++Xi;
1303
1303
  }
1304
1304
  function De(t) {
1305
1305
  var e = t.f;
@@ -1307,55 +1307,55 @@ function De(t) {
1307
1307
  if (e & 2 && (t.f &= ~ze), (e & 4096) !== 0) {
1308
1308
  for (var o = t.deps, n = o.length, i = 0; i < n; i++) {
1309
1309
  var r = o[i];
1310
- if (De(r) && Li(r), r.wv > t.wv) return !0;
1310
+ if (De(r) && Oi(r), r.wv > t.wv) return !0;
1311
1311
  }
1312
1312
  e & 512 && q === null && j(t, nt);
1313
1313
  }
1314
1314
  return !1;
1315
1315
  }
1316
- function Xi(t, e, o = !0) {
1316
+ function tr(t, e, o = !0) {
1317
1317
  var n = t.reactions;
1318
- if (n !== null && !(!Ot && ot !== null && be.call(ot, t))) for (var i = 0; i < n.length; i++) {
1318
+ if (n !== null && !(!Pt && ot !== null && be.call(ot, t))) for (var i = 0; i < n.length; i++) {
1319
1319
  var r = n[i];
1320
- (r.f & 2) !== 0 ? Xi(r, e, !1) : e === r && (o ? j(r, vt) : r.f & 1024 && j(r, ce), dn(r));
1320
+ (r.f & 2) !== 0 ? tr(r, e, !1) : e === r && (o ? j(r, vt) : r.f & 1024 && j(r, ce), dn(r));
1321
1321
  }
1322
1322
  }
1323
- function Qi(t) {
1323
+ function er(t) {
1324
1324
  var e = G, o = Y, n = tt, i = _, r = ot, s = V, a = ht, u = ie, l = t.f;
1325
- G = null, Y = 0, tt = null, _ = (l & 96) === 0 ? t : null, ot = null, ye(t.ctx), ht = !1, ie = ++Xt, t.ac !== null && (Di(() => {
1325
+ G = null, Y = 0, tt = null, _ = (l & 96) === 0 ? t : null, ot = null, ye(t.ctx), ht = !1, ie = ++Xt, t.ac !== null && (Bi(() => {
1326
1326
  t.ac.abort(Mt);
1327
1327
  }), t.ac = null);
1328
1328
  try {
1329
1329
  t.f |= jn;
1330
- var d = t.fn, h = d();
1330
+ var d = t.fn, f = d();
1331
1331
  t.f |= rn;
1332
- var f = t.deps, v = A?.is_fork;
1332
+ var h = t.deps, v = x?.is_fork;
1333
1333
  if (G !== null) {
1334
1334
  var m;
1335
- if (v || Ve(t, Y), f !== null && Y > 0) for (f.length = Y + G.length, m = 0; m < G.length; m++) f[Y + m] = G[m];
1336
- else t.deps = f = G;
1337
- if (mn() && (t.f & 512) !== 0) for (m = Y; m < f.length; m++) {
1335
+ if (v || Ve(t, Y), h !== null && Y > 0) for (h.length = Y + G.length, m = 0; m < G.length; m++) h[Y + m] = G[m];
1336
+ else t.deps = h = G;
1337
+ if (mn() && (t.f & 512) !== 0) for (m = Y; m < h.length; m++) {
1338
1338
  var k;
1339
- ((k = f[m]).reactions ?? (k.reactions = [])).push(t);
1339
+ ((k = h[m]).reactions ?? (k.reactions = [])).push(t);
1340
1340
  }
1341
- } else !v && f !== null && Y < f.length && (Ve(t, Y), f.length = Y);
1342
- if (qe() && tt !== null && !ht && f !== null && (t.f & 6146) === 0) for (m = 0; m < tt.length; m++) Xi(tt[m], t);
1341
+ } else !v && h !== null && Y < h.length && (Ve(t, Y), h.length = Y);
1342
+ if (qe() && tt !== null && !ht && h !== null && (t.f & 6146) === 0) for (m = 0; m < tt.length; m++) tr(tt[m], t);
1343
1343
  if (i !== null && i !== t) {
1344
1344
  if (Xt++, i.deps !== null) for (let p = 0; p < o; p += 1) i.deps[p].rv = Xt;
1345
1345
  if (e !== null) for (const p of e) p.rv = Xt;
1346
1346
  tt !== null && (n === null ? n = tt : n.push(...tt));
1347
1347
  }
1348
- return t.f & 8388608 && (t.f ^= po), h;
1348
+ return t.f & 8388608 && (t.f ^= po), f;
1349
1349
  } catch (p) {
1350
- return bi(p);
1350
+ return wi(p);
1351
1351
  } finally {
1352
1352
  t.f ^= jn, G = e, Y = o, tt = n, _ = i, ot = r, ye(s), ht = a, ie = u;
1353
1353
  }
1354
1354
  }
1355
- function Es(t, e) {
1355
+ function Ls(t, e) {
1356
1356
  let o = e.reactions;
1357
1357
  if (o !== null) {
1358
- var n = xr.call(o, t);
1358
+ var n = _r.call(o, t);
1359
1359
  if (n !== -1) {
1360
1360
  var i = o.length - 1;
1361
1361
  i === 0 ? o = e.reactions = null : (o[n] = o[i], o.pop());
@@ -1363,12 +1363,12 @@ function Es(t, e) {
1363
1363
  }
1364
1364
  if (o === null && (e.f & 2) !== 0 && (G === null || !be.call(G, e))) {
1365
1365
  var r = e;
1366
- r.f & 512 && (r.f ^= 512, r.f &= ~ze), r.v !== N && an(r), bs(r), Ve(r, 0);
1366
+ r.f & 512 && (r.f ^= 512, r.f &= ~ze), r.v !== N && an(r), ws(r), Ve(r, 0);
1367
1367
  }
1368
1368
  }
1369
1369
  function Ve(t, e) {
1370
1370
  var o = t.deps;
1371
- if (o !== null) for (var n = e; n < o.length; n++) Es(t, o[n]);
1371
+ if (o !== null) for (var n = e; n < o.length; n++) Ls(t, o[n]);
1372
1372
  }
1373
1373
  function ke(t) {
1374
1374
  var e = t.f;
@@ -1377,9 +1377,9 @@ function ke(t) {
1377
1377
  var o = S, n = ro;
1378
1378
  S = t, ro = !0;
1379
1379
  try {
1380
- (e & 16777232) !== 0 ? xs(t) : wn(t), Fi(t);
1381
- var i = Qi(t);
1382
- t.teardown = typeof i == "function" ? i : null, t.wv = Zi;
1380
+ (e & 16777232) !== 0 ? _s(t) : wn(t), Ui(t);
1381
+ var i = er(t);
1382
+ t.teardown = typeof i == "function" ? i : null, t.wv = Xi;
1383
1383
  } finally {
1384
1384
  ro = n, S = o;
1385
1385
  }
@@ -1387,7 +1387,7 @@ function ke(t) {
1387
1387
  }
1388
1388
  function g(t) {
1389
1389
  var e = (t.f & 2) !== 0;
1390
- if (_s?.add(t), _ !== null && !ht && !(S !== null && (S.f & 16384) !== 0) && (ot === null || !be.call(ot, t))) {
1390
+ if (Es?.add(t), _ !== null && !ht && !(S !== null && (S.f & 16384) !== 0) && (ot === null || !be.call(ot, t))) {
1391
1391
  var o = _.deps;
1392
1392
  if ((_.f & 2097152) !== 0) t.rv < Xt && (t.rv = Xt, G === null && o !== null && o[Y] === t ? Y++ : G === null ? G = [t] : G.push(t));
1393
1393
  else {
@@ -1397,27 +1397,27 @@ function g(t) {
1397
1397
  i === null ? t.reactions = [_] : be.call(i, _) || i.push(_);
1398
1398
  }
1399
1399
  }
1400
- if (Pt && ne.has(t)) return ne.get(t);
1400
+ if (Ot && ne.has(t)) return ne.get(t);
1401
1401
  if (e) {
1402
1402
  var r = t;
1403
- if (Pt) {
1403
+ if (Ot) {
1404
1404
  var s = r.v;
1405
- return (!(r.f & 1024) && r.reactions !== null || er(r)) && (s = pn(r)), ne.set(r, s), s;
1405
+ return (!(r.f & 1024) && r.reactions !== null || nr(r)) && (s = pn(r)), ne.set(r, s), s;
1406
1406
  }
1407
1407
  var a = (r.f & 512) === 0 && !ht && _ !== null && (ro || (_.f & 512) !== 0), u = (r.f & rn) === 0;
1408
- De(r) && (a && (r.f |= 512), Li(r)), a && !u && (Oi(r), tr(r));
1408
+ De(r) && (a && (r.f |= 512), Oi(r)), a && !u && (Ri(r), or(r));
1409
1409
  }
1410
1410
  if (q?.has(t)) return q.get(t);
1411
1411
  if ((t.f & 8388608) !== 0) throw t.v;
1412
1412
  return t.v;
1413
1413
  }
1414
- function tr(t) {
1415
- if (t.f |= 512, t.deps !== null) for (const e of t.deps) (e.reactions ?? (e.reactions = [])).push(t), e.f & 2 && !(e.f & 512) && (Oi(e), tr(e));
1414
+ function or(t) {
1415
+ if (t.f |= 512, t.deps !== null) for (const e of t.deps) (e.reactions ?? (e.reactions = [])).push(t), e.f & 2 && !(e.f & 512) && (Ri(e), or(e));
1416
1416
  }
1417
- function er(t) {
1417
+ function nr(t) {
1418
1418
  if (t.v === N) return !0;
1419
1419
  if (t.deps === null) return !1;
1420
- for (const e of t.deps) if (ne.has(e) || (e.f & 2) !== 0 && er(e)) return !0;
1420
+ for (const e of t.deps) if (ne.has(e) || (e.f & 2) !== 0 && nr(e)) return !0;
1421
1421
  return !1;
1422
1422
  }
1423
1423
  function kn(t) {
@@ -1428,12 +1428,12 @@ function kn(t) {
1428
1428
  ht = e;
1429
1429
  }
1430
1430
  }
1431
- var ve = /* @__PURE__ */ Symbol("events"), or = /* @__PURE__ */ new Set(), Qo = /* @__PURE__ */ new Set();
1431
+ var ve = /* @__PURE__ */ Symbol("events"), ir = /* @__PURE__ */ new Set(), Qo = /* @__PURE__ */ new Set();
1432
1432
  function _e(t, e, o) {
1433
1433
  (e[ve] ?? (e[ve] = {}))[t] = o;
1434
1434
  }
1435
- function Ms(t) {
1436
- for (var e = 0; e < t.length; e++) or.add(t[e]);
1435
+ function Ps(t) {
1436
+ for (var e = 0; e < t.length; e++) ir.add(t[e]);
1437
1437
  for (var o of Qo) o(t);
1438
1438
  }
1439
1439
  var Bn = null;
@@ -1458,38 +1458,38 @@ function Fn(t) {
1458
1458
  return r || o;
1459
1459
  }
1460
1460
  });
1461
- var d = _, h = S;
1461
+ var d = _, f = S;
1462
1462
  rt(null), $t(null);
1463
1463
  try {
1464
- for (var f, v = []; r !== null; ) {
1464
+ for (var h, v = []; r !== null; ) {
1465
1465
  var m = r.assignedSlot || r.parentNode || r.host || null;
1466
1466
  try {
1467
1467
  var k = r[ve]?.[n];
1468
1468
  k != null && (!r.disabled || t.target === r) && k.call(r, t);
1469
1469
  } catch (p) {
1470
- f ? v.push(p) : f = p;
1470
+ h ? v.push(p) : h = p;
1471
1471
  }
1472
1472
  if (t.cancelBubble || m === e || m === null) break;
1473
1473
  r = m;
1474
1474
  }
1475
- if (f) {
1475
+ if (h) {
1476
1476
  for (let p of v) queueMicrotask(() => {
1477
1477
  throw p;
1478
1478
  });
1479
- throw f;
1479
+ throw h;
1480
1480
  }
1481
1481
  } finally {
1482
- t[ve] = e, delete t.currentTarget, rt(d), $t(h);
1482
+ t[ve] = e, delete t.currentTarget, rt(d), $t(f);
1483
1483
  }
1484
1484
  }
1485
1485
  }
1486
- var Ls = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (t) => t });
1487
- function Os(t) {
1488
- return Ls?.createHTML(t) ?? t;
1486
+ var Os = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (t) => t });
1487
+ function Rs(t) {
1488
+ return Os?.createHTML(t) ?? t;
1489
1489
  }
1490
- function Ps(t) {
1490
+ function js(t) {
1491
1491
  var e = vn("template");
1492
- return e.innerHTML = Os(t.replaceAll("<!>", "<!---->")), e.content;
1492
+ return e.innerHTML = Rs(t.replaceAll("<!>", "<!---->")), e.content;
1493
1493
  }
1494
1494
  function so(t, e) {
1495
1495
  var o = S;
@@ -1504,9 +1504,9 @@ function so(t, e) {
1504
1504
  function he(t, e) {
1505
1505
  var o = (e & 1) !== 0, n = (e & 2) !== 0, i, r = !t.startsWith("<!>");
1506
1506
  return () => {
1507
- if (O) return so(L, null), L;
1508
- i === void 0 && (i = Ps(r ? t : "<!>" + t), o || (i = /* @__PURE__ */ le(i)));
1509
- var s = n || Ni ? document.importNode(i, !0) : i.cloneNode(!0);
1507
+ if (P) return so(L, null), L;
1508
+ i === void 0 && (i = js(r ? t : "<!>" + t), o || (i = /* @__PURE__ */ le(i)));
1509
+ var s = n || Vi ? document.importNode(i, !0) : i.cloneNode(!0);
1510
1510
  if (o) {
1511
1511
  var a = /* @__PURE__ */ le(s), u = s.lastChild;
1512
1512
  so(a, u);
@@ -1515,32 +1515,32 @@ function he(t, e) {
1515
1515
  };
1516
1516
  }
1517
1517
  function zt(t, e) {
1518
- if (O) {
1518
+ if (P) {
1519
1519
  var o = S;
1520
1520
  (!(o.f & 32768) || o.nodes.end === null) && (o.nodes.end = L), ko();
1521
1521
  return;
1522
1522
  }
1523
1523
  t !== null && t.before(e);
1524
1524
  }
1525
- var Rs = ["touchstart", "touchmove"];
1526
- function js(t) {
1527
- return Rs.includes(t);
1525
+ var Ns = ["touchstart", "touchmove"];
1526
+ function Ws(t) {
1527
+ return Ns.includes(t);
1528
1528
  }
1529
1529
  function Gn(t, e) {
1530
1530
  var o = e == null ? "" : typeof e == "object" ? `${e}` : e;
1531
1531
  o !== (t.__t ?? (t.__t = t.nodeValue)) && (t.__t = o, t.nodeValue = `${o}`);
1532
1532
  }
1533
- function nr(t, e) {
1534
- return ir(t, e);
1533
+ function rr(t, e) {
1534
+ return sr(t, e);
1535
1535
  }
1536
- function Ns(t, e) {
1536
+ function Vs(t, e) {
1537
1537
  Xo(), e.intro = e.intro ?? !1;
1538
- const o = e.target, n = O, i = L;
1538
+ const o = e.target, n = P, i = L;
1539
1539
  try {
1540
1540
  for (var r = /* @__PURE__ */ le(o); r && (r.nodeType !== 8 || r.data !== "["); ) r = /* @__PURE__ */ St(r);
1541
1541
  if (!r) throw me;
1542
1542
  Lt(!0), U(r);
1543
- const s = ir(t, {
1543
+ const s = sr(t, {
1544
1544
  ...e,
1545
1545
  anchor: r
1546
1546
  });
@@ -1548,56 +1548,56 @@ function Ns(t, e) {
1548
1548
  } catch (s) {
1549
1549
  if (s instanceof Error && s.message.split(`
1550
1550
  `).some((a) => a.startsWith("https://svelte.dev/e/"))) throw s;
1551
- return s !== me && console.warn("Failed to hydrate: ", s), e.recover === !1 && Hr(), Xo(), zi(o), Lt(!1), nr(t, e);
1551
+ return s !== me && console.warn("Failed to hydrate: ", s), e.recover === !1 && Fr(), Xo(), Di(o), Lt(!1), rr(t, e);
1552
1552
  } finally {
1553
1553
  Lt(n), U(i);
1554
1554
  }
1555
1555
  }
1556
1556
  var to = /* @__PURE__ */ new Map();
1557
- function ir(t, { target: e, anchor: o, props: n = {}, events: i, context: r, intro: s = !0, transformError: a }) {
1557
+ function sr(t, { target: e, anchor: o, props: n = {}, events: i, context: r, intro: s = !0, transformError: a }) {
1558
1558
  Xo();
1559
- var u = void 0, l = $s(() => {
1559
+ var u = void 0, l = As(() => {
1560
1560
  var d = o ?? e.appendChild(pt());
1561
- cs(d, { pending: () => {
1561
+ ds(d, { pending: () => {
1562
1562
  } }, (v) => {
1563
- vi({});
1563
+ mi({});
1564
1564
  var m = V;
1565
- if (r && (m.c = r), i && (n.$$events = i), O && so(v, null), u = t(v, n) || {}, O && (S.nodes.end = L, L === null || L.nodeType !== 8 || L.data !== "]")) throw Io(), me;
1566
- gi();
1565
+ if (r && (m.c = r), i && (n.$$events = i), P && so(v, null), u = t(v, n) || {}, P && (S.nodes.end = L, L === null || L.nodeType !== 8 || L.data !== "]")) throw Io(), me;
1566
+ bi();
1567
1567
  }, a);
1568
- var h = /* @__PURE__ */ new Set(), f = (v) => {
1568
+ var f = /* @__PURE__ */ new Set(), h = (v) => {
1569
1569
  for (var m = 0; m < v.length; m++) {
1570
1570
  var k = v[m];
1571
- if (!h.has(k)) {
1572
- h.add(k);
1573
- var p = js(k);
1574
- for (const x of [e, document]) {
1575
- var w = to.get(x);
1576
- w === void 0 && (w = /* @__PURE__ */ new Map(), to.set(x, w));
1571
+ if (!f.has(k)) {
1572
+ f.add(k);
1573
+ var p = Ws(k);
1574
+ for (const A of [e, document]) {
1575
+ var w = to.get(A);
1576
+ w === void 0 && (w = /* @__PURE__ */ new Map(), to.set(A, w));
1577
1577
  var R = w.get(k);
1578
- R === void 0 ? (x.addEventListener(k, Fn, { passive: p }), w.set(k, 1)) : w.set(k, R + 1);
1578
+ R === void 0 ? (A.addEventListener(k, Fn, { passive: p }), w.set(k, 1)) : w.set(k, R + 1);
1579
1579
  }
1580
1580
  }
1581
1581
  }
1582
1582
  };
1583
- return f(To(or)), Qo.add(f), () => {
1584
- for (var v of h) for (const p of [e, document]) {
1583
+ return h(To(ir)), Qo.add(h), () => {
1584
+ for (var v of f) for (const p of [e, document]) {
1585
1585
  var m = to.get(p), k = m.get(v);
1586
1586
  --k == 0 ? (p.removeEventListener(v, Fn), m.delete(v), m.size === 0 && to.delete(p)) : m.set(v, k);
1587
1587
  }
1588
- Qo.delete(f), d !== o && d.parentNode?.removeChild(d);
1588
+ Qo.delete(h), d !== o && d.parentNode?.removeChild(d);
1589
1589
  };
1590
1590
  });
1591
1591
  return tn.set(u, l), u;
1592
1592
  }
1593
1593
  var tn = /* @__PURE__ */ new WeakMap();
1594
- function Ws(t, e) {
1594
+ function zs(t, e) {
1595
1595
  const o = tn.get(t);
1596
1596
  return o ? (tn.delete(t), o(e)) : Promise.resolve();
1597
1597
  }
1598
- var _t = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Lo = /* @__PURE__ */ new WeakMap(), Oo = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), Vs = class {
1598
+ var _t = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Lo = /* @__PURE__ */ new WeakMap(), Po = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), qs = class {
1599
1599
  constructor(t, e = !0) {
1600
- y(this, "anchor", void 0), I(this, _t, /* @__PURE__ */ new Map()), I(this, jt, /* @__PURE__ */ new Map()), I(this, ct, /* @__PURE__ */ new Map()), I(this, Ce, /* @__PURE__ */ new Set()), I(this, Lo, !0), I(this, Oo, (o) => {
1600
+ y(this, "anchor", void 0), I(this, _t, /* @__PURE__ */ new Map()), I(this, jt, /* @__PURE__ */ new Map()), I(this, ct, /* @__PURE__ */ new Map()), I(this, Ce, /* @__PURE__ */ new Set()), I(this, Lo, !0), I(this, Po, (o) => {
1601
1601
  if (c(_t, this).has(o)) {
1602
1602
  var n = c(_t, this).get(o), i = c(jt, this).get(n);
1603
1603
  if (i) Tn(i), c(Ce, this).delete(n);
@@ -1632,7 +1632,7 @@ var _t = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), ct =
1632
1632
  }), this.anchor = t, $(Lo, this, e);
1633
1633
  }
1634
1634
  ensure(t, e) {
1635
- var o = A, n = qi();
1635
+ var o = x, n = Hi();
1636
1636
  if (e && !c(jt, this).has(t) && !c(ct, this).has(t)) if (n) {
1637
1637
  var i = document.createDocumentFragment(), r = pt();
1638
1638
  i.append(r), c(ct, this).set(t, {
@@ -1643,17 +1643,17 @@ var _t = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), ct =
1643
1643
  if (c(_t, this).set(o, t), n) {
1644
1644
  for (const [s, a] of c(jt, this)) s === t ? o.unskip_effect(a) : o.skip_effect(a);
1645
1645
  for (const [s, a] of c(ct, this)) s === t ? o.unskip_effect(a.effect) : o.skip_effect(a.effect);
1646
- o.oncommit(c(Oo, this)), o.ondiscard(c(Un, this));
1647
- } else O && (this.anchor = L), c(Oo, this).call(this, o);
1646
+ o.oncommit(c(Po, this)), o.ondiscard(c(Un, this));
1647
+ } else P && (this.anchor = L), c(Po, this).call(this, o);
1648
1648
  }
1649
1649
  };
1650
1650
  function Ee(t, e, o = !1) {
1651
1651
  var n;
1652
- O && (n = L, ko());
1653
- var i = new Vs(t), r = o ? sn : 0;
1652
+ P && (n = L, ko());
1653
+ var i = new qs(t), r = o ? sn : 0;
1654
1654
  function s(a, u) {
1655
- if (O) {
1656
- var l = hi(n);
1655
+ if (P) {
1656
+ var l = pi(n);
1657
1657
  if (a !== parseInt(l.substring(1))) {
1658
1658
  var d = vo();
1659
1659
  U(d), i.anchor = d, Lt(!1), i.ensure(a, u), Lt(!0);
@@ -1669,17 +1669,17 @@ function Ee(t, e, o = !1) {
1669
1669
  }), a || s(-1, null);
1670
1670
  }, r);
1671
1671
  }
1672
- function zs(t, e) {
1672
+ function Ds(t, e) {
1673
1673
  return e;
1674
1674
  }
1675
- function qs(t, e, o) {
1675
+ function Hs(t, e, o) {
1676
1676
  for (var n = [], i = e.length, r, s = e.length, a = 0; a < i; a++) {
1677
- let h = e[a];
1678
- de(h, () => {
1677
+ let f = e[a];
1678
+ de(f, () => {
1679
1679
  if (r) {
1680
- if (r.pending.delete(h), r.done.add(h), r.pending.size === 0) {
1681
- var f = t.outrogroups;
1682
- en(t, To(r.done)), f.delete(r), f.size === 0 && (t.outrogroups = null);
1680
+ if (r.pending.delete(f), r.done.add(f), r.pending.size === 0) {
1681
+ var h = t.outrogroups;
1682
+ en(t, To(r.done)), h.delete(r), h.size === 0 && (t.outrogroups = null);
1683
1683
  }
1684
1684
  } else s -= 1;
1685
1685
  }, !1);
@@ -1688,7 +1688,7 @@ function qs(t, e, o) {
1688
1688
  var u = n.length === 0 && o !== null;
1689
1689
  if (u) {
1690
1690
  var l = o, d = l.parentNode;
1691
- zi(d), d.append(l), t.items.clear();
1691
+ Di(d), d.append(l), t.items.clear();
1692
1692
  }
1693
1693
  en(t, e, !u);
1694
1694
  } else r = {
@@ -1704,23 +1704,23 @@ function en(t, e, o = !0) {
1704
1704
  }
1705
1705
  for (var i = 0; i < e.length; i++) {
1706
1706
  var r = e[i];
1707
- n?.has(r) ? (r.f |= Pe, In(r, document.createDocumentFragment())) : D(e[i], o);
1707
+ n?.has(r) ? (r.f |= Oe, In(r, document.createDocumentFragment())) : D(e[i], o);
1708
1708
  }
1709
1709
  }
1710
1710
  var eo;
1711
- function Ds(t, e, o, n, i, r = null) {
1711
+ function Bs(t, e, o, n, i, r = null) {
1712
1712
  var s = t, a = /* @__PURE__ */ new Map();
1713
1713
  if ((e & 4) !== 0) {
1714
1714
  var u = t;
1715
- s = O ? U(/* @__PURE__ */ le(u)) : u.appendChild(pt());
1715
+ s = P ? U(/* @__PURE__ */ le(u)) : u.appendChild(pt());
1716
1716
  }
1717
- O && ko();
1717
+ P && ko();
1718
1718
  var l = null, d = /* @__PURE__ */ fn(() => {
1719
1719
  var w = o();
1720
- return li(w) ? w : w == null ? [] : To(w);
1721
- }), h, f = /* @__PURE__ */ new Map(), v = !0;
1720
+ return ui(w) ? w : w == null ? [] : To(w);
1721
+ }), f, h = /* @__PURE__ */ new Map(), v = !0;
1722
1722
  function m(w) {
1723
- !(p.effect.f & 16384) && (p.pending.delete(w), p.fallback = l, Hs(p, h, s, e, n), l !== null && (h.length === 0 ? (l.f & 33554432) === 0 ? Tn(l) : (l.f ^= Pe, Oe(l, null, s)) : de(l, () => {
1723
+ !(p.effect.f & 16384) && (p.pending.delete(w), p.fallback = l, Fs(p, f, s, e, n), l !== null && (f.length === 0 ? (l.f & 33554432) === 0 ? Tn(l) : (l.f ^= Oe, Pe(l, null, s)) : de(l, () => {
1724
1724
  l = null;
1725
1725
  })));
1726
1726
  }
@@ -1729,60 +1729,60 @@ function Ds(t, e, o, n, i, r = null) {
1729
1729
  }
1730
1730
  var p = {
1731
1731
  effect: yn(() => {
1732
- h = g(d);
1733
- var w = h.length;
1732
+ f = g(d);
1733
+ var w = f.length;
1734
1734
  let R = !1;
1735
- O && hi(s) === "[!" != (w === 0) && (s = vo(), U(s), Lt(!1), R = !0);
1736
- for (var x = /* @__PURE__ */ new Set(), P = A, J = qi(), H = 0; H < w; H += 1) {
1737
- O && L.nodeType === 8 && L.data === "]" && (s = L, R = !0, Lt(!1));
1738
- var B = h[H], gt = n(B, H), K = v ? null : a.get(gt);
1739
- K ? (K.v && Ie(K.v, B), K.i && Ie(K.i, H), J && P.unskip_effect(K.e)) : (K = Bs(a, v ? s : eo ?? (eo = pt()), B, gt, H, i, e, o), v || (K.e.f |= Pe), a.set(gt, K)), x.add(gt);
1735
+ P && pi(s) === "[!" != (w === 0) && (s = vo(), U(s), Lt(!1), R = !0);
1736
+ for (var A = /* @__PURE__ */ new Set(), O = x, J = Hi(), H = 0; H < w; H += 1) {
1737
+ P && L.nodeType === 8 && L.data === "]" && (s = L, R = !0, Lt(!1));
1738
+ var B = f[H], gt = n(B, H), K = v ? null : a.get(gt);
1739
+ K ? (K.v && Ie(K.v, B), K.i && Ie(K.i, H), J && O.unskip_effect(K.e)) : (K = Gs(a, v ? s : eo ?? (eo = pt()), B, gt, H, i, e, o), v || (K.e.f |= Oe), a.set(gt, K)), A.add(gt);
1740
1740
  }
1741
- if (w === 0 && r && !l && (v ? l = it(() => r(s)) : (l = it(() => r(eo ?? (eo = pt()))), l.f |= Pe)), w > x.size && Wr("", "", ""), O && w > 0 && U(vo()), !v) if (f.set(P, x), J) {
1742
- for (const [mt, He] of a) x.has(mt) || P.skip_effect(He.e);
1743
- P.oncommit(m), P.ondiscard(k);
1744
- } else m(P);
1741
+ if (w === 0 && r && !l && (v ? l = it(() => r(s)) : (l = it(() => r(eo ?? (eo = pt()))), l.f |= Oe)), w > A.size && zr("", "", ""), P && w > 0 && U(vo()), !v) if (h.set(O, A), J) {
1742
+ for (const [mt, He] of a) A.has(mt) || O.skip_effect(He.e);
1743
+ O.oncommit(m), O.ondiscard(k);
1744
+ } else m(O);
1745
1745
  R && Lt(!0), g(d);
1746
1746
  }),
1747
1747
  flags: e,
1748
1748
  items: a,
1749
- pending: f,
1749
+ pending: h,
1750
1750
  outrogroups: null,
1751
1751
  fallback: l
1752
1752
  };
1753
- v = !1, O && (s = L);
1753
+ v = !1, P && (s = L);
1754
1754
  }
1755
1755
  function Me(t) {
1756
1756
  for (; t !== null && (t.f & 32) === 0; ) t = t.next;
1757
1757
  return t;
1758
1758
  }
1759
- function Hs(t, e, o, n, i) {
1760
- var r = (n & 8) !== 0, s = e.length, a = t.items, u = Me(t.effect.first), l, d = null, h, f = [], v = [], m, k, p, w;
1761
- if (r) for (w = 0; w < s; w += 1) m = e[w], k = i(m, w), p = a.get(k).e, !(p.f & 33554432) && (p.nodes?.a?.measure(), (h ?? (h = /* @__PURE__ */ new Set())).add(p));
1759
+ function Fs(t, e, o, n, i) {
1760
+ var r = (n & 8) !== 0, s = e.length, a = t.items, u = Me(t.effect.first), l, d = null, f, h = [], v = [], m, k, p, w;
1761
+ if (r) for (w = 0; w < s; w += 1) m = e[w], k = i(m, w), p = a.get(k).e, !(p.f & 33554432) && (p.nodes?.a?.measure(), (f ?? (f = /* @__PURE__ */ new Set())).add(p));
1762
1762
  for (w = 0; w < s; w += 1) {
1763
1763
  if (m = e[w], k = i(m, w), p = a.get(k).e, t.outrogroups !== null) for (const mt of t.outrogroups) mt.pending.delete(p), mt.done.delete(p);
1764
- if (p.f & 8192 && (Tn(p), r && (p.nodes?.a?.unfix(), (h ?? (h = /* @__PURE__ */ new Set())).delete(p))), (p.f & 33554432) !== 0) if (p.f ^= Pe, p === u) Oe(p, null, o);
1764
+ if (p.f & 8192 && (Tn(p), r && (p.nodes?.a?.unfix(), (f ?? (f = /* @__PURE__ */ new Set())).delete(p))), (p.f & 33554432) !== 0) if (p.f ^= Oe, p === u) Pe(p, null, o);
1765
1765
  else {
1766
1766
  var R = d ? d.next : u;
1767
- p === t.effect.last && (t.effect.last = p.prev), p.prev && (p.prev.next = p.next), p.next && (p.next.prev = p.prev), Nt(t, d, p), Nt(t, p, R), Oe(p, R, o), d = p, f = [], v = [], u = Me(d.next);
1767
+ p === t.effect.last && (t.effect.last = p.prev), p.prev && (p.prev.next = p.next), p.next && (p.next.prev = p.prev), Nt(t, d, p), Nt(t, p, R), Pe(p, R, o), d = p, h = [], v = [], u = Me(d.next);
1768
1768
  continue;
1769
1769
  }
1770
1770
  if (p !== u) {
1771
1771
  if (l !== void 0 && l.has(p)) {
1772
- if (f.length < v.length) {
1773
- var x = v[0], P;
1774
- d = x.prev;
1775
- var J = f[0], H = f[f.length - 1];
1776
- for (P = 0; P < f.length; P += 1) Oe(f[P], x, o);
1777
- for (P = 0; P < v.length; P += 1) l.delete(v[P]);
1778
- Nt(t, J.prev, H.next), Nt(t, d, J), Nt(t, H, x), u = x, d = H, w -= 1, f = [], v = [];
1779
- } else l.delete(p), Oe(p, u, o), Nt(t, p.prev, p.next), Nt(t, p, d === null ? t.effect.first : d.next), Nt(t, d, p), d = p;
1772
+ if (h.length < v.length) {
1773
+ var A = v[0], O;
1774
+ d = A.prev;
1775
+ var J = h[0], H = h[h.length - 1];
1776
+ for (O = 0; O < h.length; O += 1) Pe(h[O], A, o);
1777
+ for (O = 0; O < v.length; O += 1) l.delete(v[O]);
1778
+ Nt(t, J.prev, H.next), Nt(t, d, J), Nt(t, H, A), u = A, d = H, w -= 1, h = [], v = [];
1779
+ } else l.delete(p), Pe(p, u, o), Nt(t, p.prev, p.next), Nt(t, p, d === null ? t.effect.first : d.next), Nt(t, d, p), d = p;
1780
1780
  continue;
1781
1781
  }
1782
- for (f = [], v = []; u !== null && u !== p; ) (l ?? (l = /* @__PURE__ */ new Set())).add(u), v.push(u), u = Me(u.next);
1782
+ for (h = [], v = []; u !== null && u !== p; ) (l ?? (l = /* @__PURE__ */ new Set())).add(u), v.push(u), u = Me(u.next);
1783
1783
  if (u === null) continue;
1784
1784
  }
1785
- !(p.f & 33554432) && f.push(p), d = p, u = Me(p.next);
1785
+ !(p.f & 33554432) && h.push(p), d = p, u = Me(p.next);
1786
1786
  }
1787
1787
  if (t.outrogroups !== null) {
1788
1788
  for (const mt of t.outrogroups) mt.pending.size === 0 && (en(t, To(mt.done)), t.outrogroups?.delete(mt));
@@ -1799,15 +1799,15 @@ function Hs(t, e, o, n, i) {
1799
1799
  for (w = 0; w < gt; w += 1) B[w].nodes?.a?.measure();
1800
1800
  for (w = 0; w < gt; w += 1) B[w].nodes?.a?.fix();
1801
1801
  }
1802
- qs(t, B, K);
1802
+ Hs(t, B, K);
1803
1803
  }
1804
1804
  }
1805
1805
  r && se(() => {
1806
- if (h !== void 0) for (p of h) p.nodes?.a?.apply();
1806
+ if (f !== void 0) for (p of f) p.nodes?.a?.apply();
1807
1807
  });
1808
1808
  }
1809
- function Bs(t, e, o, n, i, r, s, a) {
1810
- var u = (s & 1) !== 0 ? (s & 16) === 0 ? /* @__PURE__ */ Ri(o, !1, !1) : ae(o) : null, l = (s & 2) !== 0 ? ae(i) : null;
1809
+ function Gs(t, e, o, n, i, r, s, a) {
1810
+ var u = (s & 1) !== 0 ? (s & 16) === 0 ? /* @__PURE__ */ Ni(o, !1, !1) : ae(o) : null, l = (s & 2) !== 0 ? ae(i) : null;
1811
1811
  return {
1812
1812
  v: u,
1813
1813
  i: l,
@@ -1816,7 +1816,7 @@ function Bs(t, e, o, n, i, r, s, a) {
1816
1816
  }))
1817
1817
  };
1818
1818
  }
1819
- function Oe(t, e, o) {
1819
+ function Pe(t, e, o) {
1820
1820
  if (t.nodes) for (var n = t.nodes.start, i = t.nodes.end, r = e && (e.f & 33554432) === 0 ? e.nodes.start : o; n !== null; ) {
1821
1821
  var s = /* @__PURE__ */ St(n);
1822
1822
  if (r.before(n), n === i) return;
@@ -1826,8 +1826,8 @@ function Oe(t, e, o) {
1826
1826
  function Nt(t, e, o) {
1827
1827
  e === null ? t.effect.first = o : e.next = o, o === null ? t.effect.last = e : o.prev = e;
1828
1828
  }
1829
- function Fs(t, e) {
1830
- Bi(() => {
1829
+ function Us(t, e) {
1830
+ Gi(() => {
1831
1831
  var o = t.getRootNode(), n = o.host ? o : o.head ?? o.ownerDocument.head;
1832
1832
  if (!n.querySelector("#" + e.hash)) {
1833
1833
  const i = vn("style");
@@ -1843,32 +1843,32 @@ function Jn(t, e = !1) {
1843
1843
  }
1844
1844
  return n;
1845
1845
  }
1846
- function Po(t) {
1846
+ function Oo(t) {
1847
1847
  return t[0] !== "-" || t[1] !== "-" ? t.toLowerCase() : t;
1848
1848
  }
1849
- function Gs(t, e) {
1849
+ function Js(t, e) {
1850
1850
  if (e) {
1851
1851
  var o = "", n, i;
1852
1852
  if (Array.isArray(e) ? (n = e[0], i = e[1]) : n = e, t) {
1853
1853
  t = String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
1854
1854
  var r = !1, s = 0, a = !1, u = [];
1855
- n && u.push(...Object.keys(n).map(Po)), i && u.push(...Object.keys(i).map(Po));
1855
+ n && u.push(...Object.keys(n).map(Oo)), i && u.push(...Object.keys(i).map(Oo));
1856
1856
  var l = 0, d = -1;
1857
1857
  const k = t.length;
1858
- for (var h = 0; h < k; h++) {
1859
- var f = t[h];
1860
- if (a ? f === "/" && t[h - 1] === "*" && (a = !1) : r ? r === f && (r = !1) : f === "/" && t[h + 1] === "*" ? a = !0 : f === '"' || f === "'" ? r = f : f === "(" ? s++ : f === ")" && s--, !a && r === !1 && s === 0) {
1861
- if (f === ":" && d === -1) d = h;
1862
- else if (f === ";" || h === k - 1) {
1858
+ for (var f = 0; f < k; f++) {
1859
+ var h = t[f];
1860
+ if (a ? h === "/" && t[f - 1] === "*" && (a = !1) : r ? r === h && (r = !1) : h === "/" && t[f + 1] === "*" ? a = !0 : h === '"' || h === "'" ? r = h : h === "(" ? s++ : h === ")" && s--, !a && r === !1 && s === 0) {
1861
+ if (h === ":" && d === -1) d = f;
1862
+ else if (h === ";" || f === k - 1) {
1863
1863
  if (d !== -1) {
1864
- var v = Po(t.substring(l, d).trim());
1864
+ var v = Oo(t.substring(l, d).trim());
1865
1865
  if (!u.includes(v)) {
1866
- f !== ";" && h++;
1867
- var m = t.substring(l, h).trim();
1866
+ h !== ";" && f++;
1867
+ var m = t.substring(l, f).trim();
1868
1868
  o += " " + m + ";";
1869
1869
  }
1870
1870
  }
1871
- l = h + 1, d = -1;
1871
+ l = f + 1, d = -1;
1872
1872
  }
1873
1873
  }
1874
1874
  }
@@ -1885,63 +1885,63 @@ function Ro(t, e = {}, o, n) {
1885
1885
  }
1886
1886
  function Kn(t, e, o, n) {
1887
1887
  var i = t.__style;
1888
- if (O || i !== e) {
1889
- var r = Gs(e, n);
1890
- (!O || r !== t.getAttribute("style")) && (r == null ? t.removeAttribute("style") : t.style.cssText = r), t.__style = e;
1888
+ if (P || i !== e) {
1889
+ var r = Js(e, n);
1890
+ (!P || r !== t.getAttribute("style")) && (r == null ? t.removeAttribute("style") : t.style.cssText = r), t.__style = e;
1891
1891
  } else n && (Array.isArray(n) ? (Ro(t, o?.[0], n[0]), Ro(t, o?.[1], n[1], "important")) : Ro(t, o, n));
1892
1892
  return n;
1893
1893
  }
1894
- var Us = /* @__PURE__ */ Symbol("is custom element"), Js = /* @__PURE__ */ Symbol("is html"), Ks = jr ? "link" : "LINK";
1894
+ var Ks = /* @__PURE__ */ Symbol("is custom element"), Zs = /* @__PURE__ */ Symbol("is html"), Ys = Wr ? "link" : "LINK";
1895
1895
  function Zn(t, e, o, n) {
1896
- var i = Zs(t);
1897
- O && (i[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === Ks) || i[e] !== (i[e] = o) && (e === "loading" && (t[Rr] = o), o == null ? t.removeAttribute(e) : typeof o != "string" && Ys(t).includes(e) ? t[e] = o : t.setAttribute(e, o));
1896
+ var i = Xs(t);
1897
+ P && (i[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === Ys) || i[e] !== (i[e] = o) && (e === "loading" && (t[Nr] = o), o == null ? t.removeAttribute(e) : typeof o != "string" && Qs(t).includes(e) ? t[e] = o : t.setAttribute(e, o));
1898
1898
  }
1899
- function Zs(t) {
1899
+ function Xs(t) {
1900
1900
  return t.__attributes ?? (t.__attributes = {
1901
- [Us]: t.nodeName.includes("-"),
1902
- [Js]: t.namespaceURI === "http://www.w3.org/1999/xhtml"
1901
+ [Ks]: t.nodeName.includes("-"),
1902
+ [Zs]: t.namespaceURI === "http://www.w3.org/1999/xhtml"
1903
1903
  });
1904
1904
  }
1905
1905
  var Yn = /* @__PURE__ */ new Map();
1906
- function Ys(t) {
1906
+ function Qs(t) {
1907
1907
  var e = t.getAttribute("is") || t.nodeName, o = Yn.get(e);
1908
1908
  if (o) return o;
1909
1909
  Yn.set(e, o = []);
1910
1910
  for (var n, i = t, r = Element.prototype; r !== i; ) {
1911
- n = Ar(i);
1911
+ n = Cr(i);
1912
1912
  for (var s in n) n[s].set && o.push(s);
1913
- i = ci(i);
1913
+ i = di(i);
1914
1914
  }
1915
1915
  return o;
1916
1916
  }
1917
- var rr, pe = /* @__PURE__ */ new WeakMap(), yo = /* @__PURE__ */ new WeakMap(), jo = /* @__PURE__ */ new WeakMap(), Xn = /* @__PURE__ */ new WeakSet(), sr = class {
1917
+ var ar, pe = /* @__PURE__ */ new WeakMap(), yo = /* @__PURE__ */ new WeakMap(), jo = /* @__PURE__ */ new WeakMap(), Xn = /* @__PURE__ */ new WeakSet(), lr = class {
1918
1918
  constructor(t) {
1919
1919
  ln(this, Xn), I(this, pe, /* @__PURE__ */ new WeakMap()), I(this, yo, void 0), I(this, jo, void 0), $(jo, this, t);
1920
1920
  }
1921
1921
  observe(t, e) {
1922
1922
  var o = c(pe, this).get(t) || /* @__PURE__ */ new Set();
1923
- return o.add(e), c(pe, this).set(t, o), E(Xn, this, Xs).call(this).observe(t, c(jo, this)), () => {
1923
+ return o.add(e), c(pe, this).set(t, o), E(Xn, this, ta).call(this).observe(t, c(jo, this)), () => {
1924
1924
  var n = c(pe, this).get(t);
1925
1925
  n.delete(e), n.size === 0 && (c(pe, this).delete(t), c(yo, this).unobserve(t));
1926
1926
  };
1927
1927
  }
1928
1928
  };
1929
- rr = sr;
1930
- function Xs() {
1929
+ ar = lr;
1930
+ function ta() {
1931
1931
  return c(yo, this) ?? $(yo, this, new ResizeObserver((t) => {
1932
1932
  for (var e of t) {
1933
- rr.entries.set(e.target, e);
1933
+ ar.entries.set(e.target, e);
1934
1934
  for (var o of c(pe, this).get(e.target) || []) o(e);
1935
1935
  }
1936
1936
  }));
1937
1937
  }
1938
- y(sr, "entries", /* @__PURE__ */ new WeakMap());
1938
+ y(lr, "entries", /* @__PURE__ */ new WeakMap());
1939
1939
  function Qn(t, e) {
1940
1940
  return t === e || t?.[Re] === e;
1941
1941
  }
1942
1942
  function ti(t = {}, e, o, n) {
1943
1943
  var i = V.r, r = S;
1944
- return Bi(() => {
1944
+ return Gi(() => {
1945
1945
  var s, a;
1946
1946
  return bn(() => {
1947
1947
  s = a, a = n?.() || [], kn(() => {
@@ -1963,44 +1963,44 @@ function No(t, e, o, n) {
1963
1963
  var i = !$o || (o & 2) !== 0, r = (o & 8) !== 0, s = (o & 16) !== 0, a = n, u = !0, l = () => (u && (u = !1, a = s ? kn(n) : n), a);
1964
1964
  let d;
1965
1965
  if (r) {
1966
- var h = Re in t || di in t;
1967
- d = Qt(t, e)?.set ?? (h && e in t ? (x) => t[e] = x : void 0);
1966
+ var f = Re in t || fi in t;
1967
+ d = Qt(t, e)?.set ?? (f && e in t ? (A) => t[e] = A : void 0);
1968
1968
  }
1969
- var f, v = !1;
1970
- r ? [f, v] = os(() => t[e]) : f = t[e], f === void 0 && n !== void 0 && (f = l(), d && (i && Br(e), d(f)));
1969
+ var h, v = !1;
1970
+ r ? [h, v] = is(() => t[e]) : h = t[e], h === void 0 && n !== void 0 && (h = l(), d && (i && Gr(e), d(h)));
1971
1971
  var m;
1972
1972
  if (i ? m = () => {
1973
- var x = t[e];
1974
- return x === void 0 ? l() : (u = !0, x);
1973
+ var A = t[e];
1974
+ return A === void 0 ? l() : (u = !0, A);
1975
1975
  } : m = () => {
1976
- var x = t[e];
1977
- return x !== void 0 && (a = void 0), x === void 0 ? a : x;
1976
+ var A = t[e];
1977
+ return A !== void 0 && (a = void 0), A === void 0 ? a : A;
1978
1978
  }, i && (o & 4) === 0) return m;
1979
1979
  if (d) {
1980
1980
  var k = t.$$legacy;
1981
- return (function(x, P) {
1982
- return arguments.length > 0 ? ((!i || !P || k || v) && d(P ? m() : x), x) : m();
1981
+ return (function(A, O) {
1982
+ return arguments.length > 0 ? ((!i || !O || k || v) && d(O ? m() : A), A) : m();
1983
1983
  });
1984
1984
  }
1985
1985
  var p = !1, w = ((o & 1) !== 0 ? So : fn)(() => (p = !1, m()));
1986
1986
  r && g(w);
1987
1987
  var R = S;
1988
- return (function(x, P) {
1988
+ return (function(A, O) {
1989
1989
  if (arguments.length > 0) {
1990
- const J = P ? g(w) : i && r ? Yt(x) : x;
1991
- return C(w, J), p = !0, a !== void 0 && (a = J), x;
1990
+ const J = O ? g(w) : i && r ? Yt(A) : A;
1991
+ return C(w, J), p = !0, a !== void 0 && (a = J), A;
1992
1992
  }
1993
- return Pt && p || (R.f & 16384) !== 0 ? w.v : g(w);
1993
+ return Ot && p || (R.f & 16384) !== 0 ? w.v : g(w);
1994
1994
  });
1995
1995
  }
1996
- function Qs(t) {
1997
- return new ta(t);
1996
+ function ea(t) {
1997
+ return new oa(t);
1998
1998
  }
1999
- var Jt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), ta = class {
1999
+ var Jt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), oa = class {
2000
2000
  constructor(t) {
2001
2001
  I(this, Jt, void 0), I(this, bt, void 0);
2002
2002
  var e = /* @__PURE__ */ new Map(), o = (i, r) => {
2003
- var s = /* @__PURE__ */ Ri(r, !1, !1);
2003
+ var s = /* @__PURE__ */ Ni(r, !1, !1);
2004
2004
  return e.set(i, s), s;
2005
2005
  };
2006
2006
  const n = new Proxy({
@@ -2011,13 +2011,13 @@ var Jt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), ta =
2011
2011
  return g(e.get(r) ?? o(r, Reflect.get(i, r)));
2012
2012
  },
2013
2013
  has(i, r) {
2014
- return r === di ? !0 : (g(e.get(r) ?? o(r, Reflect.get(i, r))), Reflect.has(i, r));
2014
+ return r === fi ? !0 : (g(e.get(r) ?? o(r, Reflect.get(i, r))), Reflect.has(i, r));
2015
2015
  },
2016
2016
  set(i, r, s) {
2017
2017
  return C(e.get(r) ?? o(r, s), s), Reflect.set(i, r, s);
2018
2018
  }
2019
2019
  });
2020
- $(bt, this, (t.hydrate ? Ns : nr)(t.component, {
2020
+ $(bt, this, (t.hydrate ? Vs : rr)(t.component, {
2021
2021
  target: t.target,
2022
2022
  anchor: t.anchor,
2023
2023
  props: n,
@@ -2025,7 +2025,7 @@ var Jt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), ta =
2025
2025
  intro: t.intro ?? !1,
2026
2026
  recover: t.recover,
2027
2027
  transformError: t.transformError
2028
- })), !Ot && (!t?.props?.$$host || t.sync === !1) && io(), $(Jt, this, n.$$events);
2028
+ })), !Pt && (!t?.props?.$$host || t.sync === !1) && io(), $(Jt, this, n.$$events);
2029
2029
  for (const i of Object.keys(c(bt, this))) i === "$set" || i === "$destroy" || i === "$on" || fo(this, i, {
2030
2030
  get() {
2031
2031
  return c(bt, this)[i];
@@ -2038,7 +2038,7 @@ var Jt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), ta =
2038
2038
  c(bt, this).$set = (i) => {
2039
2039
  Object.assign(n, i);
2040
2040
  }, c(bt, this).$destroy = () => {
2041
- Ws(c(bt, this));
2041
+ zs(c(bt, this));
2042
2042
  };
2043
2043
  }
2044
2044
  $set(t) {
@@ -2054,8 +2054,8 @@ var Jt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), ta =
2054
2054
  $destroy() {
2055
2055
  c(bt, this).$destroy();
2056
2056
  }
2057
- }, ar;
2058
- typeof HTMLElement == "function" && (ar = class extends HTMLElement {
2057
+ }, cr;
2058
+ typeof HTMLElement == "function" && (cr = class extends HTMLElement {
2059
2059
  constructor(t, e, o) {
2060
2060
  super(), y(this, "$$ctor", void 0), y(this, "$$s", void 0), y(this, "$$c", void 0), y(this, "$$cn", !1), y(this, "$$d", {}), y(this, "$$r", !1), y(this, "$$p_d", {}), y(this, "$$l", {}), y(this, "$$l_u", /* @__PURE__ */ new Map()), y(this, "$$me", void 0), y(this, "$$shadowRoot", null), this.$$ctor = t, this.$$s = e, o && (this.$$shadowRoot = this.attachShadow(o));
2061
2061
  }
@@ -2081,14 +2081,14 @@ typeof HTMLElement == "function" && (ar = class extends HTMLElement {
2081
2081
  };
2082
2082
  };
2083
2083
  if (await Promise.resolve(), !this.$$cn || this.$$c) return;
2084
- const e = {}, o = ea(this);
2084
+ const e = {}, o = na(this);
2085
2085
  for (const n of this.$$s) n in o && (n === "default" && !this.$$d.children ? (this.$$d.children = t(n), e.default = !0) : e[n] = t(n));
2086
2086
  for (const n of this.attributes) {
2087
2087
  const i = this.$$g_p(n.name);
2088
2088
  i in this.$$d || (this.$$d[i] = ao(i, n.value, this.$$p_d, "toProp"));
2089
2089
  }
2090
2090
  for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
2091
- this.$$c = Qs({
2091
+ this.$$c = ea({
2092
2092
  component: this.$$ctor,
2093
2093
  target: this.$$shadowRoot || this,
2094
2094
  props: {
@@ -2096,7 +2096,7 @@ typeof HTMLElement == "function" && (ar = class extends HTMLElement {
2096
2096
  $$slots: e,
2097
2097
  $$host: this
2098
2098
  }
2099
- }), this.$$me = ks(() => {
2099
+ }), this.$$me = Ss(() => {
2100
2100
  bn(() => {
2101
2101
  this.$$r = !0;
2102
2102
  for (const n of ho(this.$$c)) {
@@ -2153,14 +2153,14 @@ function ao(t, e, o, n) {
2153
2153
  return e;
2154
2154
  }
2155
2155
  }
2156
- function ea(t) {
2156
+ function na(t) {
2157
2157
  const e = {};
2158
2158
  return t.childNodes.forEach((o) => {
2159
2159
  e[o.slot || "default"] = !0;
2160
2160
  }), e;
2161
2161
  }
2162
- function oa(t, e, o, n, i, r) {
2163
- let s = class extends ar {
2162
+ function ia(t, e, o, n, i, r) {
2163
+ let s = class extends cr {
2164
2164
  constructor() {
2165
2165
  super(t, o, i), this.$$p_d = e;
2166
2166
  }
@@ -2185,14 +2185,14 @@ function oa(t, e, o, n, i, r) {
2185
2185
  } });
2186
2186
  }), r && (s = r(s)), t.element = s, s;
2187
2187
  }
2188
- var na = class extends Event {
2188
+ var ra = class extends Event {
2189
2189
  constructor(t, e, o, n) {
2190
2190
  super("context-request", {
2191
2191
  bubbles: !0,
2192
2192
  composed: !0
2193
2193
  }), y(this, "context", void 0), y(this, "contextTarget", void 0), y(this, "callback", void 0), y(this, "subscribe", void 0), this.context = t, this.contextTarget = e, this.callback = o, this.subscribe = n ?? !1;
2194
2194
  }
2195
- }, ia = class {
2195
+ }, sa = class {
2196
2196
  constructor(t, e) {
2197
2197
  y(this, "host", void 0), y(this, "context", void 0), y(this, "subscribe", void 0), y(this, "onValue", void 0), y(this, "isConnected", !1), y(this, "unsubscribe", void 0), y(this, "currentValue", void 0), y(this, "handleValue", (o, n) => {
2198
2198
  n !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = n), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = o, this.onValue?.(o);
@@ -2208,15 +2208,15 @@ var na = class extends Event {
2208
2208
  return this.currentValue;
2209
2209
  }
2210
2210
  requestValue() {
2211
- this.host.dispatchEvent(new na(this.context, this.host, this.handleValue, this.subscribe));
2211
+ this.host.dispatchEvent(new ra(this.context, this.host, this.handleValue, this.subscribe));
2212
2212
  }
2213
- }, xo = (t) => t;
2214
- xo(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.runtimeContext"));
2215
- xo(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.hostRuntimeContext"));
2216
- var ra = xo(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.shellContext")), sa = xo(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.regionScopeContext"));
2217
- function lr(t, e, o) {
2213
+ }, Ao = (t) => t;
2214
+ Ao(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.runtimeContext"));
2215
+ Ao(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.hostRuntimeContext"));
2216
+ var aa = Ao(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.shellContext")), la = Ao(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.regionScopeContext"));
2217
+ function ur(t, e, o) {
2218
2218
  let n = !1;
2219
- const i = new ia(t, {
2219
+ const i = new sa(t, {
2220
2220
  context: e,
2221
2221
  subscribe: !0,
2222
2222
  onValue: (l) => {
@@ -2240,11 +2240,11 @@ function lr(t, e, o) {
2240
2240
  globalThis.clearInterval(u), t.removeEventListener("context-provider", r), i.disconnect();
2241
2241
  };
2242
2242
  }
2243
- function aa(t, e) {
2244
- return lr(t, ra, e);
2243
+ function ca(t, e) {
2244
+ return ur(t, aa, e);
2245
2245
  }
2246
- function la(t, e) {
2247
- return lr(t, sa, e);
2246
+ function ua(t, e) {
2247
+ return ur(t, la, e);
2248
2248
  }
2249
2249
  var ei;
2250
2250
  (function(t) {
@@ -2254,12 +2254,12 @@ var Dt;
2254
2254
  (function(t) {
2255
2255
  t.YELLOW = "yellow", t.GREEN = "green", t.BLUE = "blue", t.PINK = "pink", t.ORANGE = "orange", t.UNDERLINE = "underline";
2256
2256
  })(Dt || (Dt = {}));
2257
- function cr(t) {
2257
+ function dr(t) {
2258
2258
  return (...e) => {
2259
2259
  console.debug(`[${t}]`, ...e);
2260
2260
  };
2261
2261
  }
2262
- cr("I18nService");
2262
+ dr("I18nService");
2263
2263
  var Wo = {
2264
2264
  assessment: [],
2265
2265
  section: [],
@@ -2281,19 +2281,19 @@ function Wt(t, e) {
2281
2281
  if (t.find((o) => typeof o != "string") !== void 0) throw new Error(`Invalid tools config at "${e}": all entries must be strings.`);
2282
2282
  return t;
2283
2283
  }
2284
- function ca(t) {
2284
+ function da(t) {
2285
2285
  if (t != null) {
2286
2286
  if (!re(t)) throw new Error('Invalid tools config at "placement": expected an object with section/item/passage arrays.');
2287
2287
  return t;
2288
2288
  }
2289
2289
  }
2290
- function ua(t) {
2290
+ function ha(t) {
2291
2291
  if (t != null) {
2292
2292
  if (!re(t)) throw new Error('Invalid tools config at "policy": expected an object with allowed/blocked arrays.');
2293
2293
  return t;
2294
2294
  }
2295
2295
  }
2296
- function da(t, e) {
2296
+ function fa(t, e) {
2297
2297
  if (e == null) return;
2298
2298
  if (!re(e)) throw new Error(`Invalid tools config at "providers.${t}": expected an object.`);
2299
2299
  const o = e;
@@ -2302,14 +2302,14 @@ function da(t, e) {
2302
2302
  if ("provider" in o && o.provider !== void 0 && !re(o.provider)) throw new Error(`Invalid tools config at "providers.${t}.provider": expected an object.`);
2303
2303
  return o;
2304
2304
  }
2305
- function ha(t) {
2305
+ function pa(t) {
2306
2306
  if (t == null) return {};
2307
2307
  if (!re(t)) throw new Error('Invalid tools config at "providers": expected an object keyed by tool id.');
2308
2308
  const e = {};
2309
- for (const [o, n] of Object.entries(t)) e[o] = da(o, n);
2309
+ for (const [o, n] of Object.entries(t)) e[o] = fa(o, n);
2310
2310
  return e;
2311
2311
  }
2312
- function ur(t) {
2312
+ function hr(t) {
2313
2313
  return t.trim() || "";
2314
2314
  }
2315
2315
  function Vt(t) {
@@ -2317,20 +2317,20 @@ function Vt(t) {
2317
2317
  const e = /* @__PURE__ */ new Set();
2318
2318
  for (const o of t) {
2319
2319
  if (typeof o != "string") throw new Error("Invalid tools config: tool list entries must be strings.");
2320
- const n = ur(o);
2320
+ const n = hr(o);
2321
2321
  n && e.add(n);
2322
2322
  }
2323
2323
  return Array.from(e);
2324
2324
  }
2325
- function fa(t, e) {
2325
+ function va(t, e) {
2326
2326
  if (t != null) {
2327
2327
  if (t === "on" || t === "off") return t;
2328
2328
  throw new Error(`Invalid tools config at "${e}": expected "on" or "off", got ${JSON.stringify(t)}.`);
2329
2329
  }
2330
2330
  }
2331
- function pa(t) {
2331
+ function ga(t) {
2332
2332
  if (t != null && !re(t)) throw new Error('Invalid tools config: expected an object with "policy", "placement", and "providers".');
2333
- const e = ua(t?.policy), o = ca(t?.placement), n = ha(t?.providers), i = fa(t?.pnpEnforcement, "pnpEnforcement"), r = {
2333
+ const e = ha(t?.policy), o = da(t?.placement), n = pa(t?.providers), i = va(t?.pnpEnforcement, "pnpEnforcement"), r = {
2334
2334
  policy: {
2335
2335
  allowed: Vt(Wt(e?.allowed, "policy.allowed")),
2336
2336
  blocked: Vt(Wt(e?.blocked, "policy.blocked"))
@@ -2344,7 +2344,7 @@ function pa(t) {
2344
2344
  };
2345
2345
  return i && (r.pnpEnforcement = i), r;
2346
2346
  }
2347
- var va = [
2347
+ var ma = [
2348
2348
  "assessment",
2349
2349
  "section",
2350
2350
  "item",
@@ -2355,7 +2355,7 @@ var va = [
2355
2355
  function lo(t, e) {
2356
2356
  if (typeof t != "string" || t.trim().length === 0) throw new Error(`Invalid tool registration: "${e}" must be a non-empty string.`);
2357
2357
  }
2358
- var ga = [
2358
+ var ba = [
2359
2359
  {
2360
2360
  pattern: /<script\b/i,
2361
2361
  reason: "contains a <script> tag"
@@ -2373,17 +2373,17 @@ var ga = [
2373
2373
  reason: "contains a <foreignObject> element"
2374
2374
  }
2375
2375
  ];
2376
- function ma(t, e, o) {
2376
+ function ya(t, e, o) {
2377
2377
  const n = e.trimStart(), i = n.toLowerCase().startsWith("<svg"), r = /^https?:/i.test(n);
2378
2378
  if (/^data:/i.test(n)) throw new Error(`Invalid tool registration "${t}": "${o}" may not be a data: URL.`);
2379
2379
  if (!(!i && !r)) {
2380
- for (const { pattern: s, reason: a } of ga) if (s.test(e)) throw new Error(`Invalid tool registration "${t}": "${o}" ${a}. Inline SVG icons must not include scriptable content.`);
2380
+ for (const { pattern: s, reason: a } of ba) if (s.test(e)) throw new Error(`Invalid tool registration "${t}": "${o}" ${a}. Inline SVG icons must not include scriptable content.`);
2381
2381
  }
2382
2382
  }
2383
2383
  function oi(t) {
2384
2384
  if (lo(t.toolId, "toolId"), lo(t.name, "name"), lo(t.description, "description"), typeof t.icon != "string" && typeof t.icon != "function") throw new Error(`Invalid tool registration "${t.toolId}": "icon" must be a string or function.`);
2385
- if (typeof t.icon == "string" && ma(t.toolId, t.icon, "icon"), !Array.isArray(t.supportedLevels) || t.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${t.toolId}": "supportedLevels" must be a non-empty array.`);
2386
- const e = t.supportedLevels.find((o) => !va.includes(o));
2385
+ if (typeof t.icon == "string" && ya(t.toolId, t.icon, "icon"), !Array.isArray(t.supportedLevels) || t.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${t.toolId}": "supportedLevels" must be a non-empty array.`);
2386
+ const e = t.supportedLevels.find((o) => !ma.includes(o));
2387
2387
  if (e) throw new Error(`Invalid tool registration "${t.toolId}": unsupported level "${e}".`);
2388
2388
  if (t.activation !== void 0 && t.activation !== "toolbar-toggle" && t.activation !== "selection-gateway") throw new Error(`Invalid tool registration "${t.toolId}": unsupported activation "${String(t.activation)}".`);
2389
2389
  if (t.singletonScope !== void 0 && t.singletonScope !== "section") throw new Error(`Invalid tool registration "${t.toolId}": unsupported singletonScope "${String(t.singletonScope)}".`);
@@ -2392,12 +2392,12 @@ function oi(t) {
2392
2392
  if (typeof t.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${t.toolId}": "isVisibleInContext" must be a function.`);
2393
2393
  if (typeof t.renderToolbar != "function") throw new Error(`Invalid tool registration "${t.toolId}": "renderToolbar" must be a function.`);
2394
2394
  }
2395
- var ba = class {
2395
+ var wa = class {
2396
2396
  constructor() {
2397
2397
  y(this, "tools", /* @__PURE__ */ new Map()), y(this, "pnpIndex", /* @__PURE__ */ new Map()), y(this, "componentOverrides", {}), y(this, "moduleLoaders", /* @__PURE__ */ new Map()), y(this, "loadedToolModules", /* @__PURE__ */ new Set()), y(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
2398
2398
  }
2399
2399
  normalizeToolId(t) {
2400
- return ur(t);
2400
+ return hr(t);
2401
2401
  }
2402
2402
  normalizeToolIds(t) {
2403
2403
  return t.map((e) => this.normalizeToolId(e));
@@ -2531,20 +2531,20 @@ var ba = class {
2531
2531
  return n.renderToolbar(e, i);
2532
2532
  }
2533
2533
  };
2534
- function dr(t) {
2534
+ function fr(t) {
2535
2535
  return t.level === "item";
2536
2536
  }
2537
- function ya(t) {
2537
+ function Ta(t) {
2538
2538
  return t.level === "passage";
2539
2539
  }
2540
- function wa(t) {
2540
+ function Ia(t) {
2541
2541
  return t.level === "rubric";
2542
2542
  }
2543
- function hr(t) {
2543
+ function pr(t) {
2544
2544
  return t.level === "element";
2545
2545
  }
2546
2546
  function $n(t) {
2547
- if (hr(t)) {
2547
+ if (pr(t)) {
2548
2548
  const e = t.item.config;
2549
2549
  if (!e) return "";
2550
2550
  const o = [], n = (a) => a.replace(/<[^>]*>/g, " ").trim(), i = e.elements?.[t.elementId];
@@ -2557,7 +2557,7 @@ function $n(t) {
2557
2557
  }
2558
2558
  return o.filter(Boolean).join(" ").trim();
2559
2559
  }
2560
- if (dr(t)) {
2560
+ if (fr(t)) {
2561
2561
  const e = t.item;
2562
2562
  if (!e?.config) return "";
2563
2563
  const o = e.config, n = [], i = (u) => u.replace(/<[^>]*>/g, " ").trim();
@@ -2567,12 +2567,12 @@ function $n(t) {
2567
2567
  const s = o.models, a = Array.isArray(s) ? s : s && typeof s == "object" ? Object.values(s) : [];
2568
2568
  for (const u of a) if (!(!u || typeof u != "object")) {
2569
2569
  for (const l of Object.values(u)) if (typeof l == "string" && n.push(i(l)), Array.isArray(l)) {
2570
- for (const d of l) if (d && typeof d == "object") for (const h of Object.values(d)) typeof h == "string" && n.push(i(h));
2570
+ for (const d of l) if (d && typeof d == "object") for (const f of Object.values(d)) typeof f == "string" && n.push(i(f));
2571
2571
  }
2572
2572
  }
2573
2573
  return n.filter(Boolean).join(" ").trim();
2574
2574
  }
2575
- if (ya(t)) {
2575
+ if (Ta(t)) {
2576
2576
  const e = t.passage;
2577
2577
  if (!e?.config) return "";
2578
2578
  const o = e.config, n = [], i = (u) => u.replace(/<[^>]*>/g, " ").trim();
@@ -2582,12 +2582,12 @@ function $n(t) {
2582
2582
  const s = o.models, a = Array.isArray(s) ? s : s && typeof s == "object" ? Object.values(s) : [];
2583
2583
  for (const u of a) if (!(!u || typeof u != "object")) {
2584
2584
  for (const l of Object.values(u)) if (typeof l == "string" && n.push(i(l)), Array.isArray(l)) {
2585
- for (const d of l) if (d && typeof d == "object") for (const h of Object.values(d)) typeof h == "string" && n.push(i(h));
2585
+ for (const d of l) if (d && typeof d == "object") for (const f of Object.values(d)) typeof f == "string" && n.push(i(f));
2586
2586
  }
2587
2587
  }
2588
2588
  return n.filter(Boolean).join(" ").trim();
2589
2589
  }
2590
- if (wa(t)) {
2590
+ if (Ia(t)) {
2591
2591
  const e = t.rubricBlock;
2592
2592
  return e.passage?.config ? (e.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (e.content || "").replace(/<[^>]*>/g, " ").trim();
2593
2593
  }
@@ -2604,7 +2604,7 @@ function co(t) {
2604
2604
  /\d+\s*[+\-*/=]\s*\d+/
2605
2605
  ].some((o) => o.test(e));
2606
2606
  }
2607
- function Ta(t) {
2607
+ function ka(t) {
2608
2608
  const e = [
2609
2609
  "pie-multiple-choice",
2610
2610
  "pie-inline-choice",
@@ -2613,7 +2613,7 @@ function Ta(t) {
2613
2613
  "inline-choice",
2614
2614
  "select-text"
2615
2615
  ];
2616
- if (hr(t)) {
2616
+ if (pr(t)) {
2617
2617
  const o = t.item.config;
2618
2618
  if (!o?.models) return !1;
2619
2619
  const n = (Array.isArray(o.models) ? o.models : Object.values(o.models)).find((r) => r && typeof r == "object" && r.id === t.elementId);
@@ -2621,7 +2621,7 @@ function Ta(t) {
2621
2621
  const i = n.element || "";
2622
2622
  return e.includes(i);
2623
2623
  }
2624
- if (dr(t)) {
2624
+ if (fr(t)) {
2625
2625
  const o = t.item.config?.models;
2626
2626
  return (Array.isArray(o) ? o : o && typeof o == "object" ? Object.values(o) : []).some((n) => {
2627
2627
  if (!n || typeof n != "object") return !1;
@@ -2634,7 +2634,7 @@ function Ta(t) {
2634
2634
  function uo(t) {
2635
2635
  return $n(t).trim().length >= 10;
2636
2636
  }
2637
- function Ia(t) {
2637
+ function $a(t) {
2638
2638
  const e = $n(t);
2639
2639
  return [
2640
2640
  /chemistry|chemical|element|atom|molecule|compound/i,
@@ -2645,23 +2645,23 @@ function Ia(t) {
2645
2645
  /physics|force|energy|velocity|acceleration/i
2646
2646
  ].some((o) => o.test(e));
2647
2647
  }
2648
- var ka = /* @__PURE__ */ new Set([
2648
+ var Sa = /* @__PURE__ */ new Set([
2649
2649
  "assessment",
2650
2650
  "section",
2651
2651
  "item",
2652
2652
  "passage",
2653
2653
  "rubric"
2654
2654
  ]);
2655
- function $a(t) {
2656
- return ka.has(t);
2655
+ function Aa(t) {
2656
+ return Sa.has(t);
2657
2657
  }
2658
2658
  function Sn(t, e, o) {
2659
2659
  const n = t.trim(), i = o.trim();
2660
2660
  if (!n || !i) throw new Error("Tool instance ids require non-empty tool and scope ids");
2661
- if (!$a(e)) throw new Error(`Unknown tool scope level '${e}'. Register custom levels with registerToolScopeLevel().`);
2661
+ if (!Aa(e)) throw new Error(`Unknown tool scope level '${e}'. Register custom levels with registerToolScopeLevel().`);
2662
2662
  return `${n}:${e}:${i}`;
2663
2663
  }
2664
- var Sa = class {
2664
+ var xa = class {
2665
2665
  constructor() {
2666
2666
  y(this, "providerId", "desmos-calculator"), y(this, "providerName", "Desmos Calculator"), y(this, "category", "calculator"), y(this, "version", "1.10"), y(this, "requiresAuth", !0), y(this, "desmosProvider", null), y(this, "config", null);
2667
2667
  }
@@ -2738,7 +2738,7 @@ var Sa = class {
2738
2738
  destroy() {
2739
2739
  this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
2740
2740
  }
2741
- }, xa = (t, e) => {
2741
+ }, _a = (t, e) => {
2742
2742
  const o = e?.useSentenceSegmenter !== !1;
2743
2743
  try {
2744
2744
  if (!o) throw new Error("Segmenter disabled by policy");
@@ -2765,14 +2765,14 @@ var Sa = class {
2765
2765
  text: t,
2766
2766
  offset: 0
2767
2767
  }];
2768
- }, Aa = class {
2768
+ }, Ca = class {
2769
2769
  constructor() {
2770
2770
  y(this, "providerId", "browser"), y(this, "providerName", "Browser Speech Synthesis"), y(this, "version", "1.0.0");
2771
2771
  }
2772
2772
  async initialize(t) {
2773
2773
  if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
2774
2774
  if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
2775
- return new _a(t);
2775
+ return new Ea(t);
2776
2776
  }
2777
2777
  supportsFeature(t) {
2778
2778
  return !0;
@@ -2789,7 +2789,7 @@ var Sa = class {
2789
2789
  }
2790
2790
  destroy() {
2791
2791
  }
2792
- }, _a = class {
2792
+ }, Ea = class {
2793
2793
  constructor(t) {
2794
2794
  y(this, "utterance", null), y(this, "config", null), y(this, "_isPlaying", !1), y(this, "_isPaused", !1), y(this, "speakRunId", 0), y(this, "onWordBoundary", void 0), this.config = t;
2795
2795
  }
@@ -2856,7 +2856,7 @@ var Sa = class {
2856
2856
  }
2857
2857
  segmentSentences(t) {
2858
2858
  const e = this.getSegmentationPolicy();
2859
- return xa(t, {
2859
+ return _a(t, {
2860
2860
  locale: e.locale,
2861
2861
  useSentenceSegmenter: e.useSentenceSegmenter
2862
2862
  });
@@ -2899,8 +2899,8 @@ var Sa = class {
2899
2899
  o === this.speakRunId && (this._isPaused = !1);
2900
2900
  }, this.utterance.onboundary = (r) => {
2901
2901
  if (o !== this.speakRunId || (console.log("[BrowserProvider] Boundary event:", r.name, "charIndex:", r.charIndex, "charLength:", r.charLength), r.name !== "word" || !this.onWordBoundary) || this.getHighlightMode() === "sentence") return;
2902
- const s = Math.max(0, Math.min(r.charIndex, Math.max(0, t.length - 1))), a = Number(r.charLength || 0), u = this.inferWordLength(t, s), l = Number.isFinite(a) && a > 0 && a <= 80 && s + a <= t.length ? a : u, d = t.substring(s, Math.min(t.length, s + l)).trim(), h = e + s;
2903
- console.log("[BrowserProvider] Calling onWordBoundary with word:", d, "at position:", h), this.onWordBoundary(d, h, l);
2902
+ const s = Math.max(0, Math.min(r.charIndex, Math.max(0, t.length - 1))), a = Number(r.charLength || 0), u = this.inferWordLength(t, s), l = Number.isFinite(a) && a > 0 && a <= 80 && s + a <= t.length ? a : u, d = t.substring(s, Math.min(t.length, s + l)).trim(), f = e + s;
2903
+ console.log("[BrowserProvider] Calling onWordBoundary with word:", d, "at position:", f), this.onWordBoundary(d, f, l);
2904
2904
  }, speechSynthesis.speak(this.utterance);
2905
2905
  });
2906
2906
  }
@@ -2925,7 +2925,7 @@ var Sa = class {
2925
2925
  ...t.providerOptions || {}
2926
2926
  });
2927
2927
  }
2928
- }, Ca = class {
2928
+ }, Ma = class {
2929
2929
  async emitTelemetry(t, e) {
2930
2930
  try {
2931
2931
  await this.config?.onTelemetry?.(t, e);
@@ -2957,7 +2957,7 @@ var Sa = class {
2957
2957
  }
2958
2958
  async _initializeBrowserTTS(t) {
2959
2959
  if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
2960
- this.ttsProvider = new Aa(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
2960
+ this.ttsProvider = new Ca(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
2961
2961
  }
2962
2962
  async _initializeServerTTS(t) {
2963
2963
  if (!t.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
@@ -3015,7 +3015,7 @@ var Sa = class {
3015
3015
  destroy() {
3016
3016
  this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
3017
3017
  }
3018
- }, Ea = /* @__PURE__ */ new Set([
3018
+ }, La = /* @__PURE__ */ new Set([
3019
3019
  "annotation-xml",
3020
3020
  "color-profile",
3021
3021
  "font-face",
@@ -3024,16 +3024,16 @@ var Sa = class {
3024
3024
  "font-face-format",
3025
3025
  "font-face-name",
3026
3026
  "missing-glyph"
3027
- ]), Ma = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, La = (t, e = "custom element tag") => {
3027
+ ]), Pa = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, Oa = (t, e = "custom element tag") => {
3028
3028
  if (!t || typeof t != "string") throw new Error(`Invalid ${e}: expected a non-empty string`);
3029
3029
  const o = t.trim();
3030
3030
  if (!o) throw new Error(`Invalid ${e}: tag is empty`);
3031
3031
  if (o !== o.toLowerCase()) throw new Error(`Invalid ${e} "${o}": custom element names must be lowercase`);
3032
3032
  if (!o.includes("-")) throw new Error(`Invalid ${e} "${o}": custom element names must include a hyphen`);
3033
- if (Ea.has(o)) throw new Error(`Invalid ${e} "${o}": this name is reserved by the HTML spec`);
3034
- if (!Ma.test(o)) throw new Error(`Invalid ${e} "${o}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
3033
+ if (La.has(o)) throw new Error(`Invalid ${e} "${o}": this name is reserved by the HTML spec`);
3034
+ if (!Pa.test(o)) throw new Error(`Invalid ${e} "${o}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
3035
3035
  return o;
3036
- }, fr = {
3036
+ }, vr = {
3037
3037
  calculator: "pie-tool-calculator",
3038
3038
  textToSpeech: "pie-tool-text-to-speech",
3039
3039
  ruler: "pie-tool-ruler",
@@ -3046,22 +3046,38 @@ var Sa = class {
3046
3046
  annotationToolbar: "pie-tool-annotation-toolbar",
3047
3047
  graph: "pie-tool-graph",
3048
3048
  periodicTable: "pie-tool-periodic-table"
3049
- }, Oa = (t, e) => La(e?.toolTagMap?.[t] ?? fr[t] ?? t, `tool component tag for "${t}"`), Pa = (t) => document.createElement(t), yt = (t, e, o, n) => {
3050
- const i = Oa(t, n), r = n?.toolComponentFactories?.[t] ?? n?.toolComponentFactory;
3049
+ }, Ra = (t, e) => Oa(e?.toolTagMap?.[t] ?? vr[t] ?? t, `tool component tag for "${t}"`), ja = (t) => document.createElement(t), yt = (t, e, o, n) => {
3050
+ const i = Ra(t, n), r = n?.toolComponentFactories?.[t] ?? n?.toolComponentFactory;
3051
3051
  return r ? r({
3052
3052
  toolId: t,
3053
3053
  tagName: i,
3054
3054
  context: e,
3055
3055
  toolbarContext: o
3056
- }) : Pa(i);
3057
- }, Ra = {
3056
+ }) : ja(i);
3057
+ };
3058
+ function ni(t) {
3059
+ return t === "basic" || t === "scientific" ? t : null;
3060
+ }
3061
+ function Na(t) {
3062
+ const e = t.getToolRenderParams?.("calculator") ?? {}, o = ni(e.calculatorType), n = e.availableTypes;
3063
+ return {
3064
+ calculatorType: o,
3065
+ availableTypes: Array.isArray(n) ? n.map((i) => ni(i)).filter((i) => i !== null) : o ? [o] : null,
3066
+ displayName: o === "scientific" ? "Scientific Calculator" : o === "basic" ? "Basic Calculator" : "Calculator"
3067
+ };
3068
+ }
3069
+ function ii(t, e, o) {
3070
+ const n = t;
3071
+ e ? (n.calculatorType = e, t.setAttribute("calculator-type", e)) : (delete n.calculatorType, t.removeAttribute("calculator-type")), o && o.length > 0 ? n.availableTypes = o : delete n.availableTypes;
3072
+ }
3073
+ var Wa = {
3058
3074
  toolId: "calculator",
3059
3075
  name: "Calculator",
3060
3076
  description: "Multi-type calculator (basic, scientific, graphing)",
3061
3077
  icon: "calculator",
3062
3078
  provider: {
3063
3079
  getProviderId: (t) => typeof t?.provider?.id == "string" && t.provider.id.length > 0 ? t.provider.id : "calculator-desmos",
3064
- createProvider: () => new Sa(),
3080
+ createProvider: () => new xa(),
3065
3081
  getInitConfig: (t) => t?.provider?.init ?? {},
3066
3082
  getAuthFetcher: (t) => {
3067
3083
  const e = t?.provider?.runtime?.authFetcher;
@@ -3087,23 +3103,23 @@ var Sa = class {
3087
3103
  return co(t);
3088
3104
  },
3089
3105
  renderToolbar(t, e) {
3090
- const o = Sn(this.toolId, e.scope.level, e.scope.scopeId), n = e.componentOverrides, i = yt(this.toolId, t, e, n);
3091
- i.setAttribute("tool-id", o), i.toolkitCoordinator = e.toolkitCoordinator;
3092
- const r = {
3106
+ const { calculatorType: o, availableTypes: n, displayName: i } = Na(e), r = Sn(this.toolId, e.scope.level, e.scope.scopeId), s = e.componentOverrides, a = yt(this.toolId, t, e, s);
3107
+ a.setAttribute("tool-id", r), a.toolkitCoordinator = e.toolkitCoordinator, ii(a, o, n);
3108
+ const u = o === null ? "Open scientific calculator" : `Open ${i.toLowerCase()}`, l = o === null ? "Close scientific calculator" : `Close ${i.toLowerCase()}`, d = {
3093
3109
  toolId: this.toolId,
3094
- label: this.name,
3110
+ label: i,
3095
3111
  icon: typeof this.icon == "function" ? this.icon(t) : this.icon,
3096
3112
  disabled: !1,
3097
- ariaLabel: "Open scientific calculator",
3098
- tooltip: "Calculator",
3113
+ ariaLabel: u,
3114
+ tooltip: i,
3099
3115
  onClick: () => e.toggleTool(this.toolId),
3100
- active: e.isToolVisible(o)
3116
+ active: e.isToolVisible(r)
3101
3117
  };
3102
- let s = r.active;
3103
- return i.visible = r.active, {
3118
+ let f = d.active;
3119
+ return a.visible = d.active, {
3104
3120
  toolId: this.toolId,
3105
3121
  elements: [{
3106
- element: i,
3122
+ element: a,
3107
3123
  mount: "after-buttons",
3108
3124
  shell: {
3109
3125
  title: this.name,
@@ -3116,24 +3132,24 @@ var Sa = class {
3116
3132
  minHeight: 420
3117
3133
  }
3118
3134
  }],
3119
- button: r,
3135
+ button: d,
3120
3136
  sync: () => {
3121
- const a = e.isToolVisible(o);
3122
- r.active = a, r.ariaLabel = a ? "Close scientific calculator" : "Open scientific calculator", r.tooltip = a ? "Close calculator" : "Calculator", s !== a && (i.visible = a, s = a), i.toolkitCoordinator !== e.toolkitCoordinator && (i.toolkitCoordinator = e.toolkitCoordinator);
3137
+ const h = e.isToolVisible(r);
3138
+ d.active = h, d.label = i, d.ariaLabel = h ? l : u, d.tooltip = h ? `Close ${i.toLowerCase()}` : i, f !== h && (a.visible = h, f = h), a.toolkitCoordinator !== e.toolkitCoordinator && (a.toolkitCoordinator = e.toolkitCoordinator), ii(a, o, n);
3123
3139
  },
3124
- subscribeActive: (a) => e.subscribeVisibility ? e.subscribeVisibility(() => {
3125
- a(e.isToolVisible(o));
3140
+ subscribeActive: (h) => e.subscribeVisibility ? e.subscribeVisibility(() => {
3141
+ h(e.isToolVisible(r));
3126
3142
  }) : () => {
3127
3143
  }
3128
3144
  };
3129
3145
  }
3130
- }, ja = /* @__PURE__ */ new Set([
3146
+ }, Va = /* @__PURE__ */ new Set([
3131
3147
  "reserved-row",
3132
3148
  "expanding-row",
3133
3149
  "floating-overlay",
3134
3150
  "left-aligned"
3135
- ]), ni = (t) => t && typeof t == "object" ? t : {}, Na = (t) => t === "polly" || t === "google" || t === "server", Q = (t, e) => t === void 0 ? e : t, wo = (t, e = "left-aligned") => typeof t == "string" && ja.has(t) ? t : e, ii = Object.freeze([0.8, 1.25]), zo = (t) => {
3136
- if (!Array.isArray(t)) return [...ii];
3151
+ ]), ri = (t) => t && typeof t == "object" ? t : {}, za = (t) => t === "polly" || t === "google" || t === "server", Q = (t, e) => t === void 0 ? e : t, wo = (t, e = "left-aligned") => typeof t == "string" && Va.has(t) ? t : e, si = Object.freeze([0.8, 1.25]), zo = (t) => {
3152
+ if (!Array.isArray(t)) return [...si];
3137
3153
  if (t.length === 0) return [];
3138
3154
  const e = /* @__PURE__ */ new Set();
3139
3155
  for (const o of t) {
@@ -3141,13 +3157,13 @@ var Sa = class {
3141
3157
  const n = Math.round(o * 100) / 100;
3142
3158
  n !== 1 && e.add(n);
3143
3159
  }
3144
- return e.size ? Array.from(e) : [...ii];
3145
- }, Wa = (t) => {
3160
+ return e.size ? Array.from(e) : [...si];
3161
+ }, qa = (t) => {
3146
3162
  const e = {
3147
3163
  ...t,
3148
3164
  layoutMode: wo(t.layoutMode)
3149
3165
  }, o = t.backend || "browser";
3150
- if (!Na(o)) return e;
3166
+ if (!za(o)) return e;
3151
3167
  const n = {
3152
3168
  ...e,
3153
3169
  apiEndpoint: Q(e.apiEndpoint, "/api/tts"),
@@ -3169,13 +3185,13 @@ var Sa = class {
3169
3185
  defaultVoice: Q(n.defaultVoice, "en-US-Wavenet-A")
3170
3186
  } : n;
3171
3187
  }, qo = (t) => {
3172
- const e = ni(t), o = ni(t?.settings);
3173
- return Wa({
3188
+ const e = ri(t), o = ri(t?.settings);
3189
+ return qa({
3174
3190
  ...e,
3175
3191
  ...o
3176
3192
  });
3177
- }, on = (t) => t.backend || "browser", pr = (t, e) => e === "polly" || e === "google" ? e : t.serverProvider || t.provider, vr = (t, e) => t.transportMode || (e === "custom" ? "custom" : "pie"), Va = (t) => {
3178
- const e = on(t), o = pr(t, e), n = vr(t, o);
3193
+ }, on = (t) => t.backend || "browser", gr = (t, e) => e === "polly" || e === "google" ? e : t.serverProvider || t.provider, mr = (t, e) => t.transportMode || (e === "custom" ? "custom" : "pie"), Da = (t) => {
3194
+ const e = on(t), o = gr(t, e), n = mr(t, o);
3179
3195
  return {
3180
3196
  voice: t.defaultVoice,
3181
3197
  rate: t.rate,
@@ -3199,8 +3215,8 @@ var Sa = class {
3199
3215
  includeAuthOnAssetFetch: t.includeAuthOnAssetFetch,
3200
3216
  validateEndpoint: t.validateEndpoint
3201
3217
  };
3202
- }, gr = (t) => wo(t.layoutMode), za = (t) => {
3203
- switch (gr(t)) {
3218
+ }, br = (t) => wo(t.layoutMode), Ha = (t) => {
3219
+ switch (br(t)) {
3204
3220
  case "reserved-row":
3205
3221
  return {
3206
3222
  mount: "before-buttons",
@@ -3226,21 +3242,21 @@ var Sa = class {
3226
3242
  }
3227
3243
  };
3228
3244
  }
3229
- }, Le = /* @__PURE__ */ new Map(), qa = "__pieToolElementUnmount", ri = "pie-tool-active-change", Da = {
3245
+ }, Le = /* @__PURE__ */ new Map(), Ba = "__pieToolElementUnmount", ai = "pie-tool-active-change", Fa = {
3230
3246
  toolId: "textToSpeech",
3231
3247
  name: "Text to Speech",
3232
3248
  description: "Read content aloud",
3233
3249
  icon: "volume-up",
3234
3250
  provider: {
3235
3251
  getProviderId: () => "tts",
3236
- createProvider: (t) => new Ca(on(qo(t))),
3252
+ createProvider: (t) => new Ma(on(qo(t))),
3237
3253
  getInitConfig: (t) => {
3238
- const e = qo(t), o = on(e), n = pr(e, o);
3254
+ const e = qo(t), o = on(e), n = gr(e, o);
3239
3255
  return {
3240
3256
  backend: o,
3241
3257
  serverProvider: n,
3242
- transportMode: vr(e, n),
3243
- ...Va(e)
3258
+ transportMode: mr(e, n),
3259
+ ...Da(e)
3244
3260
  };
3245
3261
  },
3246
3262
  getAuthFetcher: (t) => {
@@ -3266,12 +3282,12 @@ var Sa = class {
3266
3282
  return uo(t);
3267
3283
  },
3268
3284
  renderToolbar(t, e) {
3269
- const o = () => qo(e.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), n = () => zo(o().speedOptions), i = () => gr(o()), r = () => za(o()), s = Sn(this.toolId, e.scope.level, e.scope.scopeId), a = () => {
3285
+ const o = () => qo(e.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), n = () => zo(o().speedOptions), i = () => br(o()), r = () => Ha(o()), s = Sn(this.toolId, e.scope.level, e.scope.scopeId), a = () => {
3270
3286
  const d = e.ui?.size;
3271
3287
  return d === "sm" || d === "lg" ? d : "md";
3272
3288
  }, u = () => {
3273
3289
  let d = Le.get(s);
3274
- return d && typeof d.isConnected == "boolean" && !d.isConnected && (Le.delete(s), d = void 0), d || (d = document.createElement("pie-tool-tts-inline"), d[qa] = () => {
3290
+ return d && typeof d.isConnected == "boolean" && !d.isConnected && (Le.delete(s), d = void 0), d || (d = document.createElement("pie-tool-tts-inline"), d[Ba] = () => {
3275
3291
  Le.get(s) === d && Le.delete(s);
3276
3292
  }, Le.set(s, d)), d.setAttribute("tool-id", s), d.setAttribute("catalog-id", e.catalogId || e.itemId), d.setAttribute("language", e.language || "en-US"), d.setAttribute("size", a()), d.setAttribute("layout-mode", i()), d.speedOptions = n(), d;
3277
3293
  }, l = r();
@@ -3287,12 +3303,12 @@ var Sa = class {
3287
3303
  } }
3288
3304
  }],
3289
3305
  subscribeActive: (d) => {
3290
- const h = u(), f = (v) => {
3306
+ const f = u(), h = (v) => {
3291
3307
  const m = v.detail;
3292
3308
  d(m?.active === !0);
3293
3309
  };
3294
- return h.addEventListener(ri, f), () => {
3295
- h.removeEventListener(ri, f);
3310
+ return f.addEventListener(ai, h), () => {
3311
+ f.removeEventListener(ai, h);
3296
3312
  };
3297
3313
  },
3298
3314
  sync: () => {
@@ -3320,9 +3336,9 @@ function Et(t) {
3320
3336
  function Do(t, e) {
3321
3337
  t.setAttribute("data-pie-tool-surface", e);
3322
3338
  }
3323
- var Ha = [
3324
- Ra,
3325
- Da,
3339
+ var Ga = [
3340
+ Wa,
3341
+ Fa,
3326
3342
  {
3327
3343
  toolId: "ruler",
3328
3344
  name: "Ruler",
@@ -3422,7 +3438,7 @@ var Ha = [
3422
3438
  "choiceMasking"
3423
3439
  ],
3424
3440
  isVisibleInContext(t) {
3425
- return Ta(t);
3441
+ return ka(t);
3426
3442
  },
3427
3443
  renderToolbar(t, e) {
3428
3444
  const o = Ct(this.toolId, e), n = e.componentOverrides ?? {}, i = yt(this.toolId, t, e, n);
@@ -3734,7 +3750,7 @@ var Ha = [
3734
3750
  "elementReference"
3735
3751
  ],
3736
3752
  isVisibleInContext(t) {
3737
- return Ia(t);
3753
+ return $a(t);
3738
3754
  },
3739
3755
  renderToolbar(t, e) {
3740
3756
  const o = Ct(this.toolId, e), n = {
@@ -3776,36 +3792,36 @@ var Ha = [
3776
3792
  }
3777
3793
  }
3778
3794
  ];
3779
- function Ba(t = {}) {
3780
- const e = new ba(), o = {
3795
+ function Ua(t = {}) {
3796
+ const e = new wa(), o = {
3781
3797
  toolTagMap: {
3782
- ...fr,
3798
+ ...vr,
3783
3799
  ...t.toolTagMap || {}
3784
3800
  },
3785
3801
  toolComponentFactory: t.toolComponentFactory,
3786
3802
  toolComponentFactories: t.toolComponentFactories
3787
3803
  }, n = (i) => t.overrides?.[i.toolId] || i;
3788
- return t.includePackagedTools && Fa(e, {
3804
+ return t.includePackagedTools && Ja(e, {
3789
3805
  toolIds: t.toolIds,
3790
3806
  applyOverrides: n
3791
3807
  }), t.toolModuleLoaders && Object.keys(t.toolModuleLoaders).length > 0 && e.setToolModuleLoaders(t.toolModuleLoaders), e.setComponentOverrides(o), e;
3792
3808
  }
3793
- function Fa(t, e = {}) {
3809
+ function Ja(t, e = {}) {
3794
3810
  const o = e.toolIds && e.toolIds.length > 0 ? new Set(e.toolIds) : null, n = e.applyOverrides || ((i) => i);
3795
- for (const i of Ha) o && !o.has(i.toolId) || t.register(n(i));
3811
+ for (const i of Ga) o && !o.has(i.toolId) || t.register(n(i));
3796
3812
  }
3797
- function Ga(t = {}) {
3798
- return Ba({
3813
+ function Ka(t = {}) {
3814
+ return Ua({
3799
3815
  ...t,
3800
3816
  includePackagedTools: !0
3801
3817
  });
3802
3818
  }
3803
- function Ua() {
3804
- const t = Ga(), e = /* @__PURE__ */ new Set();
3819
+ function Za() {
3820
+ const t = Ka(), e = /* @__PURE__ */ new Set();
3805
3821
  for (const o of t.getAllTools()) for (const n of o.pnpSupportIds || []) e.add(n);
3806
3822
  return [...e].sort();
3807
3823
  }
3808
- [...Ua()];
3824
+ [...Za()];
3809
3825
  Object.values({
3810
3826
  visual: {
3811
3827
  magnification: "magnification",
@@ -3920,16 +3936,16 @@ Object.values({
3920
3936
  tutorialAvailable: "tutorialAvailable"
3921
3937
  }
3922
3938
  }).flatMap((t) => Object.values(t));
3923
- cr("ToolCoordinator");
3924
- var si;
3939
+ dr("ToolCoordinator");
3940
+ var li;
3925
3941
  (function(t) {
3926
3942
  t[t.BASE = 0] = "BASE", t[t.TOOL = 1e3] = "TOOL", t[t.MODAL = 2e3] = "MODAL", t[t.CONTROL = 3e3] = "CONTROL", t[t.HIGHLIGHT = 4e3] = "HIGHLIGHT";
3927
- })(si || (si = {}));
3928
- var ai;
3943
+ })(li || (li = {}));
3944
+ var ci;
3929
3945
  (function(t) {
3930
3946
  t.IDLE = "idle", t.LOADING = "loading", t.PLAYING = "playing", t.PAUSED = "paused", t.ERROR = "error";
3931
- })(ai || (ai = {}));
3932
- pa({
3947
+ })(ci || (ci = {}));
3948
+ ga({
3933
3949
  policy: {
3934
3950
  allowed: [],
3935
3951
  blocked: []
@@ -3941,7 +3957,7 @@ pa({
3941
3957
  },
3942
3958
  providers: {}
3943
3959
  });
3944
- var Ja = /* @__PURE__ */ he('<button class="pie-tool-annotation-toolbar__highlight-swatch svelte-g8qu62"><span class="pie-sr-only svelte-g8qu62"> </span></button>'), Ka = /* @__PURE__ */ he('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Read selected text aloud" title="Read Aloud"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z"></path></svg></button>', 1), Za = /* @__PURE__ */ he('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--warning svelte-g8qu62" aria-label="Remove this annotation" title="Remove"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"></path></svg></button>'), Ya = /* @__PURE__ */ he('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--danger svelte-g8qu62" aria-label="Clear all annotations from document" title="Clear All">Clear All</button>'), Xa = /* @__PURE__ */ he('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <!> <!>', 1), Qa = /* @__PURE__ */ he('<div class="pie-tool-annotation-toolbar notranslate svelte-g8qu62" role="toolbar" aria-label="Text annotation toolbar" translate="no"><!> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Underline selected text" title="Underline"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z"></path></svg></button> <!> <!></div>'), tl = /* @__PURE__ */ he('<div style="display: none;" aria-hidden="true"></div> <!> <div role="status" aria-live="polite" aria-atomic="true" class="pie-sr-only svelte-g8qu62"> </div>', 1), el = {
3960
+ var Ya = /* @__PURE__ */ he('<button class="pie-tool-annotation-toolbar__highlight-swatch svelte-g8qu62"><span class="pie-sr-only svelte-g8qu62"> </span></button>'), Xa = /* @__PURE__ */ he('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Read selected text aloud" title="Read Aloud"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z"></path></svg></button>', 1), Qa = /* @__PURE__ */ he('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--warning svelte-g8qu62" aria-label="Remove this annotation" title="Remove"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"></path></svg></button>'), tl = /* @__PURE__ */ he('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--danger svelte-g8qu62" aria-label="Clear all annotations from document" title="Clear All">Clear All</button>'), el = /* @__PURE__ */ he('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <!> <!>', 1), ol = /* @__PURE__ */ he('<div class="pie-tool-annotation-toolbar notranslate svelte-g8qu62" role="toolbar" aria-label="Text annotation toolbar" translate="no"><!> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Underline selected text" title="Underline"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z"></path></svg></button> <!> <!></div>'), nl = /* @__PURE__ */ he('<div style="display: none;" aria-hidden="true"></div> <!> <div role="status" aria-live="polite" aria-atomic="true" class="pie-sr-only svelte-g8qu62"> </div>', 1), il = {
3945
3961
  hash: "svelte-g8qu62",
3946
3962
  code: `.pie-tool-annotation-toolbar.svelte-g8qu62 {position:fixed;z-index:4200;display:flex;gap:0.25rem;padding:0.5rem;border-radius:0.5rem;background:var(--pie-background, #fff);color:var(--pie-text, #111827);border:1px solid var(--pie-border, #d1d5db);box-shadow:0 10px 25px -8px rgb(0 0 0 / 0.3);user-select:none;}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62 {width:2.5rem;height:2rem;border:2px solid color-mix(in srgb, var(--pie-border-dark, #111827) 20%, transparent);border-radius:0.375rem;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;padding:0;}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62:hover {transform:scale(1.1);border-color:color-mix(in srgb, var(--pie-border-dark, #111827) 45%, transparent);box-shadow:0 2px 8px rgb(0 0 0 / 0.15);}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #3f51b5));outline-offset:2px;}.pie-tool-annotation-toolbar.svelte-g8qu62 .divider-horizontal:where(.svelte-g8qu62) {height:auto;width:1px;background-color:color-mix(in srgb, var(--pie-border, #d1d5db) 70%, transparent);}
3947
3963
 
@@ -3949,8 +3965,8 @@ var Ja = /* @__PURE__ */ he('<button class="pie-tool-annotation-toolbar__highlig
3949
3965
 
3950
3966
  /* Button styling */.pie-tool-annotation-toolbar__button.svelte-g8qu62 {display:inline-flex;align-items:center;justify-content:center;gap:0.35rem;padding:0.4rem 0.55rem;border:1px solid var(--pie-button-border, #d1d5db);border-radius:0.4rem;background:var(--pie-button-bg, #fff);color:var(--pie-button-color, var(--pie-text, #111827));cursor:pointer;}.pie-tool-annotation-toolbar__button--icon.svelte-g8qu62 {min-width:2rem;min-height:2rem;padding:0.45rem;}.pie-tool-annotation-toolbar__button.svelte-g8qu62:hover {background:var(--pie-button-hover-bg, #f9fafb);color:var(--pie-button-hover-color, var(--pie-text, #111827));border-color:var(--pie-button-hover-border, #9ca3af);}.pie-tool-annotation-toolbar__button.svelte-g8qu62:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #3f51b5));outline-offset:2px;}.pie-tool-annotation-toolbar__button.svelte-g8qu62:disabled {opacity:0.6;cursor:not-allowed;}.pie-tool-annotation-toolbar__button--warning.svelte-g8qu62 {color:var(--pie-missing-icon, #92400e);}.pie-tool-annotation-toolbar__button--danger.svelte-g8qu62 {color:var(--pie-incorrect-icon, #b91c1c);}.pie-tool-annotation-toolbar__button.svelte-g8qu62 svg:where(.svelte-g8qu62) {width:18px;height:18px;}`
3951
3967
  };
3952
- function ol(t, e) {
3953
- vi(e, !0), Fs(t, el);
3968
+ function rl(t, e) {
3969
+ mi(e, !0), Us(t, il);
3954
3970
  let o = No(e, "enabled", 7, !0), n = No(e, "highlightCoordinator", 7, null), i = No(e, "ttsService", 7, null);
3955
3971
  const r = typeof window < "u", s = "pie-annotations", a = [
3956
3972
  {
@@ -3984,7 +4000,7 @@ function ol(t, e) {
3984
4000
  '[role="button"]',
3985
4001
  '[role="textbox"]'
3986
4002
  ];
3987
- let l = /* @__PURE__ */ W(null), d = /* @__PURE__ */ W(null), h = /* @__PURE__ */ W(null), f = /* @__PURE__ */ W(null), v = /* @__PURE__ */ W(Yt({
4003
+ let l = /* @__PURE__ */ W(null), d = /* @__PURE__ */ W(null), f = /* @__PURE__ */ W(null), h = /* @__PURE__ */ W(null), v = /* @__PURE__ */ W(Yt({
3988
4004
  isVisible: !1,
3989
4005
  selectedText: "",
3990
4006
  selectedRange: null,
@@ -3992,20 +4008,20 @@ function ol(t, e) {
3992
4008
  x: 0,
3993
4009
  y: 0
3994
4010
  }
3995
- })), m = /* @__PURE__ */ W(!1), k = /* @__PURE__ */ W(!1), p = /* @__PURE__ */ W(""), w = /* @__PURE__ */ W(0), R = /* @__PURE__ */ W(null), x = /* @__PURE__ */ Eo(() => g(w) > 0), P = /* @__PURE__ */ Eo(() => g(R) !== null), J = /* @__PURE__ */ Eo(() => g(f)?.scopeElement || g(h)?.scopeElement || null);
4011
+ })), m = /* @__PURE__ */ W(!1), k = /* @__PURE__ */ W(!1), p = /* @__PURE__ */ W(""), w = /* @__PURE__ */ W(0), R = /* @__PURE__ */ W(null), A = /* @__PURE__ */ Eo(() => g(w) > 0), O = /* @__PURE__ */ Eo(() => g(R) !== null), J = /* @__PURE__ */ Eo(() => g(h)?.scopeElement || g(f)?.scopeElement || null);
3996
4012
  function H() {
3997
4013
  const b = g(l)?.ownerDocument;
3998
4014
  return g(J) || b?.documentElement || document.documentElement;
3999
4015
  }
4000
4016
  function B() {
4001
- return `${s}:${g(h)?.canonicalItemId || g(h)?.itemId || "global"}`;
4017
+ return `${s}:${g(f)?.canonicalItemId || g(f)?.itemId || "global"}`;
4002
4018
  }
4003
4019
  function gt(b) {
4004
4020
  if (!n()) return null;
4005
4021
  const T = n().getAnnotations();
4006
4022
  for (const M of T) {
4007
- const st = b.compareBoundaryPoints(Range.START_TO_START, M.range), Ft = b.compareBoundaryPoints(Range.END_TO_END, M.range), Se = b.compareBoundaryPoints(Range.START_TO_END, M.range), Ao = b.compareBoundaryPoints(Range.END_TO_START, M.range);
4008
- if (st >= 0 && Ft <= 0 || st <= 0 && Ft >= 0 || Se > 0 && Ao < 0) return M.id;
4023
+ const st = b.compareBoundaryPoints(Range.START_TO_START, M.range), Ft = b.compareBoundaryPoints(Range.END_TO_END, M.range), Se = b.compareBoundaryPoints(Range.START_TO_END, M.range), xo = b.compareBoundaryPoints(Range.END_TO_START, M.range);
4024
+ if (st >= 0 && Ft <= 0 || st <= 0 && Ft >= 0 || Se > 0 && xo < 0) return M.id;
4009
4025
  }
4010
4026
  return null;
4011
4027
  }
@@ -4033,7 +4049,7 @@ function ol(t, e) {
4033
4049
  console.error("[AnnotationToolbar] Failed to save annotations:", b);
4034
4050
  }
4035
4051
  }
4036
- function mr() {
4052
+ function yr() {
4037
4053
  if (!(!r || !n())) try {
4038
4054
  const b = sessionStorage.getItem(B());
4039
4055
  if (!b) return;
@@ -4046,9 +4062,9 @@ function ol(t, e) {
4046
4062
  function Be() {
4047
4063
  if (!o() || !r) return;
4048
4064
  const b = window.getSelection();
4049
- if (!b || b.rangeCount === 0) return At();
4065
+ if (!b || b.rangeCount === 0) return xt();
4050
4066
  const T = b.getRangeAt(0), M = b.toString().trim();
4051
- if (!M || !mt(T) || !K(T.commonAncestorContainer)) return At();
4067
+ if (!M || !mt(T) || !K(T.commonAncestorContainer)) return xt();
4052
4068
  const st = T.getBoundingClientRect(), Ft = st.left + st.width / 2, Se = st.top - 8;
4053
4069
  C(R, gt(T), !0), g(v).isVisible = !0, g(v).selectedText = M, g(v).selectedRange = T.cloneRange(), g(v).toolbarPosition = {
4054
4070
  x: Ft,
@@ -4059,19 +4075,19 @@ function ol(t, e) {
4059
4075
  C(k, !1);
4060
4076
  }, 100);
4061
4077
  }
4062
- function At() {
4078
+ function xt() {
4063
4079
  g(m) && i() && (i().stop(), C(m, !1)), g(v).isVisible = !1, g(v).selectedText = "", g(v).selectedRange = null;
4064
4080
  }
4065
- function xn(b) {
4081
+ function An(b) {
4066
4082
  if (!g(v).selectedRange || !n()) return;
4067
4083
  const T = g(v).selectedText;
4068
4084
  n().addAnnotation(g(v).selectedRange, b), C(w, n().getAnnotations().length, !0), He();
4069
4085
  const M = b === Dt.UNDERLINE ? "underlined" : `highlighted in ${b}`;
4070
4086
  C(p, `"${T.length > 30 ? T.substring(0, 30) + "..." : T}" ${M}`), setTimeout(() => {
4071
4087
  C(p, "");
4072
- }, 3e3), At();
4088
+ }, 3e3), xt();
4073
4089
  }
4074
- function br() {
4090
+ function wr() {
4075
4091
  if (!g(R) || !n()) {
4076
4092
  console.warn("[AnnotationToolbar] No overlapping annotation to remove");
4077
4093
  return;
@@ -4087,15 +4103,15 @@ function ol(t, e) {
4087
4103
  const M = n().getAnnotations().length;
4088
4104
  C(w, M, !0), console.log("[AnnotationToolbar] Annotations remaining:", M), He(), C(p, `Removed annotation from "${T.length > 30 ? T.substring(0, 30) + "..." : T}"`), setTimeout(() => {
4089
4105
  C(p, "");
4090
- }, 3e3), At();
4106
+ }, 3e3), xt();
4091
4107
  }
4092
- function yr() {
4108
+ function Tr() {
4093
4109
  const b = g(w);
4094
4110
  n()?.clearAnnotations(), C(w, 0), sessionStorage.removeItem(B()), C(p, `${b} annotation${b === 1 ? "" : "s"} cleared`), setTimeout(() => {
4095
4111
  C(p, "");
4096
- }, 3e3), At();
4112
+ }, 3e3), xt();
4097
4113
  }
4098
- async function wr() {
4114
+ async function Ir() {
4099
4115
  if (!(!g(v).selectedRange || !i())) {
4100
4116
  C(m, !0);
4101
4117
  try {
@@ -4107,32 +4123,32 @@ function ol(t, e) {
4107
4123
  }
4108
4124
  }
4109
4125
  }
4110
- function An(b) {
4111
- b.key === "Escape" && g(v).isVisible && (b.preventDefault(), At());
4126
+ function xn(b) {
4127
+ b.key === "Escape" && g(v).isVisible && (b.preventDefault(), xt());
4112
4128
  }
4113
4129
  function Fe(b) {
4114
- !g(v).isVisible || g(k) || g(d) && !g(d).contains(b.target) && At();
4130
+ !g(v).isVisible || g(k) || g(d) && !g(d).contains(b.target) && xt();
4115
4131
  }
4116
4132
  qn(() => {
4117
4133
  if (!r) return;
4118
4134
  const b = setTimeout(() => {
4119
- mr();
4135
+ yr();
4120
4136
  }, 2e3), T = g(J) || document;
4121
- return T.addEventListener("mouseup", Be), T.addEventListener("click", Fe), T.addEventListener("touchend", Be), T.addEventListener("touchstart", Fe), document.addEventListener("keydown", An), window.addEventListener("scroll", At, !0), () => {
4122
- clearTimeout(b), T.removeEventListener("mouseup", Be), T.removeEventListener("click", Fe), T.removeEventListener("touchend", Be), T.removeEventListener("touchstart", Fe), document.removeEventListener("keydown", An), window.removeEventListener("scroll", At, !0);
4137
+ return T.addEventListener("mouseup", Be), T.addEventListener("click", Fe), T.addEventListener("touchend", Be), T.addEventListener("touchstart", Fe), document.addEventListener("keydown", xn), window.addEventListener("scroll", xt, !0), () => {
4138
+ clearTimeout(b), T.removeEventListener("mouseup", Be), T.removeEventListener("click", Fe), T.removeEventListener("touchend", Be), T.removeEventListener("touchstart", Fe), document.removeEventListener("keydown", xn), window.removeEventListener("scroll", xt, !0);
4123
4139
  };
4124
4140
  }), qn(() => {
4125
4141
  if (!g(l)) return;
4126
- const b = aa(g(l), (M) => {
4127
- C(h, M, !0);
4128
- }), T = la(g(l), (M) => {
4142
+ const b = ca(g(l), (M) => {
4129
4143
  C(f, M, !0);
4144
+ }), T = ua(g(l), (M) => {
4145
+ C(h, M, !0);
4130
4146
  });
4131
4147
  return () => {
4132
4148
  T(), b();
4133
4149
  };
4134
4150
  });
4135
- var Tr = {
4151
+ var kr = {
4136
4152
  get enabled() {
4137
4153
  return o();
4138
4154
  },
@@ -4151,51 +4167,51 @@ function ol(t, e) {
4151
4167
  set ttsService(b = null) {
4152
4168
  i(b), io();
4153
4169
  }
4154
- }, _n = tl(), Cn = Mo(_n);
4170
+ }, _n = nl(), Cn = Mo(_n);
4155
4171
  ti(Cn, (b) => C(l, b), () => g(l));
4156
- var En = Rt(Cn, 2), Ir = (b) => {
4157
- var T = Qa(), M = Xe(T);
4158
- Ds(M, 17, () => a, zs, (at, lt) => {
4159
- var Z = Ja(), Ge = Xe(Z), _o = Xe(Ge, !0);
4172
+ var En = Rt(Cn, 2), $r = (b) => {
4173
+ var T = ol(), M = Xe(T);
4174
+ Bs(M, 17, () => a, Ds, (at, lt) => {
4175
+ var Z = Ya(), Ge = Xe(Z), _o = Xe(Ge, !0);
4160
4176
  Ue(Ge), Ue(Z), Qe(() => {
4161
4177
  Kn(Z, `background-color: ${g(lt).hex ?? ""};`), Zn(Z, "aria-label", g(lt).label), Zn(Z, "title", g(lt).label), Gn(_o, g(lt).label);
4162
- }), _e("click", Z, () => xn(g(lt).name)), zt(at, Z);
4178
+ }), _e("click", Z, () => An(g(lt).name)), zt(at, Z);
4163
4179
  });
4164
4180
  var st = Rt(M, 2), Ft = Rt(st, 2), Se = (at) => {
4165
- var lt = Ka(), Z = Rt(Mo(lt), 2);
4166
- Qe(() => Z.disabled = g(m)), _e("click", Z, wr), zt(at, lt);
4181
+ var lt = Xa(), Z = Rt(Mo(lt), 2);
4182
+ Qe(() => Z.disabled = g(m)), _e("click", Z, Ir), zt(at, lt);
4167
4183
  };
4168
4184
  Ee(Ft, (at) => {
4169
4185
  i() && at(Se);
4170
4186
  });
4171
- var Ao = Rt(Ft, 2), $r = (at) => {
4172
- var lt = Xa(), Z = Rt(Mo(lt), 2), Ge = (Gt) => {
4173
- var xe = Za();
4174
- _e("click", xe, br), zt(Gt, xe);
4187
+ var xo = Rt(Ft, 2), Ar = (at) => {
4188
+ var lt = el(), Z = Rt(Mo(lt), 2), Ge = (Gt) => {
4189
+ var Ae = Qa();
4190
+ _e("click", Ae, wr), zt(Gt, Ae);
4175
4191
  };
4176
4192
  Ee(Z, (Gt) => {
4177
- g(P) && Gt(Ge);
4193
+ g(O) && Gt(Ge);
4178
4194
  });
4179
- var _o = Rt(Z, 2), Sr = (Gt) => {
4180
- var xe = Ya();
4181
- _e("click", xe, yr), zt(Gt, xe);
4195
+ var _o = Rt(Z, 2), xr = (Gt) => {
4196
+ var Ae = tl();
4197
+ _e("click", Ae, Tr), zt(Gt, Ae);
4182
4198
  };
4183
4199
  Ee(_o, (Gt) => {
4184
- g(x) && Gt(Sr);
4200
+ g(A) && Gt(xr);
4185
4201
  }), zt(at, lt);
4186
4202
  };
4187
- Ee(Ao, (at) => {
4188
- (g(P) || g(x)) && at($r);
4189
- }), Ue(T), ti(T, (at) => C(d, at), () => g(d)), Qe(() => Kn(T, `left:${g(v).toolbarPosition.x}px; top:${g(v).toolbarPosition.y}px; transform: translate(-50%, -100%);`)), _e("click", st, () => xn(Dt.UNDERLINE)), zt(b, T);
4203
+ Ee(xo, (at) => {
4204
+ (g(O) || g(A)) && at(Ar);
4205
+ }), Ue(T), ti(T, (at) => C(d, at), () => g(d)), Qe(() => Kn(T, `left:${g(v).toolbarPosition.x}px; top:${g(v).toolbarPosition.y}px; transform: translate(-50%, -100%);`)), _e("click", st, () => An(Dt.UNDERLINE)), zt(b, T);
4190
4206
  };
4191
4207
  Ee(En, (b) => {
4192
- g(v).isVisible && b(Ir);
4208
+ g(v).isVisible && b($r);
4193
4209
  });
4194
- var Mn = Rt(En, 2), kr = Xe(Mn, !0);
4195
- return Ue(Mn), Qe(() => Gn(kr, g(p))), zt(t, _n), gi(Tr);
4210
+ var Mn = Rt(En, 2), Sr = Xe(Mn, !0);
4211
+ return Ue(Mn), Qe(() => Gn(Sr, g(p))), zt(t, _n), bi(kr);
4196
4212
  }
4197
- Ms(["click"]);
4198
- customElements.define("pie-tool-annotation-toolbar", oa(ol, {
4213
+ Ps(["click"]);
4214
+ customElements.define("pie-tool-annotation-toolbar", ia(rl, {
4199
4215
  enabled: {
4200
4216
  attribute: "enabled",
4201
4217
  type: "Boolean"