@pie-players/pie-tool-answer-eliminator 0.3.7 → 0.3.8

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,101 +1,101 @@
1
- var Bn = Object.defineProperty;
2
- var mi = (t) => {
1
+ var Vn = Object.defineProperty;
2
+ var bi = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var xn = (t, e, i) => e in t ? Bn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
6
- var f = (t, e, i) => xn(t, typeof e != "symbol" ? e + "" : e, i), Bt = (t, e, i) => e.has(t) || mi("Cannot " + i);
7
- var c = (t, e, i) => (Bt(t, e, "read from private field"), i ? i.call(t) : e.get(t)), w = (t, e, i) => e.has(t) ? mi("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), y = (t, e, i, n) => (Bt(t, e, "write to private field"), n ? n.call(t, i) : e.set(t, i), i), C = (t, e, i) => (Bt(t, e, "access private method"), i);
8
- var Ni;
9
- typeof window < "u" && ((Ni = window.__svelte ?? (window.__svelte = {})).v ?? (Ni.v = /* @__PURE__ */ new Set())).add("5");
10
- const Vn = 2, Mi = "[", Fi = "[!", vi = "[?", Di = "]", Et = {}, F = /* @__PURE__ */ Symbol(), Gn = "http://www.w3.org/1999/xhtml", xt = !1;
11
- var zn = Array.isArray, jn = Array.prototype.indexOf, et = Array.prototype.includes, qn = Array.from, Ct = Object.keys, $t = Object.defineProperty, qe = Object.getOwnPropertyDescriptor, Kn = Object.prototype, Wn = Array.prototype, Un = Object.getPrototypeOf, bi = Object.isExtensible;
12
- const Yn = () => {
5
+ var Gn = (t, e, i) => e in t ? Vn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
6
+ var u = (t, e, i) => Gn(t, typeof e != "symbol" ? e + "" : e, i), Bt = (t, e, i) => e.has(t) || bi("Cannot " + i);
7
+ var c = (t, e, i) => (Bt(t, e, "read from private field"), i ? i.call(t) : e.get(t)), T = (t, e, i) => e.has(t) ? bi("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, i), v = (t, e, i, n) => (Bt(t, e, "write to private field"), n ? n.call(t, i) : e.set(t, i), i), E = (t, e, i) => (Bt(t, e, "access private method"), i);
8
+ var Fi;
9
+ typeof window < "u" && ((Fi = window.__svelte ?? (window.__svelte = {})).v ?? (Fi.v = /* @__PURE__ */ new Set())).add("5");
10
+ const zn = 2, xi = "[", Di = "[!", yi = "[?", Bi = "]", Ct = {}, M = /* @__PURE__ */ Symbol(), jn = "http://www.w3.org/1999/xhtml", Gt = !1;
11
+ var qn = Array.isArray, Kn = Array.prototype.indexOf, et = Array.prototype.includes, Un = Array.from, $t = Object.keys, Ot = Object.defineProperty, qe = Object.getOwnPropertyDescriptor, Wn = Object.prototype, Yn = Array.prototype, Xn = Object.getPrototypeOf, _i = Object.isExtensible;
12
+ const Qn = () => {
13
13
  };
14
- function Xn(t) {
14
+ function Jn(t) {
15
15
  for (var e = 0; e < t.length; e++)
16
16
  t[e]();
17
17
  }
18
- function Qn() {
18
+ function Zn() {
19
19
  var t, e, i = new Promise((n, r) => {
20
20
  t = n, e = r;
21
21
  });
22
22
  return { promise: i, resolve: t, reject: e };
23
23
  }
24
- const M = 2, nt = 4, Rt = 8, ni = 1 << 24, Le = 16, ve = 32, ke = 64, Vt = 128, X = 512, D = 1024, N = 2048, re = 4096, Se = 8192, Ee = 16384, Ge = 32768, Lt = 65536, yi = 1 << 17, Jn = 1 << 18, rt = 1 << 19, Zn = 1 << 20, Ve = 65536, Gt = 1 << 21, Bi = 1 << 22, ut = 1 << 23, yt = /* @__PURE__ */ Symbol("$state"), er = /* @__PURE__ */ Symbol("legacy props"), ri = new class extends Error {
24
+ const N = 2, nt = 4, Lt = 8, si = 1 << 24, Le = 16, ve = 32, ke = 64, zt = 128, Y = 512, F = 1024, H = 2048, ne = 4096, Se = 8192, Ee = 16384, Ge = 32768, kt = 65536, Ti = 1 << 17, er = 1 << 18, rt = 1 << 19, tr = 1 << 20, Ve = 65536, jt = 1 << 21, Vi = 1 << 22, ft = 1 << 23, _t = /* @__PURE__ */ Symbol("$state"), ir = /* @__PURE__ */ Symbol("legacy props"), oi = new class extends Error {
25
25
  constructor() {
26
26
  super(...arguments);
27
- f(this, "name", "StaleReactionError");
28
- f(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
27
+ u(this, "name", "StaleReactionError");
28
+ u(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
29
29
  }
30
- }(), si = 8;
31
- function tr(t) {
30
+ }(), li = 8;
31
+ function nr(t) {
32
32
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
33
33
  }
34
- function ir(t) {
34
+ function rr(t) {
35
35
  throw new Error("https://svelte.dev/e/effect_in_teardown");
36
36
  }
37
- function nr() {
37
+ function sr() {
38
38
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
39
39
  }
40
- function rr(t) {
40
+ function or(t) {
41
41
  throw new Error("https://svelte.dev/e/effect_orphan");
42
42
  }
43
- function sr() {
43
+ function lr() {
44
44
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
45
45
  }
46
- function or() {
46
+ function ar() {
47
47
  throw new Error("https://svelte.dev/e/hydration_failed");
48
48
  }
49
- function lr() {
49
+ function cr() {
50
50
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
51
51
  }
52
- function ar() {
52
+ function ur() {
53
53
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
54
54
  }
55
- function cr() {
55
+ function fr() {
56
56
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
57
57
  }
58
- function ur() {
58
+ function dr() {
59
59
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
60
60
  }
61
- function xi(t) {
61
+ function Gi(t) {
62
62
  console.warn("https://svelte.dev/e/hydration_mismatch");
63
63
  }
64
- function fr() {
64
+ function hr() {
65
65
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
66
66
  }
67
- let te = !1;
68
- function gt(t) {
69
- te = t;
67
+ let ee = !1;
68
+ function mt(t) {
69
+ ee = t;
70
70
  }
71
- let x;
72
- function ft(t) {
71
+ let D;
72
+ function dt(t) {
73
73
  if (t === null)
74
- throw xi(), Et;
75
- return x = t;
74
+ throw Gi(), Ct;
75
+ return D = t;
76
76
  }
77
- function Vi() {
78
- return ft(/* @__PURE__ */ st(x));
77
+ function zi() {
78
+ return dt(/* @__PURE__ */ st(D));
79
79
  }
80
- function dr(t = 1) {
81
- if (te) {
82
- for (var e = t, i = x; e--; )
80
+ function pr(t = 1) {
81
+ if (ee) {
82
+ for (var e = t, i = D; e--; )
83
83
  i = /** @type {TemplateNode} */
84
84
  /* @__PURE__ */ st(i);
85
- x = i;
85
+ D = i;
86
86
  }
87
87
  }
88
- function hr(t = !0) {
89
- for (var e = 0, i = x; ; ) {
90
- if (i.nodeType === si) {
88
+ function gr(t = !0) {
89
+ for (var e = 0, i = D; ; ) {
90
+ if (i.nodeType === li) {
91
91
  var n = (
92
92
  /** @type {Comment} */
93
93
  i.data
94
94
  );
95
- if (n === Di) {
95
+ if (n === Bi) {
96
96
  if (e === 0) return i;
97
97
  e -= 1;
98
- } else (n === Mi || n === Fi || // "[1", "[2", etc. for if blocks
98
+ } else (n === xi || n === Di || // "[1", "[2", etc. for if blocks
99
99
  n[0] === "[" && !isNaN(Number(n.slice(1)))) && (e += 1);
100
100
  }
101
101
  var r = (
@@ -105,22 +105,22 @@ function hr(t = !0) {
105
105
  t && i.remove(), i = r;
106
106
  }
107
107
  }
108
- function Gi(t) {
108
+ function ji(t) {
109
109
  return t === this.v;
110
110
  }
111
- function pr(t, e) {
111
+ function mr(t, e) {
112
112
  return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
113
113
  }
114
- function gr(t) {
115
- return !pr(t, this.v);
114
+ function vr(t) {
115
+ return !mr(t, this.v);
116
116
  }
117
- let mr = !1, J = null;
118
- function kt(t) {
119
- J = t;
117
+ let br = !1, Q = null;
118
+ function Rt(t) {
119
+ Q = t;
120
120
  }
121
- function zi(t, e = !1, i) {
122
- J = {
123
- p: J,
121
+ function qi(t, e = !1, i) {
122
+ Q = {
123
+ p: Q,
124
124
  i: !1,
125
125
  c: null,
126
126
  e: null,
@@ -129,51 +129,51 @@ function zi(t, e = !1, i) {
129
129
  l: null
130
130
  };
131
131
  }
132
- function ji(t) {
132
+ function Ki(t) {
133
133
  var e = (
134
134
  /** @type {ComponentContext} */
135
- J
135
+ Q
136
136
  ), i = e.e;
137
137
  if (i !== null) {
138
138
  e.e = null;
139
139
  for (var n of i)
140
- vn(n);
140
+ yn(n);
141
141
  }
142
- return t !== void 0 && (e.x = t), e.i = !0, J = e.p, t ?? /** @type {T} */
142
+ return t !== void 0 && (e.x = t), e.i = !0, Q = e.p, t ?? /** @type {T} */
143
143
  {};
144
144
  }
145
- function qi() {
145
+ function Ui() {
146
146
  return !0;
147
147
  }
148
148
  let He = [];
149
- function Ki() {
149
+ function Wi() {
150
150
  var t = He;
151
- He = [], Xn(t);
151
+ He = [], Jn(t);
152
152
  }
153
- function Be(t) {
154
- if (He.length === 0 && !at) {
153
+ function De(t) {
154
+ if (He.length === 0 && !ct) {
155
155
  var e = He;
156
156
  queueMicrotask(() => {
157
- e === He && Ki();
157
+ e === He && Wi();
158
158
  });
159
159
  }
160
160
  He.push(t);
161
161
  }
162
- function vr() {
162
+ function yr() {
163
163
  for (; He.length > 0; )
164
- Ki();
164
+ Wi();
165
165
  }
166
- function Wi(t) {
167
- var e = S;
166
+ function Yi(t) {
167
+ var e = w;
168
168
  if (e === null)
169
- return T.f |= ut, t;
169
+ return b.f |= ft, t;
170
170
  if ((e.f & Ge) === 0 && (e.f & nt) === 0)
171
171
  throw t;
172
172
  je(t, e);
173
173
  }
174
174
  function je(t, e) {
175
175
  for (; e !== null; ) {
176
- if ((e.f & Vt) !== 0) {
176
+ if ((e.f & zt) !== 0) {
177
177
  if ((e.f & Ge) === 0)
178
178
  throw t;
179
179
  try {
@@ -187,79 +187,79 @@ function je(t, e) {
187
187
  }
188
188
  throw t;
189
189
  }
190
- const br = -7169;
191
- function k(t, e) {
192
- t.f = t.f & br | e;
190
+ const _r = -7169;
191
+ function L(t, e) {
192
+ t.f = t.f & _r | e;
193
193
  }
194
- function oi(t) {
195
- (t.f & X) !== 0 || t.deps === null ? k(t, D) : k(t, re);
194
+ function ai(t) {
195
+ (t.f & Y) !== 0 || t.deps === null ? L(t, F) : L(t, ne);
196
196
  }
197
- function Ui(t) {
197
+ function Xi(t) {
198
198
  if (t !== null)
199
199
  for (const e of t)
200
- (e.f & M) === 0 || (e.f & Ve) === 0 || (e.f ^= Ve, Ui(
200
+ (e.f & N) === 0 || (e.f & Ve) === 0 || (e.f ^= Ve, Xi(
201
201
  /** @type {Derived} */
202
202
  e.deps
203
203
  ));
204
204
  }
205
- function Yi(t, e, i) {
206
- (t.f & N) !== 0 ? e.add(t) : (t.f & re) !== 0 && i.add(t), Ui(t.deps), k(t, D);
205
+ function Qi(t, e, i) {
206
+ (t.f & H) !== 0 ? e.add(t) : (t.f & ne) !== 0 && i.add(t), Xi(t.deps), L(t, F);
207
207
  }
208
- const mt = /* @__PURE__ */ new Set();
209
- let H = null, ee = null, G = [], Ht = null, at = !1, tt = null, yr = 1;
210
- var Ae, Ke, Me, We, Ue, Ye, we, se, Xe, j, zt, jt, qt, Kt;
211
- const pi = class pi {
208
+ const vt = /* @__PURE__ */ new Set();
209
+ let P = null, Z = null, V = [], Nt = null, ct = !1, tt = null, Tr = 1;
210
+ var Ae, Ke, Me, Ue, We, Ye, we, se, Xe, z, qt, Kt, Ut, Wt;
211
+ const mi = class mi {
212
212
  constructor() {
213
- w(this, j);
213
+ T(this, z);
214
214
  // for debugging. TODO remove once async is stable
215
- f(this, "id", yr++);
215
+ u(this, "id", Tr++);
216
216
  /**
217
217
  * The current values of any sources that are updated in this batch
218
218
  * They keys of this map are identical to `this.#previous`
219
219
  * @type {Map<Source, any>}
220
220
  */
221
- f(this, "current", /* @__PURE__ */ new Map());
221
+ u(this, "current", /* @__PURE__ */ new Map());
222
222
  /**
223
223
  * The values of any sources that are updated in this batch _before_ those updates took place.
224
224
  * They keys of this map are identical to `this.#current`
225
225
  * @type {Map<Source, any>}
226
226
  */
227
- f(this, "previous", /* @__PURE__ */ new Map());
227
+ u(this, "previous", /* @__PURE__ */ new Map());
228
228
  /**
229
229
  * When the batch is committed (and the DOM is updated), we need to remove old branches
230
230
  * and append new ones by calling the functions added inside (if/each/key/etc) blocks
231
231
  * @type {Set<(batch: Batch) => void>}
232
232
  */
233
- w(this, Ae, /* @__PURE__ */ new Set());
233
+ T(this, Ae, /* @__PURE__ */ new Set());
234
234
  /**
235
235
  * If a fork is discarded, we need to destroy any effects that are no longer needed
236
236
  * @type {Set<(batch: Batch) => void>}
237
237
  */
238
- w(this, Ke, /* @__PURE__ */ new Set());
238
+ T(this, Ke, /* @__PURE__ */ new Set());
239
239
  /**
240
240
  * The number of async effects that are currently in flight
241
241
  */
242
- w(this, Me, 0);
242
+ T(this, Me, 0);
243
243
  /**
244
244
  * The number of async effects that are currently in flight, _not_ inside a pending boundary
245
245
  */
246
- w(this, We, 0);
246
+ T(this, Ue, 0);
247
247
  /**
248
248
  * A deferred that resolves when the batch is committed, used with `settled()`
249
249
  * TODO replace with Promise.withResolvers once supported widely enough
250
250
  * @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
251
251
  */
252
- w(this, Ue, null);
252
+ T(this, We, null);
253
253
  /**
254
254
  * Deferred effects (which run after async work has completed) that are DIRTY
255
255
  * @type {Set<Effect>}
256
256
  */
257
- w(this, Ye, /* @__PURE__ */ new Set());
257
+ T(this, Ye, /* @__PURE__ */ new Set());
258
258
  /**
259
259
  * Deferred effects that are MAYBE_DIRTY
260
260
  * @type {Set<Effect>}
261
261
  */
262
- w(this, we, /* @__PURE__ */ new Set());
262
+ T(this, we, /* @__PURE__ */ new Set());
263
263
  /**
264
264
  * A map of branches that still exist, but will be destroyed when this batch
265
265
  * is committed — we skip over these during `process`.
@@ -267,9 +267,9 @@ const pi = class pi {
267
267
  * so they can be rescheduled if the branch survives.
268
268
  * @type {Map<Effect, { d: Effect[], m: Effect[] }>}
269
269
  */
270
- w(this, se, /* @__PURE__ */ new Map());
271
- f(this, "is_fork", !1);
272
- w(this, Xe, !1);
270
+ T(this, se, /* @__PURE__ */ new Map());
271
+ u(this, "is_fork", !1);
272
+ T(this, Xe, !1);
273
273
  }
274
274
  /**
275
275
  * Add an effect to the #skipped_branches map and reset its children
@@ -288,9 +288,9 @@ const pi = class pi {
288
288
  if (i) {
289
289
  c(this, se).delete(e);
290
290
  for (var n of i.d)
291
- k(n, N), ae(n);
291
+ L(n, H), ae(n);
292
292
  for (n of i.m)
293
- k(n, re), ae(n);
293
+ L(n, ne), ae(n);
294
294
  }
295
295
  }
296
296
  /**
@@ -298,20 +298,20 @@ const pi = class pi {
298
298
  * @param {Effect[]} root_effects
299
299
  */
300
300
  process(e) {
301
- G = [], this.apply();
301
+ V = [], this.apply();
302
302
  var i = tt = [], n = [];
303
303
  for (const r of e)
304
- C(this, j, jt).call(this, r, i, n);
305
- if (tt = null, C(this, j, zt).call(this)) {
306
- C(this, j, qt).call(this, n), C(this, j, qt).call(this, i);
304
+ E(this, z, Kt).call(this, r, i, n);
305
+ if (tt = null, E(this, z, qt).call(this)) {
306
+ E(this, z, Ut).call(this, n), E(this, z, Ut).call(this, i);
307
307
  for (const [r, s] of c(this, se))
308
- Zi(r, s);
308
+ tn(r, s);
309
309
  } else {
310
- H = null;
310
+ P = null;
311
311
  for (const r of c(this, Ae)) r(this);
312
- c(this, Ae).clear(), c(this, Me) === 0 && C(this, j, Kt).call(this), _i(n), _i(i), c(this, Ye).clear(), c(this, we).clear(), c(this, Ue)?.resolve();
312
+ c(this, Ae).clear(), c(this, Me) === 0 && E(this, z, Wt).call(this), Ai(n), Ai(i), c(this, Ye).clear(), c(this, we).clear(), c(this, We)?.resolve();
313
313
  }
314
- ee = null;
314
+ Z = null;
315
315
  }
316
316
  /**
317
317
  * Associate a change to a given source with the current
@@ -320,20 +320,20 @@ const pi = class pi {
320
320
  * @param {any} value
321
321
  */
322
322
  capture(e, i) {
323
- i !== F && !this.previous.has(e) && this.previous.set(e, i), (e.f & ut) === 0 && (this.current.set(e, e.v), ee?.set(e, e.v));
323
+ i !== M && !this.previous.has(e) && this.previous.set(e, i), (e.f & ft) === 0 && (this.current.set(e, e.v), Z?.set(e, e.v));
324
324
  }
325
325
  activate() {
326
- H = this, this.apply();
326
+ P = this, this.apply();
327
327
  }
328
328
  deactivate() {
329
- H === this && (H = null, ee = null);
329
+ P === this && (P = null, Z = null);
330
330
  }
331
331
  flush() {
332
- if (G.length > 0)
333
- H = this, Xi();
332
+ if (V.length > 0)
333
+ P = this, Ji();
334
334
  else if (c(this, Me) === 0 && !this.is_fork) {
335
335
  for (const e of c(this, Ae)) e(this);
336
- c(this, Ae).clear(), C(this, j, Kt).call(this), c(this, Ue)?.resolve();
336
+ c(this, Ae).clear(), E(this, z, Wt).call(this), c(this, We)?.resolve();
337
337
  }
338
338
  this.deactivate();
339
339
  }
@@ -346,22 +346,22 @@ const pi = class pi {
346
346
  * @param {boolean} blocking
347
347
  */
348
348
  increment(e) {
349
- y(this, Me, c(this, Me) + 1), e && y(this, We, c(this, We) + 1);
349
+ v(this, Me, c(this, Me) + 1), e && v(this, Ue, c(this, Ue) + 1);
350
350
  }
351
351
  /**
352
352
  *
353
353
  * @param {boolean} blocking
354
354
  */
355
355
  decrement(e) {
356
- y(this, Me, c(this, Me) - 1), e && y(this, We, c(this, We) - 1), !c(this, Xe) && (y(this, Xe, !0), Be(() => {
357
- y(this, Xe, !1), C(this, j, zt).call(this) ? G.length > 0 && this.flush() : this.revive();
356
+ v(this, Me, c(this, Me) - 1), e && v(this, Ue, c(this, Ue) - 1), !c(this, Xe) && (v(this, Xe, !0), De(() => {
357
+ v(this, Xe, !1), E(this, z, qt).call(this) ? V.length > 0 && this.flush() : this.revive();
358
358
  }));
359
359
  }
360
360
  revive() {
361
361
  for (const e of c(this, Ye))
362
- c(this, we).delete(e), k(e, N), ae(e);
362
+ c(this, we).delete(e), L(e, H), ae(e);
363
363
  for (const e of c(this, we))
364
- k(e, re), ae(e);
364
+ L(e, ne), ae(e);
365
365
  this.flush();
366
366
  }
367
367
  /** @param {(batch: Batch) => void} fn */
@@ -373,22 +373,22 @@ const pi = class pi {
373
373
  c(this, Ke).add(e);
374
374
  }
375
375
  settled() {
376
- return (c(this, Ue) ?? y(this, Ue, Qn())).promise;
376
+ return (c(this, We) ?? v(this, We, Zn())).promise;
377
377
  }
378
378
  static ensure() {
379
- if (H === null) {
380
- const e = H = new pi();
381
- mt.add(H), at || Be(() => {
382
- H === e && e.flush();
379
+ if (P === null) {
380
+ const e = P = new mi();
381
+ vt.add(P), ct || De(() => {
382
+ P === e && e.flush();
383
383
  });
384
384
  }
385
- return H;
385
+ return P;
386
386
  }
387
387
  apply() {
388
388
  }
389
389
  };
390
- Ae = new WeakMap(), Ke = new WeakMap(), Me = new WeakMap(), We = new WeakMap(), Ue = new WeakMap(), Ye = new WeakMap(), we = new WeakMap(), se = new WeakMap(), Xe = new WeakMap(), j = new WeakSet(), zt = function() {
391
- return this.is_fork || c(this, We) > 0;
390
+ Ae = new WeakMap(), Ke = new WeakMap(), Me = new WeakMap(), Ue = new WeakMap(), We = new WeakMap(), Ye = new WeakMap(), we = new WeakMap(), se = new WeakMap(), Xe = new WeakMap(), z = new WeakSet(), qt = function() {
391
+ return this.is_fork || c(this, Ue) > 0;
392
392
  }, /**
393
393
  * Traverse the effect tree, executing effects or stashing
394
394
  * them for later execution as appropriate
@@ -396,12 +396,12 @@ Ae = new WeakMap(), Ke = new WeakMap(), Me = new WeakMap(), We = new WeakMap(),
396
396
  * @param {Effect[]} effects
397
397
  * @param {Effect[]} render_effects
398
398
  */
399
- jt = function(e, i, n) {
400
- e.f ^= D;
399
+ Kt = function(e, i, n) {
400
+ e.f ^= F;
401
401
  for (var r = e.first; r !== null; ) {
402
- var s = r.f, o = (s & (ve | ke)) !== 0, l = o && (s & D) !== 0, a = (s & Se) !== 0, u = l || c(this, se).has(r);
403
- if (!u && r.fn !== null) {
404
- o ? a || (r.f ^= D) : (s & nt) !== 0 ? i.push(r) : (s & (Rt | ni)) !== 0 && a ? n.push(r) : pt(r) && (it(r), (s & Le) !== 0 && (c(this, we).add(r), a && k(r, N)));
402
+ var s = r.f, o = (s & (ve | ke)) !== 0, a = o && (s & F) !== 0, l = (s & Se) !== 0, f = a || c(this, se).has(r);
403
+ if (!f && r.fn !== null) {
404
+ o ? l || (r.f ^= F) : (s & nt) !== 0 ? i.push(r) : (s & (Lt | si)) !== 0 && l ? n.push(r) : gt(r) && (it(r), (s & Le) !== 0 && (c(this, we).add(r), l && L(r, H)));
405
405
  var d = r.first;
406
406
  if (d !== null) {
407
407
  r = d;
@@ -409,9 +409,9 @@ jt = function(e, i, n) {
409
409
  }
410
410
  }
411
411
  for (; r !== null; ) {
412
- var p = r.next;
413
- if (p !== null) {
414
- r = p;
412
+ var h = r.next;
413
+ if (h !== null) {
414
+ r = h;
415
415
  break;
416
416
  }
417
417
  r = r.parent;
@@ -420,94 +420,94 @@ jt = function(e, i, n) {
420
420
  }, /**
421
421
  * @param {Effect[]} effects
422
422
  */
423
- qt = function(e) {
423
+ Ut = function(e) {
424
424
  for (var i = 0; i < e.length; i += 1)
425
- Yi(e[i], c(this, Ye), c(this, we));
426
- }, Kt = function() {
425
+ Qi(e[i], c(this, Ye), c(this, we));
426
+ }, Wt = function() {
427
427
  var s;
428
- if (mt.size > 1) {
428
+ if (vt.size > 1) {
429
429
  this.previous.clear();
430
- var e = H, i = ee, n = !0;
431
- for (const o of mt) {
430
+ var e = P, i = Z, n = !0;
431
+ for (const o of vt) {
432
432
  if (o === this) {
433
433
  n = !1;
434
434
  continue;
435
435
  }
436
- const l = [];
437
- for (const [u, d] of this.current) {
438
- if (o.current.has(u))
439
- if (n && d !== o.current.get(u))
440
- o.current.set(u, d);
436
+ const a = [];
437
+ for (const [f, d] of this.current) {
438
+ if (o.current.has(f))
439
+ if (n && d !== o.current.get(f))
440
+ o.current.set(f, d);
441
441
  else
442
442
  continue;
443
- l.push(u);
443
+ a.push(f);
444
444
  }
445
- if (l.length === 0)
445
+ if (a.length === 0)
446
446
  continue;
447
- const a = [...o.current.keys()].filter((u) => !this.current.has(u));
448
- if (a.length > 0) {
449
- var r = G;
450
- G = [];
451
- const u = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Map();
452
- for (const p of l)
453
- Qi(p, a, u, d);
454
- if (G.length > 0) {
455
- H = o, o.apply();
456
- for (const p of G)
457
- C(s = o, j, jt).call(s, p, [], []);
447
+ const l = [...o.current.keys()].filter((f) => !this.current.has(f));
448
+ if (l.length > 0) {
449
+ var r = V;
450
+ V = [];
451
+ const f = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Map();
452
+ for (const h of a)
453
+ Zi(h, l, f, d);
454
+ if (V.length > 0) {
455
+ P = o, o.apply();
456
+ for (const h of V)
457
+ E(s = o, z, Kt).call(s, h, [], []);
458
458
  o.deactivate();
459
459
  }
460
- G = r;
460
+ V = r;
461
461
  }
462
462
  }
463
- H = e, ee = i;
463
+ P = e, Z = i;
464
464
  }
465
- c(this, se).clear(), mt.delete(this);
465
+ c(this, se).clear(), vt.delete(this);
466
466
  };
467
- let me = pi;
467
+ let me = mi;
468
468
  function fe(t) {
469
- var e = at;
470
- at = !0;
469
+ var e = ct;
470
+ ct = !0;
471
471
  try {
472
472
  for (var i; ; ) {
473
- if (vr(), G.length === 0 && (H?.flush(), G.length === 0))
474
- return Ht = null, /** @type {T} */
473
+ if (yr(), V.length === 0 && (P?.flush(), V.length === 0))
474
+ return Nt = null, /** @type {T} */
475
475
  i;
476
- Xi();
476
+ Ji();
477
477
  }
478
478
  } finally {
479
- at = e;
479
+ ct = e;
480
480
  }
481
481
  }
482
- function Xi() {
482
+ function Ji() {
483
483
  var t = null;
484
484
  try {
485
- for (var e = 0; G.length > 0; ) {
485
+ for (var e = 0; V.length > 0; ) {
486
486
  var i = me.ensure();
487
487
  if (e++ > 1e3) {
488
488
  var n, r;
489
- _r();
489
+ Ar();
490
490
  }
491
- i.process(G), Ce.clear();
491
+ i.process(V), Ce.clear();
492
492
  }
493
493
  } finally {
494
- G = [], Ht = null, tt = null;
494
+ V = [], Nt = null, tt = null;
495
495
  }
496
496
  }
497
- function _r() {
497
+ function Ar() {
498
498
  try {
499
- sr();
499
+ lr();
500
500
  } catch (t) {
501
- je(t, Ht);
501
+ je(t, Nt);
502
502
  }
503
503
  }
504
504
  let de = null;
505
- function _i(t) {
505
+ function Ai(t) {
506
506
  var e = t.length;
507
507
  if (e !== 0) {
508
508
  for (var i = 0; i < e; ) {
509
509
  var n = t[i++];
510
- if ((n.f & (Ee | Se)) === 0 && pt(n) && (de = /* @__PURE__ */ new Set(), it(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && yn(n), de?.size > 0)) {
510
+ if ((n.f & (Ee | Se)) === 0 && gt(n) && (de = /* @__PURE__ */ new Set(), it(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Tn(n), de?.size > 0)) {
511
511
  Ce.clear();
512
512
  for (const r of de) {
513
513
  if ((r.f & (Ee | Se)) !== 0) continue;
@@ -515,9 +515,9 @@ function _i(t) {
515
515
  let o = r.parent;
516
516
  for (; o !== null; )
517
517
  de.has(o) && (de.delete(o), s.push(o)), o = o.parent;
518
- for (let l = s.length - 1; l >= 0; l--) {
519
- const a = s[l];
520
- (a.f & (Ee | Se)) === 0 && it(a);
518
+ for (let a = s.length - 1; a >= 0; a--) {
519
+ const l = s[a];
520
+ (l.f & (Ee | Se)) === 0 && it(l);
521
521
  }
522
522
  }
523
523
  de.clear();
@@ -526,30 +526,30 @@ function _i(t) {
526
526
  de = null;
527
527
  }
528
528
  }
529
- function Qi(t, e, i, n) {
529
+ function Zi(t, e, i, n) {
530
530
  if (!i.has(t) && (i.add(t), t.reactions !== null))
531
531
  for (const r of t.reactions) {
532
532
  const s = r.f;
533
- (s & M) !== 0 ? Qi(
533
+ (s & N) !== 0 ? Zi(
534
534
  /** @type {Derived} */
535
535
  r,
536
536
  e,
537
537
  i,
538
538
  n
539
- ) : (s & (Bi | Le)) !== 0 && (s & N) === 0 && Ji(r, e, n) && (k(r, N), ae(
539
+ ) : (s & (Vi | Le)) !== 0 && (s & H) === 0 && en(r, e, n) && (L(r, H), ae(
540
540
  /** @type {Effect} */
541
541
  r
542
542
  ));
543
543
  }
544
544
  }
545
- function Ji(t, e, i) {
545
+ function en(t, e, i) {
546
546
  const n = i.get(t);
547
547
  if (n !== void 0) return n;
548
548
  if (t.deps !== null)
549
549
  for (const r of t.deps) {
550
550
  if (et.call(e, r))
551
551
  return !0;
552
- if ((r.f & M) !== 0 && Ji(
552
+ if ((r.f & N) !== 0 && en(
553
553
  /** @type {Derived} */
554
554
  r,
555
555
  e,
@@ -564,47 +564,47 @@ function Ji(t, e, i) {
564
564
  return i.set(t, !1), !1;
565
565
  }
566
566
  function ae(t) {
567
- var e = Ht = t, i = e.b;
568
- if (i?.is_pending && (t.f & (nt | Rt | ni)) !== 0 && (t.f & Ge) === 0) {
567
+ var e = Nt = t, i = e.b;
568
+ if (i?.is_pending && (t.f & (nt | Lt | si)) !== 0 && (t.f & Ge) === 0) {
569
569
  i.defer_effect(t);
570
570
  return;
571
571
  }
572
572
  for (; e.parent !== null; ) {
573
573
  e = e.parent;
574
574
  var n = e.f;
575
- if (tt !== null && e === S && (t.f & Rt) === 0)
575
+ if (tt !== null && e === w && (t.f & Lt) === 0)
576
576
  return;
577
577
  if ((n & (ke | ve)) !== 0) {
578
- if ((n & D) === 0)
578
+ if ((n & F) === 0)
579
579
  return;
580
- e.f ^= D;
580
+ e.f ^= F;
581
581
  }
582
582
  }
583
- G.push(e);
583
+ V.push(e);
584
584
  }
585
- function Zi(t, e) {
586
- if (!((t.f & ve) !== 0 && (t.f & D) !== 0)) {
587
- (t.f & N) !== 0 ? e.d.push(t) : (t.f & re) !== 0 && e.m.push(t), k(t, D);
585
+ function tn(t, e) {
586
+ if (!((t.f & ve) !== 0 && (t.f & F) !== 0)) {
587
+ (t.f & H) !== 0 ? e.d.push(t) : (t.f & ne) !== 0 && e.m.push(t), L(t, F);
588
588
  for (var i = t.first; i !== null; )
589
- Zi(i, e), i = i.next;
589
+ tn(i, e), i = i.next;
590
590
  }
591
591
  }
592
- function Tr(t) {
593
- let e = 0, i = Nt(0), n;
592
+ function wr(t) {
593
+ let e = 0, i = Mt(0), n;
594
594
  return () => {
595
- ai() && (v(i), ci(() => (e === 0 && (n = fi(() => t(() => ct(i)))), e += 1, () => {
596
- Be(() => {
597
- e -= 1, e === 0 && (n?.(), n = void 0, ct(i));
595
+ ui() && (g(i), fi(() => (e === 0 && (n = hi(() => t(() => ut(i)))), e += 1, () => {
596
+ De(() => {
597
+ e -= 1, e === 0 && (n?.(), n = void 0, ut(i));
598
598
  });
599
599
  })));
600
600
  };
601
601
  }
602
- var Ar = Lt | rt;
603
- function wr(t, e, i, n) {
604
- new Ir(t, e, i, n);
602
+ var Ir = kt | rt;
603
+ function Sr(t, e, i, n) {
604
+ new Er(t, e, i, n);
605
605
  }
606
- var K, ht, oe, Fe, V, le, W, Z, he, De, Ie, Qe, Je, Ze, pe, Pt, R, en, tn, nn, Wt, _t, Tt, Ut;
607
- class Ir {
606
+ var q, pt, oe, Fe, B, le, K, J, he, xe, Ie, Qe, Je, Ze, pe, Ht, $, nn, rn, sn, Yt, Tt, At, Xt;
607
+ class Er {
608
608
  /**
609
609
  * @param {TemplateNode} node
610
610
  * @param {BoundaryProps} props
@@ -612,41 +612,41 @@ class Ir {
612
612
  * @param {((error: unknown) => unknown) | undefined} [transform_error]
613
613
  */
614
614
  constructor(e, i, n, r) {
615
- w(this, R);
615
+ T(this, $);
616
616
  /** @type {Boundary | null} */
617
- f(this, "parent");
618
- f(this, "is_pending", !1);
617
+ u(this, "parent");
618
+ u(this, "is_pending", !1);
619
619
  /**
620
620
  * API-level transformError transform function. Transforms errors before they reach the `failed` snippet.
621
621
  * Inherited from parent boundary, or defaults to identity.
622
622
  * @type {(error: unknown) => unknown}
623
623
  */
624
- f(this, "transform_error");
624
+ u(this, "transform_error");
625
625
  /** @type {TemplateNode} */
626
- w(this, K);
626
+ T(this, q);
627
627
  /** @type {TemplateNode | null} */
628
- w(this, ht, te ? x : null);
628
+ T(this, pt, ee ? D : null);
629
629
  /** @type {BoundaryProps} */
630
- w(this, oe);
630
+ T(this, oe);
631
631
  /** @type {((anchor: Node) => void)} */
632
- w(this, Fe);
632
+ T(this, Fe);
633
633
  /** @type {Effect} */
634
- w(this, V);
634
+ T(this, B);
635
635
  /** @type {Effect | null} */
636
- w(this, le, null);
636
+ T(this, le, null);
637
637
  /** @type {Effect | null} */
638
- w(this, W, null);
638
+ T(this, K, null);
639
639
  /** @type {Effect | null} */
640
- w(this, Z, null);
640
+ T(this, J, null);
641
641
  /** @type {DocumentFragment | null} */
642
- w(this, he, null);
643
- w(this, De, 0);
644
- w(this, Ie, 0);
645
- w(this, Qe, !1);
642
+ T(this, he, null);
643
+ T(this, xe, 0);
644
+ T(this, Ie, 0);
645
+ T(this, Qe, !1);
646
646
  /** @type {Set<Effect>} */
647
- w(this, Je, /* @__PURE__ */ new Set());
647
+ T(this, Je, /* @__PURE__ */ new Set());
648
648
  /** @type {Set<Effect>} */
649
- w(this, Ze, /* @__PURE__ */ new Set());
649
+ T(this, Ze, /* @__PURE__ */ new Set());
650
650
  /**
651
651
  * A source containing the number of pending async deriveds/expressions.
652
652
  * Only created if `$effect.pending()` is used inside the boundary,
@@ -654,39 +654,39 @@ class Ir {
654
654
  * calls followed by no-op flushes
655
655
  * @type {Source<number> | null}
656
656
  */
657
- w(this, pe, null);
658
- w(this, Pt, Tr(() => (y(this, pe, Nt(c(this, De))), () => {
659
- y(this, pe, null);
657
+ T(this, pe, null);
658
+ T(this, Ht, wr(() => (v(this, pe, Mt(c(this, xe))), () => {
659
+ v(this, pe, null);
660
660
  })));
661
- y(this, K, e), y(this, oe, i), y(this, Fe, (s) => {
661
+ v(this, q, e), v(this, oe, i), v(this, Fe, (s) => {
662
662
  var o = (
663
663
  /** @type {Effect} */
664
- S
664
+ w
665
665
  );
666
- o.b = this, o.f |= Vt, n(s);
666
+ o.b = this, o.f |= zt, n(s);
667
667
  }), this.parent = /** @type {Effect} */
668
- S.b, this.transform_error = r ?? this.parent?.transform_error ?? ((s) => s), y(this, V, Mr(() => {
669
- if (te) {
668
+ w.b, this.transform_error = r ?? this.parent?.transform_error ?? ((s) => s), v(this, B, xr(() => {
669
+ if (ee) {
670
670
  const s = (
671
671
  /** @type {Comment} */
672
- c(this, ht)
672
+ c(this, pt)
673
673
  );
674
- Vi();
675
- const o = s.data === Fi;
676
- if (s.data.startsWith(vi)) {
677
- const a = JSON.parse(s.data.slice(vi.length));
678
- C(this, R, tn).call(this, a);
679
- } else o ? C(this, R, nn).call(this) : C(this, R, en).call(this);
674
+ zi();
675
+ const o = s.data === Di;
676
+ if (s.data.startsWith(yi)) {
677
+ const l = JSON.parse(s.data.slice(yi.length));
678
+ E(this, $, rn).call(this, l);
679
+ } else o ? E(this, $, sn).call(this) : E(this, $, nn).call(this);
680
680
  } else
681
- C(this, R, Wt).call(this);
682
- }, Ar)), te && y(this, K, x);
681
+ E(this, $, Yt).call(this);
682
+ }, Ir)), ee && v(this, q, D);
683
683
  }
684
684
  /**
685
685
  * Defer an effect inside a pending boundary until the boundary resolves
686
686
  * @param {Effect} effect
687
687
  */
688
688
  defer_effect(e) {
689
- Yi(e, c(this, Je), c(this, Ze));
689
+ Qi(e, c(this, Je), c(this, Ze));
690
690
  }
691
691
  /**
692
692
  * Returns `false` if the effect exists inside a boundary whose pending snippet is shown
@@ -705,12 +705,12 @@ class Ir {
705
705
  * @param {1 | -1} d
706
706
  */
707
707
  update_pending_count(e) {
708
- C(this, R, Ut).call(this, e), y(this, De, c(this, De) + e), !(!c(this, pe) || c(this, Qe)) && (y(this, Qe, !0), Be(() => {
709
- y(this, Qe, !1), c(this, pe) && an(c(this, pe), c(this, De));
708
+ E(this, $, Xt).call(this, e), v(this, xe, c(this, xe) + e), !(!c(this, pe) || c(this, Qe)) && (v(this, Qe, !0), De(() => {
709
+ v(this, Qe, !1), c(this, pe) && un(c(this, pe), c(this, xe));
710
710
  }));
711
711
  }
712
712
  get_effect_pending() {
713
- return c(this, Pt).call(this), v(
713
+ return c(this, Ht).call(this), g(
714
714
  /** @type {Source<number>} */
715
715
  c(this, pe)
716
716
  );
@@ -721,194 +721,194 @@ class Ir {
721
721
  let n = c(this, oe).failed;
722
722
  if (!i && !n)
723
723
  throw e;
724
- c(this, le) && (ne(c(this, le)), y(this, le, null)), c(this, W) && (ne(c(this, W)), y(this, W, null)), c(this, Z) && (ne(c(this, Z)), y(this, Z, null)), te && (ft(
724
+ c(this, le) && (ie(c(this, le)), v(this, le, null)), c(this, K) && (ie(c(this, K)), v(this, K, null)), c(this, J) && (ie(c(this, J)), v(this, J, null)), ee && (dt(
725
725
  /** @type {TemplateNode} */
726
- c(this, ht)
727
- ), dr(), ft(hr()));
726
+ c(this, pt)
727
+ ), pr(), dt(gr()));
728
728
  var r = !1, s = !1;
729
729
  const o = () => {
730
730
  if (r) {
731
- fr();
731
+ hr();
732
732
  return;
733
733
  }
734
- r = !0, s && ur(), c(this, Z) !== null && At(c(this, Z), () => {
735
- y(this, Z, null);
736
- }), C(this, R, Tt).call(this, () => {
737
- me.ensure(), C(this, R, Wt).call(this);
734
+ r = !0, s && dr(), c(this, J) !== null && wt(c(this, J), () => {
735
+ v(this, J, null);
736
+ }), E(this, $, At).call(this, () => {
737
+ me.ensure(), E(this, $, Yt).call(this);
738
738
  });
739
- }, l = (a) => {
739
+ }, a = (l) => {
740
740
  try {
741
- s = !0, i?.(a, o), s = !1;
742
- } catch (u) {
743
- je(u, c(this, V) && c(this, V).parent);
741
+ s = !0, i?.(l, o), s = !1;
742
+ } catch (f) {
743
+ je(f, c(this, B) && c(this, B).parent);
744
744
  }
745
- n && y(this, Z, C(this, R, Tt).call(this, () => {
745
+ n && v(this, J, E(this, $, At).call(this, () => {
746
746
  me.ensure();
747
747
  try {
748
- return Oe(() => {
749
- var u = (
748
+ return Re(() => {
749
+ var f = (
750
750
  /** @type {Effect} */
751
- S
751
+ w
752
752
  );
753
- u.b = this, u.f |= Vt, n(
754
- c(this, K),
755
- () => a,
753
+ f.b = this, f.f |= zt, n(
754
+ c(this, q),
755
+ () => l,
756
756
  () => o
757
757
  );
758
758
  });
759
- } catch (u) {
759
+ } catch (f) {
760
760
  return je(
761
- u,
761
+ f,
762
762
  /** @type {Effect} */
763
- c(this, V).parent
763
+ c(this, B).parent
764
764
  ), null;
765
765
  }
766
766
  }));
767
767
  };
768
- Be(() => {
769
- var a;
768
+ De(() => {
769
+ var l;
770
770
  try {
771
- a = this.transform_error(e);
772
- } catch (u) {
773
- je(u, c(this, V) && c(this, V).parent);
771
+ l = this.transform_error(e);
772
+ } catch (f) {
773
+ je(f, c(this, B) && c(this, B).parent);
774
774
  return;
775
775
  }
776
- a !== null && typeof a == "object" && typeof /** @type {any} */
777
- a.then == "function" ? a.then(
778
- l,
776
+ l !== null && typeof l == "object" && typeof /** @type {any} */
777
+ l.then == "function" ? l.then(
778
+ a,
779
779
  /** @param {unknown} e */
780
- (u) => je(u, c(this, V) && c(this, V).parent)
781
- ) : l(a);
780
+ (f) => je(f, c(this, B) && c(this, B).parent)
781
+ ) : a(l);
782
782
  });
783
783
  }
784
784
  }
785
- K = new WeakMap(), ht = new WeakMap(), oe = new WeakMap(), Fe = new WeakMap(), V = new WeakMap(), le = new WeakMap(), W = new WeakMap(), Z = new WeakMap(), he = new WeakMap(), De = new WeakMap(), Ie = new WeakMap(), Qe = new WeakMap(), Je = new WeakMap(), Ze = new WeakMap(), pe = new WeakMap(), Pt = new WeakMap(), R = new WeakSet(), en = function() {
785
+ q = new WeakMap(), pt = new WeakMap(), oe = new WeakMap(), Fe = new WeakMap(), B = new WeakMap(), le = new WeakMap(), K = new WeakMap(), J = new WeakMap(), he = new WeakMap(), xe = new WeakMap(), Ie = new WeakMap(), Qe = new WeakMap(), Je = new WeakMap(), Ze = new WeakMap(), pe = new WeakMap(), Ht = new WeakMap(), $ = new WeakSet(), nn = function() {
786
786
  try {
787
- y(this, le, Oe(() => c(this, Fe).call(this, c(this, K))));
787
+ v(this, le, Re(() => c(this, Fe).call(this, c(this, q))));
788
788
  } catch (e) {
789
789
  this.error(e);
790
790
  }
791
791
  }, /**
792
792
  * @param {unknown} error The deserialized error from the server's hydration comment
793
793
  */
794
- tn = function(e) {
794
+ rn = function(e) {
795
795
  const i = c(this, oe).failed;
796
- i && y(this, Z, Oe(() => {
796
+ i && v(this, J, Re(() => {
797
797
  i(
798
- c(this, K),
798
+ c(this, q),
799
799
  () => e,
800
800
  () => () => {
801
801
  }
802
802
  );
803
803
  }));
804
- }, nn = function() {
804
+ }, sn = function() {
805
805
  const e = c(this, oe).pending;
806
- e && (this.is_pending = !0, y(this, W, Oe(() => e(c(this, K)))), Be(() => {
807
- var i = y(this, he, document.createDocumentFragment()), n = hn();
808
- i.append(n), y(this, le, C(this, R, Tt).call(this, () => (me.ensure(), Oe(() => c(this, Fe).call(this, n))))), c(this, Ie) === 0 && (c(this, K).before(i), y(this, he, null), At(
806
+ e && (this.is_pending = !0, v(this, K, Re(() => e(c(this, q)))), De(() => {
807
+ var i = v(this, he, document.createDocumentFragment()), n = gn();
808
+ i.append(n), v(this, le, E(this, $, At).call(this, () => (me.ensure(), Re(() => c(this, Fe).call(this, n))))), c(this, Ie) === 0 && (c(this, q).before(i), v(this, he, null), wt(
809
809
  /** @type {Effect} */
810
- c(this, W),
810
+ c(this, K),
811
811
  () => {
812
- y(this, W, null);
812
+ v(this, K, null);
813
813
  }
814
- ), C(this, R, _t).call(this));
814
+ ), E(this, $, Tt).call(this));
815
815
  }));
816
- }, Wt = function() {
816
+ }, Yt = function() {
817
817
  try {
818
- if (this.is_pending = this.has_pending_snippet(), y(this, Ie, 0), y(this, De, 0), y(this, le, Oe(() => {
819
- c(this, Fe).call(this, c(this, K));
818
+ if (this.is_pending = this.has_pending_snippet(), v(this, Ie, 0), v(this, xe, 0), v(this, le, Re(() => {
819
+ c(this, Fe).call(this, c(this, q));
820
820
  })), c(this, Ie) > 0) {
821
- var e = y(this, he, document.createDocumentFragment());
822
- Br(c(this, le), e);
821
+ var e = v(this, he, document.createDocumentFragment());
822
+ Vr(c(this, le), e);
823
823
  const i = (
824
824
  /** @type {(anchor: Node) => void} */
825
825
  c(this, oe).pending
826
826
  );
827
- y(this, W, Oe(() => i(c(this, K))));
827
+ v(this, K, Re(() => i(c(this, q))));
828
828
  } else
829
- C(this, R, _t).call(this);
829
+ E(this, $, Tt).call(this);
830
830
  } catch (i) {
831
831
  this.error(i);
832
832
  }
833
- }, _t = function() {
833
+ }, Tt = function() {
834
834
  this.is_pending = !1;
835
835
  for (const e of c(this, Je))
836
- k(e, N), ae(e);
836
+ L(e, H), ae(e);
837
837
  for (const e of c(this, Ze))
838
- k(e, re), ae(e);
838
+ L(e, ne), ae(e);
839
839
  c(this, Je).clear(), c(this, Ze).clear();
840
840
  }, /**
841
841
  * @template T
842
842
  * @param {() => T} fn
843
843
  */
844
- Tt = function(e) {
845
- var i = S, n = T, r = J;
846
- Re(c(this, V)), ce(c(this, V)), kt(c(this, V).ctx);
844
+ At = function(e) {
845
+ var i = w, n = b, r = Q;
846
+ Oe(c(this, B)), ce(c(this, B)), Rt(c(this, B).ctx);
847
847
  try {
848
848
  return e();
849
849
  } catch (s) {
850
- return Wi(s), null;
850
+ return Yi(s), null;
851
851
  } finally {
852
- Re(i), ce(n), kt(r);
852
+ Oe(i), ce(n), Rt(r);
853
853
  }
854
854
  }, /**
855
855
  * Updates the pending count associated with the currently visible pending snippet,
856
856
  * if any, such that we can replace the snippet with content once work is done
857
857
  * @param {1 | -1} d
858
858
  */
859
- Ut = function(e) {
859
+ Xt = function(e) {
860
860
  var i;
861
861
  if (!this.has_pending_snippet()) {
862
- this.parent && C(i = this.parent, R, Ut).call(i, e);
862
+ this.parent && E(i = this.parent, $, Xt).call(i, e);
863
863
  return;
864
864
  }
865
- y(this, Ie, c(this, Ie) + e), c(this, Ie) === 0 && (C(this, R, _t).call(this), c(this, W) && At(c(this, W), () => {
866
- y(this, W, null);
867
- }), c(this, he) && (c(this, K).before(c(this, he)), y(this, he, null)));
865
+ v(this, Ie, c(this, Ie) + e), c(this, Ie) === 0 && (E(this, $, Tt).call(this), c(this, K) && wt(c(this, K), () => {
866
+ v(this, K, null);
867
+ }), c(this, he) && (c(this, q).before(c(this, he)), v(this, he, null)));
868
868
  };
869
869
  // @__NO_SIDE_EFFECTS__
870
- function rn(t) {
871
- var e = M | N, i = T !== null && (T.f & M) !== 0 ? (
870
+ function on(t) {
871
+ var e = N | H, i = b !== null && (b.f & N) !== 0 ? (
872
872
  /** @type {Derived} */
873
- T
873
+ b
874
874
  ) : null;
875
- return S !== null && (S.f |= rt), {
876
- ctx: J,
875
+ return w !== null && (w.f |= rt), {
876
+ ctx: Q,
877
877
  deps: null,
878
878
  effects: null,
879
- equals: Gi,
879
+ equals: ji,
880
880
  f: e,
881
881
  fn: t,
882
882
  reactions: null,
883
883
  rv: 0,
884
884
  v: (
885
885
  /** @type {V} */
886
- F
886
+ M
887
887
  ),
888
888
  wv: 0,
889
- parent: i ?? S,
889
+ parent: i ?? w,
890
890
  ac: null
891
891
  };
892
892
  }
893
893
  // @__NO_SIDE_EFFECTS__
894
- function Ti(t) {
895
- const e = /* @__PURE__ */ rn(t);
896
- return Tn(e), e;
894
+ function wi(t) {
895
+ const e = /* @__PURE__ */ on(t);
896
+ return wn(e), e;
897
897
  }
898
- function Sr(t) {
898
+ function Cr(t) {
899
899
  var e = t.effects;
900
900
  if (e !== null) {
901
901
  t.effects = null;
902
902
  for (var i = 0; i < e.length; i += 1)
903
- ne(
903
+ ie(
904
904
  /** @type {Effect} */
905
905
  e[i]
906
906
  );
907
907
  }
908
908
  }
909
- function Er(t) {
909
+ function $r(t) {
910
910
  for (var e = t.parent; e !== null; ) {
911
- if ((e.f & M) === 0)
911
+ if ((e.f & N) === 0)
912
912
  return (e.f & Ee) === 0 ? (
913
913
  /** @type {Effect} */
914
914
  e
@@ -917,103 +917,103 @@ function Er(t) {
917
917
  }
918
918
  return null;
919
919
  }
920
- function li(t) {
921
- var e, i = S;
922
- Re(Er(t));
920
+ function ci(t) {
921
+ var e, i = w;
922
+ Oe($r(t));
923
923
  try {
924
- t.f &= ~Ve, Sr(t), e = Sn(t);
924
+ t.f &= ~Ve, Cr(t), e = Cn(t);
925
925
  } finally {
926
- Re(i);
926
+ Oe(i);
927
927
  }
928
928
  return e;
929
929
  }
930
- function sn(t) {
931
- var e = li(t);
932
- if (!t.equals(e) && (t.wv = wn(), (!H?.is_fork || t.deps === null) && (t.v = e, t.deps === null))) {
933
- k(t, D);
930
+ function ln(t) {
931
+ var e = ci(t);
932
+ if (!t.equals(e) && (t.wv = Sn(), (!P?.is_fork || t.deps === null) && (t.v = e, t.deps === null))) {
933
+ L(t, F);
934
934
  return;
935
935
  }
936
- $e || (ee !== null ? (ai() || H?.is_fork) && ee.set(t, e) : oi(t));
936
+ $e || (Z !== null ? (ui() || P?.is_fork) && Z.set(t, e) : ai(t));
937
937
  }
938
- function Cr(t) {
938
+ function Or(t) {
939
939
  if (t.effects !== null)
940
940
  for (const e of t.effects)
941
- (e.teardown || e.ac) && (e.teardown?.(), e.ac?.abort(ri), e.teardown = Yn, e.ac = null, dt(e, 0), ui(e));
941
+ (e.teardown || e.ac) && (e.teardown?.(), e.ac?.abort(oi), e.teardown = Qn, e.ac = null, ht(e, 0), di(e));
942
942
  }
943
- function on(t) {
943
+ function an(t) {
944
944
  if (t.effects !== null)
945
945
  for (const e of t.effects)
946
946
  e.teardown && it(e);
947
947
  }
948
- let Yt = /* @__PURE__ */ new Set();
948
+ let Qt = /* @__PURE__ */ new Set();
949
949
  const Ce = /* @__PURE__ */ new Map();
950
- let ln = !1;
951
- function Nt(t, e) {
950
+ let cn = !1;
951
+ function Mt(t, e) {
952
952
  var i = {
953
953
  f: 0,
954
954
  // TODO ideally we could skip this altogether, but it causes type errors
955
955
  v: t,
956
956
  reactions: null,
957
- equals: Gi,
957
+ equals: ji,
958
958
  rv: 0,
959
959
  wv: 0
960
960
  };
961
961
  return i;
962
962
  }
963
963
  // @__NO_SIDE_EFFECTS__
964
- function B(t, e) {
965
- const i = Nt(t);
966
- return Tn(i), i;
964
+ function x(t, e) {
965
+ const i = Mt(t);
966
+ return wn(i), i;
967
967
  }
968
968
  // @__NO_SIDE_EFFECTS__
969
- function $r(t, e = !1, i = !0) {
970
- const n = Nt(t);
971
- return e || (n.equals = gr), n;
969
+ function Lr(t, e = !1, i = !0) {
970
+ const n = Mt(t);
971
+ return e || (n.equals = vr), n;
972
972
  }
973
- function $(t, e, i = !1) {
974
- T !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
973
+ function C(t, e, i = !1) {
974
+ b !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
975
975
  // to ensure we error if state is set inside an inspect effect
976
- (!ie || (T.f & yi) !== 0) && qi() && (T.f & (M | Le | Bi | yi)) !== 0 && (Q === null || !et.call(Q, t)) && cr();
977
- let n = i ? lt(e) : e;
978
- return an(t, n);
976
+ (!te || (b.f & Ti) !== 0) && Ui() && (b.f & (N | Le | Vi | Ti)) !== 0 && (X === null || !et.call(X, t)) && fr();
977
+ let n = i ? at(e) : e;
978
+ return un(t, n);
979
979
  }
980
- function an(t, e) {
980
+ function un(t, e) {
981
981
  if (!t.equals(e)) {
982
982
  var i = t.v;
983
983
  $e ? Ce.set(t, e) : Ce.set(t, i), t.v = e;
984
984
  var n = me.ensure();
985
- if (n.capture(t, i), (t.f & M) !== 0) {
985
+ if (n.capture(t, i), (t.f & N) !== 0) {
986
986
  const r = (
987
987
  /** @type {Derived} */
988
988
  t
989
989
  );
990
- (t.f & N) !== 0 && li(r), oi(r);
990
+ (t.f & H) !== 0 && ci(r), ai(r);
991
991
  }
992
- t.wv = wn(), cn(t, N), S !== null && (S.f & D) !== 0 && (S.f & (ve | ke)) === 0 && (U === null ? xr([t]) : U.push(t)), !n.is_fork && Yt.size > 0 && !ln && Rr();
992
+ t.wv = Sn(), fn(t, H), w !== null && (w.f & F) !== 0 && (w.f & (ve | ke)) === 0 && (U === null ? Gr([t]) : U.push(t)), !n.is_fork && Qt.size > 0 && !cn && kr();
993
993
  }
994
994
  return e;
995
995
  }
996
- function Rr() {
997
- ln = !1;
998
- for (const t of Yt)
999
- (t.f & D) !== 0 && k(t, re), pt(t) && it(t);
1000
- Yt.clear();
996
+ function kr() {
997
+ cn = !1;
998
+ for (const t of Qt)
999
+ (t.f & F) !== 0 && L(t, ne), gt(t) && it(t);
1000
+ Qt.clear();
1001
1001
  }
1002
- function ct(t) {
1003
- $(t, t.v + 1);
1002
+ function ut(t) {
1003
+ C(t, t.v + 1);
1004
1004
  }
1005
- function cn(t, e) {
1005
+ function fn(t, e) {
1006
1006
  var i = t.reactions;
1007
1007
  if (i !== null)
1008
1008
  for (var n = i.length, r = 0; r < n; r++) {
1009
- var s = i[r], o = s.f, l = (o & N) === 0;
1010
- if (l && k(s, e), (o & M) !== 0) {
1011
- var a = (
1009
+ var s = i[r], o = s.f, a = (o & H) === 0;
1010
+ if (a && L(s, e), (o & N) !== 0) {
1011
+ var l = (
1012
1012
  /** @type {Derived} */
1013
1013
  s
1014
1014
  );
1015
- ee?.delete(a), (o & Ve) === 0 && (o & X && (s.f |= Ve), cn(a, re));
1016
- } else l && ((o & Le) !== 0 && de !== null && de.add(
1015
+ Z?.delete(l), (o & Ve) === 0 && (o & Y && (s.f |= Ve), fn(l, ne));
1016
+ } else a && ((o & Le) !== 0 && de !== null && de.add(
1017
1017
  /** @type {Effect} */
1018
1018
  s
1019
1019
  ), ae(
@@ -1022,67 +1022,67 @@ function cn(t, e) {
1022
1022
  ));
1023
1023
  }
1024
1024
  }
1025
- function lt(t) {
1026
- if (typeof t != "object" || t === null || yt in t)
1025
+ function at(t) {
1026
+ if (typeof t != "object" || t === null || _t in t)
1027
1027
  return t;
1028
- const e = Un(t);
1029
- if (e !== Kn && e !== Wn)
1028
+ const e = Xn(t);
1029
+ if (e !== Wn && e !== Yn)
1030
1030
  return t;
1031
- var i = /* @__PURE__ */ new Map(), n = zn(t), r = /* @__PURE__ */ B(0), s = xe, o = (l) => {
1032
- if (xe === s)
1033
- return l();
1034
- var a = T, u = xe;
1035
- ce(null), Ii(s);
1036
- var d = l();
1037
- return ce(a), Ii(u), d;
1031
+ var i = /* @__PURE__ */ new Map(), n = qn(t), r = /* @__PURE__ */ x(0), s = Be, o = (a) => {
1032
+ if (Be === s)
1033
+ return a();
1034
+ var l = b, f = Be;
1035
+ ce(null), Ei(s);
1036
+ var d = a();
1037
+ return ce(l), Ei(f), d;
1038
1038
  };
1039
- return n && i.set("length", /* @__PURE__ */ B(
1039
+ return n && i.set("length", /* @__PURE__ */ x(
1040
1040
  /** @type {any[]} */
1041
1041
  t.length
1042
1042
  )), new Proxy(
1043
1043
  /** @type {any} */
1044
1044
  t,
1045
1045
  {
1046
- defineProperty(l, a, u) {
1047
- (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && lr();
1048
- var d = i.get(a);
1046
+ defineProperty(a, l, f) {
1047
+ (!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && cr();
1048
+ var d = i.get(l);
1049
1049
  return d === void 0 ? o(() => {
1050
- var p = /* @__PURE__ */ B(u.value);
1051
- return i.set(a, p), p;
1052
- }) : $(d, u.value, !0), !0;
1050
+ var h = /* @__PURE__ */ x(f.value);
1051
+ return i.set(l, h), h;
1052
+ }) : C(d, f.value, !0), !0;
1053
1053
  },
1054
- deleteProperty(l, a) {
1055
- var u = i.get(a);
1056
- if (u === void 0) {
1057
- if (a in l) {
1058
- const d = o(() => /* @__PURE__ */ B(F));
1059
- i.set(a, d), ct(r);
1054
+ deleteProperty(a, l) {
1055
+ var f = i.get(l);
1056
+ if (f === void 0) {
1057
+ if (l in a) {
1058
+ const d = o(() => /* @__PURE__ */ x(M));
1059
+ i.set(l, d), ut(r);
1060
1060
  }
1061
1061
  } else
1062
- $(u, F), ct(r);
1062
+ C(f, M), ut(r);
1063
1063
  return !0;
1064
1064
  },
1065
- get(l, a, u) {
1066
- if (a === yt)
1065
+ get(a, l, f) {
1066
+ if (l === _t)
1067
1067
  return t;
1068
- var d = i.get(a), p = a in l;
1069
- if (d === void 0 && (!p || qe(l, a)?.writable) && (d = o(() => {
1070
- var g = lt(p ? l[a] : F), h = /* @__PURE__ */ B(g);
1071
- return h;
1072
- }), i.set(a, d)), d !== void 0) {
1073
- var m = v(d);
1074
- return m === F ? void 0 : m;
1068
+ var d = i.get(l), h = l in a;
1069
+ if (d === void 0 && (!h || qe(a, l)?.writable) && (d = o(() => {
1070
+ var y = at(h ? a[l] : M), p = /* @__PURE__ */ x(y);
1071
+ return p;
1072
+ }), i.set(l, d)), d !== void 0) {
1073
+ var m = g(d);
1074
+ return m === M ? void 0 : m;
1075
1075
  }
1076
- return Reflect.get(l, a, u);
1076
+ return Reflect.get(a, l, f);
1077
1077
  },
1078
- getOwnPropertyDescriptor(l, a) {
1079
- var u = Reflect.getOwnPropertyDescriptor(l, a);
1080
- if (u && "value" in u) {
1081
- var d = i.get(a);
1082
- d && (u.value = v(d));
1083
- } else if (u === void 0) {
1084
- var p = i.get(a), m = p?.v;
1085
- if (p !== void 0 && m !== F)
1078
+ getOwnPropertyDescriptor(a, l) {
1079
+ var f = Reflect.getOwnPropertyDescriptor(a, l);
1080
+ if (f && "value" in f) {
1081
+ var d = i.get(l);
1082
+ d && (f.value = g(d));
1083
+ } else if (f === void 0) {
1084
+ var h = i.get(l), m = h?.v;
1085
+ if (h !== void 0 && m !== M)
1086
1086
  return {
1087
1087
  enumerable: !0,
1088
1088
  configurable: !0,
@@ -1090,125 +1090,125 @@ function lt(t) {
1090
1090
  writable: !0
1091
1091
  };
1092
1092
  }
1093
- return u;
1093
+ return f;
1094
1094
  },
1095
- has(l, a) {
1096
- if (a === yt)
1095
+ has(a, l) {
1096
+ if (l === _t)
1097
1097
  return !0;
1098
- var u = i.get(a), d = u !== void 0 && u.v !== F || Reflect.has(l, a);
1099
- if (u !== void 0 || S !== null && (!d || qe(l, a)?.writable)) {
1100
- u === void 0 && (u = o(() => {
1101
- var m = d ? lt(l[a]) : F, g = /* @__PURE__ */ B(m);
1102
- return g;
1103
- }), i.set(a, u));
1104
- var p = v(u);
1105
- if (p === F)
1098
+ var f = i.get(l), d = f !== void 0 && f.v !== M || Reflect.has(a, l);
1099
+ if (f !== void 0 || w !== null && (!d || qe(a, l)?.writable)) {
1100
+ f === void 0 && (f = o(() => {
1101
+ var m = d ? at(a[l]) : M, y = /* @__PURE__ */ x(m);
1102
+ return y;
1103
+ }), i.set(l, f));
1104
+ var h = g(f);
1105
+ if (h === M)
1106
1106
  return !1;
1107
1107
  }
1108
1108
  return d;
1109
1109
  },
1110
- set(l, a, u, d) {
1111
- var p = i.get(a), m = a in l;
1112
- if (n && a === "length")
1113
- for (var g = u; g < /** @type {Source<number>} */
1114
- p.v; g += 1) {
1115
- var h = i.get(g + "");
1116
- h !== void 0 ? $(h, F) : g in l && (h = o(() => /* @__PURE__ */ B(F)), i.set(g + "", h));
1110
+ set(a, l, f, d) {
1111
+ var h = i.get(l), m = l in a;
1112
+ if (n && l === "length")
1113
+ for (var y = f; y < /** @type {Source<number>} */
1114
+ h.v; y += 1) {
1115
+ var p = i.get(y + "");
1116
+ p !== void 0 ? C(p, M) : y in a && (p = o(() => /* @__PURE__ */ x(M)), i.set(y + "", p));
1117
1117
  }
1118
- if (p === void 0)
1119
- (!m || qe(l, a)?.writable) && (p = o(() => /* @__PURE__ */ B(void 0)), $(p, lt(u)), i.set(a, p));
1118
+ if (h === void 0)
1119
+ (!m || qe(a, l)?.writable) && (h = o(() => /* @__PURE__ */ x(void 0)), C(h, at(f)), i.set(l, h));
1120
1120
  else {
1121
- m = p.v !== F;
1122
- var _ = o(() => lt(u));
1123
- $(p, _);
1121
+ m = h.v !== M;
1122
+ var S = o(() => at(f));
1123
+ C(h, S);
1124
1124
  }
1125
- var b = Reflect.getOwnPropertyDescriptor(l, a);
1126
- if (b?.set && b.set.call(d, u), !m) {
1127
- if (n && typeof a == "string") {
1128
- var A = (
1125
+ var _ = Reflect.getOwnPropertyDescriptor(a, l);
1126
+ if (_?.set && _.set.call(d, f), !m) {
1127
+ if (n && typeof l == "string") {
1128
+ var k = (
1129
1129
  /** @type {Source<number>} */
1130
1130
  i.get("length")
1131
- ), O = Number(a);
1132
- Number.isInteger(O) && O >= A.v && $(A, O + 1);
1131
+ ), re = Number(l);
1132
+ Number.isInteger(re) && re >= k.v && C(k, re + 1);
1133
1133
  }
1134
- ct(r);
1134
+ ut(r);
1135
1135
  }
1136
1136
  return !0;
1137
1137
  },
1138
- ownKeys(l) {
1139
- v(r);
1140
- var a = Reflect.ownKeys(l).filter((p) => {
1141
- var m = i.get(p);
1142
- return m === void 0 || m.v !== F;
1138
+ ownKeys(a) {
1139
+ g(r);
1140
+ var l = Reflect.ownKeys(a).filter((h) => {
1141
+ var m = i.get(h);
1142
+ return m === void 0 || m.v !== M;
1143
1143
  });
1144
- for (var [u, d] of i)
1145
- d.v !== F && !(u in l) && a.push(u);
1146
- return a;
1144
+ for (var [f, d] of i)
1145
+ d.v !== M && !(f in a) && l.push(f);
1146
+ return l;
1147
1147
  },
1148
1148
  setPrototypeOf() {
1149
- ar();
1149
+ ur();
1150
1150
  }
1151
1151
  }
1152
1152
  );
1153
1153
  }
1154
- var Ai, un, fn, dn;
1155
- function Xt() {
1156
- if (Ai === void 0) {
1157
- Ai = window, un = /Firefox/.test(navigator.userAgent);
1154
+ var Ii, dn, hn, pn;
1155
+ function Jt() {
1156
+ if (Ii === void 0) {
1157
+ Ii = window, dn = /Firefox/.test(navigator.userAgent);
1158
1158
  var t = Element.prototype, e = Node.prototype, i = Text.prototype;
1159
- fn = qe(e, "firstChild").get, dn = qe(e, "nextSibling").get, bi(t) && (t.__click = void 0, t.__className = void 0, t.__attributes = null, t.__style = void 0, t.__e = void 0), bi(i) && (i.__t = void 0);
1159
+ hn = qe(e, "firstChild").get, pn = qe(e, "nextSibling").get, _i(t) && (t.__click = void 0, t.__className = void 0, t.__attributes = null, t.__style = void 0, t.__e = void 0), _i(i) && (i.__t = void 0);
1160
1160
  }
1161
1161
  }
1162
- function hn(t = "") {
1162
+ function gn(t = "") {
1163
1163
  return document.createTextNode(t);
1164
1164
  }
1165
1165
  // @__NO_SIDE_EFFECTS__
1166
- function pn(t) {
1166
+ function mn(t) {
1167
1167
  return (
1168
1168
  /** @type {TemplateNode | null} */
1169
- fn.call(t)
1169
+ hn.call(t)
1170
1170
  );
1171
1171
  }
1172
1172
  // @__NO_SIDE_EFFECTS__
1173
1173
  function st(t) {
1174
1174
  return (
1175
1175
  /** @type {TemplateNode | null} */
1176
- dn.call(t)
1176
+ pn.call(t)
1177
1177
  );
1178
1178
  }
1179
- function Lr(t) {
1179
+ function Rr(t) {
1180
1180
  t.textContent = "";
1181
1181
  }
1182
- function gn(t, e, i) {
1182
+ function vn(t, e, i) {
1183
1183
  return (
1184
1184
  /** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
1185
- document.createElementNS(Gn, t, void 0)
1185
+ document.createElementNS(jn, t, void 0)
1186
1186
  );
1187
1187
  }
1188
- function mn(t) {
1189
- var e = T, i = S;
1190
- ce(null), Re(null);
1188
+ function bn(t) {
1189
+ var e = b, i = w;
1190
+ ce(null), Oe(null);
1191
1191
  try {
1192
1192
  return t();
1193
1193
  } finally {
1194
- ce(e), Re(i);
1194
+ ce(e), Oe(i);
1195
1195
  }
1196
1196
  }
1197
- function kr(t) {
1198
- S === null && (T === null && rr(), nr()), $e && ir();
1197
+ function Pr(t) {
1198
+ w === null && (b === null && or(), sr()), $e && rr();
1199
1199
  }
1200
- function Or(t, e) {
1200
+ function Hr(t, e) {
1201
1201
  var i = e.last;
1202
1202
  i === null ? e.last = e.first = t : (i.next = t, t.prev = i, e.last = t);
1203
1203
  }
1204
1204
  function ze(t, e) {
1205
- var i = S;
1205
+ var i = w;
1206
1206
  i !== null && (i.f & Se) !== 0 && (t |= Se);
1207
1207
  var n = {
1208
- ctx: J,
1208
+ ctx: Q,
1209
1209
  deps: null,
1210
1210
  nodes: null,
1211
- f: t | N | X,
1211
+ f: t | H | Y,
1212
1212
  first: null,
1213
1213
  fn: e,
1214
1214
  last: null,
@@ -1226,334 +1226,334 @@ function ze(t, e) {
1226
1226
  try {
1227
1227
  it(n);
1228
1228
  } catch (o) {
1229
- throw ne(n), o;
1229
+ throw ie(n), o;
1230
1230
  }
1231
1231
  r.deps === null && r.teardown === null && r.nodes === null && r.first === r.last && // either `null`, or a singular child
1232
- (r.f & rt) === 0 && (r = r.first, (t & Le) !== 0 && (t & Lt) !== 0 && r !== null && (r.f |= Lt));
1232
+ (r.f & rt) === 0 && (r = r.first, (t & Le) !== 0 && (t & kt) !== 0 && r !== null && (r.f |= kt));
1233
1233
  }
1234
- if (r !== null && (r.parent = i, i !== null && Or(r, i), T !== null && (T.f & M) !== 0 && (t & ke) === 0)) {
1234
+ if (r !== null && (r.parent = i, i !== null && Hr(r, i), b !== null && (b.f & N) !== 0 && (t & ke) === 0)) {
1235
1235
  var s = (
1236
1236
  /** @type {Derived} */
1237
- T
1237
+ b
1238
1238
  );
1239
1239
  (s.effects ?? (s.effects = [])).push(r);
1240
1240
  }
1241
1241
  return n;
1242
1242
  }
1243
- function ai() {
1244
- return T !== null && !ie;
1243
+ function ui() {
1244
+ return b !== null && !te;
1245
1245
  }
1246
1246
  function Pe(t) {
1247
- kr();
1247
+ Pr();
1248
1248
  var e = (
1249
1249
  /** @type {Effect} */
1250
- S.f
1251
- ), i = !T && (e & ve) !== 0 && (e & Ge) === 0;
1250
+ w.f
1251
+ ), i = !b && (e & ve) !== 0 && (e & Ge) === 0;
1252
1252
  if (i) {
1253
1253
  var n = (
1254
1254
  /** @type {ComponentContext} */
1255
- J
1255
+ Q
1256
1256
  );
1257
1257
  (n.e ?? (n.e = [])).push(t);
1258
1258
  } else
1259
- return vn(t);
1259
+ return yn(t);
1260
1260
  }
1261
- function vn(t) {
1262
- return ze(nt | Zn, t);
1261
+ function yn(t) {
1262
+ return ze(nt | tr, t);
1263
1263
  }
1264
- function Pr(t) {
1264
+ function Nr(t) {
1265
1265
  me.ensure();
1266
1266
  const e = ze(ke | rt, t);
1267
1267
  return () => {
1268
- ne(e);
1268
+ ie(e);
1269
1269
  };
1270
1270
  }
1271
- function Hr(t) {
1271
+ function Mr(t) {
1272
1272
  me.ensure();
1273
1273
  const e = ze(ke | rt, t);
1274
1274
  return (i = {}) => new Promise((n) => {
1275
- i.outro ? At(e, () => {
1276
- ne(e), n(void 0);
1277
- }) : (ne(e), n(void 0));
1275
+ i.outro ? wt(e, () => {
1276
+ ie(e), n(void 0);
1277
+ }) : (ie(e), n(void 0));
1278
1278
  });
1279
1279
  }
1280
- function Nr(t) {
1280
+ function Fr(t) {
1281
1281
  return ze(nt, t);
1282
1282
  }
1283
- function ci(t, e = 0) {
1284
- return ze(Rt | e, t);
1283
+ function fi(t, e = 0) {
1284
+ return ze(Lt | e, t);
1285
1285
  }
1286
- function Mr(t, e = 0) {
1286
+ function xr(t, e = 0) {
1287
1287
  var i = ze(Le | e, t);
1288
1288
  return i;
1289
1289
  }
1290
- function Oe(t) {
1290
+ function Re(t) {
1291
1291
  return ze(ve | rt, t);
1292
1292
  }
1293
- function bn(t) {
1293
+ function _n(t) {
1294
1294
  var e = t.teardown;
1295
1295
  if (e !== null) {
1296
- const i = $e, n = T;
1297
- wi(!0), ce(null);
1296
+ const i = $e, n = b;
1297
+ Si(!0), ce(null);
1298
1298
  try {
1299
1299
  e.call(null);
1300
1300
  } finally {
1301
- wi(i), ce(n);
1301
+ Si(i), ce(n);
1302
1302
  }
1303
1303
  }
1304
1304
  }
1305
- function ui(t, e = !1) {
1305
+ function di(t, e = !1) {
1306
1306
  var i = t.first;
1307
1307
  for (t.first = t.last = null; i !== null; ) {
1308
1308
  const r = i.ac;
1309
- r !== null && mn(() => {
1310
- r.abort(ri);
1309
+ r !== null && bn(() => {
1310
+ r.abort(oi);
1311
1311
  });
1312
1312
  var n = i.next;
1313
- (i.f & ke) !== 0 ? i.parent = null : ne(i, e), i = n;
1313
+ (i.f & ke) !== 0 ? i.parent = null : ie(i, e), i = n;
1314
1314
  }
1315
1315
  }
1316
- function Fr(t) {
1316
+ function Dr(t) {
1317
1317
  for (var e = t.first; e !== null; ) {
1318
1318
  var i = e.next;
1319
- (e.f & ve) === 0 && ne(e), e = i;
1319
+ (e.f & ve) === 0 && ie(e), e = i;
1320
1320
  }
1321
1321
  }
1322
- function ne(t, e = !0) {
1322
+ function ie(t, e = !0) {
1323
1323
  var i = !1;
1324
- (e || (t.f & Jn) !== 0) && t.nodes !== null && t.nodes.end !== null && (Dr(
1324
+ (e || (t.f & er) !== 0) && t.nodes !== null && t.nodes.end !== null && (Br(
1325
1325
  t.nodes.start,
1326
1326
  /** @type {TemplateNode} */
1327
1327
  t.nodes.end
1328
- ), i = !0), ui(t, e && !i), dt(t, 0), k(t, Ee);
1328
+ ), i = !0), di(t, e && !i), ht(t, 0), L(t, Ee);
1329
1329
  var n = t.nodes && t.nodes.t;
1330
1330
  if (n !== null)
1331
1331
  for (const s of n)
1332
1332
  s.stop();
1333
- bn(t);
1333
+ _n(t);
1334
1334
  var r = t.parent;
1335
- r !== null && r.first !== null && yn(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes = t.ac = null;
1335
+ r !== null && r.first !== null && Tn(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes = t.ac = null;
1336
1336
  }
1337
- function Dr(t, e) {
1337
+ function Br(t, e) {
1338
1338
  for (; t !== null; ) {
1339
1339
  var i = t === e ? null : /* @__PURE__ */ st(t);
1340
1340
  t.remove(), t = i;
1341
1341
  }
1342
1342
  }
1343
- function yn(t) {
1343
+ function Tn(t) {
1344
1344
  var e = t.parent, i = t.prev, n = t.next;
1345
1345
  i !== null && (i.next = n), n !== null && (n.prev = i), e !== null && (e.first === t && (e.first = n), e.last === t && (e.last = i));
1346
1346
  }
1347
- function At(t, e, i = !0) {
1347
+ function wt(t, e, i = !0) {
1348
1348
  var n = [];
1349
- _n(t, n, !0);
1349
+ An(t, n, !0);
1350
1350
  var r = () => {
1351
- i && ne(t), e && e();
1351
+ i && ie(t), e && e();
1352
1352
  }, s = n.length;
1353
1353
  if (s > 0) {
1354
1354
  var o = () => --s || r();
1355
- for (var l of n)
1356
- l.out(o);
1355
+ for (var a of n)
1356
+ a.out(o);
1357
1357
  } else
1358
1358
  r();
1359
1359
  }
1360
- function _n(t, e, i) {
1360
+ function An(t, e, i) {
1361
1361
  if ((t.f & Se) === 0) {
1362
1362
  t.f ^= Se;
1363
1363
  var n = t.nodes && t.nodes.t;
1364
1364
  if (n !== null)
1365
- for (const l of n)
1366
- (l.is_global || i) && e.push(l);
1365
+ for (const a of n)
1366
+ (a.is_global || i) && e.push(a);
1367
1367
  for (var r = t.first; r !== null; ) {
1368
- var s = r.next, o = (r.f & Lt) !== 0 || // If this is a branch effect without a block effect parent,
1368
+ var s = r.next, o = (r.f & kt) !== 0 || // If this is a branch effect without a block effect parent,
1369
1369
  // it means the parent block effect was pruned. In that case,
1370
1370
  // transparency information was transferred to the branch effect.
1371
1371
  (r.f & ve) !== 0 && (t.f & Le) !== 0;
1372
- _n(r, e, o ? i : !1), r = s;
1372
+ An(r, e, o ? i : !1), r = s;
1373
1373
  }
1374
1374
  }
1375
1375
  }
1376
- function Br(t, e) {
1376
+ function Vr(t, e) {
1377
1377
  if (t.nodes)
1378
1378
  for (var i = t.nodes.start, n = t.nodes.end; i !== null; ) {
1379
1379
  var r = i === n ? null : /* @__PURE__ */ st(i);
1380
1380
  e.append(i), i = r;
1381
1381
  }
1382
1382
  }
1383
- let wt = !1, $e = !1;
1384
- function wi(t) {
1383
+ let It = !1, $e = !1;
1384
+ function Si(t) {
1385
1385
  $e = t;
1386
1386
  }
1387
- let T = null, ie = !1;
1387
+ let b = null, te = !1;
1388
1388
  function ce(t) {
1389
- T = t;
1389
+ b = t;
1390
1390
  }
1391
- let S = null;
1392
- function Re(t) {
1393
- S = t;
1391
+ let w = null;
1392
+ function Oe(t) {
1393
+ w = t;
1394
1394
  }
1395
- let Q = null;
1396
- function Tn(t) {
1397
- T !== null && (Q === null ? Q = [t] : Q.push(t));
1395
+ let X = null;
1396
+ function wn(t) {
1397
+ b !== null && (X === null ? X = [t] : X.push(t));
1398
1398
  }
1399
- let z = null, q = 0, U = null;
1400
- function xr(t) {
1399
+ let G = null, j = 0, U = null;
1400
+ function Gr(t) {
1401
1401
  U = t;
1402
1402
  }
1403
- let An = 1, Ne = 0, xe = Ne;
1404
- function Ii(t) {
1405
- xe = t;
1403
+ let In = 1, Ne = 0, Be = Ne;
1404
+ function Ei(t) {
1405
+ Be = t;
1406
1406
  }
1407
- function wn() {
1408
- return ++An;
1407
+ function Sn() {
1408
+ return ++In;
1409
1409
  }
1410
- function pt(t) {
1410
+ function gt(t) {
1411
1411
  var e = t.f;
1412
- if ((e & N) !== 0)
1412
+ if ((e & H) !== 0)
1413
1413
  return !0;
1414
- if (e & M && (t.f &= ~Ve), (e & re) !== 0) {
1414
+ if (e & N && (t.f &= ~Ve), (e & ne) !== 0) {
1415
1415
  for (var i = (
1416
1416
  /** @type {Value[]} */
1417
1417
  t.deps
1418
1418
  ), n = i.length, r = 0; r < n; r++) {
1419
1419
  var s = i[r];
1420
- if (pt(
1420
+ if (gt(
1421
1421
  /** @type {Derived} */
1422
1422
  s
1423
- ) && sn(
1423
+ ) && ln(
1424
1424
  /** @type {Derived} */
1425
1425
  s
1426
1426
  ), s.wv > t.wv)
1427
1427
  return !0;
1428
1428
  }
1429
- (e & X) !== 0 && // During time traveling we don't want to reset the status so that
1429
+ (e & Y) !== 0 && // During time traveling we don't want to reset the status so that
1430
1430
  // traversal of the graph in the other batches still happens
1431
- ee === null && k(t, D);
1431
+ Z === null && L(t, F);
1432
1432
  }
1433
1433
  return !1;
1434
1434
  }
1435
- function In(t, e, i = !0) {
1435
+ function En(t, e, i = !0) {
1436
1436
  var n = t.reactions;
1437
- if (n !== null && !(Q !== null && et.call(Q, t)))
1437
+ if (n !== null && !(X !== null && et.call(X, t)))
1438
1438
  for (var r = 0; r < n.length; r++) {
1439
1439
  var s = n[r];
1440
- (s.f & M) !== 0 ? In(
1440
+ (s.f & N) !== 0 ? En(
1441
1441
  /** @type {Derived} */
1442
1442
  s,
1443
1443
  e,
1444
1444
  !1
1445
- ) : e === s && (i ? k(s, N) : (s.f & D) !== 0 && k(s, re), ae(
1445
+ ) : e === s && (i ? L(s, H) : (s.f & F) !== 0 && L(s, ne), ae(
1446
1446
  /** @type {Effect} */
1447
1447
  s
1448
1448
  ));
1449
1449
  }
1450
1450
  }
1451
- function Sn(t) {
1452
- var _;
1453
- var e = z, i = q, n = U, r = T, s = Q, o = J, l = ie, a = xe, u = t.f;
1454
- z = /** @type {null | Value[]} */
1455
- null, q = 0, U = null, T = (u & (ve | ke)) === 0 ? t : null, Q = null, kt(t.ctx), ie = !1, xe = ++Ne, t.ac !== null && (mn(() => {
1456
- t.ac.abort(ri);
1451
+ function Cn(t) {
1452
+ var S;
1453
+ var e = G, i = j, n = U, r = b, s = X, o = Q, a = te, l = Be, f = t.f;
1454
+ G = /** @type {null | Value[]} */
1455
+ null, j = 0, U = null, b = (f & (ve | ke)) === 0 ? t : null, X = null, Rt(t.ctx), te = !1, Be = ++Ne, t.ac !== null && (bn(() => {
1456
+ t.ac.abort(oi);
1457
1457
  }), t.ac = null);
1458
1458
  try {
1459
- t.f |= Gt;
1459
+ t.f |= jt;
1460
1460
  var d = (
1461
1461
  /** @type {Function} */
1462
1462
  t.fn
1463
- ), p = d();
1463
+ ), h = d();
1464
1464
  t.f |= Ge;
1465
- var m = t.deps, g = H?.is_fork;
1466
- if (z !== null) {
1467
- var h;
1468
- if (g || dt(t, q), m !== null && q > 0)
1469
- for (m.length = q + z.length, h = 0; h < z.length; h++)
1470
- m[q + h] = z[h];
1465
+ var m = t.deps, y = P?.is_fork;
1466
+ if (G !== null) {
1467
+ var p;
1468
+ if (y || ht(t, j), m !== null && j > 0)
1469
+ for (m.length = j + G.length, p = 0; p < G.length; p++)
1470
+ m[j + p] = G[p];
1471
1471
  else
1472
- t.deps = m = z;
1473
- if (ai() && (t.f & X) !== 0)
1474
- for (h = q; h < m.length; h++)
1475
- ((_ = m[h]).reactions ?? (_.reactions = [])).push(t);
1476
- } else !g && m !== null && q < m.length && (dt(t, q), m.length = q);
1477
- if (qi() && U !== null && !ie && m !== null && (t.f & (M | re | N)) === 0)
1478
- for (h = 0; h < /** @type {Source[]} */
1479
- U.length; h++)
1480
- In(
1481
- U[h],
1472
+ t.deps = m = G;
1473
+ if (ui() && (t.f & Y) !== 0)
1474
+ for (p = j; p < m.length; p++)
1475
+ ((S = m[p]).reactions ?? (S.reactions = [])).push(t);
1476
+ } else !y && m !== null && j < m.length && (ht(t, j), m.length = j);
1477
+ if (Ui() && U !== null && !te && m !== null && (t.f & (N | ne | H)) === 0)
1478
+ for (p = 0; p < /** @type {Source[]} */
1479
+ U.length; p++)
1480
+ En(
1481
+ U[p],
1482
1482
  /** @type {Effect} */
1483
1483
  t
1484
1484
  );
1485
1485
  if (r !== null && r !== t) {
1486
1486
  if (Ne++, r.deps !== null)
1487
- for (let b = 0; b < i; b += 1)
1488
- r.deps[b].rv = Ne;
1487
+ for (let _ = 0; _ < i; _ += 1)
1488
+ r.deps[_].rv = Ne;
1489
1489
  if (e !== null)
1490
- for (const b of e)
1491
- b.rv = Ne;
1490
+ for (const _ of e)
1491
+ _.rv = Ne;
1492
1492
  U !== null && (n === null ? n = U : n.push(.../** @type {Source[]} */
1493
1493
  U));
1494
1494
  }
1495
- return (t.f & ut) !== 0 && (t.f ^= ut), p;
1496
- } catch (b) {
1497
- return Wi(b);
1495
+ return (t.f & ft) !== 0 && (t.f ^= ft), h;
1496
+ } catch (_) {
1497
+ return Yi(_);
1498
1498
  } finally {
1499
- t.f ^= Gt, z = e, q = i, U = n, T = r, Q = s, kt(o), ie = l, xe = a;
1499
+ t.f ^= jt, G = e, j = i, U = n, b = r, X = s, Rt(o), te = a, Be = l;
1500
1500
  }
1501
1501
  }
1502
- function Vr(t, e) {
1502
+ function zr(t, e) {
1503
1503
  let i = e.reactions;
1504
1504
  if (i !== null) {
1505
- var n = jn.call(i, t);
1505
+ var n = Kn.call(i, t);
1506
1506
  if (n !== -1) {
1507
1507
  var r = i.length - 1;
1508
1508
  r === 0 ? i = e.reactions = null : (i[n] = i[r], i.pop());
1509
1509
  }
1510
1510
  }
1511
- if (i === null && (e.f & M) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1511
+ if (i === null && (e.f & N) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1512
1512
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
1513
1513
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
1514
- (z === null || !et.call(z, e))) {
1514
+ (G === null || !et.call(G, e))) {
1515
1515
  var s = (
1516
1516
  /** @type {Derived} */
1517
1517
  e
1518
1518
  );
1519
- (s.f & X) !== 0 && (s.f ^= X, s.f &= ~Ve), oi(s), Cr(s), dt(s, 0);
1519
+ (s.f & Y) !== 0 && (s.f ^= Y, s.f &= ~Ve), ai(s), Or(s), ht(s, 0);
1520
1520
  }
1521
1521
  }
1522
- function dt(t, e) {
1522
+ function ht(t, e) {
1523
1523
  var i = t.deps;
1524
1524
  if (i !== null)
1525
1525
  for (var n = e; n < i.length; n++)
1526
- Vr(t, i[n]);
1526
+ zr(t, i[n]);
1527
1527
  }
1528
1528
  function it(t) {
1529
1529
  var e = t.f;
1530
1530
  if ((e & Ee) === 0) {
1531
- k(t, D);
1532
- var i = S, n = wt;
1533
- S = t, wt = !0;
1531
+ L(t, F);
1532
+ var i = w, n = It;
1533
+ w = t, It = !0;
1534
1534
  try {
1535
- (e & (Le | ni)) !== 0 ? Fr(t) : ui(t), bn(t);
1536
- var r = Sn(t);
1537
- t.teardown = typeof r == "function" ? r : null, t.wv = An;
1535
+ (e & (Le | si)) !== 0 ? Dr(t) : di(t), _n(t);
1536
+ var r = Cn(t);
1537
+ t.teardown = typeof r == "function" ? r : null, t.wv = In;
1538
1538
  var s;
1539
- xt && mr && (t.f & N) !== 0 && t.deps;
1539
+ Gt && br && (t.f & H) !== 0 && t.deps;
1540
1540
  } finally {
1541
- wt = n, S = i;
1541
+ It = n, w = i;
1542
1542
  }
1543
1543
  }
1544
1544
  }
1545
- function v(t) {
1546
- var e = t.f, i = (e & M) !== 0;
1547
- if (T !== null && !ie) {
1548
- var n = S !== null && (S.f & Ee) !== 0;
1549
- if (!n && (Q === null || !et.call(Q, t))) {
1550
- var r = T.deps;
1551
- if ((T.f & Gt) !== 0)
1552
- t.rv < Ne && (t.rv = Ne, z === null && r !== null && r[q] === t ? q++ : z === null ? z = [t] : z.push(t));
1545
+ function g(t) {
1546
+ var e = t.f, i = (e & N) !== 0;
1547
+ if (b !== null && !te) {
1548
+ var n = w !== null && (w.f & Ee) !== 0;
1549
+ if (!n && (X === null || !et.call(X, t))) {
1550
+ var r = b.deps;
1551
+ if ((b.f & jt) !== 0)
1552
+ t.rv < Ne && (t.rv = Ne, G === null && r !== null && r[j] === t ? j++ : G === null ? G = [t] : G.push(t));
1553
1553
  else {
1554
- (T.deps ?? (T.deps = [])).push(t);
1554
+ (b.deps ?? (b.deps = [])).push(t);
1555
1555
  var s = t.reactions;
1556
- s === null ? t.reactions = [T] : et.call(s, T) || s.push(T);
1556
+ s === null ? t.reactions = [b] : et.call(s, b) || s.push(b);
1557
1557
  }
1558
1558
  }
1559
1559
  }
@@ -1565,51 +1565,51 @@ function v(t) {
1565
1565
  t
1566
1566
  );
1567
1567
  if ($e) {
1568
- var l = o.v;
1569
- return ((o.f & D) === 0 && o.reactions !== null || Cn(o)) && (l = li(o)), Ce.set(o, l), l;
1568
+ var a = o.v;
1569
+ return ((o.f & F) === 0 && o.reactions !== null || On(o)) && (a = ci(o)), Ce.set(o, a), a;
1570
1570
  }
1571
- var a = (o.f & X) === 0 && !ie && T !== null && (wt || (T.f & X) !== 0), u = (o.f & Ge) === 0;
1572
- pt(o) && (a && (o.f |= X), sn(o)), a && !u && (on(o), En(o));
1571
+ var l = (o.f & Y) === 0 && !te && b !== null && (It || (b.f & Y) !== 0), f = (o.f & Ge) === 0;
1572
+ gt(o) && (l && (o.f |= Y), ln(o)), l && !f && (an(o), $n(o));
1573
1573
  }
1574
- if (ee?.has(t))
1575
- return ee.get(t);
1576
- if ((t.f & ut) !== 0)
1574
+ if (Z?.has(t))
1575
+ return Z.get(t);
1576
+ if ((t.f & ft) !== 0)
1577
1577
  throw t.v;
1578
1578
  return t.v;
1579
1579
  }
1580
- function En(t) {
1581
- if (t.f |= X, t.deps !== null)
1580
+ function $n(t) {
1581
+ if (t.f |= Y, t.deps !== null)
1582
1582
  for (const e of t.deps)
1583
- (e.reactions ?? (e.reactions = [])).push(t), (e.f & M) !== 0 && (e.f & X) === 0 && (on(
1583
+ (e.reactions ?? (e.reactions = [])).push(t), (e.f & N) !== 0 && (e.f & Y) === 0 && (an(
1584
1584
  /** @type {Derived} */
1585
1585
  e
1586
- ), En(
1586
+ ), $n(
1587
1587
  /** @type {Derived} */
1588
1588
  e
1589
1589
  ));
1590
1590
  }
1591
- function Cn(t) {
1592
- if (t.v === F) return !0;
1591
+ function On(t) {
1592
+ if (t.v === M) return !0;
1593
1593
  if (t.deps === null) return !1;
1594
1594
  for (const e of t.deps)
1595
- if (Ce.has(e) || (e.f & M) !== 0 && Cn(
1595
+ if (Ce.has(e) || (e.f & N) !== 0 && On(
1596
1596
  /** @type {Derived} */
1597
1597
  e
1598
1598
  ))
1599
1599
  return !0;
1600
1600
  return !1;
1601
1601
  }
1602
- function fi(t) {
1603
- var e = ie;
1602
+ function hi(t) {
1603
+ var e = te;
1604
1604
  try {
1605
- return ie = !0, t();
1605
+ return te = !0, t();
1606
1606
  } finally {
1607
- ie = e;
1607
+ te = e;
1608
1608
  }
1609
1609
  }
1610
- const vt = /* @__PURE__ */ Symbol("events"), Gr = /* @__PURE__ */ new Set(), Si = /* @__PURE__ */ new Set();
1611
- let Ei = null;
1612
- function Ci(t) {
1610
+ const bt = /* @__PURE__ */ Symbol("events"), jr = /* @__PURE__ */ new Set(), Ci = /* @__PURE__ */ new Set();
1611
+ let $i = null;
1612
+ function Oi(t) {
1613
1613
  var e = this, i = (
1614
1614
  /** @type {Node} */
1615
1615
  e.ownerDocument
@@ -1617,105 +1617,105 @@ function Ci(t) {
1617
1617
  /** @type {null | Element} */
1618
1618
  r[0] || t.target
1619
1619
  );
1620
- Ei = t;
1621
- var o = 0, l = Ei === t && t[vt];
1622
- if (l) {
1623
- var a = r.indexOf(l);
1624
- if (a !== -1 && (e === document || e === /** @type {any} */
1620
+ $i = t;
1621
+ var o = 0, a = $i === t && t[bt];
1622
+ if (a) {
1623
+ var l = r.indexOf(a);
1624
+ if (l !== -1 && (e === document || e === /** @type {any} */
1625
1625
  window)) {
1626
- t[vt] = e;
1626
+ t[bt] = e;
1627
1627
  return;
1628
1628
  }
1629
- var u = r.indexOf(e);
1630
- if (u === -1)
1629
+ var f = r.indexOf(e);
1630
+ if (f === -1)
1631
1631
  return;
1632
- a <= u && (o = a);
1632
+ l <= f && (o = l);
1633
1633
  }
1634
1634
  if (s = /** @type {Element} */
1635
1635
  r[o] || t.target, s !== e) {
1636
- $t(t, "currentTarget", {
1636
+ Ot(t, "currentTarget", {
1637
1637
  configurable: !0,
1638
1638
  get() {
1639
1639
  return s || i;
1640
1640
  }
1641
1641
  });
1642
- var d = T, p = S;
1643
- ce(null), Re(null);
1642
+ var d = b, h = w;
1643
+ ce(null), Oe(null);
1644
1644
  try {
1645
- for (var m, g = []; s !== null; ) {
1646
- var h = s.assignedSlot || s.parentNode || /** @type {any} */
1645
+ for (var m, y = []; s !== null; ) {
1646
+ var p = s.assignedSlot || s.parentNode || /** @type {any} */
1647
1647
  s.host || null;
1648
1648
  try {
1649
- var _ = s[vt]?.[n];
1650
- _ != null && (!/** @type {any} */
1649
+ var S = s[bt]?.[n];
1650
+ S != null && (!/** @type {any} */
1651
1651
  s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
1652
1652
  // -> the target could not have been disabled because it emits the event in the first place
1653
- t.target === s) && _.call(s, t);
1654
- } catch (b) {
1655
- m ? g.push(b) : m = b;
1653
+ t.target === s) && S.call(s, t);
1654
+ } catch (_) {
1655
+ m ? y.push(_) : m = _;
1656
1656
  }
1657
- if (t.cancelBubble || h === e || h === null)
1657
+ if (t.cancelBubble || p === e || p === null)
1658
1658
  break;
1659
- s = h;
1659
+ s = p;
1660
1660
  }
1661
1661
  if (m) {
1662
- for (let b of g)
1662
+ for (let _ of y)
1663
1663
  queueMicrotask(() => {
1664
- throw b;
1664
+ throw _;
1665
1665
  });
1666
1666
  throw m;
1667
1667
  }
1668
1668
  } finally {
1669
- t[vt] = e, delete t.currentTarget, ce(d), Re(p);
1669
+ t[bt] = e, delete t.currentTarget, ce(d), Oe(h);
1670
1670
  }
1671
1671
  }
1672
1672
  }
1673
- const zr = (
1673
+ const qr = (
1674
1674
  // We gotta write it like this because after downleveling the pure comment may end up in the wrong location
1675
1675
  globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", {
1676
1676
  /** @param {string} html */
1677
1677
  createHTML: (t) => t
1678
1678
  })
1679
1679
  );
1680
- function jr(t) {
1680
+ function Kr(t) {
1681
1681
  return (
1682
1682
  /** @type {string} */
1683
- zr?.createHTML(t) ?? t
1683
+ qr?.createHTML(t) ?? t
1684
1684
  );
1685
1685
  }
1686
- function qr(t) {
1687
- var e = gn("template");
1688
- return e.innerHTML = jr(t.replaceAll("<!>", "<!---->")), e.content;
1686
+ function Ur(t) {
1687
+ var e = vn("template");
1688
+ return e.innerHTML = Kr(t.replaceAll("<!>", "<!---->")), e.content;
1689
1689
  }
1690
- function Qt(t, e) {
1690
+ function Zt(t, e) {
1691
1691
  var i = (
1692
1692
  /** @type {Effect} */
1693
- S
1693
+ w
1694
1694
  );
1695
1695
  i.nodes === null && (i.nodes = { start: t, end: e, a: null, t: null });
1696
1696
  }
1697
1697
  // @__NO_SIDE_EFFECTS__
1698
- function Kr(t, e) {
1699
- var i = (e & Vn) !== 0, n, r = !t.startsWith("<!>");
1698
+ function Wr(t, e) {
1699
+ var i = (e & zn) !== 0, n, r = !t.startsWith("<!>");
1700
1700
  return () => {
1701
- if (te)
1702
- return Qt(x, null), x;
1703
- n === void 0 && (n = qr(r ? t : "<!>" + t), n = /** @type {TemplateNode} */
1704
- /* @__PURE__ */ pn(n));
1701
+ if (ee)
1702
+ return Zt(D, null), D;
1703
+ n === void 0 && (n = Ur(r ? t : "<!>" + t), n = /** @type {TemplateNode} */
1704
+ /* @__PURE__ */ mn(n));
1705
1705
  var s = (
1706
1706
  /** @type {TemplateNode} */
1707
- i || un ? document.importNode(n, !0) : n.cloneNode(!0)
1707
+ i || dn ? document.importNode(n, !0) : n.cloneNode(!0)
1708
1708
  );
1709
- return Qt(s, s), s;
1709
+ return Zt(s, s), s;
1710
1710
  };
1711
1711
  }
1712
- function $n(t, e) {
1713
- if (te) {
1712
+ function Ln(t, e) {
1713
+ if (ee) {
1714
1714
  var i = (
1715
1715
  /** @type {Effect & { nodes: EffectNodes }} */
1716
- S
1716
+ w
1717
1717
  );
1718
- ((i.f & Ge) === 0 || i.nodes.end === null) && (i.nodes.end = x), Vi();
1718
+ ((i.f & Ge) === 0 || i.nodes.end === null) && (i.nodes.end = D), zi();
1719
1719
  return;
1720
1720
  }
1721
1721
  t !== null && t.before(
@@ -1723,126 +1723,126 @@ function $n(t, e) {
1723
1723
  e
1724
1724
  );
1725
1725
  }
1726
- const Wr = ["touchstart", "touchmove"];
1727
- function Ur(t) {
1728
- return Wr.includes(t);
1726
+ const Yr = ["touchstart", "touchmove"];
1727
+ function Xr(t) {
1728
+ return Yr.includes(t);
1729
1729
  }
1730
- function Rn(t, e) {
1731
- return Ln(t, e);
1730
+ function kn(t, e) {
1731
+ return Rn(t, e);
1732
1732
  }
1733
- function Yr(t, e) {
1734
- Xt(), e.intro = e.intro ?? !1;
1735
- const i = e.target, n = te, r = x;
1733
+ function Qr(t, e) {
1734
+ Jt(), e.intro = e.intro ?? !1;
1735
+ const i = e.target, n = ee, r = D;
1736
1736
  try {
1737
- for (var s = /* @__PURE__ */ pn(i); s && (s.nodeType !== si || /** @type {Comment} */
1738
- s.data !== Mi); )
1737
+ for (var s = /* @__PURE__ */ mn(i); s && (s.nodeType !== li || /** @type {Comment} */
1738
+ s.data !== xi); )
1739
1739
  s = /* @__PURE__ */ st(s);
1740
1740
  if (!s)
1741
- throw Et;
1742
- gt(!0), ft(
1741
+ throw Ct;
1742
+ mt(!0), dt(
1743
1743
  /** @type {Comment} */
1744
1744
  s
1745
1745
  );
1746
- const o = Ln(t, { ...e, anchor: s });
1747
- return gt(!1), /** @type {Exports} */
1746
+ const o = Rn(t, { ...e, anchor: s });
1747
+ return mt(!1), /** @type {Exports} */
1748
1748
  o;
1749
1749
  } catch (o) {
1750
1750
  if (o instanceof Error && o.message.split(`
1751
- `).some((l) => l.startsWith("https://svelte.dev/e/")))
1751
+ `).some((a) => a.startsWith("https://svelte.dev/e/")))
1752
1752
  throw o;
1753
- return o !== Et && console.warn("Failed to hydrate: ", o), e.recover === !1 && or(), Xt(), Lr(i), gt(!1), Rn(t, e);
1753
+ return o !== Ct && console.warn("Failed to hydrate: ", o), e.recover === !1 && ar(), Jt(), Rr(i), mt(!1), kn(t, e);
1754
1754
  } finally {
1755
- gt(n), ft(r);
1755
+ mt(n), dt(r);
1756
1756
  }
1757
1757
  }
1758
- const bt = /* @__PURE__ */ new Map();
1759
- function Ln(t, { target: e, anchor: i, props: n = {}, events: r, context: s, intro: o = !0, transformError: l }) {
1760
- Xt();
1761
- var a = void 0, u = Hr(() => {
1762
- var d = i ?? e.appendChild(hn());
1763
- wr(
1758
+ const yt = /* @__PURE__ */ new Map();
1759
+ function Rn(t, { target: e, anchor: i, props: n = {}, events: r, context: s, intro: o = !0, transformError: a }) {
1760
+ Jt();
1761
+ var l = void 0, f = Mr(() => {
1762
+ var d = i ?? e.appendChild(gn());
1763
+ Sr(
1764
1764
  /** @type {TemplateNode} */
1765
1765
  d,
1766
1766
  {
1767
1767
  pending: () => {
1768
1768
  }
1769
1769
  },
1770
- (g) => {
1771
- zi({});
1772
- var h = (
1770
+ (y) => {
1771
+ qi({});
1772
+ var p = (
1773
1773
  /** @type {ComponentContext} */
1774
- J
1774
+ Q
1775
1775
  );
1776
- if (s && (h.c = s), r && (n.$$events = r), te && Qt(
1776
+ if (s && (p.c = s), r && (n.$$events = r), ee && Zt(
1777
1777
  /** @type {TemplateNode} */
1778
- g,
1778
+ y,
1779
1779
  null
1780
- ), a = t(g, n) || {}, te && (S.nodes.end = x, x === null || x.nodeType !== si || /** @type {Comment} */
1781
- x.data !== Di))
1782
- throw xi(), Et;
1783
- ji();
1780
+ ), l = t(y, n) || {}, ee && (w.nodes.end = D, D === null || D.nodeType !== li || /** @type {Comment} */
1781
+ D.data !== Bi))
1782
+ throw Gi(), Ct;
1783
+ Ki();
1784
1784
  },
1785
- l
1785
+ a
1786
1786
  );
1787
- var p = /* @__PURE__ */ new Set(), m = (g) => {
1788
- for (var h = 0; h < g.length; h++) {
1789
- var _ = g[h];
1790
- if (!p.has(_)) {
1791
- p.add(_);
1792
- var b = Ur(_);
1787
+ var h = /* @__PURE__ */ new Set(), m = (y) => {
1788
+ for (var p = 0; p < y.length; p++) {
1789
+ var S = y[p];
1790
+ if (!h.has(S)) {
1791
+ h.add(S);
1792
+ var _ = Xr(S);
1793
1793
  for (const ot of [e, document]) {
1794
- var A = bt.get(ot);
1795
- A === void 0 && (A = /* @__PURE__ */ new Map(), bt.set(ot, A));
1796
- var O = A.get(_);
1797
- O === void 0 ? (ot.addEventListener(_, Ci, { passive: b }), A.set(_, 1)) : A.set(_, O + 1);
1794
+ var k = yt.get(ot);
1795
+ k === void 0 && (k = /* @__PURE__ */ new Map(), yt.set(ot, k));
1796
+ var re = k.get(S);
1797
+ re === void 0 ? (ot.addEventListener(S, Oi, { passive: _ }), k.set(S, 1)) : k.set(S, re + 1);
1798
1798
  }
1799
1799
  }
1800
1800
  }
1801
1801
  };
1802
- return m(qn(Gr)), Si.add(m), () => {
1803
- for (var g of p)
1804
- for (const b of [e, document]) {
1805
- var h = (
1802
+ return m(Un(jr)), Ci.add(m), () => {
1803
+ for (var y of h)
1804
+ for (const _ of [e, document]) {
1805
+ var p = (
1806
1806
  /** @type {Map<string, number>} */
1807
- bt.get(b)
1808
- ), _ = (
1807
+ yt.get(_)
1808
+ ), S = (
1809
1809
  /** @type {number} */
1810
- h.get(g)
1810
+ p.get(y)
1811
1811
  );
1812
- --_ == 0 ? (b.removeEventListener(g, Ci), h.delete(g), h.size === 0 && bt.delete(b)) : h.set(g, _);
1812
+ --S == 0 ? (_.removeEventListener(y, Oi), p.delete(y), p.size === 0 && yt.delete(_)) : p.set(y, S);
1813
1813
  }
1814
- Si.delete(m), d !== i && d.parentNode?.removeChild(d);
1814
+ Ci.delete(m), d !== i && d.parentNode?.removeChild(d);
1815
1815
  };
1816
1816
  });
1817
- return Jt.set(a, u), a;
1817
+ return ei.set(l, f), l;
1818
1818
  }
1819
- let Jt = /* @__PURE__ */ new WeakMap();
1820
- function Xr(t, e) {
1821
- const i = Jt.get(t);
1822
- return i ? (Jt.delete(t), i(e)) : Promise.resolve();
1819
+ let ei = /* @__PURE__ */ new WeakMap();
1820
+ function Jr(t, e) {
1821
+ const i = ei.get(t);
1822
+ return i ? (ei.delete(t), i(e)) : Promise.resolve();
1823
1823
  }
1824
- function Qr(t) {
1825
- J === null && tr(), Pe(() => {
1826
- const e = fi(t);
1824
+ function Zr(t) {
1825
+ Q === null && nr(), Pe(() => {
1826
+ const e = hi(t);
1827
1827
  if (typeof e == "function") return (
1828
1828
  /** @type {() => void} */
1829
1829
  e
1830
1830
  );
1831
1831
  });
1832
1832
  }
1833
- function $i(t, e) {
1834
- return t === e || t?.[yt] === e;
1833
+ function Li(t, e) {
1834
+ return t === e || t?.[_t] === e;
1835
1835
  }
1836
- function Jr(t = {}, e, i, n) {
1837
- return Nr(() => {
1836
+ function es(t = {}, e, i, n) {
1837
+ return Fr(() => {
1838
1838
  var r, s;
1839
- return ci(() => {
1840
- r = s, s = [], fi(() => {
1841
- t !== i(...s) && (e(t, ...s), r && $i(i(...r), t) && e(null, ...r));
1839
+ return fi(() => {
1840
+ r = s, s = [], hi(() => {
1841
+ t !== i(...s) && (e(t, ...s), r && Li(i(...r), t) && e(null, ...r));
1842
1842
  });
1843
1843
  }), () => {
1844
- Be(() => {
1845
- s && $i(i(...s), t) && e(null, ...s);
1844
+ De(() => {
1845
+ s && Li(i(...s), t) && e(null, ...s);
1846
1846
  });
1847
1847
  };
1848
1848
  }), t;
@@ -1852,37 +1852,37 @@ function _e(t, e, i, n) {
1852
1852
  /** @type {V} */
1853
1853
  n
1854
1854
  ), s = !0, o = () => (s && (s = !1, r = /** @type {V} */
1855
- n), r), l;
1856
- l = /** @type {V} */
1857
- t[e], l === void 0 && n !== void 0 && (l = o());
1858
- var a;
1859
- a = () => {
1855
+ n), r), a;
1856
+ a = /** @type {V} */
1857
+ t[e], a === void 0 && n !== void 0 && (a = o());
1858
+ var l;
1859
+ l = () => {
1860
1860
  var m = (
1861
1861
  /** @type {V} */
1862
1862
  t[e]
1863
1863
  );
1864
1864
  return m === void 0 ? o() : (s = !0, m);
1865
1865
  };
1866
- var u = !1, d = /* @__PURE__ */ rn(() => (u = !1, a())), p = (
1866
+ var f = !1, d = /* @__PURE__ */ on(() => (f = !1, l())), h = (
1867
1867
  /** @type {Effect} */
1868
- S
1868
+ w
1869
1869
  );
1870
1870
  return (
1871
1871
  /** @type {() => V} */
1872
- (function(m, g) {
1872
+ (function(m, y) {
1873
1873
  if (arguments.length > 0) {
1874
- const h = g ? v(d) : m;
1875
- return $(d, h), u = !0, r !== void 0 && (r = h), m;
1874
+ const p = y ? g(d) : m;
1875
+ return C(d, p), f = !0, r !== void 0 && (r = p), m;
1876
1876
  }
1877
- return $e && u || (p.f & Ee) !== 0 ? d.v : v(d);
1877
+ return $e && f || (h.f & Ee) !== 0 ? d.v : g(d);
1878
1878
  })
1879
1879
  );
1880
1880
  }
1881
- function Zr(t) {
1882
- return new es(t);
1881
+ function ts(t) {
1882
+ return new is(t);
1883
1883
  }
1884
- var ge, Y;
1885
- class es {
1884
+ var ge, W;
1885
+ class is {
1886
1886
  /**
1887
1887
  * @param {ComponentConstructorOptions & {
1888
1888
  * component: any;
@@ -1890,28 +1890,28 @@ class es {
1890
1890
  */
1891
1891
  constructor(e) {
1892
1892
  /** @type {any} */
1893
- w(this, ge);
1893
+ T(this, ge);
1894
1894
  /** @type {Record<string, any>} */
1895
- w(this, Y);
1895
+ T(this, W);
1896
1896
  var i = /* @__PURE__ */ new Map(), n = (s, o) => {
1897
- var l = /* @__PURE__ */ $r(o, !1, !1);
1898
- return i.set(s, l), l;
1897
+ var a = /* @__PURE__ */ Lr(o, !1, !1);
1898
+ return i.set(s, a), a;
1899
1899
  };
1900
1900
  const r = new Proxy(
1901
1901
  { ...e.props || {}, $$events: {} },
1902
1902
  {
1903
1903
  get(s, o) {
1904
- return v(i.get(o) ?? n(o, Reflect.get(s, o)));
1904
+ return g(i.get(o) ?? n(o, Reflect.get(s, o)));
1905
1905
  },
1906
1906
  has(s, o) {
1907
- return o === er ? !0 : (v(i.get(o) ?? n(o, Reflect.get(s, o))), Reflect.has(s, o));
1907
+ return o === ir ? !0 : (g(i.get(o) ?? n(o, Reflect.get(s, o))), Reflect.has(s, o));
1908
1908
  },
1909
- set(s, o, l) {
1910
- return $(i.get(o) ?? n(o, l), l), Reflect.set(s, o, l);
1909
+ set(s, o, a) {
1910
+ return C(i.get(o) ?? n(o, a), a), Reflect.set(s, o, a);
1911
1911
  }
1912
1912
  }
1913
1913
  );
1914
- y(this, Y, (e.hydrate ? Yr : Rn)(e.component, {
1914
+ v(this, W, (e.hydrate ? Qr : kn)(e.component, {
1915
1915
  target: e.target,
1916
1916
  anchor: e.anchor,
1917
1917
  props: r,
@@ -1919,28 +1919,28 @@ class es {
1919
1919
  intro: e.intro ?? !1,
1920
1920
  recover: e.recover,
1921
1921
  transformError: e.transformError
1922
- })), (!e?.props?.$$host || e.sync === !1) && fe(), y(this, ge, r.$$events);
1923
- for (const s of Object.keys(c(this, Y)))
1924
- s === "$set" || s === "$destroy" || s === "$on" || $t(this, s, {
1922
+ })), (!e?.props?.$$host || e.sync === !1) && fe(), v(this, ge, r.$$events);
1923
+ for (const s of Object.keys(c(this, W)))
1924
+ s === "$set" || s === "$destroy" || s === "$on" || Ot(this, s, {
1925
1925
  get() {
1926
- return c(this, Y)[s];
1926
+ return c(this, W)[s];
1927
1927
  },
1928
1928
  /** @param {any} value */
1929
1929
  set(o) {
1930
- c(this, Y)[s] = o;
1930
+ c(this, W)[s] = o;
1931
1931
  },
1932
1932
  enumerable: !0
1933
1933
  });
1934
- c(this, Y).$set = /** @param {Record<string, any>} next */
1934
+ c(this, W).$set = /** @param {Record<string, any>} next */
1935
1935
  (s) => {
1936
1936
  Object.assign(r, s);
1937
- }, c(this, Y).$destroy = () => {
1938
- Xr(c(this, Y));
1937
+ }, c(this, W).$destroy = () => {
1938
+ Jr(c(this, W));
1939
1939
  };
1940
1940
  }
1941
1941
  /** @param {Record<string, any>} props */
1942
1942
  $set(e) {
1943
- c(this, Y).$set(e);
1943
+ c(this, W).$set(e);
1944
1944
  }
1945
1945
  /**
1946
1946
  * @param {string} event
@@ -1958,12 +1958,12 @@ class es {
1958
1958
  };
1959
1959
  }
1960
1960
  $destroy() {
1961
- c(this, Y).$destroy();
1961
+ c(this, W).$destroy();
1962
1962
  }
1963
1963
  }
1964
- ge = new WeakMap(), Y = new WeakMap();
1965
- let kn;
1966
- typeof HTMLElement == "function" && (kn = class extends HTMLElement {
1964
+ ge = new WeakMap(), W = new WeakMap();
1965
+ let Pn;
1966
+ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
1967
1967
  /**
1968
1968
  * @param {*} $$componentCtor
1969
1969
  * @param {*} $$slots
@@ -1972,27 +1972,27 @@ typeof HTMLElement == "function" && (kn = class extends HTMLElement {
1972
1972
  constructor(e, i, n) {
1973
1973
  super();
1974
1974
  /** The Svelte component constructor */
1975
- f(this, "$$ctor");
1975
+ u(this, "$$ctor");
1976
1976
  /** Slots */
1977
- f(this, "$$s");
1977
+ u(this, "$$s");
1978
1978
  /** @type {any} The Svelte component instance */
1979
- f(this, "$$c");
1979
+ u(this, "$$c");
1980
1980
  /** Whether or not the custom element is connected */
1981
- f(this, "$$cn", !1);
1981
+ u(this, "$$cn", !1);
1982
1982
  /** @type {Record<string, any>} Component props data */
1983
- f(this, "$$d", {});
1983
+ u(this, "$$d", {});
1984
1984
  /** `true` if currently in the process of reflecting component props back to attributes */
1985
- f(this, "$$r", !1);
1985
+ u(this, "$$r", !1);
1986
1986
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
1987
- f(this, "$$p_d", {});
1987
+ u(this, "$$p_d", {});
1988
1988
  /** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
1989
- f(this, "$$l", {});
1989
+ u(this, "$$l", {});
1990
1990
  /** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
1991
- f(this, "$$l_u", /* @__PURE__ */ new Map());
1991
+ u(this, "$$l_u", /* @__PURE__ */ new Map());
1992
1992
  /** @type {any} The managed render effect for reflecting attributes */
1993
- f(this, "$$me");
1993
+ u(this, "$$me");
1994
1994
  /** @type {ShadowRoot | null} The ShadowRoot of the custom element */
1995
- f(this, "$$shadowRoot", null);
1995
+ u(this, "$$shadowRoot", null);
1996
1996
  this.$$ctor = e, this.$$s = i, n && (this.$$shadowRoot = this.attachShadow(n));
1997
1997
  }
1998
1998
  /**
@@ -2022,22 +2022,22 @@ typeof HTMLElement == "function" && (kn = class extends HTMLElement {
2022
2022
  if (this.$$cn = !0, !this.$$c) {
2023
2023
  let e = function(r) {
2024
2024
  return (s) => {
2025
- const o = gn("slot");
2026
- r !== "default" && (o.name = r), $n(s, o);
2025
+ const o = vn("slot");
2026
+ r !== "default" && (o.name = r), Ln(s, o);
2027
2027
  };
2028
2028
  };
2029
2029
  if (await Promise.resolve(), !this.$$cn || this.$$c)
2030
2030
  return;
2031
- const i = {}, n = ts(this);
2031
+ const i = {}, n = ns(this);
2032
2032
  for (const r of this.$$s)
2033
2033
  r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), i.default = !0) : i[r] = e(r));
2034
2034
  for (const r of this.attributes) {
2035
2035
  const s = this.$$g_p(r.name);
2036
- s in this.$$d || (this.$$d[s] = It(s, r.value, this.$$p_d, "toProp"));
2036
+ s in this.$$d || (this.$$d[s] = St(s, r.value, this.$$p_d, "toProp"));
2037
2037
  }
2038
2038
  for (const r in this.$$p_d)
2039
2039
  !(r in this.$$d) && this[r] !== void 0 && (this.$$d[r] = this[r], delete this[r]);
2040
- this.$$c = Zr({
2040
+ this.$$c = ts({
2041
2041
  component: this.$$ctor,
2042
2042
  target: this.$$shadowRoot || this,
2043
2043
  props: {
@@ -2045,13 +2045,13 @@ typeof HTMLElement == "function" && (kn = class extends HTMLElement {
2045
2045
  $$slots: i,
2046
2046
  $$host: this
2047
2047
  }
2048
- }), this.$$me = Pr(() => {
2049
- ci(() => {
2048
+ }), this.$$me = Nr(() => {
2049
+ fi(() => {
2050
2050
  this.$$r = !0;
2051
- for (const r of Ct(this.$$c)) {
2051
+ for (const r of $t(this.$$c)) {
2052
2052
  if (!this.$$p_d[r]?.reflect) continue;
2053
2053
  this.$$d[r] = this.$$c[r];
2054
- const s = It(
2054
+ const s = St(
2055
2055
  r,
2056
2056
  this.$$d[r],
2057
2057
  this.$$p_d,
@@ -2078,7 +2078,7 @@ typeof HTMLElement == "function" && (kn = class extends HTMLElement {
2078
2078
  * @param {string} newValue
2079
2079
  */
2080
2080
  attributeChangedCallback(e, i, n) {
2081
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = It(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2081
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = St(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2082
2082
  }
2083
2083
  disconnectedCallback() {
2084
2084
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2089,12 +2089,12 @@ typeof HTMLElement == "function" && (kn = class extends HTMLElement {
2089
2089
  * @param {string} attribute_name
2090
2090
  */
2091
2091
  $$g_p(e) {
2092
- return Ct(this.$$p_d).find(
2092
+ return $t(this.$$p_d).find(
2093
2093
  (i) => this.$$p_d[i].attribute === e || !this.$$p_d[i].attribute && i.toLowerCase() === e
2094
2094
  ) || e;
2095
2095
  }
2096
2096
  });
2097
- function It(t, e, i, n) {
2097
+ function St(t, e, i, n) {
2098
2098
  const r = i[t]?.type;
2099
2099
  if (e = r === "Boolean" && typeof e != "boolean" ? e != null : e, !n || !i[t])
2100
2100
  return e;
@@ -2124,7 +2124,7 @@ function It(t, e, i, n) {
2124
2124
  return e;
2125
2125
  }
2126
2126
  }
2127
- function ts(t) {
2127
+ function ns(t) {
2128
2128
  const e = {};
2129
2129
  return t.childNodes.forEach((i) => {
2130
2130
  e[
@@ -2133,60 +2133,60 @@ function ts(t) {
2133
2133
  ] = !0;
2134
2134
  }), e;
2135
2135
  }
2136
- function is(t, e, i, n, r, s) {
2137
- let o = class extends kn {
2136
+ function rs(t, e, i, n, r, s) {
2137
+ let o = class extends Pn {
2138
2138
  constructor() {
2139
2139
  super(t, i, r), this.$$p_d = e;
2140
2140
  }
2141
2141
  static get observedAttributes() {
2142
- return Ct(e).map(
2143
- (l) => (e[l].attribute || l).toLowerCase()
2142
+ return $t(e).map(
2143
+ (a) => (e[a].attribute || a).toLowerCase()
2144
2144
  );
2145
2145
  }
2146
2146
  };
2147
- return Ct(e).forEach((l) => {
2148
- $t(o.prototype, l, {
2147
+ return $t(e).forEach((a) => {
2148
+ Ot(o.prototype, a, {
2149
2149
  get() {
2150
- return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
2150
+ return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
2151
2151
  },
2152
- set(a) {
2153
- a = It(l, a, e), this.$$d[l] = a;
2154
- var u = this.$$c;
2155
- if (u) {
2156
- var d = qe(u, l)?.get;
2157
- d ? u[l] = a : u.$set({ [l]: a });
2152
+ set(l) {
2153
+ l = St(a, l, e), this.$$d[a] = l;
2154
+ var f = this.$$c;
2155
+ if (f) {
2156
+ var d = qe(f, a)?.get;
2157
+ d ? f[a] = l : f.$set({ [a]: l });
2158
2158
  }
2159
2159
  }
2160
2160
  });
2161
- }), n.forEach((l) => {
2162
- $t(o.prototype, l, {
2161
+ }), n.forEach((a) => {
2162
+ Ot(o.prototype, a, {
2163
2163
  get() {
2164
- return this.$$c?.[l];
2164
+ return this.$$c?.[a];
2165
2165
  }
2166
2166
  });
2167
2167
  }), t.element = /** @type {any} */
2168
2168
  o, o;
2169
2169
  }
2170
- class ns extends Event {
2170
+ class ss extends Event {
2171
2171
  constructor(i, n, r, s) {
2172
2172
  super("context-request", { bubbles: !0, composed: !0 });
2173
- f(this, "context");
2174
- f(this, "contextTarget");
2175
- f(this, "callback");
2176
- f(this, "subscribe");
2173
+ u(this, "context");
2174
+ u(this, "contextTarget");
2175
+ u(this, "callback");
2176
+ u(this, "subscribe");
2177
2177
  this.context = i, this.contextTarget = n, this.callback = r, this.subscribe = s ?? !1;
2178
2178
  }
2179
2179
  }
2180
- class rs {
2180
+ class os {
2181
2181
  constructor(e, i) {
2182
- f(this, "host");
2183
- f(this, "context");
2184
- f(this, "subscribe");
2185
- f(this, "onValue");
2186
- f(this, "isConnected", !1);
2187
- f(this, "unsubscribe");
2188
- f(this, "currentValue");
2189
- f(this, "handleValue", (e, i) => {
2182
+ u(this, "host");
2183
+ u(this, "context");
2184
+ u(this, "subscribe");
2185
+ u(this, "onValue");
2186
+ u(this, "isConnected", !1);
2187
+ u(this, "unsubscribe");
2188
+ u(this, "currentValue");
2189
+ u(this, "handleValue", (e, i) => {
2190
2190
  i !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = i), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = e, this.onValue?.(e);
2191
2191
  });
2192
2192
  this.host = e, this.context = i.context, this.subscribe = i.subscribe ?? !0, this.onValue = i.onValue;
@@ -2201,65 +2201,65 @@ class rs {
2201
2201
  return this.currentValue;
2202
2202
  }
2203
2203
  requestValue() {
2204
- this.host.dispatchEvent(new ns(this.context, this.host, this.handleValue, this.subscribe));
2204
+ this.host.dispatchEvent(new ss(this.context, this.host, this.handleValue, this.subscribe));
2205
2205
  }
2206
2206
  }
2207
- const On = (t) => t, ss = On(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.runtimeContext")), os = On(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.shellContext"));
2208
- function Pn(t, e, i) {
2207
+ const Hn = (t) => t, ls = Hn(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.runtimeContext")), as = Hn(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.shellContext"));
2208
+ function Nn(t, e, i) {
2209
2209
  let n = !1;
2210
- const r = new rs(t, {
2210
+ const r = new os(t, {
2211
2211
  context: e,
2212
2212
  subscribe: !0,
2213
- onValue: (u) => {
2214
- n = !0, i(u);
2213
+ onValue: (f) => {
2214
+ n = !0, i(f);
2215
2215
  }
2216
2216
  });
2217
2217
  r.connect();
2218
- const s = (u) => {
2219
- u.context === e && r.requestValue();
2218
+ const s = (f) => {
2219
+ f.context === e && r.requestValue();
2220
2220
  };
2221
2221
  t.addEventListener("context-provider", s);
2222
2222
  let o = 0;
2223
- const l = 200, a = globalThis.setInterval(() => {
2224
- if (n || o >= l) {
2225
- globalThis.clearInterval(a);
2223
+ const a = 200, l = globalThis.setInterval(() => {
2224
+ if (n || o >= a) {
2225
+ globalThis.clearInterval(l);
2226
2226
  return;
2227
2227
  }
2228
2228
  o += 1, r.requestValue();
2229
2229
  }, 50);
2230
2230
  return () => {
2231
- globalThis.clearInterval(a), t.removeEventListener("context-provider", s), r.disconnect();
2231
+ globalThis.clearInterval(l), t.removeEventListener("context-provider", s), r.disconnect();
2232
2232
  };
2233
2233
  }
2234
- function ls(t, e) {
2235
- return Pn(t, ss, e);
2236
- }
2237
- function as(t, e) {
2238
- return Pn(t, os, e);
2239
- }
2240
2234
  function cs(t, e) {
2241
- return ls(t, e);
2235
+ return Nn(t, ls, e);
2242
2236
  }
2243
2237
  function us(t, e) {
2244
- return as(t, e);
2238
+ return Nn(t, as, e);
2245
2239
  }
2246
- var Ri;
2240
+ function fs(t, e) {
2241
+ return cs(t, e);
2242
+ }
2243
+ function ds(t, e) {
2244
+ return us(t, e);
2245
+ }
2246
+ var ki;
2247
2247
  (function(t) {
2248
2248
  t.TTS_WORD = "tts-word", t.TTS_SENTENCE = "tts-sentence", t.ANNOTATION = "annotation";
2249
- })(Ri || (Ri = {}));
2250
- var Li;
2249
+ })(ki || (ki = {}));
2250
+ var Ri;
2251
2251
  (function(t) {
2252
2252
  t.YELLOW = "yellow", t.GREEN = "green", t.BLUE = "blue", t.PINK = "pink", t.ORANGE = "orange", t.UNDERLINE = "underline";
2253
- })(Li || (Li = {}));
2254
- const fs = {
2253
+ })(Ri || (Ri = {}));
2254
+ const hs = {
2255
2255
  tts: "textToSpeech",
2256
2256
  colorScheme: "theme"
2257
2257
  };
2258
- function ds(t) {
2258
+ function ps(t) {
2259
2259
  const e = t.trim();
2260
- return e ? fs[e] || e : "";
2260
+ return e ? hs[e] || e : "";
2261
2261
  }
2262
- const hs = [
2262
+ const gs = [
2263
2263
  "assessment",
2264
2264
  "section",
2265
2265
  "item",
@@ -2267,16 +2267,16 @@ const hs = [
2267
2267
  "rubric",
2268
2268
  "element"
2269
2269
  ];
2270
- function St(t, e) {
2270
+ function Et(t, e) {
2271
2271
  if (typeof t != "string" || t.trim().length === 0)
2272
2272
  throw new Error(`Invalid tool registration: "${e}" must be a non-empty string.`);
2273
2273
  }
2274
- function ki(t) {
2275
- if (St(t.toolId, "toolId"), St(t.name, "name"), St(t.description, "description"), typeof t.icon != "string" && typeof t.icon != "function")
2274
+ function Pi(t) {
2275
+ if (Et(t.toolId, "toolId"), Et(t.name, "name"), Et(t.description, "description"), typeof t.icon != "string" && typeof t.icon != "function")
2276
2276
  throw new Error(`Invalid tool registration "${t.toolId}": "icon" must be a string or function.`);
2277
2277
  if (!Array.isArray(t.supportedLevels) || t.supportedLevels.length === 0)
2278
2278
  throw new Error(`Invalid tool registration "${t.toolId}": "supportedLevels" must be a non-empty array.`);
2279
- const e = t.supportedLevels.find((i) => !hs.includes(i));
2279
+ const e = t.supportedLevels.find((i) => !gs.includes(i));
2280
2280
  if (e)
2281
2281
  throw new Error(`Invalid tool registration "${t.toolId}": unsupported level "${e}".`);
2282
2282
  if (t.activation !== void 0 && t.activation !== "toolbar-toggle" && t.activation !== "selection-gateway")
@@ -2292,21 +2292,21 @@ function ki(t) {
2292
2292
  if (typeof t.renderToolbar != "function")
2293
2293
  throw new Error(`Invalid tool registration "${t.toolId}": "renderToolbar" must be a function.`);
2294
2294
  }
2295
- class ps {
2295
+ class ms {
2296
2296
  constructor() {
2297
- f(this, "tools", /* @__PURE__ */ new Map());
2298
- f(this, "pnpIndex", /* @__PURE__ */ new Map());
2297
+ u(this, "tools", /* @__PURE__ */ new Map());
2298
+ u(this, "pnpIndex", /* @__PURE__ */ new Map());
2299
2299
  // pnpSupportId → Set<toolId>
2300
- f(this, "componentOverrides", {});
2301
- f(this, "moduleLoaders", /* @__PURE__ */ new Map());
2302
- f(this, "loadedToolModules", /* @__PURE__ */ new Set());
2303
- f(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
2300
+ u(this, "componentOverrides", {});
2301
+ u(this, "moduleLoaders", /* @__PURE__ */ new Map());
2302
+ u(this, "loadedToolModules", /* @__PURE__ */ new Set());
2303
+ u(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
2304
2304
  }
2305
2305
  /**
2306
2306
  * Normalize a single tool alias to canonical toolId.
2307
2307
  */
2308
2308
  normalizeToolId(e) {
2309
- return ds(e);
2309
+ return ps(e);
2310
2310
  }
2311
2311
  /**
2312
2312
  * Normalize a list of tool aliases to canonical toolIds.
@@ -2321,7 +2321,7 @@ class ps {
2321
2321
  * @throws Error if toolId is already registered
2322
2322
  */
2323
2323
  register(e) {
2324
- if (ki(e), this.tools.has(e.toolId))
2324
+ if (Pi(e), this.tools.has(e.toolId))
2325
2325
  throw new Error(`Tool '${e.toolId}' is already registered`);
2326
2326
  if (this.tools.set(e.toolId, e), e.pnpSupportIds)
2327
2327
  for (const i of e.pnpSupportIds)
@@ -2333,7 +2333,7 @@ class ps {
2333
2333
  * @param registration - New tool registration (must have existing toolId)
2334
2334
  */
2335
2335
  override(e) {
2336
- if (ki(e), !this.tools.has(e.toolId))
2336
+ if (Pi(e), !this.tools.has(e.toolId))
2337
2337
  throw new Error(`Cannot override non-existent tool '${e.toolId}'`);
2338
2338
  const i = this.tools.get(e.toolId);
2339
2339
  if (i.pnpSupportIds)
@@ -2507,7 +2507,7 @@ class ps {
2507
2507
  setToolModuleLoaders(e) {
2508
2508
  for (const [i, n] of Object.entries(e))
2509
2509
  if (n) {
2510
- if (St(i, "tool module loader id"), typeof n != "function")
2510
+ if (Et(i, "tool module loader id"), typeof n != "function")
2511
2511
  throw new Error(`Invalid tool module loader for "${i}": expected a function.`);
2512
2512
  this.moduleLoaders.set(i, n);
2513
2513
  }
@@ -2566,91 +2566,91 @@ class ps {
2566
2566
  return r.renderToolbar(i, s);
2567
2567
  }
2568
2568
  }
2569
- function Hn(t) {
2569
+ function Mn(t) {
2570
2570
  return t.level === "item";
2571
2571
  }
2572
- function gs(t) {
2572
+ function vs(t) {
2573
2573
  return t.level === "passage";
2574
2574
  }
2575
- function ms(t) {
2575
+ function bs(t) {
2576
2576
  return t.level === "rubric";
2577
2577
  }
2578
- function Nn(t) {
2578
+ function Fn(t) {
2579
2579
  return t.level === "element";
2580
2580
  }
2581
- function di(t) {
2582
- if (Nn(t)) {
2581
+ function pi(t) {
2582
+ if (Fn(t)) {
2583
2583
  const e = t.item.config;
2584
2584
  if (!e)
2585
2585
  return "";
2586
- const i = [], n = (a) => a.replace(/<[^>]*>/g, " ").trim(), r = e.elements?.[t.elementId];
2586
+ const i = [], n = (l) => l.replace(/<[^>]*>/g, " ").trim(), r = e.elements?.[t.elementId];
2587
2587
  r && typeof r == "string" && i.push(n(r));
2588
- const s = e.models, l = (Array.isArray(s) ? s : s && typeof s == "object" ? Object.values(s) : []).find((a) => a && typeof a == "object" && a.id === t.elementId);
2589
- if (l) {
2590
- for (const a of Object.values(l))
2591
- if (typeof a == "string" && i.push(n(a)), Array.isArray(a)) {
2592
- for (const u of a)
2593
- if (u && typeof u == "object")
2594
- for (const d of Object.values(u))
2588
+ const s = e.models, a = (Array.isArray(s) ? s : s && typeof s == "object" ? Object.values(s) : []).find((l) => l && typeof l == "object" && l.id === t.elementId);
2589
+ if (a) {
2590
+ for (const l of Object.values(a))
2591
+ if (typeof l == "string" && i.push(n(l)), Array.isArray(l)) {
2592
+ for (const f of l)
2593
+ if (f && typeof f == "object")
2594
+ for (const d of Object.values(f))
2595
2595
  typeof d == "string" && i.push(n(d));
2596
2596
  }
2597
2597
  }
2598
2598
  return i.filter(Boolean).join(" ").trim();
2599
2599
  }
2600
- if (Hn(t)) {
2600
+ if (Mn(t)) {
2601
2601
  const e = t.item;
2602
2602
  if (!e?.config)
2603
2603
  return "";
2604
- const i = e.config, n = [], r = (a) => a.replace(/<[^>]*>/g, " ").trim();
2604
+ const i = e.config, n = [], r = (l) => l.replace(/<[^>]*>/g, " ").trim();
2605
2605
  typeof i.markup == "string" && n.push(r(i.markup));
2606
2606
  const s = i.elements;
2607
2607
  if (s && typeof s == "object")
2608
- for (const a of Object.values(s))
2609
- typeof a == "string" && n.push(r(a));
2610
- const o = i.models, l = Array.isArray(o) ? o : o && typeof o == "object" ? Object.values(o) : [];
2611
- for (const a of l)
2612
- if (!(!a || typeof a != "object")) {
2613
- for (const u of Object.values(a))
2614
- if (typeof u == "string" && n.push(r(u)), Array.isArray(u)) {
2615
- for (const d of u)
2608
+ for (const l of Object.values(s))
2609
+ typeof l == "string" && n.push(r(l));
2610
+ const o = i.models, a = Array.isArray(o) ? o : o && typeof o == "object" ? Object.values(o) : [];
2611
+ for (const l of a)
2612
+ if (!(!l || typeof l != "object")) {
2613
+ for (const f of Object.values(l))
2614
+ if (typeof f == "string" && n.push(r(f)), Array.isArray(f)) {
2615
+ for (const d of f)
2616
2616
  if (d && typeof d == "object")
2617
- for (const p of Object.values(d))
2618
- typeof p == "string" && n.push(r(p));
2617
+ for (const h of Object.values(d))
2618
+ typeof h == "string" && n.push(r(h));
2619
2619
  }
2620
2620
  }
2621
2621
  return n.filter(Boolean).join(" ").trim();
2622
2622
  }
2623
- if (gs(t)) {
2623
+ if (vs(t)) {
2624
2624
  const e = t.passage;
2625
2625
  if (!e?.config)
2626
2626
  return "";
2627
- const i = e.config, n = [], r = (a) => a.replace(/<[^>]*>/g, " ").trim();
2627
+ const i = e.config, n = [], r = (l) => l.replace(/<[^>]*>/g, " ").trim();
2628
2628
  typeof i.markup == "string" && n.push(r(i.markup)), typeof i.content == "string" && n.push(r(i.content)), typeof i.prompt == "string" && n.push(r(i.prompt));
2629
2629
  const s = i.elements;
2630
2630
  if (s && typeof s == "object")
2631
- for (const a of Object.values(s))
2632
- typeof a == "string" && n.push(r(a));
2633
- const o = i.models, l = Array.isArray(o) ? o : o && typeof o == "object" ? Object.values(o) : [];
2634
- for (const a of l)
2635
- if (!(!a || typeof a != "object")) {
2636
- for (const u of Object.values(a))
2637
- if (typeof u == "string" && n.push(r(u)), Array.isArray(u)) {
2638
- for (const d of u)
2631
+ for (const l of Object.values(s))
2632
+ typeof l == "string" && n.push(r(l));
2633
+ const o = i.models, a = Array.isArray(o) ? o : o && typeof o == "object" ? Object.values(o) : [];
2634
+ for (const l of a)
2635
+ if (!(!l || typeof l != "object")) {
2636
+ for (const f of Object.values(l))
2637
+ if (typeof f == "string" && n.push(r(f)), Array.isArray(f)) {
2638
+ for (const d of f)
2639
2639
  if (d && typeof d == "object")
2640
- for (const p of Object.values(d))
2641
- typeof p == "string" && n.push(r(p));
2640
+ for (const h of Object.values(d))
2641
+ typeof h == "string" && n.push(r(h));
2642
2642
  }
2643
2643
  }
2644
2644
  return n.filter(Boolean).join(" ").trim();
2645
2645
  }
2646
- if (ms(t)) {
2646
+ if (bs(t)) {
2647
2647
  const e = t.rubricBlock;
2648
2648
  return e.passage?.config ? (e.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (e.content || "").replace(/<[^>]*>/g, " ").trim();
2649
2649
  }
2650
2650
  return "";
2651
2651
  }
2652
- function Mt(t) {
2653
- const e = di(t);
2652
+ function Ft(t) {
2653
+ const e = pi(t);
2654
2654
  return [
2655
2655
  /<math[>\s]/i,
2656
2656
  // MathML
@@ -2666,7 +2666,7 @@ function Mt(t) {
2666
2666
  // Simple arithmetic
2667
2667
  ].some((n) => n.test(e));
2668
2668
  }
2669
- function vs(t) {
2669
+ function ys(t) {
2670
2670
  const e = [
2671
2671
  "pie-multiple-choice",
2672
2672
  "pie-inline-choice",
@@ -2675,7 +2675,7 @@ function vs(t) {
2675
2675
  "inline-choice",
2676
2676
  "select-text"
2677
2677
  ];
2678
- if (Nn(t)) {
2678
+ if (Fn(t)) {
2679
2679
  const i = t.item.config;
2680
2680
  if (!i?.models)
2681
2681
  return !1;
@@ -2685,7 +2685,7 @@ function vs(t) {
2685
2685
  const s = r.element || "";
2686
2686
  return e.includes(s);
2687
2687
  }
2688
- if (Hn(t)) {
2688
+ if (Mn(t)) {
2689
2689
  const i = t.item.config?.models;
2690
2690
  return (Array.isArray(i) ? i : i && typeof i == "object" ? Object.values(i) : []).some((r) => {
2691
2691
  if (!r || typeof r != "object")
@@ -2696,11 +2696,11 @@ function vs(t) {
2696
2696
  }
2697
2697
  return !1;
2698
2698
  }
2699
- function Ft(t) {
2700
- return di(t).trim().length >= 10;
2699
+ function xt(t) {
2700
+ return pi(t).trim().length >= 10;
2701
2701
  }
2702
- function bs(t) {
2703
- const e = di(t);
2702
+ function _s(t) {
2703
+ const e = pi(t);
2704
2704
  return [
2705
2705
  /chemistry|chemical|element|atom|molecule|compound/i,
2706
2706
  /periodic\s+table/i,
@@ -2712,33 +2712,33 @@ function bs(t) {
2712
2712
  /physics|force|energy|velocity|acceleration/i
2713
2713
  ].some((n) => n.test(e));
2714
2714
  }
2715
- const ys = [
2715
+ const Ts = [
2716
2716
  "assessment",
2717
2717
  "section",
2718
2718
  "item",
2719
2719
  "passage",
2720
2720
  "rubric"
2721
- ], _s = new Set(ys);
2722
- function Ts(t) {
2723
- return _s.has(t);
2721
+ ], As = new Set(Ts);
2722
+ function ws(t) {
2723
+ return As.has(t);
2724
2724
  }
2725
- function hi(t, e, i) {
2725
+ function gi(t, e, i) {
2726
2726
  const n = t.trim(), r = i.trim();
2727
2727
  if (!n || !r)
2728
2728
  throw new Error("Tool instance ids require non-empty tool and scope ids");
2729
- if (!Ts(e))
2729
+ if (!ws(e))
2730
2730
  throw new Error(`Unknown tool scope level '${e}'. Register custom levels with registerToolScopeLevel().`);
2731
2731
  return `${n}:${e}:${r}`;
2732
2732
  }
2733
- class As {
2733
+ class Is {
2734
2734
  constructor() {
2735
- f(this, "providerId", "desmos-calculator");
2736
- f(this, "providerName", "Desmos Calculator");
2737
- f(this, "category", "calculator");
2738
- f(this, "version", "1.10");
2739
- f(this, "requiresAuth", !0);
2740
- f(this, "desmosProvider", null);
2741
- f(this, "config", null);
2735
+ u(this, "providerId", "desmos-calculator");
2736
+ u(this, "providerName", "Desmos Calculator");
2737
+ u(this, "category", "calculator");
2738
+ u(this, "version", "1.10");
2739
+ u(this, "requiresAuth", !0);
2740
+ u(this, "desmosProvider", null);
2741
+ u(this, "config", null);
2742
2742
  }
2743
2743
  /**
2744
2744
  * Initialize Desmos calculator provider
@@ -2816,18 +2816,18 @@ class As {
2816
2816
  this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
2817
2817
  }
2818
2818
  }
2819
- class ws {
2819
+ class Ss {
2820
2820
  constructor() {
2821
- f(this, "providerId", "browser");
2822
- f(this, "providerName", "Browser Speech Synthesis");
2823
- f(this, "version", "1.0.0");
2821
+ u(this, "providerId", "browser");
2822
+ u(this, "providerName", "Browser Speech Synthesis");
2823
+ u(this, "version", "1.0.0");
2824
2824
  }
2825
2825
  async initialize(e) {
2826
2826
  if (typeof window > "u")
2827
2827
  throw new Error("BrowserTTSProvider requires browser environment");
2828
2828
  if (!("speechSynthesis" in window))
2829
2829
  throw new Error("Browser does not support Speech Synthesis API");
2830
- return new Is(e);
2830
+ return new Es(e);
2831
2831
  }
2832
2832
  supportsFeature(e) {
2833
2833
  return !0;
@@ -2845,14 +2845,14 @@ class ws {
2845
2845
  destroy() {
2846
2846
  }
2847
2847
  }
2848
- class Is {
2848
+ class Es {
2849
2849
  constructor(e) {
2850
- f(this, "utterance", null);
2851
- f(this, "config", null);
2852
- f(this, "_isPlaying", !1);
2853
- f(this, "_isPaused", !1);
2854
- f(this, "speakRunId", 0);
2855
- f(this, "onWordBoundary");
2850
+ u(this, "utterance", null);
2851
+ u(this, "config", null);
2852
+ u(this, "_isPlaying", !1);
2853
+ u(this, "_isPaused", !1);
2854
+ u(this, "speakRunId", 0);
2855
+ u(this, "onWordBoundary");
2856
2856
  this.config = e;
2857
2857
  }
2858
2858
  async speak(e) {
@@ -2889,17 +2889,17 @@ class Is {
2889
2889
  return [{ text: e, offset: 0 }];
2890
2890
  const n = this.segmentSentences(e), r = [];
2891
2891
  let s = "", o = 0;
2892
- for (const l of n) {
2893
- const a = l.text.trim();
2894
- if (!a)
2892
+ for (const a of n) {
2893
+ const l = a.text.trim();
2894
+ if (!l)
2895
2895
  continue;
2896
- const u = l.text.search(/\S/), d = l.offset + (u === -1 ? 0 : u);
2896
+ const f = a.text.search(/\S/), d = a.offset + (f === -1 ? 0 : f);
2897
2897
  if (!s) {
2898
- s = a, o = d;
2898
+ s = l, o = d;
2899
2899
  continue;
2900
2900
  }
2901
- const p = `${s} ${a}`;
2902
- p.length <= 260 ? s = p : (r.push({ text: s, offset: o }), s = a, o = d);
2901
+ const h = `${s} ${l}`;
2902
+ h.length <= 260 ? s = h : (r.push({ text: s, offset: o }), s = l, o = d);
2903
2903
  }
2904
2904
  return s && r.push({ text: s, offset: o }), r.length ? r : [{ text: e, offset: 0 }];
2905
2905
  }
@@ -2919,14 +2919,14 @@ class Is {
2919
2919
  const o = this.getSegmentationPolicy();
2920
2920
  if (!o.useSentenceSegmenter)
2921
2921
  throw new Error("Segmenter disabled by policy");
2922
- const l = globalThis.Intl?.Segmenter;
2923
- if (typeof l == "function") {
2924
- const a = new l(o.locale, {
2922
+ const a = globalThis.Intl?.Segmenter;
2923
+ if (typeof a == "function") {
2924
+ const l = new a(o.locale, {
2925
2925
  granularity: "sentence"
2926
- }), d = Array.from(a.segment(e)).map((p) => ({
2927
- text: p.segment,
2928
- offset: p.index
2929
- })).filter((p) => p.text.trim().length > 0);
2926
+ }), d = Array.from(l.segment(e)).map((h) => ({
2927
+ text: h.segment,
2928
+ offset: h.index
2929
+ })).filter((h) => h.text.trim().length > 0);
2930
2930
  if (d.length > 0)
2931
2931
  return d;
2932
2932
  }
@@ -2935,8 +2935,8 @@ class Is {
2935
2935
  const i = /[^.!?]+(?:[.!?]+|$)/g, n = e.match(i) || [e], r = [];
2936
2936
  let s = 0;
2937
2937
  for (const o of n) {
2938
- const l = e.indexOf(o, s);
2939
- l !== -1 && (r.push({ text: o, offset: l }), s = l + o.length);
2938
+ const a = e.indexOf(o, s);
2939
+ a !== -1 && (r.push({ text: o, offset: a }), s = a + o.length);
2940
2940
  }
2941
2941
  return r.length > 0 ? r : [{ text: e, offset: 0 }];
2942
2942
  }
@@ -2951,8 +2951,8 @@ class Is {
2951
2951
  return;
2952
2952
  }
2953
2953
  if (this.utterance = new SpeechSynthesisUtterance(e), this.config?.voice) {
2954
- const l = speechSynthesis.getVoices().find((a) => a.name === this.config.voice);
2955
- l && (this.utterance.voice = l);
2954
+ const a = speechSynthesis.getVoices().find((l) => l.name === this.config.voice);
2955
+ a && (this.utterance.voice = a);
2956
2956
  }
2957
2957
  this.config?.rate && (this.utterance.rate = this.config.rate), this.config?.pitch && (this.utterance.pitch = this.config.pitch), this.utterance.onstart = () => {
2958
2958
  n === this.speakRunId && (this._isPlaying = !0, this._isPaused = !1);
@@ -2979,8 +2979,8 @@ class Is {
2979
2979
  }, this.utterance.onboundary = (o) => {
2980
2980
  if (n !== this.speakRunId || (console.log("[BrowserProvider] Boundary event:", o.name, "charIndex:", o.charIndex, "charLength:", o.charLength), o.name !== "word" || !this.onWordBoundary) || this.getHighlightMode() === "sentence")
2981
2981
  return;
2982
- const l = Math.max(0, Math.min(o.charIndex, Math.max(0, e.length - 1))), a = Number(o.charLength || 0), u = this.inferWordLength(e, l), d = Number.isFinite(a) && a > 0 && a <= 80 && l + a <= e.length ? a : u, p = e.substring(l, Math.min(e.length, l + d)).trim(), m = i + l;
2983
- console.log("[BrowserProvider] Calling onWordBoundary with word:", p, "at position:", m), this.onWordBoundary(p, m, d);
2982
+ const a = Math.max(0, Math.min(o.charIndex, Math.max(0, e.length - 1))), l = Number(o.charLength || 0), f = this.inferWordLength(e, a), d = Number.isFinite(l) && l > 0 && l <= 80 && a + l <= e.length ? l : f, h = e.substring(a, Math.min(e.length, a + d)).trim(), m = i + a;
2983
+ console.log("[BrowserProvider] Calling onWordBoundary with word:", h, "at position:", m), this.onWordBoundary(h, m, d);
2984
2984
  }, speechSynthesis.speak(this.utterance);
2985
2985
  });
2986
2986
  }
@@ -3010,20 +3010,20 @@ class Is {
3010
3010
  });
3011
3011
  }
3012
3012
  }
3013
- class Ss {
3013
+ class Cs {
3014
3014
  /**
3015
3015
  * Create TTS tool provider
3016
3016
  *
3017
3017
  * @param backend TTS backend to use (default: 'browser')
3018
3018
  */
3019
3019
  constructor(e = "browser") {
3020
- f(this, "providerId", "tts-service");
3021
- f(this, "providerName", "Text-to-Speech");
3022
- f(this, "category", "tts");
3023
- f(this, "version", "1.0");
3024
- f(this, "requiresAuth");
3025
- f(this, "ttsProvider", null);
3026
- f(this, "config", null);
3020
+ u(this, "providerId", "tts-service");
3021
+ u(this, "providerName", "Text-to-Speech");
3022
+ u(this, "category", "tts");
3023
+ u(this, "version", "1.0");
3024
+ u(this, "requiresAuth");
3025
+ u(this, "ttsProvider", null);
3026
+ u(this, "config", null);
3027
3027
  this.requiresAuth = e !== "browser";
3028
3028
  }
3029
3029
  /**
@@ -3059,7 +3059,7 @@ class Ss {
3059
3059
  async _initializeBrowserTTS(e) {
3060
3060
  if (typeof window > "u" || !("speechSynthesis" in window))
3061
3061
  throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
3062
- this.ttsProvider = new ws(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
3062
+ this.ttsProvider = new Ss(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
3063
3063
  }
3064
3064
  /**
3065
3065
  * Initialize server-based TTS (Polly, Google)
@@ -3067,7 +3067,7 @@ class Ss {
3067
3067
  async _initializeServerTTS(e) {
3068
3068
  if (!e.apiEndpoint)
3069
3069
  throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
3070
- const i = await import("./index-CGEKDUBQ.js");
3070
+ const i = await import("./index-CGqExkh0.js");
3071
3071
  this.ttsProvider = new i.ServerTTSProvider(), console.log(`[TTSToolProvider] Server TTS initialized (provider: ${e.serverProvider || e.backend})`);
3072
3072
  }
3073
3073
  /**
@@ -3125,7 +3125,7 @@ class Ss {
3125
3125
  this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
3126
3126
  }
3127
3127
  }
3128
- const Es = /* @__PURE__ */ new Set([
3128
+ const $s = /* @__PURE__ */ new Set([
3129
3129
  "annotation-xml",
3130
3130
  "color-profile",
3131
3131
  "font-face",
@@ -3134,7 +3134,7 @@ const Es = /* @__PURE__ */ new Set([
3134
3134
  "font-face-format",
3135
3135
  "font-face-name",
3136
3136
  "missing-glyph"
3137
- ]), Cs = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, $s = (t, e = "custom element tag") => {
3137
+ ]), Os = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, Ls = (t, e = "custom element tag") => {
3138
3138
  if (!t || typeof t != "string")
3139
3139
  throw new Error(`Invalid ${e}: expected a non-empty string`);
3140
3140
  const i = t.trim();
@@ -3144,12 +3144,12 @@ const Es = /* @__PURE__ */ new Set([
3144
3144
  throw new Error(`Invalid ${e} "${i}": custom element names must be lowercase`);
3145
3145
  if (!i.includes("-"))
3146
3146
  throw new Error(`Invalid ${e} "${i}": custom element names must include a hyphen`);
3147
- if (Es.has(i))
3147
+ if ($s.has(i))
3148
3148
  throw new Error(`Invalid ${e} "${i}": this name is reserved by the HTML spec`);
3149
- if (!Cs.test(i))
3149
+ if (!Os.test(i))
3150
3150
  throw new Error(`Invalid ${e} "${i}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
3151
3151
  return i;
3152
- }, Mn = {
3152
+ }, xn = {
3153
3153
  calculator: "pie-tool-calculator",
3154
3154
  textToSpeech: "pie-tool-text-to-speech",
3155
3155
  ruler: "pie-tool-ruler",
@@ -3162,20 +3162,20 @@ const Es = /* @__PURE__ */ new Set([
3162
3162
  annotationToolbar: "pie-tool-annotation-toolbar",
3163
3163
  graph: "pie-tool-graph",
3164
3164
  periodicTable: "pie-tool-periodic-table"
3165
- }, Rs = (t, e) => {
3166
- const i = e?.toolTagMap?.[t] ?? Mn[t] ?? t;
3167
- return $s(i, `tool component tag for "${t}"`);
3168
- }, Ls = (t) => document.createElement(t), ue = (t, e, i, n) => {
3169
- const r = Rs(t, n), o = n?.toolComponentFactories?.[t] ?? n?.toolComponentFactory;
3170
- return o ? o({ toolId: t, tagName: r, context: e, toolbarContext: i }) : Ls(r);
3171
- }, ks = {
3165
+ }, ks = (t, e) => {
3166
+ const i = e?.toolTagMap?.[t] ?? xn[t] ?? t;
3167
+ return Ls(i, `tool component tag for "${t}"`);
3168
+ }, Rs = (t) => document.createElement(t), ue = (t, e, i, n) => {
3169
+ const r = ks(t, n), o = n?.toolComponentFactories?.[t] ?? n?.toolComponentFactory;
3170
+ return o ? o({ toolId: t, tagName: r, context: e, toolbarContext: i }) : Rs(r);
3171
+ }, Ps = {
3172
3172
  toolId: "calculator",
3173
3173
  name: "Calculator",
3174
3174
  description: "Multi-type calculator (basic, scientific, graphing)",
3175
3175
  icon: "calculator",
3176
3176
  provider: {
3177
3177
  getProviderId: (t) => typeof t?.provider?.id == "string" && t.provider.id.length > 0 ? t.provider.id : "calculator-desmos",
3178
- createProvider: () => new As(),
3178
+ createProvider: () => new Is(),
3179
3179
  getInitConfig: (t) => t?.provider?.init ?? {},
3180
3180
  getAuthFetcher: (t) => {
3181
3181
  const e = t?.provider?.runtime?.authFetcher;
@@ -3212,10 +3212,10 @@ const Es = /* @__PURE__ */ new Set([
3212
3212
  * (MathML, LaTeX, arithmetic markers).
3213
3213
  */
3214
3214
  isVisibleInContext(t) {
3215
- return Mt(t);
3215
+ return Ft(t);
3216
3216
  },
3217
3217
  renderToolbar(t, e) {
3218
- const i = hi(this.toolId, e.scope.level, e.scope.scopeId), n = e.componentOverrides, r = ue(this.toolId, t, e, n);
3218
+ const i = gi(this.toolId, e.scope.level, e.scope.scopeId), n = e.componentOverrides, r = ue(this.toolId, t, e, n);
3219
3219
  r.setAttribute("tool-id", i), r.toolkitCoordinator = e.toolkitCoordinator;
3220
3220
  const s = {
3221
3221
  toolId: this.toolId,
@@ -3248,19 +3248,30 @@ const Es = /* @__PURE__ */ new Set([
3248
3248
  ],
3249
3249
  button: s,
3250
3250
  sync: () => {
3251
- const l = e.isToolVisible(i);
3252
- s.active = l, s.ariaLabel = l ? "Close scientific calculator" : "Open scientific calculator", s.tooltip = l ? "Close calculator" : "Calculator", o !== l && (r.visible = l, o = l), r.toolkitCoordinator !== e.toolkitCoordinator && (r.toolkitCoordinator = e.toolkitCoordinator);
3251
+ const a = e.isToolVisible(i);
3252
+ s.active = a, s.ariaLabel = a ? "Close scientific calculator" : "Open scientific calculator", s.tooltip = a ? "Close calculator" : "Calculator", o !== a && (r.visible = a, o = a), r.toolkitCoordinator !== e.toolkitCoordinator && (r.toolkitCoordinator = e.toolkitCoordinator);
3253
3253
  },
3254
- subscribeActive: (l) => e.subscribeVisibility ? e.subscribeVisibility(() => {
3255
- l(e.isToolVisible(i));
3254
+ subscribeActive: (a) => e.subscribeVisibility ? e.subscribeVisibility(() => {
3255
+ a(e.isToolVisible(i));
3256
3256
  }) : () => {
3257
3257
  }
3258
3258
  };
3259
3259
  }
3260
- }, Oi = (t) => t && typeof t == "object" ? t : {}, Pi = (t) => {
3261
- const e = Oi(t), i = Oi(t?.settings);
3260
+ }, lt = /* @__PURE__ */ new Map(), Hs = "__pieToolElementUnmount", Hi = (t) => t && typeof t == "object" ? t : {}, Vt = (t) => {
3261
+ const e = Hi(t), i = Hi(t?.settings);
3262
3262
  return { ...e, ...i };
3263
- }, Os = {
3263
+ }, Ni = Object.freeze([1.5, 2]), Ns = (t) => {
3264
+ if (!Array.isArray(t))
3265
+ return [...Ni];
3266
+ const e = /* @__PURE__ */ new Set();
3267
+ for (const i of t) {
3268
+ if (typeof i != "number" || !Number.isFinite(i) || i <= 0)
3269
+ continue;
3270
+ const n = Math.round(i * 100) / 100;
3271
+ n !== 1 && e.add(n);
3272
+ }
3273
+ return e.size ? Array.from(e) : [...Ni];
3274
+ }, Ms = {
3264
3275
  toolId: "textToSpeech",
3265
3276
  name: "Text to Speech",
3266
3277
  description: "Read content aloud",
@@ -3268,24 +3279,34 @@ const Es = /* @__PURE__ */ new Set([
3268
3279
  provider: {
3269
3280
  getProviderId: () => "tts",
3270
3281
  createProvider: (t) => {
3271
- const e = Pi(t);
3272
- return new Ss(e.backend || "browser");
3282
+ const e = Vt(t);
3283
+ return new Cs(e.backend || "browser");
3273
3284
  },
3274
3285
  getInitConfig: (t) => {
3275
- const e = Pi(t), i = e.backend || "browser", n = e.serverProvider || e.provider || (i === "polly" || i === "google" ? i : void 0);
3286
+ const e = Vt(t), i = e.backend || "browser", n = e.serverProvider || e.provider || (i === "polly" || i === "google" ? i : void 0), r = e.transportMode || (n === "custom" ? "custom" : "pie");
3276
3287
  return {
3277
3288
  backend: i,
3278
3289
  apiEndpoint: e.apiEndpoint,
3279
3290
  serverProvider: n,
3280
- providerOptions: i === "polly" ? {
3281
- ...e.engine ? { engine: e.engine } : {},
3282
- ...typeof e.sampleRate == "number" ? { sampleRate: e.sampleRate } : {},
3283
- ...e.format ? { format: e.format } : {},
3284
- speechMarkTypes: e.speechMarksMode === "word+sentence" ? ["word", "sentence"] : ["word"]
3291
+ providerOptions: i === "polly" || r === "custom" ? {
3292
+ ...i === "polly" && e.engine ? { engine: e.engine } : {},
3293
+ ...i === "polly" && typeof e.sampleRate == "number" ? { sampleRate: e.sampleRate } : {},
3294
+ ...i === "polly" && e.format ? { format: e.format } : {},
3295
+ ...i === "polly" ? {
3296
+ speechMarkTypes: e.speechMarksMode === "word+sentence" ? ["word", "sentence"] : ["word"]
3297
+ } : {},
3298
+ ...r === "custom" && typeof e.cache == "boolean" ? { cache: e.cache } : {},
3299
+ ...r === "custom" && e.speedRate ? { speedRate: e.speedRate } : {},
3300
+ ...r === "custom" && e.lang_id ? { lang_id: e.lang_id } : {}
3285
3301
  } : void 0,
3286
3302
  voice: e.defaultVoice,
3287
3303
  rate: e.rate,
3288
- pitch: e.pitch
3304
+ pitch: e.pitch,
3305
+ transportMode: r,
3306
+ endpointMode: e.endpointMode,
3307
+ endpointValidationMode: e.endpointValidationMode,
3308
+ includeAuthOnAssetFetch: e.includeAuthOnAssetFetch,
3309
+ validateEndpoint: e.validateEndpoint
3289
3310
  };
3290
3311
  },
3291
3312
  getAuthFetcher: (t) => {
@@ -3315,117 +3336,41 @@ const Es = /* @__PURE__ */ new Set([
3315
3336
  * - Context contains readable text (at least 10 characters)
3316
3337
  */
3317
3338
  isVisibleInContext(t) {
3318
- return Ft(t);
3339
+ return xt(t);
3319
3340
  },
3320
3341
  renderToolbar(t, e) {
3321
- let i = null;
3322
- const n = e.ttsService, r = hi(this.toolId, e.scope.level, e.scope.scopeId), s = () => e.isToolVisible(r), o = {
3323
- toolId: this.toolId,
3324
- label: "Read aloud",
3325
- icon: typeof this.icon == "function" ? this.icon(t) : this.icon,
3326
- ariaLabel: "Read aloud",
3327
- tooltip: "Read aloud",
3328
- onClick: () => {
3329
- m();
3330
- },
3331
- disabled: !1,
3332
- active: !1
3333
- }, l = () => {
3334
- const g = s() ? "Stop reading" : "Read aloud";
3335
- o.label = g, o.ariaLabel = g, o.tooltip = g, o.active = s(), o.disabled = !e.ttsService;
3336
- }, a = (g) => {
3337
- (g === "idle" || g === "error") && s() && (e.toggleTool(this.toolId), l());
3338
- }, u = async () => {
3339
- e.ensureTTSReady && (i || (i = (async () => {
3340
- await e.ensureTTSReady?.(), e.toolkitCoordinator?.highlightCoordinator && n?.setHighlightCoordinator?.(e.toolkitCoordinator.highlightCoordinator);
3341
- })()), await i);
3342
- }, d = () => {
3343
- n?.stop?.(), s() && e.toggleTool(this.toolId), l();
3344
- }, p = () => {
3345
- const g = e.getScopeElement?.();
3346
- if (g)
3347
- return g;
3348
- const h = (A) => typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(A) : A.replace(/"/g, '\\"'), _ = [
3349
- e.catalogId,
3350
- e.scope.itemId,
3351
- e.scope.canonicalItemId
3352
- ].filter((A) => typeof A == "string" && A.length > 0), b = [];
3353
- for (const A of _) {
3354
- const O = h(A);
3355
- e.scope.level === "passage" && b.push(`pie-passage-shell[item-id="${O}"] [data-region="content"]`), b.push(`pie-item-shell[item-id="${O}"] [data-region="content"]`);
3356
- }
3357
- b.push("[data-region='content']");
3358
- for (const A of b) {
3359
- const O = document.querySelector(A);
3360
- if (O instanceof HTMLElement)
3361
- return O;
3362
- }
3363
- return null;
3364
- }, m = async () => {
3365
- if (!n?.speak || !e.ttsService)
3366
- return;
3367
- if (s()) {
3368
- d();
3369
- return;
3370
- }
3371
- const g = p();
3372
- if (!g)
3373
- return;
3374
- const h = g.textContent || "";
3375
- if (h.trim())
3376
- try {
3377
- s() || e.toggleTool(this.toolId), l(), await u(), n.setRootElement?.(g), n.speak(h, {
3378
- // For passage-level TTS, use rendered DOM text as the source of truth.
3379
- // Catalog/SSML content can diverge from rendered text and break
3380
- // word-boundary-to-DOM mapping for progressive yellow highlighting.
3381
- catalogId: e.scope.level === "passage" ? void 0 : e.catalogId || e.itemId,
3382
- language: e.language,
3383
- contentElement: g
3384
- }).catch((_) => {
3385
- console.error("[ttsToolRegistration] Failed to start reading:", _), l();
3386
- }), l();
3387
- } catch (_) {
3388
- l(), console.error("[ttsToolRegistration] Failed to start reading:", _);
3389
- }
3342
+ const i = () => {
3343
+ const o = Vt(e.toolkitCoordinator?.getToolConfig(this.toolId) || void 0);
3344
+ return Ns(o.speedOptions);
3345
+ }, n = gi(this.toolId, e.scope.level, e.scope.scopeId), r = () => {
3346
+ const o = e.ui?.size;
3347
+ return o === "sm" || o === "lg" ? o : "md";
3348
+ }, s = () => {
3349
+ let o = lt.get(n);
3350
+ return o && typeof o.isConnected == "boolean" && !o.isConnected && (lt.delete(n), o = void 0), o || (o = document.createElement("pie-tool-tts-inline"), o[Hs] = () => {
3351
+ lt.get(n) === o && lt.delete(n);
3352
+ }, lt.set(n, o)), o.setAttribute("tool-id", n), o.setAttribute("catalog-id", e.catalogId || e.itemId), o.setAttribute("language", e.language || "en-US"), o.setAttribute("size", r()), o.speedOptions = i(), o;
3390
3353
  };
3391
3354
  return {
3392
3355
  toolId: this.toolId,
3393
- button: o,
3356
+ button: null,
3357
+ elements: [
3358
+ {
3359
+ element: s(),
3360
+ mount: "before-buttons"
3361
+ }
3362
+ ],
3394
3363
  sync: () => {
3395
- l(), e.ensureTTSReady && u().catch((g) => {
3396
- console.error("[ttsToolRegistration] Failed to initialize TTS service:", g);
3364
+ const o = s();
3365
+ o.setAttribute("tool-id", n), o.setAttribute("catalog-id", e.catalogId || e.itemId), o.setAttribute("language", e.language || "en-US"), o.setAttribute("size", r()), o.speedOptions = i(), e.ensureTTSReady && e.ensureTTSReady().catch((a) => {
3366
+ console.error("[ttsToolRegistration] Failed to initialize TTS service:", a);
3397
3367
  });
3398
- },
3399
- subscribeActive: (g) => {
3400
- const h = [];
3401
- if (e.subscribeVisibility) {
3402
- const _ = e.subscribeVisibility(() => {
3403
- const b = s();
3404
- l(), g(b);
3405
- });
3406
- h.push(_);
3407
- }
3408
- if (e.ttsService) {
3409
- const _ = `tts-toolbar:${r}`, b = (A) => {
3410
- a(String(A || ""));
3411
- const O = s();
3412
- l(), g(O);
3413
- };
3414
- e.ttsService.onStateChange(_, b), h.push(() => {
3415
- e.ttsService?.offStateChange(_, b);
3416
- });
3417
- }
3418
- return h.length === 0 ? () => {
3419
- } : () => {
3420
- for (const _ of h)
3421
- _();
3422
- };
3423
3368
  }
3424
3369
  };
3425
3370
  }
3426
3371
  };
3427
3372
  function be(t, e) {
3428
- const i = hi(t, e.scope.level, e.scope.scopeId);
3373
+ const i = gi(t, e.scope.level, e.scope.scopeId);
3429
3374
  return {
3430
3375
  fullToolId: i,
3431
3376
  isActive: () => e.isToolVisible(i),
@@ -3439,7 +3384,7 @@ function ye(t) {
3439
3384
  const e = t.isActive();
3440
3385
  t.button.active = e, t.overlay.visible = e, t.onActiveChange?.(e);
3441
3386
  }
3442
- const Ps = {
3387
+ const Fs = {
3443
3388
  toolId: "ruler",
3444
3389
  name: "Ruler",
3445
3390
  description: "On-screen ruler for measurements",
@@ -3458,7 +3403,7 @@ const Ps = {
3458
3403
  * Pass 2: Ruler is relevant when math content is present
3459
3404
  */
3460
3405
  isVisibleInContext(t) {
3461
- return Mt(t);
3406
+ return Ft(t);
3462
3407
  },
3463
3408
  renderToolbar(t, e) {
3464
3409
  const i = be(this.toolId, e), n = {
@@ -3485,7 +3430,7 @@ const Ps = {
3485
3430
  subscribeActive: i.subscribeActive
3486
3431
  };
3487
3432
  }
3488
- }, Hs = {
3433
+ }, xs = {
3489
3434
  toolId: "protractor",
3490
3435
  name: "Protractor",
3491
3436
  description: "On-screen protractor for angle measurements",
@@ -3504,7 +3449,7 @@ const Ps = {
3504
3449
  * Pass 2: Protractor is relevant when math content is present
3505
3450
  */
3506
3451
  isVisibleInContext(t) {
3507
- return Mt(t);
3452
+ return Ft(t);
3508
3453
  },
3509
3454
  renderToolbar(t, e) {
3510
3455
  const i = be(this.toolId, e), n = {
@@ -3531,7 +3476,7 @@ const Ps = {
3531
3476
  subscribeActive: i.subscribeActive
3532
3477
  };
3533
3478
  }
3534
- }, Ns = {
3479
+ }, Ds = {
3535
3480
  toolId: "answerEliminator",
3536
3481
  name: "Answer Eliminator",
3537
3482
  description: "Strike through answer choices",
@@ -3554,7 +3499,7 @@ const Ps = {
3554
3499
  * Pass 2: Answer eliminator is relevant only for choice-based questions
3555
3500
  */
3556
3501
  isVisibleInContext(t) {
3557
- return vs(t);
3502
+ return ys(t);
3558
3503
  },
3559
3504
  renderToolbar(t, e) {
3560
3505
  const i = be(this.toolId, e), n = e.componentOverrides ?? {}, r = ue(this.toolId, t, e, n);
@@ -3585,7 +3530,7 @@ const Ps = {
3585
3530
  subscribeActive: i.subscribeActive
3586
3531
  };
3587
3532
  }
3588
- }, Ms = {
3533
+ }, Bs = {
3589
3534
  toolId: "highlighter",
3590
3535
  name: "Highlighter",
3591
3536
  description: "Highlight text",
@@ -3599,7 +3544,7 @@ const Ps = {
3599
3544
  * Pass 2: Highlighter is relevant when readable text is available
3600
3545
  */
3601
3546
  isVisibleInContext(t) {
3602
- return Ft(t);
3547
+ return xt(t);
3603
3548
  },
3604
3549
  renderToolbar(t, e) {
3605
3550
  const i = be(this.toolId, e), n = {
@@ -3629,7 +3574,7 @@ const Ps = {
3629
3574
  subscribeActive: i.subscribeActive
3630
3575
  };
3631
3576
  }
3632
- }, Fs = {
3577
+ }, Vs = {
3633
3578
  toolId: "lineReader",
3634
3579
  name: "Line Reader",
3635
3580
  description: "Reading guide overlay",
@@ -3654,7 +3599,7 @@ const Ps = {
3654
3599
  * Pass 2: Line reader is relevant when readable text is present
3655
3600
  */
3656
3601
  isVisibleInContext(t) {
3657
- return Ft(t);
3602
+ return xt(t);
3658
3603
  },
3659
3604
  renderToolbar(t, e) {
3660
3605
  const i = be(this.toolId, e), n = {
@@ -3681,7 +3626,7 @@ const Ps = {
3681
3626
  subscribeActive: i.subscribeActive
3682
3627
  };
3683
3628
  }
3684
- }, Ds = {
3629
+ }, Gs = {
3685
3630
  toolId: "theme",
3686
3631
  name: "Theme",
3687
3632
  description: "Accessible themes and contrast",
@@ -3752,7 +3697,7 @@ const Ps = {
3752
3697
  subscribeActive: i.subscribeActive
3753
3698
  };
3754
3699
  }
3755
- }, Bs = Ds, xs = {
3700
+ }, zs = Gs, js = {
3756
3701
  toolId: "annotationToolbar",
3757
3702
  name: "Highlighter",
3758
3703
  description: "Highlight and annotate text",
@@ -3779,7 +3724,7 @@ const Ps = {
3779
3724
  * Pass 2: Annotation is relevant when readable text is present
3780
3725
  */
3781
3726
  isVisibleInContext(t) {
3782
- return Ft(t);
3727
+ return xt(t);
3783
3728
  },
3784
3729
  renderToolbar(t, e) {
3785
3730
  const i = be(this.toolId, e), n = {
@@ -3806,7 +3751,7 @@ const Ps = {
3806
3751
  subscribeActive: i.subscribeActive
3807
3752
  };
3808
3753
  }
3809
- }, Vs = {
3754
+ }, qs = {
3810
3755
  toolId: "graph",
3811
3756
  name: "Graph",
3812
3757
  description: "Graphing calculator and coordinate plane",
@@ -3829,7 +3774,7 @@ const Ps = {
3829
3774
  * Pass 2: Graph is relevant when math content is present
3830
3775
  */
3831
3776
  isVisibleInContext(t) {
3832
- return Mt(t);
3777
+ return Ft(t);
3833
3778
  },
3834
3779
  renderToolbar(t, e) {
3835
3780
  const i = be(this.toolId, e), n = {
@@ -3871,7 +3816,7 @@ const Ps = {
3871
3816
  subscribeActive: i.subscribeActive
3872
3817
  };
3873
3818
  }
3874
- }, Gs = {
3819
+ }, Ks = {
3875
3820
  toolId: "periodicTable",
3876
3821
  name: "Periodic Table",
3877
3822
  description: "Chemistry periodic table reference",
@@ -3892,7 +3837,7 @@ const Ps = {
3892
3837
  * Pass 2: Periodic table is relevant when science content is present
3893
3838
  */
3894
3839
  isVisibleInContext(t) {
3895
- return bs(t);
3840
+ return _s(t);
3896
3841
  },
3897
3842
  renderToolbar(t, e) {
3898
3843
  const i = be(this.toolId, e), n = {
@@ -3934,53 +3879,53 @@ const Ps = {
3934
3879
  subscribeActive: i.subscribeActive
3935
3880
  };
3936
3881
  }
3937
- }, zs = [
3938
- ks,
3939
- Os,
3882
+ }, Us = [
3940
3883
  Ps,
3941
- Hs,
3942
- Ns,
3943
3884
  Ms,
3944
3885
  Fs,
3945
- Bs,
3946
3886
  xs,
3887
+ Ds,
3888
+ Bs,
3947
3889
  Vs,
3948
- Gs
3890
+ zs,
3891
+ js,
3892
+ qs,
3893
+ Ks
3949
3894
  ];
3950
- function js(t = {}) {
3951
- const e = new ps(), i = {
3895
+ function Ws(t = {}) {
3896
+ const e = new ms(), i = {
3952
3897
  toolTagMap: {
3953
- ...Mn,
3898
+ ...xn,
3954
3899
  ...t.toolTagMap || {}
3955
3900
  },
3956
3901
  toolComponentFactory: t.toolComponentFactory,
3957
3902
  toolComponentFactories: t.toolComponentFactories
3958
3903
  }, n = (r) => t.overrides?.[r.toolId] || r;
3959
- return t.includePackagedTools && qs(e, {
3904
+ return t.includePackagedTools && Ys(e, {
3960
3905
  toolIds: t.toolIds,
3961
3906
  applyOverrides: n
3962
3907
  }), t.toolModuleLoaders && Object.keys(t.toolModuleLoaders).length > 0 && e.setToolModuleLoaders(t.toolModuleLoaders), e.setComponentOverrides(i), e;
3963
3908
  }
3964
- function qs(t, e = {}) {
3909
+ function Ys(t, e = {}) {
3965
3910
  const i = e.toolIds && e.toolIds.length > 0 ? new Set(e.toolIds) : null, n = e.applyOverrides || ((r) => r);
3966
- for (const r of zs)
3911
+ for (const r of Us)
3967
3912
  i && !i.has(r.toolId) || t.register(n(r));
3968
3913
  }
3969
- function Ks(t = {}) {
3970
- return js({
3914
+ function Xs(t = {}) {
3915
+ return Ws({
3971
3916
  ...t,
3972
3917
  includePackagedTools: !0
3973
3918
  });
3974
3919
  }
3975
- function Ws() {
3976
- const t = Ks(), e = /* @__PURE__ */ new Set();
3920
+ function Qs() {
3921
+ const t = Xs(), e = /* @__PURE__ */ new Set();
3977
3922
  for (const i of t.getAllTools())
3978
3923
  for (const n of i.pnpSupportIds || [])
3979
3924
  e.add(n);
3980
3925
  return [...e].sort();
3981
3926
  }
3982
- Ws();
3983
- const Us = {
3927
+ Qs();
3928
+ const Js = {
3984
3929
  /**
3985
3930
  * Visual accessibility features
3986
3931
  * For students with low vision, color blindness, or visual processing needs
@@ -4151,27 +4096,27 @@ const Us = {
4151
4096
  tutorialAvailable: "tutorialAvailable"
4152
4097
  }
4153
4098
  };
4154
- Object.values(Us).flatMap((t) => Object.values(t));
4155
- var Zt;
4099
+ Object.values(Js).flatMap((t) => Object.values(t));
4100
+ var ti;
4156
4101
  (function(t) {
4157
4102
  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";
4158
- })(Zt || (Zt = {}));
4159
- var Hi;
4103
+ })(ti || (ti = {}));
4104
+ var Mi;
4160
4105
  (function(t) {
4161
4106
  t.IDLE = "idle", t.LOADING = "loading", t.PLAYING = "playing", t.PAUSED = "paused", t.ERROR = "error";
4162
- })(Hi || (Hi = {}));
4163
- const P = class P {
4107
+ })(Mi || (Mi = {}));
4108
+ const R = class R {
4164
4109
  constructor() {
4165
- f(this, "elementType", "multiple-choice");
4166
- f(this, "priority", 100);
4110
+ u(this, "elementType", "multiple-choice");
4111
+ u(this, "priority", 100);
4167
4112
  }
4168
4113
  canHandle(e) {
4169
4114
  return e.tagName.toLowerCase() === "multiple-choice" || e.classList.contains("multiple-choice");
4170
4115
  }
4171
4116
  findChoices(e) {
4172
- e.setAttribute(P.ROOT_HOOK_ATTR, "true");
4117
+ e.setAttribute(R.ROOT_HOOK_ATTR, "true");
4173
4118
  const i = Array.from(
4174
- e.querySelectorAll(P.CHOICE_SELECTOR)
4119
+ e.querySelectorAll(R.CHOICE_SELECTOR)
4175
4120
  );
4176
4121
  for (const n of i)
4177
4122
  this.annotateChoice(n);
@@ -4197,27 +4142,27 @@ const P = class P {
4197
4142
  const i = e.querySelector(
4198
4143
  'input[type="checkbox"], input[type="radio"]'
4199
4144
  );
4200
- return !(!i || i.getAttribute("aria-checked") === "true" || i.disabled || (e.closest(`[${P.ROOT_HOOK_ATTR}="true"]`) || e.closest("multiple-choice"))?.querySelector(
4201
- `[${P.FEEDBACK_HOOK_ATTR}="true"]`
4145
+ return !(!i || i.getAttribute("aria-checked") === "true" || i.disabled || (e.closest(`[${R.ROOT_HOOK_ATTR}="true"]`) || e.closest("multiple-choice"))?.querySelector(
4146
+ `[${R.FEEDBACK_HOOK_ATTR}="true"]`
4202
4147
  ));
4203
4148
  }
4204
4149
  getButtonContainer(e) {
4205
4150
  return e;
4206
4151
  }
4207
4152
  generateFallbackId(e) {
4208
- const n = (e.closest(`[${P.ROOT_HOOK_ATTR}="true"]`) || e.closest("multiple-choice"))?.querySelectorAll(
4209
- `[${P.CHOICE_HOOK_ATTR}="true"]`
4153
+ const n = (e.closest(`[${R.ROOT_HOOK_ATTR}="true"]`) || e.closest("multiple-choice"))?.querySelectorAll(
4154
+ `[${R.CHOICE_HOOK_ATTR}="true"]`
4210
4155
  ) || [];
4211
4156
  return `choice-${Array.from(n).indexOf(e)}`;
4212
4157
  }
4213
4158
  annotateChoice(e) {
4214
- e.setAttribute(P.CHOICE_HOOK_ATTR, "true");
4159
+ e.setAttribute(R.CHOICE_HOOK_ATTR, "true");
4215
4160
  const i = this.resolveLabelElement(e);
4216
- i && i.setAttribute(P.LABEL_HOOK_ATTR, "true");
4161
+ i && i.setAttribute(R.LABEL_HOOK_ATTR, "true");
4217
4162
  }
4218
4163
  resolveLabelElement(e) {
4219
4164
  return e.querySelector(
4220
- `[${P.LABEL_HOOK_ATTR}="true"]`
4165
+ `[${R.LABEL_HOOK_ATTR}="true"]`
4221
4166
  ) || e.querySelector("label") || e.querySelector("span");
4222
4167
  }
4223
4168
  annotateFeedbackTicks(e) {
@@ -4225,18 +4170,18 @@ const P = class P {
4225
4170
  ".feedback-tick"
4226
4171
  ))
4227
4172
  i.setAttribute(
4228
- P.FEEDBACK_HOOK_ATTR,
4173
+ R.FEEDBACK_HOOK_ATTR,
4229
4174
  "true"
4230
4175
  );
4231
4176
  }
4232
4177
  };
4233
- f(P, "CHOICE_HOOK_ATTR", "data-pie-answer-eliminator-choice"), f(P, "LABEL_HOOK_ATTR", "data-pie-answer-eliminator-label"), f(P, "ROOT_HOOK_ATTR", "data-pie-answer-eliminator-root"), f(P, "FEEDBACK_HOOK_ATTR", "data-pie-answer-eliminator-feedback-tick"), f(P, "CHOICE_SELECTOR", `[${P.CHOICE_HOOK_ATTR}="true"], .corespring-checkbox, .corespring-radio-button`);
4234
- let Ot = P;
4235
- class Ys {
4178
+ u(R, "CHOICE_HOOK_ATTR", "data-pie-answer-eliminator-choice"), u(R, "LABEL_HOOK_ATTR", "data-pie-answer-eliminator-label"), u(R, "ROOT_HOOK_ATTR", "data-pie-answer-eliminator-root"), u(R, "FEEDBACK_HOOK_ATTR", "data-pie-answer-eliminator-feedback-tick"), u(R, "CHOICE_SELECTOR", `[${R.CHOICE_HOOK_ATTR}="true"], .corespring-checkbox, .corespring-radio-button`);
4179
+ let Pt = R;
4180
+ class Zs {
4236
4181
  constructor() {
4237
- f(this, "elementType", "ebsr");
4238
- f(this, "priority", 95);
4239
- f(this, "mcAdapter", new Ot());
4182
+ u(this, "elementType", "ebsr");
4183
+ u(this, "priority", 95);
4184
+ u(this, "mcAdapter", new Pt());
4240
4185
  }
4241
4186
  canHandle(e) {
4242
4187
  return e.tagName.toLowerCase() === "ebsr" || e.querySelector("ebsr-multiple-choice") !== null;
@@ -4263,10 +4208,10 @@ class Ys {
4263
4208
  return this.mcAdapter.getButtonContainer(e);
4264
4209
  }
4265
4210
  }
4266
- class Xs {
4211
+ class eo {
4267
4212
  constructor() {
4268
- f(this, "elementType", "inline-dropdown");
4269
- f(this, "priority", 90);
4213
+ u(this, "elementType", "inline-dropdown");
4214
+ u(this, "priority", 90);
4270
4215
  }
4271
4216
  canHandle(e) {
4272
4217
  return e.tagName.toLowerCase() === "inline-dropdown" || e.querySelector('[role="combobox"]') !== null;
@@ -4291,13 +4236,13 @@ class Xs {
4291
4236
  return e;
4292
4237
  }
4293
4238
  }
4294
- class Qs {
4239
+ class to {
4295
4240
  constructor() {
4296
- f(this, "adapters");
4241
+ u(this, "adapters");
4297
4242
  this.adapters = [
4298
- new Ot(),
4299
- new Ys(),
4300
- new Xs()
4243
+ new Pt(),
4244
+ new Zs(),
4245
+ new eo()
4301
4246
  ].sort((e, i) => i.priority - e.priority);
4302
4247
  }
4303
4248
  /**
@@ -4325,12 +4270,12 @@ class Qs {
4325
4270
  this.adapters.push(e), this.adapters.sort((i, n) => n.priority - i.priority);
4326
4271
  }
4327
4272
  }
4328
- const L = class L {
4273
+ const O = class O {
4329
4274
  constructor() {
4330
- f(this, "name", "mask");
4331
- f(this, "highlights", /* @__PURE__ */ new Map());
4332
- f(this, "ranges", /* @__PURE__ */ new Map());
4333
- f(this, "fallbackContainers", /* @__PURE__ */ new Map());
4275
+ u(this, "name", "mask");
4276
+ u(this, "highlights", /* @__PURE__ */ new Map());
4277
+ u(this, "ranges", /* @__PURE__ */ new Map());
4278
+ u(this, "fallbackContainers", /* @__PURE__ */ new Map());
4334
4279
  }
4335
4280
  initialize() {
4336
4281
  }
@@ -4345,7 +4290,7 @@ const L = class L {
4345
4290
  this.injectHighlightCSS(e);
4346
4291
  const n = new Highlight(i);
4347
4292
  CSS.highlights.set(
4348
- `${L.HIGHLIGHT_NAME_PREFIX}${e}`,
4293
+ `${O.HIGHLIGHT_NAME_PREFIX}${e}`,
4349
4294
  n
4350
4295
  ), this.highlights.set(e, n), this.ranges.set(e, i), this.addAriaAttributes(i);
4351
4296
  }
@@ -4354,7 +4299,7 @@ const L = class L {
4354
4299
  this.removeFallback(e);
4355
4300
  return;
4356
4301
  }
4357
- CSS.highlights.delete(`${L.HIGHLIGHT_NAME_PREFIX}${e}`), this.removeHighlightCSS(e);
4302
+ CSS.highlights.delete(`${O.HIGHLIGHT_NAME_PREFIX}${e}`), this.removeHighlightCSS(e);
4358
4303
  const i = this.ranges.get(e);
4359
4304
  i && this.removeAriaAttributes(i), this.highlights.delete(e), this.ranges.delete(e), this.fallbackContainers.delete(e);
4360
4305
  }
@@ -4373,7 +4318,7 @@ const L = class L {
4373
4318
  return typeof CSS < "u" && "highlights" in CSS;
4374
4319
  }
4375
4320
  injectHighlightCSS(e) {
4376
- const i = `${L.HIGHLIGHT_STYLE_PREFIX}${e}`;
4321
+ const i = `${O.HIGHLIGHT_STYLE_PREFIX}${e}`;
4377
4322
  if (document.getElementById(i)) return;
4378
4323
  const n = document.createElement("style");
4379
4324
  n.id = i, n.textContent = `
@@ -4384,20 +4329,20 @@ const L = class L {
4384
4329
  `, document.head.appendChild(n);
4385
4330
  }
4386
4331
  removeHighlightCSS(e) {
4387
- document.getElementById(`${L.HIGHLIGHT_STYLE_PREFIX}${e}`)?.remove();
4332
+ document.getElementById(`${O.HIGHLIGHT_STYLE_PREFIX}${e}`)?.remove();
4388
4333
  }
4389
4334
  addAriaAttributes(e) {
4390
4335
  const i = this.findChoiceContainer(e);
4391
- i && (i.setAttribute(L.ELIMINATED_ATTR, "true"), i.setAttribute("aria-hidden", "true"));
4336
+ i && (i.setAttribute(O.ELIMINATED_ATTR, "true"), i.setAttribute("aria-hidden", "true"));
4392
4337
  }
4393
4338
  removeAriaAttributes(e) {
4394
4339
  const i = this.findChoiceContainer(e);
4395
- i && (i.removeAttribute(L.ELIMINATED_ATTR), i.removeAttribute("aria-hidden"));
4340
+ i && (i.removeAttribute(O.ELIMINATED_ATTR), i.removeAttribute("aria-hidden"));
4396
4341
  }
4397
4342
  findChoiceContainer(e) {
4398
4343
  let i = e.startContainer;
4399
4344
  for (i.nodeType === Node.TEXT_NODE && (i = i.parentElement); i && i !== document.body; ) {
4400
- if (i.getAttribute(L.CHOICE_HOOK_ATTR) === "true")
4345
+ if (i.getAttribute(O.CHOICE_HOOK_ATTR) === "true")
4401
4346
  return i;
4402
4347
  i = i.parentElement;
4403
4348
  }
@@ -4405,24 +4350,24 @@ const L = class L {
4405
4350
  }
4406
4351
  applyFallback(e, i) {
4407
4352
  const n = this.findChoiceContainer(i);
4408
- n && (n.classList.add(L.FALLBACK_CLASS), n.setAttribute(L.ELIMINATED_ATTR, "true"), n.setAttribute(L.ELIMINATED_ID_ATTR, e), this.fallbackContainers.set(e, n), this.addAriaAttributes(i));
4353
+ n && (n.classList.add(O.FALLBACK_CLASS), n.setAttribute(O.ELIMINATED_ATTR, "true"), n.setAttribute(O.ELIMINATED_ID_ATTR, e), this.fallbackContainers.set(e, n), this.addAriaAttributes(i));
4409
4354
  }
4410
4355
  removeFallback(e) {
4411
4356
  const i = this.fallbackContainers.get(e);
4412
4357
  if (!i) return;
4413
- i.classList.remove(L.FALLBACK_CLASS), i.removeAttribute(L.ELIMINATED_ATTR), i.removeAttribute(L.ELIMINATED_ID_ATTR);
4358
+ i.classList.remove(O.FALLBACK_CLASS), i.removeAttribute(O.ELIMINATED_ATTR), i.removeAttribute(O.ELIMINATED_ID_ATTR);
4414
4359
  const n = document.createRange();
4415
4360
  n.selectNodeContents(i), this.removeAriaAttributes(n), this.fallbackContainers.delete(e);
4416
4361
  }
4417
4362
  };
4418
- f(L, "HIGHLIGHT_STYLE_PREFIX", "pie-answer-eliminator-mask-highlight-"), f(L, "HIGHLIGHT_NAME_PREFIX", "pie-answer-masked-"), f(L, "FALLBACK_CLASS", "pie-answer-masked-fallback"), f(L, "CHOICE_HOOK_ATTR", "data-pie-answer-eliminator-choice"), f(L, "ELIMINATED_ATTR", "data-pie-answer-eliminated"), f(L, "ELIMINATED_ID_ATTR", "data-pie-answer-eliminated-id");
4419
- let ei = L;
4420
- const E = class E {
4363
+ u(O, "HIGHLIGHT_STYLE_PREFIX", "pie-answer-eliminator-mask-highlight-"), u(O, "HIGHLIGHT_NAME_PREFIX", "pie-answer-masked-"), u(O, "FALLBACK_CLASS", "pie-answer-masked-fallback"), u(O, "CHOICE_HOOK_ATTR", "data-pie-answer-eliminator-choice"), u(O, "ELIMINATED_ATTR", "data-pie-answer-eliminated"), u(O, "ELIMINATED_ID_ATTR", "data-pie-answer-eliminated-id");
4364
+ let ii = O;
4365
+ const I = class I {
4421
4366
  constructor() {
4422
- f(this, "name", "strikethrough");
4423
- f(this, "highlights", /* @__PURE__ */ new Map());
4424
- f(this, "ranges", /* @__PURE__ */ new Map());
4425
- f(this, "fallbackContainers", /* @__PURE__ */ new Map());
4367
+ u(this, "name", "strikethrough");
4368
+ u(this, "highlights", /* @__PURE__ */ new Map());
4369
+ u(this, "ranges", /* @__PURE__ */ new Map());
4370
+ u(this, "fallbackContainers", /* @__PURE__ */ new Map());
4426
4371
  }
4427
4372
  initialize() {
4428
4373
  this.isSupported() || console.warn("CSS Custom Highlight API not supported, using fallback");
@@ -4438,7 +4383,7 @@ const E = class E {
4438
4383
  this.injectHighlightCSS(e);
4439
4384
  const n = new Highlight(i);
4440
4385
  CSS.highlights.set(
4441
- `${E.HIGHLIGHT_NAME_PREFIX}${e}`,
4386
+ `${I.HIGHLIGHT_NAME_PREFIX}${e}`,
4442
4387
  n
4443
4388
  ), this.highlights.set(e, n), this.ranges.set(e, i), this.addAriaAttributes(i);
4444
4389
  }
@@ -4448,7 +4393,7 @@ const E = class E {
4448
4393
  return;
4449
4394
  }
4450
4395
  CSS.highlights.delete(
4451
- `${E.HIGHLIGHT_NAME_PREFIX}${e}`
4396
+ `${I.HIGHLIGHT_NAME_PREFIX}${e}`
4452
4397
  ), this.removeHighlightCSS(e);
4453
4398
  const i = this.ranges.get(e);
4454
4399
  i && this.removeAriaAttributes(i), this.highlights.delete(e), this.ranges.delete(e), this.fallbackContainers.delete(e);
@@ -4468,7 +4413,7 @@ const E = class E {
4468
4413
  return typeof CSS < "u" && "highlights" in CSS;
4469
4414
  }
4470
4415
  injectHighlightCSS(e) {
4471
- const i = `${E.HIGHLIGHT_STYLE_PREFIX}${e}`;
4416
+ const i = `${I.HIGHLIGHT_STYLE_PREFIX}${e}`;
4472
4417
  if (document.getElementById(i)) return;
4473
4418
  const n = document.createElement("style");
4474
4419
  n.id = i, n.textContent = `
@@ -4482,30 +4427,30 @@ const E = class E {
4482
4427
  }
4483
4428
  removeHighlightCSS(e) {
4484
4429
  document.getElementById(
4485
- `${E.HIGHLIGHT_STYLE_PREFIX}${e}`
4430
+ `${I.HIGHLIGHT_STYLE_PREFIX}${e}`
4486
4431
  )?.remove();
4487
4432
  }
4488
4433
  addAriaAttributes(e) {
4489
4434
  const i = this.findChoiceContainer(e);
4490
4435
  if (!i) return;
4491
- i.setAttribute(E.ELIMINATED_ATTR, "true"), i.setAttribute("aria-disabled", "true");
4436
+ i.setAttribute(I.ELIMINATED_ATTR, "true"), i.setAttribute("aria-disabled", "true");
4492
4437
  const n = this.resolveLabelElement(i);
4493
- if (n && !n.querySelector(`.${E.SR_CLASS}`)) {
4438
+ if (n && !n.querySelector(`.${I.SR_CLASS}`)) {
4494
4439
  const r = document.createElement("span");
4495
- r.className = E.SR_CLASS, r.textContent = " (eliminated)", n.appendChild(r);
4440
+ r.className = I.SR_CLASS, r.textContent = " (eliminated)", n.appendChild(r);
4496
4441
  }
4497
4442
  }
4498
4443
  removeAriaAttributes(e) {
4499
4444
  const i = this.findChoiceContainer(e);
4500
4445
  if (!i) return;
4501
- i.removeAttribute(E.ELIMINATED_ATTR), i.removeAttribute("aria-disabled"), i.querySelector(
4502
- `.${E.SR_CLASS}`
4446
+ i.removeAttribute(I.ELIMINATED_ATTR), i.removeAttribute("aria-disabled"), i.querySelector(
4447
+ `.${I.SR_CLASS}`
4503
4448
  )?.remove();
4504
4449
  }
4505
4450
  findChoiceContainer(e) {
4506
4451
  let i = e.startContainer;
4507
4452
  for (i.nodeType === Node.TEXT_NODE && (i = i.parentElement); i && i !== document.body; ) {
4508
- if (i.getAttribute(E.CHOICE_HOOK_ATTR) === "true")
4453
+ if (i.getAttribute(I.CHOICE_HOOK_ATTR) === "true")
4509
4454
  return i;
4510
4455
  i = i.parentElement;
4511
4456
  }
@@ -4514,44 +4459,44 @@ const E = class E {
4514
4459
  // Fallback for browsers without CSS Highlight API
4515
4460
  applyFallback(e, i) {
4516
4461
  const n = this.findChoiceContainer(i);
4517
- n && (n.classList.add(E.FALLBACK_CLASS), n.setAttribute(E.ELIMINATED_ATTR, "true"), n.setAttribute(E.ELIMINATED_ID_ATTR, e), this.fallbackContainers.set(e, n), this.addAriaAttributes(i));
4462
+ n && (n.classList.add(I.FALLBACK_CLASS), n.setAttribute(I.ELIMINATED_ATTR, "true"), n.setAttribute(I.ELIMINATED_ID_ATTR, e), this.fallbackContainers.set(e, n), this.addAriaAttributes(i));
4518
4463
  }
4519
4464
  removeFallback(e) {
4520
4465
  const i = this.fallbackContainers.get(e);
4521
4466
  if (!i) return;
4522
- i.classList.remove(E.FALLBACK_CLASS), i.removeAttribute(E.ELIMINATED_ATTR), i.removeAttribute(E.ELIMINATED_ID_ATTR);
4467
+ i.classList.remove(I.FALLBACK_CLASS), i.removeAttribute(I.ELIMINATED_ATTR), i.removeAttribute(I.ELIMINATED_ID_ATTR);
4523
4468
  const n = document.createRange();
4524
4469
  n.selectNodeContents(i), this.removeAriaAttributes(n), this.fallbackContainers.delete(e);
4525
4470
  }
4526
4471
  resolveLabelElement(e) {
4527
4472
  return e.querySelector(
4528
- `[${E.LABEL_HOOK_ATTR}="true"]`
4473
+ `[${I.LABEL_HOOK_ATTR}="true"]`
4529
4474
  ) || e.querySelector("label");
4530
4475
  }
4531
4476
  };
4532
- f(E, "HIGHLIGHT_STYLE_PREFIX", "pie-answer-eliminator-highlight-"), f(E, "HIGHLIGHT_NAME_PREFIX", "pie-answer-eliminated-"), f(E, "FALLBACK_CLASS", "pie-answer-eliminator-eliminated-fallback"), f(E, "SR_CLASS", "pie-answer-eliminator-sr-announcement"), f(E, "CHOICE_HOOK_ATTR", "data-pie-answer-eliminator-choice"), f(E, "LABEL_HOOK_ATTR", "data-pie-answer-eliminator-label"), f(E, "ELIMINATED_ATTR", "data-pie-answer-eliminated"), f(E, "ELIMINATED_ID_ATTR", "data-pie-answer-eliminated-id");
4533
- let ti = E;
4477
+ u(I, "HIGHLIGHT_STYLE_PREFIX", "pie-answer-eliminator-highlight-"), u(I, "HIGHLIGHT_NAME_PREFIX", "pie-answer-eliminated-"), u(I, "FALLBACK_CLASS", "pie-answer-eliminator-eliminated-fallback"), u(I, "SR_CLASS", "pie-answer-eliminator-sr-announcement"), u(I, "CHOICE_HOOK_ATTR", "data-pie-answer-eliminator-choice"), u(I, "LABEL_HOOK_ATTR", "data-pie-answer-eliminator-label"), u(I, "ELIMINATED_ATTR", "data-pie-answer-eliminated"), u(I, "ELIMINATED_ID_ATTR", "data-pie-answer-eliminated-id");
4478
+ let ni = I;
4534
4479
  const Te = class Te {
4535
4480
  constructor(e = "strikethrough", i = "right") {
4536
- f(this, "registry");
4537
- f(this, "strategy");
4538
- f(this, "eliminatedChoices", /* @__PURE__ */ new Set());
4481
+ u(this, "registry");
4482
+ u(this, "strategy");
4483
+ u(this, "eliminatedChoices", /* @__PURE__ */ new Set());
4539
4484
  // Set<choiceId> for current element
4540
- f(this, "choiceElements", /* @__PURE__ */ new Map());
4485
+ u(this, "choiceElements", /* @__PURE__ */ new Map());
4541
4486
  // choiceId -> element
4542
- f(this, "choiceButtons", /* @__PURE__ */ new Map());
4487
+ u(this, "choiceButtons", /* @__PURE__ */ new Map());
4543
4488
  // choiceId -> button
4544
- f(this, "choiceAdapters", /* @__PURE__ */ new Map());
4489
+ u(this, "choiceAdapters", /* @__PURE__ */ new Map());
4545
4490
  // choiceId -> adapter
4546
- f(this, "buttonAlignment", "right");
4547
- f(this, "shouldRestoreState", !0);
4491
+ u(this, "buttonAlignment", "right");
4492
+ u(this, "shouldRestoreState", !0);
4548
4493
  // Whether to restore eliminations from state storage
4549
4494
  // Store integration (replaces session/localStorage)
4550
- f(this, "storeIntegration", null);
4551
- this.registry = new Qs(), this.strategy = this.createStrategy(e), this.strategy.initialize(), this.buttonAlignment = i;
4495
+ u(this, "storeIntegration", null);
4496
+ this.registry = new to(), this.strategy = this.createStrategy(e), this.strategy.initialize(), this.buttonAlignment = i;
4552
4497
  }
4553
4498
  createStrategy(e) {
4554
- return e === "mask" ? new ei() : new ti();
4499
+ return e === "mask" ? new ii() : new ni();
4555
4500
  }
4556
4501
  /**
4557
4502
  * Initialize eliminator for a question
@@ -4682,8 +4627,8 @@ const Te = class Te {
4682
4627
  const o = s.createChoiceRange(r);
4683
4628
  if (o) {
4684
4629
  this.strategy.apply(n, o), this.eliminatedChoices.add(n);
4685
- const l = this.choiceButtons.get(n);
4686
- l && (l.classList.add(Te.TOGGLE_ACTIVE_CLASS), l.setAttribute("aria-pressed", "true"));
4630
+ const a = this.choiceButtons.get(n);
4631
+ a && (a.classList.add(Te.TOGGLE_ACTIVE_CLASS), a.setAttribute("aria-pressed", "true"));
4687
4632
  }
4688
4633
  }
4689
4634
  } catch (i) {
@@ -4757,11 +4702,11 @@ const Te = class Te {
4757
4702
  this.cleanupButtons(), this.strategy.destroy();
4758
4703
  }
4759
4704
  };
4760
- f(Te, "TOGGLE_CLASS", "pie-answer-eliminator-toggle"), f(Te, "TOGGLE_ACTIVE_CLASS", "pie-answer-eliminator-toggle--active");
4761
- let ii = Te;
4762
- var Js = /* @__PURE__ */ Kr('<div style="display: none;" aria-hidden="true"></div>');
4763
- function Zs(t, e) {
4764
- zi(e, !0);
4705
+ u(Te, "TOGGLE_CLASS", "pie-answer-eliminator-toggle"), u(Te, "TOGGLE_ACTIVE_CLASS", "pie-answer-eliminator-toggle--active");
4706
+ let ri = Te;
4707
+ var io = /* @__PURE__ */ Wr('<div style="display: none;" aria-hidden="true"></div>');
4708
+ function no(t, e) {
4709
+ qi(e, !0);
4765
4710
  let i = _e(e, "visible", 7, !1), n = _e(e, "toolId", 7, "answerEliminator"), r = _e(e, "strategy", 7, "strikethrough"), s = _e(
4766
4711
  e,
4767
4712
  "alwaysOn",
@@ -4774,51 +4719,51 @@ function Zs(t, e) {
4774
4719
  7,
4775
4720
  "right"
4776
4721
  // Button placement: left, right, or inline with checkbox
4777
- ), l = _e(
4722
+ ), a = _e(
4778
4723
  e,
4779
4724
  "scopeElement",
4780
4725
  7,
4781
4726
  null
4782
4727
  // Container element to limit DOM queries (for multi-item pages)
4783
- ), a = _e(
4728
+ ), l = _e(
4784
4729
  e,
4785
4730
  "elementToolStateStore",
4786
4731
  7,
4787
4732
  null
4788
4733
  // ElementToolStateStore instance
4789
- ), u = _e(
4734
+ ), f = _e(
4790
4735
  e,
4791
4736
  "globalElementId",
4792
4737
  7,
4793
4738
  ""
4794
4739
  // Composite key: "assessmentId:sectionId:itemId:elementId"
4795
- ), d = /* @__PURE__ */ B(null), p = /* @__PURE__ */ B(null), m = /* @__PURE__ */ B(null);
4796
- const g = /* @__PURE__ */ Ti(() => v(p)?.toolCoordinator);
4797
- let h = /* @__PURE__ */ B(null), _ = /* @__PURE__ */ B(null), b = /* @__PURE__ */ B(null), A = /* @__PURE__ */ B(null), O = /* @__PURE__ */ Ti(() => s() || i());
4740
+ ), d = /* @__PURE__ */ x(null), h = /* @__PURE__ */ x(null), m = /* @__PURE__ */ x(null);
4741
+ const y = /* @__PURE__ */ wi(() => g(h)?.toolCoordinator);
4742
+ let p = /* @__PURE__ */ x(null), S = /* @__PURE__ */ x(null), _ = /* @__PURE__ */ x(null), k = /* @__PURE__ */ x(null), re = /* @__PURE__ */ wi(() => s() || i());
4798
4743
  Pe(() => {
4799
- if (v(d))
4800
- return cs(v(d), (I) => {
4801
- $(p, I, !0);
4744
+ if (g(d))
4745
+ return fs(g(d), (A) => {
4746
+ C(h, A, !0);
4802
4747
  });
4803
4748
  }), Pe(() => {
4804
- if (v(d))
4805
- return us(v(d), (I) => {
4806
- $(m, I, !0);
4749
+ if (g(d))
4750
+ return ds(g(d), (A) => {
4751
+ C(m, A, !0);
4807
4752
  });
4808
4753
  });
4809
4754
  function ot() {
4810
- return l() || v(m)?.scopeElement || null;
4755
+ return a() || g(m)?.scopeElement || null;
4811
4756
  }
4812
4757
  function Dt() {
4813
- if (!v(O) || !v(h)) return;
4814
- const I = ot();
4815
- if (!I) {
4758
+ if (!g(re) || !g(p)) return;
4759
+ const A = ot();
4760
+ if (!A) {
4816
4761
  console.warn("[AnswerEliminator] Missing shell scope context for question root");
4817
4762
  return;
4818
4763
  }
4819
- v(h).initializeForQuestion(I);
4764
+ g(p).initializeForQuestion(A);
4820
4765
  }
4821
- function Fn() {
4766
+ function Dn() {
4822
4767
  requestAnimationFrame(() => {
4823
4768
  requestAnimationFrame(() => {
4824
4769
  Dt();
@@ -4826,77 +4771,77 @@ function Zs(t, e) {
4826
4771
  });
4827
4772
  }
4828
4773
  Pe(() => {
4829
- !v(g) || !n() || (v(A) && v(b) && (v(A) !== v(g) || v(b) !== n()) && (v(A).unregisterTool(v(b)), $(A, null), $(b, null)), v(b) || (v(g).registerTool(n(), "Answer Eliminator", void 0, Zt.MODAL), $(A, v(g), !0), $(b, n())));
4774
+ !g(y) || !n() || (g(k) && g(_) && (g(k) !== g(y) || g(_) !== n()) && (g(k).unregisterTool(g(_)), C(k, null), C(_, null)), g(_) || (g(y).registerTool(n(), "Answer Eliminator", void 0, ti.MODAL), C(k, g(y), !0), C(_, n())));
4830
4775
  }), Pe(() => {
4831
- v(h) && a() && u() && v(h).setStoreIntegration(a(), u());
4832
- }), Qr(() => ($(h, new ii(r(), o()), !0), v(h) && a() && u() && v(h).setStoreIntegration(a(), u()), v(O) ? Dt() : v(h).cleanup(), () => {
4833
- v(h)?.destroy(), $(h, null), v(A) && v(b) && (v(A).unregisterTool(v(b)), $(A, null), $(b, null));
4776
+ g(p) && l() && f() && g(p).setStoreIntegration(l(), f());
4777
+ }), Zr(() => (C(p, new ri(r(), o()), !0), g(p) && l() && f() && g(p).setStoreIntegration(l(), f()), g(re) ? Dt() : g(p).cleanup(), () => {
4778
+ g(p)?.destroy(), C(p, null), g(k) && g(_) && (g(k).unregisterTool(g(_)), C(k, null), C(_, null));
4834
4779
  })), Pe(() => {
4835
- const I = v(m)?.contextVersion ?? null;
4836
- if (I !== null) {
4837
- if (v(_) === null) {
4838
- $(_, I, !0);
4780
+ const A = g(m)?.contextVersion ?? null;
4781
+ if (A !== null) {
4782
+ if (g(S) === null) {
4783
+ C(S, A, !0);
4839
4784
  return;
4840
4785
  }
4841
- I !== v(_) && ($(_, I, !0), Fn());
4786
+ A !== g(S) && (C(S, A, !0), Dn());
4842
4787
  }
4843
4788
  }), Pe(() => {
4844
- v(h) && (v(O) ? (v(h).enableStateRestoration(), Dt()) : v(h).cleanup());
4789
+ g(p) && (g(re) ? (g(p).enableStateRestoration(), Dt()) : g(p).cleanup());
4845
4790
  });
4846
- var Dn = {
4791
+ var Bn = {
4847
4792
  get visible() {
4848
4793
  return i();
4849
4794
  },
4850
- set visible(I = !1) {
4851
- i(I), fe();
4795
+ set visible(A = !1) {
4796
+ i(A), fe();
4852
4797
  },
4853
4798
  get toolId() {
4854
4799
  return n();
4855
4800
  },
4856
- set toolId(I = "answerEliminator") {
4857
- n(I), fe();
4801
+ set toolId(A = "answerEliminator") {
4802
+ n(A), fe();
4858
4803
  },
4859
4804
  get strategy() {
4860
4805
  return r();
4861
4806
  },
4862
- set strategy(I = "strikethrough") {
4863
- r(I), fe();
4807
+ set strategy(A = "strikethrough") {
4808
+ r(A), fe();
4864
4809
  },
4865
4810
  get alwaysOn() {
4866
4811
  return s();
4867
4812
  },
4868
- set alwaysOn(I = !1) {
4869
- s(I), fe();
4813
+ set alwaysOn(A = !1) {
4814
+ s(A), fe();
4870
4815
  },
4871
4816
  get buttonAlignment() {
4872
4817
  return o();
4873
4818
  },
4874
- set buttonAlignment(I = "right") {
4875
- o(I), fe();
4819
+ set buttonAlignment(A = "right") {
4820
+ o(A), fe();
4876
4821
  },
4877
4822
  get scopeElement() {
4878
- return l();
4823
+ return a();
4879
4824
  },
4880
- set scopeElement(I = null) {
4881
- l(I), fe();
4825
+ set scopeElement(A = null) {
4826
+ a(A), fe();
4882
4827
  },
4883
4828
  get elementToolStateStore() {
4884
- return a();
4829
+ return l();
4885
4830
  },
4886
- set elementToolStateStore(I = null) {
4887
- a(I), fe();
4831
+ set elementToolStateStore(A = null) {
4832
+ l(A), fe();
4888
4833
  },
4889
4834
  get globalElementId() {
4890
- return u();
4835
+ return f();
4891
4836
  },
4892
- set globalElementId(I = "") {
4893
- u(I), fe();
4837
+ set globalElementId(A = "") {
4838
+ f(A), fe();
4894
4839
  }
4895
- }, gi = Js();
4896
- return Jr(gi, (I) => $(d, I), () => v(d)), $n(t, gi), ji(Dn);
4840
+ }, vi = io();
4841
+ return es(vi, (A) => C(d, A), () => g(d)), Ln(t, vi), Ki(Bn);
4897
4842
  }
4898
- customElements.define("pie-tool-answer-eliminator", is(
4899
- Zs,
4843
+ customElements.define("pie-tool-answer-eliminator", rs(
4844
+ no,
4900
4845
  {
4901
4846
  visible: { attribute: "visible", type: "Boolean" },
4902
4847
  toolId: { attribute: "tool-id", type: "String" },
@@ -4912,5 +4857,5 @@ customElements.define("pie-tool-answer-eliminator", is(
4912
4857
  { mode: "open" }
4913
4858
  ));
4914
4859
  export {
4915
- Zs as default
4860
+ no as default
4916
4861
  };