@pie-players/pie-tool-sign-language 0.3.67 → 0.3.69

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,16 +1,17 @@
1
- import { applyMediaFragment as hi, isSafeMediaSrc as vi, normalizeMediaFragment as _i, normalizeMediaSources as pi, trimmedOrUndefined as nt } from "@pie-players/pie-assessment-toolkit";
2
- import { resolveToolTag as gi } from "@pie-players/pie-assessment-toolkit/tools/internal";
1
+ import { applyMediaFragment as _i, bindTtsAudioHandoff as pi, enforceMediaFragment as gi, isSafeMediaSrc as mi, isUnsupportedMediaAssetVersion as wi, normalizeMediaFragment as yi, normalizeMediaSources as bi, pauseTtsForMediaAudio as $i, trimmedOrUndefined as nt } from "@pie-players/pie-assessment-toolkit";
2
+ import { resolveInterfaceI18n as cn } from "@pie-players/pie-players-shared/i18n/provider";
3
+ import { resolveToolTag as ki } from "@pie-players/pie-assessment-toolkit/tools/internal";
3
4
  if (typeof window < "u") {
4
- var qr, Gr;
5
- ((qr = (Gr = window).__svelte ?? (Gr.__svelte = {})).v ?? (qr.v = /* @__PURE__ */ new Set())).add("5");
5
+ var Gr, Hr;
6
+ ((Gr = (Hr = window).__svelte ?? (Hr.__svelte = {})).v ?? (Gr.v = /* @__PURE__ */ new Set())).add("5");
6
7
  }
7
- var Je = {}, I = /* @__PURE__ */ Symbol("uninitialized");
8
- var un = Array.isArray, mi = Array.prototype.indexOf, Pt = Array.prototype.includes, Xt = Array.from, It = Object.keys, Wt = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, wi = Object.getOwnPropertyDescriptors, yi = Object.prototype, bi = Array.prototype, cn = Object.getPrototypeOf, Ur = Object.isExtensible, $i = () => {
8
+ var Je = {}, W = /* @__PURE__ */ Symbol("uninitialized");
9
+ var dn = Array.isArray, Si = Array.prototype.indexOf, Pt = Array.prototype.includes, Jt = Array.from, Wt = Object.keys, jt = Object.defineProperty, Ne = Object.getOwnPropertyDescriptor, Ei = Object.getOwnPropertyDescriptors, xi = Object.prototype, Mi = Array.prototype, vn = Object.getPrototypeOf, zr = Object.isExtensible, Ti = () => {
9
10
  };
10
- function ki(e) {
11
+ function Ai(e) {
11
12
  for (var t = 0; t < e.length; t++) e[t]();
12
13
  }
13
- function dn() {
14
+ function hn() {
14
15
  var e, t;
15
16
  return {
16
17
  promise: new Promise((r, n) => {
@@ -28,7 +29,7 @@ function _t(e) {
28
29
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
29
30
  }, _t(e);
30
31
  }
31
- function Si(e, t) {
32
+ function Li(e, t) {
32
33
  if (_t(e) != "object" || !e) return e;
33
34
  var r = e[Symbol.toPrimitive];
34
35
  if (r !== void 0) {
@@ -38,97 +39,97 @@ function Si(e, t) {
38
39
  }
39
40
  return (t === "string" ? String : Number)(e);
40
41
  }
41
- function Ei(e) {
42
- var t = Si(e, "string");
42
+ function Oi(e) {
43
+ var t = Li(e, "string");
43
44
  return _t(t) == "symbol" ? t : t + "";
44
45
  }
45
- function O(e, t, r) {
46
- return (t = Ei(t)) in e ? Object.defineProperty(e, t, {
46
+ function L(e, t, r) {
47
+ return (t = Oi(t)) in e ? Object.defineProperty(e, t, {
47
48
  value: r,
48
49
  enumerable: !0,
49
50
  configurable: !0,
50
51
  writable: !0
51
52
  }) : e[t] = r, e;
52
53
  }
53
- var La = 1 << 24, Q = 1024, Y = 2048, qe = 4096, br = 8192, xi = 16384, $r = 32768, Hr = 1 << 25, kr = 65536, Oa = 1 << 17, Ra = 1 << 18, rt = 1 << 19, Mi = 1 << 20, ct = 1 << 25, wt = 65536, Br = 1 << 21, Ti = 1 << 22, jt = 1 << 23, dt = /* @__PURE__ */ Symbol("$state"), hn = /* @__PURE__ */ Symbol("legacy props"), Ai = /* @__PURE__ */ Symbol(""), Li = /* @__PURE__ */ Symbol("proxy path"), fr = /* @__PURE__ */ Symbol("attributes"), Oi = /* @__PURE__ */ Symbol("class"), Ri = /* @__PURE__ */ Symbol("style"), Lt = /* @__PURE__ */ Symbol("text");
54
+ var Wa = 1 << 24, Z = 1024, Y = 2048, qe = 4096, kr = 8192, Ri = 16384, Sr = 32768, Br = 1 << 25, Er = 65536, ja = 1 << 17, Fa = 1 << 18, rt = 1 << 19, Ni = 1 << 20, ct = 1 << 25, wt = 65536, Yr = 1 << 21, Ci = 1 << 22, Ft = 1 << 23, dt = /* @__PURE__ */ Symbol("$state"), _n = /* @__PURE__ */ Symbol("legacy props"), Ii = /* @__PURE__ */ Symbol(""), Pi = /* @__PURE__ */ Symbol("proxy path"), dr = /* @__PURE__ */ Symbol("attributes"), Wi = /* @__PURE__ */ Symbol("class"), ji = /* @__PURE__ */ Symbol("style"), Lt = /* @__PURE__ */ Symbol("text");
54
55
  var yt = new class extends Error {
55
56
  constructor(...t) {
56
- super(...t), O(this, "name", "StaleReactionError"), O(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
57
+ super(...t), L(this, "name", "StaleReactionError"), L(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
57
58
  }
58
- }(), Ni = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
59
- function Ci() {
59
+ }(), Fi = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
60
+ function Di() {
60
61
  throw new Error("https://svelte.dev/e/async_derived_orphan");
61
62
  }
62
- function Pi(e, t, r) {
63
+ function qi(e, t, r) {
63
64
  throw new Error("https://svelte.dev/e/each_key_duplicate");
64
65
  }
65
- function Ii(e) {
66
+ function Ui(e) {
66
67
  throw new Error("https://svelte.dev/e/effect_in_teardown");
67
68
  }
68
- function Wi() {
69
+ function Gi() {
69
70
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
70
71
  }
71
- function ji(e) {
72
+ function Hi(e) {
72
73
  throw new Error("https://svelte.dev/e/effect_orphan");
73
74
  }
74
- function Fi() {
75
+ function zi() {
75
76
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
76
77
  }
77
- function Di() {
78
+ function Bi() {
78
79
  throw new Error("https://svelte.dev/e/hydration_failed");
79
80
  }
80
- function qi(e) {
81
+ function Yi(e) {
81
82
  throw new Error("https://svelte.dev/e/props_invalid_value");
82
83
  }
83
- function Gi() {
84
+ function Vi() {
84
85
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
85
86
  }
86
- function Ui() {
87
+ function Ki() {
87
88
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
88
89
  }
89
- function Hi() {
90
+ function Xi() {
90
91
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
91
92
  }
92
- function Bi() {
93
+ function Ji() {
93
94
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
94
95
  }
95
- function zi() {
96
+ function Zi() {
96
97
  console.warn("https://svelte.dev/e/derived_inert");
97
98
  }
98
- function Jt(e) {
99
+ function Zt(e) {
99
100
  console.warn("https://svelte.dev/e/hydration_mismatch");
100
101
  }
101
- function Yi() {
102
+ function Qi() {
102
103
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
103
104
  }
104
- var L = !1;
105
+ var A = !1;
105
106
  function ge(e) {
106
- L = e;
107
+ A = e;
107
108
  }
108
- var M;
109
- function U(e) {
109
+ var x;
110
+ function H(e) {
110
111
  if (e === null)
111
- throw Jt(), Je;
112
- return M = e;
112
+ throw Zt(), Je;
113
+ return x = e;
113
114
  }
114
- function Zt() {
115
- return U(/* @__PURE__ */ he(M));
115
+ function Qt() {
116
+ return H(/* @__PURE__ */ ve(x));
116
117
  }
117
- function er(e) {
118
- if (L) {
119
- if (/* @__PURE__ */ he(M) !== null)
120
- throw Jt(), Je;
121
- M = e;
118
+ function tr(e) {
119
+ if (A) {
120
+ if (/* @__PURE__ */ ve(x) !== null)
121
+ throw Zt(), Je;
122
+ x = e;
122
123
  }
123
124
  }
124
- function Vi(e = 1) {
125
- if (L) {
126
- for (var t = e, r = M; t--; ) r = /* @__PURE__ */ he(r);
127
- M = r;
125
+ function es(e = 1) {
126
+ if (A) {
127
+ for (var t = e, r = x; t--; ) r = /* @__PURE__ */ ve(r);
128
+ x = r;
128
129
  }
129
130
  }
130
- function Ft(e = !0) {
131
- for (var t = 0, r = M; ; ) {
131
+ function Dt(e = !0) {
132
+ for (var t = 0, r = x; ; ) {
132
133
  if (r.nodeType === 8) {
133
134
  var n = r.data;
134
135
  if (n === "]") {
@@ -136,88 +137,88 @@ function Ft(e = !0) {
136
137
  t -= 1;
137
138
  } else (n === "[" || n === "[!" || n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
138
139
  }
139
- var i = /* @__PURE__ */ he(r);
140
+ var i = /* @__PURE__ */ ve(r);
140
141
  e && r.remove(), r = i;
141
142
  }
142
143
  }
143
- function vn(e) {
144
+ function pn(e) {
144
145
  if (!e || e.nodeType !== 8)
145
- throw Jt(), Je;
146
+ throw Zt(), Je;
146
147
  return e.data;
147
148
  }
148
- function _n(e) {
149
+ function gn(e) {
149
150
  return e === this.v;
150
151
  }
151
- function Ki(e, t) {
152
+ function ts(e, t) {
152
153
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
153
154
  }
154
- function pn(e) {
155
- return !Ki(e, this.v);
155
+ function mn(e) {
156
+ return !ts(e, this.v);
156
157
  }
157
- var we = !1, Qt = !1;
158
- function zr(e, t) {
159
- return e.label = t, Xi(e.v, t), e;
158
+ var we = !1, er = !1;
159
+ function Vr(e, t) {
160
+ return e.label = t, rs(e.v, t), e;
160
161
  }
161
- function Xi(e, t) {
162
- return e?.[Li]?.(t), e;
162
+ function rs(e, t) {
163
+ return e?.[Pi]?.(t), e;
163
164
  }
164
- var P = null;
165
+ var I = null;
165
166
  function Ze(e) {
166
- P = e;
167
+ I = e;
167
168
  }
168
- function gn(e, t = !1, r) {
169
- P = {
170
- p: P,
169
+ function wn(e, t = !1, r) {
170
+ I = {
171
+ p: I,
171
172
  i: !1,
172
173
  c: null,
173
174
  e: null,
174
175
  s: e,
175
176
  x: null,
176
- r: $,
177
- l: Qt && !t ? {
177
+ r: b,
178
+ l: er && !t ? {
178
179
  s: null,
179
180
  u: null,
180
181
  $: []
181
182
  } : null
182
183
  };
183
184
  }
184
- function mn(e) {
185
- var t = P, r = t.e;
185
+ function yn(e) {
186
+ var t = I, r = t.e;
186
187
  if (r !== null) {
187
188
  t.e = null;
188
- for (var n of r) zn(n);
189
+ for (var n of r) Vn(n);
189
190
  }
190
- return e !== void 0 && (t.x = e), t.i = !0, P = t.p, e ?? {};
191
+ return e !== void 0 && (t.x = e), t.i = !0, I = t.p, e ?? {};
191
192
  }
192
193
  function bt() {
193
- return !Qt || P !== null && P.l === null;
194
+ return !er || I !== null && I.l === null;
194
195
  }
195
- var Ae = [];
196
- function wn() {
197
- var e = Ae;
198
- Ae = [], ki(e);
196
+ var Le = [];
197
+ function bn() {
198
+ var e = Le;
199
+ Le = [], Ai(e);
199
200
  }
200
201
  function ye(e) {
201
- if (Ae.length === 0 && !ht) {
202
- var t = Ae;
202
+ if (Le.length === 0 && !vt) {
203
+ var t = Le;
203
204
  queueMicrotask(() => {
204
- t === Ae && wn();
205
+ t === Le && bn();
205
206
  });
206
207
  }
207
- Ae.push(e);
208
+ Le.push(e);
208
209
  }
209
- function Ji() {
210
- for (; Ae.length > 0; ) wn();
210
+ function ns() {
211
+ for (; Le.length > 0; ) bn();
211
212
  }
212
- function yn(e) {
213
- var t = $;
213
+ function $n(e) {
214
+ var t = b;
214
215
  if (t === null)
215
- return E.f |= jt, e;
216
+ return E.f |= Ft, e;
216
217
  if ((t.f & 32768) === 0 && (t.f & 4) === 0)
217
218
  throw e;
218
- Ee(e, t);
219
+ xe(e, t);
219
220
  }
220
- function Ee(e, t) {
221
+ function xe(e, t) {
221
222
  if (!(t !== null && (t.f & 16384) !== 0)) {
222
223
  for (; t !== null; ) {
223
224
  if ((t.f & 128) !== 0) {
@@ -234,23 +235,23 @@ function Ee(e, t) {
234
235
  throw e;
235
236
  }
236
237
  }
237
- var Zi = ~(Y | qe | Q);
238
- function N(e, t) {
239
- e.f = e.f & Zi | t;
238
+ var is = ~(Y | qe | Z);
239
+ function O(e, t) {
240
+ e.f = e.f & is | t;
240
241
  }
241
- function Sr(e) {
242
- (e.f & 512) !== 0 || e.deps === null ? N(e, Q) : N(e, qe);
242
+ function xr(e) {
243
+ (e.f & 512) !== 0 || e.deps === null ? O(e, Z) : O(e, qe);
243
244
  }
244
- function bn(e) {
245
+ function kn(e) {
245
246
  if (e !== null)
246
247
  for (const t of e)
247
- (t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= wt, bn(t.deps));
248
+ (t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= wt, kn(t.deps));
248
249
  }
249
- function $n(e, t, r) {
250
- (e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e), bn(e.deps), N(e, Q);
250
+ function Sn(e, t, r) {
251
+ (e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e), kn(e.deps), O(e, Z);
251
252
  }
252
- var Qi = !1, St = !1;
253
- function es(e) {
253
+ var ss = !1, St = !1;
254
+ function as(e) {
254
255
  var t = St;
255
256
  try {
256
257
  return St = !1, [e(), St];
@@ -259,189 +260,189 @@ function es(e) {
259
260
  }
260
261
  }
261
262
  function $t(e) {
262
- var t = E, r = $;
263
- te(null), de(null);
263
+ var t = E, r = b;
264
+ ee(null), de(null);
264
265
  try {
265
266
  return e();
266
267
  } finally {
267
- te(t), de(r);
268
+ ee(t), de(r);
268
269
  }
269
270
  }
270
- function ts(e) {
271
+ function ls(e) {
271
272
  let t = 0, r = Fe(0), n;
272
273
  return () => {
273
- Cr() && (x(r), Pr(() => (t === 0 && (n = Fr(() => e(() => vt(r)))), t += 1, () => {
274
+ Pr() && (T(r), Wr(() => (t === 0 && (n = qr(() => e(() => ht(r)))), t += 1, () => {
274
275
  ye(() => {
275
- t -= 1, t === 0 && (n?.(), n = void 0, vt(r));
276
+ t -= 1, t === 0 && (n?.(), n = void 0, ht(r));
276
277
  });
277
278
  })));
278
279
  };
279
280
  }
280
- function kn(e, t) {
281
+ function En(e, t) {
281
282
  if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
282
283
  }
283
- function Er(e, t) {
284
- kn(e, t), t.add(e);
284
+ function Mr(e, t) {
285
+ En(e, t), t.add(e);
285
286
  }
286
287
  function y(e, t, r) {
287
- kn(e, t), t.set(e, r);
288
+ En(e, t), t.set(e, r);
288
289
  }
289
- function b(e, t, r) {
290
+ function $(e, t, r) {
290
291
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
291
292
  throw new TypeError("Private element is not present on this object");
292
293
  }
293
294
  function w(e, t, r) {
294
- return e.set(b(e, t), r), r;
295
+ return e.set($(e, t), r), r;
295
296
  }
296
297
  function a(e, t) {
297
- return e.get(b(e, t));
298
+ return e.get($(e, t));
298
299
  }
299
- var rs = kr | rt;
300
- function ns(e, t, r, n) {
301
- new is(e, t, r, n);
300
+ var os = Er | rt;
301
+ function fs(e, t, r, n) {
302
+ new us(e, t, r, n);
302
303
  }
303
- var se = /* @__PURE__ */ new WeakMap(), ur = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), pt = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), ce = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), Yr = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakSet(), is = class {
304
+ var ie = /* @__PURE__ */ new WeakMap(), vr = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), pt = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Kr = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakSet(), us = class {
304
305
  constructor(e, t, r, n) {
305
- Er(this, W), O(this, "parent", void 0), O(this, "is_pending", !1), O(this, "transform_error", void 0), y(this, se, void 0), y(this, ur, L ? M : null), y(this, ue, void 0), y(this, pt, void 0), y(this, J, void 0), y(this, ce, null), y(this, z, null), y(this, ne, null), y(this, Ne, null), y(this, Be, 0), y(this, Ce, 0), y(this, Et, !1), y(this, cr, /* @__PURE__ */ new Set()), y(this, dr, /* @__PURE__ */ new Set()), y(this, xe, null), y(this, Yr, ts(() => (w(xe, this, Fe(a(Be, this))), () => {
306
- w(xe, this, null);
307
- }))), w(se, this, e), w(ue, this, t), w(pt, this, (i) => {
308
- var s = $;
306
+ Mr(this, j), L(this, "parent", void 0), L(this, "is_pending", !1), L(this, "transform_error", void 0), y(this, ie, void 0), y(this, vr, A ? x : null), y(this, fe, void 0), y(this, pt, void 0), y(this, X, void 0), y(this, ue, null), y(this, B, null), y(this, re, null), y(this, Ce, null), y(this, ze, 0), y(this, Ie, 0), y(this, Et, !1), y(this, hr, /* @__PURE__ */ new Set()), y(this, _r, /* @__PURE__ */ new Set()), y(this, Me, null), y(this, Kr, ls(() => (w(Me, this, Fe(a(ze, this))), () => {
307
+ w(Me, this, null);
308
+ }))), w(ie, this, e), w(fe, this, t), w(pt, this, (i) => {
309
+ var s = b;
309
310
  s.b = this, s.f |= 128, r(i);
310
- }), this.parent = $.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), w(J, this, Ir(() => {
311
- if (L) {
312
- const i = a(ur, this);
313
- Zt();
311
+ }), this.parent = b.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), w(X, this, jr(() => {
312
+ if (A) {
313
+ const i = a(vr, this);
314
+ Qt();
314
315
  const s = i.data === "[!";
315
316
  if (i.data.startsWith("[?")) {
316
317
  const l = JSON.parse(i.data.slice(2));
317
- b(W, this, as).call(this, l);
318
- } else s ? b(W, this, ls).call(this) : b(W, this, ss).call(this);
319
- } else b(W, this, En).call(this);
320
- }, rs)), L && w(se, this, M);
318
+ $(j, this, ds).call(this, l);
319
+ } else s ? $(j, this, vs).call(this) : $(j, this, cs).call(this);
320
+ } else $(j, this, Mn).call(this);
321
+ }, os)), A && w(ie, this, x);
321
322
  }
322
323
  defer_effect(e) {
323
- $n(e, a(cr, this), a(dr, this));
324
+ Sn(e, a(hr, this), a(_r, this));
324
325
  }
325
326
  is_rendered() {
326
327
  return !this.is_pending && (!this.parent || this.parent.is_rendered());
327
328
  }
328
329
  has_pending_snippet() {
329
- return !!a(ue, this).pending;
330
+ return !!a(fe, this).pending;
330
331
  }
331
332
  update_pending_count(e, t) {
332
- b(W, this, xn).call(this, e, t), w(Be, this, a(Be, this) + e), !(!a(xe, this) || a(Et, this)) && (w(Et, this, !0), ye(() => {
333
- w(Et, this, !1), a(xe, this) && et(a(xe, this), a(Be, this));
333
+ $(j, this, Tn).call(this, e, t), w(ze, this, a(ze, this) + e), !(!a(Me, this) || a(Et, this)) && (w(Et, this, !0), ye(() => {
334
+ w(Et, this, !1), a(Me, this) && et(a(Me, this), a(ze, this));
334
335
  }));
335
336
  }
336
337
  get_effect_pending() {
337
- return a(Yr, this).call(this), x(a(xe, this));
338
+ return a(Kr, this).call(this), T(a(Me, this));
338
339
  }
339
340
  error(e) {
340
- if (!a(ue, this).onerror && !a(ue, this).failed) throw e;
341
- k?.is_fork ? (a(ce, this) && k.skip_effect(a(ce, this)), a(z, this) && k.skip_effect(a(z, this)), a(ne, this) && k.skip_effect(a(ne, this)), k.oncommit(() => {
342
- b(W, this, Vr).call(this, e);
343
- })) : b(W, this, Vr).call(this, e);
341
+ if (!a(fe, this).onerror && !a(fe, this).failed) throw e;
342
+ k?.is_fork ? (a(ue, this) && k.skip_effect(a(ue, this)), a(B, this) && k.skip_effect(a(B, this)), a(re, this) && k.skip_effect(a(re, this)), k.oncommit(() => {
343
+ $(j, this, Xr).call(this, e);
344
+ })) : $(j, this, Xr).call(this, e);
344
345
  }
345
346
  };
346
- function ss() {
347
+ function cs() {
347
348
  try {
348
- w(ce, this, ee(() => a(pt, this).call(this, a(se, this))));
349
+ w(ue, this, Q(() => a(pt, this).call(this, a(ie, this))));
349
350
  } catch (e) {
350
351
  this.error(e);
351
352
  }
352
353
  }
353
- function as(e) {
354
- const t = a(ue, this).failed, { reset: r, invoke_onerror: n } = b(W, this, Sn).call(this, e);
355
- ye(n), t && w(ne, this, ee(() => {
356
- t(a(se, this), () => e, () => r);
354
+ function ds(e) {
355
+ const t = a(fe, this).failed, { reset: r, invoke_onerror: n } = $(j, this, xn).call(this, e);
356
+ ye(n), t && w(re, this, Q(() => {
357
+ t(a(ie, this), () => e, () => r);
357
358
  }));
358
359
  }
359
- function Sn(e) {
360
+ function xn(e) {
360
361
  var t = !1, r = !1;
361
362
  const n = () => {
362
363
  if (t) {
363
- Yi();
364
+ Qi();
364
365
  return;
365
366
  }
366
- t = !0, r && Bi(), a(ne, this) !== null && Ue(a(ne, this), () => {
367
- w(ne, this, null);
368
- }), b(W, this, Mr).call(this, () => {
369
- b(W, this, En).call(this);
367
+ t = !0, r && Ji(), a(re, this) !== null && Ge(a(re, this), () => {
368
+ w(re, this, null);
369
+ }), $(j, this, Ar).call(this, () => {
370
+ $(j, this, Mn).call(this);
370
371
  });
371
372
  };
372
373
  return {
373
374
  reset: n,
374
375
  invoke_onerror: () => {
375
376
  try {
376
- r = !0, a(ue, this).onerror?.(e, n), r = !1;
377
+ r = !0, a(fe, this).onerror?.(e, n), r = !1;
377
378
  } catch (s) {
378
- Ee(s, a(J, this) && a(J, this).parent);
379
+ xe(s, a(X, this) && a(X, this).parent);
379
380
  }
380
381
  }
381
382
  };
382
383
  }
383
- function ls() {
384
- const e = a(ue, this).pending;
385
- e && (this.is_pending = !0, w(z, this, ee(() => e(a(se, this)))), ye(() => {
386
- var t = w(Ne, this, document.createDocumentFragment()), r = Z();
387
- t.append(r), w(ce, this, b(W, this, Mr).call(this, () => ee(() => a(pt, this).call(this, r)))), a(Ce, this) === 0 && (a(se, this).before(t), w(Ne, this, null), Ue(a(z, this), () => {
388
- w(z, this, null);
389
- }), b(W, this, xr).call(this, k));
384
+ function vs() {
385
+ const e = a(fe, this).pending;
386
+ e && (this.is_pending = !0, w(B, this, Q(() => e(a(ie, this)))), ye(() => {
387
+ var t = w(Ce, this, document.createDocumentFragment()), r = J();
388
+ t.append(r), w(ue, this, $(j, this, Ar).call(this, () => Q(() => a(pt, this).call(this, r)))), a(Ie, this) === 0 && (a(ie, this).before(t), w(Ce, this, null), Ge(a(B, this), () => {
389
+ w(B, this, null);
390
+ }), $(j, this, Tr).call(this, k));
390
391
  }));
391
392
  }
392
- function En() {
393
+ function Mn() {
393
394
  try {
394
- if (this.is_pending = this.has_pending_snippet(), w(Ce, this, 0), w(Be, this, 0), w(ce, this, ee(() => {
395
- a(pt, this).call(this, a(se, this));
396
- })), a(Ce, this) > 0) {
397
- var e = w(Ne, this, document.createDocumentFragment());
398
- jr(a(ce, this), e);
399
- const t = a(ue, this).pending;
400
- w(z, this, ee(() => t(a(se, this))));
401
- } else b(W, this, xr).call(this, k);
395
+ if (this.is_pending = this.has_pending_snippet(), w(Ie, this, 0), w(ze, this, 0), w(ue, this, Q(() => {
396
+ a(pt, this).call(this, a(ie, this));
397
+ })), a(Ie, this) > 0) {
398
+ var e = w(Ce, this, document.createDocumentFragment());
399
+ Dr(a(ue, this), e);
400
+ const t = a(fe, this).pending;
401
+ w(B, this, Q(() => t(a(ie, this))));
402
+ } else $(j, this, Tr).call(this, k);
402
403
  } catch (t) {
403
404
  this.error(t);
404
405
  }
405
406
  }
406
- function xr(e) {
407
- this.is_pending = !1, e.transfer_effects(a(cr, this), a(dr, this));
407
+ function Tr(e) {
408
+ this.is_pending = !1, e.transfer_effects(a(hr, this), a(_r, this));
408
409
  }
409
- function Mr(e) {
410
- var t = $, r = E, n = P;
411
- de(a(J, this)), te(a(J, this)), Ze(a(J, this).ctx);
410
+ function Ar(e) {
411
+ var t = b, r = E, n = I;
412
+ de(a(X, this)), ee(a(X, this)), Ze(a(X, this).ctx);
412
413
  try {
413
- return Ge.ensure(), e();
414
+ return Ue.ensure(), e();
414
415
  } catch (i) {
415
- return yn(i), null;
416
+ return $n(i), null;
416
417
  } finally {
417
- de(t), te(r), Ze(n);
418
+ de(t), ee(r), Ze(n);
418
419
  }
419
420
  }
420
- function xn(e, t) {
421
+ function Tn(e, t) {
421
422
  if (!this.has_pending_snippet()) {
422
423
  if (this.parent) {
423
424
  var r;
424
- b(W, r = this.parent, xn).call(r, e, t);
425
+ $(j, r = this.parent, Tn).call(r, e, t);
425
426
  }
426
427
  return;
427
428
  }
428
- w(Ce, this, a(Ce, this) + e), a(Ce, this) === 0 && (b(W, this, xr).call(this, t), a(z, this) && Ue(a(z, this), () => {
429
- w(z, this, null);
430
- }), a(Ne, this) && (a(se, this).before(a(Ne, this)), w(Ne, this, null)));
429
+ w(Ie, this, a(Ie, this) + e), a(Ie, this) === 0 && ($(j, this, Tr).call(this, t), a(B, this) && Ge(a(B, this), () => {
430
+ w(B, this, null);
431
+ }), a(Ce, this) && (a(ie, this).before(a(Ce, this)), w(Ce, this, null)));
431
432
  }
432
- function Vr(e) {
433
- a(ce, this) && (q(a(ce, this)), w(ce, this, null)), a(z, this) && (q(a(z, this)), w(z, this, null)), a(ne, this) && (q(a(ne, this)), w(ne, this, null)), L && (U(a(ur, this)), Vi(), U(Ft()));
434
- let t = a(ue, this).failed;
433
+ function Xr(e) {
434
+ a(ue, this) && (q(a(ue, this)), w(ue, this, null)), a(B, this) && (q(a(B, this)), w(B, this, null)), a(re, this) && (q(a(re, this)), w(re, this, null)), A && (H(a(vr, this)), es(), H(Dt()));
435
+ let t = a(fe, this).failed;
435
436
  const r = (n) => {
436
- const { reset: i, invoke_onerror: s } = b(W, this, Sn).call(this, n);
437
- s(), t && w(ne, this, b(W, this, Mr).call(this, () => {
437
+ const { reset: i, invoke_onerror: s } = $(j, this, xn).call(this, n);
438
+ s(), t && w(re, this, $(j, this, Ar).call(this, () => {
438
439
  try {
439
- return ee(() => {
440
- var l = $;
441
- l.b = this, l.f |= 128, t(a(se, this), () => n, () => i);
440
+ return Q(() => {
441
+ var l = b;
442
+ l.b = this, l.f |= 128, t(a(ie, this), () => n, () => i);
442
443
  });
443
444
  } catch (l) {
444
- return Ee(l, a(J, this).parent), null;
445
+ return xe(l, a(X, this).parent), null;
445
446
  }
446
447
  }));
447
448
  };
@@ -450,55 +451,55 @@ function Vr(e) {
450
451
  try {
451
452
  n = this.transform_error(e);
452
453
  } catch (i) {
453
- Ee(i, a(J, this) && a(J, this).parent);
454
+ xe(i, a(X, this) && a(X, this).parent);
454
455
  return;
455
456
  }
456
- n !== null && typeof n == "object" && typeof n.then == "function" ? n.then(r, (i) => Ee(i, a(J, this) && a(J, this).parent)) : r(n);
457
+ n !== null && typeof n == "object" && typeof n.then == "function" ? n.then(r, (i) => xe(i, a(X, this) && a(X, this).parent)) : r(n);
457
458
  });
458
459
  }
459
- function os(e, t, r, n) {
460
- const i = bt() ? gt : Tr;
460
+ function hs(e, t, r, n) {
461
+ const i = bt() ? gt : Lr;
461
462
  var s = e.filter((u) => !u.settled), l = t.map(i);
462
463
  if (r.length === 0 && s.length === 0) {
463
464
  n(l);
464
465
  return;
465
466
  }
466
- var o = $, f = fs(), h = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((u) => u.promise)) : null;
467
- function v(u) {
467
+ var o = b, f = _s(), h = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((u) => u.promise)) : null;
468
+ function _(u) {
468
469
  if ((o.f & 16384) === 0) {
469
470
  f();
470
471
  try {
471
472
  n([...l, ...u]);
472
- } catch (g) {
473
- Ee(g, o);
473
+ } catch (p) {
474
+ xe(p, o);
474
475
  }
475
- Dt();
476
+ qt();
476
477
  }
477
478
  }
478
- var d = Mn();
479
+ var d = An();
479
480
  if (r.length === 0) {
480
- h.then(() => v([])).finally(d);
481
+ h.then(() => _([])).finally(d);
481
482
  return;
482
483
  }
483
484
  function c() {
484
- Promise.all(r.map((u) => /* @__PURE__ */ us(u))).then(v).catch((u) => Ee(u, o)).finally(d);
485
+ Promise.all(r.map((u) => /* @__PURE__ */ ps(u))).then(_).catch((u) => xe(u, o)).finally(d);
485
486
  }
486
487
  h ? h.then(() => {
487
- f(), c(), Dt();
488
+ f(), c(), qt();
488
489
  }) : c();
489
490
  }
490
- function fs() {
491
- var e = $, t = E, r = P, n = k;
491
+ function _s() {
492
+ var e = b, t = E, r = I, n = k;
492
493
  if (0) var i;
493
494
  return function(l = !0) {
494
- de(e), te(t), Ze(r), l && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
495
+ de(e), ee(t), Ze(r), l && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
495
496
  };
496
497
  }
497
- function Dt(e = !0) {
498
- de(null), te(null), Ze(null), e && k?.deactivate();
498
+ function qt(e = !0) {
499
+ de(null), ee(null), Ze(null), e && k?.deactivate();
499
500
  }
500
- function Mn() {
501
- var e = $, t = e.b, r = k, n = !!t?.is_rendered();
501
+ function An() {
502
+ var e = b, t = e.b, r = k, n = !!t?.is_rendered();
502
503
  return t?.update_pending_count(1, r), r.increment(n, e), () => {
503
504
  t?.update_pending_count(-1, r), r.decrement(n, e);
504
505
  };
@@ -506,131 +507,131 @@ function Mn() {
506
507
  // @__NO_SIDE_EFFECTS__
507
508
  function gt(e) {
508
509
  var t = 2 | Y;
509
- return $ !== null && ($.f |= rt), {
510
- ctx: P,
510
+ return b !== null && (b.f |= rt), {
511
+ ctx: I,
511
512
  deps: null,
512
513
  effects: null,
513
- equals: _n,
514
+ equals: gn,
514
515
  f: t,
515
516
  fn: e,
516
517
  reactions: null,
517
518
  rv: 0,
518
- v: I,
519
+ v: W,
519
520
  wv: 0,
520
- parent: $,
521
+ parent: b,
521
522
  ac: null
522
523
  };
523
524
  }
524
525
  var at = /* @__PURE__ */ Symbol("obsolete");
525
526
  // @__NO_SIDE_EFFECTS__
526
- function us(e, t, r) {
527
- let n = $;
528
- n === null && Ci();
529
- var i = void 0, s = Fe(I), l = !E, o = /* @__PURE__ */ new Set();
530
- return As(() => {
531
- var f = $, h = dn();
527
+ function ps(e, t, r) {
528
+ let n = b;
529
+ n === null && Di();
530
+ var i = void 0, s = Fe(W), l = !E, o = /* @__PURE__ */ new Set();
531
+ return Cs(() => {
532
+ var f = b, h = hn();
532
533
  i = h.promise;
533
534
  try {
534
535
  Promise.resolve(e()).then(h.resolve, (u) => {
535
536
  u !== yt && h.reject(u);
536
- }).finally(Dt);
537
+ }).finally(qt);
537
538
  } catch (u) {
538
- h.reject(u), Dt();
539
+ h.reject(u), qt();
539
540
  }
540
- var v = k;
541
+ var _ = k;
541
542
  if (l) {
542
- if ((f.f & 32768) !== 0) var d = Mn();
543
- if (n.b?.is_rendered()) v.async_deriveds.get(f)?.reject(at);
543
+ if ((f.f & 32768) !== 0) var d = An();
544
+ if (n.b?.is_rendered()) _.async_deriveds.get(f)?.reject(at);
544
545
  else for (const u of o.values()) u.reject(at);
545
- o.add(h), v.async_deriveds.set(f, h);
546
+ o.add(h), _.async_deriveds.set(f, h);
546
547
  }
547
- const c = (u, g = void 0) => {
548
- d?.(), o.delete(h), g !== at && (v.activate(), g ? (s.f |= jt, et(s, g)) : ((s.f & 8388608) !== 0 && (s.f ^= jt), et(s, u)), v.deactivate());
548
+ const c = (u, p = void 0) => {
549
+ d?.(), o.delete(h), p !== at && (_.activate(), p ? (s.f |= Ft, et(s, p)) : ((s.f & 8388608) !== 0 && (s.f ^= Ft), et(s, u)), _.deactivate());
549
550
  };
550
551
  h.promise.then(c, (u) => c(null, u || "unknown"));
551
- }), Bn(() => {
552
+ }), Yn(() => {
552
553
  for (const f of o) f.reject(at);
553
554
  }), new Promise((f) => {
554
- function h(v) {
555
+ function h(_) {
555
556
  function d() {
556
- v === i ? f(s) : h(i);
557
+ _ === i ? f(s) : h(i);
557
558
  }
558
- v.then(d, d);
559
+ _.then(d, d);
559
560
  }
560
561
  h(i);
561
562
  });
562
563
  }
563
564
  // @__NO_SIDE_EFFECTS__
564
- function tr(e) {
565
+ function rr(e) {
565
566
  const t = /* @__PURE__ */ gt(e);
566
- return we || Zn(t), t;
567
+ return we || ei(t), t;
567
568
  }
568
569
  // @__NO_SIDE_EFFECTS__
569
- function Tr(e) {
570
+ function Lr(e) {
570
571
  const t = /* @__PURE__ */ gt(e);
571
- return t.equals = pn, t;
572
+ return t.equals = mn, t;
572
573
  }
573
- function cs(e) {
574
+ function gs(e) {
574
575
  var t = e.effects;
575
576
  if (t !== null) {
576
577
  e.effects = null;
577
578
  for (var r = 0; r < t.length; r += 1) q(t[r]);
578
579
  }
579
580
  }
580
- function Ar(e) {
581
- var t, r = $, n = e.parent;
582
- if (!be && n !== null && e.v !== I && (n.f & 24576) !== 0)
583
- return zi(), e.v;
581
+ function Or(e) {
582
+ var t, r = b, n = e.parent;
583
+ if (!be && n !== null && e.v !== W && (n.f & 24576) !== 0)
584
+ return Zi(), e.v;
584
585
  de(n);
585
586
  try {
586
- e.f &= ~wt, cs(e), t = ri(e);
587
+ e.f &= ~wt, gs(e), t = ii(e);
587
588
  } finally {
588
589
  de(r);
589
590
  }
590
591
  return t;
591
592
  }
592
- function Tn(e) {
593
- var t = Ar(e);
594
- if (!e.equals(t) && (e.wv = ei(), (!k?.is_fork || e.deps === null) && (k !== null ? (k.capture(e, t, !0), hr?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
595
- N(e, Q);
593
+ function Ln(e) {
594
+ var t = Or(e);
595
+ if (!e.equals(t) && (e.wv = ri(), (!k?.is_fork || e.deps === null) && (k !== null ? (k.capture(e, t, !0), pr?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
596
+ O(e, Z);
596
597
  return;
597
598
  }
598
- be || (D !== null ? (Cr() || k?.is_fork) && D.set(e, t) : Sr(e));
599
+ be || (D !== null ? (Pr() || k?.is_fork) && D.set(e, t) : xr(e));
599
600
  }
600
- function ds(e) {
601
+ function ms(e) {
601
602
  if (e.effects !== null)
602
603
  for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && $t(() => {
603
604
  t.ac.abort(yt), t.ac = null;
604
- }), t.fn !== null && (t.teardown = $i), mt(t, 0), Wr(t));
605
+ }), t.fn !== null && (t.teardown = Ti), mt(t, 0), Fr(t));
605
606
  }
606
- function An(e) {
607
+ function On(e) {
607
608
  if (e.effects !== null)
608
609
  for (const t of e.effects) t.teardown && t.fn !== null && tt(t);
609
610
  }
610
- var Ln, qt = null, ze = null, k = null, hr = null, D = null, vr = null, ht = !1, rr = !1, Qe = null, Gt = null, On = 0;
611
- var hs = 1, Ut = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), C = /* @__PURE__ */ new WeakSet(), Ge = class Rn {
611
+ var Rn, Ut = null, Be = null, k = null, pr = null, D = null, gr = null, vt = !1, nr = !1, Qe = null, Gt = null, Nn = 0;
612
+ var ws = 1, Ht = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakSet(), Ue = class Cn {
612
613
  constructor() {
613
- Er(this, C), O(this, "id", hs++), y(this, Ut, !1), O(this, "linked", !0), y(this, Pe, null), y(this, Le, null), O(this, "async_deriveds", /* @__PURE__ */ new Map()), O(this, "current", /* @__PURE__ */ new Map()), O(this, "previous", /* @__PURE__ */ new Map()), y(this, Ht, /* @__PURE__ */ new Set()), y(this, xt, /* @__PURE__ */ new Set()), y(this, Ye, 0), y(this, Te, /* @__PURE__ */ new Map()), y(this, lt, null), y(this, X, []), y(this, _r, []), y(this, je, /* @__PURE__ */ new Set()), y(this, me, /* @__PURE__ */ new Set()), y(this, Se, /* @__PURE__ */ new Map()), y(this, Ot, /* @__PURE__ */ new Set()), O(this, "is_fork", !1), y(this, ot, !1), ze === null ? qt = ze = this : (w(Le, ze, this), w(Pe, this, ze)), ze = this;
614
+ Mr(this, R), L(this, "id", ws++), y(this, Ht, !1), L(this, "linked", !0), y(this, Pe, null), y(this, Oe, null), L(this, "async_deriveds", /* @__PURE__ */ new Map()), L(this, "current", /* @__PURE__ */ new Map()), L(this, "previous", /* @__PURE__ */ new Map()), y(this, zt, /* @__PURE__ */ new Set()), y(this, xt, /* @__PURE__ */ new Set()), y(this, Ye, 0), y(this, Ae, /* @__PURE__ */ new Map()), y(this, lt, null), y(this, K, []), y(this, mr, []), y(this, je, /* @__PURE__ */ new Set()), y(this, me, /* @__PURE__ */ new Set()), y(this, Ee, /* @__PURE__ */ new Map()), y(this, Ot, /* @__PURE__ */ new Set()), L(this, "is_fork", !1), y(this, ot, !1), Be === null ? Ut = Be = this : (w(Oe, Be, this), w(Pe, this, Be)), Be = this;
614
615
  }
615
616
  skip_effect(t) {
616
- a(Se, this).has(t) || a(Se, this).set(t, {
617
+ a(Ee, this).has(t) || a(Ee, this).set(t, {
617
618
  d: [],
618
619
  m: []
619
620
  }), a(Ot, this).delete(t);
620
621
  }
621
622
  unskip_effect(t, r = (n) => this.schedule(n)) {
622
- var n = a(Se, this).get(t);
623
+ var n = a(Ee, this).get(t);
623
624
  if (n) {
624
- a(Se, this).delete(t);
625
+ a(Ee, this).delete(t);
625
626
  for (var i of n.d)
626
- N(i, Y), r(i);
627
+ O(i, Y), r(i);
627
628
  for (i of n.m)
628
- N(i, qe), r(i);
629
+ O(i, qe), r(i);
629
630
  }
630
631
  a(Ot, this).add(t);
631
632
  }
632
633
  capture(t, r, n = !1) {
633
- t.v !== I && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [r, n]), D?.set(t, r)), this.is_fork || (t.v = r);
634
+ t.v !== W && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [r, n]), D?.set(t, r)), this.is_fork || (t.v = r);
634
635
  }
635
636
  activate() {
636
637
  k = this;
@@ -640,30 +641,30 @@ var hs = 1, Ut = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap
640
641
  }
641
642
  flush() {
642
643
  try {
643
- rr = !0, k = this, b(C, this, Bt).call(this);
644
+ nr = !0, k = this, $(R, this, Bt).call(this);
644
645
  } finally {
645
- On = 0, vr = null, Qe = null, Gt = null, rr = !1, k = null, D = null, Ie.clear();
646
+ Nn = 0, gr = null, Qe = null, Gt = null, nr = !1, k = null, D = null, ce.clear();
646
647
  }
647
648
  }
648
649
  discard() {
649
650
  for (const t of a(xt, this)) t(this);
650
651
  a(xt, this).clear();
651
652
  for (const t of this.async_deriveds.values()) t.reject(at);
652
- b(C, this, zt).call(this), a(lt, this)?.resolve();
653
+ $(R, this, Yt).call(this), a(lt, this)?.resolve();
653
654
  }
654
655
  register_created_effect(t) {
655
- a(_r, this).push(t);
656
+ a(mr, this).push(t);
656
657
  }
657
658
  increment(t, r) {
658
659
  if (w(Ye, this, a(Ye, this) + 1), t) {
659
- let n = a(Te, this).get(r) ?? 0;
660
- a(Te, this).set(r, n + 1);
660
+ let n = a(Ae, this).get(r) ?? 0;
661
+ a(Ae, this).set(r, n + 1);
661
662
  }
662
663
  }
663
664
  decrement(t, r) {
664
665
  if (w(Ye, this, a(Ye, this) - 1), t) {
665
- let n = a(Te, this).get(r) ?? 0;
666
- n === 1 ? a(Te, this).delete(r) : a(Te, this).set(r, n - 1);
666
+ let n = a(Ae, this).get(r) ?? 0;
667
+ n === 1 ? a(Ae, this).delete(r) : a(Ae, this).set(r, n - 1);
667
668
  }
668
669
  a(ot, this) || (w(ot, this, !0), ye(() => {
669
670
  w(ot, this, !1), this.linked && this.flush();
@@ -675,31 +676,31 @@ var hs = 1, Ut = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap
675
676
  t.clear(), r.clear();
676
677
  }
677
678
  oncommit(t) {
678
- a(Ht, this).add(t);
679
+ a(zt, this).add(t);
679
680
  }
680
681
  ondiscard(t) {
681
682
  a(xt, this).add(t);
682
683
  }
683
684
  settled() {
684
- return (a(lt, this) ?? w(lt, this, dn())).promise;
685
+ return (a(lt, this) ?? w(lt, this, hn())).promise;
685
686
  }
686
687
  static ensure() {
687
688
  if (k === null) {
688
- const t = k = new Rn();
689
- !rr && !ht && ye(() => {
690
- a(Ut, t) || t.flush();
689
+ const t = k = new Cn();
690
+ !nr && !vt && ye(() => {
691
+ a(Ht, t) || t.flush();
691
692
  });
692
693
  }
693
694
  return k;
694
695
  }
695
696
  apply() {
696
- if (!we || !this.is_fork && a(Pe, this) === null && a(Le, this) === null) {
697
+ if (!we || !this.is_fork && a(Pe, this) === null && a(Oe, this) === null) {
697
698
  D = null;
698
699
  return;
699
700
  }
700
701
  D = /* @__PURE__ */ new Map();
701
702
  for (const [r, [n]] of this.current) D.set(r, n);
702
- for (let r = qt; r !== null; r = a(Le, r))
703
+ for (let r = Ut; r !== null; r = a(Oe, r))
703
704
  if (!(r === this || r.is_fork)) {
704
705
  var t = !1;
705
706
  if (r.id < this.id) {
@@ -714,29 +715,29 @@ var hs = 1, Ut = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap
714
715
  }
715
716
  }
716
717
  schedule(t) {
717
- if (vr = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
718
+ if (gr = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
718
719
  t.b.defer_effect(t);
719
720
  return;
720
721
  }
721
722
  for (var r = t; r.parent !== null; ) {
722
723
  r = r.parent;
723
724
  var n = r.f;
724
- if (Qe !== null && r === $ && (we || (E === null || (E.f & 2) === 0) && !Qi))
725
+ if (Qe !== null && r === b && (we || (E === null || (E.f & 2) === 0) && !ss))
725
726
  return;
726
727
  if ((n & 96) !== 0) {
727
728
  if ((n & 1024) === 0) return;
728
- r.f ^= Q;
729
+ r.f ^= Z;
729
730
  }
730
731
  }
731
- a(X, this).push(r);
732
+ a(K, this).push(r);
732
733
  }
733
734
  };
734
- Ln = Ge;
735
- function Kr() {
735
+ Rn = Ue;
736
+ function Jr() {
736
737
  if (this.is_fork) return !0;
737
- for (const r of a(Te, this).keys()) {
738
+ for (const r of a(Ae, this).keys()) {
738
739
  for (var e = r, t = !1; e.parent !== null; ) {
739
- if (a(Se, this).has(e)) {
740
+ if (a(Ee, this).has(e)) {
740
741
  t = !0;
741
742
  break;
742
743
  }
@@ -747,50 +748,51 @@ function Kr() {
747
748
  return !1;
748
749
  }
749
750
  function Bt() {
750
- w(Ut, this, !0), On++ > 1e3 && (b(C, this, zt).call(this), gs());
751
+ w(Ht, this, !0), Nn++ > 1e3 && ($(R, this, Yt).call(this), ks());
751
752
  for (const o of a(je, this))
752
- a(me, this).delete(o), N(o, Y), this.schedule(o);
753
+ a(me, this).delete(o), O(o, Y), this.schedule(o);
753
754
  for (const o of a(me, this))
754
- N(o, qe), this.schedule(o);
755
- const e = a(X, this);
756
- w(X, this, []), this.apply();
755
+ O(o, qe), this.schedule(o);
756
+ const e = a(K, this);
757
+ w(K, this, []), this.apply();
757
758
  var t = Qe = [], r = [], n = Gt = [];
758
759
  for (const o of e) try {
759
- b(C, this, Nn).call(this, o, t, r);
760
+ $(R, this, In).call(this, o, t, r);
760
761
  } catch (f) {
761
- throw In(o), b(C, this, Kr).call(this) || this.discard(), f;
762
+ throw jn(o), $(R, this, Jr).call(this) || this.discard(), f;
762
763
  }
763
764
  if (k = null, n.length > 0) {
764
- var i = Ln.ensure();
765
+ var i = Rn.ensure();
765
766
  for (const o of n) i.schedule(o);
766
767
  }
767
- if (Qe = null, Gt = null, b(C, this, Kr).call(this)) {
768
- b(C, this, ft).call(this, r), b(C, this, ft).call(this, t);
769
- for (const [o, f] of a(Se, this)) Pn(o, f);
770
- n.length > 0 && b(C, k, Bt).call(k);
768
+ if (Qe = null, Gt = null, $(R, this, Jr).call(this)) {
769
+ $(R, this, ft).call(this, r), $(R, this, ft).call(this, t);
770
+ for (const [o, f] of a(Ee, this)) Wn(o, f);
771
+ n.length > 0 && $(R, k, Bt).call(k);
771
772
  return;
772
773
  }
773
- const s = b(C, this, vs).call(this);
774
+ const s = $(R, this, ys).call(this);
774
775
  if (s) {
775
- b(C, this, ft).call(this, r), b(C, this, ft).call(this, t), b(C, s, _s).call(s, this);
776
+ $(R, this, ft).call(this, r), $(R, this, ft).call(this, t), $(R, s, bs).call(s, this);
776
777
  return;
777
778
  }
778
779
  a(je, this).clear(), a(me, this).clear();
779
- for (const o of a(Ht, this)) o(this);
780
- a(Ht, this).clear(), hr = this, Xr(r), Xr(t), hr = null, a(lt, this)?.resolve();
780
+ for (const o of a(zt, this)) o(this);
781
+ a(zt, this).clear(), pr = this, Zr(r), Zr(t), pr = null, a(lt, this)?.resolve();
781
782
  var l = k;
782
- if (a(Ye, this) === 0 && (a(X, this).length === 0 || l !== null) && (b(C, this, zt).call(this), we && (b(C, this, ps).call(this), k = l)), a(X, this).length > 0) if (l !== null) {
783
- const o = l;
784
- a(X, o).push(...a(X, this).filter((f) => !a(X, o).includes(f)));
785
- } else l = this;
786
- l !== null && b(C, l, Bt).call(l);
787
- }
788
- function Nn(e, t, r) {
789
- e.f ^= Q;
783
+ if (a(Ye, this) === 0 && (a(K, this).length === 0 || l !== null) && ($(R, this, Yt).call(this), we && ($(R, this, $s).call(this), k = l)), a(K, this).length > 0)
784
+ if (l !== null) {
785
+ const o = l;
786
+ a(K, o).push(...a(K, this).filter((f) => !a(K, o).includes(f)));
787
+ } else l = this;
788
+ l !== null && (ce.clear(), $(R, l, Bt).call(l));
789
+ }
790
+ function In(e, t, r) {
791
+ e.f ^= Z;
790
792
  for (var n = e.first; n !== null; ) {
791
793
  var i = n.f, s = (i & 96) !== 0;
792
- if (!(s && (i & 1024) !== 0 || (i & 8192) !== 0 || a(Se, this).has(n)) && n.fn !== null) {
793
- s ? n.f ^= Q : (i & 4) !== 0 ? t.push(n) : we && (i & 16777224) !== 0 ? r.push(n) : kt(n) && ((i & 16) !== 0 && a(me, this).add(n), tt(n));
794
+ if (!(s && (i & 1024) !== 0 || (i & 8192) !== 0 || a(Ee, this).has(n)) && n.fn !== null) {
795
+ s ? n.f ^= Z : (i & 4) !== 0 ? t.push(n) : we && (i & 16777224) !== 0 ? r.push(n) : kt(n) && ((i & 16) !== 0 && a(me, this).add(n), tt(n));
794
796
  var l = n.first;
795
797
  if (l !== null) {
796
798
  n = l;
@@ -807,7 +809,7 @@ function Nn(e, t, r) {
807
809
  }
808
810
  }
809
811
  }
810
- function vs() {
812
+ function ys() {
811
813
  for (var e = a(Pe, this); e !== null; ) {
812
814
  if (!e.is_fork) {
813
815
  for (const [t, [, r]] of this.current) if (e.current.has(t) && !r) return e;
@@ -816,7 +818,7 @@ function vs() {
816
818
  }
817
819
  return null;
818
820
  }
819
- function _s(e) {
821
+ function bs(e) {
820
822
  for (const [r, n] of e.current)
821
823
  !this.previous.has(r) && e.previous.has(r) && this.previous.set(r, e.previous.get(r)), this.current.set(r, n);
822
824
  for (const [r, n] of e.async_deriveds) {
@@ -832,156 +834,156 @@ function _s(e) {
832
834
  if ((i & 2) !== 0) t(l);
833
835
  else {
834
836
  var s = l;
835
- i & 4194320 && !this.async_deriveds.has(s) && (a(me, this).delete(s), N(s, Y), this.schedule(s));
837
+ i & 4194320 && !this.async_deriveds.has(s) && (a(me, this).delete(s), O(s, Y), this.schedule(s));
836
838
  }
837
839
  }
838
840
  };
839
841
  for (const r of this.current.keys()) t(r);
840
- this.oncommit(() => e.discard()), b(C, e, zt).call(e), k = this, b(C, this, Bt).call(this);
842
+ this.oncommit(() => e.discard()), $(R, e, Yt).call(e), k = this, $(R, this, Bt).call(this);
841
843
  }
842
844
  function ft(e) {
843
- for (var t = 0; t < e.length; t += 1) $n(e[t], a(je, this), a(me, this));
845
+ for (var t = 0; t < e.length; t += 1) Sn(e[t], a(je, this), a(me, this));
844
846
  }
845
- function ps() {
846
- for (let v = qt; v !== null; v = a(Le, v)) {
847
- var e = v.id < this.id, t = [];
847
+ function $s() {
848
+ for (let _ = Ut; _ !== null; _ = a(Oe, _)) {
849
+ var e = _.id < this.id, t = [];
848
850
  for (const [d, [c, u]] of this.current) {
849
- if (v.current.has(d)) {
850
- var r = v.current.get(d)[0];
851
- if (e && c !== r) v.current.set(d, [c, u]);
851
+ if (_.current.has(d)) {
852
+ var r = _.current.get(d)[0];
853
+ if (e && c !== r) _.current.set(d, [c, u]);
852
854
  else continue;
853
855
  }
854
856
  t.push(d);
855
857
  }
856
858
  if (e) for (const [d, c] of this.async_deriveds) {
857
- const u = v.async_deriveds.get(d);
859
+ const u = _.async_deriveds.get(d);
858
860
  u && c.promise.then(u.resolve).catch(u.reject);
859
861
  }
860
- var n = [...v.current.keys()].filter((d) => !v.current.get(d)[1]);
861
- if (!(!a(Ut, v) || n.length === 0)) {
862
+ var n = [..._.current.keys()].filter((d) => !_.current.get(d)[1]);
863
+ if (!(!a(Ht, _) || n.length === 0)) {
862
864
  var i = n.filter((d) => !this.current.has(d));
863
865
  if (i.length === 0)
864
- e && v.discard();
866
+ e && _.discard();
865
867
  else if (t.length > 0) {
866
- if (e) for (const d of a(Ot, this)) v.unskip_effect(d, (c) => {
867
- (c.f & 4194320) !== 0 ? v.schedule(c) : b(C, v, ft).call(v, [c]);
868
+ if (e) for (const d of a(Ot, this)) _.unskip_effect(d, (c) => {
869
+ (c.f & 4194320) !== 0 ? _.schedule(c) : $(R, _, ft).call(_, [c]);
868
870
  });
869
- v.activate();
871
+ _.activate();
870
872
  var s = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
871
- for (var o of t) Cn(o, i, s, l);
873
+ for (var o of t) Pn(o, i, s, l);
872
874
  l = /* @__PURE__ */ new Map();
873
- var f = [...v.current].filter(([d, c]) => {
875
+ var f = [..._.current].filter(([d, c]) => {
874
876
  const u = this.current.get(d);
875
877
  return u ? u[0] !== c[0] || u[1] !== c[1] : !0;
876
878
  }).map(([d]) => d);
877
879
  if (f.length > 0)
878
- for (const d of a(_r, this)) (d.f & 155648) === 0 && Lr(d, f, l) && ((d.f & 4194320) !== 0 ? (N(d, Y), v.schedule(d)) : a(je, v).add(d));
879
- if (a(X, v).length > 0 && !a(ot, v)) {
880
- v.apply();
881
- for (var h of a(X, v)) b(C, v, Nn).call(v, h, [], []);
882
- w(X, v, []);
880
+ for (const d of a(mr, this)) (d.f & 155648) === 0 && Rr(d, f, l) && ((d.f & 4194320) !== 0 ? (O(d, Y), _.schedule(d)) : a(je, _).add(d));
881
+ if (a(K, _).length > 0 && !a(ot, _)) {
882
+ _.apply();
883
+ for (var h of a(K, _)) $(R, _, In).call(_, h, [], []);
884
+ w(K, _, []);
883
885
  }
884
- v.deactivate();
886
+ _.deactivate();
885
887
  }
886
888
  }
887
889
  }
888
890
  }
889
- function zt() {
891
+ function Yt() {
890
892
  if (this.linked) {
891
- var e = a(Pe, this), t = a(Le, this);
892
- e === null ? qt = t : w(Le, e, t), t === null ? ze = e : w(Pe, t, e), this.linked = !1;
893
+ var e = a(Pe, this), t = a(Oe, this);
894
+ e === null ? Ut = t : w(Oe, e, t), t === null ? Be = e : w(Pe, t, e), this.linked = !1;
893
895
  }
894
896
  }
895
- function pr(e) {
896
- var t = ht;
897
- ht = !0;
897
+ function Rt(e) {
898
+ var t = vt;
899
+ vt = !0;
898
900
  try {
899
901
  var r;
900
902
  for (e && (k !== null && !k.is_fork && k.flush(), r = e()); ; ) {
901
- if (Ji(), k === null) return r;
903
+ if (ns(), k === null) return r;
902
904
  k.flush();
903
905
  }
904
906
  } finally {
905
- ht = t;
907
+ vt = t;
906
908
  }
907
909
  }
908
- function gs() {
910
+ function ks() {
909
911
  if (0) {
910
912
  var e;
911
913
  for (const r of k.current.keys()) for (const [n, i] of r.updated ?? [])
912
914
  var t;
913
915
  }
914
916
  try {
915
- Fi();
917
+ zi();
916
918
  } catch (r) {
917
- Ee(r, vr);
919
+ xe(r, gr);
918
920
  }
919
921
  }
920
- var oe = null;
921
- function Xr(e) {
922
+ var le = null;
923
+ function Zr(e) {
922
924
  var t = e.length;
923
925
  if (t !== 0) {
924
926
  for (var r = 0; r < t; ) {
925
927
  var n = e[r++];
926
- if ((n.f & 24576) === 0 && kt(n) && (oe = /* @__PURE__ */ new Set(), tt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Kn(n), oe?.size > 0)) {
927
- Ie.clear();
928
- for (const i of oe) {
928
+ if ((n.f & 24576) === 0 && kt(n) && (le = /* @__PURE__ */ new Set(), tt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Jn(n), le?.size > 0)) {
929
+ ce.clear();
930
+ for (const i of le) {
929
931
  if ((i.f & 24576) !== 0) continue;
930
932
  const s = [i];
931
933
  let l = i.parent;
932
934
  for (; l !== null; )
933
- oe.has(l) && (oe.delete(l), s.push(l)), l = l.parent;
935
+ le.has(l) && (le.delete(l), s.push(l)), l = l.parent;
934
936
  for (let o = s.length - 1; o >= 0; o--) {
935
937
  const f = s[o];
936
938
  (f.f & 24576) === 0 && tt(f);
937
939
  }
938
940
  }
939
- oe.clear();
941
+ le.clear();
940
942
  }
941
943
  }
942
- oe = null;
944
+ le = null;
943
945
  }
944
946
  }
945
- function Cn(e, t, r, n) {
947
+ function Pn(e, t, r, n) {
946
948
  if (!r.has(e) && (r.add(e), e.reactions !== null))
947
949
  for (const i of e.reactions) {
948
950
  const s = i.f;
949
- (s & 2) !== 0 ? Cn(i, t, r, n) : (s & 4194320) !== 0 && (s & 2048) === 0 && Lr(i, t, n) && (N(i, Y), Or(i));
951
+ (s & 2) !== 0 ? Pn(i, t, r, n) : (s & 4194320) !== 0 && (s & 2048) === 0 && Rr(i, t, n) && (O(i, Y), Nr(i));
950
952
  }
951
953
  }
952
- function Lr(e, t, r) {
954
+ function Rr(e, t, r) {
953
955
  const n = r.get(e);
954
956
  if (n !== void 0) return n;
955
957
  if (e.deps !== null) for (const i of e.deps) {
956
958
  if (Pt.call(t, i)) return !0;
957
- if ((i.f & 2) !== 0 && Lr(i, t, r))
959
+ if ((i.f & 2) !== 0 && Rr(i, t, r))
958
960
  return r.set(i, !0), !0;
959
961
  }
960
962
  return r.set(e, !1), !1;
961
963
  }
962
- function Or(e) {
964
+ function Nr(e) {
963
965
  k.schedule(e);
964
966
  }
965
- function Pn(e, t) {
967
+ function Wn(e, t) {
966
968
  if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
967
- (e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), N(e, Q);
969
+ (e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), O(e, Z);
968
970
  for (var r = e.first; r !== null; )
969
- Pn(r, t), r = r.next;
971
+ Wn(r, t), r = r.next;
970
972
  }
971
973
  }
972
- function In(e) {
973
- N(e, Q);
974
+ function jn(e) {
975
+ O(e, Z);
974
976
  for (var t = e.first; t !== null; )
975
- In(t), t = t.next;
977
+ jn(t), t = t.next;
976
978
  }
977
- var Yt = /* @__PURE__ */ new Set(), Ie = /* @__PURE__ */ new Map();
978
- var Wn = !1;
979
+ var Vt = /* @__PURE__ */ new Set(), ce = /* @__PURE__ */ new Map();
980
+ var Fn = !1;
979
981
  function Fe(e, t) {
980
982
  var r = {
981
983
  f: 0,
982
984
  v: e,
983
985
  reactions: null,
984
- equals: _n,
986
+ equals: gn,
985
987
  rv: 0,
986
988
  wv: 0
987
989
  };
@@ -990,38 +992,38 @@ function Fe(e, t) {
990
992
  // @__NO_SIDE_EFFECTS__
991
993
  function pe(e, t) {
992
994
  const r = Fe(e, t);
993
- return Zn(r), r;
995
+ return ei(r), r;
994
996
  }
995
997
  // @__NO_SIDE_EFFECTS__
996
- function jn(e, t = !1, r = !0) {
998
+ function Dn(e, t = !1, r = !0) {
997
999
  const n = Fe(e);
998
- if (t || (n.equals = pn), Qt && r && P !== null && P.l !== null) {
1000
+ if (t || (n.equals = mn), er && r && I !== null && I.l !== null) {
999
1001
  var i;
1000
- ((i = P.l).s ?? (i.s = [])).push(n);
1002
+ ((i = I.l).s ?? (i.s = [])).push(n);
1001
1003
  }
1002
1004
  return n;
1003
1005
  }
1004
- function fe(e, t, r = !1) {
1005
- E !== null && (!ie || (E.f & 131072) !== 0) && bt() && (E.f & 4325394) !== 0 && (ae === null || !ae.has(e)) && Hi();
1006
+ function oe(e, t, r = !1) {
1007
+ E !== null && (!ne || (E.f & 131072) !== 0) && bt() && (E.f & 4325394) !== 0 && (se === null || !se.has(e)) && Xi();
1006
1008
  let n = r ? Ke(t) : t;
1007
1009
  return et(e, n, Gt);
1008
1010
  }
1009
1011
  function et(e, t, r = null) {
1010
1012
  if (!e.equals(t)) {
1011
- Ie.set(e, be ? t : e.v);
1012
- var n = Ge.ensure();
1013
+ be ? ce.set(e, t) : ce.has(e) || ce.set(e, e.v);
1014
+ var n = Ue.ensure();
1013
1015
  if (n.capture(e, t), (e.f & 2) !== 0) {
1014
1016
  const i = e;
1015
- (e.f & 2048) !== 0 && Ar(i), D === null && Sr(i);
1017
+ (e.f & 2048) !== 0 && Or(i), D === null && xr(i);
1016
1018
  }
1017
- e.wv = ei(), Fn(e, Y, r), bt() && $ !== null && ($.f & 1024) !== 0 && ($.f & 96) === 0 && (K === null ? Ns([e]) : K.push(e)), !n.is_fork && Yt.size > 0 && !Wn && ms();
1019
+ e.wv = ri(), qn(e, Y, r), bt() && b !== null && (b.f & 1024) !== 0 && (b.f & 96) === 0 && (V === null ? js([e]) : V.push(e)), !n.is_fork && Vt.size > 0 && !Fn && Ss();
1018
1020
  }
1019
1021
  return t;
1020
1022
  }
1021
- function ms() {
1022
- Wn = !1;
1023
- for (const e of Yt) {
1024
- (e.f & 1024) !== 0 && N(e, qe);
1023
+ function Ss() {
1024
+ Fn = !1;
1025
+ for (const e of Vt) {
1026
+ (e.f & 1024) !== 0 && O(e, qe);
1025
1027
  let t;
1026
1028
  try {
1027
1029
  t = kt(e);
@@ -1030,94 +1032,94 @@ function ms() {
1030
1032
  }
1031
1033
  t && tt(e);
1032
1034
  }
1033
- Yt.clear();
1035
+ Vt.clear();
1034
1036
  }
1035
- function vt(e) {
1036
- fe(e, e.v + 1);
1037
+ function ht(e) {
1038
+ oe(e, e.v + 1);
1037
1039
  }
1038
- function Fn(e, t, r) {
1040
+ function qn(e, t, r) {
1039
1041
  var n = e.reactions;
1040
1042
  if (n !== null)
1041
1043
  for (var i = bt(), s = n.length, l = 0; l < s; l++) {
1042
1044
  var o = n[l], f = o.f;
1043
- if (!(!i && o === $)) {
1045
+ if (!(!i && o === b)) {
1044
1046
  var h = (f & Y) === 0;
1045
- if (h && N(o, t), (f & 131072) !== 0) Yt.add(o);
1047
+ if (h && O(o, t), (f & 131072) !== 0) Vt.add(o);
1046
1048
  else if ((f & 2) !== 0) {
1047
- var v = o;
1048
- D?.delete(v), (f & 65536) === 0 && (f & 512 && ($ === null || ($.f & 2097152) === 0) && (o.f |= wt), Fn(v, qe, r));
1049
+ var _ = o;
1050
+ D?.delete(_), (f & 65536) === 0 && (f & 512 && (b === null || (b.f & 2097152) === 0) && (o.f |= wt), qn(_, qe, r));
1049
1051
  } else if (h) {
1050
1052
  var d = o;
1051
- (f & 16) !== 0 && oe !== null && oe.add(d), r !== null ? r.push(d) : Or(d);
1053
+ (f & 16) !== 0 && le !== null && le.add(d), r !== null ? r.push(d) : Nr(d);
1052
1054
  }
1053
1055
  }
1054
1056
  }
1055
1057
  }
1056
- var ws = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
1058
+ var Es = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
1057
1059
  function Ke(e) {
1058
1060
  if (typeof e != "object" || e === null || dt in e) return e;
1059
- const t = cn(e);
1060
- if (t !== yi && t !== bi) return e;
1061
- var r = /* @__PURE__ */ new Map(), n = un(e), i = /* @__PURE__ */ pe(0), s = null, l = We, o = (d) => {
1061
+ const t = vn(e);
1062
+ if (t !== xi && t !== Mi) return e;
1063
+ var r = /* @__PURE__ */ new Map(), n = dn(e), i = /* @__PURE__ */ pe(0), s = null, l = We, o = (d) => {
1062
1064
  if (We === l) return d();
1063
1065
  var c = E, u = We;
1064
- te(null), tn(l);
1065
- var g = d();
1066
- return te(c), tn(u), g;
1066
+ ee(null), sn(l);
1067
+ var p = d();
1068
+ return ee(c), sn(u), p;
1067
1069
  };
1068
1070
  n && r.set("length", /* @__PURE__ */ pe(e.length, s));
1069
1071
  var f = "";
1070
1072
  let h = !1;
1071
- function v(d) {
1073
+ function _(d) {
1072
1074
  if (!h) {
1073
- h = !0, f = d, zr(i, `${f} version`);
1074
- for (const [c, u] of r) zr(u, ys(f, c));
1075
+ h = !0, f = d, Vr(i, `${f} version`);
1076
+ for (const [c, u] of r) Vr(u, xs(f, c));
1075
1077
  h = !1;
1076
1078
  }
1077
1079
  }
1078
1080
  return new Proxy(e, {
1079
1081
  defineProperty(d, c, u) {
1080
- (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Gi();
1081
- var g = r.get(c);
1082
- return g === void 0 ? o(() => {
1082
+ (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Vi();
1083
+ var p = r.get(c);
1084
+ return p === void 0 ? o(() => {
1083
1085
  var m = /* @__PURE__ */ pe(u.value, s);
1084
1086
  return r.set(c, m), m;
1085
- }) : fe(g, u.value, !0), !0;
1087
+ }) : oe(p, u.value, !0), !0;
1086
1088
  },
1087
1089
  deleteProperty(d, c) {
1088
1090
  var u = r.get(c);
1089
1091
  if (u === void 0) {
1090
1092
  if (c in d) {
1091
- const g = o(() => /* @__PURE__ */ pe(I, s));
1092
- r.set(c, g), vt(i);
1093
+ const p = o(() => /* @__PURE__ */ pe(W, s));
1094
+ r.set(c, p), ht(i);
1093
1095
  }
1094
1096
  } else
1095
- fe(u, I), vt(i);
1097
+ oe(u, W), ht(i);
1096
1098
  return !0;
1097
1099
  },
1098
1100
  get(d, c, u) {
1099
1101
  if (c === dt) return e;
1100
- var g = r.get(c), m = c in d;
1101
- if (g === void 0 && (!m || Re(d, c)?.writable) && (g = o(() => {
1102
- var p = /* @__PURE__ */ pe(Ke(m ? d[c] : I), s);
1103
- return p;
1104
- }), r.set(c, g)), g !== void 0) {
1105
- var _ = x(g);
1106
- return _ === I ? void 0 : _;
1102
+ var p = r.get(c), m = c in d;
1103
+ if (p === void 0 && (!m || Ne(d, c)?.writable) && (p = o(() => {
1104
+ var g = Ke(m ? d[c] : W), M = /* @__PURE__ */ pe(g, s);
1105
+ return M;
1106
+ }), r.set(c, p)), p !== void 0) {
1107
+ var v = T(p);
1108
+ return v === W ? void 0 : v;
1107
1109
  }
1108
1110
  return Reflect.get(d, c, u);
1109
1111
  },
1110
1112
  getOwnPropertyDescriptor(d, c) {
1111
1113
  var u = Reflect.getOwnPropertyDescriptor(d, c);
1112
1114
  if (u && "value" in u) {
1113
- var g = r.get(c);
1114
- g && (u.value = x(g));
1115
+ var p = r.get(c);
1116
+ p && (u.value = T(p));
1115
1117
  } else if (u === void 0) {
1116
- var m = r.get(c), _ = m?.v;
1117
- if (m !== void 0 && _ !== I) return {
1118
+ var m = r.get(c), v = m?.v;
1119
+ if (m !== void 0 && v !== W) return {
1118
1120
  enumerable: !0,
1119
1121
  configurable: !0,
1120
- value: _,
1122
+ value: v,
1121
1123
  writable: !0
1122
1124
  };
1123
1125
  }
@@ -1125,136 +1127,136 @@ function Ke(e) {
1125
1127
  },
1126
1128
  has(d, c) {
1127
1129
  if (c === dt) return !0;
1128
- var u = r.get(c), g = u !== void 0 && u.v !== I || Reflect.has(d, c);
1129
- return (u !== void 0 || $ !== null && (!g || Re(d, c)?.writable)) && (u === void 0 && (u = o(() => {
1130
- var m = /* @__PURE__ */ pe(g ? Ke(d[c]) : I, s);
1131
- return m;
1132
- }), r.set(c, u)), x(u) === I) ? !1 : g;
1130
+ var u = r.get(c), p = u !== void 0 && u.v !== W || Reflect.has(d, c);
1131
+ return (u !== void 0 || b !== null && (!p || Ne(d, c)?.writable)) && (u === void 0 && (u = o(() => {
1132
+ var m = p ? Ke(d[c]) : W, v = /* @__PURE__ */ pe(m, s);
1133
+ return v;
1134
+ }), r.set(c, u)), T(u) === W) ? !1 : p;
1133
1135
  },
1134
- set(d, c, u, g) {
1135
- var m = r.get(c), _ = c in d;
1136
- if (n && c === "length") for (var p = u; p < m.v; p += 1) {
1137
- var T = r.get(p + "");
1138
- T !== void 0 ? fe(T, I) : p in d && (T = o(() => /* @__PURE__ */ pe(I, s)), r.set(p + "", T));
1136
+ set(d, c, u, p) {
1137
+ var m = r.get(c), v = c in d;
1138
+ if (n && c === "length") for (var g = u; g < m.v; g += 1) {
1139
+ var M = r.get(g + "");
1140
+ M !== void 0 ? oe(M, W) : g in d && (M = o(() => /* @__PURE__ */ pe(W, s)), r.set(g + "", M));
1139
1141
  }
1140
1142
  if (m === void 0)
1141
- (!_ || Re(d, c)?.writable) && (m = o(() => /* @__PURE__ */ pe(void 0, s)), fe(m, Ke(u)), r.set(c, m));
1143
+ (!v || Ne(d, c)?.writable) && (m = o(() => /* @__PURE__ */ pe(void 0, s)), oe(m, Ke(u)), r.set(c, m));
1142
1144
  else {
1143
- _ = m.v !== I;
1144
- var A = o(() => Ke(u));
1145
- fe(m, A);
1145
+ v = m.v !== W;
1146
+ var N = o(() => Ke(u));
1147
+ oe(m, N);
1146
1148
  }
1147
1149
  var S = Reflect.getOwnPropertyDescriptor(d, c);
1148
- if (S?.set && S.set.call(g, u), !_) {
1150
+ if (S?.set && S.set.call(p, u), !v) {
1149
1151
  if (n && typeof c == "string") {
1150
- var F = r.get("length"), R = Number(c);
1151
- Number.isInteger(R) && R >= F.v && fe(F, R + 1);
1152
+ var P = r.get("length"), C = Number(c);
1153
+ Number.isInteger(C) && C >= P.v && oe(P, C + 1);
1152
1154
  }
1153
- vt(i);
1155
+ ht(i);
1154
1156
  }
1155
1157
  return !0;
1156
1158
  },
1157
1159
  ownKeys(d) {
1158
- x(i);
1160
+ T(i);
1159
1161
  var c = Reflect.ownKeys(d).filter((m) => {
1160
- var _ = r.get(m);
1161
- return _ === void 0 || _.v !== I;
1162
+ var v = r.get(m);
1163
+ return v === void 0 || v.v !== W;
1162
1164
  });
1163
- for (var [u, g] of r) g.v !== I && !(u in d) && c.push(u);
1165
+ for (var [u, p] of r) p.v !== W && !(u in d) && c.push(u);
1164
1166
  return c;
1165
1167
  },
1166
1168
  setPrototypeOf() {
1167
- Ui();
1169
+ Ki();
1168
1170
  }
1169
1171
  });
1170
1172
  }
1171
- function ys(e, t) {
1172
- return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : ws.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
1173
+ function xs(e, t) {
1174
+ return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : Es.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
1173
1175
  }
1174
- var Jr, bs, Dn, qn, Gn;
1175
- function gr() {
1176
- if (Jr === void 0) {
1177
- Jr = window, bs = document, Dn = /Firefox/.test(navigator.userAgent);
1176
+ var Qr, Ms, Un, Gn, Hn;
1177
+ function wr() {
1178
+ if (Qr === void 0) {
1179
+ Qr = window, Ms = document, Un = /Firefox/.test(navigator.userAgent);
1178
1180
  var e = Element.prototype, t = Node.prototype, r = Text.prototype;
1179
- qn = Re(t, "firstChild").get, Gn = Re(t, "nextSibling").get, Ur(e) && (e[Oi] = void 0, e[fr] = null, e[Ri] = void 0, e.__e = void 0), Ur(r) && (r[Lt] = void 0);
1181
+ Gn = Ne(t, "firstChild").get, Hn = Ne(t, "nextSibling").get, zr(e) && (e[Wi] = void 0, e[dr] = null, e[ji] = void 0, e.__e = void 0), zr(r) && (r[Lt] = void 0);
1180
1182
  }
1181
1183
  }
1182
- function Z(e = "") {
1184
+ function J(e = "") {
1183
1185
  return document.createTextNode(e);
1184
1186
  }
1185
1187
  // @__NO_SIDE_EFFECTS__
1186
1188
  function De(e) {
1187
- return qn.call(e);
1189
+ return Gn.call(e);
1188
1190
  }
1189
1191
  // @__NO_SIDE_EFFECTS__
1190
- function he(e) {
1191
- return Gn.call(e);
1192
+ function ve(e) {
1193
+ return Hn.call(e);
1192
1194
  }
1193
- function Zr(e, t) {
1194
- if (!L) return /* @__PURE__ */ De(e);
1195
- var r = /* @__PURE__ */ De(M);
1196
- if (r === null) r = M.appendChild(Z());
1195
+ function en(e, t) {
1196
+ if (!A) return /* @__PURE__ */ De(e);
1197
+ var r = /* @__PURE__ */ De(x);
1198
+ if (r === null) r = x.appendChild(J());
1197
1199
  else if (t && r.nodeType !== 3) {
1198
- var n = Z();
1199
- return r?.before(n), U(n), n;
1200
+ var n = J();
1201
+ return r?.before(n), H(n), n;
1200
1202
  }
1201
- return t && Nr(r), U(r), r;
1203
+ return t && Ir(r), H(r), r;
1202
1204
  }
1203
- function $s(e, t = !1) {
1204
- if (!L) {
1205
+ function Ts(e, t = !1) {
1206
+ if (!A) {
1205
1207
  var r = /* @__PURE__ */ De(e);
1206
- return r instanceof Comment && r.data === "" ? /* @__PURE__ */ he(r) : r;
1208
+ return r instanceof Comment && r.data === "" ? /* @__PURE__ */ ve(r) : r;
1207
1209
  }
1208
1210
  if (t) {
1209
- if (M?.nodeType !== 3) {
1210
- var n = Z();
1211
- return M?.before(n), U(n), n;
1211
+ if (x?.nodeType !== 3) {
1212
+ var n = J();
1213
+ return x?.before(n), H(n), n;
1212
1214
  }
1213
- Nr(M);
1215
+ Ir(x);
1214
1216
  }
1215
- return M;
1217
+ return x;
1216
1218
  }
1217
- function ks(e, t = 1, r = !1) {
1218
- let n = L ? M : e;
1219
+ function As(e, t = 1, r = !1) {
1220
+ let n = A ? x : e;
1219
1221
  for (var i; t--; )
1220
- i = n, n = /* @__PURE__ */ he(n);
1221
- if (!L) return n;
1222
+ i = n, n = /* @__PURE__ */ ve(n);
1223
+ if (!A) return n;
1222
1224
  if (r) {
1223
1225
  if (n?.nodeType !== 3) {
1224
- var s = Z();
1225
- return n === null ? i?.after(s) : n.before(s), U(s), s;
1226
+ var s = J();
1227
+ return n === null ? i?.after(s) : n.before(s), H(s), s;
1226
1228
  }
1227
- Nr(n);
1229
+ Ir(n);
1228
1230
  }
1229
- return U(n), n;
1231
+ return H(n), n;
1230
1232
  }
1231
- function Un(e) {
1233
+ function zn(e) {
1232
1234
  e.textContent = "";
1233
1235
  }
1234
- function Hn() {
1235
- return !we || oe !== null ? !1 : ($.f & $r) !== 0;
1236
+ function Bn() {
1237
+ return !we || le !== null ? !1 : (b.f & Sr) !== 0;
1236
1238
  }
1237
- function Rr(e, t, r) {
1239
+ function Cr(e, t, r) {
1238
1240
  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);
1239
1241
  }
1240
- function Nr(e) {
1242
+ function Ir(e) {
1241
1243
  if (e.nodeValue.length < 65536) return;
1242
1244
  let t = e.nextSibling;
1243
1245
  for (; t !== null && t.nodeType === 3; )
1244
1246
  t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
1245
1247
  }
1246
- function Ss(e) {
1247
- $ === null && (E === null && ji(e), Wi()), be && Ii(e);
1248
+ function Ls(e) {
1249
+ b === null && (E === null && Hi(e), Gi()), be && Ui(e);
1248
1250
  }
1249
- function Es(e, t) {
1251
+ function Os(e, t) {
1250
1252
  var r = t.last;
1251
1253
  r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
1252
1254
  }
1253
- function ve(e, t) {
1254
- var r = $;
1255
- r !== null && (r.f & 8192) !== 0 && (e |= br);
1255
+ function he(e, t) {
1256
+ var r = b;
1257
+ r !== null && (r.f & 8192) !== 0 && (e |= kr);
1256
1258
  var n = {
1257
- ctx: P,
1259
+ ctx: I,
1258
1260
  deps: null,
1259
1261
  nodes: null,
1260
1262
  f: e | Y | 512,
@@ -1271,91 +1273,92 @@ function ve(e, t) {
1271
1273
  };
1272
1274
  k?.register_created_effect(n);
1273
1275
  var i = n;
1274
- if ((e & 4) !== 0) Qe !== null ? Qe.push(n) : Ge.ensure().schedule(n);
1276
+ if ((e & 4) !== 0)
1277
+ Qe !== null ? Qe.push(n) : Ue.ensure().schedule(n);
1275
1278
  else if (t !== null) {
1276
1279
  try {
1277
1280
  tt(n);
1278
1281
  } catch (l) {
1279
1282
  throw q(n), l;
1280
1283
  }
1281
- 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 |= kr));
1284
+ 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 |= Er));
1282
1285
  }
1283
- if (i !== null && (i.parent = r, r !== null && Es(i, r), E !== null && (E.f & 2) !== 0 && (e & 64) === 0)) {
1286
+ if (i !== null && (i.parent = r, r !== null && Os(i, r), E !== null && (E.f & 2) !== 0 && (e & 64) === 0)) {
1284
1287
  var s = E;
1285
1288
  (s.effects ?? (s.effects = [])).push(i);
1286
1289
  }
1287
1290
  return n;
1288
1291
  }
1289
- function Cr() {
1290
- return E !== null && !ie;
1292
+ function Pr() {
1293
+ return E !== null && !ne;
1291
1294
  }
1292
- function Bn(e) {
1293
- const t = ve(8, null);
1294
- return N(t, Q), t.teardown = e, t;
1295
+ function Yn(e) {
1296
+ const t = he(8, null);
1297
+ return O(t, Z), t.teardown = e, t;
1295
1298
  }
1296
- function xs(e) {
1297
- Ss("$effect");
1298
- var t = $.f;
1299
- if (!E && (t & 32) !== 0 && P !== null && !P.i) {
1300
- var r = P;
1299
+ function tn(e) {
1300
+ Ls("$effect");
1301
+ var t = b.f;
1302
+ if (!E && (t & 32) !== 0 && I !== null && !I.i) {
1303
+ var r = I;
1301
1304
  (r.e ?? (r.e = [])).push(e);
1302
- } else return zn(e);
1305
+ } else return Vn(e);
1303
1306
  }
1304
- function zn(e) {
1305
- return ve(4 | Mi, e);
1307
+ function Vn(e) {
1308
+ return he(4 | Ni, e);
1306
1309
  }
1307
- function Ms(e) {
1308
- Ge.ensure();
1309
- const t = ve(64 | rt, e);
1310
+ function Rs(e) {
1311
+ Ue.ensure();
1312
+ const t = he(64 | rt, e);
1310
1313
  return () => {
1311
1314
  q(t);
1312
1315
  };
1313
1316
  }
1314
- function Ts(e) {
1315
- Ge.ensure();
1316
- const t = ve(64 | rt, e);
1317
+ function Ns(e) {
1318
+ Ue.ensure();
1319
+ const t = he(64 | rt, e);
1317
1320
  return (r = {}) => new Promise((n) => {
1318
- r.outro ? Ue(t, () => {
1321
+ r.outro ? Ge(t, () => {
1319
1322
  q(t), n(void 0);
1320
1323
  }) : (q(t), n(void 0));
1321
1324
  });
1322
1325
  }
1323
- function Yn(e) {
1324
- return ve(4, e);
1326
+ function Kn(e) {
1327
+ return he(4, e);
1325
1328
  }
1326
- function As(e) {
1327
- return ve(Ti | rt, e);
1329
+ function Cs(e) {
1330
+ return he(Ci | rt, e);
1328
1331
  }
1329
- function Pr(e, t = 0) {
1330
- return ve(8 | t, e);
1332
+ function Wr(e, t = 0) {
1333
+ return he(8 | t, e);
1331
1334
  }
1332
- function Qr(e, t = [], r = [], n = []) {
1333
- os(n, t, r, (i) => {
1334
- ve(8, () => {
1335
- e(...i.map(x));
1335
+ function rn(e, t = [], r = [], n = []) {
1336
+ hs(n, t, r, (i) => {
1337
+ he(8, () => {
1338
+ e(...i.map(T));
1336
1339
  });
1337
1340
  });
1338
1341
  }
1339
- function Ir(e, t = 0) {
1340
- var r = ve(16 | t, e);
1342
+ function jr(e, t = 0) {
1343
+ var r = he(16 | t, e);
1341
1344
  return r;
1342
1345
  }
1343
- function ee(e) {
1344
- return ve(32 | rt, e);
1346
+ function Q(e) {
1347
+ return he(32 | rt, e);
1345
1348
  }
1346
- function Vn(e) {
1349
+ function Xn(e) {
1347
1350
  var t = e.teardown;
1348
1351
  if (t !== null) {
1349
1352
  const r = be, n = E;
1350
- en(!0), te(null);
1353
+ nn(!0), ee(null);
1351
1354
  try {
1352
1355
  t.call(null);
1353
1356
  } finally {
1354
- en(r), te(n);
1357
+ nn(r), ee(n);
1355
1358
  }
1356
1359
  }
1357
1360
  }
1358
- function Wr(e, t = !1) {
1361
+ function Fr(e, t = !1) {
1359
1362
  var r = e.first;
1360
1363
  for (e.first = e.last = null; r !== null; ) {
1361
1364
  const i = r.ac;
@@ -1366,7 +1369,7 @@ function Wr(e, t = !1) {
1366
1369
  (r.f & 64) !== 0 ? r.parent = null : q(r, t), r = n;
1367
1370
  }
1368
1371
  }
1369
- function Ls(e) {
1372
+ function Is(e) {
1370
1373
  for (var t = e.first; t !== null; ) {
1371
1374
  var r = t.next;
1372
1375
  (t.f & 32) === 0 && q(t), t = r;
@@ -1374,26 +1377,26 @@ function Ls(e) {
1374
1377
  }
1375
1378
  function q(e, t = !0) {
1376
1379
  var r = !1;
1377
- (t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (Os(e.nodes.start, e.nodes.end), r = !0), e.f |= Hr, Wr(e, t && !r), mt(e, 0);
1380
+ (t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (Ps(e.nodes.start, e.nodes.end), r = !0), e.f |= Br, Fr(e, t && !r), mt(e, 0);
1378
1381
  var n = e.nodes && e.nodes.t;
1379
1382
  if (n !== null) for (const s of n) s.stop();
1380
- Vn(e), e.f ^= Hr, e.f |= xi;
1383
+ Xn(e), e.f ^= Br, e.f |= Ri;
1381
1384
  var i = e.parent;
1382
- i !== null && i.first !== null && Kn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1385
+ i !== null && i.first !== null && Jn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
1383
1386
  }
1384
- function Os(e, t) {
1387
+ function Ps(e, t) {
1385
1388
  for (; e !== null; ) {
1386
- var r = e === t ? null : /* @__PURE__ */ he(e);
1389
+ var r = e === t ? null : /* @__PURE__ */ ve(e);
1387
1390
  e.remove(), e = r;
1388
1391
  }
1389
1392
  }
1390
- function Kn(e) {
1393
+ function Jn(e) {
1391
1394
  var t = e.parent, r = e.prev, n = e.next;
1392
1395
  r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
1393
1396
  }
1394
- function Ue(e, t, r = !0) {
1397
+ function Ge(e, t, r = !0) {
1395
1398
  var n = [];
1396
- Xn(e, n, !0);
1399
+ Zn(e, n, !0);
1397
1400
  var i = () => {
1398
1401
  r && q(e), t && t();
1399
1402
  }, s = n.length;
@@ -1402,9 +1405,9 @@ function Ue(e, t, r = !0) {
1402
1405
  for (var o of n) o.out(l);
1403
1406
  } else i();
1404
1407
  }
1405
- function Xn(e, t, r) {
1408
+ function Zn(e, t, r) {
1406
1409
  if ((e.f & 8192) === 0) {
1407
- e.f ^= br;
1410
+ e.f ^= kr;
1408
1411
  var n = e.nodes && e.nodes.t;
1409
1412
  if (n !== null)
1410
1413
  for (const o of n) (o.is_global || r) && t.push(o);
@@ -1412,60 +1415,60 @@ function Xn(e, t, r) {
1412
1415
  var s = i.next;
1413
1416
  if ((i.f & 64) === 0) {
1414
1417
  var l = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
1415
- Xn(i, t, l ? r : !1);
1418
+ Zn(i, t, l ? r : !1);
1416
1419
  }
1417
1420
  i = s;
1418
1421
  }
1419
1422
  }
1420
1423
  }
1421
- function Vt(e) {
1422
- Jn(e, !0);
1424
+ function Kt(e) {
1425
+ Qn(e, !0);
1423
1426
  }
1424
- function Jn(e, t) {
1427
+ function Qn(e, t) {
1425
1428
  if ((e.f & 8192) !== 0) {
1426
- e.f ^= br, (e.f & 1024) === 0 && (N(e, Y), Ge.ensure().schedule(e));
1429
+ e.f ^= kr, (e.f & 1024) === 0 && (O(e, Y), Ue.ensure().schedule(e));
1427
1430
  for (var r = e.first; r !== null; ) {
1428
1431
  var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
1429
- Jn(r, i ? t : !1), r = n;
1432
+ Qn(r, i ? t : !1), r = n;
1430
1433
  }
1431
1434
  var s = e.nodes && e.nodes.t;
1432
1435
  if (s !== null)
1433
1436
  for (const l of s) (l.is_global || t) && l.in();
1434
1437
  }
1435
1438
  }
1436
- function jr(e, t) {
1439
+ function Dr(e, t) {
1437
1440
  if (e.nodes)
1438
1441
  for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
1439
- var i = r === n ? null : /* @__PURE__ */ he(r);
1442
+ var i = r === n ? null : /* @__PURE__ */ ve(r);
1440
1443
  t.append(r), r = i;
1441
1444
  }
1442
1445
  }
1443
- var Rs = null, Rt = !1, be = !1;
1444
- function en(e) {
1446
+ var Ws = null, Nt = !1, be = !1;
1447
+ function nn(e) {
1445
1448
  be = e;
1446
1449
  }
1447
- var E = null, ie = !1;
1448
- function te(e) {
1450
+ var E = null, ne = !1;
1451
+ function ee(e) {
1449
1452
  E = e;
1450
1453
  }
1451
- var $ = null;
1454
+ var b = null;
1452
1455
  function de(e) {
1453
- $ = e;
1456
+ b = e;
1454
1457
  }
1455
- var ae = null;
1456
- function Zn(e) {
1457
- E !== null && (!we || (E.f & 2) !== 0) && (ae ?? (ae = /* @__PURE__ */ new Set())).add(e);
1458
+ var se = null;
1459
+ function ei(e) {
1460
+ E !== null && (!we || (E.f & 2) !== 0) && (se ?? (se = /* @__PURE__ */ new Set())).add(e);
1458
1461
  }
1459
- var G = null, B = 0, K = null;
1460
- function Ns(e) {
1461
- K = e;
1462
+ var G = null, z = 0, V = null;
1463
+ function js(e) {
1464
+ V = e;
1462
1465
  }
1463
- var Qn = 1, Oe = 0, We = Oe;
1464
- function tn(e) {
1466
+ var ti = 1, Re = 0, We = Re;
1467
+ function sn(e) {
1465
1468
  We = e;
1466
1469
  }
1467
- function ei() {
1468
- return ++Qn;
1470
+ function ri() {
1471
+ return ++ti;
1469
1472
  }
1470
1473
  function kt(e) {
1471
1474
  var t = e.f;
@@ -1473,57 +1476,57 @@ function kt(e) {
1473
1476
  if (t & 2 && (e.f &= ~wt), (t & 4096) !== 0) {
1474
1477
  for (var r = e.deps, n = r.length, i = 0; i < n; i++) {
1475
1478
  var s = r[i];
1476
- if (kt(s) && Tn(s), s.wv > e.wv) return !0;
1479
+ if (kt(s) && Ln(s), s.wv > e.wv) return !0;
1477
1480
  }
1478
- (t & 512) !== 0 && D === null && N(e, Q);
1481
+ (t & 512) !== 0 && D === null && O(e, Z);
1479
1482
  }
1480
1483
  return !1;
1481
1484
  }
1482
- function ti(e, t, r = !0) {
1485
+ function ni(e, t, r = !0) {
1483
1486
  var n = e.reactions;
1484
- if (n !== null && !(!we && ae !== null && ae.has(e)))
1487
+ if (n !== null && !(!we && se !== null && se.has(e)))
1485
1488
  for (var i = 0; i < n.length; i++) {
1486
1489
  var s = n[i];
1487
- (s.f & 2) !== 0 ? ti(s, t, !1) : t === s && (r ? N(s, Y) : (s.f & 1024) !== 0 && N(s, qe), Or(s));
1490
+ (s.f & 2) !== 0 ? ni(s, t, !1) : t === s && (r ? O(s, Y) : (s.f & 1024) !== 0 && O(s, qe), Nr(s));
1488
1491
  }
1489
1492
  }
1490
- function ri(e) {
1491
- var t = G, r = B, n = K, i = E, s = ae, l = P, o = ie, f = We, h = e.f;
1492
- G = null, B = 0, K = null, E = (h & 96) === 0 ? e : null, ae = null, Ze(e.ctx), ie = !1, We = ++Oe, e.ac !== null && ($t(() => {
1493
+ function ii(e) {
1494
+ var t = G, r = z, n = V, i = E, s = se, l = I, o = ne, f = We, h = e.f;
1495
+ G = null, z = 0, V = null, E = (h & 96) === 0 ? e : null, se = null, Ze(e.ctx), ne = !1, We = ++Re, e.ac !== null && ($t(() => {
1493
1496
  e.ac.abort(yt);
1494
1497
  }), e.ac = null);
1495
1498
  try {
1496
- e.f |= Br;
1497
- var v = e.fn, d = v();
1498
- e.f |= $r;
1499
+ e.f |= Yr;
1500
+ var _ = e.fn, d = _();
1501
+ e.f |= Sr;
1499
1502
  var c = e.deps, u = k?.is_fork;
1500
1503
  if (G !== null) {
1501
- var g;
1502
- if (u || mt(e, B), c !== null && B > 0)
1503
- for (c.length = B + G.length, g = 0; g < G.length; g++) c[B + g] = G[g];
1504
+ var p;
1505
+ if (u || mt(e, z), c !== null && z > 0)
1506
+ for (c.length = z + G.length, p = 0; p < G.length; p++) c[z + p] = G[p];
1504
1507
  else e.deps = c = G;
1505
- if (Cr() && (e.f & 512) !== 0) for (g = B; g < c.length; g++) {
1508
+ if (Pr() && (e.f & 512) !== 0) for (p = z; p < c.length; p++) {
1506
1509
  var m;
1507
- ((m = c[g]).reactions ?? (m.reactions = [])).push(e);
1510
+ ((m = c[p]).reactions ?? (m.reactions = [])).push(e);
1508
1511
  }
1509
- } else !u && c !== null && B < c.length && (mt(e, B), c.length = B);
1510
- if (bt() && K !== null && !ie && c !== null && (e.f & 6146) === 0) for (g = 0; g < K.length; g++) ti(K[g], e);
1512
+ } else !u && c !== null && z < c.length && (mt(e, z), c.length = z);
1513
+ if (bt() && V !== null && !ne && c !== null && (e.f & 6146) === 0) for (p = 0; p < V.length; p++) ni(V[p], e);
1511
1514
  if (i !== null && i !== e) {
1512
- if (Oe++, i.deps !== null) for (let _ = 0; _ < r; _ += 1) i.deps[_].rv = Oe;
1513
- if (t !== null) for (const _ of t) _.rv = Oe;
1514
- K !== null && (n === null ? n = K : n.push(...K));
1515
+ if (Re++, i.deps !== null) for (let v = 0; v < r; v += 1) i.deps[v].rv = Re;
1516
+ if (t !== null) for (const v of t) v.rv = Re;
1517
+ V !== null && (n === null ? n = V : n.push(...V));
1515
1518
  }
1516
- return (e.f & 8388608) !== 0 && (e.f ^= jt), d;
1517
- } catch (_) {
1518
- return yn(_);
1519
+ return (e.f & 8388608) !== 0 && (e.f ^= Ft), d;
1520
+ } catch (v) {
1521
+ return $n(v);
1519
1522
  } finally {
1520
- e.f ^= Br, G = t, B = r, K = n, E = i, ae = s, Ze(l), ie = o, We = f;
1523
+ e.f ^= Yr, G = t, z = r, V = n, E = i, se = s, Ze(l), ne = o, We = f;
1521
1524
  }
1522
1525
  }
1523
- function Cs(e, t) {
1526
+ function Fs(e, t) {
1524
1527
  let r = t.reactions;
1525
1528
  if (r !== null) {
1526
- var n = mi.call(r, e);
1529
+ var n = Si.call(r, e);
1527
1530
  if (n !== -1) {
1528
1531
  var i = r.length - 1;
1529
1532
  i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
@@ -1531,39 +1534,39 @@ function Cs(e, t) {
1531
1534
  }
1532
1535
  if (r === null && (t.f & 2) !== 0 && (G === null || !Pt.call(G, t))) {
1533
1536
  var s = t;
1534
- (s.f & 512) !== 0 && (s.f ^= 512, s.f &= ~wt), s.v !== I && Sr(s), s.ac !== null && $t(() => {
1535
- s.ac.abort(yt), s.ac = null, N(s, Y);
1536
- }), ds(s), mt(s, 0);
1537
+ (s.f & 512) !== 0 && (s.f ^= 512, s.f &= ~wt), s.v !== W && xr(s), s.ac !== null && $t(() => {
1538
+ s.ac.abort(yt), s.ac = null, O(s, Y);
1539
+ }), ms(s), mt(s, 0);
1537
1540
  }
1538
1541
  }
1539
1542
  function mt(e, t) {
1540
1543
  var r = e.deps;
1541
1544
  if (r !== null)
1542
- for (var n = t; n < r.length; n++) Cs(e, r[n]);
1545
+ for (var n = t; n < r.length; n++) Fs(e, r[n]);
1543
1546
  }
1544
1547
  function tt(e) {
1545
1548
  var t = e.f;
1546
1549
  if ((t & 16384) === 0) {
1547
- N(e, Q);
1548
- var r = $, n = Rt;
1549
- if ($ = e, Rt = (t & 96) === 0, 0)
1550
+ O(e, Z);
1551
+ var r = b, n = Nt;
1552
+ if (b = e, Nt = (t & 96) === 0, 0)
1550
1553
  var i, s;
1551
1554
  try {
1552
- (t & 16777232) !== 0 ? Ls(e) : Wr(e), Vn(e);
1553
- var l = ri(e);
1554
- if (e.teardown = typeof l == "function" ? l : null, e.wv = Qn, 0)
1555
+ (t & 16777232) !== 0 ? Is(e) : Fr(e), Xn(e);
1556
+ var l = ii(e);
1557
+ if (e.teardown = typeof l == "function" ? l : null, e.wv = ti, 0)
1555
1558
  for (var o of e.deps) ;
1556
1559
  } finally {
1557
- Rt = n, $ = r;
1560
+ Nt = n, b = r;
1558
1561
  }
1559
1562
  }
1560
1563
  }
1561
- function x(e) {
1564
+ function T(e) {
1562
1565
  var t = (e.f & 2) !== 0;
1563
- if (Rs?.add(e), E !== null && !ie && !($ !== null && ($.f & 16384) !== 0) && (ae === null || !ae.has(e))) {
1566
+ if (Ws?.add(e), E !== null && !ne && !(b !== null && (b.f & 16384) !== 0) && (se === null || !se.has(e))) {
1564
1567
  var r = E.deps;
1565
1568
  if ((E.f & 2097152) !== 0)
1566
- e.rv < Oe && (e.rv = Oe, G === null && r !== null && r[B] === e ? B++ : G === null ? G = [e] : G.push(e));
1569
+ e.rv < Re && (e.rv = Re, G === null && r !== null && r[z] === e ? z++ : G === null ? G = [e] : G.push(e));
1567
1570
  else {
1568
1571
  var n;
1569
1572
  (n = E).deps ?? (n.deps = []), Pt.call(E.deps, e) || E.deps.push(e);
@@ -1572,70 +1575,72 @@ function x(e) {
1572
1575
  }
1573
1576
  }
1574
1577
  if (0) {
1575
- if (!ie && reactivity_loss_tracker && k === null && hr === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
1578
+ if (!ne && reactivity_loss_tracker && k === null && pr === null && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
1576
1579
  var s;
1577
- if (tracing_mode_flag && !ie && tracing_expressions !== null && E !== null && tracing_expressions.reaction === E && !e.trace) {
1580
+ if (tracing_mode_flag && !ne && tracing_expressions !== null && E !== null && tracing_expressions.reaction === E && !e.trace) {
1578
1581
  if (s)
1579
1582
  var l, o;
1580
1583
  }
1581
1584
  }
1582
- if (be && Ie.has(e)) return Ie.get(e);
1585
+ if (be && ce.has(e)) return ce.get(e);
1583
1586
  if (t) {
1584
1587
  var f = e;
1585
1588
  if (be) {
1586
1589
  var h = f.v;
1587
- return ((f.f & 1024) === 0 && f.reactions !== null || ii(f)) && (h = Ar(f)), Ie.set(f, h), h;
1590
+ return ((f.f & 1024) === 0 && f.reactions !== null || ai(f)) && (h = Or(f)), ce.set(f, h), h;
1588
1591
  }
1589
- var v = (f.f & 512) === 0 && !ie && E !== null && (Rt || (E.f & 512) !== 0), d = (f.f & $r) === 0;
1590
- kt(f) && (v && (f.f |= 512), Tn(f)), v && !d && (An(f), ni(f));
1592
+ var _ = (f.f & 512) === 0 && !ne && E !== null && (Nt || (E.f & 512) !== 0), d = (f.f & Sr) === 0;
1593
+ kt(f) && (_ && (f.f |= 512), Ln(f)), _ && !d && (On(f), si(f));
1591
1594
  }
1592
1595
  if (D?.has(e)) return D.get(e);
1593
1596
  if ((e.f & 8388608) !== 0) throw e.v;
1594
1597
  return e.v;
1595
1598
  }
1596
- function ni(e) {
1599
+ function si(e) {
1597
1600
  if (e.f |= 512, e.deps !== null)
1598
1601
  for (const t of e.deps)
1599
- (t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (An(t), ni(t));
1602
+ (t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (On(t), si(t));
1600
1603
  }
1601
- function ii(e) {
1602
- if (e.v === I) return !0;
1604
+ function ai(e) {
1605
+ if (e.v === W) return !0;
1603
1606
  if (e.deps === null) return !1;
1604
1607
  for (const t of e.deps)
1605
- if (Ie.has(t) || (t.f & 2) !== 0 && ii(t)) return !0;
1608
+ if (ce.has(t) || (t.f & 2) !== 0 && ai(t)) return !0;
1606
1609
  return !1;
1607
1610
  }
1608
- function Fr(e) {
1609
- var t = ie;
1611
+ function qr(e) {
1612
+ var t = ne;
1610
1613
  try {
1611
- return ie = !0, e();
1614
+ return ne = !0, e();
1612
1615
  } finally {
1613
- ie = t;
1616
+ ne = t;
1614
1617
  }
1615
1618
  }
1616
- var Mt = /* @__PURE__ */ Symbol("events"), Ps = /* @__PURE__ */ new Set(), rn = /* @__PURE__ */ new Set();
1617
- function Is(e, t, r, n = {}) {
1619
+ var Mt = /* @__PURE__ */ Symbol("events"), Ds = /* @__PURE__ */ new Set(), an = /* @__PURE__ */ new Set();
1620
+ function qs(e, t, r, n = {}) {
1618
1621
  function i(s) {
1619
- if (n.capture || mr.call(t, s), !s.cancelBubble) return $t(() => r?.call(this, s));
1622
+ if (n.capture || yr.call(t, s), !s.cancelBubble) return $t(() => r?.call(this, s));
1620
1623
  }
1621
1624
  return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? ye(() => {
1622
1625
  t.addEventListener(e, i, n);
1623
1626
  }) : t.addEventListener(e, i, n), i;
1624
1627
  }
1625
- function nr(e, t, r, n, i) {
1628
+ function Us(e, t, r, n, i) {
1626
1629
  var s = {
1627
1630
  capture: n,
1628
1631
  passive: i
1629
- }, l = Is(e, t, r, s);
1630
- (t === document.body || t === window || t === document || t instanceof HTMLMediaElement) && Bn(() => {
1632
+ }, l = qs(e, t, r, s);
1633
+ (t === document.body || t === window || t === document || t instanceof HTMLMediaElement) && Yn(() => {
1631
1634
  t.removeEventListener(e, l, s);
1632
1635
  });
1633
1636
  }
1634
- var nn = null;
1635
- function mr(e) {
1637
+ var ir = null, sr = !1;
1638
+ function yr(e) {
1636
1639
  var t = this, r = t.ownerDocument, n = e.type, i = e.composedPath?.() || [], s = i[0] || e.target;
1637
- nn = e;
1638
- var l = 0, o = nn === e && e[Mt];
1640
+ ir = e, sr || (sr = !0, setTimeout(() => {
1641
+ sr = !1, ir = null;
1642
+ }));
1643
+ var l = 0, o = ir === e && e[Mt];
1639
1644
  if (o) {
1640
1645
  var f = i.indexOf(o);
1641
1646
  if (f !== -1 && (t === document || t === window)) {
@@ -1647,19 +1652,19 @@ function mr(e) {
1647
1652
  f <= h && (l = f);
1648
1653
  }
1649
1654
  if (s = i[l] || e.target, s !== t) {
1650
- Wt(e, "currentTarget", {
1655
+ jt(e, "currentTarget", {
1651
1656
  configurable: !0,
1652
1657
  get() {
1653
1658
  return s || r;
1654
1659
  }
1655
1660
  });
1656
- var v = E, d = $;
1657
- te(null), de(null);
1661
+ var _ = E, d = b;
1662
+ ee(null), de(null);
1658
1663
  try {
1659
1664
  for (var c, u = []; s !== null && s !== t; ) {
1660
1665
  try {
1661
- var g = s[Mt]?.[n];
1662
- g != null && (!s.disabled || e.target === s) && g.call(s, e);
1666
+ var p = s[Mt]?.[n];
1667
+ p != null && (!s.disabled || e.target === s) && p.call(s, e);
1663
1668
  } catch (m) {
1664
1669
  c ? u.push(m) : c = m;
1665
1670
  }
@@ -1673,20 +1678,20 @@ function mr(e) {
1673
1678
  throw c;
1674
1679
  }
1675
1680
  } finally {
1676
- e[Mt] = t, delete e.currentTarget, te(v), de(d);
1681
+ e[Mt] = t, delete e.currentTarget, ee(_), de(d);
1677
1682
  }
1678
1683
  }
1679
1684
  }
1680
- var Ws = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1681
- function js(e) {
1682
- return Ws?.createHTML(e) ?? e;
1685
+ var Gs = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
1686
+ function Hs(e) {
1687
+ return Gs?.createHTML(e) ?? e;
1683
1688
  }
1684
- function Fs(e) {
1685
- var t = Rr("template");
1686
- return t.innerHTML = js(e.replaceAll("<!>", "<!---->")), t.content;
1689
+ function zs(e) {
1690
+ var t = Cr("template");
1691
+ return t.innerHTML = Hs(e.replaceAll("<!>", "<!---->")), t.content;
1687
1692
  }
1688
1693
  function Xe(e, t) {
1689
- var r = $;
1694
+ var r = b;
1690
1695
  r.nodes === null && (r.nodes = {
1691
1696
  start: e,
1692
1697
  end: t,
@@ -1695,13 +1700,13 @@ function Xe(e, t) {
1695
1700
  });
1696
1701
  }
1697
1702
  // @__NO_SIDE_EFFECTS__
1698
- function si(e, t) {
1703
+ function li(e, t) {
1699
1704
  var r = (t & 1) !== 0, n = (t & 2) !== 0, i, s = !e.startsWith("<!>");
1700
1705
  return () => {
1701
- if (L)
1702
- return Xe(M, null), M;
1703
- i === void 0 && (i = Fs(s ? e : "<!>" + e), r || (i = /* @__PURE__ */ De(i)));
1704
- var l = n || Dn ? document.importNode(i, !0) : i.cloneNode(!0);
1706
+ if (A)
1707
+ return Xe(x, null), x;
1708
+ i === void 0 && (i = zs(s ? e : "<!>" + e), r || (i = /* @__PURE__ */ De(i)));
1709
+ var l = n || Un ? document.importNode(i, !0) : i.cloneNode(!0);
1705
1710
  if (r) {
1706
1711
  var o = /* @__PURE__ */ De(l), f = l.lastChild;
1707
1712
  Xe(o, f);
@@ -1709,21 +1714,21 @@ function si(e, t) {
1709
1714
  return l;
1710
1715
  };
1711
1716
  }
1712
- function Ds() {
1713
- if (L)
1714
- return Xe(M, null), M;
1715
- var e = document.createDocumentFragment(), t = document.createComment(""), r = Z();
1717
+ function Bs() {
1718
+ if (A)
1719
+ return Xe(x, null), x;
1720
+ var e = document.createDocumentFragment(), t = document.createComment(""), r = J();
1716
1721
  return e.append(t, r), Xe(t, r), e;
1717
1722
  }
1718
- function Nt(e, t) {
1719
- if (L) {
1720
- var r = $;
1721
- ((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = M), Zt();
1723
+ function Ct(e, t) {
1724
+ if (A) {
1725
+ var r = b;
1726
+ ((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = x), Qt();
1722
1727
  return;
1723
1728
  }
1724
1729
  e !== null && e.before(t);
1725
1730
  }
1726
- var qs = [
1731
+ var Ys = [
1727
1732
  "allowfullscreen",
1728
1733
  "async",
1729
1734
  "autofocus",
@@ -1752,8 +1757,8 @@ var qs = [
1752
1757
  "defer",
1753
1758
  "disablepictureinpicture",
1754
1759
  "disableremoteplayback"
1755
- ], Ca = [
1756
- ...qs,
1760
+ ], qa = [
1761
+ ...Ys,
1757
1762
  "formNoValidate",
1758
1763
  "isMap",
1759
1764
  "noModule",
@@ -1768,17 +1773,17 @@ var qs = [
1768
1773
  "allowFullscreen",
1769
1774
  "disablePictureInPicture",
1770
1775
  "disableRemotePlayback"
1771
- ], Gs = ["touchstart", "touchmove"];
1772
- function Us(e) {
1773
- return Gs.includes(e);
1776
+ ], Vs = ["touchstart", "touchmove"];
1777
+ function Ks(e) {
1778
+ return Vs.includes(e);
1774
1779
  }
1775
- var Hs = [
1780
+ var Xs = [
1776
1781
  "$state",
1777
1782
  "$state.raw",
1778
1783
  "$derived",
1779
1784
  "$derived.by"
1780
- ], Pa = [
1781
- ...Hs,
1785
+ ], Ua = [
1786
+ ...Xs,
1782
1787
  "$state.eager",
1783
1788
  "$state.snapshot",
1784
1789
  "$props",
@@ -1793,22 +1798,22 @@ var Hs = [
1793
1798
  "$inspect().with",
1794
1799
  "$inspect.trace",
1795
1800
  "$host"
1796
- ], sn = !0;
1797
- function Bs(e, t) {
1798
- var r, n = t == null ? "" : typeof t == "object" ? `${t}` : t;
1799
- n !== ((r = e)[Lt] ?? (r[Lt] = e.nodeValue)) && (e[Lt] = n, e.nodeValue = `${n}`);
1801
+ ], ln = !0;
1802
+ function Js(e, t) {
1803
+ var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
1804
+ r !== (e[Lt] ?? (e[Lt] = e.nodeValue)) && (e[Lt] = r, e.nodeValue = `${r}`);
1800
1805
  }
1801
- function ai(e, t) {
1802
- return li(e, t);
1806
+ function oi(e, t) {
1807
+ return fi(e, t);
1803
1808
  }
1804
- function zs(e, t) {
1805
- gr(), t.intro = t.intro ?? !1;
1806
- const r = t.target, n = L, i = M;
1809
+ function Zs(e, t) {
1810
+ wr(), t.intro = t.intro ?? !1;
1811
+ const r = t.target, n = A, i = x;
1807
1812
  try {
1808
- for (var s = /* @__PURE__ */ De(r); s && (s.nodeType !== 8 || s.data !== "["); ) s = /* @__PURE__ */ he(s);
1813
+ for (var s = /* @__PURE__ */ De(r); s && (s.nodeType !== 8 || s.data !== "["); ) s = /* @__PURE__ */ ve(s);
1809
1814
  if (!s) throw Je;
1810
- ge(!0), U(s);
1811
- const l = li(e, {
1815
+ ge(!0), H(s);
1816
+ const l = fi(e, {
1812
1817
  ...t,
1813
1818
  anchor: s
1814
1819
  });
@@ -1816,156 +1821,157 @@ function zs(e, t) {
1816
1821
  } catch (l) {
1817
1822
  if (l instanceof Error && l.message.split(`
1818
1823
  `).some((o) => o.startsWith("https://svelte.dev/e/"))) throw l;
1819
- return l !== Je && console.warn("Failed to hydrate: ", l), t.recover === !1 && Di(), gr(), Un(r), ge(!1), ai(e, t);
1824
+ return l !== Je && console.warn("Failed to hydrate: ", l), t.recover === !1 && Bi(), wr(), zn(r), ge(!1), oi(e, t);
1820
1825
  } finally {
1821
- ge(n), U(i);
1826
+ ge(n), H(i);
1822
1827
  }
1823
1828
  }
1824
1829
  var Tt = /* @__PURE__ */ new Map();
1825
- function li(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: l = !0, transformError: o }) {
1826
- gr();
1827
- var f = void 0, h = Ts(() => {
1828
- var v = r ?? t.appendChild(Z());
1829
- ns(v, { pending: () => {
1830
+ function fi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: l = !0, transformError: o }) {
1831
+ wr();
1832
+ var f = void 0, h = Ns(() => {
1833
+ var _ = r ?? t.appendChild(J());
1834
+ fs(_, { pending: () => {
1830
1835
  } }, (u) => {
1831
- gn({});
1832
- var g = P;
1833
- if (s && (g.c = s), i && (n.$$events = i), L && Xe(u, null), sn = l, f = e(u, n) || {}, sn = !0, L && ($.nodes.end = M, M === null || M.nodeType !== 8 || M.data !== "]"))
1834
- throw Jt(), Je;
1835
- mn();
1836
+ wn({});
1837
+ var p = I;
1838
+ if (s && (p.c = s), i && (n.$$events = i), A && Xe(u, null), ln = l, f = e(u, n) || {}, ln = !0, A && (b.nodes.end = x, x === null || x.nodeType !== 8 || x.data !== "]"))
1839
+ throw Zt(), Je;
1840
+ yn();
1836
1841
  }, o);
1837
1842
  var d = /* @__PURE__ */ new Set(), c = (u) => {
1838
- for (var g = 0; g < u.length; g++) {
1839
- var m = u[g];
1843
+ for (var p = 0; p < u.length; p++) {
1844
+ var m = u[p];
1840
1845
  if (!d.has(m)) {
1841
1846
  d.add(m);
1842
- var _ = Us(m);
1843
- for (const A of [t, document]) {
1844
- var p = Tt.get(A);
1845
- p === void 0 && (p = /* @__PURE__ */ new Map(), Tt.set(A, p));
1846
- var T = p.get(m);
1847
- T === void 0 ? (A.addEventListener(m, mr, { passive: _ }), p.set(m, 1)) : p.set(m, T + 1);
1847
+ var v = Ks(m);
1848
+ for (const N of [t, document]) {
1849
+ var g = Tt.get(N);
1850
+ g === void 0 && (g = /* @__PURE__ */ new Map(), Tt.set(N, g));
1851
+ var M = g.get(m);
1852
+ M === void 0 ? (N.addEventListener(m, yr, { passive: v }), g.set(m, 1)) : g.set(m, M + 1);
1848
1853
  }
1849
1854
  }
1850
1855
  }
1851
1856
  };
1852
- return c(Xt(Ps)), rn.add(c), () => {
1853
- for (var u of d) for (const _ of [t, document]) {
1854
- var g = Tt.get(_), m = g.get(u);
1855
- --m == 0 ? (_.removeEventListener(u, mr), g.delete(u), g.size === 0 && Tt.delete(_)) : g.set(u, m);
1857
+ return c(Jt(Ds)), an.add(c), () => {
1858
+ for (var u of d) for (const v of [t, document]) {
1859
+ var p = Tt.get(v), m = p.get(u);
1860
+ --m == 0 ? (v.removeEventListener(u, yr), p.delete(u), p.size === 0 && Tt.delete(v)) : p.set(u, m);
1856
1861
  }
1857
- rn.delete(c), v !== r && v.parentNode?.removeChild(v);
1862
+ an.delete(c), _ !== r && _.parentNode?.removeChild(_);
1858
1863
  };
1859
1864
  });
1860
- return wr.set(f, h), f;
1865
+ return br.set(f, h), f;
1861
1866
  }
1862
- var wr = /* @__PURE__ */ new WeakMap();
1863
- function Ys(e, t) {
1864
- const r = wr.get(e);
1865
- return r ? (wr.delete(e), r(t)) : Promise.resolve();
1867
+ var br = /* @__PURE__ */ new WeakMap();
1868
+ function Qs(e, t) {
1869
+ const r = br.get(e);
1870
+ return r ? (br.delete(e), r(t)) : Promise.resolve();
1866
1871
  }
1867
- var _e = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakMap(), Vs = class {
1872
+ var _e = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), lr = /* @__PURE__ */ new WeakMap(), on = /* @__PURE__ */ new WeakMap(), ea = class {
1868
1873
  constructor(e, t = !0) {
1869
- O(this, "anchor", void 0), y(this, _e, /* @__PURE__ */ new Map()), y(this, $e, /* @__PURE__ */ new Map()), y(this, re, /* @__PURE__ */ new Map()), y(this, it, /* @__PURE__ */ new Set()), y(this, ir, !0), y(this, sr, (r) => {
1874
+ L(this, "anchor", void 0), y(this, _e, /* @__PURE__ */ new Map()), y(this, ke, /* @__PURE__ */ new Map()), y(this, te, /* @__PURE__ */ new Map()), y(this, it, /* @__PURE__ */ new Set()), y(this, ar, !0), y(this, lr, (r) => {
1870
1875
  if (a(_e, this).has(r)) {
1871
- var n = a(_e, this).get(r), i = a($e, this).get(n);
1876
+ var n = a(_e, this).get(r), i = a(ke, this).get(n);
1872
1877
  if (i)
1873
- Vt(i), a(it, this).delete(n);
1878
+ Kt(i), a(it, this).delete(n);
1874
1879
  else {
1875
- var s = a(re, this).get(n);
1876
- s && (Vt(s.effect), a($e, this).set(n, s.effect), a(re, this).delete(n), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), i = s.effect);
1880
+ var s = a(te, this).get(n);
1881
+ s && (Kt(s.effect), a(ke, this).set(n, s.effect), a(te, this).delete(n), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), i = s.effect);
1877
1882
  }
1878
1883
  for (const [l, o] of a(_e, this)) {
1879
1884
  if (a(_e, this).delete(l), l === r) break;
1880
- const f = a(re, this).get(o);
1881
- f && (q(f.effect), a(re, this).delete(o));
1885
+ const f = a(te, this).get(o);
1886
+ f && (q(f.effect), a(te, this).delete(o));
1882
1887
  }
1883
- for (const [l, o] of a($e, this)) {
1888
+ for (const [l, o] of a(ke, this)) {
1884
1889
  if (l === n || a(it, this).has(l)) continue;
1885
1890
  const f = () => {
1886
1891
  if (Array.from(a(_e, this).values()).includes(l)) {
1887
1892
  var h = document.createDocumentFragment();
1888
- jr(o, h), h.append(Z()), a(re, this).set(l, {
1893
+ Dr(o, h), h.append(J()), a(te, this).set(l, {
1889
1894
  effect: o,
1890
1895
  fragment: h
1891
1896
  });
1892
1897
  } else q(o);
1893
- a(it, this).delete(l), a($e, this).delete(l);
1898
+ a(it, this).delete(l), a(ke, this).delete(l);
1894
1899
  };
1895
- a(ir, this) || !i ? (a(it, this).add(l), Ue(o, f, !1)) : f();
1900
+ a(ar, this) || !i ? (a(it, this).add(l), Ge(o, f, !1)) : f();
1896
1901
  }
1897
1902
  }
1898
- }), y(this, an, (r) => {
1903
+ }), y(this, on, (r) => {
1899
1904
  a(_e, this).delete(r);
1900
1905
  const n = Array.from(a(_e, this).values());
1901
- for (const [i, s] of a(re, this)) n.includes(i) || (q(s.effect), a(re, this).delete(i));
1902
- }), this.anchor = e, w(ir, this, t);
1906
+ for (const [i, s] of a(te, this)) n.includes(i) || (q(s.effect), a(te, this).delete(i));
1907
+ }), this.anchor = e, w(ar, this, t);
1903
1908
  }
1904
1909
  ensure(e, t) {
1905
- var r = k, n = Hn();
1906
- if (t && !a($e, this).has(e) && !a(re, this).has(e)) if (n) {
1907
- var i = document.createDocumentFragment(), s = Z();
1908
- i.append(s), a(re, this).set(e, {
1909
- effect: ee(() => t(s)),
1910
- fragment: i
1911
- });
1912
- } else a($e, this).set(e, ee(() => t(this.anchor)));
1910
+ var r = k, n = Bn();
1911
+ if (t && !a(ke, this).has(e) && !a(te, this).has(e))
1912
+ if (n) {
1913
+ var i = document.createDocumentFragment(), s = J();
1914
+ i.append(s), a(te, this).set(e, {
1915
+ effect: Q(() => t(s)),
1916
+ fragment: i
1917
+ });
1918
+ } else a(ke, this).set(e, Q(() => t(this.anchor)));
1913
1919
  if (a(_e, this).set(r, e), n) {
1914
- for (const [l, o] of a($e, this)) l === e ? r.unskip_effect(o) : r.skip_effect(o);
1915
- for (const [l, o] of a(re, this)) l === e ? r.unskip_effect(o.effect) : r.skip_effect(o.effect);
1916
- r.oncommit(a(sr, this)), r.ondiscard(a(an, this));
1920
+ for (const [l, o] of a(ke, this)) l === e ? r.unskip_effect(o) : r.skip_effect(o);
1921
+ for (const [l, o] of a(te, this)) l === e ? r.unskip_effect(o.effect) : r.skip_effect(o.effect);
1922
+ r.oncommit(a(lr, this)), r.ondiscard(a(on, this));
1917
1923
  } else
1918
- L && (this.anchor = M), a(sr, this).call(this, r);
1924
+ A && (this.anchor = x), a(lr, this).call(this, r);
1919
1925
  }
1920
1926
  };
1921
- function Ks(e, t, r = !1) {
1927
+ function ta(e, t, r = !1) {
1922
1928
  var n;
1923
- L && (n = M, Zt());
1924
- var i = new Vs(e), s = r ? kr : 0;
1929
+ A && (n = x, Qt());
1930
+ var i = new ea(e), s = r ? Er : 0;
1925
1931
  function l(o, f) {
1926
- if (L) {
1927
- var h = vn(n);
1932
+ if (A) {
1933
+ var h = pn(n);
1928
1934
  if (o !== parseInt(h.substring(1))) {
1929
- var v = Ft();
1930
- U(v), i.anchor = v, ge(!1), i.ensure(o, f), ge(!0);
1935
+ var _ = Dt();
1936
+ H(_), i.anchor = _, ge(!1), i.ensure(o, f), ge(!0);
1931
1937
  return;
1932
1938
  }
1933
1939
  }
1934
1940
  i.ensure(o, f);
1935
1941
  }
1936
- Ir(() => {
1942
+ jr(() => {
1937
1943
  var o = !1;
1938
1944
  t((f, h = 0) => {
1939
1945
  o = !0, l(h, f);
1940
1946
  }), o || l(-1, null);
1941
1947
  }, s);
1942
1948
  }
1943
- function Xs(e, t, r) {
1949
+ function ra(e, t, r) {
1944
1950
  for (var n = [], i = t.length, s, l = t.length, o = 0; o < i; o++) {
1945
1951
  let d = t[o];
1946
- Ue(d, () => {
1952
+ Ge(d, () => {
1947
1953
  if (s) {
1948
1954
  if (s.pending.delete(d), s.done.add(d), s.pending.size === 0) {
1949
1955
  var c = e.outrogroups;
1950
- yr(e, Xt(s.done)), c.delete(s), c.size === 0 && (e.outrogroups = null);
1956
+ $r(e, Jt(s.done)), c.delete(s), c.size === 0 && (e.outrogroups = null);
1951
1957
  }
1952
1958
  } else l -= 1;
1953
1959
  }, !1);
1954
1960
  }
1955
1961
  if (l === 0) {
1956
- var f = n.length === 0 && r !== null;
1962
+ var f = n.length === 0 && r !== null && e.pending.size === 0;
1957
1963
  if (f) {
1958
- var h = r, v = h.parentNode;
1959
- Un(v), v.append(h), e.items.clear();
1964
+ var h = r, _ = h.parentNode;
1965
+ zn(_), _.append(h), e.items.clear();
1960
1966
  }
1961
- yr(e, t, !f);
1967
+ $r(e, t, !f);
1962
1968
  } else
1963
1969
  s = {
1964
1970
  pending: new Set(t),
1965
1971
  done: /* @__PURE__ */ new Set()
1966
1972
  }, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(s);
1967
1973
  }
1968
- function yr(e, t, r = !0) {
1974
+ function $r(e, t, r = !0) {
1969
1975
  var n;
1970
1976
  if (e.pending.size > 0) {
1971
1977
  n = /* @__PURE__ */ new Set();
@@ -1973,49 +1979,53 @@ function yr(e, t, r = !0) {
1973
1979
  }
1974
1980
  for (var i = 0; i < t.length; i++) {
1975
1981
  var s = t[i];
1976
- n?.has(s) ? (s.f |= ct, jr(s, document.createDocumentFragment())) : q(t[i], r);
1982
+ if (n?.has(s)) {
1983
+ s.f |= ct;
1984
+ const l = document.createDocumentFragment();
1985
+ Dr(s, l);
1986
+ } else q(t[i], r);
1977
1987
  }
1978
1988
  }
1979
1989
  var At;
1980
- function Js(e, t, r, n, i, s = null) {
1990
+ function na(e, t, r, n, i, s = null) {
1981
1991
  var l = e, o = /* @__PURE__ */ new Map();
1982
1992
  if ((t & 4) !== 0) {
1983
1993
  var f = e;
1984
- l = L ? U(/* @__PURE__ */ De(f)) : f.appendChild(Z());
1994
+ l = A ? H(/* @__PURE__ */ De(f)) : f.appendChild(J());
1985
1995
  }
1986
- L && Zt();
1987
- var h = null, v = /* @__PURE__ */ Tr(() => {
1988
- var p = r();
1989
- return un(p) ? p : p == null ? [] : Xt(p);
1996
+ A && Qt();
1997
+ var h = null, _ = /* @__PURE__ */ Lr(() => {
1998
+ var g = r();
1999
+ return dn(g) ? g : g == null ? [] : Jt(g);
1990
2000
  }), d, c = /* @__PURE__ */ new Map(), u = !0;
1991
- function g(p) {
1992
- (_.effect.f & 16384) === 0 && (_.pending.delete(p), _.fallback = h, Zs(_, d, l, t, n), h !== null && (d.length === 0 ? (h.f & 33554432) === 0 ? Vt(h) : (h.f ^= ct, ut(h, null, l)) : Ue(h, () => {
2001
+ function p(g) {
2002
+ (v.effect.f & 16384) === 0 && (v.pending.delete(g), v.fallback = h, ia(v, d, l, t, n), h !== null && (d.length === 0 ? (h.f & 33554432) === 0 ? Kt(h) : (h.f ^= ct, ut(h, null, l)) : Ge(h, () => {
1993
2003
  h = null;
1994
2004
  })));
1995
2005
  }
1996
- function m(p) {
1997
- _.pending.delete(p);
1998
- }
1999
- var _ = {
2000
- effect: Ir(() => {
2001
- d = x(v);
2002
- var p = d.length;
2003
- let T = !1;
2004
- L && vn(l) === "[!" != (p === 0) && (l = Ft(), U(l), ge(!1), T = !0);
2005
- for (var A = /* @__PURE__ */ new Set(), S = k, F = Hn(), R = 0; R < p; R += 1) {
2006
- L && M.nodeType === 8 && M.data === "]" && (l = M, T = !0, ge(!1));
2007
- var H = d[R], V = n(H, R);
2006
+ function m(g) {
2007
+ v.pending.delete(g);
2008
+ }
2009
+ var v = {
2010
+ effect: jr(() => {
2011
+ d = T(_);
2012
+ var g = d.length;
2013
+ let M = !1;
2014
+ A && pn(l) === "[!" != (g === 0) && (l = Dt(), H(l), ge(!1), M = !0);
2015
+ for (var N = /* @__PURE__ */ new Set(), S = k, P = Bn(), C = 0; C < g; C += 1) {
2016
+ A && x.nodeType === 8 && x.data === "]" && (l = x, M = !0, ge(!1));
2017
+ var U = d[C], $e = n(U, C);
2008
2018
  if (0)
2009
- var Dr;
2010
- var j = u ? null : o.get(V);
2011
- j ? (j.v && et(j.v, H), j.i && et(j.i, R), F && S.unskip_effect(j.e)) : (j = Qs(o, u ? l : At ?? (At = Z()), H, V, R, i, t, r), u || (j.e.f |= ct), o.set(V, j)), A.add(V);
2019
+ var Ur;
2020
+ var F = u ? null : o.get($e);
2021
+ F ? (F.v && et(F.v, U), F.i && et(F.i, C), P && S.unskip_effect(F.e)) : (F = sa(o, u ? l : At ?? (At = J()), U, $e, C, i, t, r), u || (F.e.f |= ct), o.set($e, F)), N.add($e);
2012
2022
  }
2013
- if (p === 0 && s && !h && (u ? h = ee(() => s(l)) : (h = ee(() => s(At ?? (At = Z()))), h.f |= ct)), p > A.size && Pi("", "", ""), L && p > 0 && U(Ft()), !u)
2014
- if (c.set(S, A), F) {
2015
- for (const [ci, di] of o) A.has(ci) || S.skip_effect(di.e);
2016
- S.oncommit(g), S.ondiscard(m);
2017
- } else g(S);
2018
- T && ge(!0), x(v);
2023
+ if (g === 0 && s && !h && (u ? h = Q(() => s(l)) : (h = Q(() => s(At ?? (At = J()))), h.f |= ct)), g > N.size && qi("", "", ""), A && g > 0 && H(Dt()), !u)
2024
+ if (c.set(S, N), P) {
2025
+ for (const [vi, hi] of o) N.has(vi) || S.skip_effect(hi.e);
2026
+ S.oncommit(p), S.ondiscard(m);
2027
+ } else p(S);
2028
+ M && ge(!0), T(_);
2019
2029
  }),
2020
2030
  flags: t,
2021
2031
  items: o,
@@ -2023,76 +2033,76 @@ function Js(e, t, r, n, i, s = null) {
2023
2033
  outrogroups: null,
2024
2034
  fallback: h
2025
2035
  };
2026
- u = !1, L && (l = M);
2036
+ u = !1, A && (l = x);
2027
2037
  }
2028
2038
  function st(e) {
2029
2039
  for (; e !== null && (e.f & 32) === 0; ) e = e.next;
2030
2040
  return e;
2031
2041
  }
2032
- function Zs(e, t, r, n, i) {
2033
- var s = (n & 8) !== 0, l = t.length, o = e.items, f = st(e.effect.first), h, v = null, d, c = [], u = [], g, m, _, p;
2034
- if (s) for (p = 0; p < l; p += 1)
2035
- g = t[p], m = i(g, p), _ = o.get(m).e, (_.f & 33554432) === 0 && (_.nodes?.a?.measure(), (d ?? (d = /* @__PURE__ */ new Set())).add(_));
2036
- for (p = 0; p < l; p += 1) {
2037
- if (g = t[p], m = i(g, p), _ = o.get(m).e, e.outrogroups !== null) for (const j of e.outrogroups)
2038
- j.pending.delete(_), j.done.delete(_);
2039
- if ((_.f & 8192) !== 0 && (Vt(_), s && (_.nodes?.a?.unfix(), (d ?? (d = /* @__PURE__ */ new Set())).delete(_))), (_.f & 33554432) !== 0)
2040
- if (_.f ^= ct, _ === f) ut(_, null, r);
2042
+ function ia(e, t, r, n, i) {
2043
+ var s = (n & 8) !== 0, l = t.length, o = e.items, f = st(e.effect.first), h, _ = null, d, c = [], u = [], p, m, v, g;
2044
+ if (s) for (g = 0; g < l; g += 1)
2045
+ p = t[g], m = i(p, g), v = o.get(m).e, (v.f & 33554432) === 0 && (v.nodes?.a?.measure(), (d ?? (d = /* @__PURE__ */ new Set())).add(v));
2046
+ for (g = 0; g < l; g += 1) {
2047
+ if (p = t[g], m = i(p, g), v = o.get(m).e, e.outrogroups !== null) for (const F of e.outrogroups)
2048
+ F.pending.delete(v), F.done.delete(v);
2049
+ if ((v.f & 8192) !== 0 && (Kt(v), s && (v.nodes?.a?.unfix(), (d ?? (d = /* @__PURE__ */ new Set())).delete(v))), (v.f & 33554432) !== 0)
2050
+ if (v.f ^= ct, v === f) ut(v, null, r);
2041
2051
  else {
2042
- var T = v ? v.next : f;
2043
- _ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), ke(e, v, _), ke(e, _, T), ut(_, T, r), v = _, c = [], u = [], f = st(v.next);
2052
+ var M = _ ? _.next : f;
2053
+ v === e.effect.last && (e.effect.last = v.prev), v.prev && (v.prev.next = v.next), v.next && (v.next.prev = v.prev), Se(e, _, v), Se(e, v, M), ut(v, M, r), _ = v, c = [], u = [], f = st(_.next);
2044
2054
  continue;
2045
2055
  }
2046
- if (_ !== f) {
2047
- if (h !== void 0 && h.has(_)) {
2056
+ if (v !== f) {
2057
+ if (h !== void 0 && h.has(v)) {
2048
2058
  if (c.length < u.length) {
2049
- var A = u[0], S;
2050
- v = A.prev;
2051
- var F = c[0], R = c[c.length - 1];
2052
- for (S = 0; S < c.length; S += 1) ut(c[S], A, r);
2059
+ var N = u[0], S;
2060
+ _ = N.prev;
2061
+ var P = c[0], C = c[c.length - 1];
2062
+ for (S = 0; S < c.length; S += 1) ut(c[S], N, r);
2053
2063
  for (S = 0; S < u.length; S += 1) h.delete(u[S]);
2054
- ke(e, F.prev, R.next), ke(e, v, F), ke(e, R, A), f = A, v = R, p -= 1, c = [], u = [];
2064
+ Se(e, P.prev, C.next), Se(e, _, P), Se(e, C, N), f = N, _ = C, g -= 1, c = [], u = [];
2055
2065
  } else
2056
- h.delete(_), ut(_, f, r), ke(e, _.prev, _.next), ke(e, _, v === null ? e.effect.first : v.next), ke(e, v, _), v = _;
2066
+ h.delete(v), ut(v, f, r), Se(e, v.prev, v.next), Se(e, v, _ === null ? e.effect.first : _.next), Se(e, _, v), _ = v;
2057
2067
  continue;
2058
2068
  }
2059
- for (c = [], u = []; f !== null && f !== _; )
2069
+ for (c = [], u = []; f !== null && f !== v; )
2060
2070
  (h ?? (h = /* @__PURE__ */ new Set())).add(f), u.push(f), f = st(f.next);
2061
2071
  if (f === null) continue;
2062
2072
  }
2063
- (_.f & 33554432) === 0 && c.push(_), v = _, f = st(_.next);
2073
+ (v.f & 33554432) === 0 && c.push(v), _ = v, f = st(v.next);
2064
2074
  }
2065
2075
  if (e.outrogroups !== null) {
2066
- for (const j of e.outrogroups) j.pending.size === 0 && (yr(e, Xt(j.done)), e.outrogroups?.delete(j));
2076
+ for (const F of e.outrogroups) F.pending.size === 0 && ($r(e, Jt(F.done)), e.outrogroups?.delete(F));
2067
2077
  e.outrogroups.size === 0 && (e.outrogroups = null);
2068
2078
  }
2069
2079
  if (f !== null || h !== void 0) {
2070
- var H = [];
2080
+ var U = [];
2071
2081
  if (h !== void 0)
2072
- for (_ of h) (_.f & 8192) === 0 && H.push(_);
2082
+ for (v of h) (v.f & 8192) === 0 && U.push(v);
2073
2083
  for (; f !== null; )
2074
- (f.f & 8192) === 0 && f !== e.fallback && H.push(f), f = st(f.next);
2075
- var V = H.length;
2076
- if (V > 0) {
2077
- var Dr = (n & 4) !== 0 && l === 0 ? r : null;
2084
+ (f.f & 8192) === 0 && f !== e.fallback && U.push(f), f = st(f.next);
2085
+ var $e = U.length;
2086
+ if ($e > 0) {
2087
+ var Ur = (n & 4) !== 0 && l === 0 ? r : null;
2078
2088
  if (s) {
2079
- for (p = 0; p < V; p += 1) H[p].nodes?.a?.measure();
2080
- for (p = 0; p < V; p += 1) H[p].nodes?.a?.fix();
2089
+ for (g = 0; g < $e; g += 1) U[g].nodes?.a?.measure();
2090
+ for (g = 0; g < $e; g += 1) U[g].nodes?.a?.fix();
2081
2091
  }
2082
- Xs(e, H, Dr);
2092
+ ra(e, U, Ur);
2083
2093
  }
2084
2094
  }
2085
2095
  s && ye(() => {
2086
2096
  if (d !== void 0)
2087
- for (_ of d) _.nodes?.a?.apply();
2097
+ for (v of d) v.nodes?.a?.apply();
2088
2098
  });
2089
2099
  }
2090
- function Qs(e, t, r, n, i, s, l, o) {
2091
- var f = (l & 1) !== 0 ? (l & 16) === 0 ? /* @__PURE__ */ jn(r, !1, !1) : Fe(r) : null, h = (l & 2) !== 0 ? Fe(i) : null;
2100
+ function sa(e, t, r, n, i, s, l, o) {
2101
+ var f = (l & 1) !== 0 ? (l & 16) === 0 ? /* @__PURE__ */ Dn(r, !1, !1) : Fe(r) : null, h = (l & 2) !== 0 ? Fe(i) : null;
2092
2102
  return {
2093
2103
  v: f,
2094
2104
  i: h,
2095
- e: ee(() => (s(t, f ?? r, h ?? i, o), () => {
2105
+ e: Q(() => (s(t, f ?? r, h ?? i, o), () => {
2096
2106
  e.delete(n);
2097
2107
  }))
2098
2108
  };
@@ -2100,138 +2110,138 @@ function Qs(e, t, r, n, i, s, l, o) {
2100
2110
  function ut(e, t, r) {
2101
2111
  if (e.nodes)
2102
2112
  for (var n = e.nodes.start, i = e.nodes.end, s = t && (t.f & 33554432) === 0 ? t.nodes.start : r; n !== null; ) {
2103
- var l = /* @__PURE__ */ he(n);
2113
+ var l = /* @__PURE__ */ ve(n);
2104
2114
  if (s.before(n), n === i) return;
2105
2115
  n = l;
2106
2116
  }
2107
2117
  }
2108
- function ke(e, t, r) {
2118
+ function Se(e, t, r) {
2109
2119
  t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
2110
2120
  }
2111
- function ea(e, t) {
2112
- Yn(() => {
2121
+ function aa(e, t) {
2122
+ Kn(() => {
2123
+ e = b?.parent?.nodes?.start ?? e;
2113
2124
  var r = e.getRootNode(), n = r.host ? r : r.head ?? r.ownerDocument.head;
2114
2125
  if (!n.querySelector("#" + t.hash)) {
2115
- const i = Rr("style");
2126
+ const i = Cr("style");
2116
2127
  i.id = t.hash, i.textContent = t.code, n.appendChild(i);
2117
2128
  }
2118
2129
  });
2119
2130
  }
2120
- var ta = /* @__PURE__ */ Symbol("is custom element"), ra = /* @__PURE__ */ Symbol("is html"), na = Ni ? "link" : "LINK";
2131
+ var la = /* @__PURE__ */ Symbol("is custom element"), oa = /* @__PURE__ */ Symbol("is html"), fa = Fi ? "link" : "LINK";
2121
2132
  function He(e, t, r, n) {
2122
- var i = ia(e);
2123
- if (L && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === na)) {
2133
+ var i = ua(e);
2134
+ if (A && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === fa)) {
2124
2135
  n || void 0;
2125
2136
  return;
2126
2137
  }
2127
- i[t] !== (i[t] = r) && (t === "loading" && (e[Ai] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && sa(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
2138
+ i[t] !== (i[t] = r) && (t === "loading" && (e[Ii] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && ca(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
2128
2139
  }
2129
- function ia(e) {
2130
- var t;
2131
- return (t = e)[fr] ?? (t[fr] = {
2132
- [ta]: e.nodeName.includes("-"),
2133
- [ra]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
2140
+ function ua(e) {
2141
+ return e[dr] ?? (e[dr] = {
2142
+ [la]: e.nodeName.includes("-"),
2143
+ [oa]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
2134
2144
  });
2135
2145
  }
2136
- var ln = /* @__PURE__ */ new Map();
2137
- function sa(e) {
2138
- var t = e.getAttribute("is") || e.nodeName, r = ln.get(t);
2146
+ var fn = /* @__PURE__ */ new Map();
2147
+ function ca(e) {
2148
+ var t = e.getAttribute("is") || e.nodeName, r = fn.get(t);
2139
2149
  if (r) return r;
2140
- ln.set(t, r = []);
2150
+ fn.set(t, r = []);
2141
2151
  for (var n, i = e, s = Element.prototype; s !== i; ) {
2142
- n = wi(i);
2152
+ n = Ei(i);
2143
2153
  for (var l in n) n[l].set && l !== "innerHTML" && l !== "textContent" && l !== "innerText" && r.push(l);
2144
- i = cn(i);
2154
+ i = vn(i);
2145
2155
  }
2146
2156
  return r;
2147
2157
  }
2148
- var oi, Ve = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), on = /* @__PURE__ */ new WeakSet(), fi = class {
2158
+ var ui, Ve = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(), un = /* @__PURE__ */ new WeakSet(), ci = class {
2149
2159
  constructor(e) {
2150
- Er(this, on), y(this, Ve, /* @__PURE__ */ new WeakMap()), y(this, Kt, void 0), y(this, ar, void 0), w(ar, this, e);
2160
+ Mr(this, un), y(this, Ve, /* @__PURE__ */ new WeakMap()), y(this, Xt, void 0), y(this, or, void 0), w(or, this, e);
2151
2161
  }
2152
2162
  observe(e, t) {
2153
2163
  var r = a(Ve, this).get(e) || /* @__PURE__ */ new Set();
2154
- return r.add(t), a(Ve, this).set(e, r), b(on, this, aa).call(this).observe(e, a(ar, this)), () => {
2164
+ return r.add(t), a(Ve, this).set(e, r), $(un, this, da).call(this).observe(e, a(or, this)), () => {
2155
2165
  var n = a(Ve, this).get(e);
2156
- n.delete(t), n.size === 0 && (a(Ve, this).delete(e), a(Kt, this).unobserve(e));
2166
+ n.delete(t), n.size === 0 && (a(Ve, this).delete(e), a(Xt, this).unobserve(e));
2157
2167
  };
2158
2168
  }
2159
2169
  };
2160
- oi = fi;
2161
- function aa() {
2162
- return a(Kt, this) ?? w(Kt, this, new ResizeObserver((e) => {
2170
+ ui = ci;
2171
+ function da() {
2172
+ return a(Xt, this) ?? w(Xt, this, new ResizeObserver((e) => {
2163
2173
  for (var t of e) {
2164
- oi.entries.set(t.target, t);
2174
+ ui.entries.set(t.target, t);
2165
2175
  for (var r of a(Ve, this).get(t.target) || []) r(t);
2166
2176
  }
2167
2177
  }));
2168
2178
  }
2169
- O(fi, "entries", /* @__PURE__ */ new WeakMap());
2170
- function lr(e, t) {
2179
+ L(ci, "entries", /* @__PURE__ */ new WeakMap());
2180
+ function fr(e, t) {
2171
2181
  return e === t || e?.[dt] === t;
2172
2182
  }
2173
- function la(e = {}, t, r, n) {
2174
- var i = P.r, s = $;
2175
- return Yn(() => {
2183
+ function va(e = {}, t, r, n) {
2184
+ var i = I.r, s = b;
2185
+ return Kn(() => {
2176
2186
  var l, o;
2177
- return Pr(() => {
2178
- l = o, o = n?.() || [], Fr(() => {
2179
- lr(r(...o), e) || (t(e, ...o), l && lr(r(...l), e) && t(null, ...l));
2187
+ return Wr(() => {
2188
+ l = o, o = n?.() || [], qr(() => {
2189
+ fr(r(...o), e) || (t(e, ...o), l && fr(r(...l), e) && t(null, ...l));
2180
2190
  });
2181
2191
  }), () => {
2182
2192
  let f = s;
2183
2193
  for (; f !== i && f.parent !== null && f.parent.f & 33554432; ) f = f.parent;
2184
2194
  const h = () => {
2185
- o && lr(r(...o), e) && t(null, ...o);
2186
- }, v = f.teardown;
2195
+ o && fr(r(...o), e) && t(null, ...o);
2196
+ }, _ = f.teardown;
2187
2197
  f.teardown = () => {
2188
- h(), v?.();
2198
+ h(), _?.();
2189
2199
  };
2190
2200
  };
2191
2201
  }), e;
2192
2202
  }
2193
- function fn(e, t, r, n) {
2194
- var i = !Qt || (r & 2) !== 0, s = (r & 8) !== 0, l = (r & 16) !== 0, o = n, f = !0, h = void 0, v = () => l && i ? (h ?? (h = /* @__PURE__ */ gt(n)), x(h)) : (f && (f = !1, o = l ? Fr(n) : n), o);
2203
+ function ur(e, t, r, n) {
2204
+ var i = !er || (r & 2) !== 0, s = (r & 8) !== 0, l = (r & 16) !== 0, o = n, f = !0, h = void 0, _ = () => l && i ? (h ?? (h = /* @__PURE__ */ gt(n)), T(h)) : (f && (f = !1, o = l ? qr(n) : n), o);
2195
2205
  let d;
2196
2206
  if (s) {
2197
- var c = dt in e || hn in e;
2198
- d = Re(e, t)?.set ?? (c && t in e ? (S) => e[t] = S : void 0);
2207
+ var c = dt in e || _n in e;
2208
+ d = Ne(e, t)?.set ?? (c && t in e ? (S) => e[t] = S : void 0);
2199
2209
  }
2200
- var u, g = !1;
2201
- s ? [u, g] = es(() => e[t]) : u = e[t], u === void 0 && n !== void 0 && (u = v(), d && (i && qi(t), d(u)));
2210
+ var u, p = !1;
2211
+ s ? [u, p] = as(() => e[t]) : u = e[t], u === void 0 && n !== void 0 && (u = _(), d && (i && Yi(t), d(u)));
2202
2212
  var m;
2203
2213
  if (i ? m = () => {
2204
2214
  var S = e[t];
2205
- return S === void 0 ? v() : (f = !0, S);
2215
+ return S === void 0 ? _() : (f = !0, S);
2206
2216
  } : m = () => {
2207
2217
  var S = e[t];
2208
2218
  return S !== void 0 && (o = void 0), S === void 0 ? o : S;
2209
2219
  }, i && (r & 4) === 0) return m;
2210
2220
  if (d) {
2211
- var _ = e.$$legacy;
2212
- return (function(S, F) {
2213
- return arguments.length > 0 ? ((!i || !F || _ || g) && d(F ? m() : S), S) : m();
2221
+ var v = e.$$legacy;
2222
+ return (function(S, P) {
2223
+ return arguments.length > 0 ? ((!i || !P || v || p) && d(P ? m() : S), S) : m();
2214
2224
  });
2215
2225
  }
2216
- var p = !1, T = ((r & 1) !== 0 ? gt : Tr)(() => (p = !1, m()));
2217
- s && x(T);
2218
- var A = $;
2219
- return (function(S, F) {
2226
+ var g = !1, M = ((r & 1) !== 0 ? gt : Lr)(() => (g = !1, m()));
2227
+ s && T(M);
2228
+ var N = b;
2229
+ return (function(S, P) {
2220
2230
  if (arguments.length > 0) {
2221
- const R = F ? x(T) : i && s ? Ke(S) : S;
2222
- return fe(T, R), p = !0, o !== void 0 && (o = R), S;
2231
+ const C = P ? T(M) : i && s ? Ke(S) : S;
2232
+ return oe(M, C), g = !0, o !== void 0 && (o = C), S;
2223
2233
  }
2224
- return be && p || (A.f & 16384) !== 0 ? T.v : x(T);
2234
+ return be && g || (N.f & 16384) !== 0 ? M.v : T(M);
2225
2235
  });
2226
2236
  }
2227
- function oa(e) {
2228
- return new fa(e);
2237
+ function ha(e) {
2238
+ return new _a(e);
2229
2239
  }
2230
- var Me = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), fa = class {
2240
+ var Te = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), _a = class {
2231
2241
  constructor(e) {
2232
- y(this, Me, void 0), y(this, le, void 0);
2242
+ y(this, Te, void 0), y(this, ae, void 0);
2233
2243
  var t = /* @__PURE__ */ new Map(), r = (i, s) => {
2234
- var l = /* @__PURE__ */ jn(s, !1, !1);
2244
+ var l = /* @__PURE__ */ Dn(s, !1, !1);
2235
2245
  return t.set(i, l), l;
2236
2246
  };
2237
2247
  const n = new Proxy({
@@ -2239,16 +2249,16 @@ var Me = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), fa =
2239
2249
  $$events: {}
2240
2250
  }, {
2241
2251
  get(i, s) {
2242
- return x(t.get(s) ?? r(s, Reflect.get(i, s)));
2252
+ return T(t.get(s) ?? r(s, Reflect.get(i, s)));
2243
2253
  },
2244
2254
  has(i, s) {
2245
- return s === hn ? !0 : (x(t.get(s) ?? r(s, Reflect.get(i, s))), Reflect.has(i, s));
2255
+ return s === _n ? !0 : (T(t.get(s) ?? r(s, Reflect.get(i, s))), Reflect.has(i, s));
2246
2256
  },
2247
2257
  set(i, s, l) {
2248
- return fe(t.get(s) ?? r(s, l), l), Reflect.set(i, s, l);
2258
+ return oe(t.get(s) ?? r(s, l), l), Reflect.set(i, s, l);
2249
2259
  }
2250
2260
  });
2251
- w(le, this, (e.hydrate ? zs : ai)(e.component, {
2261
+ w(ae, this, (e.hydrate ? Zs : oi)(e.component, {
2252
2262
  target: e.target,
2253
2263
  anchor: e.anchor,
2254
2264
  props: n,
@@ -2256,40 +2266,40 @@ var Me = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), fa =
2256
2266
  intro: e.intro ?? !1,
2257
2267
  recover: e.recover,
2258
2268
  transformError: e.transformError
2259
- })), !we && (!e?.props?.$$host || e.sync === !1) && pr(), w(Me, this, n.$$events);
2260
- for (const i of Object.keys(a(le, this)))
2261
- i === "$set" || i === "$destroy" || i === "$on" || Wt(this, i, {
2269
+ })), !we && (!e?.props?.$$host || e.sync === !1) && Rt(), w(Te, this, n.$$events);
2270
+ for (const i of Object.keys(a(ae, this)))
2271
+ i === "$set" || i === "$destroy" || i === "$on" || jt(this, i, {
2262
2272
  get() {
2263
- return a(le, this)[i];
2273
+ return a(ae, this)[i];
2264
2274
  },
2265
2275
  set(s) {
2266
- a(le, this)[i] = s;
2276
+ a(ae, this)[i] = s;
2267
2277
  },
2268
2278
  enumerable: !0
2269
2279
  });
2270
- a(le, this).$set = (i) => {
2280
+ a(ae, this).$set = (i) => {
2271
2281
  Object.assign(n, i);
2272
- }, a(le, this).$destroy = () => {
2273
- Ys(a(le, this));
2282
+ }, a(ae, this).$destroy = () => {
2283
+ Qs(a(ae, this));
2274
2284
  };
2275
2285
  }
2276
2286
  $set(e) {
2277
- a(le, this).$set(e);
2287
+ a(ae, this).$set(e);
2278
2288
  }
2279
2289
  $on(e, t) {
2280
- a(Me, this)[e] = a(Me, this)[e] || [];
2290
+ a(Te, this)[e] = a(Te, this)[e] || [];
2281
2291
  const r = (...n) => t.call(this, ...n);
2282
- return a(Me, this)[e].push(r), () => {
2283
- a(Me, this)[e] = a(Me, this)[e].filter((n) => n !== r);
2292
+ return a(Te, this)[e].push(r), () => {
2293
+ a(Te, this)[e] = a(Te, this)[e].filter((n) => n !== r);
2284
2294
  };
2285
2295
  }
2286
2296
  $destroy() {
2287
- a(le, this).$destroy();
2297
+ a(ae, this).$destroy();
2288
2298
  }
2289
- }, ui;
2290
- typeof HTMLElement == "function" && (ui = class extends HTMLElement {
2299
+ }, di;
2300
+ typeof HTMLElement == "function" && (di = class extends HTMLElement {
2291
2301
  constructor(e, t, r) {
2292
- super(), O(this, "$$ctor", void 0), O(this, "$$s", void 0), O(this, "$$c", void 0), O(this, "$$cn", !1), O(this, "$$d", {}), O(this, "$$r", !1), O(this, "$$p_d", {}), O(this, "$$l", {}), O(this, "$$l_u", /* @__PURE__ */ new Map()), O(this, "$$me", void 0), O(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
2302
+ super(), L(this, "$$ctor", void 0), L(this, "$$s", void 0), L(this, "$$c", void 0), L(this, "$$cn", !1), L(this, "$$d", {}), L(this, "$$r", !1), L(this, "$$p_d", {}), L(this, "$$l", {}), L(this, "$$l_u", /* @__PURE__ */ new Map()), L(this, "$$me", void 0), L(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
2293
2303
  }
2294
2304
  addEventListener(e, t, r) {
2295
2305
  if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
@@ -2308,19 +2318,19 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
2308
2318
  if (this.$$cn = !0, !this.$$c) {
2309
2319
  let e = function(n) {
2310
2320
  return (i) => {
2311
- const s = Rr("slot");
2312
- n !== "default" && (s.name = n), Nt(i, s);
2321
+ const s = Cr("slot");
2322
+ n !== "default" && (s.name = n), Ct(i, s);
2313
2323
  };
2314
2324
  };
2315
2325
  if (await Promise.resolve(), !this.$$cn || this.$$c) return;
2316
- const t = {}, r = ua(this);
2326
+ const t = {}, r = pa(this);
2317
2327
  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));
2318
2328
  for (const n of this.attributes) {
2319
2329
  const i = this.$$g_p(n.name);
2320
- i in this.$$d || (this.$$d[i] = Ct(i, n.value, this.$$p_d, "toProp"));
2330
+ i in this.$$d || (this.$$d[i] = It(i, n.value, this.$$p_d, "toProp"));
2321
2331
  }
2322
2332
  for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
2323
- this.$$c = oa({
2333
+ this.$$c = ha({
2324
2334
  component: this.$$ctor,
2325
2335
  target: this.$$shadowRoot || this,
2326
2336
  props: {
@@ -2328,13 +2338,13 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
2328
2338
  $$slots: t,
2329
2339
  $$host: this
2330
2340
  }
2331
- }), this.$$me = Ms(() => {
2332
- Pr(() => {
2341
+ }), this.$$me = Rs(() => {
2342
+ Wr(() => {
2333
2343
  this.$$r = !0;
2334
- for (const n of It(this.$$c)) {
2344
+ for (const n of Wt(this.$$c)) {
2335
2345
  if (!this.$$p_d[n]?.reflect) continue;
2336
2346
  this.$$d[n] = this.$$c[n];
2337
- const i = Ct(n, this.$$d[n], this.$$p_d, "toAttribute");
2347
+ const i = It(n, this.$$d[n], this.$$p_d, "toAttribute");
2338
2348
  i == null ? this.removeAttribute(this.$$p_d[n].attribute || n) : this.setAttribute(this.$$p_d[n].attribute || n, i);
2339
2349
  }
2340
2350
  this.$$r = !1;
@@ -2348,7 +2358,7 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
2348
2358
  }
2349
2359
  }
2350
2360
  attributeChangedCallback(e, t, r) {
2351
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ct(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2361
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = It(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2352
2362
  }
2353
2363
  disconnectedCallback() {
2354
2364
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2356,10 +2366,10 @@ typeof HTMLElement == "function" && (ui = class extends HTMLElement {
2356
2366
  });
2357
2367
  }
2358
2368
  $$g_p(e) {
2359
- return It(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2369
+ return Wt(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
2360
2370
  }
2361
2371
  });
2362
- function Ct(e, t, r, n) {
2372
+ function It(e, t, r, n) {
2363
2373
  const i = r[e]?.type;
2364
2374
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e]) return t;
2365
2375
  if (n === "toAttribute") switch (i) {
@@ -2385,76 +2395,81 @@ function Ct(e, t, r, n) {
2385
2395
  return t;
2386
2396
  }
2387
2397
  }
2388
- function ua(e) {
2398
+ function pa(e) {
2389
2399
  const t = {};
2390
2400
  return e.childNodes.forEach((r) => {
2391
2401
  t[r.slot || "default"] = !0;
2392
2402
  }), t;
2393
2403
  }
2394
- function ca(e, t, r, n, i, s) {
2395
- let l = class extends ui {
2404
+ function ga(e, t, r, n, i, s) {
2405
+ let l = class extends di {
2396
2406
  constructor() {
2397
2407
  super(e, r, i), this.$$p_d = t;
2398
2408
  }
2399
2409
  static get observedAttributes() {
2400
- return It(t).map((o) => (t[o].attribute || o).toLowerCase());
2410
+ return Wt(t).map((o) => (t[o].attribute || o).toLowerCase());
2401
2411
  }
2402
2412
  };
2403
- return It(t).forEach((o) => {
2404
- Wt(l.prototype, o, {
2413
+ return Wt(t).forEach((o) => {
2414
+ jt(l.prototype, o, {
2405
2415
  get() {
2406
2416
  return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
2407
2417
  },
2408
2418
  set(f) {
2409
- f = Ct(o, f, t), this.$$d[o] = f;
2419
+ f = It(o, f, t), this.$$d[o] = f;
2410
2420
  var h = this.$$c;
2411
- h && (Re(h, o)?.get ? h[o] = f : h.$set({ [o]: f }));
2421
+ h && (Ne(h, o)?.get ? h[o] = f : h.$set({ [o]: f }));
2412
2422
  }
2413
2423
  });
2414
2424
  }), n.forEach((o) => {
2415
- Wt(l.prototype, o, { get() {
2425
+ jt(l.prototype, o, { get() {
2416
2426
  return this.$$c?.[o];
2417
2427
  } });
2418
2428
  }), s && (l = s(l)), e.element = l, l;
2419
2429
  }
2420
- var da = "sign-language", Ia = "ase", ha = {
2421
- ase: "American Sign Language",
2422
- bfi: "British Sign Language",
2423
- fsl: "French Sign Language",
2424
- gss: "Greek Sign Language",
2425
- mfs: "Mexican Sign Language",
2426
- "eng-US": "Signed English",
2427
- "en-US": "Signed English"
2430
+ var ma = "sign-language", Ga = "ase", wa = {
2431
+ ase: "tools.signLanguage.ase",
2432
+ bfi: "tools.signLanguage.bfi",
2433
+ fsl: "tools.signLanguage.fsl",
2434
+ gss: "tools.signLanguage.gss",
2435
+ mfs: "tools.signLanguage.mfs",
2436
+ "eng-US": "tools.signLanguage.signedEnglish",
2437
+ "en-US": "tools.signLanguage.signedEnglish"
2428
2438
  };
2429
- function va(e) {
2430
- const t = (e || "").trim();
2431
- return t ? ha[t] ?? `Sign language (${t})` : "Sign language";
2439
+ function ya(e, t) {
2440
+ const r = cn({ i18n: t }), n = (e || "").trim();
2441
+ if (!n) return r.t("tools.signLanguage.generic");
2442
+ const i = wa[n];
2443
+ return i ? r.t(i) : r.t("tools.signLanguage.unknown", { code: n });
2432
2444
  }
2433
- function _a(e) {
2445
+ function ba(e) {
2434
2446
  if (!e) return null;
2435
2447
  const t = nt(e.language), r = e.payload;
2436
2448
  if (!r || typeof r != "object")
2437
2449
  return nt(e.content) ? console.warn("[sign-language] card carries `content` but no `payload`; signing media must be a structured payload, so this card is ignored") : console.warn("[sign-language] card carries no `payload`; signing media lives in `payload` (a card written against the older `signLanguage` key needs re-importing), so this card is ignored"), null;
2438
- const n = r.media, i = pi(n?.sources);
2450
+ const n = r.media;
2451
+ if (wi(n?.version))
2452
+ return console.warn(`[sign-language] card's media declares version ${String(n?.version)}, which this build does not render, so this card is ignored`), null;
2453
+ const i = bi(n?.sources);
2439
2454
  if (i.length === 0) return null;
2440
2455
  const s = nt(n?.poster);
2441
2456
  return {
2442
2457
  signLang: nt(r.signLang) ?? t,
2443
2458
  sources: i,
2444
- poster: s && vi(s) ? s : void 0,
2459
+ poster: s && mi(s) ? s : void 0,
2445
2460
  label: nt(n?.label),
2446
- fragment: _i(r.fragment)
2461
+ fragment: yi(r.fragment)
2447
2462
  };
2448
2463
  }
2449
- function pa(e, t) {
2464
+ function $a(e, t) {
2450
2465
  if (!e.signLang) return !0;
2451
2466
  const r = (t || "").trim();
2452
2467
  return r ? e.signLang.toLowerCase() === r.toLowerCase() : !0;
2453
2468
  }
2454
- function ga(e) {
2455
- return e?.catalog === da;
2469
+ function ka(e) {
2470
+ return e?.catalog === ma;
2456
2471
  }
2457
- var ma = 0, wa = /* @__PURE__ */ si("<source/>"), ya = /* @__PURE__ */ si('<figure class="pie-tool-sign-language svelte-detmj8"><video class="pie-tool-sign-language__video svelte-detmj8" controls="" playsinline="" preload="metadata"></video> <figcaption class="pie-tool-sign-language__caption svelte-detmj8"> </figcaption></figure>', 2), ba = {
2472
+ var Sa = 0, Ea = /* @__PURE__ */ li("<source/>"), xa = /* @__PURE__ */ li('<figure class="pie-tool-sign-language svelte-detmj8"><video class="pie-tool-sign-language__video svelte-detmj8" controls="" playsinline="" preload="metadata"></video> <figcaption class="pie-tool-sign-language__caption svelte-detmj8"> </figcaption></figure>', 2), Ma = {
2458
2473
  hash: "svelte-detmj8",
2459
2474
  code: `:host {display:block;min-width:0;}.pie-tool-sign-language.svelte-detmj8 {display:flex;flex-direction:column;gap:0.5rem;margin:0;min-width:0;}.pie-tool-sign-language__video.svelte-detmj8 {width:100%;
2460
2475
  /* Signing needs height for hands and face, so the recording's own frame
@@ -2463,89 +2478,80 @@ var ma = 0, wa = /* @__PURE__ */ si("<source/>"), ya = /* @__PURE__ */ si('<figu
2463
2478
  width percentage alone either wastes space or makes signing
2464
2479
  unreadable. */aspect-ratio:var(--pie-section-player-item-media-aspect-ratio, 3 / 4);min-height:var(--pie-section-player-item-media-min-height, 220px);max-height:var(--pie-section-player-item-media-max-height, 60vh);object-fit:contain;border-radius:var(--pie-section-player-card-radius, 8px);background:var(--pie-blue-grey-900, #111827);}.pie-tool-sign-language__caption.svelte-detmj8 {font-size:0.8125rem;color:var(--pie-text-light, var(--pie-text, #111827));}`
2465
2480
  };
2466
- function $a(e, t) {
2467
- gn(t, !0), ea(e, ba);
2468
- let r = fn(t, "media", 7, null), n = fn(t, "ttsService", 7, null), i = /* @__PURE__ */ pe(null);
2469
- const s = `pie-tool-sign-language-${ma += 1}`, l = /* @__PURE__ */ tr(() => va(r()?.signLang)), o = /* @__PURE__ */ tr(() => r()?.label || `${x(l)} translation`), f = /* @__PURE__ */ tr(() => (r()?.sources ?? []).map((p) => ({
2470
- ...p,
2471
- src: hi(p.src, r()?.fragment)
2481
+ function Ta(e, t) {
2482
+ wn(t, !0), aa(e, Ma);
2483
+ let r = ur(t, "media", 7, null), n = ur(t, "ttsService", 7, null), i = ur(t, "i18n", 7, void 0), s = /* @__PURE__ */ pe(null);
2484
+ const l = `pie-tool-sign-language-${Sa += 1}`, o = /* @__PURE__ */ rr(() => ya(r()?.signLang, i())), f = /* @__PURE__ */ rr(() => r()?.label || cn({ i18n: i() }).t("tools.signLanguage.regionA11y", { language: T(o) })), h = /* @__PURE__ */ rr(() => (r()?.sources ?? []).map((v) => ({
2485
+ ...v,
2486
+ src: _i(v.src, r()?.fragment)
2472
2487
  })));
2473
- function h() {
2474
- x(i) && !x(i).paused && x(i).pause();
2475
- }
2476
- function v() {
2477
- if (n())
2478
- try {
2479
- n().isPlaying() && n().pause();
2480
- } catch {
2481
- }
2488
+ function _() {
2489
+ T(s) && !T(s).paused && T(s).pause();
2482
2490
  }
2483
2491
  function d() {
2484
- const p = r()?.fragment?.startSeconds;
2485
- !x(i) || p === void 0 || x(i).currentTime < p && (x(i).currentTime = p);
2486
- }
2487
- function c() {
2488
- const p = r()?.fragment?.endSeconds;
2489
- !x(i) || p === void 0 || x(i).currentTime >= p && x(i).pause();
2490
- }
2491
- xs(() => {
2492
- if (!n() || typeof n().onStateChange != "function") return;
2493
- const p = (T) => {
2494
- (T === "playing" || T === "loading") && h();
2495
- };
2496
- return n().onStateChange(s, p), () => {
2497
- try {
2498
- n().offStateChange(s, p);
2499
- } catch {
2500
- }
2501
- };
2502
- });
2503
- var u = {
2492
+ $i(n());
2493
+ }
2494
+ tn(() => {
2495
+ if (T(s))
2496
+ return gi(T(s), r()?.fragment, _);
2497
+ }), tn(() => pi({
2498
+ ttsService: n(),
2499
+ listenerId: l,
2500
+ silence: _
2501
+ }));
2502
+ var c = {
2504
2503
  get media() {
2505
2504
  return r();
2506
2505
  },
2507
- set media(p = null) {
2508
- r(p), pr();
2506
+ set media(v = null) {
2507
+ r(v), Rt();
2509
2508
  },
2510
2509
  get ttsService() {
2511
2510
  return n();
2512
2511
  },
2513
- set ttsService(p = null) {
2514
- n(p), pr();
2515
- }
2516
- }, g = Ds(), m = $s(g), _ = (p) => {
2517
- var T = ya(), A = Zr(T);
2518
- A.muted = !0, Js(A, 21, () => x(f), (R) => R.src, (R, H) => {
2519
- var V = wa();
2520
- Qr(() => {
2521
- He(V, "src", x(H).src), He(V, "type", x(H).type || void 0);
2522
- }), Nt(R, V);
2523
- }), er(A), la(A, (R) => fe(i, R), () => x(i));
2524
- var S = ks(A, 2), F = Zr(S, !0);
2525
- er(S), er(T), Qr(() => {
2526
- He(T, "data-pie-sign-language", r().signLang || void 0), He(T, "data-pie-catalog-id", r().catalogId || void 0), He(A, "aria-label", x(o)), He(A, "poster", r().poster || void 0), Bs(F, x(l));
2527
- }), nr("play", A, v), nr("loadedmetadata", A, d), nr("timeupdate", A, c), Nt(p, T);
2512
+ set ttsService(v = null) {
2513
+ n(v), Rt();
2514
+ },
2515
+ get i18n() {
2516
+ return i();
2517
+ },
2518
+ set i18n(v = void 0) {
2519
+ i(v), Rt();
2520
+ }
2521
+ }, u = Bs(), p = Ts(u), m = (v) => {
2522
+ var g = xa(), M = en(g);
2523
+ M.muted = !0, na(M, 21, () => T(h), (P) => P.src, (P, C) => {
2524
+ var U = Ea();
2525
+ rn(() => {
2526
+ He(U, "src", T(C).src), He(U, "type", T(C).type || void 0);
2527
+ }), Ct(P, U);
2528
+ }), tr(M), va(M, (P) => oe(s, P), () => T(s));
2529
+ var N = As(M, 2), S = en(N, !0);
2530
+ tr(N), tr(g), rn(() => {
2531
+ He(g, "data-pie-sign-language", r().signLang || void 0), He(g, "data-pie-catalog-id", r().catalogId || void 0), He(M, "aria-label", T(f)), He(M, "poster", r().poster || void 0), Js(S, T(o));
2532
+ }), Us("play", M, d), Ct(v, g);
2528
2533
  };
2529
- return Ks(m, (p) => {
2530
- r() && x(f).length > 0 && p(_);
2531
- }), Nt(e, g), mn(u);
2534
+ return ta(p, (v) => {
2535
+ r() && T(h).length > 0 && v(m);
2536
+ }), Ct(e, u), yn(c);
2532
2537
  }
2533
- customElements.define("pie-tool-sign-language", ca($a, {
2538
+ customElements.define("pie-tool-sign-language", ga(Ta, {
2534
2539
  media: { type: "Object" },
2535
- ttsService: { type: "Object" }
2540
+ ttsService: { type: "Object" },
2541
+ i18n: {}
2536
2542
  }, [], [], { mode: "open" }));
2537
- var or = "signLanguage";
2538
- function ka(e) {
2543
+ var cr = "signLanguage";
2544
+ function Aa(e) {
2539
2545
  const t = e.requestedSignLang?.trim() || "ase", r = e.catalogs.cards.flatMap(({ catalogId: n, card: i }) => {
2540
- if (!ga(i)) return [];
2541
- const s = _a(i);
2546
+ if (!ka(i)) return [];
2547
+ const s = ba(i);
2542
2548
  return s ? [{
2543
2549
  catalogId: n,
2544
2550
  media: s
2545
2551
  }] : [];
2546
2552
  });
2547
2553
  for (const n of r)
2548
- if (n.media.signLang && pa(n.media, t))
2554
+ if (n.media.signLang && $a(n.media, t))
2549
2555
  return {
2550
2556
  ...n.media,
2551
2557
  catalogId: n.catalogId
@@ -2558,35 +2564,35 @@ function ka(e) {
2558
2564
  };
2559
2565
  return null;
2560
2566
  }
2561
- function Sa(e) {
2567
+ function La(e) {
2562
2568
  if (!e || typeof e != "object") return;
2563
2569
  const t = e.signLang;
2564
2570
  if (typeof t == "string" && t.trim()) return t.trim();
2565
2571
  }
2566
- function Ea(e) {
2567
- return e.catalogs ? ka({
2572
+ function Oa(e) {
2573
+ return e.catalogs ? Aa({
2568
2574
  catalogs: e.catalogs,
2569
- requestedSignLang: Sa(e.parameters)
2575
+ requestedSignLang: La(e.parameters)
2570
2576
  }) : null;
2571
2577
  }
2572
- var xa = "content-media", Ma = "pie-tool-sign-language", Wa = {
2573
- toolId: or,
2578
+ var Ra = "content-media", Na = "pie-tool-sign-language", Ha = {
2579
+ toolId: cr,
2574
2580
  name: "Sign Language",
2575
2581
  description: "Signed translation, docked beside the content it interprets",
2576
2582
  supportedLevels: ["item", "passage"],
2577
- pnpSupportIds: [or],
2583
+ pnpSupportIds: [cr],
2578
2584
  activation: "region",
2579
- surfaces: [xa],
2585
+ surfaces: [Ra],
2580
2586
  requiresAuthoredContent: { resolve(e) {
2581
- return Ea(e);
2587
+ return Oa(e);
2582
2588
  } },
2583
2589
  renderSurface(e) {
2584
2590
  const t = e.content;
2585
2591
  if (!t) return null;
2586
- const r = e.componentOverrides ?? {}, n = gi(e.toolId, {
2592
+ const r = e.componentOverrides ?? {}, n = ki(e.toolId, {
2587
2593
  ...r,
2588
2594
  toolTagMap: {
2589
- [or]: Ma,
2595
+ [cr]: Na,
2590
2596
  ...r.toolTagMap
2591
2597
  }
2592
2598
  });
@@ -2602,17 +2608,17 @@ var xa = "content-media", Ma = "pie-tool-sign-language", Wa = {
2602
2608
  }
2603
2609
  };
2604
2610
  export {
2605
- Ia as AMERICAN_SIGN_LANGUAGE,
2606
- xa as CONTENT_MEDIA_SURFACE,
2607
- da as SIGN_LANGUAGE_CATALOG_TYPE,
2608
- Ma as SIGN_LANGUAGE_ELEMENT_TAG,
2609
- or as SIGN_LANGUAGE_FEATURE_ID,
2610
- va as describeSignLanguage,
2611
- ga as isSignLanguageCard,
2612
- pa as matchesRequestedSignLanguage,
2613
- Sa as resolveRequestedSignLanguage,
2614
- ka as resolveSignLanguageAlternate,
2615
- Ea as resolveSignLanguageContent,
2616
- _a as resolveSignLanguageMedia,
2617
- Wa as signLanguageRegistration
2611
+ Ga as AMERICAN_SIGN_LANGUAGE,
2612
+ Ra as CONTENT_MEDIA_SURFACE,
2613
+ ma as SIGN_LANGUAGE_CATALOG_TYPE,
2614
+ Na as SIGN_LANGUAGE_ELEMENT_TAG,
2615
+ cr as SIGN_LANGUAGE_FEATURE_ID,
2616
+ ya as describeSignLanguage,
2617
+ ka as isSignLanguageCard,
2618
+ $a as matchesRequestedSignLanguage,
2619
+ La as resolveRequestedSignLanguage,
2620
+ Aa as resolveSignLanguageAlternate,
2621
+ Oa as resolveSignLanguageContent,
2622
+ ba as resolveSignLanguageMedia,
2623
+ Ha as signLanguageRegistration
2618
2624
  };