@pie-players/pie-tool-calculator-inline-desmos 0.3.67 → 0.3.68

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,12 +1,12 @@
1
- import { ZIndexLayer as jr, connectToolRuntimeContext as Lr, toOverlayToolId as Pr } from "@pie-players/pie-assessment-toolkit";
1
+ import { ZIndexLayer as Xr, connectToolRuntimeContext as en, toOverlayToolId as tn } from "@pie-players/pie-assessment-toolkit";
2
2
  typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
3
- var _e = {}, A = /* @__PURE__ */ Symbol("uninitialized");
4
- var Vr = "http://www.w3.org/1999/xhtml", Dr = Array.isArray, Br = Array.prototype.indexOf, ze = Array.prototype.includes, Fr = Array.from, Ue = Object.keys, Ge = Object.defineProperty, se = Object.getOwnPropertyDescriptor, Yr = Object.getOwnPropertyDescriptors, zr = Object.prototype, Ur = Array.prototype, zt = Object.getPrototypeOf, At = Object.isExtensible, Gr = () => {
3
+ var _e = {}, E = /* @__PURE__ */ Symbol("uninitialized");
4
+ var rn = "http://www.w3.org/1999/xhtml", nn = Array.isArray, an = Array.prototype.indexOf, We = Array.prototype.includes, sn = Array.from, Ke = Object.keys, Je = Object.defineProperty, se = Object.getOwnPropertyDescriptor, on = Object.getOwnPropertyDescriptors, ln = Object.prototype, cn = Array.prototype, tr = Object.getPrototypeOf, Dt = Object.isExtensible, un = () => {
5
5
  };
6
- function Wr(e) {
6
+ function fn(e) {
7
7
  for (var t = 0; t < e.length; t++) e[t]();
8
8
  }
9
- function Ut() {
9
+ function rr() {
10
10
  var e, t;
11
11
  return {
12
12
  promise: new Promise((r, n) => {
@@ -16,81 +16,81 @@ function Ut() {
16
16
  reject: t
17
17
  };
18
18
  }
19
- var Ni = 1 << 24, L = 1024, H = 2048, oe = 4096, dt = 8192, Kr = 16384, vt = 32768, qt = 1 << 25, ht = 65536, Hi = 1 << 17, ji = 1 << 18, me = 1 << 19, Zr = 1 << 20, Oe = 65536, Mt = 1 << 21, Xr = 1 << 22, We = 1 << 23, xe = /* @__PURE__ */ Symbol("$state"), Gt = /* @__PURE__ */ Symbol("legacy props"), Jr = /* @__PURE__ */ Symbol(""), Qr = /* @__PURE__ */ Symbol("proxy path"), Wt = /* @__PURE__ */ Symbol("attributes"), nt = /* @__PURE__ */ Symbol("class"), en = /* @__PURE__ */ Symbol("style"), it = /* @__PURE__ */ Symbol("text");
20
- var Re = new class extends Error {
19
+ var sa = 1 << 24, O = 1024, D = 2048, ce = 4096, mt = 8192, dn = 16384, yt = 32768, qt = 1 << 25, wt = 65536, oa = 1 << 17, la = 1 << 18, we = 1 << 19, hn = 1 << 20, Ce = 65536, Nt = 1 << 21, vn = 1 << 22, Qe = 1 << 23, $e = /* @__PURE__ */ Symbol("$state"), nr = /* @__PURE__ */ Symbol("legacy props"), pn = /* @__PURE__ */ Symbol(""), _n = /* @__PURE__ */ Symbol("proxy path"), ir = /* @__PURE__ */ Symbol("attributes"), ct = /* @__PURE__ */ Symbol("class"), gn = /* @__PURE__ */ Symbol("style"), ut = /* @__PURE__ */ Symbol("text");
20
+ var Le = new class extends Error {
21
21
  name = "StaleReactionError";
22
22
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
23
- }(), tn = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
24
- function rn() {
23
+ }(), mn = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
24
+ function yn() {
25
25
  throw new Error("https://svelte.dev/e/async_derived_orphan");
26
26
  }
27
- function nn(e) {
27
+ function wn(e) {
28
28
  throw new Error("https://svelte.dev/e/effect_in_teardown");
29
29
  }
30
- function sn() {
30
+ function bn() {
31
31
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
32
32
  }
33
- function an(e) {
33
+ function Sn(e) {
34
34
  throw new Error("https://svelte.dev/e/effect_orphan");
35
35
  }
36
- function ln() {
36
+ function An() {
37
37
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
38
38
  }
39
- function on() {
39
+ function kn() {
40
40
  throw new Error("https://svelte.dev/e/hydration_failed");
41
41
  }
42
- function fn(e) {
42
+ function $n(e) {
43
43
  throw new Error("https://svelte.dev/e/props_invalid_value");
44
44
  }
45
- function un() {
45
+ function Tn() {
46
46
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
47
47
  }
48
- function cn() {
48
+ function xn() {
49
49
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
50
50
  }
51
- function dn() {
51
+ function En() {
52
52
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
53
53
  }
54
- function vn() {
54
+ function Pn() {
55
55
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
56
56
  }
57
- function hn() {
57
+ function Rn() {
58
58
  console.warn("https://svelte.dev/e/derived_inert");
59
59
  }
60
- function Je(e) {
60
+ function tt(e) {
61
61
  console.warn("https://svelte.dev/e/hydration_mismatch");
62
62
  }
63
- function _n() {
63
+ function Mn() {
64
64
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
65
65
  }
66
- var $ = !1;
67
- function ce(e) {
68
- $ = e;
66
+ var A = !1;
67
+ function de(e) {
68
+ A = e;
69
69
  }
70
- var w;
71
- function D(e) {
70
+ var b;
71
+ function z(e) {
72
72
  if (e === null)
73
- throw Je(), _e;
74
- return w = e;
73
+ throw tt(), _e;
74
+ return b = e;
75
75
  }
76
- function _t() {
77
- return D(/* @__PURE__ */ J(w));
76
+ function bt() {
77
+ return z(/* @__PURE__ */ X(b));
78
78
  }
79
79
  function Ot(e) {
80
- if ($) {
81
- if (/* @__PURE__ */ J(w) !== null)
82
- throw Je(), _e;
83
- w = e;
80
+ if (A) {
81
+ if (/* @__PURE__ */ X(b) !== null)
82
+ throw tt(), _e;
83
+ b = e;
84
84
  }
85
85
  }
86
- function pn(e = 1) {
87
- if ($) {
88
- for (var t = e, r = w; t--; ) r = /* @__PURE__ */ J(r);
89
- w = r;
86
+ function Cn(e = 1) {
87
+ if (A) {
88
+ for (var t = e, r = b; t--; ) r = /* @__PURE__ */ X(r);
89
+ b = r;
90
90
  }
91
91
  }
92
- function Kt(e = !0) {
93
- for (var t = 0, r = w; ; ) {
92
+ function ar(e = !0) {
93
+ for (var t = 0, r = b; ; ) {
94
94
  if (r.nodeType === 8) {
95
95
  var n = r.data;
96
96
  if (n === "]") {
@@ -98,88 +98,88 @@ function Kt(e = !0) {
98
98
  t -= 1;
99
99
  } else (n === "[" || n === "[!" || n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
100
100
  }
101
- var i = /* @__PURE__ */ J(r);
101
+ var i = /* @__PURE__ */ X(r);
102
102
  e && r.remove(), r = i;
103
103
  }
104
104
  }
105
- function gn(e) {
105
+ function Ln(e) {
106
106
  if (!e || e.nodeType !== 8)
107
- throw Je(), _e;
107
+ throw tt(), _e;
108
108
  return e.data;
109
109
  }
110
- function Zt(e) {
110
+ function sr(e) {
111
111
  return e === this.v;
112
112
  }
113
- function yn(e, t) {
113
+ function In(e, t) {
114
114
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
115
115
  }
116
- function Xt(e) {
117
- return !yn(e, this.v);
116
+ function or(e) {
117
+ return !In(e, this.v);
118
118
  }
119
- var K = !1, Qe = !1;
120
- function Rt(e, t) {
121
- return e.label = t, mn(e.v, t), e;
119
+ var J = !1, rt = !1;
120
+ function Ft(e, t) {
121
+ return e.label = t, Dn(e.v, t), e;
122
122
  }
123
- function mn(e, t) {
124
- return e?.[Qr]?.(t), e;
123
+ function Dn(e, t) {
124
+ return e?.[_n]?.(t), e;
125
125
  }
126
- var T = null;
127
- function pe(e) {
128
- T = e;
126
+ var x = null;
127
+ function ge(e) {
128
+ x = e;
129
129
  }
130
- function Jt(e, t = !1, r) {
131
- T = {
132
- p: T,
130
+ function lr(e, t = !1, r) {
131
+ x = {
132
+ p: x,
133
133
  i: !1,
134
134
  c: null,
135
135
  e: null,
136
136
  s: e,
137
137
  x: null,
138
- r: g,
139
- l: Qe && !t ? {
138
+ r: _,
139
+ l: rt && !t ? {
140
140
  s: null,
141
141
  u: null,
142
142
  $: []
143
143
  } : null
144
144
  };
145
145
  }
146
- function Qt(e) {
147
- var t = T, r = t.e;
146
+ function cr(e) {
147
+ var t = x, r = t.e;
148
148
  if (r !== null) {
149
149
  t.e = null;
150
- for (var n of r) pr(n);
150
+ for (var n of r) Tr(n);
151
151
  }
152
- return e !== void 0 && (t.x = e), t.i = !0, T = t.p, e ?? {};
152
+ return e !== void 0 && (t.x = e), t.i = !0, x = t.p, e ?? {};
153
153
  }
154
- function Ce() {
155
- return !Qe || T !== null && T.l === null;
154
+ function Ie() {
155
+ return !rt || x !== null && x.l === null;
156
156
  }
157
- var re = [];
158
- function er() {
159
- var e = re;
160
- re = [], Wr(e);
157
+ var ne = [];
158
+ function ur() {
159
+ var e = ne;
160
+ ne = [], fn(e);
161
161
  }
162
- function ne(e) {
163
- if (re.length === 0 && !Te) {
164
- var t = re;
162
+ function ie(e) {
163
+ if (ne.length === 0 && !Te) {
164
+ var t = ne;
165
165
  queueMicrotask(() => {
166
- t === re && er();
166
+ t === ne && ur();
167
167
  });
168
168
  }
169
- re.push(e);
169
+ ne.push(e);
170
170
  }
171
- function wn() {
172
- for (; re.length > 0; ) er();
171
+ function qn() {
172
+ for (; ne.length > 0; ) ur();
173
173
  }
174
- function tr(e) {
175
- var t = g;
174
+ function fr(e) {
175
+ var t = _;
176
176
  if (t === null)
177
- return m.f |= We, e;
177
+ return y.f |= Qe, e;
178
178
  if ((t.f & 32768) === 0 && (t.f & 4) === 0)
179
179
  throw e;
180
- te(e, t);
180
+ re(e, t);
181
181
  }
182
- function te(e, t) {
182
+ function re(e, t) {
183
183
  if (!(t !== null && (t.f & 16384) !== 0)) {
184
184
  for (; t !== null; ) {
185
185
  if ((t.f & 128) !== 0) {
@@ -196,101 +196,101 @@ function te(e, t) {
196
196
  throw e;
197
197
  }
198
198
  }
199
- var bn = ~(H | oe | L);
200
- function k(e, t) {
201
- e.f = e.f & bn | t;
199
+ var Nn = ~(D | ce | O);
200
+ function $(e, t) {
201
+ e.f = e.f & Nn | t;
202
202
  }
203
- function pt(e) {
204
- (e.f & 512) !== 0 || e.deps === null ? k(e, L) : k(e, oe);
203
+ function St(e) {
204
+ (e.f & 512) !== 0 || e.deps === null ? $(e, O) : $(e, ce);
205
205
  }
206
- function rr(e) {
206
+ function dr(e) {
207
207
  if (e !== null)
208
208
  for (const t of e)
209
- (t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= Oe, rr(t.deps));
209
+ (t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= Ce, dr(t.deps));
210
210
  }
211
- function nr(e, t, r) {
212
- (e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e), rr(e.deps), k(e, L);
211
+ function hr(e, t, r) {
212
+ (e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e), dr(e.deps), $(e, O);
213
213
  }
214
- var $n = !1, je = !1;
215
- function kn(e) {
216
- var t = je;
214
+ var On = !1, Oe = !1;
215
+ function Fn(e) {
216
+ var t = Oe;
217
217
  try {
218
- return je = !1, [e(), je];
218
+ return Oe = !1, [e(), Oe];
219
219
  } finally {
220
- je = t;
220
+ Oe = t;
221
221
  }
222
222
  }
223
- function et(e) {
224
- var t = m, r = g;
225
- P(null), Y(null);
223
+ function nt(e) {
224
+ var t = y, r = _;
225
+ F(null), V(null);
226
226
  try {
227
227
  return e();
228
228
  } finally {
229
- P(t), Y(r);
229
+ F(t), V(r);
230
230
  }
231
231
  }
232
- function En(e) {
233
- let t = 0, r = Ie(0), n;
232
+ function Hn(e) {
233
+ let t = 0, r = De(0), n;
234
234
  return () => {
235
- $t() && (_(r), kt(() => (t === 0 && (n = xt(() => e(() => Se(r)))), t += 1, () => {
236
- ne(() => {
237
- t -= 1, t === 0 && (n?.(), n = void 0, Se(r));
235
+ Et() && (p(r), Pt(() => (t === 0 && (n = Mt(() => e(() => xe(r)))), t += 1, () => {
236
+ ie(() => {
237
+ t -= 1, t === 0 && (n?.(), n = void 0, xe(r));
238
238
  });
239
239
  })));
240
240
  };
241
241
  }
242
- var xn = ht | me;
243
- function Tn(e, t, r, n) {
244
- new Sn(e, t, r, n);
242
+ var Un = wt | we;
243
+ function zn(e, t, r, n) {
244
+ new jn(e, t, r, n);
245
245
  }
246
- var Sn = class {
246
+ var jn = class {
247
247
  parent;
248
248
  is_pending = !1;
249
249
  transform_error;
250
250
  #e;
251
- #t = $ ? w : null;
251
+ #t = A ? b : null;
252
252
  #r;
253
- #o;
253
+ #l;
254
254
  #i;
255
- #a = null;
256
- #n = null;
257
- #l = null;
258
255
  #s = null;
259
- #_ = 0;
260
- #f = 0;
256
+ #n = null;
257
+ #o = null;
258
+ #a = null;
259
+ #p = 0;
260
+ #c = 0;
261
261
  #u = !1;
262
262
  #d = /* @__PURE__ */ new Set();
263
- #p = /* @__PURE__ */ new Set();
264
- #c = null;
265
- #m = En(() => (this.#c = Ie(this.#_), () => {
266
- this.#c = null;
263
+ #_ = /* @__PURE__ */ new Set();
264
+ #f = null;
265
+ #y = Hn(() => (this.#f = De(this.#p), () => {
266
+ this.#f = null;
267
267
  }));
268
268
  constructor(e, t, r, n) {
269
- this.#e = e, this.#r = t, this.#o = (i) => {
270
- var s = g;
271
- s.b = this, s.f |= 128, r(i);
272
- }, this.parent = g.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), this.#i = yr(() => {
273
- if ($) {
269
+ this.#e = e, this.#r = t, this.#l = (i) => {
270
+ var a = _;
271
+ a.b = this, a.f |= 128, r(i);
272
+ }, this.parent = _.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), this.#i = Er(() => {
273
+ if (A) {
274
274
  const i = this.#t;
275
- _t();
276
- const s = i.data === "[!";
275
+ bt();
276
+ const a = i.data === "[!";
277
277
  if (i.data.startsWith("[?")) {
278
- const l = JSON.parse(i.data.slice(2));
279
- this.#w(l);
280
- } else s ? this.#$() : this.#g();
281
- } else this.#v();
282
- }, xn), $ && (this.#e = w);
278
+ const o = JSON.parse(i.data.slice(2));
279
+ this.#w(o);
280
+ } else a ? this.#S() : this.#g();
281
+ } else this.#h();
282
+ }, Un), A && (this.#e = b);
283
283
  }
284
284
  #g() {
285
285
  try {
286
- this.#a = W(() => this.#o(this.#e));
286
+ this.#s = K(() => this.#l(this.#e));
287
287
  } catch (e) {
288
288
  this.error(e);
289
289
  }
290
290
  }
291
291
  #w(e) {
292
292
  const t = this.#r.failed, { reset: r, invoke_onerror: n } = this.#b(e);
293
- ne(n), t && (this.#l = W(() => {
293
+ ie(n), t && (this.#o = K(() => {
294
294
  t(this.#e, () => e, () => r);
295
295
  }));
296
296
  }
@@ -298,13 +298,13 @@ var Sn = class {
298
298
  var t = !1, r = !1;
299
299
  const n = () => {
300
300
  if (t) {
301
- _n();
301
+ Mn();
302
302
  return;
303
303
  }
304
- t = !0, r && vn(), this.#l !== null && Ae(this.#l, () => {
305
- this.#l = null;
306
- }), this.#h(() => {
307
- this.#v();
304
+ t = !0, r && Pn(), this.#o !== null && Ee(this.#o, () => {
305
+ this.#o = null;
306
+ }), this.#v(() => {
307
+ this.#h();
308
308
  });
309
309
  };
310
310
  return {
@@ -312,40 +312,40 @@ var Sn = class {
312
312
  invoke_onerror: () => {
313
313
  try {
314
314
  r = !0, this.#r.onerror?.(e, n), r = !1;
315
- } catch (s) {
316
- te(s, this.#i && this.#i.parent);
315
+ } catch (a) {
316
+ re(a, this.#i && this.#i.parent);
317
317
  }
318
318
  }
319
319
  };
320
320
  }
321
- #$() {
321
+ #S() {
322
322
  const e = this.#r.pending;
323
- e && (this.is_pending = !0, this.#n = W(() => e(this.#e)), ne(() => {
324
- var t = this.#s = document.createDocumentFragment(), r = Z();
325
- t.append(r), this.#a = this.#h(() => W(() => this.#o(r))), this.#f === 0 && (this.#e.before(t), this.#s = null, Ae(this.#n, () => {
323
+ e && (this.is_pending = !0, this.#n = K(() => e(this.#e)), ie(() => {
324
+ var t = this.#a = document.createDocumentFragment(), r = Q();
325
+ t.append(r), this.#s = this.#v(() => K(() => this.#l(r))), this.#c === 0 && (this.#e.before(t), this.#a = null, Ee(this.#n, () => {
326
326
  this.#n = null;
327
- }), this.#y(y));
327
+ }), this.#m(m));
328
328
  }));
329
329
  }
330
- #v() {
330
+ #h() {
331
331
  try {
332
- if (this.is_pending = this.has_pending_snippet(), this.#f = 0, this.#_ = 0, this.#a = W(() => {
333
- this.#o(this.#e);
334
- }), this.#f > 0) {
335
- var e = this.#s = document.createDocumentFragment();
336
- kr(this.#a, e);
332
+ if (this.is_pending = this.has_pending_snippet(), this.#c = 0, this.#p = 0, this.#s = K(() => {
333
+ this.#l(this.#e);
334
+ }), this.#c > 0) {
335
+ var e = this.#a = document.createDocumentFragment();
336
+ Lr(this.#s, e);
337
337
  const t = this.#r.pending;
338
- this.#n = W(() => t(this.#e));
339
- } else this.#y(y);
338
+ this.#n = K(() => t(this.#e));
339
+ } else this.#m(m);
340
340
  } catch (t) {
341
341
  this.error(t);
342
342
  }
343
343
  }
344
- #y(e) {
345
- this.is_pending = !1, e.transfer_effects(this.#d, this.#p);
344
+ #m(e) {
345
+ this.is_pending = !1, e.transfer_effects(this.#d, this.#_);
346
346
  }
347
347
  defer_effect(e) {
348
- nr(e, this.#d, this.#p);
348
+ hr(e, this.#d, this.#_);
349
349
  }
350
350
  is_rendered() {
351
351
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
@@ -353,222 +353,222 @@ var Sn = class {
353
353
  has_pending_snippet() {
354
354
  return !!this.#r.pending;
355
355
  }
356
- #h(e) {
357
- var t = g, r = m, n = T;
358
- Y(this.#i), P(this.#i), pe(this.#i.ctx);
356
+ #v(e) {
357
+ var t = _, r = y, n = x;
358
+ V(this.#i), F(this.#i), ge(this.#i.ctx);
359
359
  try {
360
- return we.ensure(), e();
360
+ return be.ensure(), e();
361
361
  } catch (i) {
362
- return tr(i), null;
362
+ return fr(i), null;
363
363
  } finally {
364
- Y(t), P(r), pe(n);
364
+ V(t), F(r), ge(n);
365
365
  }
366
366
  }
367
- #k(e, t) {
367
+ #A(e, t) {
368
368
  if (!this.has_pending_snippet()) {
369
- this.parent && this.parent.#k(e, t);
369
+ this.parent && this.parent.#A(e, t);
370
370
  return;
371
371
  }
372
- this.#f += e, this.#f === 0 && (this.#y(t), this.#n && Ae(this.#n, () => {
372
+ this.#c += e, this.#c === 0 && (this.#m(t), this.#n && Ee(this.#n, () => {
373
373
  this.#n = null;
374
- }), this.#s && (this.#e.before(this.#s), this.#s = null));
374
+ }), this.#a && (this.#e.before(this.#a), this.#a = null));
375
375
  }
376
376
  update_pending_count(e, t) {
377
- this.#k(e, t), this.#_ += e, !(!this.#c || this.#u) && (this.#u = !0, ne(() => {
378
- this.#u = !1, this.#c && Xe(this.#c, this.#_);
377
+ this.#A(e, t), this.#p += e, !(!this.#f || this.#u) && (this.#u = !0, ie(() => {
378
+ this.#u = !1, this.#f && et(this.#f, this.#p);
379
379
  }));
380
380
  }
381
381
  get_effect_pending() {
382
- return this.#m(), _(this.#c);
382
+ return this.#y(), p(this.#f);
383
383
  }
384
384
  error(e) {
385
385
  if (!this.#r.onerror && !this.#r.failed) throw e;
386
- y?.is_fork ? (this.#a && y.skip_effect(this.#a), this.#n && y.skip_effect(this.#n), this.#l && y.skip_effect(this.#l), y.oncommit(() => {
387
- this.#E(e);
388
- })) : this.#E(e);
386
+ m?.is_fork ? (this.#s && m.skip_effect(this.#s), this.#n && m.skip_effect(this.#n), this.#o && m.skip_effect(this.#o), m.oncommit(() => {
387
+ this.#k(e);
388
+ })) : this.#k(e);
389
389
  }
390
- #E(e) {
391
- this.#a && (C(this.#a), this.#a = null), this.#n && (C(this.#n), this.#n = null), this.#l && (C(this.#l), this.#l = null), $ && (D(this.#t), pn(), D(Kt()));
390
+ #k(e) {
391
+ this.#s && (L(this.#s), this.#s = null), this.#n && (L(this.#n), this.#n = null), this.#o && (L(this.#o), this.#o = null), A && (z(this.#t), Cn(), z(ar()));
392
392
  let t = this.#r.failed;
393
393
  const r = (n) => {
394
- const { reset: i, invoke_onerror: s } = this.#b(n);
395
- s(), t && (this.#l = this.#h(() => {
394
+ const { reset: i, invoke_onerror: a } = this.#b(n);
395
+ a(), t && (this.#o = this.#v(() => {
396
396
  try {
397
- return W(() => {
398
- var l = g;
399
- l.b = this, l.f |= 128, t(this.#e, () => n, () => i);
397
+ return K(() => {
398
+ var o = _;
399
+ o.b = this, o.f |= 128, t(this.#e, () => n, () => i);
400
400
  });
401
- } catch (l) {
402
- return te(l, this.#i.parent), null;
401
+ } catch (o) {
402
+ return re(o, this.#i.parent), null;
403
403
  }
404
404
  }));
405
405
  };
406
- ne(() => {
406
+ ie(() => {
407
407
  var n;
408
408
  try {
409
409
  n = this.transform_error(e);
410
410
  } catch (i) {
411
- te(i, this.#i && this.#i.parent);
411
+ re(i, this.#i && this.#i.parent);
412
412
  return;
413
413
  }
414
- n !== null && typeof n == "object" && typeof n.then == "function" ? n.then(r, (i) => te(i, this.#i && this.#i.parent)) : r(n);
414
+ n !== null && typeof n == "object" && typeof n.then == "function" ? n.then(r, (i) => re(i, this.#i && this.#i.parent)) : r(n);
415
415
  });
416
416
  }
417
417
  };
418
- function An(e, t, r, n) {
419
- const i = Ce() ? qe : sr;
420
- var s = e.filter((u) => !u.settled), l = t.map(i);
421
- if (r.length === 0 && s.length === 0) {
422
- n(l);
418
+ function Bn(e, t, r, n) {
419
+ const i = Ie() ? Pe : pr;
420
+ var a = e.filter((l) => !l.settled), o = t.map(i);
421
+ if (r.length === 0 && a.length === 0) {
422
+ n(o);
423
423
  return;
424
424
  }
425
- var a = g, f = qn(), v = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((u) => u.promise)) : null;
426
- function p(u) {
427
- if ((a.f & 16384) === 0) {
428
- f();
425
+ var s = _, u = Vn(), v = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((l) => l.promise)) : null;
426
+ function g(l) {
427
+ if ((s.f & 16384) === 0) {
428
+ u();
429
429
  try {
430
- n([...l, ...u]);
430
+ n([...o, ...l]);
431
431
  } catch (d) {
432
- te(d, a);
432
+ re(d, s);
433
433
  }
434
- Ke();
434
+ Ze();
435
435
  }
436
436
  }
437
- var c = ir();
437
+ var f = vr();
438
438
  if (r.length === 0) {
439
- v.then(() => p([])).finally(c);
439
+ v.then(() => g([])).finally(f);
440
440
  return;
441
441
  }
442
- function o() {
443
- Promise.all(r.map((u) => /* @__PURE__ */ Mn(u))).then(p).catch((u) => te(u, a)).finally(c);
442
+ function c() {
443
+ Promise.all(r.map((l) => /* @__PURE__ */ Gn(l))).then(g).catch((l) => re(l, s)).finally(f);
444
444
  }
445
445
  v ? v.then(() => {
446
- f(), o(), Ke();
447
- }) : o();
446
+ u(), c(), Ze();
447
+ }) : c();
448
448
  }
449
- function qn() {
450
- var e = g, t = m, r = T, n = y;
449
+ function Vn() {
450
+ var e = _, t = y, r = x, n = m;
451
451
  if (0) var i;
452
- return function(l = !0) {
453
- Y(e), P(t), pe(r), l && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
452
+ return function(o = !0) {
453
+ V(e), F(t), ge(r), o && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
454
454
  };
455
455
  }
456
- function Ke(e = !0) {
457
- Y(null), P(null), pe(null), e && y?.deactivate();
456
+ function Ze(e = !0) {
457
+ V(null), F(null), ge(null), e && m?.deactivate();
458
458
  }
459
- function ir() {
460
- var e = g, t = e.b, r = y, n = !!t?.is_rendered();
459
+ function vr() {
460
+ var e = _, t = e.b, r = m, n = !!t?.is_rendered();
461
461
  return t?.update_pending_count(1, r), r.increment(n, e), () => {
462
462
  t?.update_pending_count(-1, r), r.decrement(n, e);
463
463
  };
464
464
  }
465
465
  // @__NO_SIDE_EFFECTS__
466
- function qe(e) {
467
- var t = 2 | H;
468
- return g !== null && (g.f |= me), {
469
- ctx: T,
466
+ function Pe(e) {
467
+ var t = 2 | D;
468
+ return _ !== null && (_.f |= we), {
469
+ ctx: x,
470
470
  deps: null,
471
471
  effects: null,
472
- equals: Zt,
472
+ equals: sr,
473
473
  f: t,
474
474
  fn: e,
475
475
  reactions: null,
476
476
  rv: 0,
477
- v: A,
477
+ v: E,
478
478
  wv: 0,
479
- parent: g,
479
+ parent: _,
480
480
  ac: null
481
481
  };
482
482
  }
483
- var ke = /* @__PURE__ */ Symbol("obsolete");
483
+ var Ae = /* @__PURE__ */ Symbol("obsolete");
484
484
  // @__NO_SIDE_EFFECTS__
485
- function Mn(e, t, r) {
486
- let n = g;
487
- n === null && rn();
488
- var i = void 0, s = Ie(A), l = !m, a = /* @__PURE__ */ new Set();
489
- return Kn(() => {
490
- var f = g, v = Ut();
485
+ function Gn(e, t, r) {
486
+ let n = _;
487
+ n === null && yn();
488
+ var i = void 0, a = De(E), o = !y, s = /* @__PURE__ */ new Set();
489
+ return fi(() => {
490
+ var u = _, v = rr();
491
491
  i = v.promise;
492
492
  try {
493
- Promise.resolve(e()).then(v.resolve, (u) => {
494
- u !== Re && v.reject(u);
495
- }).finally(Ke);
496
- } catch (u) {
497
- v.reject(u), Ke();
498
- }
499
- var p = y;
500
- if (l) {
501
- if ((f.f & 32768) !== 0) var c = ir();
502
- if (n.b?.is_rendered()) p.async_deriveds.get(f)?.reject(ke);
503
- else for (const u of a.values()) u.reject(ke);
504
- a.add(v), p.async_deriveds.set(f, v);
505
- }
506
- const o = (u, d = void 0) => {
507
- c?.(), a.delete(v), d !== ke && (p.activate(), d ? (s.f |= We, Xe(s, d)) : ((s.f & 8388608) !== 0 && (s.f ^= We), Xe(s, u)), p.deactivate());
493
+ Promise.resolve(e()).then(v.resolve, (l) => {
494
+ l !== Le && v.reject(l);
495
+ }).finally(Ze);
496
+ } catch (l) {
497
+ v.reject(l), Ze();
498
+ }
499
+ var g = m;
500
+ if (o) {
501
+ if ((u.f & 32768) !== 0) var f = vr();
502
+ if (n.b?.is_rendered()) g.async_deriveds.get(u)?.reject(Ae);
503
+ else for (const l of s.values()) l.reject(Ae);
504
+ s.add(v), g.async_deriveds.set(u, v);
505
+ }
506
+ const c = (l, d = void 0) => {
507
+ f?.(), s.delete(v), d !== Ae && (g.activate(), d ? (a.f |= Qe, et(a, d)) : ((a.f & 8388608) !== 0 && (a.f ^= Qe), et(a, l)), g.deactivate());
508
508
  };
509
- v.promise.then(o, (u) => o(null, u || "unknown"));
510
- }), Un(() => {
511
- for (const f of a) f.reject(ke);
512
- }), new Promise((f) => {
513
- function v(p) {
514
- function c() {
515
- p === i ? f(s) : v(i);
509
+ v.promise.then(c, (l) => c(null, l || "unknown"));
510
+ }), li(() => {
511
+ for (const u of s) u.reject(Ae);
512
+ }), new Promise((u) => {
513
+ function v(g) {
514
+ function f() {
515
+ g === i ? u(a) : v(i);
516
516
  }
517
- p.then(c, c);
517
+ g.then(f, f);
518
518
  }
519
519
  v(i);
520
520
  });
521
521
  }
522
522
  // @__NO_SIDE_EFFECTS__
523
- function be(e) {
524
- const t = /* @__PURE__ */ qe(e);
525
- return K || Er(t), t;
523
+ function te(e) {
524
+ const t = /* @__PURE__ */ Pe(e);
525
+ return J || Ir(t), t;
526
526
  }
527
527
  // @__NO_SIDE_EFFECTS__
528
- function sr(e) {
529
- const t = /* @__PURE__ */ qe(e);
530
- return t.equals = Xt, t;
528
+ function pr(e) {
529
+ const t = /* @__PURE__ */ Pe(e);
530
+ return t.equals = or, t;
531
531
  }
532
- function On(e) {
532
+ function Yn(e) {
533
533
  var t = e.effects;
534
534
  if (t !== null) {
535
535
  e.effects = null;
536
- for (var r = 0; r < t.length; r += 1) C(t[r]);
536
+ for (var r = 0; r < t.length; r += 1) L(t[r]);
537
537
  }
538
538
  }
539
- function gt(e) {
540
- var t, r = g, n = e.parent;
541
- if (!X && n !== null && e.v !== A && (n.f & 24576) !== 0)
542
- return hn(), e.v;
543
- Y(n);
539
+ function At(e) {
540
+ var t, r = _, n = e.parent;
541
+ if (!Z && n !== null && e.v !== E && (n.f & 24576) !== 0)
542
+ return Rn(), e.v;
543
+ V(n);
544
544
  try {
545
- e.f &= ~Oe, On(e), t = Ar(e);
545
+ e.f &= ~Ce, Yn(e), t = Or(e);
546
546
  } finally {
547
- Y(r);
547
+ V(r);
548
548
  }
549
549
  return t;
550
550
  }
551
- function ar(e) {
552
- var t = gt(e);
553
- if (!e.equals(t) && (e.wv = Tr(), (!y?.is_fork || e.deps === null) && (y !== null ? (y.capture(e, t, !0), st?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
554
- k(e, L);
551
+ function _r(e) {
552
+ var t = At(e);
553
+ if (!e.equals(t) && (e.wv = qr(), (!m?.is_fork || e.deps === null) && (m !== null ? (m.capture(e, t, !0), ft?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
554
+ $(e, O);
555
555
  return;
556
556
  }
557
- X || (M !== null ? ($t() || y?.is_fork) && M.set(e, t) : pt(e));
557
+ Z || (R !== null ? (Et() || m?.is_fork) && R.set(e, t) : St(e));
558
558
  }
559
- function Rn(e) {
559
+ function Wn(e) {
560
560
  if (e.effects !== null)
561
- for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && et(() => {
562
- t.ac.abort(Re), t.ac = null;
563
- }), t.fn !== null && (t.teardown = Gr), Me(t, 0), Et(t));
561
+ for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && nt(() => {
562
+ t.ac.abort(Le), t.ac = null;
563
+ }), t.fn !== null && (t.teardown = un), Re(t, 0), Rt(t));
564
564
  }
565
- function lr(e) {
565
+ function gr(e) {
566
566
  if (e.effects !== null)
567
567
  for (const t of e.effects) t.teardown && t.fn !== null && ye(t);
568
568
  }
569
- var Le = null, fe = null, y = null, st = null, M = null, at = null, Te = !1, tt = !1, de = null, Be = null, Ct = 0;
570
- var Cn = 1, we = class lt {
571
- id = Cn++;
569
+ var Fe = null, ue = null, m = null, ft = null, R = null, dt = null, Te = !1, at = !1, he = null, Be = null, Ht = 0;
570
+ var Kn = 1, be = class ht {
571
+ id = Kn++;
572
572
  #e = !1;
573
573
  linked = !0;
574
574
  #t = null;
@@ -576,23 +576,23 @@ var Cn = 1, we = class lt {
576
576
  async_deriveds = /* @__PURE__ */ new Map();
577
577
  current = /* @__PURE__ */ new Map();
578
578
  previous = /* @__PURE__ */ new Map();
579
- #o = /* @__PURE__ */ new Set();
579
+ #l = /* @__PURE__ */ new Set();
580
580
  #i = /* @__PURE__ */ new Set();
581
- #a = 0;
581
+ #s = 0;
582
582
  #n = /* @__PURE__ */ new Map();
583
- #l = null;
584
- #s = [];
585
- #_ = [];
586
- #f = /* @__PURE__ */ new Set();
583
+ #o = null;
584
+ #a = [];
585
+ #p = [];
586
+ #c = /* @__PURE__ */ new Set();
587
587
  #u = /* @__PURE__ */ new Set();
588
588
  #d = /* @__PURE__ */ new Map();
589
- #p = /* @__PURE__ */ new Set();
589
+ #_ = /* @__PURE__ */ new Set();
590
590
  is_fork = !1;
591
- #c = !1;
591
+ #f = !1;
592
592
  constructor() {
593
- fe === null ? Le = fe = this : (fe.#r = this, this.#t = fe), fe = this;
593
+ ue === null ? Fe = ue = this : (ue.#r = this, this.#t = ue), ue = this;
594
594
  }
595
- #m() {
595
+ #y() {
596
596
  if (this.is_fork) return !0;
597
597
  for (const n of this.#n.keys()) {
598
598
  for (var t = n, r = !1; t.parent !== null; ) {
@@ -610,74 +610,75 @@ var Cn = 1, we = class lt {
610
610
  this.#d.has(t) || this.#d.set(t, {
611
611
  d: [],
612
612
  m: []
613
- }), this.#p.delete(t);
613
+ }), this.#_.delete(t);
614
614
  }
615
615
  unskip_effect(t, r = (n) => this.schedule(n)) {
616
616
  var n = this.#d.get(t);
617
617
  if (n) {
618
618
  this.#d.delete(t);
619
619
  for (var i of n.d)
620
- k(i, H), r(i);
620
+ $(i, D), r(i);
621
621
  for (i of n.m)
622
- k(i, oe), r(i);
622
+ $(i, ce), r(i);
623
623
  }
624
- this.#p.add(t);
624
+ this.#_.add(t);
625
625
  }
626
626
  #g() {
627
- this.#e = !0, Ct++ > 1e3 && (this.#h(), In());
628
- for (const f of this.#f)
629
- this.#u.delete(f), k(f, H), this.schedule(f);
630
- for (const f of this.#u)
631
- k(f, oe), this.schedule(f);
632
- const t = this.#s;
633
- this.#s = [], this.apply();
634
- var r = de = [], n = [], i = Be = [];
635
- for (const f of t) try {
636
- this.#w(f, r, n);
627
+ this.#e = !0, Ht++ > 1e3 && (this.#v(), Jn());
628
+ for (const u of this.#c)
629
+ this.#u.delete(u), $(u, D), this.schedule(u);
630
+ for (const u of this.#u)
631
+ $(u, ce), this.schedule(u);
632
+ const t = this.#a;
633
+ this.#a = [], this.apply();
634
+ var r = he = [], n = [], i = Be = [];
635
+ for (const u of t) try {
636
+ this.#w(u, r, n);
637
637
  } catch (v) {
638
- throw ur(f), this.#m() || this.discard(), v;
638
+ throw wr(u), this.#y() || this.discard(), v;
639
639
  }
640
- if (y = null, i.length > 0) {
641
- var s = lt.ensure();
642
- for (const f of i) s.schedule(f);
640
+ if (m = null, i.length > 0) {
641
+ var a = ht.ensure();
642
+ for (const u of i) a.schedule(u);
643
643
  }
644
- if (de = null, Be = null, this.#m()) {
645
- this.#v(n), this.#v(r);
646
- for (const [f, v] of this.#d) fr(f, v);
647
- i.length > 0 && y.#g();
644
+ if (he = null, Be = null, this.#y()) {
645
+ this.#h(n), this.#h(r);
646
+ for (const [u, v] of this.#d) yr(u, v);
647
+ i.length > 0 && m.#g();
648
648
  return;
649
649
  }
650
- const l = this.#b();
651
- if (l) {
652
- this.#v(n), this.#v(r), l.#$(this);
650
+ const o = this.#b();
651
+ if (o) {
652
+ this.#h(n), this.#h(r), o.#S(this);
653
653
  return;
654
654
  }
655
- this.#f.clear(), this.#u.clear();
656
- for (const f of this.#o) f(this);
657
- this.#o.clear(), st = this, It(n), It(r), st = null, this.#l?.resolve();
658
- var a = y;
659
- if (this.#a === 0 && (this.#s.length === 0 || a !== null) && (this.#h(), K && (this.#y(), y = a)), this.#s.length > 0) if (a !== null) {
660
- const f = a;
661
- f.#s.push(...this.#s.filter((v) => !f.#s.includes(v)));
662
- } else a = this;
663
- a !== null && a.#g();
655
+ this.#c.clear(), this.#u.clear();
656
+ for (const u of this.#l) u(this);
657
+ this.#l.clear(), ft = this, Ut(n), Ut(r), ft = null, this.#o?.resolve();
658
+ var s = m;
659
+ if (this.#s === 0 && (this.#a.length === 0 || s !== null) && (this.#v(), J && (this.#m(), m = s)), this.#a.length > 0)
660
+ if (s !== null) {
661
+ const u = s;
662
+ u.#a.push(...this.#a.filter((v) => !u.#a.includes(v)));
663
+ } else s = this;
664
+ s !== null && s.#g();
664
665
  }
665
666
  #w(t, r, n) {
666
- t.f ^= L;
667
+ t.f ^= O;
667
668
  for (var i = t.first; i !== null; ) {
668
- var s = i.f, l = (s & 96) !== 0;
669
- if (!(l && (s & 1024) !== 0 || (s & 8192) !== 0 || this.#d.has(i)) && i.fn !== null) {
670
- l ? i.f ^= L : (s & 4) !== 0 ? r.push(i) : K && (s & 16777224) !== 0 ? n.push(i) : Ne(i) && ((s & 16) !== 0 && this.#u.add(i), ye(i));
671
- var a = i.first;
672
- if (a !== null) {
673
- i = a;
669
+ var a = i.f, o = (a & 96) !== 0;
670
+ if (!(o && (a & 1024) !== 0 || (a & 8192) !== 0 || this.#d.has(i)) && i.fn !== null) {
671
+ o ? i.f ^= O : (a & 4) !== 0 ? r.push(i) : J && (a & 16777224) !== 0 ? n.push(i) : qe(i) && ((a & 16) !== 0 && this.#u.add(i), ye(i));
672
+ var s = i.first;
673
+ if (s !== null) {
674
+ i = s;
674
675
  continue;
675
676
  }
676
677
  }
677
678
  for (; i !== null; ) {
678
- var f = i.next;
679
- if (f !== null) {
680
- i = f;
679
+ var u = i.next;
680
+ if (u !== null) {
681
+ i = u;
681
682
  break;
682
683
  }
683
684
  i = i.parent;
@@ -693,147 +694,147 @@ var Cn = 1, we = class lt {
693
694
  }
694
695
  return null;
695
696
  }
696
- #$(t) {
697
+ #S(t) {
697
698
  for (const [n, i] of t.current)
698
699
  !this.previous.has(n) && t.previous.has(n) && this.previous.set(n, t.previous.get(n)), this.current.set(n, i);
699
700
  for (const [n, i] of t.async_deriveds) {
700
- const s = this.async_deriveds.get(n);
701
- s && i.promise.then(s.resolve).catch(s.reject);
701
+ const a = this.async_deriveds.get(n);
702
+ a && i.promise.then(a.resolve).catch(a.reject);
702
703
  }
703
- t.async_deriveds.clear(), this.transfer_effects(t.#f, t.#u);
704
+ t.async_deriveds.clear(), this.transfer_effects(t.#c, t.#u);
704
705
  const r = (n) => {
705
706
  var i = n.reactions;
706
707
  if (i !== null && !((n.f & 2) !== 0 && (n.f & 6144) === 0))
707
- for (const a of i) {
708
- var s = a.f;
709
- if ((s & 2) !== 0) r(a);
708
+ for (const s of i) {
709
+ var a = s.f;
710
+ if ((a & 2) !== 0) r(s);
710
711
  else {
711
- var l = a;
712
- s & 4194320 && !this.async_deriveds.has(l) && (this.#u.delete(l), k(l, H), this.schedule(l));
712
+ var o = s;
713
+ a & 4194320 && !this.async_deriveds.has(o) && (this.#u.delete(o), $(o, D), this.schedule(o));
713
714
  }
714
715
  }
715
716
  };
716
717
  for (const n of this.current.keys()) r(n);
717
- this.oncommit(() => t.discard()), t.#h(), y = this, this.#g();
718
+ this.oncommit(() => t.discard()), t.#v(), m = this, this.#g();
718
719
  }
719
- #v(t) {
720
- for (var r = 0; r < t.length; r += 1) nr(t[r], this.#f, this.#u);
720
+ #h(t) {
721
+ for (var r = 0; r < t.length; r += 1) hr(t[r], this.#c, this.#u);
721
722
  }
722
723
  capture(t, r, n = !1) {
723
- t.v !== A && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [r, n]), M?.set(t, r)), this.is_fork || (t.v = r);
724
+ t.v !== E && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [r, n]), R?.set(t, r)), this.is_fork || (t.v = r);
724
725
  }
725
726
  activate() {
726
- y = this;
727
+ m = this;
727
728
  }
728
729
  deactivate() {
729
- y = null, M = null;
730
+ m = null, R = null;
730
731
  }
731
732
  flush() {
732
733
  try {
733
- tt = !0, y = this, this.#g();
734
+ at = !0, m = this, this.#g();
734
735
  } finally {
735
- Ct = 0, at = null, de = null, Be = null, tt = !1, y = null, M = null, ae.clear();
736
+ Ht = 0, dt = null, he = null, Be = null, at = !1, m = null, R = null, oe.clear();
736
737
  }
737
738
  }
738
739
  discard() {
739
740
  for (const t of this.#i) t(this);
740
741
  this.#i.clear();
741
- for (const t of this.async_deriveds.values()) t.reject(ke);
742
- this.#h(), this.#l?.resolve();
742
+ for (const t of this.async_deriveds.values()) t.reject(Ae);
743
+ this.#v(), this.#o?.resolve();
743
744
  }
744
745
  register_created_effect(t) {
745
- this.#_.push(t);
746
+ this.#p.push(t);
746
747
  }
747
- #y() {
748
- for (let c = Le; c !== null; c = c.#r) {
749
- var t = c.id < this.id, r = [];
750
- for (const [o, [u, d]] of this.current) {
751
- if (c.current.has(o)) {
752
- var n = c.current.get(o)[0];
753
- if (t && u !== n) c.current.set(o, [u, d]);
748
+ #m() {
749
+ for (let f = Fe; f !== null; f = f.#r) {
750
+ var t = f.id < this.id, r = [];
751
+ for (const [c, [l, d]] of this.current) {
752
+ if (f.current.has(c)) {
753
+ var n = f.current.get(c)[0];
754
+ if (t && l !== n) f.current.set(c, [l, d]);
754
755
  else continue;
755
756
  }
756
- r.push(o);
757
+ r.push(c);
757
758
  }
758
- if (t) for (const [o, u] of this.async_deriveds) {
759
- const d = c.async_deriveds.get(o);
760
- d && u.promise.then(d.resolve).catch(d.reject);
759
+ if (t) for (const [c, l] of this.async_deriveds) {
760
+ const d = f.async_deriveds.get(c);
761
+ d && l.promise.then(d.resolve).catch(d.reject);
761
762
  }
762
- var i = [...c.current.keys()].filter((o) => !c.current.get(o)[1]);
763
- if (!(!c.#e || i.length === 0)) {
764
- var s = i.filter((o) => !this.current.has(o));
765
- if (s.length === 0)
766
- t && c.discard();
763
+ var i = [...f.current.keys()].filter((c) => !f.current.get(c)[1]);
764
+ if (!(!f.#e || i.length === 0)) {
765
+ var a = i.filter((c) => !this.current.has(c));
766
+ if (a.length === 0)
767
+ t && f.discard();
767
768
  else if (r.length > 0) {
768
- if (t) for (const o of this.#p) c.unskip_effect(o, (u) => {
769
- (u.f & 4194320) !== 0 ? c.schedule(u) : c.#v([u]);
769
+ if (t) for (const c of this.#_) f.unskip_effect(c, (l) => {
770
+ (l.f & 4194320) !== 0 ? f.schedule(l) : f.#h([l]);
770
771
  });
771
- c.activate();
772
- var l = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
773
- for (var f of r) or(f, s, l, a);
774
- a = /* @__PURE__ */ new Map();
775
- var v = [...c.current].filter(([o, u]) => {
776
- const d = this.current.get(o);
777
- return d ? d[0] !== u[0] || d[1] !== u[1] : !0;
778
- }).map(([o]) => o);
772
+ f.activate();
773
+ var o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map();
774
+ for (var u of r) mr(u, a, o, s);
775
+ s = /* @__PURE__ */ new Map();
776
+ var v = [...f.current].filter(([c, l]) => {
777
+ const d = this.current.get(c);
778
+ return d ? d[0] !== l[0] || d[1] !== l[1] : !0;
779
+ }).map(([c]) => c);
779
780
  if (v.length > 0)
780
- for (const o of this.#_) (o.f & 155648) === 0 && yt(o, v, a) && ((o.f & 4194320) !== 0 ? (k(o, H), c.schedule(o)) : c.#f.add(o));
781
- if (c.#s.length > 0 && !c.#c) {
782
- c.apply();
783
- for (var p of c.#s) c.#w(p, [], []);
784
- c.#s = [];
781
+ for (const c of this.#p) (c.f & 155648) === 0 && kt(c, v, s) && ((c.f & 4194320) !== 0 ? ($(c, D), f.schedule(c)) : f.#c.add(c));
782
+ if (f.#a.length > 0 && !f.#f) {
783
+ f.apply();
784
+ for (var g of f.#a) f.#w(g, [], []);
785
+ f.#a = [];
785
786
  }
786
- c.deactivate();
787
+ f.deactivate();
787
788
  }
788
789
  }
789
790
  }
790
791
  }
791
792
  increment(t, r) {
792
- if (this.#a += 1, t) {
793
+ if (this.#s += 1, t) {
793
794
  let n = this.#n.get(r) ?? 0;
794
795
  this.#n.set(r, n + 1);
795
796
  }
796
797
  }
797
798
  decrement(t, r) {
798
- if (this.#a -= 1, t) {
799
+ if (this.#s -= 1, t) {
799
800
  let n = this.#n.get(r) ?? 0;
800
801
  n === 1 ? this.#n.delete(r) : this.#n.set(r, n - 1);
801
802
  }
802
- this.#c || (this.#c = !0, ne(() => {
803
- this.#c = !1, this.linked && this.flush();
803
+ this.#f || (this.#f = !0, ie(() => {
804
+ this.#f = !1, this.linked && this.flush();
804
805
  }));
805
806
  }
806
807
  transfer_effects(t, r) {
807
- for (const n of t) this.#f.add(n);
808
+ for (const n of t) this.#c.add(n);
808
809
  for (const n of r) this.#u.add(n);
809
810
  t.clear(), r.clear();
810
811
  }
811
812
  oncommit(t) {
812
- this.#o.add(t);
813
+ this.#l.add(t);
813
814
  }
814
815
  ondiscard(t) {
815
816
  this.#i.add(t);
816
817
  }
817
818
  settled() {
818
- return (this.#l ??= Ut()).promise;
819
+ return (this.#o ??= rr()).promise;
819
820
  }
820
821
  static ensure() {
821
- if (y === null) {
822
- const t = y = new lt();
823
- !tt && !Te && ne(() => {
822
+ if (m === null) {
823
+ const t = m = new ht();
824
+ !at && !Te && ie(() => {
824
825
  t.#e || t.flush();
825
826
  });
826
827
  }
827
- return y;
828
+ return m;
828
829
  }
829
830
  apply() {
830
- if (!K || !this.is_fork && this.#t === null && this.#r === null) {
831
- M = null;
831
+ if (!J || !this.is_fork && this.#t === null && this.#r === null) {
832
+ R = null;
832
833
  return;
833
834
  }
834
- M = /* @__PURE__ */ new Map();
835
- for (const [r, [n]] of this.current) M.set(r, n);
836
- for (let r = Le; r !== null; r = r.#r)
835
+ R = /* @__PURE__ */ new Map();
836
+ for (const [r, [n]] of this.current) R.set(r, n);
837
+ for (let r = Fe; r !== null; r = r.#r)
837
838
  if (!(r === this || r.is_fork)) {
838
839
  var t = !1;
839
840
  if (r.id < this.id) {
@@ -844,123 +845,123 @@ var Cn = 1, we = class lt {
844
845
  }
845
846
  }
846
847
  if (!t)
847
- for (const [n, i] of r.previous) M.has(n) || M.set(n, i);
848
+ for (const [n, i] of r.previous) R.has(n) || R.set(n, i);
848
849
  }
849
850
  }
850
851
  schedule(t) {
851
- if (at = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
852
+ if (dt = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
852
853
  t.b.defer_effect(t);
853
854
  return;
854
855
  }
855
856
  for (var r = t; r.parent !== null; ) {
856
857
  r = r.parent;
857
858
  var n = r.f;
858
- if (de !== null && r === g && (K || (m === null || (m.f & 2) === 0) && !$n))
859
+ if (he !== null && r === _ && (J || (y === null || (y.f & 2) === 0) && !On))
859
860
  return;
860
861
  if ((n & 96) !== 0) {
861
862
  if ((n & 1024) === 0) return;
862
- r.f ^= L;
863
+ r.f ^= O;
863
864
  }
864
865
  }
865
- this.#s.push(r);
866
+ this.#a.push(r);
866
867
  }
867
- #h() {
868
+ #v() {
868
869
  if (this.linked) {
869
870
  var t = this.#t, r = this.#r;
870
- t === null ? Le = r : t.#r = r, r === null ? fe = t : r.#t = t, this.linked = !1;
871
+ t === null ? Fe = r : t.#r = r, r === null ? ue = t : r.#t = t, this.linked = !1;
871
872
  }
872
873
  }
873
874
  };
874
- function ue(e) {
875
+ function fe(e) {
875
876
  var t = Te;
876
877
  Te = !0;
877
878
  try {
878
879
  var r;
879
- for (e && (y !== null && !y.is_fork && y.flush(), r = e()); ; ) {
880
- if (wn(), y === null) return r;
881
- y.flush();
880
+ for (e && (m !== null && !m.is_fork && m.flush(), r = e()); ; ) {
881
+ if (qn(), m === null) return r;
882
+ m.flush();
882
883
  }
883
884
  } finally {
884
885
  Te = t;
885
886
  }
886
887
  }
887
- function In() {
888
+ function Jn() {
888
889
  if (0) {
889
890
  var e;
890
- for (const r of y.current.keys()) for (const [n, i] of r.updated ?? [])
891
+ for (const r of m.current.keys()) for (const [n, i] of r.updated ?? [])
891
892
  var t;
892
893
  }
893
894
  try {
894
- ln();
895
+ An();
895
896
  } catch (r) {
896
- te(r, at);
897
+ re(r, dt);
897
898
  }
898
899
  }
899
- var B = null;
900
- function It(e) {
900
+ var j = null;
901
+ function Ut(e) {
901
902
  var t = e.length;
902
903
  if (t !== 0) {
903
904
  for (var r = 0; r < t; ) {
904
905
  var n = e[r++];
905
- if ((n.f & 24576) === 0 && Ne(n) && (B = /* @__PURE__ */ new Set(), ye(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && wr(n), B?.size > 0)) {
906
- ae.clear();
907
- for (const i of B) {
906
+ if ((n.f & 24576) === 0 && qe(n) && (j = /* @__PURE__ */ new Set(), ye(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Rr(n), j?.size > 0)) {
907
+ oe.clear();
908
+ for (const i of j) {
908
909
  if ((i.f & 24576) !== 0) continue;
909
- const s = [i];
910
- let l = i.parent;
911
- for (; l !== null; )
912
- B.has(l) && (B.delete(l), s.push(l)), l = l.parent;
913
- for (let a = s.length - 1; a >= 0; a--) {
914
- const f = s[a];
915
- (f.f & 24576) === 0 && ye(f);
910
+ const a = [i];
911
+ let o = i.parent;
912
+ for (; o !== null; )
913
+ j.has(o) && (j.delete(o), a.push(o)), o = o.parent;
914
+ for (let s = a.length - 1; s >= 0; s--) {
915
+ const u = a[s];
916
+ (u.f & 24576) === 0 && ye(u);
916
917
  }
917
918
  }
918
- B.clear();
919
+ j.clear();
919
920
  }
920
921
  }
921
- B = null;
922
+ j = null;
922
923
  }
923
924
  }
924
- function or(e, t, r, n) {
925
+ function mr(e, t, r, n) {
925
926
  if (!r.has(e) && (r.add(e), e.reactions !== null))
926
927
  for (const i of e.reactions) {
927
- const s = i.f;
928
- (s & 2) !== 0 ? or(i, t, r, n) : (s & 4194320) !== 0 && (s & 2048) === 0 && yt(i, t, n) && (k(i, H), mt(i));
928
+ const a = i.f;
929
+ (a & 2) !== 0 ? mr(i, t, r, n) : (a & 4194320) !== 0 && (a & 2048) === 0 && kt(i, t, n) && ($(i, D), $t(i));
929
930
  }
930
931
  }
931
- function yt(e, t, r) {
932
+ function kt(e, t, r) {
932
933
  const n = r.get(e);
933
934
  if (n !== void 0) return n;
934
935
  if (e.deps !== null) for (const i of e.deps) {
935
- if (ze.call(t, i)) return !0;
936
- if ((i.f & 2) !== 0 && yt(i, t, r))
936
+ if (We.call(t, i)) return !0;
937
+ if ((i.f & 2) !== 0 && kt(i, t, r))
937
938
  return r.set(i, !0), !0;
938
939
  }
939
940
  return r.set(e, !1), !1;
940
941
  }
941
- function mt(e) {
942
- y.schedule(e);
942
+ function $t(e) {
943
+ m.schedule(e);
943
944
  }
944
- function fr(e, t) {
945
+ function yr(e, t) {
945
946
  if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
946
- (e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), k(e, L);
947
+ (e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), $(e, O);
947
948
  for (var r = e.first; r !== null; )
948
- fr(r, t), r = r.next;
949
+ yr(r, t), r = r.next;
949
950
  }
950
951
  }
951
- function ur(e) {
952
- k(e, L);
952
+ function wr(e) {
953
+ $(e, O);
953
954
  for (var t = e.first; t !== null; )
954
- ur(t), t = t.next;
955
+ wr(t), t = t.next;
955
956
  }
956
- var Ze = /* @__PURE__ */ new Set(), ae = /* @__PURE__ */ new Map();
957
- var cr = !1;
958
- function Ie(e, t) {
957
+ var Xe = /* @__PURE__ */ new Set(), oe = /* @__PURE__ */ new Map();
958
+ var br = !1;
959
+ function De(e, t) {
959
960
  var r = {
960
961
  f: 0,
961
962
  v: e,
962
963
  reactions: null,
963
- equals: Zt,
964
+ equals: sr,
964
965
  rv: 0,
965
966
  wv: 0
966
967
  };
@@ -968,271 +969,271 @@ function Ie(e, t) {
968
969
  }
969
970
  // @__NO_SIDE_EFFECTS__
970
971
  function N(e, t) {
971
- const r = Ie(e, t);
972
- return Er(r), r;
972
+ const r = De(e, t);
973
+ return Ir(r), r;
973
974
  }
974
975
  // @__NO_SIDE_EFFECTS__
975
- function Nn(e, t = !1, r = !0) {
976
- const n = Ie(e);
977
- return t || (n.equals = Xt), Qe && r && T !== null && T.l !== null && (T.l.s ??= []).push(n), n;
976
+ function Qn(e, t = !1, r = !0) {
977
+ const n = De(e);
978
+ return t || (n.equals = or), rt && r && x !== null && x.l !== null && (x.l.s ??= []).push(n), n;
978
979
  }
979
- function O(e, t, r = !1) {
980
- m !== null && (!V || (m.f & 131072) !== 0) && Ce() && (m.f & 4325394) !== 0 && (F === null || !F.has(e)) && dn();
980
+ function C(e, t, r = !1) {
981
+ y !== null && (!U || (y.f & 131072) !== 0) && Ie() && (y.f & 4325394) !== 0 && (B === null || !B.has(e)) && En();
981
982
  let n = r ? ve(t) : t;
982
- return Xe(e, n, Be);
983
+ return et(e, n, Be);
983
984
  }
984
- function Xe(e, t, r = null) {
985
+ function et(e, t, r = null) {
985
986
  if (!e.equals(t)) {
986
- ae.set(e, X ? t : e.v);
987
- var n = we.ensure();
987
+ oe.set(e, Z ? t : e.v);
988
+ var n = be.ensure();
988
989
  if (n.capture(e, t), (e.f & 2) !== 0) {
989
990
  const i = e;
990
- (e.f & 2048) !== 0 && gt(i), M === null && pt(i);
991
+ (e.f & 2048) !== 0 && At(i), R === null && St(i);
991
992
  }
992
- e.wv = Tr(), dr(e, H, r), Ce() && g !== null && (g.f & 1024) !== 0 && (g.f & 96) === 0 && (j === null ? ei([e]) : j.push(e)), !n.is_fork && Ze.size > 0 && !cr && Hn();
993
+ e.wv = qr(), Sr(e, D, r), Ie() && _ !== null && (_.f & 1024) !== 0 && (_.f & 96) === 0 && (q === null ? _i([e]) : q.push(e)), !n.is_fork && Xe.size > 0 && !br && Zn();
993
994
  }
994
995
  return t;
995
996
  }
996
- function Hn() {
997
- cr = !1;
998
- for (const e of Ze) {
999
- (e.f & 1024) !== 0 && k(e, oe);
997
+ function Zn() {
998
+ br = !1;
999
+ for (const e of Xe) {
1000
+ (e.f & 1024) !== 0 && $(e, ce);
1000
1001
  let t;
1001
1002
  try {
1002
- t = Ne(e);
1003
+ t = qe(e);
1003
1004
  } catch {
1004
1005
  t = !0;
1005
1006
  }
1006
1007
  t && ye(e);
1007
1008
  }
1008
- Ze.clear();
1009
+ Xe.clear();
1009
1010
  }
1010
- function Se(e) {
1011
- O(e, e.v + 1);
1011
+ function xe(e) {
1012
+ C(e, e.v + 1);
1012
1013
  }
1013
- function dr(e, t, r) {
1014
+ function Sr(e, t, r) {
1014
1015
  var n = e.reactions;
1015
1016
  if (n !== null)
1016
- for (var i = Ce(), s = n.length, l = 0; l < s; l++) {
1017
- var a = n[l], f = a.f;
1018
- if (!(!i && a === g)) {
1019
- var v = (f & H) === 0;
1020
- if (v && k(a, t), (f & 131072) !== 0) Ze.add(a);
1021
- else if ((f & 2) !== 0) {
1022
- var p = a;
1023
- M?.delete(p), (f & 65536) === 0 && (f & 512 && (g === null || (g.f & 2097152) === 0) && (a.f |= Oe), dr(p, oe, r));
1017
+ for (var i = Ie(), a = n.length, o = 0; o < a; o++) {
1018
+ var s = n[o], u = s.f;
1019
+ if (!(!i && s === _)) {
1020
+ var v = (u & D) === 0;
1021
+ if (v && $(s, t), (u & 131072) !== 0) Xe.add(s);
1022
+ else if ((u & 2) !== 0) {
1023
+ var g = s;
1024
+ R?.delete(g), (u & 65536) === 0 && (u & 512 && (_ === null || (_.f & 2097152) === 0) && (s.f |= Ce), Sr(g, ce, r));
1024
1025
  } else if (v) {
1025
- var c = a;
1026
- (f & 16) !== 0 && B !== null && B.add(c), r !== null ? r.push(c) : mt(c);
1026
+ var f = s;
1027
+ (u & 16) !== 0 && j !== null && j.add(f), r !== null ? r.push(f) : $t(f);
1027
1028
  }
1028
1029
  }
1029
1030
  }
1030
1031
  }
1031
- var jn = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
1032
+ var Xn = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
1032
1033
  function ve(e) {
1033
- if (typeof e != "object" || e === null || xe in e) return e;
1034
- const t = zt(e);
1035
- if (t !== zr && t !== Ur) return e;
1036
- var r = /* @__PURE__ */ new Map(), n = Dr(e), i = /* @__PURE__ */ N(0), s = null, l = le, a = (c) => {
1037
- if (le === l) return c();
1038
- var o = m, u = le;
1039
- P(null), Pt(l);
1040
- var d = c();
1041
- return P(o), Pt(u), d;
1034
+ if (typeof e != "object" || e === null || $e in e) return e;
1035
+ const t = tr(e);
1036
+ if (t !== ln && t !== cn) return e;
1037
+ var r = /* @__PURE__ */ new Map(), n = nn(e), i = /* @__PURE__ */ N(0), a = null, o = le, s = (f) => {
1038
+ if (le === o) return f();
1039
+ var c = y, l = le;
1040
+ F(null), Gt(o);
1041
+ var d = f();
1042
+ return F(c), Gt(l), d;
1042
1043
  };
1043
- n && r.set("length", /* @__PURE__ */ N(e.length, s));
1044
- var f = "";
1044
+ n && r.set("length", /* @__PURE__ */ N(e.length, a));
1045
+ var u = "";
1045
1046
  let v = !1;
1046
- function p(c) {
1047
+ function g(f) {
1047
1048
  if (!v) {
1048
- v = !0, f = c, Rt(i, `${f} version`);
1049
- for (const [o, u] of r) Rt(u, Ln(f, o));
1049
+ v = !0, u = f, Ft(i, `${u} version`);
1050
+ for (const [c, l] of r) Ft(l, ei(u, c));
1050
1051
  v = !1;
1051
1052
  }
1052
1053
  }
1053
1054
  return new Proxy(e, {
1054
- defineProperty(c, o, u) {
1055
- (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && un();
1056
- var d = r.get(o);
1057
- return d === void 0 ? a(() => {
1058
- var h = /* @__PURE__ */ N(u.value, s);
1059
- return r.set(o, h), h;
1060
- }) : O(d, u.value, !0), !0;
1055
+ defineProperty(f, c, l) {
1056
+ (!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && Tn();
1057
+ var d = r.get(c);
1058
+ return d === void 0 ? s(() => {
1059
+ var h = /* @__PURE__ */ N(l.value, a);
1060
+ return r.set(c, h), h;
1061
+ }) : C(d, l.value, !0), !0;
1061
1062
  },
1062
- deleteProperty(c, o) {
1063
- var u = r.get(o);
1064
- if (u === void 0) {
1065
- if (o in c) {
1066
- const d = a(() => /* @__PURE__ */ N(A, s));
1067
- r.set(o, d), Se(i);
1063
+ deleteProperty(f, c) {
1064
+ var l = r.get(c);
1065
+ if (l === void 0) {
1066
+ if (c in f) {
1067
+ const d = s(() => /* @__PURE__ */ N(E, a));
1068
+ r.set(c, d), xe(i);
1068
1069
  }
1069
1070
  } else
1070
- O(u, A), Se(i);
1071
+ C(l, E), xe(i);
1071
1072
  return !0;
1072
1073
  },
1073
- get(c, o, u) {
1074
- if (o === xe) return e;
1075
- var d = r.get(o), h = o in c;
1076
- if (d === void 0 && (!h || se(c, o)?.writable) && (d = a(() => {
1077
- var x = /* @__PURE__ */ N(ve(h ? c[o] : A), s);
1078
- return x;
1079
- }), r.set(o, d)), d !== void 0) {
1080
- var b = _(d);
1081
- return b === A ? void 0 : b;
1074
+ get(f, c, l) {
1075
+ if (c === $e) return e;
1076
+ var d = r.get(c), h = c in f;
1077
+ if (d === void 0 && (!h || se(f, c)?.writable) && (d = s(() => {
1078
+ var S = ve(h ? f[c] : E), P = /* @__PURE__ */ N(S, a);
1079
+ return P;
1080
+ }), r.set(c, d)), d !== void 0) {
1081
+ var w = p(d);
1082
+ return w === E ? void 0 : w;
1082
1083
  }
1083
- return Reflect.get(c, o, u);
1084
+ return Reflect.get(f, c, l);
1084
1085
  },
1085
- getOwnPropertyDescriptor(c, o) {
1086
- var u = Reflect.getOwnPropertyDescriptor(c, o);
1087
- if (u && "value" in u) {
1088
- var d = r.get(o);
1089
- d && (u.value = _(d));
1090
- } else if (u === void 0) {
1091
- var h = r.get(o), b = h?.v;
1092
- if (h !== void 0 && b !== A) return {
1086
+ getOwnPropertyDescriptor(f, c) {
1087
+ var l = Reflect.getOwnPropertyDescriptor(f, c);
1088
+ if (l && "value" in l) {
1089
+ var d = r.get(c);
1090
+ d && (l.value = p(d));
1091
+ } else if (l === void 0) {
1092
+ var h = r.get(c), w = h?.v;
1093
+ if (h !== void 0 && w !== E) return {
1093
1094
  enumerable: !0,
1094
1095
  configurable: !0,
1095
- value: b,
1096
+ value: w,
1096
1097
  writable: !0
1097
1098
  };
1098
1099
  }
1099
- return u;
1100
+ return l;
1100
1101
  },
1101
- has(c, o) {
1102
- if (o === xe) return !0;
1103
- var u = r.get(o), d = u !== void 0 && u.v !== A || Reflect.has(c, o);
1104
- return (u !== void 0 || g !== null && (!d || se(c, o)?.writable)) && (u === void 0 && (u = a(() => {
1105
- var h = /* @__PURE__ */ N(d ? ve(c[o]) : A, s);
1106
- return h;
1107
- }), r.set(o, u)), _(u) === A) ? !1 : d;
1102
+ has(f, c) {
1103
+ if (c === $e) return !0;
1104
+ var l = r.get(c), d = l !== void 0 && l.v !== E || Reflect.has(f, c);
1105
+ return (l !== void 0 || _ !== null && (!d || se(f, c)?.writable)) && (l === void 0 && (l = s(() => {
1106
+ var h = d ? ve(f[c]) : E, w = /* @__PURE__ */ N(h, a);
1107
+ return w;
1108
+ }), r.set(c, l)), p(l) === E) ? !1 : d;
1108
1109
  },
1109
- set(c, o, u, d) {
1110
- var h = r.get(o), b = o in c;
1111
- if (n && o === "length") for (var x = u; x < h.v; x += 1) {
1112
- var q = r.get(x + "");
1113
- q !== void 0 ? O(q, A) : x in c && (q = a(() => /* @__PURE__ */ N(A, s)), r.set(x + "", q));
1110
+ set(f, c, l, d) {
1111
+ var h = r.get(c), w = c in f;
1112
+ if (n && c === "length") for (var S = l; S < h.v; S += 1) {
1113
+ var P = r.get(S + "");
1114
+ P !== void 0 ? C(P, E) : S in f && (P = s(() => /* @__PURE__ */ N(E, a)), r.set(S + "", P));
1114
1115
  }
1115
1116
  if (h === void 0)
1116
- (!b || se(c, o)?.writable) && (h = a(() => /* @__PURE__ */ N(void 0, s)), O(h, ve(u)), r.set(o, h));
1117
+ (!w || se(f, c)?.writable) && (h = s(() => /* @__PURE__ */ N(void 0, a)), C(h, ve(l)), r.set(c, h));
1117
1118
  else {
1118
- b = h.v !== A;
1119
- var U = a(() => ve(u));
1120
- O(h, U);
1119
+ w = h.v !== E;
1120
+ var Y = s(() => ve(l));
1121
+ C(h, Y);
1121
1122
  }
1122
- var E = Reflect.getOwnPropertyDescriptor(c, o);
1123
- if (E?.set && E.set.call(d, u), !b) {
1124
- if (n && typeof o == "string") {
1125
- var G = r.get("length"), Q = Number(o);
1126
- Number.isInteger(Q) && Q >= G.v && O(G, Q + 1);
1123
+ var k = Reflect.getOwnPropertyDescriptor(f, c);
1124
+ if (k?.set && k.set.call(d, l), !w) {
1125
+ if (n && typeof c == "string") {
1126
+ var H = r.get("length"), W = Number(c);
1127
+ Number.isInteger(W) && W >= H.v && C(H, W + 1);
1127
1128
  }
1128
- Se(i);
1129
+ xe(i);
1129
1130
  }
1130
1131
  return !0;
1131
1132
  },
1132
- ownKeys(c) {
1133
- _(i);
1134
- var o = Reflect.ownKeys(c).filter((h) => {
1135
- var b = r.get(h);
1136
- return b === void 0 || b.v !== A;
1133
+ ownKeys(f) {
1134
+ p(i);
1135
+ var c = Reflect.ownKeys(f).filter((h) => {
1136
+ var w = r.get(h);
1137
+ return w === void 0 || w.v !== E;
1137
1138
  });
1138
- for (var [u, d] of r) d.v !== A && !(u in c) && o.push(u);
1139
- return o;
1139
+ for (var [l, d] of r) d.v !== E && !(l in f) && c.push(l);
1140
+ return c;
1140
1141
  },
1141
1142
  setPrototypeOf() {
1142
- cn();
1143
+ xn();
1143
1144
  }
1144
1145
  });
1145
1146
  }
1146
- function Ln(e, t) {
1147
- return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : jn.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
1147
+ function ei(e, t) {
1148
+ return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : Xn.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
1148
1149
  }
1149
- var Nt, Pn, vr, hr, _r;
1150
- function ot() {
1151
- if (Nt === void 0) {
1152
- Nt = window, Pn = document, vr = /Firefox/.test(navigator.userAgent);
1150
+ var zt, ti, Ar, kr, $r;
1151
+ function vt() {
1152
+ if (zt === void 0) {
1153
+ zt = window, ti = document, Ar = /Firefox/.test(navigator.userAgent);
1153
1154
  var e = Element.prototype, t = Node.prototype, r = Text.prototype;
1154
- hr = se(t, "firstChild").get, _r = se(t, "nextSibling").get, At(e) && (e[nt] = void 0, e[Wt] = null, e[en] = void 0, e.__e = void 0), At(r) && (r[it] = void 0);
1155
+ kr = se(t, "firstChild").get, $r = se(t, "nextSibling").get, Dt(e) && (e[ct] = void 0, e[ir] = null, e[gn] = void 0, e.__e = void 0), Dt(r) && (r[ut] = void 0);
1155
1156
  }
1156
1157
  }
1157
- function Z(e = "") {
1158
+ function Q(e = "") {
1158
1159
  return document.createTextNode(e);
1159
1160
  }
1160
1161
  // @__NO_SIDE_EFFECTS__
1161
- function ge(e) {
1162
- return hr.call(e);
1162
+ function me(e) {
1163
+ return kr.call(e);
1163
1164
  }
1164
1165
  // @__NO_SIDE_EFFECTS__
1165
- function J(e) {
1166
- return _r.call(e);
1166
+ function X(e) {
1167
+ return $r.call(e);
1167
1168
  }
1168
- function Ht(e, t) {
1169
- if (!$) return /* @__PURE__ */ ge(e);
1170
- var r = /* @__PURE__ */ ge(w);
1171
- if (r === null) r = w.appendChild(Z());
1169
+ function jt(e, t) {
1170
+ if (!A) return /* @__PURE__ */ me(e);
1171
+ var r = /* @__PURE__ */ me(b);
1172
+ if (r === null) r = b.appendChild(Q());
1172
1173
  else if (t && r.nodeType !== 3) {
1173
- var n = Z();
1174
- return r?.before(n), D(n), n;
1174
+ var n = Q();
1175
+ return r?.before(n), z(n), n;
1175
1176
  }
1176
- return t && bt(r), D(r), r;
1177
+ return t && xt(r), z(r), r;
1177
1178
  }
1178
- function Vn(e, t = !1) {
1179
- if (!$) {
1180
- var r = /* @__PURE__ */ ge(e);
1181
- return r instanceof Comment && r.data === "" ? /* @__PURE__ */ J(r) : r;
1179
+ function ri(e, t = !1) {
1180
+ if (!A) {
1181
+ var r = /* @__PURE__ */ me(e);
1182
+ return r instanceof Comment && r.data === "" ? /* @__PURE__ */ X(r) : r;
1182
1183
  }
1183
1184
  if (t) {
1184
- if (w?.nodeType !== 3) {
1185
- var n = Z();
1186
- return w?.before(n), D(n), n;
1185
+ if (b?.nodeType !== 3) {
1186
+ var n = Q();
1187
+ return b?.before(n), z(n), n;
1187
1188
  }
1188
- bt(w);
1189
+ xt(b);
1189
1190
  }
1190
- return w;
1191
+ return b;
1191
1192
  }
1192
- function Dn(e, t = 1, r = !1) {
1193
- let n = $ ? w : e;
1193
+ function ni(e, t = 1, r = !1) {
1194
+ let n = A ? b : e;
1194
1195
  for (var i; t--; )
1195
- i = n, n = /* @__PURE__ */ J(n);
1196
- if (!$) return n;
1196
+ i = n, n = /* @__PURE__ */ X(n);
1197
+ if (!A) return n;
1197
1198
  if (r) {
1198
1199
  if (n?.nodeType !== 3) {
1199
- var s = Z();
1200
- return n === null ? i?.after(s) : n.before(s), D(s), s;
1200
+ var a = Q();
1201
+ return n === null ? i?.after(a) : n.before(a), z(a), a;
1201
1202
  }
1202
- bt(n);
1203
+ xt(n);
1203
1204
  }
1204
- return D(n), n;
1205
+ return z(n), n;
1205
1206
  }
1206
- function Bn(e) {
1207
+ function ii(e) {
1207
1208
  e.textContent = "";
1208
1209
  }
1209
- function Fn() {
1210
- return !K || B !== null ? !1 : (g.f & vt) !== 0;
1210
+ function ai() {
1211
+ return !J || j !== null ? !1 : (_.f & yt) !== 0;
1211
1212
  }
1212
- function wt(e, t, r) {
1213
+ function Tt(e, t, r) {
1213
1214
  return t == null || t === "http://www.w3.org/1999/xhtml" ? r ? document.createElement(e, { is: r }) : document.createElement(e) : r ? document.createElementNS(t, e, { is: r }) : document.createElementNS(t, e);
1214
1215
  }
1215
- function bt(e) {
1216
+ function xt(e) {
1216
1217
  if (e.nodeValue.length < 65536) return;
1217
1218
  let t = e.nextSibling;
1218
1219
  for (; t !== null && t.nodeType === 3; )
1219
1220
  t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
1220
1221
  }
1221
- function Yn(e) {
1222
- g === null && (m === null && an(e), sn()), X && nn(e);
1222
+ function si(e) {
1223
+ _ === null && (y === null && Sn(e), bn()), Z && wn(e);
1223
1224
  }
1224
- function zn(e, t) {
1225
+ function oi(e, t) {
1225
1226
  var r = t.last;
1226
1227
  r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
1227
1228
  }
1228
- function z(e, t) {
1229
- var r = g;
1230
- r !== null && (r.f & 8192) !== 0 && (e |= dt);
1229
+ function G(e, t) {
1230
+ var r = _;
1231
+ r !== null && (r.f & 8192) !== 0 && (e |= mt);
1231
1232
  var n = {
1232
- ctx: T,
1233
+ ctx: x,
1233
1234
  deps: null,
1234
1235
  nodes: null,
1235
- f: e | H | 512,
1236
+ f: e | D | 512,
1236
1237
  first: null,
1237
1238
  fn: t,
1238
1239
  last: null,
@@ -1244,410 +1245,411 @@ function z(e, t) {
1244
1245
  wv: 0,
1245
1246
  ac: null
1246
1247
  };
1247
- y?.register_created_effect(n);
1248
+ m?.register_created_effect(n);
1248
1249
  var i = n;
1249
- if ((e & 4) !== 0) de !== null ? de.push(n) : we.ensure().schedule(n);
1250
+ if ((e & 4) !== 0)
1251
+ he !== null ? he.push(n) : be.ensure().schedule(n);
1250
1252
  else if (t !== null) {
1251
1253
  try {
1252
1254
  ye(n);
1253
- } catch (l) {
1254
- throw C(n), l;
1255
+ } catch (o) {
1256
+ throw L(n), o;
1255
1257
  }
1256
- i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |= ht));
1258
+ i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |= wt));
1257
1259
  }
1258
- if (i !== null && (i.parent = r, r !== null && zn(i, r), m !== null && (m.f & 2) !== 0 && (e & 64) === 0)) {
1259
- var s = m;
1260
- (s.effects ??= []).push(i);
1260
+ if (i !== null && (i.parent = r, r !== null && oi(i, r), y !== null && (y.f & 2) !== 0 && (e & 64) === 0)) {
1261
+ var a = y;
1262
+ (a.effects ??= []).push(i);
1261
1263
  }
1262
1264
  return n;
1263
1265
  }
1264
- function $t() {
1265
- return m !== null && !V;
1266
+ function Et() {
1267
+ return y !== null && !U;
1266
1268
  }
1267
- function Un(e) {
1268
- const t = z(8, null);
1269
- return k(t, L), t.teardown = e, t;
1269
+ function li(e) {
1270
+ const t = G(8, null);
1271
+ return $(t, O), t.teardown = e, t;
1270
1272
  }
1271
- function Pe(e) {
1272
- Yn("$effect");
1273
- var t = g.f;
1274
- if (!m && (t & 32) !== 0 && T !== null && !T.i) {
1275
- var r = T;
1273
+ function He(e) {
1274
+ si("$effect");
1275
+ var t = _.f;
1276
+ if (!y && (t & 32) !== 0 && x !== null && !x.i) {
1277
+ var r = x;
1276
1278
  (r.e ??= []).push(e);
1277
- } else return pr(e);
1279
+ } else return Tr(e);
1278
1280
  }
1279
- function pr(e) {
1280
- return z(4 | Zr, e);
1281
+ function Tr(e) {
1282
+ return G(4 | hn, e);
1281
1283
  }
1282
- function Gn(e) {
1283
- we.ensure();
1284
- const t = z(64 | me, e);
1284
+ function ci(e) {
1285
+ be.ensure();
1286
+ const t = G(64 | we, e);
1285
1287
  return () => {
1286
- C(t);
1288
+ L(t);
1287
1289
  };
1288
1290
  }
1289
- function Wn(e) {
1290
- we.ensure();
1291
- const t = z(64 | me, e);
1291
+ function ui(e) {
1292
+ be.ensure();
1293
+ const t = G(64 | we, e);
1292
1294
  return (r = {}) => new Promise((n) => {
1293
- r.outro ? Ae(t, () => {
1294
- C(t), n(void 0);
1295
- }) : (C(t), n(void 0));
1295
+ r.outro ? Ee(t, () => {
1296
+ L(t), n(void 0);
1297
+ }) : (L(t), n(void 0));
1296
1298
  });
1297
1299
  }
1298
- function gr(e) {
1299
- return z(4, e);
1300
+ function xr(e) {
1301
+ return G(4, e);
1300
1302
  }
1301
- function Kn(e) {
1302
- return z(Xr | me, e);
1303
+ function fi(e) {
1304
+ return G(vn | we, e);
1303
1305
  }
1304
- function kt(e, t = 0) {
1305
- return z(8 | t, e);
1306
+ function Pt(e, t = 0) {
1307
+ return G(8 | t, e);
1306
1308
  }
1307
- function Zn(e, t = [], r = [], n = []) {
1308
- An(n, t, r, (i) => {
1309
- z(8, () => {
1310
- e(...i.map(_));
1309
+ function di(e, t = [], r = [], n = []) {
1310
+ Bn(n, t, r, (i) => {
1311
+ G(8, () => {
1312
+ e(...i.map(p));
1311
1313
  });
1312
1314
  });
1313
1315
  }
1314
- function yr(e, t = 0) {
1315
- var r = z(16 | t, e);
1316
+ function Er(e, t = 0) {
1317
+ var r = G(16 | t, e);
1316
1318
  return r;
1317
1319
  }
1318
- function W(e) {
1319
- return z(32 | me, e);
1320
+ function K(e) {
1321
+ return G(32 | we, e);
1320
1322
  }
1321
- function mr(e) {
1323
+ function Pr(e) {
1322
1324
  var t = e.teardown;
1323
1325
  if (t !== null) {
1324
- const r = X, n = m;
1325
- Lt(!0), P(null);
1326
+ const r = Z, n = y;
1327
+ Vt(!0), F(null);
1326
1328
  try {
1327
1329
  t.call(null);
1328
1330
  } finally {
1329
- Lt(r), P(n);
1331
+ Vt(r), F(n);
1330
1332
  }
1331
1333
  }
1332
1334
  }
1333
- function Et(e, t = !1) {
1335
+ function Rt(e, t = !1) {
1334
1336
  var r = e.first;
1335
1337
  for (e.first = e.last = null; r !== null; ) {
1336
1338
  const i = r.ac;
1337
- i !== null && et(() => {
1338
- i.abort(Re);
1339
+ i !== null && nt(() => {
1340
+ i.abort(Le);
1339
1341
  });
1340
1342
  var n = r.next;
1341
- (r.f & 64) !== 0 ? r.parent = null : C(r, t), r = n;
1343
+ (r.f & 64) !== 0 ? r.parent = null : L(r, t), r = n;
1342
1344
  }
1343
1345
  }
1344
- function Xn(e) {
1346
+ function hi(e) {
1345
1347
  for (var t = e.first; t !== null; ) {
1346
1348
  var r = t.next;
1347
- (t.f & 32) === 0 && C(t), t = r;
1349
+ (t.f & 32) === 0 && L(t), t = r;
1348
1350
  }
1349
1351
  }
1350
- function C(e, t = !0) {
1352
+ function L(e, t = !0) {
1351
1353
  var r = !1;
1352
- (t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (Jn(e.nodes.start, e.nodes.end), r = !0), e.f |= qt, Et(e, t && !r), Me(e, 0);
1354
+ (t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (vi(e.nodes.start, e.nodes.end), r = !0), e.f |= qt, Rt(e, t && !r), Re(e, 0);
1353
1355
  var n = e.nodes && e.nodes.t;
1354
- if (n !== null) for (const s of n) s.stop();
1355
- mr(e), e.f ^= qt, e.f |= Kr;
1356
+ if (n !== null) for (const a of n) a.stop();
1357
+ Pr(e), e.f ^= qt, e.f |= dn;
1356
1358
  var i = e.parent;
1357
- i !== null && i.first !== null && wr(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1359
+ i !== null && i.first !== null && Rr(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1358
1360
  }
1359
- function Jn(e, t) {
1361
+ function vi(e, t) {
1360
1362
  for (; e !== null; ) {
1361
- var r = e === t ? null : /* @__PURE__ */ J(e);
1363
+ var r = e === t ? null : /* @__PURE__ */ X(e);
1362
1364
  e.remove(), e = r;
1363
1365
  }
1364
1366
  }
1365
- function wr(e) {
1367
+ function Rr(e) {
1366
1368
  var t = e.parent, r = e.prev, n = e.next;
1367
1369
  r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
1368
1370
  }
1369
- function Ae(e, t, r = !0) {
1371
+ function Ee(e, t, r = !0) {
1370
1372
  var n = [];
1371
- br(e, n, !0);
1373
+ Mr(e, n, !0);
1372
1374
  var i = () => {
1373
- r && C(e), t && t();
1374
- }, s = n.length;
1375
- if (s > 0) {
1376
- var l = () => --s || i();
1377
- for (var a of n) a.out(l);
1375
+ r && L(e), t && t();
1376
+ }, a = n.length;
1377
+ if (a > 0) {
1378
+ var o = () => --a || i();
1379
+ for (var s of n) s.out(o);
1378
1380
  } else i();
1379
1381
  }
1380
- function br(e, t, r) {
1382
+ function Mr(e, t, r) {
1381
1383
  if ((e.f & 8192) === 0) {
1382
- e.f ^= dt;
1384
+ e.f ^= mt;
1383
1385
  var n = e.nodes && e.nodes.t;
1384
1386
  if (n !== null)
1385
- for (const a of n) (a.is_global || r) && t.push(a);
1387
+ for (const s of n) (s.is_global || r) && t.push(s);
1386
1388
  for (var i = e.first; i !== null; ) {
1387
- var s = i.next;
1389
+ var a = i.next;
1388
1390
  if ((i.f & 64) === 0) {
1389
- var l = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
1390
- br(i, t, l ? r : !1);
1391
+ var o = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
1392
+ Mr(i, t, o ? r : !1);
1391
1393
  }
1392
- i = s;
1394
+ i = a;
1393
1395
  }
1394
1396
  }
1395
1397
  }
1396
- function jt(e) {
1397
- $r(e, !0);
1398
+ function Bt(e) {
1399
+ Cr(e, !0);
1398
1400
  }
1399
- function $r(e, t) {
1401
+ function Cr(e, t) {
1400
1402
  if ((e.f & 8192) !== 0) {
1401
- e.f ^= dt, (e.f & 1024) === 0 && (k(e, H), we.ensure().schedule(e));
1403
+ e.f ^= mt, (e.f & 1024) === 0 && ($(e, D), be.ensure().schedule(e));
1402
1404
  for (var r = e.first; r !== null; ) {
1403
1405
  var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
1404
- $r(r, i ? t : !1), r = n;
1406
+ Cr(r, i ? t : !1), r = n;
1405
1407
  }
1406
- var s = e.nodes && e.nodes.t;
1407
- if (s !== null)
1408
- for (const l of s) (l.is_global || t) && l.in();
1408
+ var a = e.nodes && e.nodes.t;
1409
+ if (a !== null)
1410
+ for (const o of a) (o.is_global || t) && o.in();
1409
1411
  }
1410
1412
  }
1411
- function kr(e, t) {
1413
+ function Lr(e, t) {
1412
1414
  if (e.nodes)
1413
1415
  for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
1414
- var i = r === n ? null : /* @__PURE__ */ J(r);
1416
+ var i = r === n ? null : /* @__PURE__ */ X(r);
1415
1417
  t.append(r), r = i;
1416
1418
  }
1417
1419
  }
1418
- var Qn = null, Fe = !1, X = !1;
1419
- function Lt(e) {
1420
- X = e;
1420
+ var pi = null, Ve = !1, Z = !1;
1421
+ function Vt(e) {
1422
+ Z = e;
1421
1423
  }
1422
- var m = null, V = !1;
1423
- function P(e) {
1424
- m = e;
1424
+ var y = null, U = !1;
1425
+ function F(e) {
1426
+ y = e;
1425
1427
  }
1426
- var g = null;
1427
- function Y(e) {
1428
- g = e;
1428
+ var _ = null;
1429
+ function V(e) {
1430
+ _ = e;
1429
1431
  }
1430
- var F = null;
1431
- function Er(e) {
1432
- m !== null && (!K || (m.f & 2) !== 0) && (F ??= /* @__PURE__ */ new Set()).add(e);
1432
+ var B = null;
1433
+ function Ir(e) {
1434
+ y !== null && (!J || (y.f & 2) !== 0) && (B ??= /* @__PURE__ */ new Set()).add(e);
1433
1435
  }
1434
- var R = null, I = 0, j = null;
1435
- function ei(e) {
1436
- j = e;
1436
+ var M = null, I = 0, q = null;
1437
+ function _i(e) {
1438
+ q = e;
1437
1439
  }
1438
- var xr = 1, ie = 0, le = ie;
1439
- function Pt(e) {
1440
+ var Dr = 1, ae = 0, le = ae;
1441
+ function Gt(e) {
1440
1442
  le = e;
1441
1443
  }
1442
- function Tr() {
1443
- return ++xr;
1444
+ function qr() {
1445
+ return ++Dr;
1444
1446
  }
1445
- function Ne(e) {
1447
+ function qe(e) {
1446
1448
  var t = e.f;
1447
1449
  if ((t & 2048) !== 0) return !0;
1448
- if (t & 2 && (e.f &= ~Oe), (t & 4096) !== 0) {
1450
+ if (t & 2 && (e.f &= ~Ce), (t & 4096) !== 0) {
1449
1451
  for (var r = e.deps, n = r.length, i = 0; i < n; i++) {
1450
- var s = r[i];
1451
- if (Ne(s) && ar(s), s.wv > e.wv) return !0;
1452
+ var a = r[i];
1453
+ if (qe(a) && _r(a), a.wv > e.wv) return !0;
1452
1454
  }
1453
- (t & 512) !== 0 && M === null && k(e, L);
1455
+ (t & 512) !== 0 && R === null && $(e, O);
1454
1456
  }
1455
1457
  return !1;
1456
1458
  }
1457
- function Sr(e, t, r = !0) {
1459
+ function Nr(e, t, r = !0) {
1458
1460
  var n = e.reactions;
1459
- if (n !== null && !(!K && F !== null && F.has(e)))
1461
+ if (n !== null && !(!J && B !== null && B.has(e)))
1460
1462
  for (var i = 0; i < n.length; i++) {
1461
- var s = n[i];
1462
- (s.f & 2) !== 0 ? Sr(s, t, !1) : t === s && (r ? k(s, H) : (s.f & 1024) !== 0 && k(s, oe), mt(s));
1463
+ var a = n[i];
1464
+ (a.f & 2) !== 0 ? Nr(a, t, !1) : t === a && (r ? $(a, D) : (a.f & 1024) !== 0 && $(a, ce), $t(a));
1463
1465
  }
1464
1466
  }
1465
- function Ar(e) {
1466
- var t = R, r = I, n = j, i = m, s = F, l = T, a = V, f = le, v = e.f;
1467
- R = null, I = 0, j = null, m = (v & 96) === 0 ? e : null, F = null, pe(e.ctx), V = !1, le = ++ie, e.ac !== null && (et(() => {
1468
- e.ac.abort(Re);
1467
+ function Or(e) {
1468
+ var t = M, r = I, n = q, i = y, a = B, o = x, s = U, u = le, v = e.f;
1469
+ M = null, I = 0, q = null, y = (v & 96) === 0 ? e : null, B = null, ge(e.ctx), U = !1, le = ++ae, e.ac !== null && (nt(() => {
1470
+ e.ac.abort(Le);
1469
1471
  }), e.ac = null);
1470
1472
  try {
1471
- e.f |= Mt;
1472
- var p = e.fn, c = p();
1473
- e.f |= vt;
1474
- var o = e.deps, u = y?.is_fork;
1475
- if (R !== null) {
1473
+ e.f |= Nt;
1474
+ var g = e.fn, f = g();
1475
+ e.f |= yt;
1476
+ var c = e.deps, l = m?.is_fork;
1477
+ if (M !== null) {
1476
1478
  var d;
1477
- if (u || Me(e, I), o !== null && I > 0)
1478
- for (o.length = I + R.length, d = 0; d < R.length; d++) o[I + d] = R[d];
1479
- else e.deps = o = R;
1480
- if ($t() && (e.f & 512) !== 0) for (d = I; d < o.length; d++) (o[d].reactions ??= []).push(e);
1481
- } else !u && o !== null && I < o.length && (Me(e, I), o.length = I);
1482
- if (Ce() && j !== null && !V && o !== null && (e.f & 6146) === 0) for (d = 0; d < j.length; d++) Sr(j[d], e);
1479
+ if (l || Re(e, I), c !== null && I > 0)
1480
+ for (c.length = I + M.length, d = 0; d < M.length; d++) c[I + d] = M[d];
1481
+ else e.deps = c = M;
1482
+ if (Et() && (e.f & 512) !== 0) for (d = I; d < c.length; d++) (c[d].reactions ??= []).push(e);
1483
+ } else !l && c !== null && I < c.length && (Re(e, I), c.length = I);
1484
+ if (Ie() && q !== null && !U && c !== null && (e.f & 6146) === 0) for (d = 0; d < q.length; d++) Nr(q[d], e);
1483
1485
  if (i !== null && i !== e) {
1484
- if (ie++, i.deps !== null) for (let h = 0; h < r; h += 1) i.deps[h].rv = ie;
1485
- if (t !== null) for (const h of t) h.rv = ie;
1486
- j !== null && (n === null ? n = j : n.push(...j));
1486
+ if (ae++, i.deps !== null) for (let h = 0; h < r; h += 1) i.deps[h].rv = ae;
1487
+ if (t !== null) for (const h of t) h.rv = ae;
1488
+ q !== null && (n === null ? n = q : n.push(...q));
1487
1489
  }
1488
- return (e.f & 8388608) !== 0 && (e.f ^= We), c;
1490
+ return (e.f & 8388608) !== 0 && (e.f ^= Qe), f;
1489
1491
  } catch (h) {
1490
- return tr(h);
1492
+ return fr(h);
1491
1493
  } finally {
1492
- e.f ^= Mt, R = t, I = r, j = n, m = i, F = s, pe(l), V = a, le = f;
1494
+ e.f ^= Nt, M = t, I = r, q = n, y = i, B = a, ge(o), U = s, le = u;
1493
1495
  }
1494
1496
  }
1495
- function ti(e, t) {
1497
+ function gi(e, t) {
1496
1498
  let r = t.reactions;
1497
1499
  if (r !== null) {
1498
- var n = Br.call(r, e);
1500
+ var n = an.call(r, e);
1499
1501
  if (n !== -1) {
1500
1502
  var i = r.length - 1;
1501
1503
  i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
1502
1504
  }
1503
1505
  }
1504
- if (r === null && (t.f & 2) !== 0 && (R === null || !ze.call(R, t))) {
1505
- var s = t;
1506
- (s.f & 512) !== 0 && (s.f ^= 512, s.f &= ~Oe), s.v !== A && pt(s), s.ac !== null && et(() => {
1507
- s.ac.abort(Re), s.ac = null, k(s, H);
1508
- }), Rn(s), Me(s, 0);
1506
+ if (r === null && (t.f & 2) !== 0 && (M === null || !We.call(M, t))) {
1507
+ var a = t;
1508
+ (a.f & 512) !== 0 && (a.f ^= 512, a.f &= ~Ce), a.v !== E && St(a), a.ac !== null && nt(() => {
1509
+ a.ac.abort(Le), a.ac = null, $(a, D);
1510
+ }), Wn(a), Re(a, 0);
1509
1511
  }
1510
1512
  }
1511
- function Me(e, t) {
1513
+ function Re(e, t) {
1512
1514
  var r = e.deps;
1513
1515
  if (r !== null)
1514
- for (var n = t; n < r.length; n++) ti(e, r[n]);
1516
+ for (var n = t; n < r.length; n++) gi(e, r[n]);
1515
1517
  }
1516
1518
  function ye(e) {
1517
1519
  var t = e.f;
1518
1520
  if ((t & 16384) === 0) {
1519
- k(e, L);
1520
- var r = g, n = Fe;
1521
- if (g = e, Fe = (t & 96) === 0, 0)
1522
- var i, s;
1521
+ $(e, O);
1522
+ var r = _, n = Ve;
1523
+ if (_ = e, Ve = (t & 96) === 0, 0)
1524
+ var i, a;
1523
1525
  try {
1524
- (t & 16777232) !== 0 ? Xn(e) : Et(e), mr(e);
1525
- var l = Ar(e);
1526
- if (e.teardown = typeof l == "function" ? l : null, e.wv = xr, 0)
1527
- for (var a of e.deps) ;
1526
+ (t & 16777232) !== 0 ? hi(e) : Rt(e), Pr(e);
1527
+ var o = Or(e);
1528
+ if (e.teardown = typeof o == "function" ? o : null, e.wv = Dr, 0)
1529
+ for (var s of e.deps) ;
1528
1530
  } finally {
1529
- Fe = n, g = r;
1531
+ Ve = n, _ = r;
1530
1532
  }
1531
1533
  }
1532
1534
  }
1533
- function _(e) {
1535
+ function p(e) {
1534
1536
  var t = (e.f & 2) !== 0;
1535
- if (Qn?.add(e), m !== null && !V && !(g !== null && (g.f & 16384) !== 0) && (F === null || !F.has(e))) {
1536
- var r = m.deps;
1537
- if ((m.f & 2097152) !== 0)
1538
- e.rv < ie && (e.rv = ie, R === null && r !== null && r[I] === e ? I++ : R === null ? R = [e] : R.push(e));
1537
+ if (pi?.add(e), y !== null && !U && !(_ !== null && (_.f & 16384) !== 0) && (B === null || !B.has(e))) {
1538
+ var r = y.deps;
1539
+ if ((y.f & 2097152) !== 0)
1540
+ e.rv < ae && (e.rv = ae, M === null && r !== null && r[I] === e ? I++ : M === null ? M = [e] : M.push(e));
1539
1541
  else {
1540
- m.deps ??= [], ze.call(m.deps, e) || m.deps.push(e);
1542
+ y.deps ??= [], We.call(y.deps, e) || y.deps.push(e);
1541
1543
  var n = e.reactions;
1542
- n === null ? e.reactions = [m] : ze.call(n, m) || n.push(m);
1544
+ n === null ? e.reactions = [y] : We.call(n, y) || n.push(y);
1543
1545
  }
1544
1546
  }
1545
1547
  if (0) {
1546
- if (!V && reactivity_loss_tracker && y === null && st === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
1548
+ if (!U && reactivity_loss_tracker && m === null && ft === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
1547
1549
  var i;
1548
- if (tracing_mode_flag && !V && tracing_expressions !== null && m !== null && tracing_expressions.reaction === m && !e.trace) {
1550
+ if (tracing_mode_flag && !U && tracing_expressions !== null && y !== null && tracing_expressions.reaction === y && !e.trace) {
1549
1551
  if (i)
1550
- var s, l;
1552
+ var a, o;
1551
1553
  }
1552
1554
  }
1553
- if (X && ae.has(e)) return ae.get(e);
1555
+ if (Z && oe.has(e)) return oe.get(e);
1554
1556
  if (t) {
1555
- var a = e;
1556
- if (X) {
1557
- var f = a.v;
1558
- return ((a.f & 1024) === 0 && a.reactions !== null || Mr(a)) && (f = gt(a)), ae.set(a, f), f;
1557
+ var s = e;
1558
+ if (Z) {
1559
+ var u = s.v;
1560
+ return ((s.f & 1024) === 0 && s.reactions !== null || Hr(s)) && (u = At(s)), oe.set(s, u), u;
1559
1561
  }
1560
- var v = (a.f & 512) === 0 && !V && m !== null && (Fe || (m.f & 512) !== 0), p = (a.f & vt) === 0;
1561
- Ne(a) && (v && (a.f |= 512), ar(a)), v && !p && (lr(a), qr(a));
1562
+ var v = (s.f & 512) === 0 && !U && y !== null && (Ve || (y.f & 512) !== 0), g = (s.f & yt) === 0;
1563
+ qe(s) && (v && (s.f |= 512), _r(s)), v && !g && (gr(s), Fr(s));
1562
1564
  }
1563
- if (M?.has(e)) return M.get(e);
1565
+ if (R?.has(e)) return R.get(e);
1564
1566
  if ((e.f & 8388608) !== 0) throw e.v;
1565
1567
  return e.v;
1566
1568
  }
1567
- function qr(e) {
1569
+ function Fr(e) {
1568
1570
  if (e.f |= 512, e.deps !== null)
1569
1571
  for (const t of e.deps)
1570
- (t.reactions ??= []).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (lr(t), qr(t));
1572
+ (t.reactions ??= []).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (gr(t), Fr(t));
1571
1573
  }
1572
- function Mr(e) {
1573
- if (e.v === A) return !0;
1574
+ function Hr(e) {
1575
+ if (e.v === E) return !0;
1574
1576
  if (e.deps === null) return !1;
1575
1577
  for (const t of e.deps)
1576
- if (ae.has(t) || (t.f & 2) !== 0 && Mr(t)) return !0;
1578
+ if (oe.has(t) || (t.f & 2) !== 0 && Hr(t)) return !0;
1577
1579
  return !1;
1578
1580
  }
1579
- function xt(e) {
1580
- var t = V;
1581
+ function Mt(e) {
1582
+ var t = U;
1581
1583
  try {
1582
- return V = !0, e();
1584
+ return U = !0, e();
1583
1585
  } finally {
1584
- V = t;
1586
+ U = t;
1585
1587
  }
1586
1588
  }
1587
- var Ee = /* @__PURE__ */ Symbol("events"), Or = /* @__PURE__ */ new Set(), ft = /* @__PURE__ */ new Set();
1588
- function ri(e, t, r) {
1589
- (t[Ee] ??= {})[e] = r;
1589
+ var ke = /* @__PURE__ */ Symbol("events"), Ur = /* @__PURE__ */ new Set(), pt = /* @__PURE__ */ new Set();
1590
+ function mi(e, t, r) {
1591
+ (t[ke] ??= {})[e] = r;
1590
1592
  }
1591
- function ni(e) {
1592
- for (var t = 0; t < e.length; t++) Or.add(e[t]);
1593
- for (var r of ft) r(e);
1593
+ function yi(e) {
1594
+ for (var t = 0; t < e.length; t++) Ur.add(e[t]);
1595
+ for (var r of pt) r(e);
1594
1596
  }
1595
- var Vt = null;
1596
- function Dt(e) {
1597
- var t = this, r = t.ownerDocument, n = e.type, i = e.composedPath?.() || [], s = i[0] || e.target;
1598
- Vt = e;
1599
- var l = 0, a = Vt === e && e[Ee];
1600
- if (a) {
1601
- var f = i.indexOf(a);
1602
- if (f !== -1 && (t === document || t === window)) {
1603
- e[Ee] = t;
1597
+ var Yt = null;
1598
+ function Wt(e) {
1599
+ var t = this, r = t.ownerDocument, n = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
1600
+ Yt = e;
1601
+ var o = 0, s = Yt === e && e[ke];
1602
+ if (s) {
1603
+ var u = i.indexOf(s);
1604
+ if (u !== -1 && (t === document || t === window)) {
1605
+ e[ke] = t;
1604
1606
  return;
1605
1607
  }
1606
1608
  var v = i.indexOf(t);
1607
1609
  if (v === -1) return;
1608
- f <= v && (l = f);
1610
+ u <= v && (o = u);
1609
1611
  }
1610
- if (s = i[l] || e.target, s !== t) {
1611
- Ge(e, "currentTarget", {
1612
+ if (a = i[o] || e.target, a !== t) {
1613
+ Je(e, "currentTarget", {
1612
1614
  configurable: !0,
1613
1615
  get() {
1614
- return s || r;
1616
+ return a || r;
1615
1617
  }
1616
1618
  });
1617
- var p = m, c = g;
1618
- P(null), Y(null);
1619
+ var g = y, f = _;
1620
+ F(null), V(null);
1619
1621
  try {
1620
- for (var o, u = []; s !== null && s !== t; ) {
1622
+ for (var c, l = []; a !== null && a !== t; ) {
1621
1623
  try {
1622
- var d = s[Ee]?.[n];
1623
- d != null && (!s.disabled || e.target === s) && d.call(s, e);
1624
+ var d = a[ke]?.[n];
1625
+ d != null && (!a.disabled || e.target === a) && d.call(a, e);
1624
1626
  } catch (h) {
1625
- o ? u.push(h) : o = h;
1627
+ c ? l.push(h) : c = h;
1626
1628
  }
1627
1629
  if (e.cancelBubble) break;
1628
- l++, s = l < i.length ? i[l] : null;
1630
+ o++, a = o < i.length ? i[o] : null;
1629
1631
  }
1630
- if (o) {
1631
- for (let h of u) queueMicrotask(() => {
1632
+ if (c) {
1633
+ for (let h of l) queueMicrotask(() => {
1632
1634
  throw h;
1633
1635
  });
1634
- throw o;
1636
+ throw c;
1635
1637
  }
1636
1638
  } finally {
1637
- e[Ee] = t, delete e.currentTarget, P(p), Y(c);
1639
+ e[ke] = t, delete e.currentTarget, F(g), V(f);
1638
1640
  }
1639
1641
  }
1640
1642
  }
1641
- var ii = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1642
- function si(e) {
1643
- return ii?.createHTML(e) ?? e;
1643
+ var wi = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1644
+ function bi(e) {
1645
+ return wi?.createHTML(e) ?? e;
1644
1646
  }
1645
- function ai(e) {
1646
- var t = wt("template");
1647
- return t.innerHTML = si(e.replaceAll("<!>", "<!---->")), t.content;
1647
+ function Si(e) {
1648
+ var t = Tt("template");
1649
+ return t.innerHTML = bi(e.replaceAll("<!>", "<!---->")), t.content;
1648
1650
  }
1649
- function he(e, t) {
1650
- var r = g;
1651
+ function pe(e, t) {
1652
+ var r = _;
1651
1653
  r.nodes === null && (r.nodes = {
1652
1654
  start: e,
1653
1655
  end: t,
@@ -1656,35 +1658,35 @@ function he(e, t) {
1656
1658
  });
1657
1659
  }
1658
1660
  // @__NO_SIDE_EFFECTS__
1659
- function li(e, t) {
1660
- var r = (t & 1) !== 0, n = (t & 2) !== 0, i, s = !e.startsWith("<!>");
1661
+ function Ai(e, t) {
1662
+ var r = (t & 1) !== 0, n = (t & 2) !== 0, i, a = !e.startsWith("<!>");
1661
1663
  return () => {
1662
- if ($)
1663
- return he(w, null), w;
1664
- i === void 0 && (i = ai(s ? e : "<!>" + e), r || (i = /* @__PURE__ */ ge(i)));
1665
- var l = n || vr ? document.importNode(i, !0) : i.cloneNode(!0);
1664
+ if (A)
1665
+ return pe(b, null), b;
1666
+ i === void 0 && (i = Si(a ? e : "<!>" + e), r || (i = /* @__PURE__ */ me(i)));
1667
+ var o = n || Ar ? document.importNode(i, !0) : i.cloneNode(!0);
1666
1668
  if (r) {
1667
- var a = /* @__PURE__ */ ge(l), f = l.lastChild;
1668
- he(a, f);
1669
- } else he(l, l);
1670
- return l;
1669
+ var s = /* @__PURE__ */ me(o), u = o.lastChild;
1670
+ pe(s, u);
1671
+ } else pe(o, o);
1672
+ return o;
1671
1673
  };
1672
1674
  }
1673
- function oi() {
1674
- if ($)
1675
- return he(w, null), w;
1676
- var e = document.createDocumentFragment(), t = document.createComment(""), r = Z();
1677
- return e.append(t, r), he(t, r), e;
1675
+ function ki() {
1676
+ if (A)
1677
+ return pe(b, null), b;
1678
+ var e = document.createDocumentFragment(), t = document.createComment(""), r = Q();
1679
+ return e.append(t, r), pe(t, r), e;
1678
1680
  }
1679
- function ut(e, t) {
1680
- if ($) {
1681
- var r = g;
1682
- ((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = w), _t();
1681
+ function _t(e, t) {
1682
+ if (A) {
1683
+ var r = _;
1684
+ ((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = b), bt();
1683
1685
  return;
1684
1686
  }
1685
1687
  e !== null && e.before(t);
1686
1688
  }
1687
- var fi = [
1689
+ var $i = [
1688
1690
  "allowfullscreen",
1689
1691
  "async",
1690
1692
  "autofocus",
@@ -1713,8 +1715,8 @@ var fi = [
1713
1715
  "defer",
1714
1716
  "disablepictureinpicture",
1715
1717
  "disableremoteplayback"
1716
- ], Pi = [
1717
- ...fi,
1718
+ ], ua = [
1719
+ ...$i,
1718
1720
  "formNoValidate",
1719
1721
  "isMap",
1720
1722
  "noModule",
@@ -1729,17 +1731,17 @@ var fi = [
1729
1731
  "allowFullscreen",
1730
1732
  "disablePictureInPicture",
1731
1733
  "disableRemotePlayback"
1732
- ], ui = ["touchstart", "touchmove"];
1733
- function ci(e) {
1734
- return ui.includes(e);
1734
+ ], Ti = ["touchstart", "touchmove"];
1735
+ function xi(e) {
1736
+ return Ti.includes(e);
1735
1737
  }
1736
- var di = [
1738
+ var Ei = [
1737
1739
  "$state",
1738
1740
  "$state.raw",
1739
1741
  "$derived",
1740
1742
  "$derived.by"
1741
- ], Vi = [
1742
- ...di,
1743
+ ], fa = [
1744
+ ...Ei,
1743
1745
  "$state.eager",
1744
1746
  "$state.snapshot",
1745
1747
  "$props",
@@ -1754,305 +1756,306 @@ var di = [
1754
1756
  "$inspect().with",
1755
1757
  "$inspect.trace",
1756
1758
  "$host"
1757
- ], Bt = !0;
1758
- function vi(e, t) {
1759
+ ], Kt = !0;
1760
+ function Pi(e, t) {
1759
1761
  var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
1760
- r !== (e[it] ??= e.nodeValue) && (e[it] = r, e.nodeValue = `${r}`);
1762
+ r !== (e[ut] ??= e.nodeValue) && (e[ut] = r, e.nodeValue = `${r}`);
1761
1763
  }
1762
- function Rr(e, t) {
1763
- return Cr(e, t);
1764
+ function zr(e, t) {
1765
+ return jr(e, t);
1764
1766
  }
1765
- function hi(e, t) {
1766
- ot(), t.intro = t.intro ?? !1;
1767
- const r = t.target, n = $, i = w;
1767
+ function Ri(e, t) {
1768
+ vt(), t.intro = t.intro ?? !1;
1769
+ const r = t.target, n = A, i = b;
1768
1770
  try {
1769
- for (var s = /* @__PURE__ */ ge(r); s && (s.nodeType !== 8 || s.data !== "["); ) s = /* @__PURE__ */ J(s);
1770
- if (!s) throw _e;
1771
- ce(!0), D(s);
1772
- const l = Cr(e, {
1771
+ for (var a = /* @__PURE__ */ me(r); a && (a.nodeType !== 8 || a.data !== "["); ) a = /* @__PURE__ */ X(a);
1772
+ if (!a) throw _e;
1773
+ de(!0), z(a);
1774
+ const o = jr(e, {
1773
1775
  ...t,
1774
- anchor: s
1776
+ anchor: a
1775
1777
  });
1776
- return ce(!1), l;
1777
- } catch (l) {
1778
- if (l instanceof Error && l.message.split(`
1779
- `).some((a) => a.startsWith("https://svelte.dev/e/"))) throw l;
1780
- return l !== _e && console.warn("Failed to hydrate: ", l), t.recover === !1 && on(), ot(), Bn(r), ce(!1), Rr(e, t);
1778
+ return de(!1), o;
1779
+ } catch (o) {
1780
+ if (o instanceof Error && o.message.split(`
1781
+ `).some((s) => s.startsWith("https://svelte.dev/e/"))) throw o;
1782
+ return o !== _e && console.warn("Failed to hydrate: ", o), t.recover === !1 && kn(), vt(), ii(r), de(!1), zr(e, t);
1781
1783
  } finally {
1782
- ce(n), D(i);
1783
- }
1784
- }
1785
- var Ve = /* @__PURE__ */ new Map();
1786
- function Cr(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: l = !0, transformError: a }) {
1787
- ot();
1788
- var f = void 0, v = Wn(() => {
1789
- var p = r ?? t.appendChild(Z());
1790
- Tn(p, { pending: () => {
1791
- } }, (u) => {
1792
- Jt({});
1793
- var d = T;
1794
- if (s && (d.c = s), i && (n.$$events = i), $ && he(u, null), Bt = l, f = e(u, n) || {}, Bt = !0, $ && (g.nodes.end = w, w === null || w.nodeType !== 8 || w.data !== "]"))
1795
- throw Je(), _e;
1796
- Qt();
1797
- }, a);
1798
- var c = /* @__PURE__ */ new Set(), o = (u) => {
1799
- for (var d = 0; d < u.length; d++) {
1800
- var h = u[d];
1801
- if (!c.has(h)) {
1802
- c.add(h);
1803
- var b = ci(h);
1804
- for (const U of [t, document]) {
1805
- var x = Ve.get(U);
1806
- x === void 0 && (x = /* @__PURE__ */ new Map(), Ve.set(U, x));
1807
- var q = x.get(h);
1808
- q === void 0 ? (U.addEventListener(h, Dt, { passive: b }), x.set(h, 1)) : x.set(h, q + 1);
1784
+ de(n), z(i);
1785
+ }
1786
+ }
1787
+ var Ue = /* @__PURE__ */ new Map();
1788
+ function jr(e, { target: t, anchor: r, props: n = {}, events: i, context: a, intro: o = !0, transformError: s }) {
1789
+ vt();
1790
+ var u = void 0, v = ui(() => {
1791
+ var g = r ?? t.appendChild(Q());
1792
+ zn(g, { pending: () => {
1793
+ } }, (l) => {
1794
+ lr({});
1795
+ var d = x;
1796
+ if (a && (d.c = a), i && (n.$$events = i), A && pe(l, null), Kt = o, u = e(l, n) || {}, Kt = !0, A && (_.nodes.end = b, b === null || b.nodeType !== 8 || b.data !== "]"))
1797
+ throw tt(), _e;
1798
+ cr();
1799
+ }, s);
1800
+ var f = /* @__PURE__ */ new Set(), c = (l) => {
1801
+ for (var d = 0; d < l.length; d++) {
1802
+ var h = l[d];
1803
+ if (!f.has(h)) {
1804
+ f.add(h);
1805
+ var w = xi(h);
1806
+ for (const Y of [t, document]) {
1807
+ var S = Ue.get(Y);
1808
+ S === void 0 && (S = /* @__PURE__ */ new Map(), Ue.set(Y, S));
1809
+ var P = S.get(h);
1810
+ P === void 0 ? (Y.addEventListener(h, Wt, { passive: w }), S.set(h, 1)) : S.set(h, P + 1);
1809
1811
  }
1810
1812
  }
1811
1813
  }
1812
1814
  };
1813
- return o(Fr(Or)), ft.add(o), () => {
1814
- for (var u of c) for (const b of [t, document]) {
1815
- var d = Ve.get(b), h = d.get(u);
1816
- --h == 0 ? (b.removeEventListener(u, Dt), d.delete(u), d.size === 0 && Ve.delete(b)) : d.set(u, h);
1815
+ return c(sn(Ur)), pt.add(c), () => {
1816
+ for (var l of f) for (const w of [t, document]) {
1817
+ var d = Ue.get(w), h = d.get(l);
1818
+ --h == 0 ? (w.removeEventListener(l, Wt), d.delete(l), d.size === 0 && Ue.delete(w)) : d.set(l, h);
1817
1819
  }
1818
- ft.delete(o), p !== r && p.parentNode?.removeChild(p);
1820
+ pt.delete(c), g !== r && g.parentNode?.removeChild(g);
1819
1821
  };
1820
1822
  });
1821
- return ct.set(f, v), f;
1823
+ return gt.set(u, v), u;
1822
1824
  }
1823
- var ct = /* @__PURE__ */ new WeakMap();
1824
- function _i(e, t) {
1825
- const r = ct.get(e);
1826
- return r ? (ct.delete(e), r(t)) : Promise.resolve();
1825
+ var gt = /* @__PURE__ */ new WeakMap();
1826
+ function Mi(e, t) {
1827
+ const r = gt.get(e);
1828
+ return r ? (gt.delete(e), r(t)) : Promise.resolve();
1827
1829
  }
1828
- var pi = class {
1830
+ var Ci = class {
1829
1831
  anchor;
1830
1832
  #e = /* @__PURE__ */ new Map();
1831
1833
  #t = /* @__PURE__ */ new Map();
1832
1834
  #r = /* @__PURE__ */ new Map();
1833
- #o = /* @__PURE__ */ new Set();
1835
+ #l = /* @__PURE__ */ new Set();
1834
1836
  #i = !0;
1835
1837
  constructor(e, t = !0) {
1836
1838
  this.anchor = e, this.#i = t;
1837
1839
  }
1838
- #a = (e) => {
1840
+ #s = (e) => {
1839
1841
  if (this.#e.has(e)) {
1840
1842
  var t = this.#e.get(e), r = this.#t.get(t);
1841
1843
  if (r)
1842
- jt(r), this.#o.delete(t);
1844
+ Bt(r), this.#l.delete(t);
1843
1845
  else {
1844
1846
  var n = this.#r.get(t);
1845
- n && (jt(n.effect), this.#t.set(t, n.effect), this.#r.delete(t), n.fragment.lastChild.remove(), this.anchor.before(n.fragment), r = n.effect);
1847
+ n && (Bt(n.effect), this.#t.set(t, n.effect), this.#r.delete(t), n.fragment.lastChild.remove(), this.anchor.before(n.fragment), r = n.effect);
1846
1848
  }
1847
- for (const [i, s] of this.#e) {
1849
+ for (const [i, a] of this.#e) {
1848
1850
  if (this.#e.delete(i), i === e) break;
1849
- const l = this.#r.get(s);
1850
- l && (C(l.effect), this.#r.delete(s));
1851
+ const o = this.#r.get(a);
1852
+ o && (L(o.effect), this.#r.delete(a));
1851
1853
  }
1852
- for (const [i, s] of this.#t) {
1853
- if (i === t || this.#o.has(i)) continue;
1854
- const l = () => {
1854
+ for (const [i, a] of this.#t) {
1855
+ if (i === t || this.#l.has(i)) continue;
1856
+ const o = () => {
1855
1857
  if (Array.from(this.#e.values()).includes(i)) {
1856
- var a = document.createDocumentFragment();
1857
- kr(s, a), a.append(Z()), this.#r.set(i, {
1858
- effect: s,
1859
- fragment: a
1858
+ var s = document.createDocumentFragment();
1859
+ Lr(a, s), s.append(Q()), this.#r.set(i, {
1860
+ effect: a,
1861
+ fragment: s
1860
1862
  });
1861
- } else C(s);
1862
- this.#o.delete(i), this.#t.delete(i);
1863
+ } else L(a);
1864
+ this.#l.delete(i), this.#t.delete(i);
1863
1865
  };
1864
- this.#i || !r ? (this.#o.add(i), Ae(s, l, !1)) : l();
1866
+ this.#i || !r ? (this.#l.add(i), Ee(a, o, !1)) : o();
1865
1867
  }
1866
1868
  }
1867
1869
  };
1868
1870
  #n = (e) => {
1869
1871
  this.#e.delete(e);
1870
1872
  const t = Array.from(this.#e.values());
1871
- for (const [r, n] of this.#r) t.includes(r) || (C(n.effect), this.#r.delete(r));
1873
+ for (const [r, n] of this.#r) t.includes(r) || (L(n.effect), this.#r.delete(r));
1872
1874
  };
1873
1875
  ensure(e, t) {
1874
- var r = y, n = Fn();
1875
- if (t && !this.#t.has(e) && !this.#r.has(e)) if (n) {
1876
- var i = document.createDocumentFragment(), s = Z();
1877
- i.append(s), this.#r.set(e, {
1878
- effect: W(() => t(s)),
1879
- fragment: i
1880
- });
1881
- } else this.#t.set(e, W(() => t(this.anchor)));
1876
+ var r = m, n = ai();
1877
+ if (t && !this.#t.has(e) && !this.#r.has(e))
1878
+ if (n) {
1879
+ var i = document.createDocumentFragment(), a = Q();
1880
+ i.append(a), this.#r.set(e, {
1881
+ effect: K(() => t(a)),
1882
+ fragment: i
1883
+ });
1884
+ } else this.#t.set(e, K(() => t(this.anchor)));
1882
1885
  if (this.#e.set(r, e), n) {
1883
- for (const [l, a] of this.#t) l === e ? r.unskip_effect(a) : r.skip_effect(a);
1884
- for (const [l, a] of this.#r) l === e ? r.unskip_effect(a.effect) : r.skip_effect(a.effect);
1885
- r.oncommit(this.#a), r.ondiscard(this.#n);
1886
+ for (const [o, s] of this.#t) o === e ? r.unskip_effect(s) : r.skip_effect(s);
1887
+ for (const [o, s] of this.#r) o === e ? r.unskip_effect(s.effect) : r.skip_effect(s.effect);
1888
+ r.oncommit(this.#s), r.ondiscard(this.#n);
1886
1889
  } else
1887
- $ && (this.anchor = w), this.#a(r);
1890
+ A && (this.anchor = b), this.#s(r);
1888
1891
  }
1889
1892
  };
1890
- function gi(e, t, r = !1) {
1893
+ function Li(e, t, r = !1) {
1891
1894
  var n;
1892
- $ && (n = w, _t());
1893
- var i = new pi(e), s = r ? ht : 0;
1894
- function l(a, f) {
1895
- if ($) {
1896
- var v = gn(n);
1897
- if (a !== parseInt(v.substring(1))) {
1898
- var p = Kt();
1899
- D(p), i.anchor = p, ce(!1), i.ensure(a, f), ce(!0);
1895
+ A && (n = b, bt());
1896
+ var i = new Ci(e), a = r ? wt : 0;
1897
+ function o(s, u) {
1898
+ if (A) {
1899
+ var v = Ln(n);
1900
+ if (s !== parseInt(v.substring(1))) {
1901
+ var g = ar();
1902
+ z(g), i.anchor = g, de(!1), i.ensure(s, u), de(!0);
1900
1903
  return;
1901
1904
  }
1902
1905
  }
1903
- i.ensure(a, f);
1906
+ i.ensure(s, u);
1904
1907
  }
1905
- yr(() => {
1906
- var a = !1;
1907
- t((f, v = 0) => {
1908
- a = !0, l(v, f);
1909
- }), a || l(-1, null);
1910
- }, s);
1908
+ Er(() => {
1909
+ var s = !1;
1910
+ t((u, v = 0) => {
1911
+ s = !0, o(v, u);
1912
+ }), s || o(-1, null);
1913
+ }, a);
1911
1914
  }
1912
- function yi(e, t) {
1913
- gr(() => {
1915
+ function Ii(e, t) {
1916
+ xr(() => {
1914
1917
  var r = e.getRootNode(), n = r.host ? r : r.head ?? r.ownerDocument.head;
1915
1918
  if (!n.querySelector("#" + t.hash)) {
1916
- const i = wt("style");
1919
+ const i = Tt("style");
1917
1920
  i.id = t.hash, i.textContent = t.code, n.appendChild(i);
1918
1921
  }
1919
1922
  });
1920
1923
  }
1921
- var Ft = [...`
1924
+ var Jt = [...`
1922
1925
  \r\f \v\uFEFF`];
1923
- function mi(e, t, r) {
1926
+ function Di(e, t, r) {
1924
1927
  var n = e == null ? "" : "" + e;
1925
1928
  if (t && (n = n ? n + " " + t : t), r) {
1926
1929
  for (var i of Object.keys(r)) if (r[i]) n = n ? n + " " + i : i;
1927
1930
  else if (n.length)
1928
- for (var s = i.length, l = 0; (l = n.indexOf(i, l)) >= 0; ) {
1929
- var a = l + s;
1930
- (l === 0 || Ft.includes(n[l - 1])) && (a === n.length || Ft.includes(n[a])) ? n = (l === 0 ? "" : n.substring(0, l)) + n.substring(a + 1) : l = a;
1931
+ for (var a = i.length, o = 0; (o = n.indexOf(i, o)) >= 0; ) {
1932
+ var s = o + a;
1933
+ (o === 0 || Jt.includes(n[o - 1])) && (s === n.length || Jt.includes(n[s])) ? n = (o === 0 ? "" : n.substring(0, o)) + n.substring(s + 1) : o = s;
1931
1934
  }
1932
1935
  }
1933
1936
  return n === "" ? null : n;
1934
1937
  }
1935
- function wi(e, t, r, n, i, s) {
1936
- var l = e[nt];
1937
- if ($ || l !== r || l === void 0) {
1938
- var a = mi(r, n, s);
1939
- (!$ || a !== e.getAttribute("class")) && (a == null ? e.removeAttribute("class") : t ? e.className = a : e.setAttribute("class", a)), e[nt] = r;
1940
- } else if (s && i !== s) for (var f in s) {
1941
- var v = !!s[f];
1942
- (i == null || v !== !!i[f]) && e.classList.toggle(f, v);
1943
- }
1944
- return s;
1945
- }
1946
- var bi = /* @__PURE__ */ Symbol("is custom element"), $i = /* @__PURE__ */ Symbol("is html"), ki = tn ? "link" : "LINK";
1947
- function De(e, t, r, n) {
1948
- var i = Ei(e);
1949
- if ($ && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === ki)) {
1938
+ function qi(e, t, r, n, i, a) {
1939
+ var o = e[ct];
1940
+ if (A || o !== r || o === void 0) {
1941
+ var s = Di(r, n, a);
1942
+ (!A || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[ct] = r;
1943
+ } else if (a && i !== a) for (var u in a) {
1944
+ var v = !!a[u];
1945
+ (i == null || v !== !!i[u]) && e.classList.toggle(u, v);
1946
+ }
1947
+ return a;
1948
+ }
1949
+ var Ni = /* @__PURE__ */ Symbol("is custom element"), Oi = /* @__PURE__ */ Symbol("is html"), Fi = mn ? "link" : "LINK";
1950
+ function ze(e, t, r, n) {
1951
+ var i = Hi(e);
1952
+ if (A && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Fi)) {
1950
1953
  n || void 0;
1951
1954
  return;
1952
1955
  }
1953
- i[t] !== (i[t] = r) && (t === "loading" && (e[Jr] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && xi(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
1956
+ i[t] !== (i[t] = r) && (t === "loading" && (e[pn] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Ui(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
1954
1957
  }
1955
- function Ei(e) {
1956
- return e[Wt] ??= {
1957
- [bi]: e.nodeName.includes("-"),
1958
- [$i]: e.namespaceURI === Vr
1958
+ function Hi(e) {
1959
+ return e[ir] ??= {
1960
+ [Ni]: e.nodeName.includes("-"),
1961
+ [Oi]: e.namespaceURI === rn
1959
1962
  };
1960
1963
  }
1961
- var Yt = /* @__PURE__ */ new Map();
1962
- function xi(e) {
1963
- var t = e.getAttribute("is") || e.nodeName, r = Yt.get(t);
1964
+ var Qt = /* @__PURE__ */ new Map();
1965
+ function Ui(e) {
1966
+ var t = e.getAttribute("is") || e.nodeName, r = Qt.get(t);
1964
1967
  if (r) return r;
1965
- Yt.set(t, r = []);
1966
- for (var n, i = e, s = Element.prototype; s !== i; ) {
1967
- n = Yr(i);
1968
- for (var l in n) n[l].set && l !== "innerHTML" && l !== "textContent" && l !== "innerText" && r.push(l);
1969
- i = zt(i);
1968
+ Qt.set(t, r = []);
1969
+ for (var n, i = e, a = Element.prototype; a !== i; ) {
1970
+ n = on(i);
1971
+ for (var o in n) n[o].set && o !== "innerHTML" && o !== "textContent" && o !== "innerText" && r.push(o);
1972
+ i = tr(i);
1970
1973
  }
1971
1974
  return r;
1972
1975
  }
1973
- function rt(e, t) {
1974
- return e === t || e?.[xe] === t;
1976
+ function st(e, t) {
1977
+ return e === t || e?.[$e] === t;
1975
1978
  }
1976
- function Ti(e = {}, t, r, n) {
1977
- var i = T.r, s = g;
1978
- return gr(() => {
1979
- var l, a;
1980
- return kt(() => {
1981
- l = a, a = n?.() || [], xt(() => {
1982
- rt(r(...a), e) || (t(e, ...a), l && rt(r(...l), e) && t(null, ...l));
1979
+ function zi(e = {}, t, r, n) {
1980
+ var i = x.r, a = _;
1981
+ return xr(() => {
1982
+ var o, s;
1983
+ return Pt(() => {
1984
+ o = s, s = n?.() || [], Mt(() => {
1985
+ st(r(...s), e) || (t(e, ...s), o && st(r(...o), e) && t(null, ...o));
1983
1986
  });
1984
1987
  }), () => {
1985
- let f = s;
1986
- for (; f !== i && f.parent !== null && f.parent.f & 33554432; ) f = f.parent;
1988
+ let u = a;
1989
+ for (; u !== i && u.parent !== null && u.parent.f & 33554432; ) u = u.parent;
1987
1990
  const v = () => {
1988
- a && rt(r(...a), e) && t(null, ...a);
1989
- }, p = f.teardown;
1990
- f.teardown = () => {
1991
- v(), p?.();
1991
+ s && st(r(...s), e) && t(null, ...s);
1992
+ }, g = u.teardown;
1993
+ u.teardown = () => {
1994
+ v(), g?.();
1992
1995
  };
1993
1996
  };
1994
1997
  }), e;
1995
1998
  }
1996
- function $e(e, t, r, n) {
1997
- var i = !Qe || (r & 2) !== 0, s = (r & 8) !== 0, l = (r & 16) !== 0, a = n, f = !0, v = void 0, p = () => l && i ? (v ??= /* @__PURE__ */ qe(n), _(v)) : (f && (f = !1, a = l ? xt(n) : n), a);
1998
- let c;
1999
- if (s) {
2000
- var o = xe in e || Gt in e;
2001
- c = se(e, t)?.set ?? (o && t in e ? (E) => e[t] = E : void 0);
1999
+ function Se(e, t, r, n) {
2000
+ var i = !rt || (r & 2) !== 0, a = (r & 8) !== 0, o = (r & 16) !== 0, s = n, u = !0, v = void 0, g = () => o && i ? (v ??= /* @__PURE__ */ Pe(n), p(v)) : (u && (u = !1, s = o ? Mt(n) : n), s);
2001
+ let f;
2002
+ if (a) {
2003
+ var c = $e in e || nr in e;
2004
+ f = se(e, t)?.set ?? (c && t in e ? (k) => e[t] = k : void 0);
2002
2005
  }
2003
- var u, d = !1;
2004
- s ? [u, d] = kn(() => e[t]) : u = e[t], u === void 0 && n !== void 0 && (u = p(), c && (i && fn(t), c(u)));
2006
+ var l, d = !1;
2007
+ a ? [l, d] = Fn(() => e[t]) : l = e[t], l === void 0 && n !== void 0 && (l = g(), f && (i && $n(t), f(l)));
2005
2008
  var h;
2006
2009
  if (i ? h = () => {
2007
- var E = e[t];
2008
- return E === void 0 ? p() : (f = !0, E);
2010
+ var k = e[t];
2011
+ return k === void 0 ? g() : (u = !0, k);
2009
2012
  } : h = () => {
2010
- var E = e[t];
2011
- return E !== void 0 && (a = void 0), E === void 0 ? a : E;
2013
+ var k = e[t];
2014
+ return k !== void 0 && (s = void 0), k === void 0 ? s : k;
2012
2015
  }, i && (r & 4) === 0) return h;
2013
- if (c) {
2014
- var b = e.$$legacy;
2015
- return (function(E, G) {
2016
- return arguments.length > 0 ? ((!i || !G || b || d) && c(G ? h() : E), E) : h();
2016
+ if (f) {
2017
+ var w = e.$$legacy;
2018
+ return (function(k, H) {
2019
+ return arguments.length > 0 ? ((!i || !H || w || d) && f(H ? h() : k), k) : h();
2017
2020
  });
2018
2021
  }
2019
- var x = !1, q = ((r & 1) !== 0 ? qe : sr)(() => (x = !1, h()));
2020
- s && _(q);
2021
- var U = g;
2022
- return (function(E, G) {
2022
+ var S = !1, P = ((r & 1) !== 0 ? Pe : pr)(() => (S = !1, h()));
2023
+ a && p(P);
2024
+ var Y = _;
2025
+ return (function(k, H) {
2023
2026
  if (arguments.length > 0) {
2024
- const Q = G ? _(q) : i && s ? ve(E) : E;
2025
- return O(q, Q), x = !0, a !== void 0 && (a = Q), E;
2027
+ const W = H ? p(P) : i && a ? ve(k) : k;
2028
+ return C(P, W), S = !0, s !== void 0 && (s = W), k;
2026
2029
  }
2027
- return X && x || (U.f & 16384) !== 0 ? q.v : _(q);
2030
+ return Z && S || (Y.f & 16384) !== 0 ? P.v : p(P);
2028
2031
  });
2029
2032
  }
2030
- function Si(e) {
2031
- return new Ai(e);
2033
+ function ji(e) {
2034
+ return new Bi(e);
2032
2035
  }
2033
- var Ai = class {
2036
+ var Bi = class {
2034
2037
  #e;
2035
2038
  #t;
2036
2039
  constructor(e) {
2037
- var t = /* @__PURE__ */ new Map(), r = (i, s) => {
2038
- var l = /* @__PURE__ */ Nn(s, !1, !1);
2039
- return t.set(i, l), l;
2040
+ var t = /* @__PURE__ */ new Map(), r = (i, a) => {
2041
+ var o = /* @__PURE__ */ Qn(a, !1, !1);
2042
+ return t.set(i, o), o;
2040
2043
  };
2041
2044
  const n = new Proxy({
2042
2045
  ...e.props || {},
2043
2046
  $$events: {}
2044
2047
  }, {
2045
- get(i, s) {
2046
- return _(t.get(s) ?? r(s, Reflect.get(i, s)));
2048
+ get(i, a) {
2049
+ return p(t.get(a) ?? r(a, Reflect.get(i, a)));
2047
2050
  },
2048
- has(i, s) {
2049
- return s === Gt ? !0 : (_(t.get(s) ?? r(s, Reflect.get(i, s))), Reflect.has(i, s));
2051
+ has(i, a) {
2052
+ return a === nr ? !0 : (p(t.get(a) ?? r(a, Reflect.get(i, a))), Reflect.has(i, a));
2050
2053
  },
2051
- set(i, s, l) {
2052
- return O(t.get(s) ?? r(s, l), l), Reflect.set(i, s, l);
2054
+ set(i, a, o) {
2055
+ return C(t.get(a) ?? r(a, o), o), Reflect.set(i, a, o);
2053
2056
  }
2054
2057
  });
2055
- this.#t = (e.hydrate ? hi : Rr)(e.component, {
2058
+ this.#t = (e.hydrate ? Ri : zr)(e.component, {
2056
2059
  target: e.target,
2057
2060
  anchor: e.anchor,
2058
2061
  props: n,
@@ -2060,21 +2063,21 @@ var Ai = class {
2060
2063
  intro: e.intro ?? !1,
2061
2064
  recover: e.recover,
2062
2065
  transformError: e.transformError
2063
- }), !K && (!e?.props?.$$host || e.sync === !1) && ue(), this.#e = n.$$events;
2066
+ }), !J && (!e?.props?.$$host || e.sync === !1) && fe(), this.#e = n.$$events;
2064
2067
  for (const i of Object.keys(this.#t))
2065
- i === "$set" || i === "$destroy" || i === "$on" || Ge(this, i, {
2068
+ i === "$set" || i === "$destroy" || i === "$on" || Je(this, i, {
2066
2069
  get() {
2067
2070
  return this.#t[i];
2068
2071
  },
2069
- set(s) {
2070
- this.#t[i] = s;
2072
+ set(a) {
2073
+ this.#t[i] = a;
2071
2074
  },
2072
2075
  enumerable: !0
2073
2076
  });
2074
2077
  this.#t.$set = (i) => {
2075
2078
  Object.assign(n, i);
2076
2079
  }, this.#t.$destroy = () => {
2077
- _i(this.#t);
2080
+ Mi(this.#t);
2078
2081
  };
2079
2082
  }
2080
2083
  $set(e) {
@@ -2090,8 +2093,8 @@ var Ai = class {
2090
2093
  $destroy() {
2091
2094
  this.#t.$destroy();
2092
2095
  }
2093
- }, Ir;
2094
- typeof HTMLElement == "function" && (Ir = class extends HTMLElement {
2096
+ }, Br;
2097
+ typeof HTMLElement == "function" && (Br = class extends HTMLElement {
2095
2098
  $$ctor;
2096
2099
  $$s;
2097
2100
  $$c;
@@ -2123,19 +2126,19 @@ typeof HTMLElement == "function" && (Ir = class extends HTMLElement {
2123
2126
  if (this.$$cn = !0, !this.$$c) {
2124
2127
  let e = function(n) {
2125
2128
  return (i) => {
2126
- const s = wt("slot");
2127
- n !== "default" && (s.name = n), ut(i, s);
2129
+ const a = Tt("slot");
2130
+ n !== "default" && (a.name = n), _t(i, a);
2128
2131
  };
2129
2132
  };
2130
2133
  if (await Promise.resolve(), !this.$$cn || this.$$c) return;
2131
- const t = {}, r = qi(this);
2134
+ const t = {}, r = Vi(this);
2132
2135
  for (const n of this.$$s) n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
2133
2136
  for (const n of this.attributes) {
2134
2137
  const i = this.$$g_p(n.name);
2135
- i in this.$$d || (this.$$d[i] = Ye(i, n.value, this.$$p_d, "toProp"));
2138
+ i in this.$$d || (this.$$d[i] = Ge(i, n.value, this.$$p_d, "toProp"));
2136
2139
  }
2137
2140
  for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
2138
- this.$$c = Si({
2141
+ this.$$c = ji({
2139
2142
  component: this.$$ctor,
2140
2143
  target: this.$$shadowRoot || this,
2141
2144
  props: {
@@ -2143,27 +2146,27 @@ typeof HTMLElement == "function" && (Ir = class extends HTMLElement {
2143
2146
  $$slots: t,
2144
2147
  $$host: this
2145
2148
  }
2146
- }), this.$$me = Gn(() => {
2147
- kt(() => {
2149
+ }), this.$$me = ci(() => {
2150
+ Pt(() => {
2148
2151
  this.$$r = !0;
2149
- for (const n of Ue(this.$$c)) {
2152
+ for (const n of Ke(this.$$c)) {
2150
2153
  if (!this.$$p_d[n]?.reflect) continue;
2151
2154
  this.$$d[n] = this.$$c[n];
2152
- const i = Ye(n, this.$$d[n], this.$$p_d, "toAttribute");
2155
+ const i = Ge(n, this.$$d[n], this.$$p_d, "toAttribute");
2153
2156
  i == null ? this.removeAttribute(this.$$p_d[n].attribute || n) : this.setAttribute(this.$$p_d[n].attribute || n, i);
2154
2157
  }
2155
2158
  this.$$r = !1;
2156
2159
  });
2157
2160
  });
2158
2161
  for (const n in this.$$l) for (const i of this.$$l[n]) {
2159
- const s = this.$$c.$on(n, i);
2160
- this.$$l_u.set(i, s);
2162
+ const a = this.$$c.$on(n, i);
2163
+ this.$$l_u.set(i, a);
2161
2164
  }
2162
2165
  this.$$l = {};
2163
2166
  }
2164
2167
  }
2165
2168
  attributeChangedCallback(e, t, r) {
2166
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ye(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2169
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ge(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2167
2170
  }
2168
2171
  disconnectedCallback() {
2169
2172
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2171,10 +2174,10 @@ typeof HTMLElement == "function" && (Ir = class extends HTMLElement {
2171
2174
  });
2172
2175
  }
2173
2176
  $$g_p(e) {
2174
- return Ue(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2177
+ return Ke(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2175
2178
  }
2176
2179
  });
2177
- function Ye(e, t, r, n) {
2180
+ function Ge(e, t, r, n) {
2178
2181
  const i = r[e]?.type;
2179
2182
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e]) return t;
2180
2183
  if (n === "toAttribute") switch (i) {
@@ -2200,46 +2203,832 @@ function Ye(e, t, r, n) {
2200
2203
  return t;
2201
2204
  }
2202
2205
  }
2203
- function qi(e) {
2206
+ function Vi(e) {
2204
2207
  const t = {};
2205
2208
  return e.childNodes.forEach((r) => {
2206
2209
  t[r.slot || "default"] = !0;
2207
2210
  }), t;
2208
2211
  }
2209
- function Mi(e, t, r, n, i, s) {
2210
- let l = class extends Ir {
2212
+ function Gi(e, t, r, n, i, a) {
2213
+ let o = class extends Br {
2211
2214
  constructor() {
2212
2215
  super(e, r, i), this.$$p_d = t;
2213
2216
  }
2214
2217
  static get observedAttributes() {
2215
- return Ue(t).map((a) => (t[a].attribute || a).toLowerCase());
2218
+ return Ke(t).map((s) => (t[s].attribute || s).toLowerCase());
2216
2219
  }
2217
2220
  };
2218
- return Ue(t).forEach((a) => {
2219
- Ge(l.prototype, a, {
2221
+ return Ke(t).forEach((s) => {
2222
+ Je(o.prototype, s, {
2220
2223
  get() {
2221
- return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
2224
+ return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
2222
2225
  },
2223
- set(f) {
2224
- f = Ye(a, f, t), this.$$d[a] = f;
2226
+ set(u) {
2227
+ u = Ge(s, u, t), this.$$d[s] = u;
2225
2228
  var v = this.$$c;
2226
- v && (se(v, a)?.get ? v[a] = f : v.$set({ [a]: f }));
2229
+ v && (se(v, s)?.get ? v[s] = u : v.$set({ [s]: u }));
2227
2230
  }
2228
2231
  });
2229
- }), n.forEach((a) => {
2230
- Ge(l.prototype, a, { get() {
2231
- return this.$$c?.[a];
2232
+ }), n.forEach((s) => {
2233
+ Je(o.prototype, s, { get() {
2234
+ return this.$$c?.[s];
2232
2235
  } });
2233
- }), s && (l = s(l)), e.element = l, l;
2236
+ }), a && (o = a(o)), e.element = o, o;
2237
+ }
2238
+ function Me(e) {
2239
+ return e ? e.trim().replace(/_/g, "-").split(/[.@]/)[0].toLowerCase() : "";
2240
+ }
2241
+ function Yi(e) {
2242
+ const t = Me(e);
2243
+ if (!t) return [];
2244
+ const r = t.split("-"), n = [];
2245
+ for (let i = r.length; i > 0; i--) {
2246
+ const a = r.slice(0, i);
2247
+ a.length > 1 && a[a.length - 1].length === 1 || n.push(a.join("-"));
2248
+ }
2249
+ return n;
2234
2250
  }
2235
- var Oi = /* @__PURE__ */ li('<div class="pie-tool-calculator-inline svelte-qq14od"><button type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="pie-tool-calculator-inline__icon svelte-qq14od" aria-hidden="true"><path d="M7,2H17A2,2 0 0,1 19,4V20A2,2 0 0,1 17,22H7A2,2 0 0,1 5,20V4A2,2 0 0,1 7,2M7,4V8H17V4H7M7,10V12H9V10H7M11,10V12H13V10H11M15,10V12H17V10H15M7,14V16H9V14H7M11,14V16H13V14H11M15,14V16H17V14H15M7,18V20H9V18H7M11,18V20H13V18H11M15,18V20H17V18H15Z"></path></svg></button> <div class="pie-sr-only svelte-qq14od" role="status" aria-live="polite" aria-atomic="true"> </div></div>'), Ri = {
2251
+ function Wi(e, t) {
2252
+ for (const r of Yi(e)) {
2253
+ const n = t.find((i) => Me(i) === r);
2254
+ if (n != null) return n;
2255
+ }
2256
+ }
2257
+ var Ki = {
2258
+ common: {
2259
+ close: "Close",
2260
+ cancel: "Cancel",
2261
+ save: "Save",
2262
+ reset: "Reset",
2263
+ retry: "Retry",
2264
+ back: "Back",
2265
+ next: "Next",
2266
+ previous: "Previous",
2267
+ submit: "Submit",
2268
+ continue: "Continue",
2269
+ finish: "Finish",
2270
+ yes: "Yes",
2271
+ no: "No",
2272
+ ok: "OK",
2273
+ any: "Any",
2274
+ off: "Off",
2275
+ auto: "Auto",
2276
+ all: "All",
2277
+ none: "None",
2278
+ loading: "Loading…",
2279
+ error: "Error",
2280
+ settings: "Settings",
2281
+ language: "Language",
2282
+ theme: "Theme",
2283
+ preview: "Preview",
2284
+ author: "Author",
2285
+ unknown: "Unknown",
2286
+ untitled: "Untitled",
2287
+ apply: "Apply",
2288
+ enabled: "Enabled",
2289
+ disabled: "Disabled",
2290
+ closeA11y: "Close",
2291
+ settingsA11y: "Open settings menu"
2292
+ },
2293
+ player: {
2294
+ passage: "Passage",
2295
+ passages: "Passages",
2296
+ question: "Question",
2297
+ questionNumbered: "Question {position}",
2298
+ questions: "Questions",
2299
+ items: "Items",
2300
+ section: "Section",
2301
+ loadingSection: "Loading section content…",
2302
+ loadingPassage: "Loading passage content…",
2303
+ configurationError: "Configuration Error",
2304
+ playerError: "Player Error",
2305
+ authoringBackendError: "Authoring Backend Configuration Error",
2306
+ itemLoadError: "Question could not be loaded.",
2307
+ sectionTabsA11y: "Section content tabs",
2308
+ passagesRegionA11y: "Passages",
2309
+ itemsRegionA11y: "Items",
2310
+ sectionToolsA11y: "Section tools",
2311
+ scrollDownA11y: "Scroll down",
2312
+ resizePanels: "Resize panels",
2313
+ resizePassagesAndItemsA11y: "Resize passages and items panels",
2314
+ resizeMediaRegion: "Resize media region",
2315
+ resizeQuestionAndMediaA11y: "Resize question and media panels",
2316
+ resizePassageAndMediaA11y: "Resize passage and media panels",
2317
+ assessment: {
2318
+ sectionPosition: "Section {position} of {total}",
2319
+ noSections: "No sections"
2320
+ },
2321
+ formative: {
2322
+ checkAnswer: "Check answer",
2323
+ tryAgain: "Try again",
2324
+ answerRecorded: "Answer recorded.",
2325
+ correct: "Correct.",
2326
+ partlyCorrect: "Partly correct.",
2327
+ notCorrect: "Not correct.",
2328
+ notAutoScored: "Answer recorded. This question is not scored automatically.",
2329
+ checkFailed: "This question could not be checked. Try again.",
2330
+ triesLeft: {
2331
+ one: "{count} try left.",
2332
+ other: "{count} tries left."
2333
+ }
2334
+ },
2335
+ timedMedia: {
2336
+ waitingForMedia: "Questions will appear as the media plays.",
2337
+ questionAvailable: "Question {position} is now available.",
2338
+ playbackPaused: "Playback paused. Answer question {position} to continue.",
2339
+ playbackAdvisory: "Answer question {position} before continuing with the media.",
2340
+ playbackReleased: "Answer accepted. Continue playing the media."
2341
+ }
2342
+ },
2343
+ toolkit: {
2344
+ toolsA11y: "Assessment tools",
2345
+ toolbarInitError: "Unable to initialize assessment toolkit.",
2346
+ settingsTitle: "Settings",
2347
+ closeSettingsA11y: "Close settings",
2348
+ dragPanelA11y: "Drag panel",
2349
+ closePanelA11y: "Close panel",
2350
+ resizeWindow: "Resize window",
2351
+ minimize: "Minimize",
2352
+ maximize: "Maximize",
2353
+ minimizePanelA11y: "Minimize panel",
2354
+ maximizePanelA11y: "Maximize panel",
2355
+ window: {
2356
+ moveLeftA11y: "Move tool left",
2357
+ moveRightA11y: "Move tool right",
2358
+ moveUpA11y: "Move tool up",
2359
+ moveDownA11y: "Move tool down",
2360
+ shrinkA11y: "Shrink tool window",
2361
+ growA11y: "Grow tool window",
2362
+ centerA11y: "Center tool window",
2363
+ closeA11y: "Close tool"
2364
+ },
2365
+ announce: {
2366
+ movedUp: "Moved up to {position}",
2367
+ movedDown: "Moved down to {position}",
2368
+ movedLeft: "Moved left to {position}",
2369
+ movedRight: "Moved right to {position}",
2370
+ rotatedTo: "Rotated to {degrees} degrees"
2371
+ }
2372
+ },
2373
+ tools: {
2374
+ calculator: {
2375
+ name: "Calculator",
2376
+ nameBasic: "Basic Calculator",
2377
+ nameScientific: "Scientific Calculator",
2378
+ nameGraphing: "Graphing Calculator",
2379
+ description: "Multi-type calculator (basic, scientific, graphing)",
2380
+ openedBasic: "Basic calculator opened",
2381
+ openedScientific: "Scientific calculator opened",
2382
+ openedGraphing: "Graphing calculator opened",
2383
+ closedBasic: "Basic calculator closed",
2384
+ closedScientific: "Scientific calculator closed",
2385
+ closedGraphing: "Graphing calculator closed",
2386
+ toolA11y: "Calculator tool",
2387
+ loading: "Loading calculator…",
2388
+ providerUnavailable: "The calculator is unavailable."
2389
+ },
2390
+ graph: {
2391
+ name: "Graph",
2392
+ description: "Graphing calculator and coordinate plane",
2393
+ buttonA11y: "Graph, graphing calculator",
2394
+ tooltip: "Graph",
2395
+ toolA11y: "Graph tool — draw points and lines on a coordinate grid",
2396
+ canvasA11y: "Graph canvas — use tools to add points and draw lines",
2397
+ grid: "Grid:",
2398
+ gridOpacityA11y: "Grid opacity",
2399
+ pointA11y: "Graph point {id}",
2400
+ modeSelector: "Selector",
2401
+ modeSelectorHint: "Selector: click and drag points to move them or associated lines.",
2402
+ modePoint: "Point",
2403
+ modePointHint: "Point: click on the grid to add points.",
2404
+ modeLine: "Line",
2405
+ modeLineHint: "Line: click a starting point, then an ending point to draw a line.",
2406
+ modeDelete: "Delete",
2407
+ modeDeleteHint: "Delete: click on a point to delete it and any connected lines."
2408
+ },
2409
+ periodicTable: {
2410
+ name: "Periodic Table",
2411
+ description: "Chemistry periodic table reference",
2412
+ buttonA11y: "Periodic Table, chemistry reference",
2413
+ tooltip: "Periodic Table",
2414
+ toolA11y: "Periodic table — select an element to view its details",
2415
+ elementsA11y: "Periodic table elements",
2416
+ showAllA11y: "Show all elements",
2417
+ allElements: "All Elements",
2418
+ atomicMass: "Atomic Mass",
2419
+ atomicNumber: "Atomic No",
2420
+ electronConfig: "Electron Config",
2421
+ phase: "Phase",
2422
+ filterByA11y: "Filter by {category}",
2423
+ elementA11y: "{name}, Symbol: {symbol}, Atomic number: {number}, Atomic mass: {mass}, Category: {category}",
2424
+ outsideFilterA11y: ", outside the current filter",
2425
+ category: {
2426
+ unknown: "Unknown",
2427
+ alkaliMetal: "Alkali Metal",
2428
+ alkalineEarthMetal: "Alkaline Earth Metal",
2429
+ transitionMetal: "Transition Metal",
2430
+ postTransitionMetal: "Post-transition Metal",
2431
+ metalloid: "Metalloid",
2432
+ diatomicNonmetal: "Diatomic Nonmetal",
2433
+ polyatomicNonmetal: "Polyatomic Nonmetal",
2434
+ nobleGas: "Noble Gas",
2435
+ lanthanide: "Lanthanide",
2436
+ actinide: "Actinide"
2437
+ }
2438
+ },
2439
+ ruler: {
2440
+ name: "Ruler",
2441
+ description: "On-screen ruler for measurements",
2442
+ buttonA11y: "Ruler",
2443
+ tooltip: "Ruler",
2444
+ toolA11y: "Draggable and rotatable ruler measurement tool",
2445
+ unitSelectionA11y: "Ruler unit selection",
2446
+ inches: "Inches",
2447
+ centimeters: "Centimeters",
2448
+ inchesInSentence: "inches",
2449
+ centimetersInSentence: "centimeters",
2450
+ switchToInchesA11y: "Switch to inches",
2451
+ switchToCentimetersA11y: "Switch to centimeters",
2452
+ switchedTo: "Switched to {unit}",
2453
+ applicationA11y: "Ruler tool. Use arrow keys to move, Shift+arrows to rotate, PageUp or PageDown for fine rotation, U to toggle units. Current unit: {unit}",
2454
+ imageAlt: "Ruler showing {unit}"
2455
+ },
2456
+ protractor: {
2457
+ name: "Protractor",
2458
+ description: "On-screen protractor for angle measurements",
2459
+ buttonA11y: "Protractor",
2460
+ tooltip: "Protractor",
2461
+ toolA11y: "Protractor tool. Use arrow keys to move, Shift+arrows to rotate, and PageUp or PageDown for fine rotation.",
2462
+ roleA11y: "Draggable and rotatable protractor measurement tool",
2463
+ imageAlt: "Protractor with 180-degree semicircular scale marked from 0 to 180 degrees in both directions, with degree markings every 10 degrees"
2464
+ },
2465
+ dictionary: {
2466
+ name: "Dictionary",
2467
+ description: "Look up word definitions",
2468
+ buttonA11y: "Dictionary, look up word definitions",
2469
+ tooltip: "Dictionary",
2470
+ toolA11y: "Dictionary"
2471
+ },
2472
+ pictureDictionary: {
2473
+ name: "Picture Dictionary",
2474
+ description: "Look up pictures for words",
2475
+ buttonA11y: "Picture Dictionary, look up pictures for words",
2476
+ tooltip: "Picture Dictionary",
2477
+ toolA11y: "Picture Dictionary"
2478
+ },
2479
+ dictionarySpanish: {
2480
+ name: "Spanish Dictionary",
2481
+ description: "Look up word definitions in Spanish",
2482
+ buttonA11y: "Spanish Dictionary, look up word definitions in Spanish",
2483
+ tooltip: "Spanish Dictionary",
2484
+ toolA11y: "Spanish Dictionary"
2485
+ },
2486
+ pictureDictionarySpanish: {
2487
+ name: "Spanish Picture Dictionary",
2488
+ description: "Look up pictures for words in Spanish",
2489
+ buttonA11y: "Spanish Picture Dictionary, look up pictures for words in Spanish",
2490
+ tooltip: "Spanish Picture Dictionary",
2491
+ toolA11y: "Spanish Picture Dictionary"
2492
+ },
2493
+ lineReader: {
2494
+ name: "Line Reader",
2495
+ description: "Reading guide overlay",
2496
+ buttonA11y: "Line Reader, reading guide",
2497
+ tooltip: "Line Reader",
2498
+ roleA11y: "Draggable and resizable reading guide overlay",
2499
+ close: "Close line reader",
2500
+ resizeWindowA11y: "Drag to resize the reading window",
2501
+ resizeFrameA11y: "Drag to resize the frame and window width",
2502
+ windowHeightAnnounce: "Reading window height {pixels} pixels",
2503
+ frameHeightAnnounce: "Frame height {pixels} pixels",
2504
+ widthAnnounce: "Width {pixels} pixels",
2505
+ applicationA11y: "Line Reader tool. A clear reading window inside an obscuring frame. Use arrow keys to move, +/- to resize the reading window, Escape to close. Reading window height: {paneHeight} pixels, Frame height: {frameHeight} pixels",
2506
+ resizeWindowFullA11y: "Resize the reading window. Drag, or use the up and down arrow keys to change its height. Current height {paneHeight} pixels",
2507
+ resizeFrameFullA11y: "Resize the frame. Drag, or use the up and down arrow keys to change the frame height and the left and right arrow keys to change the width. Current frame height {frameHeight} pixels, width {width} pixels"
2508
+ },
2509
+ answerEliminator: {
2510
+ name: "Answer Eliminator",
2511
+ description: "Strike through answer choices",
2512
+ buttonA11y: "Strike Through, eliminate answer choices",
2513
+ tooltip: "Strike Through"
2514
+ },
2515
+ highlighter: {
2516
+ name: "Highlighter",
2517
+ description: "Highlight and annotate text",
2518
+ buttonA11y: "Highlight text",
2519
+ tooltip: "Highlight"
2520
+ },
2521
+ annotationToolbar: {
2522
+ name: "Annotation",
2523
+ description: "Highlight and annotate text",
2524
+ buttonA11y: "Annotate, highlight and mark up text",
2525
+ tooltip: "Annotate",
2526
+ toolbarA11y: "Text annotation toolbar",
2527
+ underline: "Underline",
2528
+ underlineA11y: "Underline selected text",
2529
+ readAloud: "Read Aloud",
2530
+ readAloudA11y: "Read selected text aloud",
2531
+ remove: "Remove",
2532
+ removeA11y: "Remove this annotation",
2533
+ clearAll: "Clear All",
2534
+ clearAllA11y: "Clear all annotations from document",
2535
+ highlightYellowA11y: "Yellow highlight",
2536
+ highlightPinkA11y: "Pink highlight",
2537
+ highlightBlueA11y: "Blue highlight",
2538
+ highlightGreenA11y: "Green highlight"
2539
+ },
2540
+ theme: {
2541
+ name: "Theme",
2542
+ description: "Accessible themes and contrast",
2543
+ buttonA11y: "Theme, change colors and contrast",
2544
+ tooltip: "Theme",
2545
+ selectorA11y: "Theme selector",
2546
+ hint: "Select a theme to improve readability and reduce eye strain.",
2547
+ selectA11y: "Select theme",
2548
+ selectCurrentA11y: "Select theme. Current theme: {name}",
2549
+ optionUnavailableA11y: "{name}, unavailable",
2550
+ unavailableName: "Unavailable theme: {id}",
2551
+ unavailableDescription: "PIE's managed base theme remains active until this theme becomes available again.",
2552
+ unavailableStatus: "The selected theme is unavailable. PIE's managed base theme is active until it becomes available again."
2553
+ },
2554
+ textToSpeech: {
2555
+ name: "Text to Speech",
2556
+ description: "Read content aloud",
2557
+ toolA11y: "Text-to-speech tool",
2558
+ title: "Text-to-Speech",
2559
+ initializing: "Initializing…",
2560
+ initFailed: "Failed to initialize text-to-speech.",
2561
+ selectText: "Select text on the page to read it aloud.",
2562
+ speed: "Speed:",
2563
+ play: "Play",
2564
+ pause: "Pause",
2565
+ resume: "Resume",
2566
+ stop: "Stop",
2567
+ speaking: "Speaking…",
2568
+ paused: "Paused",
2569
+ charactersSelected: {
2570
+ one: "{count} character selected",
2571
+ other: "{count} characters selected"
2572
+ },
2573
+ rate: {
2574
+ slow: "Slow",
2575
+ slower: "Slower",
2576
+ normal: "Normal",
2577
+ faster: "Faster",
2578
+ fast: "Fast",
2579
+ veryFast: "Very Fast"
2580
+ },
2581
+ inline: {
2582
+ controlsA11y: "Reading controls",
2583
+ playbackSpeedA11y: "Playback speed",
2584
+ rewindA11y: "Rewind",
2585
+ fastForwardA11y: "Fast-forward",
2586
+ stopA11y: "Stop reading",
2587
+ initializing: "Initializing text-to-speech",
2588
+ initFailed: "Unable to initialize text-to-speech. Try again.",
2589
+ starting: "Starting reading",
2590
+ started: "Reading started",
2591
+ resumed: "Reading resumed",
2592
+ pausedAnnouncement: "Reading paused",
2593
+ stopped: "Reading stopped",
2594
+ switchedSection: "Reading switched to another section",
2595
+ startFailed: "Unable to start reading",
2596
+ skippedForward: "Skipped forward",
2597
+ skipForwardFailed: "Unable to skip forward",
2598
+ skippedBackward: "Skipped backward",
2599
+ skipBackwardFailed: "Unable to skip backward",
2600
+ speedChangeFailed: "Unable to change playback speed",
2601
+ speedAnnounce: "Playback speed {label}",
2602
+ playA11y: "Play reading",
2603
+ pauseA11y: "Pause reading",
2604
+ resumeA11y: "Resume reading"
2605
+ }
2606
+ },
2607
+ signLanguage: {
2608
+ name: "Sign Language",
2609
+ description: "Signed alternate for authored content",
2610
+ generic: "Sign language",
2611
+ unknown: "Sign language ({code})",
2612
+ ase: "American Sign Language",
2613
+ bfi: "British Sign Language",
2614
+ fsl: "French Sign Language",
2615
+ gss: "Greek Sign Language",
2616
+ mfs: "Mexican Sign Language",
2617
+ signedEnglish: "Signed English",
2618
+ regionA11y: "{language} translation"
2619
+ },
2620
+ audioTranscript: {
2621
+ name: "Audio Transcript",
2622
+ description: "Text transcript of audio content",
2623
+ regionA11y: "Transcript"
2624
+ }
2625
+ },
2626
+ debug: {
2627
+ session: "Session",
2628
+ sessionData: "Session Data",
2629
+ sessionDataPersistent: "PIE Session Data (Persistent)",
2630
+ noItemSessionYet: "No item session data yet. Interact with the item to see updates here.",
2631
+ itemSessionsSnapshot: "Item Sessions Snapshot",
2632
+ sectionControllerUnavailable: "Section controller not available for this section yet.",
2633
+ filteredModel: "Filtered Model",
2634
+ environment: "Environment",
2635
+ events: "Events",
2636
+ controllerEvents: "Controller Events",
2637
+ instrumentation: "Instrumentation",
2638
+ databaseState: "Database state",
2639
+ sessionDb: "Session DB (Server)",
2640
+ noRows: "No rows",
2641
+ noRecords: "No instrumentation records yet.",
2642
+ selectRecord: "Select a record to inspect details.",
2643
+ selectEvent: "Select an event to inspect payload details.",
2644
+ showRawTables: "Show raw tables",
2645
+ showReconstructedSnapshots: "Show reconstructed snapshots",
2646
+ showSectionRequest: "Show section request",
2647
+ showAssessmentRequest: "Show assessment request",
2648
+ liveUpdatesUnsupported: "Live updates are not supported in this browser",
2649
+ liveUpdatesDisconnected: "Live updates disconnected; retrying…",
2650
+ fieldType: "Type:",
2651
+ fieldTarget: "Target:",
2652
+ fieldItem: "Item:",
2653
+ fieldCanonical: "Canonical:",
2654
+ fieldIntent: "Intent:",
2655
+ fieldDuplicates: "Duplicates:",
2656
+ fieldSemanticRepeats: "Semantic Repeats:",
2657
+ dragItemSessionPanelA11y: "Drag item session panel",
2658
+ debuggerTabsA11y: "Debugger tabs",
2659
+ sessionDataJsonA11y: "Session data JSON",
2660
+ environmentJsonA11y: "Environment JSON",
2661
+ filteredModelJsonA11y: "Filtered model JSON",
2662
+ sectionSessionJsonA11y: "Section session snapshot JSON",
2663
+ eventLevelFilterA11y: "Event level filter",
2664
+ controllerEventDetailsA11y: "Controller event details",
2665
+ instrumentationFilterA11y: "Filter instrumentation record type",
2666
+ instrumentationDetailsA11y: "Instrumentation record details",
2667
+ toggleSessionPanelA11y: "Toggle session panel",
2668
+ toggleEventPanelA11y: "Toggle event broadcast panel",
2669
+ toggleDatabasePanelA11y: "Toggle database state panel",
2670
+ toggleInstrumentationPanelA11y: "Toggle instrumentation panel",
2671
+ pnp: {
2672
+ title: "PNP Profile",
2673
+ noAssessmentBound: "No assessment bound",
2674
+ determinationReadOnly: "Determination (read-only)",
2675
+ toolsEditor: "Tools Editor",
2676
+ enforcement: "PNP enforcement",
2677
+ allAvailableTools: "All available tools",
2678
+ clearPlacement: "Clear placement",
2679
+ tool: "Tool",
2680
+ placement: "Placement",
2681
+ provider: "Provider",
2682
+ simulation: "PNP simulation",
2683
+ resolvedTools: "Resolved Tools (toolkit)",
2684
+ provenanceSummary: "Tool Policy Provenance Summary",
2685
+ perToolDecisions: "Per-Tool Decisions",
2686
+ profileReadOnly: "PNP Profile (read-only)"
2687
+ },
2688
+ tts: {
2689
+ title: "TTS settings",
2690
+ closeA11y: "Close TTS settings",
2691
+ toolbarLayoutMode: "Toolbar layout mode",
2692
+ reservedRow: "Reserved row",
2693
+ expandingRow: "Expanding row",
2694
+ floatingOverlay: "Floating overlay",
2695
+ leftAlignedControls: "Left-aligned controls",
2696
+ inlineSpeedButtons: "Inline speed buttons",
2697
+ resetToDefaults: "Reset to defaults",
2698
+ mathHighlighting: "Math highlighting",
2699
+ checkingAvailability: "Checking availability…",
2700
+ recheck: "Recheck",
2701
+ voice: "Voice",
2702
+ bestAvailableVoice: "Best available voice (auto)",
2703
+ unnamedVoice: "Unnamed voice",
2704
+ apiEndpoint: "API endpoint",
2705
+ gender: "Gender",
2706
+ any: "Any",
2707
+ male: "Male",
2708
+ female: "Female",
2709
+ neutral: "Neutral",
2710
+ engine: "Engine",
2711
+ neural: "Neural",
2712
+ standard: "Standard",
2713
+ providerDefault: "Provider default",
2714
+ format: "Format",
2715
+ sampleRate: "Sample rate",
2716
+ speechMarks: "Speech marks",
2717
+ word: "Word",
2718
+ wordAndSentence: "Word + sentence",
2719
+ voiceType: "Voice type",
2720
+ wavenetVoiceType: "WaveNet",
2721
+ studioVoiceType: "Studio",
2722
+ plainText: "Plain text",
2723
+ sampleText: "Sample text",
2724
+ resetSample: "Reset sample",
2725
+ providerAvailable: "Provider available.",
2726
+ providerUnavailable: "Provider unavailable.",
2727
+ providerCheckFailed: "Provider availability check failed.",
2728
+ providerNotChecked: "Provider availability has not been checked yet.",
2729
+ webSpeechUnavailable: "Web Speech API is not available in this browser.",
2730
+ browserNoVoices: "Browser text-to-speech is available, but no voices were returned yet.",
2731
+ browserUnavailable: "Browser text-to-speech is not available.",
2732
+ googleUnavailable: "Google Cloud TTS is not available from the configured API.",
2733
+ pollyUnavailable: "AWS Polly is not available from the configured API.",
2734
+ recommendedVoices: "Recommended voices",
2735
+ allVoices: "All available voices",
2736
+ previewVoice: "Preview voice",
2737
+ stopPreview: "Stop preview",
2738
+ applying: "Applying…",
2739
+ ssmlPreviewUnsupported: "SSML preview is not supported in the Browser backend.",
2740
+ pollySsmlHint: "Some Polly neural voices reject certain SSML tags (for example emphasis). Use basic SSML tags if preview fails.",
2741
+ mathHighlightParts: "Highlighting each part of a formula as it is read, falling back to the whole formula when alignment is uncertain.",
2742
+ mathHighlightBlock: "Highlighting each formula as a single block instead of breaking it into parts.",
2743
+ previewFailed: "Failed to play preview audio.",
2744
+ previewNoAudio: "Preview response did not include audio content.",
2745
+ previewEnterText: "Enter preview text before starting playback.",
2746
+ previewUnavailable: "Cannot preview while this service is unavailable.",
2747
+ browserSynthesisUnavailable: "Browser speech synthesis is unavailable.",
2748
+ browserSynthesisEndedEarly: "Browser speech synthesis ended before audio started. Restart the browser and try again.",
2749
+ browserSynthesisQueueFailed: "Browser speech synthesis failed to queue preview audio.",
2750
+ browserPreviewFailed: "Failed to play browser voice preview.",
2751
+ ssmlWordTrackingDisabled: "Google SSML preview preserves authored SSML, so word tracking is disabled.",
2752
+ applyUnavailable: "Cannot apply settings while this service is unavailable.",
2753
+ coordinatorUnavailable: "Toolkit coordinator is not available for text-to-speech updates."
2754
+ }
2755
+ }
2756
+ }, ot = "en-US", Ji = /* @__PURE__ */ new Set([
2757
+ "ar",
2758
+ "ckb",
2759
+ "dv",
2760
+ "fa",
2761
+ "he",
2762
+ "iw",
2763
+ "ks",
2764
+ "ku",
2765
+ "nqo",
2766
+ "ps",
2767
+ "sd",
2768
+ "syr",
2769
+ "ug",
2770
+ "ur",
2771
+ "yi"
2772
+ ]), Qi = /* @__PURE__ */ new Set([
2773
+ "zero",
2774
+ "one",
2775
+ "two",
2776
+ "few",
2777
+ "many",
2778
+ "other"
2779
+ ]);
2780
+ function Zt(e) {
2781
+ if (typeof e != "object" || e === null) return !1;
2782
+ const t = Object.keys(e);
2783
+ return t.length > 0 && t.every((r) => Qi.has(r));
2784
+ }
2785
+ function Xt(e) {
2786
+ try {
2787
+ const r = new Intl.Locale(e).textInfo;
2788
+ if (r?.direction === "rtl" || r?.direction === "ltr") return r.direction;
2789
+ } catch {
2790
+ }
2791
+ const t = Me(e).split("-")[0] ?? "";
2792
+ return Ji.has(t) ? "rtl" : "ltr";
2793
+ }
2794
+ var Zi = class Ye {
2795
+ static pluralRules = /* @__PURE__ */ new Map();
2796
+ locale;
2797
+ fallbackLocale;
2798
+ catalogs;
2799
+ customMessages;
2800
+ loading;
2801
+ listeners = /* @__PURE__ */ new Set();
2802
+ config;
2803
+ constructor(t = {}) {
2804
+ this.config = { ...t }, this.fallbackLocale = je(t.fallbackLocale) || "en-US", this.catalogs = /* @__PURE__ */ new Map([[ot, Ki]]), this.customMessages = { ...t.customMessages ?? {} }, this.loading = /* @__PURE__ */ new Map(), this.locale = this.resolveLocaleTag(t.locale) ?? "en-US";
2805
+ }
2806
+ async initialize(t) {
2807
+ if (this.config = {
2808
+ ...this.config,
2809
+ ...t
2810
+ }, t.customMessages) for (const [r, n] of Object.entries(t.customMessages)) this.addCustomMessages(r, n);
2811
+ await this.setLocale(t.locale ?? this.locale);
2812
+ }
2813
+ getLocale() {
2814
+ return this.locale;
2815
+ }
2816
+ async setLocale(t) {
2817
+ const r = this.resolveLocaleTag(t);
2818
+ if (!r) {
2819
+ this.locale = je(t) || "en-US", this.notify();
2820
+ return;
2821
+ }
2822
+ if (!this.catalogs.has(r)) {
2823
+ const n = this.loading.get(r);
2824
+ if (n) await n;
2825
+ else {
2826
+ const i = this.loadCatalog(r);
2827
+ this.loading.set(r, i);
2828
+ try {
2829
+ await i;
2830
+ } finally {
2831
+ this.loading.delete(r);
2832
+ }
2833
+ }
2834
+ }
2835
+ this.locale = r, this.notify();
2836
+ }
2837
+ t(t, r) {
2838
+ const n = this.lookup(t);
2839
+ return n === void 0 ? (this.config.onMissingKey?.(t, this.locale), t) : er(n, r);
2840
+ }
2841
+ plural(t, r) {
2842
+ const n = this.lookupNode(t);
2843
+ return n === void 0 || !Zt(n) ? this.t(t, r) : er(n[this.selectPluralCategory(r.count)] ?? n.other, r);
2844
+ }
2845
+ getDirection() {
2846
+ return Xt(this.locale);
2847
+ }
2848
+ getAvailableLocales() {
2849
+ return [.../* @__PURE__ */ new Set([
2850
+ ...this.catalogs.keys(),
2851
+ ...this.config.availableLocales ?? [],
2852
+ ...Object.keys(this.customMessages)
2853
+ ])];
2854
+ }
2855
+ isLocaleLoaded(t) {
2856
+ const r = this.resolveLocaleTag(t);
2857
+ return r !== void 0 && this.catalogs.has(r);
2858
+ }
2859
+ subscribe(t) {
2860
+ return this.listeners.add(t), () => {
2861
+ this.listeners.delete(t);
2862
+ };
2863
+ }
2864
+ hasKey(t) {
2865
+ return this.lookup(t) !== void 0;
2866
+ }
2867
+ addCustomMessages(t, r) {
2868
+ const n = je(t);
2869
+ this.customMessages[n] = Vr(this.customMessages[n] ?? {}, r), this.notify();
2870
+ }
2871
+ withLocale(t) {
2872
+ const r = this.resolveLocaleTag(t) ?? je(t);
2873
+ if (r === this.locale) return this;
2874
+ const n = new Ye({
2875
+ ...this.config,
2876
+ locale: r
2877
+ });
2878
+ return n.locale = r || "en-US", n.catalogs = this.catalogs, n.customMessages = this.customMessages, n.loading = this.loading, n;
2879
+ }
2880
+ formatNumber(t, r) {
2881
+ try {
2882
+ return new Intl.NumberFormat(this.locale, r).format(t);
2883
+ } catch {
2884
+ return new Intl.NumberFormat(ot, r).format(t);
2885
+ }
2886
+ }
2887
+ formatDate(t, r) {
2888
+ try {
2889
+ return new Intl.DateTimeFormat(this.locale, r).format(t);
2890
+ } catch {
2891
+ return new Intl.DateTimeFormat(ot, r).format(t);
2892
+ }
2893
+ }
2894
+ getBundle(t = this.locale) {
2895
+ const r = this.resolveLocaleTag(t);
2896
+ if (!r) return;
2897
+ const n = this.catalogs.get(r);
2898
+ if (n)
2899
+ return {
2900
+ locale: r,
2901
+ translations: n,
2902
+ direction: Xt(r)
2903
+ };
2904
+ }
2905
+ resolveLocaleTag(t) {
2906
+ if (!t) return;
2907
+ const r = this.getAvailableLocales(), n = Wi(t, r);
2908
+ if (n) return n;
2909
+ const i = Me(t).split("-")[0];
2910
+ if (i)
2911
+ return r.find((a) => Me(a).split("-")[0] === i);
2912
+ }
2913
+ async loadCatalog(t) {
2914
+ const r = this.config.loadCatalog;
2915
+ if (r)
2916
+ try {
2917
+ this.catalogs.set(t, await r(t));
2918
+ } catch (n) {
2919
+ throw new Error(`Failed to load i18n catalog for locale: ${t}`, { cause: n });
2920
+ }
2921
+ }
2922
+ lookupNode(t) {
2923
+ const r = [
2924
+ this.customMessages[this.locale],
2925
+ this.catalogs.get(this.locale),
2926
+ this.customMessages[this.fallbackLocale],
2927
+ this.catalogs.get(this.fallbackLocale)
2928
+ ];
2929
+ for (const n of r) {
2930
+ const i = Xi(n, t);
2931
+ if (i !== void 0) return i;
2932
+ }
2933
+ }
2934
+ lookup(t) {
2935
+ const r = this.lookupNode(t);
2936
+ if (typeof r == "string") return r;
2937
+ if (r !== void 0 && Zt(r)) return r.other;
2938
+ }
2939
+ selectPluralCategory(t) {
2940
+ let r = Ye.pluralRules.get(this.locale);
2941
+ if (!r) {
2942
+ try {
2943
+ r = new Intl.PluralRules(this.locale);
2944
+ } catch {
2945
+ return t === 1 ? "one" : "other";
2946
+ }
2947
+ Ye.pluralRules.set(this.locale, r);
2948
+ }
2949
+ return r.select(t);
2950
+ }
2951
+ notify() {
2952
+ for (const t of this.listeners) t();
2953
+ }
2954
+ };
2955
+ function je(e) {
2956
+ return e ? e.trim().replace(/_/g, "-") : "";
2957
+ }
2958
+ function Xi(e, t) {
2959
+ if (!e) return;
2960
+ let r = e;
2961
+ for (const n of t.split("."))
2962
+ if (typeof r != "object" || r === null || (r = r[n], r === void 0)) return;
2963
+ return r;
2964
+ }
2965
+ function er(e, t) {
2966
+ return t ? e.replace(/\{(\w+)\}/g, (r, n) => {
2967
+ const i = t[n];
2968
+ return i == null ? r : String(i);
2969
+ }) : e;
2970
+ }
2971
+ function Vr(e, t) {
2972
+ const r = { ...e };
2973
+ for (const [n, i] of Object.entries(t)) {
2974
+ const a = r[n];
2975
+ i && typeof i == "object" && a && typeof a == "object" ? r[n] = Vr(a, i) : r[n] = i;
2976
+ }
2977
+ return r;
2978
+ }
2979
+ var lt;
2980
+ function ea() {
2981
+ return lt || (lt = new Zi()), lt;
2982
+ }
2983
+ function ta(e) {
2984
+ const t = e?.i18n ?? ea();
2985
+ return {
2986
+ getLocale: () => t.getLocale(),
2987
+ setLocale: (r) => t.setLocale(r),
2988
+ t: (r, n) => t.t(r, n),
2989
+ plural: (r, n) => t.plural?.(r, n) ?? t.t(r, n),
2990
+ getDirection: () => t.getDirection?.() ?? "ltr",
2991
+ hasKey: (r) => t.hasKey?.(r) ?? !1,
2992
+ subscribe: (r) => t.subscribe?.(r) ?? (() => {
2993
+ })
2994
+ };
2995
+ }
2996
+ var ra = /* @__PURE__ */ Ai('<div class="pie-tool-calculator-inline svelte-qq14od"><button type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="pie-tool-calculator-inline__icon svelte-qq14od" aria-hidden="true"><path d="M7,2H17A2,2 0 0,1 19,4V20A2,2 0 0,1 17,22H7A2,2 0 0,1 5,20V4A2,2 0 0,1 7,2M7,4V8H17V4H7M7,10V12H9V10H7M11,10V12H13V10H11M15,10V12H17V10H15M7,14V16H9V14H7M11,14V16H13V14H11M15,14V16H17V14H15M7,18V20H9V18H7M11,18V20H13V18H11M15,18V20H17V18H15Z"></path></svg></button> <div class="pie-sr-only svelte-qq14od" role="status" aria-live="polite" aria-atomic="true"> </div></div>'), na = {
2236
2997
  hash: "svelte-qq14od",
2237
2998
  code: `.pie-tool-calculator-inline.svelte-qq14od {display:inline-flex;align-items:center;gap:0.25rem;}.pie-tool-calculator-inline__button.svelte-qq14od {display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--pie-border, #ccc);background-color:var(--pie-background, white);color:var(--pie-text, #333);border-radius:4px;cursor:pointer;transition:background-color 0.15s ease,
2238
2999
  transform 0.1s ease,
2239
3000
  box-shadow 0.15s ease;padding:0.25rem;position:relative;}.pie-tool-calculator-inline__button.svelte-qq14od:hover:not(:disabled) {background-color:var(--pie-secondary-background, #f5f5f5);transform:translateY(-1px);box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.pie-tool-calculator-inline__button.svelte-qq14od:active:not(:disabled) {transform:translateY(0);box-shadow:none;}
2240
3001
 
2241
3002
  /* Focus indicator - WCAG 2.4.7, 2.4.13 */.pie-tool-calculator-inline__button.svelte-qq14od:focus-visible {outline:2px solid var(--pie-button-focus-outline, #0066cc);outline-offset:2px;box-shadow:0 0 0 4px
2242
- color-mix(in srgb, var(--pie-button-focus-outline, #0066cc) 20%, transparent);z-index:1;}.pie-tool-calculator-inline__button--active.svelte-qq14od {background-color:var(--pie-tool-trigger-active-background, var(--pie-primary, #1976d2));color:var(--pie-tool-trigger-active-color, white);border-color:var(--pie-tool-trigger-active-border-color, var(--pie-primary, #1976d2));}.pie-tool-calculator-inline__button--active.svelte-qq14od:hover:not(:disabled) {background-color:var(--pie-tool-trigger-active-background, var(--pie-primary-dark, #1565c0));color:var(--pie-tool-trigger-active-color, white);border-color:var(--pie-tool-trigger-active-border-color, var(--pie-primary, #1976d2));}.pie-tool-calculator-inline__button.svelte-qq14od:disabled {cursor:not-allowed;opacity:0.6;}
3003
+ color-mix(in srgb, var(--pie-button-focus-outline, #0066cc) 20%, transparent);z-index:1;}
3004
+
3005
+ /*
3006
+ * \`--pie-primary\` is a fill here, and white was pinned as its ink. The two do
3007
+ * not pair: the schemes whose primary is a pale yellow put white on it at
3008
+ * 1.06:1 (Yellow on Blue), 1.07:1 (White on Black) and 1.05:1 (Yellow on
3009
+ * Navy), so the open-state trigger lost its glyph on exactly the palettes
3010
+ * chosen for legibility. The ink follows the page colour once a scheme asks
3011
+ * for one, which pairs with that fill at 5.44:1 or better everywhere, and
3012
+ * stays the pinned white at 0% collapse so an unthemed host is unchanged.
3013
+ */.pie-tool-calculator-inline__button--active.svelte-qq14od {background-color:var(--pie-tool-trigger-active-background, var(--pie-primary, #1976d2));color:var(
3014
+ --pie-tool-trigger-active-color,
3015
+ color-mix(in srgb, var(--pie-background, #ffffff) var(--pie-fixed-hue-collapse, 0%), white)
3016
+ );border-color:var(--pie-tool-trigger-active-border-color, var(--pie-primary, #1976d2));}
3017
+
3018
+ /*
3019
+ * The deeper hover fill collapses to \`--pie-primary\` rather than
3020
+ * \`--pie-primary-dark\`: that darker slot pairs with the page colour at 3.56:1
3021
+ * under Light Gray on Dark Gray, below the 4.5:1 this glyph needs. Under a
3022
+ * scheme the hover therefore matches the open state, and the affordance rests
3023
+ * on the border, which is deliberate — a hover tell is not worth an
3024
+ * unreadable one.
3025
+ */.pie-tool-calculator-inline__button--active.svelte-qq14od:hover:not(:disabled) {background-color:var(
3026
+ --pie-tool-trigger-active-background,
3027
+ color-mix(in srgb, var(--pie-primary, #1565c0) var(--pie-fixed-hue-collapse, 0%), var(--pie-primary-dark, #1565c0))
3028
+ );color:var(
3029
+ --pie-tool-trigger-active-color,
3030
+ color-mix(in srgb, var(--pie-background, #ffffff) var(--pie-fixed-hue-collapse, 0%), white)
3031
+ );border-color:var(--pie-tool-trigger-active-border-color, var(--pie-primary, #1976d2));}.pie-tool-calculator-inline__button.svelte-qq14od:disabled {cursor:not-allowed;opacity:0.6;}
2243
3032
 
2244
3033
  /* Size variants */.pie-tool-calculator-inline__button--sm.svelte-qq14od {width:1.5rem;height:1.5rem;
2245
3034
  /* Increase padding to meet 44px touch target - WCAG 2.5.2 */padding:0.625rem;}.pie-tool-calculator-inline__button--sm.svelte-qq14od .pie-tool-calculator-inline__icon:where(.svelte-qq14od) {width:1rem;height:1rem;}.pie-tool-calculator-inline__button--md.svelte-qq14od {width:2rem;height:2rem;}.pie-tool-calculator-inline__button--md.svelte-qq14od .pie-tool-calculator-inline__icon:where(.svelte-qq14od) {width:1.25rem;height:1.25rem;}.pie-tool-calculator-inline__button--lg.svelte-qq14od {width:2.5rem;height:2.5rem;}.pie-tool-calculator-inline__button--lg.svelte-qq14od .pie-tool-calculator-inline__icon:where(.svelte-qq14od) {width:1.5rem;height:1.5rem;}.pie-tool-calculator-inline__icon.svelte-qq14od {fill:currentColor;color:var(--pie-button-color, #555);}.pie-tool-calculator-inline__button.svelte-qq14od:not(.pie-tool-calculator-inline__button--active):hover:not(:disabled) .pie-tool-calculator-inline__icon:where(.svelte-qq14od) {color:var(--pie-button-hover-color, #667eea);}.pie-tool-calculator-inline__button--active.svelte-qq14od .pie-tool-calculator-inline__icon:where(.svelte-qq14od) {color:var(--pie-tool-trigger-active-color, inherit);}
@@ -2251,81 +3040,101 @@ var Oi = /* @__PURE__ */ li('<div class="pie-tool-calculator-inline svelte-qq14o
2251
3040
  animation: none !important;transition:none !important;}
2252
3041
  }`
2253
3042
  };
2254
- function Ci(e, t) {
2255
- Jt(t, !0), yi(e, Ri);
2256
- let r = $e(t, "toolId", 7, "calculator-inline"), n = $e(t, "targetToolId", 7, ""), i = $e(t, "calculatorType", 7, "basic"), s = $e(t, "availableTypes", 7, "basic,scientific,graphing"), l = $e(t, "size", 7, "md");
2257
- const a = typeof window < "u";
2258
- let f = /* @__PURE__ */ N(void 0), v = /* @__PURE__ */ N(null);
2259
- const p = /* @__PURE__ */ be(() => _(v)?.toolCoordinator);
2260
- let c = /* @__PURE__ */ N(!1), o = /* @__PURE__ */ N(!1), u = /* @__PURE__ */ N("");
2261
- const d = /* @__PURE__ */ be(() => new Set(s().split(",").map((S) => S.trim()).filter(Boolean))), h = /* @__PURE__ */ be(() => _(d).has(i()) ? i() : "basic");
2262
- Pe(() => {
2263
- if (_(f))
2264
- return Lr(_(f), (S) => {
2265
- O(v, S, !0);
3043
+ function ia(e, t) {
3044
+ lr(t, !0), Ii(e, na);
3045
+ let r = Se(t, "toolId", 7, "calculator-inline"), n = Se(t, "targetToolId", 7, ""), i = Se(t, "calculatorType", 7, "basic"), a = Se(t, "availableTypes", 7, "basic,scientific,graphing"), o = Se(t, "size", 7, "md");
3046
+ const s = typeof window < "u", u = [
3047
+ "basic",
3048
+ "scientific",
3049
+ "graphing"
3050
+ ], v = {
3051
+ basic: {
3052
+ name: "tools.calculator.nameBasic",
3053
+ opened: "tools.calculator.openedBasic",
3054
+ closed: "tools.calculator.closedBasic"
3055
+ },
3056
+ scientific: {
3057
+ name: "tools.calculator.nameScientific",
3058
+ opened: "tools.calculator.openedScientific",
3059
+ closed: "tools.calculator.closedScientific"
3060
+ },
3061
+ graphing: {
3062
+ name: "tools.calculator.nameGraphing",
3063
+ opened: "tools.calculator.openedGraphing",
3064
+ closed: "tools.calculator.closedGraphing"
3065
+ }
3066
+ }, g = (T) => u.includes(T);
3067
+ let f = /* @__PURE__ */ N(void 0), c = /* @__PURE__ */ N(null);
3068
+ const l = /* @__PURE__ */ te(() => ta(p(c))), d = /* @__PURE__ */ te(() => p(c)?.toolCoordinator);
3069
+ let h = null, w = null, S = /* @__PURE__ */ N(!1), P = /* @__PURE__ */ N("");
3070
+ const Y = /* @__PURE__ */ te(() => new Set(a().split(",").map((T) => T.trim()).filter(Boolean))), k = /* @__PURE__ */ te(() => p(Y).has(i()) ? i() : "basic"), H = /* @__PURE__ */ te(() => v[g(p(k)) ? p(k) : "basic"]), W = /* @__PURE__ */ te(() => p(l).t(p(H).name));
3071
+ He(() => {
3072
+ if (p(f))
3073
+ return en(p(f), (T) => {
3074
+ C(c, T, !0);
2266
3075
  });
2267
- }), Pe(() => {
2268
- _(p) && r() && _(f) && !_(c) && (_(p).registerTool(r(), "Calculator Inline", _(f), jr.TOOL), O(c, !0));
3076
+ }), He(() => {
3077
+ !p(d) || !r() || !p(f) || (h && w && (h !== p(d) || w !== r()) && (h.unregisterTool(w), h = null, w = null), h || (p(d).registerTool(r(), "Calculator Inline", p(f), Xr.TOOL), h = p(d), w = r()));
2269
3078
  });
2270
- const b = /* @__PURE__ */ be(() => n() ? n() : Pr(r()));
2271
- Pe(() => {
2272
- if (!a || !_(p)) return;
2273
- const S = _(p).subscribe(() => {
2274
- O(o, _(p).isToolVisible(_(b)), !0);
3079
+ const it = /* @__PURE__ */ te(() => n() ? n() : tn(r()));
3080
+ He(() => {
3081
+ if (!s || !p(d)) return;
3082
+ const T = p(d).subscribe(() => {
3083
+ C(S, p(d).isToolVisible(p(it)), !0);
2275
3084
  });
2276
- return O(o, _(p).isToolVisible(_(b)), !0), S;
2277
- }), Pe(() => () => {
2278
- _(p) && r() && _(p).unregisterTool(r());
3085
+ return C(S, p(d).isToolVisible(p(it)), !0), T;
3086
+ }), He(() => () => {
3087
+ h && w && (h.unregisterTool(w), h = null, w = null);
2279
3088
  });
2280
- function x() {
2281
- _(p) && (_(p).toggleTool(_(b)), O(u, _(o) ? `${_(h)} calculator closed` : `${_(h)} calculator opened`, !0));
3089
+ function Gr() {
3090
+ p(d) && (p(d).toggleTool(p(it)), C(P, p(l).t(p(S) ? p(H).closed : p(H).opened), !0));
2282
3091
  }
2283
- const q = /* @__PURE__ */ be(() => l() === "sm" ? "pie-tool-calculator-inline__button--sm" : l() === "lg" ? "pie-tool-calculator-inline__button--lg" : "pie-tool-calculator-inline__button--md");
2284
- var U = {
3092
+ const Yr = /* @__PURE__ */ te(() => o() === "sm" ? "pie-tool-calculator-inline__button--sm" : o() === "lg" ? "pie-tool-calculator-inline__button--lg" : "pie-tool-calculator-inline__button--md");
3093
+ var Wr = {
2285
3094
  get toolId() {
2286
3095
  return r();
2287
3096
  },
2288
- set toolId(S = "calculator-inline") {
2289
- r(S), ue();
3097
+ set toolId(T = "calculator-inline") {
3098
+ r(T), fe();
2290
3099
  },
2291
3100
  get targetToolId() {
2292
3101
  return n();
2293
3102
  },
2294
- set targetToolId(S = "") {
2295
- n(S), ue();
3103
+ set targetToolId(T = "") {
3104
+ n(T), fe();
2296
3105
  },
2297
3106
  get calculatorType() {
2298
3107
  return i();
2299
3108
  },
2300
- set calculatorType(S = "basic") {
2301
- i(S), ue();
3109
+ set calculatorType(T = "basic") {
3110
+ i(T), fe();
2302
3111
  },
2303
3112
  get availableTypes() {
2304
- return s();
3113
+ return a();
2305
3114
  },
2306
- set availableTypes(S = "basic,scientific,graphing") {
2307
- s(S), ue();
3115
+ set availableTypes(T = "basic,scientific,graphing") {
3116
+ a(T), fe();
2308
3117
  },
2309
3118
  get size() {
2310
- return l();
3119
+ return o();
2311
3120
  },
2312
- set size(S = "md") {
2313
- l(S), ue();
2314
- }
2315
- }, E = oi(), G = Vn(E), Q = (S) => {
2316
- var He = Oi(), ee = Ht(He);
2317
- let Tt;
2318
- var St = Dn(ee, 2), Nr = Ht(St, !0);
2319
- Ot(St), Ot(He), Ti(He, (Hr) => O(f, Hr), () => _(f)), Zn(() => {
2320
- Tt = wi(ee, 1, `pie-tool-calculator-inline__button ${_(q) ?? ""}`, "svelte-qq14od", Tt, { "pie-tool-calculator-inline__button--active": _(o) }), De(ee, "aria-label", _(o) ? `Close ${_(h)} calculator` : `Open ${_(h)} calculator`), De(ee, "aria-pressed", _(o)), De(ee, "title", _(o) ? `Close ${_(h)} calculator` : `Open ${_(h)} calculator`), De(ee, "data-calculator-type", _(h)), ee.disabled = !_(p), vi(Nr, _(u));
2321
- }), ri("click", ee, x), ut(S, He);
3121
+ set size(T = "md") {
3122
+ o(T), fe();
3123
+ }
3124
+ }, Ct = ki(), Kr = ri(Ct), Jr = (T) => {
3125
+ var Ne = ra(), ee = jt(Ne);
3126
+ let Lt;
3127
+ var It = ni(ee, 2), Qr = jt(It, !0);
3128
+ Ot(It), Ot(Ne), zi(Ne, (Zr) => C(f, Zr), () => p(f)), di(() => {
3129
+ Lt = qi(ee, 1, `pie-tool-calculator-inline__button ${p(Yr) ?? ""}`, "svelte-qq14od", Lt, { "pie-tool-calculator-inline__button--active": p(S) }), ze(ee, "aria-label", p(W)), ze(ee, "aria-pressed", p(S)), ze(ee, "title", p(W)), ze(ee, "data-calculator-type", p(k)), ee.disabled = !p(d), Pi(Qr, p(P));
3130
+ }), mi("click", ee, Gr), _t(T, Ne);
2322
3131
  };
2323
- return gi(G, (S) => {
2324
- a && S(Q);
2325
- }), ut(e, E), Qt(U);
3132
+ return Li(Kr, (T) => {
3133
+ s && T(Jr);
3134
+ }), _t(e, Ct), cr(Wr);
2326
3135
  }
2327
- ni(["click"]);
2328
- customElements.define("pie-tool-calculator-inline", Mi(Ci, {
3136
+ yi(["click"]);
3137
+ customElements.define("pie-tool-calculator-inline", Gi(ia, {
2329
3138
  toolId: {
2330
3139
  attribute: "tool-id",
2331
3140
  type: "String"
@@ -2348,5 +3157,5 @@ customElements.define("pie-tool-calculator-inline", Mi(Ci, {
2348
3157
  }
2349
3158
  }, [], [], { mode: "open" }));
2350
3159
  export {
2351
- Ci as default
3160
+ ia as default
2352
3161
  };