@walker-di/fortalece-ai-sdk 0.3.13 → 0.3.16

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,57 +1,57 @@
1
1
  typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
2
- const $s = 1, Ss = 2, ks = 16, Es = 1, Cs = 2, fn = "[", Xt = "[!", Ir = "]", ht = {}, B = /* @__PURE__ */ Symbol(), As = "http://www.w3.org/1999/xhtml", xr = !1;
3
- var un = Array.isArray, zs = Array.prototype.indexOf, pt = Array.prototype.includes, Qt = Array.from, Vt = Object.keys, Wt = Object.defineProperty, dt = Object.getOwnPropertyDescriptor, Ts = Object.getOwnPropertyDescriptors, Rs = Object.prototype, Ms = Array.prototype, dn = Object.getPrototypeOf, Jr = Object.isExtensible;
4
- function Is(e) {
2
+ const Ss = 1, ks = 2, Es = 16, Cs = 1, As = 2, dn = "[", Qt = "[!", Dr = "]", pt = {}, B = /* @__PURE__ */ Symbol(), Ts = "http://www.w3.org/1999/xhtml", Sr = !1;
3
+ var hn = Array.isArray, zs = Array.prototype.indexOf, vt = Array.prototype.includes, er = Array.from, Vt = Object.keys, Gt = Object.defineProperty, ht = Object.getOwnPropertyDescriptor, Rs = Object.getOwnPropertyDescriptors, Ms = Object.prototype, Is = Array.prototype, pn = Object.getPrototypeOf, Qr = Object.isExtensible;
4
+ function Os(e) {
5
5
  for (var t = 0; t < e.length; t++)
6
6
  e[t]();
7
7
  }
8
- function hn() {
8
+ function vn() {
9
9
  var e, t, r = new Promise((n, s) => {
10
10
  e = n, t = s;
11
11
  });
12
12
  return { promise: r, resolve: e, reject: t };
13
13
  }
14
- const H = 2, Kt = 4, er = 8, pn = 1 << 24, Fe = 16, $e = 32, Ge = 64, Dr = 128, he = 512, P = 1024, q = 2048, ye = 4096, ae = 8192, Ne = 16384, tr = 32768, vt = 65536, Xr = 1 << 17, vn = 1 << 18, at = 1 << 19, Ds = 1 << 20, qe = 1 << 25, st = 32768, $r = 1 << 21, Lr = 1 << 22, Ve = 1 << 23, jt = /* @__PURE__ */ Symbol("$state"), Ls = /* @__PURE__ */ Symbol("legacy props"), Os = /* @__PURE__ */ Symbol(""), ft = new class extends Error {
14
+ const q = 2, Kt = 4, tr = 8, gn = 1 << 24, Ue = 16, Se = 32, Ze = 64, Lr = 128, pe = 512, F = 1024, W = 2048, $e = 4096, oe = 8192, Pe = 16384, rr = 32768, gt = 65536, en = 1 << 17, mn = 1 << 18, ot = 1 << 19, Ds = 1 << 20, We = 1 << 25, it = 32768, kr = 1 << 21, Nr = 1 << 22, Ve = 1 << 23, Ht = /* @__PURE__ */ Symbol("$state"), Ls = /* @__PURE__ */ Symbol("legacy props"), Ns = /* @__PURE__ */ Symbol(""), ut = new class extends Error {
15
15
  name = "StaleReactionError";
16
16
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
17
- }(), rr = 3, bt = 8;
18
- function Ns(e) {
17
+ }(), nr = 3, wt = 8;
18
+ function Ps(e) {
19
19
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
20
20
  }
21
- function Ps() {
21
+ function Fs() {
22
22
  throw new Error("https://svelte.dev/e/async_derived_orphan");
23
23
  }
24
- function Fs(e) {
24
+ function Us(e) {
25
25
  throw new Error("https://svelte.dev/e/effect_in_teardown");
26
26
  }
27
- function Us() {
27
+ function js() {
28
28
  throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
29
29
  }
30
30
  function Bs(e) {
31
31
  throw new Error("https://svelte.dev/e/effect_orphan");
32
32
  }
33
- function js() {
33
+ function Hs() {
34
34
  throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
35
35
  }
36
- function Hs() {
36
+ function qs() {
37
37
  throw new Error("https://svelte.dev/e/hydration_failed");
38
38
  }
39
- function qs() {
39
+ function Ws() {
40
40
  throw new Error("https://svelte.dev/e/state_descriptors_fixed");
41
41
  }
42
42
  function Vs() {
43
43
  throw new Error("https://svelte.dev/e/state_prototype_fixed");
44
44
  }
45
- function Ws() {
45
+ function Gs() {
46
46
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
47
47
  }
48
48
  function Ks() {
49
49
  throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
50
50
  }
51
- function nr(e) {
51
+ function sr(e) {
52
52
  console.warn("https://svelte.dev/e/hydration_mismatch");
53
53
  }
54
- function Ys() {
54
+ function Js() {
55
55
  console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
56
56
  }
57
57
  let k = !1;
@@ -59,72 +59,72 @@ function Le(e) {
59
59
  k = e;
60
60
  }
61
61
  let S;
62
- function oe(e) {
62
+ function le(e) {
63
63
  if (e === null)
64
- throw nr(), ht;
64
+ throw sr(), pt;
65
65
  return S = e;
66
66
  }
67
- function sr() {
68
- return oe(/* @__PURE__ */ Ae(S));
67
+ function ir() {
68
+ return le(/* @__PURE__ */ Te(S));
69
69
  }
70
- function R(e) {
70
+ function M(e) {
71
71
  if (k) {
72
- if (/* @__PURE__ */ Ae(S) !== null)
73
- throw nr(), ht;
72
+ if (/* @__PURE__ */ Te(S) !== null)
73
+ throw sr(), pt;
74
74
  S = e;
75
75
  }
76
76
  }
77
- function Or(e = 1) {
77
+ function Pr(e = 1) {
78
78
  if (k) {
79
79
  for (var t = e, r = S; t--; )
80
80
  r = /** @type {TemplateNode} */
81
- /* @__PURE__ */ Ae(r);
81
+ /* @__PURE__ */ Te(r);
82
82
  S = r;
83
83
  }
84
84
  }
85
- function Yt(e = !0) {
85
+ function Jt(e = !0) {
86
86
  for (var t = 0, r = S; ; ) {
87
- if (r.nodeType === bt) {
87
+ if (r.nodeType === wt) {
88
88
  var n = (
89
89
  /** @type {Comment} */
90
90
  r.data
91
91
  );
92
- if (n === Ir) {
92
+ if (n === Dr) {
93
93
  if (t === 0) return r;
94
94
  t -= 1;
95
- } else (n === fn || n === Xt) && (t += 1);
95
+ } else (n === dn || n === Qt) && (t += 1);
96
96
  }
97
97
  var s = (
98
98
  /** @type {TemplateNode} */
99
- /* @__PURE__ */ Ae(r)
99
+ /* @__PURE__ */ Te(r)
100
100
  );
101
101
  e && r.remove(), r = s;
102
102
  }
103
103
  }
104
- function gn(e) {
105
- if (!e || e.nodeType !== bt)
106
- throw nr(), ht;
104
+ function _n(e) {
105
+ if (!e || e.nodeType !== wt)
106
+ throw sr(), pt;
107
107
  return (
108
108
  /** @type {Comment} */
109
109
  e.data
110
110
  );
111
111
  }
112
- function mn(e) {
112
+ function bn(e) {
113
113
  return e === this.v;
114
114
  }
115
- function Zs(e, t) {
115
+ function Ys(e, t) {
116
116
  return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
117
117
  }
118
- function _n(e) {
119
- return !Zs(e, this.v);
118
+ function wn(e) {
119
+ return !Ys(e, this.v);
120
120
  }
121
- let Gs = !1, le = null;
122
- function gt(e) {
123
- le = e;
121
+ let Zs = !1, ce = null;
122
+ function mt(e) {
123
+ ce = e;
124
124
  }
125
- function Nr(e, t = !1, r) {
126
- le = {
127
- p: le,
125
+ function Fr(e, t = !1, r) {
126
+ ce = {
127
+ p: ce,
128
128
  i: !1,
129
129
  c: null,
130
130
  e: null,
@@ -133,54 +133,54 @@ function Nr(e, t = !1, r) {
133
133
  l: null
134
134
  };
135
135
  }
136
- function Pr(e) {
136
+ function Ur(e) {
137
137
  var t = (
138
138
  /** @type {ComponentContext} */
139
- le
139
+ ce
140
140
  ), r = t.e;
141
141
  if (r !== null) {
142
142
  t.e = null;
143
143
  for (var n of r)
144
- Un(n);
144
+ Bn(n);
145
145
  }
146
- return e !== void 0 && (t.x = e), t.i = !0, le = t.p, e ?? /** @type {T} */
146
+ return e !== void 0 && (t.x = e), t.i = !0, ce = t.p, e ?? /** @type {T} */
147
147
  {};
148
148
  }
149
- function bn() {
149
+ function yn() {
150
150
  return !0;
151
151
  }
152
- let Qe = [];
153
- function wn() {
154
- var e = Qe;
155
- Qe = [], Is(e);
152
+ let et = [];
153
+ function $n() {
154
+ var e = et;
155
+ et = [], Os(e);
156
156
  }
157
- function tt(e) {
158
- if (Qe.length === 0 && !At) {
159
- var t = Qe;
157
+ function rt(e) {
158
+ if (et.length === 0 && !Tt) {
159
+ var t = et;
160
160
  queueMicrotask(() => {
161
- t === Qe && wn();
161
+ t === et && $n();
162
162
  });
163
163
  }
164
- Qe.push(e);
164
+ et.push(e);
165
165
  }
166
- function Js() {
167
- for (; Qe.length > 0; )
168
- wn();
166
+ function Xs() {
167
+ for (; et.length > 0; )
168
+ $n();
169
169
  }
170
- function yn(e) {
170
+ function xn(e) {
171
171
  var t = E;
172
172
  if (t === null)
173
- return $.f |= Ve, e;
174
- if ((t.f & tr) === 0) {
175
- if ((t.f & Dr) === 0)
173
+ return x.f |= Ve, e;
174
+ if ((t.f & rr) === 0) {
175
+ if ((t.f & Lr) === 0)
176
176
  throw e;
177
177
  t.b.error(e);
178
178
  } else
179
- mt(e, t);
179
+ _t(e, t);
180
180
  }
181
- function mt(e, t) {
181
+ function _t(e, t) {
182
182
  for (; t !== null; ) {
183
- if ((t.f & Dr) !== 0)
183
+ if ((t.f & Lr) !== 0)
184
184
  try {
185
185
  t.b.error(e);
186
186
  return;
@@ -191,27 +191,27 @@ function mt(e, t) {
191
191
  }
192
192
  throw e;
193
193
  }
194
- const Xs = -7169;
195
- function N(e, t) {
196
- e.f = e.f & Xs | t;
194
+ const Qs = -7169;
195
+ function P(e, t) {
196
+ e.f = e.f & Qs | t;
197
197
  }
198
- function Fr(e) {
199
- (e.f & he) !== 0 || e.deps === null ? N(e, P) : N(e, ye);
198
+ function jr(e) {
199
+ (e.f & pe) !== 0 || e.deps === null ? P(e, F) : P(e, $e);
200
200
  }
201
- function xn(e) {
201
+ function Sn(e) {
202
202
  if (e !== null)
203
203
  for (const t of e)
204
- (t.f & H) === 0 || (t.f & st) === 0 || (t.f ^= st, xn(
204
+ (t.f & q) === 0 || (t.f & it) === 0 || (t.f ^= it, Sn(
205
205
  /** @type {Derived} */
206
206
  t.deps
207
207
  ));
208
208
  }
209
- function $n(e, t, r) {
210
- (e.f & q) !== 0 ? t.add(e) : (e.f & ye) !== 0 && r.add(e), xn(e.deps), N(e, P);
209
+ function kn(e, t, r) {
210
+ (e.f & W) !== 0 ? t.add(e) : (e.f & $e) !== 0 && r.add(e), Sn(e.deps), P(e, F);
211
211
  }
212
- const Ut = /* @__PURE__ */ new Set();
213
- let D = null, _e = null, ie = [], ir = null, Sr = !1, At = !1;
214
- class Pe {
212
+ const jt = /* @__PURE__ */ new Set();
213
+ let D = null, be = null, ae = [], ar = null, Er = !1, Tt = !1;
214
+ class Fe {
215
215
  committed = !1;
216
216
  /**
217
217
  * The current values of any sources that are updated in this batch
@@ -290,9 +290,9 @@ class Pe {
290
290
  if (r) {
291
291
  this.#i.delete(t);
292
292
  for (var n of r.d)
293
- N(n, q), be(n);
293
+ P(n, W), we(n);
294
294
  for (n of r.m)
295
- N(n, ye), be(n);
295
+ P(n, $e), we(n);
296
296
  }
297
297
  }
298
298
  /**
@@ -300,19 +300,19 @@ class Pe {
300
300
  * @param {Effect[]} root_effects
301
301
  */
302
302
  process(t) {
303
- ie = [], this.apply();
303
+ ae = [], this.apply();
304
304
  var r = [], n = [];
305
305
  for (const s of t)
306
306
  this.#c(s, r, n);
307
307
  if (this.is_deferred()) {
308
308
  this.#u(n), this.#u(r);
309
309
  for (const [s, i] of this.#i)
310
- Cn(s, i);
310
+ Tn(s, i);
311
311
  } else {
312
312
  for (const s of this.#e) s();
313
- this.#e.clear(), this.#r === 0 && this.#f(), D = null, Qr(n), Qr(r), this.#o?.resolve();
313
+ this.#e.clear(), this.#r === 0 && this.#f(), D = null, tn(n), tn(r), this.#o?.resolve();
314
314
  }
315
- _e = null;
315
+ be = null;
316
316
  }
317
317
  /**
318
318
  * Traverse the effect tree, executing effects or stashing
@@ -322,11 +322,11 @@ class Pe {
322
322
  * @param {Effect[]} render_effects
323
323
  */
324
324
  #c(t, r, n) {
325
- t.f ^= P;
325
+ t.f ^= F;
326
326
  for (var s = t.first, i = null; s !== null; ) {
327
- var a = s.f, o = (a & ($e | Ge)) !== 0, l = o && (a & P) !== 0, f = l || (a & ae) !== 0 || this.#i.has(s);
327
+ var a = s.f, o = (a & (Se | Ze)) !== 0, l = o && (a & F) !== 0, f = l || (a & oe) !== 0 || this.#i.has(s);
328
328
  if (!f && s.fn !== null) {
329
- o ? s.f ^= P : i !== null && (a & (Kt | er | pn)) !== 0 ? i.b.defer_effect(s) : (a & Kt) !== 0 ? r.push(s) : Rt(s) && ((a & Fe) !== 0 && this.#n.add(s), Tt(s));
329
+ o ? s.f ^= F : i !== null && (a & (Kt | tr | gn)) !== 0 ? i.b.defer_effect(s) : (a & Kt) !== 0 ? r.push(s) : Mt(s) && ((a & Ue) !== 0 && this.#n.add(s), Rt(s));
330
330
  var u = s.first;
331
331
  if (u !== null) {
332
332
  s = u;
@@ -343,7 +343,7 @@ class Pe {
343
343
  */
344
344
  #u(t) {
345
345
  for (var r = 0; r < t.length; r += 1)
346
- $n(t[r], this.#s, this.#n);
346
+ kn(t[r], this.#s, this.#n);
347
347
  }
348
348
  /**
349
349
  * Associate a change to a given source with the current
@@ -352,17 +352,17 @@ class Pe {
352
352
  * @param {any} value
353
353
  */
354
354
  capture(t, r) {
355
- r !== B && !this.previous.has(t) && this.previous.set(t, r), (t.f & Ve) === 0 && (this.current.set(t, t.v), _e?.set(t, t.v));
355
+ r !== B && !this.previous.has(t) && this.previous.set(t, r), (t.f & Ve) === 0 && (this.current.set(t, t.v), be?.set(t, t.v));
356
356
  }
357
357
  activate() {
358
358
  D = this, this.apply();
359
359
  }
360
360
  deactivate() {
361
- D === this && (D = null, _e = null);
361
+ D === this && (D = null, be = null);
362
362
  }
363
363
  flush() {
364
- if (this.activate(), ie.length > 0) {
365
- if (Sn(), D !== null && D !== this)
364
+ if (this.activate(), ae.length > 0) {
365
+ if (En(), D !== null && D !== this)
366
366
  return;
367
367
  } else this.#r === 0 && this.process([]);
368
368
  this.deactivate();
@@ -372,10 +372,10 @@ class Pe {
372
372
  this.#t.clear();
373
373
  }
374
374
  #f() {
375
- if (Ut.size > 1) {
375
+ if (jt.size > 1) {
376
376
  this.previous.clear();
377
- var t = _e, r = !0;
378
- for (const s of Ut) {
377
+ var t = be, r = !0;
378
+ for (const s of jt) {
379
379
  if (s === this) {
380
380
  r = !1;
381
381
  continue;
@@ -393,23 +393,23 @@ class Pe {
393
393
  continue;
394
394
  const a = [...s.current.keys()].filter((o) => !this.current.has(o));
395
395
  if (a.length > 0) {
396
- var n = ie;
397
- ie = [];
396
+ var n = ae;
397
+ ae = [];
398
398
  const o = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map();
399
399
  for (const f of i)
400
- kn(f, a, o, l);
401
- if (ie.length > 0) {
400
+ Cn(f, a, o, l);
401
+ if (ae.length > 0) {
402
402
  D = s, s.apply();
403
- for (const f of ie)
403
+ for (const f of ae)
404
404
  s.#c(f, [], []);
405
405
  s.deactivate();
406
406
  }
407
- ie = n;
407
+ ae = n;
408
408
  }
409
409
  }
410
- D = null, _e = t;
410
+ D = null, be = t;
411
411
  }
412
- this.committed = !0, Ut.delete(this);
412
+ this.committed = !0, jt.delete(this);
413
413
  }
414
414
  /**
415
415
  *
@@ -423,15 +423,15 @@ class Pe {
423
423
  * @param {boolean} blocking
424
424
  */
425
425
  decrement(t) {
426
- this.#r -= 1, t && (this.#a -= 1), !this.#l && (this.#l = !0, tt(() => {
427
- this.#l = !1, this.is_deferred() ? ie.length > 0 && this.flush() : this.revive();
426
+ this.#r -= 1, t && (this.#a -= 1), !this.#l && (this.#l = !0, rt(() => {
427
+ this.#l = !1, this.is_deferred() ? ae.length > 0 && this.flush() : this.revive();
428
428
  }));
429
429
  }
430
430
  revive() {
431
431
  for (const t of this.#s)
432
- this.#n.delete(t), N(t, q), be(t);
432
+ this.#n.delete(t), P(t, W), we(t);
433
433
  for (const t of this.#n)
434
- N(t, ye), be(t);
434
+ P(t, $e), we(t);
435
435
  this.flush();
436
436
  }
437
437
  /** @param {() => void} fn */
@@ -443,12 +443,12 @@ class Pe {
443
443
  this.#t.add(t);
444
444
  }
445
445
  settled() {
446
- return (this.#o ??= hn()).promise;
446
+ return (this.#o ??= vn()).promise;
447
447
  }
448
448
  static ensure() {
449
449
  if (D === null) {
450
- const t = D = new Pe();
451
- Ut.add(D), At || tt(() => {
450
+ const t = D = new Fe();
451
+ jt.add(D), Tt || rt(() => {
452
452
  D === t && t.flush();
453
453
  });
454
454
  }
@@ -458,59 +458,59 @@ class Pe {
458
458
  }
459
459
  }
460
460
  function K(e) {
461
- var t = At;
462
- At = !0;
461
+ var t = Tt;
462
+ Tt = !0;
463
463
  try {
464
464
  for (var r; ; ) {
465
- if (Js(), ie.length === 0 && (D?.flush(), ie.length === 0))
466
- return ir = null, /** @type {T} */
465
+ if (Xs(), ae.length === 0 && (D?.flush(), ae.length === 0))
466
+ return ar = null, /** @type {T} */
467
467
  r;
468
- Sn();
468
+ En();
469
469
  }
470
470
  } finally {
471
- At = t;
471
+ Tt = t;
472
472
  }
473
473
  }
474
- function Sn() {
475
- Sr = !0;
474
+ function En() {
475
+ Er = !0;
476
476
  var e = null;
477
477
  try {
478
- for (var t = 0; ie.length > 0; ) {
479
- var r = Pe.ensure();
478
+ for (var t = 0; ae.length > 0; ) {
479
+ var r = Fe.ensure();
480
480
  if (t++ > 1e3) {
481
481
  var n, s;
482
- Qs();
482
+ ei();
483
483
  }
484
- r.process(ie), We.clear();
484
+ r.process(ae), Ge.clear();
485
485
  }
486
486
  } finally {
487
- Sr = !1, ir = null;
487
+ Er = !1, ar = null;
488
488
  }
489
489
  }
490
- function Qs() {
490
+ function ei() {
491
491
  try {
492
- js();
492
+ Hs();
493
493
  } catch (e) {
494
- mt(e, ir);
494
+ _t(e, ar);
495
495
  }
496
496
  }
497
497
  let De = null;
498
- function Qr(e) {
498
+ function tn(e) {
499
499
  var t = e.length;
500
500
  if (t !== 0) {
501
501
  for (var r = 0; r < t; ) {
502
502
  var n = e[r++];
503
- if ((n.f & (Ne | ae)) === 0 && Rt(n) && (De = /* @__PURE__ */ new Set(), Tt(n), n.deps === null && n.first === null && n.nodes === null && (n.teardown === null && n.ac === null ? qn(n) : n.fn = null), De?.size > 0)) {
504
- We.clear();
503
+ if ((n.f & (Pe | oe)) === 0 && Mt(n) && (De = /* @__PURE__ */ new Set(), Rt(n), n.deps === null && n.first === null && n.nodes === null && (n.teardown === null && n.ac === null ? Vn(n) : n.fn = null), De?.size > 0)) {
504
+ Ge.clear();
505
505
  for (const s of De) {
506
- if ((s.f & (Ne | ae)) !== 0) continue;
506
+ if ((s.f & (Pe | oe)) !== 0) continue;
507
507
  const i = [s];
508
508
  let a = s.parent;
509
509
  for (; a !== null; )
510
510
  De.has(a) && (De.delete(a), i.push(a)), a = a.parent;
511
511
  for (let o = i.length - 1; o >= 0; o--) {
512
512
  const l = i[o];
513
- (l.f & (Ne | ae)) === 0 && Tt(l);
513
+ (l.f & (Pe | oe)) === 0 && Rt(l);
514
514
  }
515
515
  }
516
516
  De.clear();
@@ -519,30 +519,30 @@ function Qr(e) {
519
519
  De = null;
520
520
  }
521
521
  }
522
- function kn(e, t, r, n) {
522
+ function Cn(e, t, r, n) {
523
523
  if (!r.has(e) && (r.add(e), e.reactions !== null))
524
524
  for (const s of e.reactions) {
525
525
  const i = s.f;
526
- (i & H) !== 0 ? kn(
526
+ (i & q) !== 0 ? Cn(
527
527
  /** @type {Derived} */
528
528
  s,
529
529
  t,
530
530
  r,
531
531
  n
532
- ) : (i & (Lr | Fe)) !== 0 && (i & q) === 0 && En(s, t, n) && (N(s, q), be(
532
+ ) : (i & (Nr | Ue)) !== 0 && (i & W) === 0 && An(s, t, n) && (P(s, W), we(
533
533
  /** @type {Effect} */
534
534
  s
535
535
  ));
536
536
  }
537
537
  }
538
- function En(e, t, r) {
538
+ function An(e, t, r) {
539
539
  const n = r.get(e);
540
540
  if (n !== void 0) return n;
541
541
  if (e.deps !== null)
542
542
  for (const s of e.deps) {
543
- if (pt.call(t, s))
543
+ if (vt.call(t, s))
544
544
  return !0;
545
- if ((s.f & H) !== 0 && En(
545
+ if ((s.f & q) !== 0 && An(
546
546
  /** @type {Derived} */
547
547
  s,
548
548
  t,
@@ -556,41 +556,41 @@ function En(e, t, r) {
556
556
  }
557
557
  return r.set(e, !1), !1;
558
558
  }
559
- function be(e) {
560
- for (var t = ir = e; t.parent !== null; ) {
559
+ function we(e) {
560
+ for (var t = ar = e; t.parent !== null; ) {
561
561
  t = t.parent;
562
562
  var r = t.f;
563
- if (Sr && t === E && (r & Fe) !== 0 && (r & vn) === 0)
563
+ if (Er && t === E && (r & Ue) !== 0 && (r & mn) === 0)
564
564
  return;
565
- if ((r & (Ge | $e)) !== 0) {
566
- if ((r & P) === 0) return;
567
- t.f ^= P;
565
+ if ((r & (Ze | Se)) !== 0) {
566
+ if ((r & F) === 0) return;
567
+ t.f ^= F;
568
568
  }
569
569
  }
570
- ie.push(t);
570
+ ae.push(t);
571
571
  }
572
- function Cn(e, t) {
573
- if (!((e.f & $e) !== 0 && (e.f & P) !== 0)) {
574
- (e.f & q) !== 0 ? t.d.push(e) : (e.f & ye) !== 0 && t.m.push(e), N(e, P);
572
+ function Tn(e, t) {
573
+ if (!((e.f & Se) !== 0 && (e.f & F) !== 0)) {
574
+ (e.f & W) !== 0 ? t.d.push(e) : (e.f & $e) !== 0 && t.m.push(e), P(e, F);
575
575
  for (var r = e.first; r !== null; )
576
- Cn(r, t), r = r.next;
576
+ Tn(r, t), r = r.next;
577
577
  }
578
578
  }
579
- function ei(e) {
580
- let t = 0, r = it(0), n;
579
+ function ti(e) {
580
+ let t = 0, r = at(0), n;
581
581
  return () => {
582
- jr() && (c(r), Hr(() => (t === 0 && (n = Wr(() => e(() => zt(r)))), t += 1, () => {
583
- tt(() => {
582
+ qr() && (c(r), Wr(() => (t === 0 && (n = Kr(() => e(() => zt(r)))), t += 1, () => {
583
+ rt(() => {
584
584
  t -= 1, t === 0 && (n?.(), n = void 0, zt(r));
585
585
  });
586
586
  })));
587
587
  };
588
588
  }
589
- var ti = vt | at | Dr;
590
- function ri(e, t, r) {
591
- new ni(e, t, r);
589
+ var ri = gt | ot | Lr;
590
+ function ni(e, t, r) {
591
+ new si(e, t, r);
592
592
  }
593
- class ni {
593
+ class si {
594
594
  /** @type {Boundary | null} */
595
595
  parent;
596
596
  is_pending = !1;
@@ -630,7 +630,7 @@ class ni {
630
630
  * @type {Source<number> | null}
631
631
  */
632
632
  #d = null;
633
- #y = ei(() => (this.#d = it(this.#u), () => {
633
+ #y = ti(() => (this.#d = at(this.#u), () => {
634
634
  this.#d = null;
635
635
  }));
636
636
  /**
@@ -640,16 +640,16 @@ class ni {
640
640
  */
641
641
  constructor(t, r, n) {
642
642
  this.#e = t, this.#r = r, this.#a = n, this.parent = /** @type {Effect} */
643
- E.b, this.is_pending = !!this.#r.pending, this.#o = qr(() => {
643
+ E.b, this.is_pending = !!this.#r.pending, this.#o = Vr(() => {
644
644
  if (E.b = this, k) {
645
645
  const i = this.#t;
646
- sr(), /** @type {Comment} */
647
- i.nodeType === bt && /** @type {Comment} */
648
- i.data === Xt ? this.#$() : (this.#x(), this.#f === 0 && (this.is_pending = !1));
646
+ ir(), /** @type {Comment} */
647
+ i.nodeType === wt && /** @type {Comment} */
648
+ i.data === Qt ? this.#x() : (this.#$(), this.#f === 0 && (this.is_pending = !1));
649
649
  } else {
650
650
  var s = this.#b();
651
651
  try {
652
- this.#s = de(() => n(s));
652
+ this.#s = he(() => n(s));
653
653
  } catch (i) {
654
654
  this.error(i);
655
655
  }
@@ -658,20 +658,20 @@ class ni {
658
658
  return () => {
659
659
  this.#c?.remove();
660
660
  };
661
- }, ti), k && (this.#e = S);
661
+ }, ri), k && (this.#e = S);
662
662
  }
663
- #x() {
663
+ #$() {
664
664
  try {
665
- this.#s = de(() => this.#a(this.#e));
665
+ this.#s = he(() => this.#a(this.#e));
666
666
  } catch (t) {
667
667
  this.error(t);
668
668
  }
669
669
  }
670
- #$() {
670
+ #x() {
671
671
  const t = this.#r.pending;
672
- t && (this.#n = de(() => t(this.#e)), tt(() => {
672
+ t && (this.#n = he(() => t(this.#e)), rt(() => {
673
673
  var r = this.#b();
674
- this.#s = this.#m(() => (Pe.ensure(), de(() => this.#a(r)))), this.#f > 0 ? this.#_() : (rt(
674
+ this.#s = this.#m(() => (Fe.ensure(), he(() => this.#a(r)))), this.#f > 0 ? this.#_() : (nt(
675
675
  /** @type {Effect} */
676
676
  this.#n,
677
677
  () => {
@@ -689,7 +689,7 @@ class ni {
689
689
  * @param {Effect} effect
690
690
  */
691
691
  defer_effect(t) {
692
- $n(t, this.#v, this.#g);
692
+ kn(t, this.#v, this.#g);
693
693
  }
694
694
  /**
695
695
  * Returns `false` if the effect exists inside a boundary whose pending snippet is shown
@@ -705,14 +705,14 @@ class ni {
705
705
  * @param {() => Effect | null} fn
706
706
  */
707
707
  #m(t) {
708
- var r = E, n = $, s = le;
709
- Ce(this.#o), ve(this.#o), gt(this.#o.ctx);
708
+ var r = E, n = x, s = ce;
709
+ Ae(this.#o), ge(this.#o), mt(this.#o.ctx);
710
710
  try {
711
711
  return t();
712
712
  } catch (i) {
713
- return yn(i), null;
713
+ return xn(i), null;
714
714
  } finally {
715
- Ce(r), ve(n), gt(s);
715
+ Ae(r), ge(n), mt(s);
716
716
  }
717
717
  }
718
718
  #_() {
@@ -723,7 +723,7 @@ class ni {
723
723
  this.#s !== null && (this.#l = document.createDocumentFragment(), this.#l.append(
724
724
  /** @type {TemplateNode} */
725
725
  this.#c
726
- ), Kn(this.#s, this.#l)), this.#n === null && (this.#n = de(() => t(this.#e)));
726
+ ), Jn(this.#s, this.#l)), this.#n === null && (this.#n = he(() => t(this.#e)));
727
727
  }
728
728
  /**
729
729
  * Updates the pending count associated with the currently visible pending snippet,
@@ -738,10 +738,10 @@ class ni {
738
738
  if (this.#f += t, this.#f === 0) {
739
739
  this.is_pending = !1;
740
740
  for (const r of this.#v)
741
- N(r, q), be(r);
741
+ P(r, W), we(r);
742
742
  for (const r of this.#g)
743
- N(r, ye), be(r);
744
- this.#v.clear(), this.#g.clear(), this.#n && rt(this.#n, () => {
743
+ P(r, $e), we(r);
744
+ this.#v.clear(), this.#g.clear(), this.#n && nt(this.#n, () => {
745
745
  this.#n = null;
746
746
  }), this.#l && (this.#e.before(this.#l), this.#l = null);
747
747
  }
@@ -753,8 +753,8 @@ class ni {
753
753
  * @param {1 | -1} d
754
754
  */
755
755
  update_pending_count(t) {
756
- this.#w(t), this.#u += t, !(!this.#d || this.#p) && (this.#p = !0, tt(() => {
757
- this.#p = !1, this.#d && _t(this.#d, this.#u);
756
+ this.#w(t), this.#u += t, !(!this.#d || this.#p) && (this.#p = !0, rt(() => {
757
+ this.#p = !1, this.#d && bt(this.#d, this.#u);
758
758
  }));
759
759
  }
760
760
  get_effect_pending() {
@@ -769,30 +769,30 @@ class ni {
769
769
  let n = this.#r.failed;
770
770
  if (this.#h || !r && !n)
771
771
  throw t;
772
- this.#s && (G(this.#s), this.#s = null), this.#n && (G(this.#n), this.#n = null), this.#i && (G(this.#i), this.#i = null), k && (oe(
772
+ this.#s && (Z(this.#s), this.#s = null), this.#n && (Z(this.#n), this.#n = null), this.#i && (Z(this.#i), this.#i = null), k && (le(
773
773
  /** @type {TemplateNode} */
774
774
  this.#t
775
- ), Or(), oe(Yt()));
775
+ ), Pr(), le(Jt()));
776
776
  var s = !1, i = !1;
777
777
  const a = () => {
778
778
  if (s) {
779
- Ys();
779
+ Js();
780
780
  return;
781
781
  }
782
- s = !0, i && Ks(), Pe.ensure(), this.#u = 0, this.#i !== null && rt(this.#i, () => {
782
+ s = !0, i && Ks(), Fe.ensure(), this.#u = 0, this.#i !== null && nt(this.#i, () => {
783
783
  this.#i = null;
784
- }), this.is_pending = this.has_pending_snippet(), this.#s = this.#m(() => (this.#h = !1, de(() => this.#a(this.#e)))), this.#f > 0 ? this.#_() : this.is_pending = !1;
784
+ }), this.is_pending = this.has_pending_snippet(), this.#s = this.#m(() => (this.#h = !1, he(() => this.#a(this.#e)))), this.#f > 0 ? this.#_() : this.is_pending = !1;
785
785
  };
786
- tt(() => {
786
+ rt(() => {
787
787
  try {
788
788
  i = !0, r?.(t, a), i = !1;
789
789
  } catch (o) {
790
- mt(o, this.#o && this.#o.parent);
790
+ _t(o, this.#o && this.#o.parent);
791
791
  }
792
792
  n && (this.#i = this.#m(() => {
793
- Pe.ensure(), this.#h = !0;
793
+ Fe.ensure(), this.#h = !0;
794
794
  try {
795
- return de(() => {
795
+ return he(() => {
796
796
  n(
797
797
  this.#e,
798
798
  () => t,
@@ -800,7 +800,7 @@ class ni {
800
800
  );
801
801
  });
802
802
  } catch (o) {
803
- return mt(
803
+ return _t(
804
804
  o,
805
805
  /** @type {Effect} */
806
806
  this.#o.parent
@@ -812,8 +812,8 @@ class ni {
812
812
  });
813
813
  }
814
814
  }
815
- function si(e, t, r, n) {
816
- const s = ar;
815
+ function ii(e, t, r, n) {
816
+ const s = or;
817
817
  var i = e.filter((h) => !h.settled);
818
818
  if (r.length === 0 && i.length === 0) {
819
819
  n(t.map(s));
@@ -822,45 +822,45 @@ function si(e, t, r, n) {
822
822
  var a = D, o = (
823
823
  /** @type {Effect} */
824
824
  E
825
- ), l = ii(), f = i.length === 1 ? i[0].promise : i.length > 1 ? Promise.all(i.map((h) => h.promise)) : null;
825
+ ), l = ai(), f = i.length === 1 ? i[0].promise : i.length > 1 ? Promise.all(i.map((h) => h.promise)) : null;
826
826
  function u(h) {
827
827
  l();
828
828
  try {
829
829
  n(h);
830
830
  } catch (g) {
831
- (o.f & Ne) === 0 && mt(g, o);
831
+ (o.f & Pe) === 0 && _t(g, o);
832
832
  }
833
- a?.deactivate(), kr();
833
+ a?.deactivate(), Cr();
834
834
  }
835
835
  if (r.length === 0) {
836
836
  f.then(() => u(t.map(s)));
837
837
  return;
838
838
  }
839
839
  function d() {
840
- l(), Promise.all(r.map((h) => /* @__PURE__ */ ai(h))).then((h) => u([...t.map(s), ...h])).catch((h) => mt(h, o));
840
+ l(), Promise.all(r.map((h) => /* @__PURE__ */ oi(h))).then((h) => u([...t.map(s), ...h])).catch((h) => _t(h, o));
841
841
  }
842
842
  f ? f.then(d) : d();
843
843
  }
844
- function ii() {
845
- var e = E, t = $, r = le, n = D;
844
+ function ai() {
845
+ var e = E, t = x, r = ce, n = D;
846
846
  return function(i = !0) {
847
- Ce(e), ve(t), gt(r), i && n?.activate();
847
+ Ae(e), ge(t), mt(r), i && n?.activate();
848
848
  };
849
849
  }
850
- function kr() {
851
- Ce(null), ve(null), gt(null);
850
+ function Cr() {
851
+ Ae(null), ge(null), mt(null);
852
852
  }
853
853
  // @__NO_SIDE_EFFECTS__
854
- function ar(e) {
855
- var t = H | q, r = $ !== null && ($.f & H) !== 0 ? (
854
+ function or(e) {
855
+ var t = q | W, r = x !== null && (x.f & q) !== 0 ? (
856
856
  /** @type {Derived} */
857
- $
857
+ x
858
858
  ) : null;
859
- return E !== null && (E.f |= at), {
860
- ctx: le,
859
+ return E !== null && (E.f |= ot), {
860
+ ctx: ce,
861
861
  deps: null,
862
862
  effects: null,
863
- equals: mn,
863
+ equals: bn,
864
864
  f: t,
865
865
  fn: e,
866
866
  reactions: null,
@@ -875,12 +875,12 @@ function ar(e) {
875
875
  };
876
876
  }
877
877
  // @__NO_SIDE_EFFECTS__
878
- function ai(e, t, r) {
878
+ function oi(e, t, r) {
879
879
  let n = (
880
880
  /** @type {Effect | null} */
881
881
  E
882
882
  );
883
- n === null && Ps();
883
+ n === null && Fs();
884
884
  var s = (
885
885
  /** @type {Boundary} */
886
886
  n.b
@@ -888,19 +888,19 @@ function ai(e, t, r) {
888
888
  /** @type {Promise<V>} */
889
889
  /** @type {unknown} */
890
890
  void 0
891
- ), a = it(
891
+ ), a = at(
892
892
  /** @type {V} */
893
893
  B
894
- ), o = !$, l = /* @__PURE__ */ new Map();
895
- return vi(() => {
896
- var f = hn();
894
+ ), o = !x, l = /* @__PURE__ */ new Map();
895
+ return gi(() => {
896
+ var f = vn();
897
897
  i = f.promise;
898
898
  try {
899
899
  Promise.resolve(e()).then(f.resolve, f.reject).then(() => {
900
- u === D && u.committed && u.deactivate(), kr();
900
+ u === D && u.committed && u.deactivate(), Cr();
901
901
  });
902
902
  } catch (g) {
903
- f.reject(g), kr();
903
+ f.reject(g), Cr();
904
904
  }
905
905
  var u = (
906
906
  /** @type {Batch} */
@@ -908,24 +908,24 @@ function ai(e, t, r) {
908
908
  );
909
909
  if (o) {
910
910
  var d = s.is_rendered();
911
- s.update_pending_count(1), u.increment(d), l.get(u)?.reject(ft), l.delete(u), l.set(u, f);
911
+ s.update_pending_count(1), u.increment(d), l.get(u)?.reject(ut), l.delete(u), l.set(u, f);
912
912
  }
913
913
  const h = (g, p = void 0) => {
914
914
  if (u.activate(), p)
915
- p !== ft && (a.f |= Ve, _t(a, p));
915
+ p !== ut && (a.f |= Ve, bt(a, p));
916
916
  else {
917
- (a.f & Ve) !== 0 && (a.f ^= Ve), _t(a, g);
917
+ (a.f & Ve) !== 0 && (a.f ^= Ve), bt(a, g);
918
918
  for (const [_, z] of l) {
919
919
  if (l.delete(_), _ === u) break;
920
- z.reject(ft);
920
+ z.reject(ut);
921
921
  }
922
922
  }
923
923
  o && (s.update_pending_count(-1), u.decrement(d));
924
924
  };
925
925
  f.promise.then(h, (g) => h(null, g || "unknown"));
926
- }), di(() => {
926
+ }), hi(() => {
927
927
  for (const f of l.values())
928
- f.reject(ft);
928
+ f.reject(ut);
929
929
  }), new Promise((f) => {
930
930
  function u(d) {
931
931
  function h() {
@@ -937,30 +937,30 @@ function ai(e, t, r) {
937
937
  });
938
938
  }
939
939
  // @__NO_SIDE_EFFECTS__
940
- function me(e) {
941
- const t = /* @__PURE__ */ ar(e);
940
+ function _e(e) {
941
+ const t = /* @__PURE__ */ or(e);
942
942
  return Yn(t), t;
943
943
  }
944
944
  // @__NO_SIDE_EFFECTS__
945
- function oi(e) {
946
- const t = /* @__PURE__ */ ar(e);
947
- return t.equals = _n, t;
945
+ function li(e) {
946
+ const t = /* @__PURE__ */ or(e);
947
+ return t.equals = wn, t;
948
948
  }
949
- function An(e) {
949
+ function zn(e) {
950
950
  var t = e.effects;
951
951
  if (t !== null) {
952
952
  e.effects = null;
953
953
  for (var r = 0; r < t.length; r += 1)
954
- G(
954
+ Z(
955
955
  /** @type {Effect} */
956
956
  t[r]
957
957
  );
958
958
  }
959
959
  }
960
- function li(e) {
960
+ function ci(e) {
961
961
  for (var t = e.parent; t !== null; ) {
962
- if ((t.f & H) === 0)
963
- return (t.f & Ne) === 0 ? (
962
+ if ((t.f & q) === 0)
963
+ return (t.f & Pe) === 0 ? (
964
964
  /** @type {Effect} */
965
965
  t
966
966
  ) : null;
@@ -968,34 +968,34 @@ function li(e) {
968
968
  }
969
969
  return null;
970
970
  }
971
- function Ur(e) {
971
+ function Br(e) {
972
972
  var t, r = E;
973
- Ce(li(e));
973
+ Ae(ci(e));
974
974
  try {
975
- e.f &= ~st, An(e), t = Xn(e);
975
+ e.f &= ~it, zn(e), t = es(e);
976
976
  } finally {
977
- Ce(r);
977
+ Ae(r);
978
978
  }
979
979
  return t;
980
980
  }
981
- function zn(e) {
982
- var t = Ur(e);
983
- if (!e.equals(t) && (e.wv = Gn(), (!D?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
984
- N(e, P);
981
+ function Rn(e) {
982
+ var t = Br(e);
983
+ if (!e.equals(t) && (e.wv = Xn(), (!D?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
984
+ P(e, F);
985
985
  return;
986
986
  }
987
- Ze || (_e !== null ? (jr() || D?.is_fork) && _e.set(e, t) : Fr(e));
987
+ Ye || (be !== null ? (qr() || D?.is_fork) && be.set(e, t) : jr(e));
988
988
  }
989
- let Er = /* @__PURE__ */ new Set();
990
- const We = /* @__PURE__ */ new Map();
991
- let Tn = !1;
992
- function it(e, t) {
989
+ let Ar = /* @__PURE__ */ new Set();
990
+ const Ge = /* @__PURE__ */ new Map();
991
+ let Mn = !1;
992
+ function at(e, t) {
993
993
  var r = {
994
994
  f: 0,
995
995
  // TODO ideally we could skip this altogether, but it causes type errors
996
996
  v: e,
997
997
  reactions: null,
998
- equals: mn,
998
+ equals: bn,
999
999
  rv: 0,
1000
1000
  wv: 0
1001
1001
  };
@@ -1003,79 +1003,79 @@ function it(e, t) {
1003
1003
  }
1004
1004
  // @__NO_SIDE_EFFECTS__
1005
1005
  function A(e, t) {
1006
- const r = it(e);
1006
+ const r = at(e);
1007
1007
  return Yn(r), r;
1008
1008
  }
1009
1009
  // @__NO_SIDE_EFFECTS__
1010
- function Rn(e, t = !1, r = !0) {
1011
- const n = it(e);
1012
- return t || (n.equals = _n), n;
1010
+ function In(e, t = !1, r = !0) {
1011
+ const n = at(e);
1012
+ return t || (n.equals = wn), n;
1013
1013
  }
1014
1014
  function m(e, t, r = !1) {
1015
- $ !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1015
+ x !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
1016
1016
  // to ensure we error if state is set inside an inspect effect
1017
- (!we || ($.f & Xr) !== 0) && bn() && ($.f & (H | Fe | Lr | Xr)) !== 0 && (pe === null || !pt.call(pe, e)) && Ws();
1018
- let n = r ? Oe(t) : t;
1019
- return _t(e, n);
1017
+ (!ye || (x.f & en) !== 0) && yn() && (x.f & (q | Ue | Nr | en)) !== 0 && (ve === null || !vt.call(ve, e)) && Gs();
1018
+ let n = r ? Ne(t) : t;
1019
+ return bt(e, n);
1020
1020
  }
1021
- function _t(e, t) {
1021
+ function bt(e, t) {
1022
1022
  if (!e.equals(t)) {
1023
1023
  var r = e.v;
1024
- Ze ? We.set(e, t) : We.set(e, r), e.v = t;
1025
- var n = Pe.ensure();
1026
- if (n.capture(e, r), (e.f & H) !== 0) {
1024
+ Ye ? Ge.set(e, t) : Ge.set(e, r), e.v = t;
1025
+ var n = Fe.ensure();
1026
+ if (n.capture(e, r), (e.f & q) !== 0) {
1027
1027
  const s = (
1028
1028
  /** @type {Derived} */
1029
1029
  e
1030
1030
  );
1031
- (e.f & q) !== 0 && Ur(s), Fr(s);
1031
+ (e.f & W) !== 0 && Br(s), jr(s);
1032
1032
  }
1033
- e.wv = Gn(), Mn(e, q), E !== null && (E.f & P) !== 0 && (E.f & ($e | Ge)) === 0 && (ue === null ? _i([e]) : ue.push(e)), !n.is_fork && Er.size > 0 && !Tn && ci();
1033
+ e.wv = Xn(), On(e, W), E !== null && (E.f & F) !== 0 && (E.f & (Se | Ze)) === 0 && (de === null ? bi([e]) : de.push(e)), !n.is_fork && Ar.size > 0 && !Mn && fi();
1034
1034
  }
1035
1035
  return t;
1036
1036
  }
1037
- function ci() {
1038
- Tn = !1;
1039
- for (const e of Er)
1040
- (e.f & P) !== 0 && N(e, ye), Rt(e) && Tt(e);
1041
- Er.clear();
1037
+ function fi() {
1038
+ Mn = !1;
1039
+ for (const e of Ar)
1040
+ (e.f & F) !== 0 && P(e, $e), Mt(e) && Rt(e);
1041
+ Ar.clear();
1042
1042
  }
1043
1043
  function zt(e) {
1044
1044
  m(e, e.v + 1);
1045
1045
  }
1046
- function Mn(e, t) {
1046
+ function On(e, t) {
1047
1047
  var r = e.reactions;
1048
1048
  if (r !== null)
1049
1049
  for (var n = r.length, s = 0; s < n; s++) {
1050
- var i = r[s], a = i.f, o = (a & q) === 0;
1051
- if (o && N(i, t), (a & H) !== 0) {
1050
+ var i = r[s], a = i.f, o = (a & W) === 0;
1051
+ if (o && P(i, t), (a & q) !== 0) {
1052
1052
  var l = (
1053
1053
  /** @type {Derived} */
1054
1054
  i
1055
1055
  );
1056
- _e?.delete(l), (a & st) === 0 && (a & he && (i.f |= st), Mn(l, ye));
1057
- } else o && ((a & Fe) !== 0 && De !== null && De.add(
1056
+ be?.delete(l), (a & it) === 0 && (a & pe && (i.f |= it), On(l, $e));
1057
+ } else o && ((a & Ue) !== 0 && De !== null && De.add(
1058
1058
  /** @type {Effect} */
1059
1059
  i
1060
- ), be(
1060
+ ), we(
1061
1061
  /** @type {Effect} */
1062
1062
  i
1063
1063
  ));
1064
1064
  }
1065
1065
  }
1066
- function Oe(e) {
1067
- if (typeof e != "object" || e === null || jt in e)
1066
+ function Ne(e) {
1067
+ if (typeof e != "object" || e === null || Ht in e)
1068
1068
  return e;
1069
- const t = dn(e);
1070
- if (t !== Rs && t !== Ms)
1069
+ const t = pn(e);
1070
+ if (t !== Ms && t !== Is)
1071
1071
  return e;
1072
- var r = /* @__PURE__ */ new Map(), n = un(e), s = /* @__PURE__ */ A(0), i = nt, a = (o) => {
1073
- if (nt === i)
1072
+ var r = /* @__PURE__ */ new Map(), n = hn(e), s = /* @__PURE__ */ A(0), i = st, a = (o) => {
1073
+ if (st === i)
1074
1074
  return o();
1075
- var l = $, f = nt;
1076
- ve(null), rn(i);
1075
+ var l = x, f = st;
1076
+ ge(null), sn(i);
1077
1077
  var u = o();
1078
- return ve(l), rn(f), u;
1078
+ return ge(l), sn(f), u;
1079
1079
  };
1080
1080
  return n && r.set("length", /* @__PURE__ */ A(
1081
1081
  /** @type {any[]} */
@@ -1085,7 +1085,7 @@ function Oe(e) {
1085
1085
  e,
1086
1086
  {
1087
1087
  defineProperty(o, l, f) {
1088
- (!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && qs();
1088
+ (!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && Ws();
1089
1089
  var u = r.get(l);
1090
1090
  return u === void 0 ? u = a(() => {
1091
1091
  var d = /* @__PURE__ */ A(f.value);
@@ -1104,11 +1104,11 @@ function Oe(e) {
1104
1104
  return !0;
1105
1105
  },
1106
1106
  get(o, l, f) {
1107
- if (l === jt)
1107
+ if (l === Ht)
1108
1108
  return e;
1109
1109
  var u = r.get(l), d = l in o;
1110
- if (u === void 0 && (!d || dt(o, l)?.writable) && (u = a(() => {
1111
- var g = Oe(d ? o[l] : B), p = /* @__PURE__ */ A(g);
1110
+ if (u === void 0 && (!d || ht(o, l)?.writable) && (u = a(() => {
1111
+ var g = Ne(d ? o[l] : B), p = /* @__PURE__ */ A(g);
1112
1112
  return p;
1113
1113
  }), r.set(l, u)), u !== void 0) {
1114
1114
  var h = c(u);
@@ -1134,12 +1134,12 @@ function Oe(e) {
1134
1134
  return f;
1135
1135
  },
1136
1136
  has(o, l) {
1137
- if (l === jt)
1137
+ if (l === Ht)
1138
1138
  return !0;
1139
1139
  var f = r.get(l), u = f !== void 0 && f.v !== B || Reflect.has(o, l);
1140
- if (f !== void 0 || E !== null && (!u || dt(o, l)?.writable)) {
1140
+ if (f !== void 0 || E !== null && (!u || ht(o, l)?.writable)) {
1141
1141
  f === void 0 && (f = a(() => {
1142
- var h = u ? Oe(o[l]) : B, g = /* @__PURE__ */ A(h);
1142
+ var h = u ? Ne(o[l]) : B, g = /* @__PURE__ */ A(h);
1143
1143
  return g;
1144
1144
  }), r.set(l, f));
1145
1145
  var d = c(f);
@@ -1157,10 +1157,10 @@ function Oe(e) {
1157
1157
  p !== void 0 ? m(p, B) : g in o && (p = a(() => /* @__PURE__ */ A(B)), r.set(g + "", p));
1158
1158
  }
1159
1159
  if (d === void 0)
1160
- (!h || dt(o, l)?.writable) && (d = a(() => /* @__PURE__ */ A(void 0)), m(d, Oe(f)), r.set(l, d));
1160
+ (!h || ht(o, l)?.writable) && (d = a(() => /* @__PURE__ */ A(void 0)), m(d, Ne(f)), r.set(l, d));
1161
1161
  else {
1162
1162
  h = d.v !== B;
1163
- var _ = a(() => Oe(f));
1163
+ var _ = a(() => Ne(f));
1164
1164
  m(d, _);
1165
1165
  }
1166
1166
  var z = Reflect.getOwnPropertyDescriptor(o, l);
@@ -1169,8 +1169,8 @@ function Oe(e) {
1169
1169
  var w = (
1170
1170
  /** @type {Source<number>} */
1171
1171
  r.get("length")
1172
- ), x = Number(l);
1173
- Number.isInteger(x) && x >= w.v && m(w, x + 1);
1172
+ ), $ = Number(l);
1173
+ Number.isInteger($) && $ >= w.v && m(w, $ + 1);
1174
1174
  }
1175
1175
  zt(s);
1176
1176
  }
@@ -1192,123 +1192,123 @@ function Oe(e) {
1192
1192
  }
1193
1193
  );
1194
1194
  }
1195
- var en, In, Dn, Ln;
1196
- function Cr() {
1197
- if (en === void 0) {
1198
- en = window, In = /Firefox/.test(navigator.userAgent);
1195
+ var rn, Dn, Ln, Nn;
1196
+ function Tr() {
1197
+ if (rn === void 0) {
1198
+ rn = window, Dn = /Firefox/.test(navigator.userAgent);
1199
1199
  var e = Element.prototype, t = Node.prototype, r = Text.prototype;
1200
- Dn = dt(t, "firstChild").get, Ln = dt(t, "nextSibling").get, Jr(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Jr(r) && (r.__t = void 0);
1200
+ Ln = ht(t, "firstChild").get, Nn = ht(t, "nextSibling").get, Qr(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Qr(r) && (r.__t = void 0);
1201
1201
  }
1202
1202
  }
1203
1203
  function xe(e = "") {
1204
1204
  return document.createTextNode(e);
1205
1205
  }
1206
1206
  // @__NO_SIDE_EFFECTS__
1207
- function Ye(e) {
1207
+ function Je(e) {
1208
1208
  return (
1209
1209
  /** @type {TemplateNode | null} */
1210
- Dn.call(e)
1210
+ Ln.call(e)
1211
1211
  );
1212
1212
  }
1213
1213
  // @__NO_SIDE_EFFECTS__
1214
- function Ae(e) {
1214
+ function Te(e) {
1215
1215
  return (
1216
1216
  /** @type {TemplateNode | null} */
1217
- Ln.call(e)
1217
+ Nn.call(e)
1218
1218
  );
1219
1219
  }
1220
- function M(e, t) {
1220
+ function I(e, t) {
1221
1221
  if (!k)
1222
- return /* @__PURE__ */ Ye(e);
1223
- var r = /* @__PURE__ */ Ye(S);
1222
+ return /* @__PURE__ */ Je(e);
1223
+ var r = /* @__PURE__ */ Je(S);
1224
1224
  if (r === null)
1225
1225
  r = S.appendChild(xe());
1226
- else if (t && r.nodeType !== rr) {
1226
+ else if (t && r.nodeType !== nr) {
1227
1227
  var n = xe();
1228
- return r?.before(n), oe(n), n;
1228
+ return r?.before(n), le(n), n;
1229
1229
  }
1230
- return t && Br(
1230
+ return t && Hr(
1231
1231
  /** @type {Text} */
1232
1232
  r
1233
- ), oe(r), r;
1233
+ ), le(r), r;
1234
1234
  }
1235
- function On(e, t = !1) {
1235
+ function Pn(e, t = !1) {
1236
1236
  if (!k) {
1237
- var r = /* @__PURE__ */ Ye(e);
1238
- return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Ae(r) : r;
1237
+ var r = /* @__PURE__ */ Je(e);
1238
+ return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Te(r) : r;
1239
1239
  }
1240
1240
  if (t) {
1241
- if (S?.nodeType !== rr) {
1241
+ if (S?.nodeType !== nr) {
1242
1242
  var n = xe();
1243
- return S?.before(n), oe(n), n;
1243
+ return S?.before(n), le(n), n;
1244
1244
  }
1245
- Br(
1245
+ Hr(
1246
1246
  /** @type {Text} */
1247
1247
  S
1248
1248
  );
1249
1249
  }
1250
1250
  return S;
1251
1251
  }
1252
- function O(e, t = 1, r = !1) {
1252
+ function N(e, t = 1, r = !1) {
1253
1253
  let n = k ? S : e;
1254
1254
  for (var s; t--; )
1255
1255
  s = n, n = /** @type {TemplateNode} */
1256
- /* @__PURE__ */ Ae(n);
1256
+ /* @__PURE__ */ Te(n);
1257
1257
  if (!k)
1258
1258
  return n;
1259
1259
  if (r) {
1260
- if (n?.nodeType !== rr) {
1260
+ if (n?.nodeType !== nr) {
1261
1261
  var i = xe();
1262
- return n === null ? s?.after(i) : n.before(i), oe(i), i;
1262
+ return n === null ? s?.after(i) : n.before(i), le(i), i;
1263
1263
  }
1264
- Br(
1264
+ Hr(
1265
1265
  /** @type {Text} */
1266
1266
  n
1267
1267
  );
1268
1268
  }
1269
- return oe(n), n;
1269
+ return le(n), n;
1270
1270
  }
1271
- function Nn(e) {
1271
+ function Fn(e) {
1272
1272
  e.textContent = "";
1273
1273
  }
1274
- function Pn() {
1274
+ function Un() {
1275
1275
  return !1;
1276
1276
  }
1277
- function Br(e) {
1277
+ function Hr(e) {
1278
1278
  if (
1279
1279
  /** @type {string} */
1280
1280
  e.nodeValue.length < 65536
1281
1281
  )
1282
1282
  return;
1283
1283
  let t = e.nextSibling;
1284
- for (; t !== null && t.nodeType === rr; )
1284
+ for (; t !== null && t.nodeType === nr; )
1285
1285
  t.remove(), e.nodeValue += /** @type {string} */
1286
1286
  t.nodeValue, t = e.nextSibling;
1287
1287
  }
1288
- function Fn(e) {
1289
- var t = $, r = E;
1290
- ve(null), Ce(null);
1288
+ function jn(e) {
1289
+ var t = x, r = E;
1290
+ ge(null), Ae(null);
1291
1291
  try {
1292
1292
  return e();
1293
1293
  } finally {
1294
- ve(t), Ce(r);
1294
+ ge(t), Ae(r);
1295
1295
  }
1296
1296
  }
1297
- function fi(e) {
1298
- E === null && ($ === null && Bs(), Us()), Ze && Fs();
1297
+ function ui(e) {
1298
+ E === null && (x === null && Bs(), js()), Ye && Us();
1299
1299
  }
1300
- function ui(e, t) {
1300
+ function di(e, t) {
1301
1301
  var r = t.last;
1302
1302
  r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
1303
1303
  }
1304
1304
  function ze(e, t, r) {
1305
1305
  var n = E;
1306
- n !== null && (n.f & ae) !== 0 && (e |= ae);
1306
+ n !== null && (n.f & oe) !== 0 && (e |= oe);
1307
1307
  var s = {
1308
- ctx: le,
1308
+ ctx: ce,
1309
1309
  deps: null,
1310
1310
  nodes: null,
1311
- f: e | q | he,
1311
+ f: e | W | pe,
1312
1312
  first: null,
1313
1313
  fn: t,
1314
1314
  last: null,
@@ -1322,143 +1322,143 @@ function ze(e, t, r) {
1322
1322
  };
1323
1323
  if (r)
1324
1324
  try {
1325
- Tt(s), s.f |= tr;
1325
+ Rt(s), s.f |= rr;
1326
1326
  } catch (o) {
1327
- throw G(s), o;
1327
+ throw Z(s), o;
1328
1328
  }
1329
- else t !== null && be(s);
1329
+ else t !== null && we(s);
1330
1330
  var i = s;
1331
1331
  if (r && i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
1332
- (i.f & at) === 0 && (i = i.first, (e & Fe) !== 0 && (e & vt) !== 0 && i !== null && (i.f |= vt)), i !== null && (i.parent = n, n !== null && ui(i, n), $ !== null && ($.f & H) !== 0 && (e & Ge) === 0)) {
1332
+ (i.f & ot) === 0 && (i = i.first, (e & Ue) !== 0 && (e & gt) !== 0 && i !== null && (i.f |= gt)), i !== null && (i.parent = n, n !== null && di(i, n), x !== null && (x.f & q) !== 0 && (e & Ze) === 0)) {
1333
1333
  var a = (
1334
1334
  /** @type {Derived} */
1335
- $
1335
+ x
1336
1336
  );
1337
1337
  (a.effects ??= []).push(i);
1338
1338
  }
1339
1339
  return s;
1340
1340
  }
1341
- function jr() {
1342
- return $ !== null && !we;
1341
+ function qr() {
1342
+ return x !== null && !ye;
1343
1343
  }
1344
- function di(e) {
1345
- const t = ze(er, null, !1);
1346
- return N(t, P), t.teardown = e, t;
1344
+ function hi(e) {
1345
+ const t = ze(tr, null, !1);
1346
+ return P(t, F), t.teardown = e, t;
1347
1347
  }
1348
- function Zt(e) {
1349
- fi();
1348
+ function Yt(e) {
1349
+ ui();
1350
1350
  var t = (
1351
1351
  /** @type {Effect} */
1352
1352
  E.f
1353
- ), r = !$ && (t & $e) !== 0 && (t & tr) === 0;
1353
+ ), r = !x && (t & Se) !== 0 && (t & rr) === 0;
1354
1354
  if (r) {
1355
1355
  var n = (
1356
1356
  /** @type {ComponentContext} */
1357
- le
1357
+ ce
1358
1358
  );
1359
1359
  (n.e ??= []).push(e);
1360
1360
  } else
1361
- return Un(e);
1361
+ return Bn(e);
1362
1362
  }
1363
- function Un(e) {
1363
+ function Bn(e) {
1364
1364
  return ze(Kt | Ds, e, !1);
1365
1365
  }
1366
- function hi(e) {
1367
- Pe.ensure();
1368
- const t = ze(Ge | at, e, !0);
1366
+ function pi(e) {
1367
+ Fe.ensure();
1368
+ const t = ze(Ze | ot, e, !0);
1369
1369
  return () => {
1370
- G(t);
1370
+ Z(t);
1371
1371
  };
1372
1372
  }
1373
- function pi(e) {
1374
- Pe.ensure();
1375
- const t = ze(Ge | at, e, !0);
1373
+ function vi(e) {
1374
+ Fe.ensure();
1375
+ const t = ze(Ze | ot, e, !0);
1376
1376
  return (r = {}) => new Promise((n) => {
1377
- r.outro ? rt(t, () => {
1378
- G(t), n(void 0);
1379
- }) : (G(t), n(void 0));
1377
+ r.outro ? nt(t, () => {
1378
+ Z(t), n(void 0);
1379
+ }) : (Z(t), n(void 0));
1380
1380
  });
1381
1381
  }
1382
- function Bn(e) {
1382
+ function Hn(e) {
1383
1383
  return ze(Kt, e, !1);
1384
1384
  }
1385
- function vi(e) {
1386
- return ze(Lr | at, e, !0);
1385
+ function gi(e) {
1386
+ return ze(Nr | ot, e, !0);
1387
1387
  }
1388
- function Hr(e, t = 0) {
1389
- return ze(er | t, e, !0);
1388
+ function Wr(e, t = 0) {
1389
+ return ze(tr | t, e, !0);
1390
1390
  }
1391
- function ee(e, t = [], r = [], n = []) {
1392
- si(n, t, r, (s) => {
1393
- ze(er, () => e(...s.map(c)), !0);
1391
+ function te(e, t = [], r = [], n = []) {
1392
+ ii(n, t, r, (s) => {
1393
+ ze(tr, () => e(...s.map(c)), !0);
1394
1394
  });
1395
1395
  }
1396
- function qr(e, t = 0) {
1397
- var r = ze(Fe | t, e, !0);
1396
+ function Vr(e, t = 0) {
1397
+ var r = ze(Ue | t, e, !0);
1398
1398
  return r;
1399
1399
  }
1400
- function de(e) {
1401
- return ze($e | at, e, !0);
1400
+ function he(e) {
1401
+ return ze(Se | ot, e, !0);
1402
1402
  }
1403
- function jn(e) {
1403
+ function qn(e) {
1404
1404
  var t = e.teardown;
1405
1405
  if (t !== null) {
1406
- const r = Ze, n = $;
1407
- tn(!0), ve(null);
1406
+ const r = Ye, n = x;
1407
+ nn(!0), ge(null);
1408
1408
  try {
1409
1409
  t.call(null);
1410
1410
  } finally {
1411
- tn(r), ve(n);
1411
+ nn(r), ge(n);
1412
1412
  }
1413
1413
  }
1414
1414
  }
1415
- function Hn(e, t = !1) {
1415
+ function Wn(e, t = !1) {
1416
1416
  var r = e.first;
1417
1417
  for (e.first = e.last = null; r !== null; ) {
1418
1418
  const s = r.ac;
1419
- s !== null && Fn(() => {
1420
- s.abort(ft);
1419
+ s !== null && jn(() => {
1420
+ s.abort(ut);
1421
1421
  });
1422
1422
  var n = r.next;
1423
- (r.f & Ge) !== 0 ? r.parent = null : G(r, t), r = n;
1423
+ (r.f & Ze) !== 0 ? r.parent = null : Z(r, t), r = n;
1424
1424
  }
1425
1425
  }
1426
- function gi(e) {
1426
+ function mi(e) {
1427
1427
  for (var t = e.first; t !== null; ) {
1428
1428
  var r = t.next;
1429
- (t.f & $e) === 0 && G(t), t = r;
1429
+ (t.f & Se) === 0 && Z(t), t = r;
1430
1430
  }
1431
1431
  }
1432
- function G(e, t = !0) {
1432
+ function Z(e, t = !0) {
1433
1433
  var r = !1;
1434
- (t || (e.f & vn) !== 0) && e.nodes !== null && e.nodes.end !== null && (mi(
1434
+ (t || (e.f & mn) !== 0) && e.nodes !== null && e.nodes.end !== null && (_i(
1435
1435
  e.nodes.start,
1436
1436
  /** @type {TemplateNode} */
1437
1437
  e.nodes.end
1438
- ), r = !0), Hn(e, t && !r), Gt(e, 0), N(e, Ne);
1438
+ ), r = !0), Wn(e, t && !r), Zt(e, 0), P(e, Pe);
1439
1439
  var n = e.nodes && e.nodes.t;
1440
1440
  if (n !== null)
1441
1441
  for (const i of n)
1442
1442
  i.stop();
1443
- jn(e);
1443
+ qn(e);
1444
1444
  var s = e.parent;
1445
- s !== null && s.first !== null && qn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1445
+ s !== null && s.first !== null && Vn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1446
1446
  }
1447
- function mi(e, t) {
1447
+ function _i(e, t) {
1448
1448
  for (; e !== null; ) {
1449
- var r = e === t ? null : /* @__PURE__ */ Ae(e);
1449
+ var r = e === t ? null : /* @__PURE__ */ Te(e);
1450
1450
  e.remove(), e = r;
1451
1451
  }
1452
1452
  }
1453
- function qn(e) {
1453
+ function Vn(e) {
1454
1454
  var t = e.parent, r = e.prev, n = e.next;
1455
1455
  r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
1456
1456
  }
1457
- function rt(e, t, r = !0) {
1457
+ function nt(e, t, r = !0) {
1458
1458
  var n = [];
1459
- Vn(e, n, !0);
1459
+ Gn(e, n, !0);
1460
1460
  var s = () => {
1461
- r && G(e), t && t();
1461
+ r && Z(e), t && t();
1462
1462
  }, i = n.length;
1463
1463
  if (i > 0) {
1464
1464
  var a = () => --i || s();
@@ -1467,31 +1467,31 @@ function rt(e, t, r = !0) {
1467
1467
  } else
1468
1468
  s();
1469
1469
  }
1470
- function Vn(e, t, r) {
1471
- if ((e.f & ae) === 0) {
1472
- e.f ^= ae;
1470
+ function Gn(e, t, r) {
1471
+ if ((e.f & oe) === 0) {
1472
+ e.f ^= oe;
1473
1473
  var n = e.nodes && e.nodes.t;
1474
1474
  if (n !== null)
1475
1475
  for (const o of n)
1476
1476
  (o.is_global || r) && t.push(o);
1477
1477
  for (var s = e.first; s !== null; ) {
1478
- var i = s.next, a = (s.f & vt) !== 0 || // If this is a branch effect without a block effect parent,
1478
+ var i = s.next, a = (s.f & gt) !== 0 || // If this is a branch effect without a block effect parent,
1479
1479
  // it means the parent block effect was pruned. In that case,
1480
1480
  // transparency information was transferred to the branch effect.
1481
- (s.f & $e) !== 0 && (e.f & Fe) !== 0;
1482
- Vn(s, t, a ? r : !1), s = i;
1481
+ (s.f & Se) !== 0 && (e.f & Ue) !== 0;
1482
+ Gn(s, t, a ? r : !1), s = i;
1483
1483
  }
1484
1484
  }
1485
1485
  }
1486
- function Vr(e) {
1487
- Wn(e, !0);
1486
+ function Gr(e) {
1487
+ Kn(e, !0);
1488
1488
  }
1489
- function Wn(e, t) {
1490
- if ((e.f & ae) !== 0) {
1491
- e.f ^= ae, (e.f & P) === 0 && (N(e, q), be(e));
1489
+ function Kn(e, t) {
1490
+ if ((e.f & oe) !== 0) {
1491
+ e.f ^= oe, (e.f & F) === 0 && (P(e, W), we(e));
1492
1492
  for (var r = e.first; r !== null; ) {
1493
- var n = r.next, s = (r.f & vt) !== 0 || (r.f & $e) !== 0;
1494
- Wn(r, s ? t : !1), r = n;
1493
+ var n = r.next, s = (r.f & gt) !== 0 || (r.f & Se) !== 0;
1494
+ Kn(r, s ? t : !1), r = n;
1495
1495
  }
1496
1496
  var i = e.nodes && e.nodes.t;
1497
1497
  if (i !== null)
@@ -1499,130 +1499,130 @@ function Wn(e, t) {
1499
1499
  (a.is_global || t) && a.in();
1500
1500
  }
1501
1501
  }
1502
- function Kn(e, t) {
1502
+ function Jn(e, t) {
1503
1503
  if (e.nodes)
1504
1504
  for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
1505
- var s = r === n ? null : /* @__PURE__ */ Ae(r);
1505
+ var s = r === n ? null : /* @__PURE__ */ Te(r);
1506
1506
  t.append(r), r = s;
1507
1507
  }
1508
1508
  }
1509
- let Ht = !1, Ze = !1;
1510
- function tn(e) {
1511
- Ze = e;
1509
+ let qt = !1, Ye = !1;
1510
+ function nn(e) {
1511
+ Ye = e;
1512
1512
  }
1513
- let $ = null, we = !1;
1514
- function ve(e) {
1515
- $ = e;
1513
+ let x = null, ye = !1;
1514
+ function ge(e) {
1515
+ x = e;
1516
1516
  }
1517
1517
  let E = null;
1518
- function Ce(e) {
1518
+ function Ae(e) {
1519
1519
  E = e;
1520
1520
  }
1521
- let pe = null;
1521
+ let ve = null;
1522
1522
  function Yn(e) {
1523
- $ !== null && (pe === null ? pe = [e] : pe.push(e));
1523
+ x !== null && (ve === null ? ve = [e] : ve.push(e));
1524
1524
  }
1525
- let te = null, se = 0, ue = null;
1526
- function _i(e) {
1527
- ue = e;
1525
+ let re = null, ie = 0, de = null;
1526
+ function bi(e) {
1527
+ de = e;
1528
1528
  }
1529
- let Zn = 1, et = 0, nt = et;
1530
- function rn(e) {
1531
- nt = e;
1529
+ let Zn = 1, tt = 0, st = tt;
1530
+ function sn(e) {
1531
+ st = e;
1532
1532
  }
1533
- function Gn() {
1533
+ function Xn() {
1534
1534
  return ++Zn;
1535
1535
  }
1536
- function Rt(e) {
1536
+ function Mt(e) {
1537
1537
  var t = e.f;
1538
- if ((t & q) !== 0)
1538
+ if ((t & W) !== 0)
1539
1539
  return !0;
1540
- if (t & H && (e.f &= ~st), (t & ye) !== 0) {
1540
+ if (t & q && (e.f &= ~it), (t & $e) !== 0) {
1541
1541
  for (var r = (
1542
1542
  /** @type {Value[]} */
1543
1543
  e.deps
1544
1544
  ), n = r.length, s = 0; s < n; s++) {
1545
1545
  var i = r[s];
1546
- if (Rt(
1546
+ if (Mt(
1547
1547
  /** @type {Derived} */
1548
1548
  i
1549
- ) && zn(
1549
+ ) && Rn(
1550
1550
  /** @type {Derived} */
1551
1551
  i
1552
1552
  ), i.wv > e.wv)
1553
1553
  return !0;
1554
1554
  }
1555
- (t & he) !== 0 && // During time traveling we don't want to reset the status so that
1555
+ (t & pe) !== 0 && // During time traveling we don't want to reset the status so that
1556
1556
  // traversal of the graph in the other batches still happens
1557
- _e === null && N(e, P);
1557
+ be === null && P(e, F);
1558
1558
  }
1559
1559
  return !1;
1560
1560
  }
1561
- function Jn(e, t, r = !0) {
1561
+ function Qn(e, t, r = !0) {
1562
1562
  var n = e.reactions;
1563
- if (n !== null && !(pe !== null && pt.call(pe, e)))
1563
+ if (n !== null && !(ve !== null && vt.call(ve, e)))
1564
1564
  for (var s = 0; s < n.length; s++) {
1565
1565
  var i = n[s];
1566
- (i.f & H) !== 0 ? Jn(
1566
+ (i.f & q) !== 0 ? Qn(
1567
1567
  /** @type {Derived} */
1568
1568
  i,
1569
1569
  t,
1570
1570
  !1
1571
- ) : t === i && (r ? N(i, q) : (i.f & P) !== 0 && N(i, ye), be(
1571
+ ) : t === i && (r ? P(i, W) : (i.f & F) !== 0 && P(i, $e), we(
1572
1572
  /** @type {Effect} */
1573
1573
  i
1574
1574
  ));
1575
1575
  }
1576
1576
  }
1577
- function Xn(e) {
1578
- var t = te, r = se, n = ue, s = $, i = pe, a = le, o = we, l = nt, f = e.f;
1579
- te = /** @type {null | Value[]} */
1580
- null, se = 0, ue = null, $ = (f & ($e | Ge)) === 0 ? e : null, pe = null, gt(e.ctx), we = !1, nt = ++et, e.ac !== null && (Fn(() => {
1581
- e.ac.abort(ft);
1577
+ function es(e) {
1578
+ var t = re, r = ie, n = de, s = x, i = ve, a = ce, o = ye, l = st, f = e.f;
1579
+ re = /** @type {null | Value[]} */
1580
+ null, ie = 0, de = null, x = (f & (Se | Ze)) === 0 ? e : null, ve = null, mt(e.ctx), ye = !1, st = ++tt, e.ac !== null && (jn(() => {
1581
+ e.ac.abort(ut);
1582
1582
  }), e.ac = null);
1583
1583
  try {
1584
- e.f |= $r;
1584
+ e.f |= kr;
1585
1585
  var u = (
1586
1586
  /** @type {Function} */
1587
1587
  e.fn
1588
1588
  ), d = u(), h = e.deps, g = D?.is_fork;
1589
- if (te !== null) {
1589
+ if (re !== null) {
1590
1590
  var p;
1591
- if (g || Gt(e, se), h !== null && se > 0)
1592
- for (h.length = se + te.length, p = 0; p < te.length; p++)
1593
- h[se + p] = te[p];
1591
+ if (g || Zt(e, ie), h !== null && ie > 0)
1592
+ for (h.length = ie + re.length, p = 0; p < re.length; p++)
1593
+ h[ie + p] = re[p];
1594
1594
  else
1595
- e.deps = h = te;
1596
- if (jr() && (e.f & he) !== 0)
1597
- for (p = se; p < h.length; p++)
1595
+ e.deps = h = re;
1596
+ if (qr() && (e.f & pe) !== 0)
1597
+ for (p = ie; p < h.length; p++)
1598
1598
  (h[p].reactions ??= []).push(e);
1599
- } else !g && h !== null && se < h.length && (Gt(e, se), h.length = se);
1600
- if (bn() && ue !== null && !we && h !== null && (e.f & (H | ye | q)) === 0)
1599
+ } else !g && h !== null && ie < h.length && (Zt(e, ie), h.length = ie);
1600
+ if (yn() && de !== null && !ye && h !== null && (e.f & (q | $e | W)) === 0)
1601
1601
  for (p = 0; p < /** @type {Source[]} */
1602
- ue.length; p++)
1603
- Jn(
1604
- ue[p],
1602
+ de.length; p++)
1603
+ Qn(
1604
+ de[p],
1605
1605
  /** @type {Effect} */
1606
1606
  e
1607
1607
  );
1608
1608
  if (s !== null && s !== e) {
1609
- if (et++, s.deps !== null)
1609
+ if (tt++, s.deps !== null)
1610
1610
  for (let _ = 0; _ < r; _ += 1)
1611
- s.deps[_].rv = et;
1611
+ s.deps[_].rv = tt;
1612
1612
  if (t !== null)
1613
1613
  for (const _ of t)
1614
- _.rv = et;
1615
- ue !== null && (n === null ? n = ue : n.push(.../** @type {Source[]} */
1616
- ue));
1614
+ _.rv = tt;
1615
+ de !== null && (n === null ? n = de : n.push(.../** @type {Source[]} */
1616
+ de));
1617
1617
  }
1618
1618
  return (e.f & Ve) !== 0 && (e.f ^= Ve), d;
1619
1619
  } catch (_) {
1620
- return yn(_);
1620
+ return xn(_);
1621
1621
  } finally {
1622
- e.f ^= $r, te = t, se = r, ue = n, $ = s, pe = i, gt(a), we = o, nt = l;
1622
+ e.f ^= kr, re = t, ie = r, de = n, x = s, ve = i, mt(a), ye = o, st = l;
1623
1623
  }
1624
1624
  }
1625
- function bi(e, t) {
1625
+ function wi(e, t) {
1626
1626
  let r = t.reactions;
1627
1627
  if (r !== null) {
1628
1628
  var n = zs.call(r, e);
@@ -1631,112 +1631,112 @@ function bi(e, t) {
1631
1631
  s === 0 ? r = t.reactions = null : (r[n] = r[s], r.pop());
1632
1632
  }
1633
1633
  }
1634
- if (r === null && (t.f & H) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1634
+ if (r === null && (t.f & q) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
1635
1635
  // to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
1636
1636
  // allows us to skip the expensive work of disconnecting and immediately reconnecting it
1637
- (te === null || !pt.call(te, t))) {
1637
+ (re === null || !vt.call(re, t))) {
1638
1638
  var i = (
1639
1639
  /** @type {Derived} */
1640
1640
  t
1641
1641
  );
1642
- (i.f & he) !== 0 && (i.f ^= he, i.f &= ~st), Fr(i), An(i), Gt(i, 0);
1642
+ (i.f & pe) !== 0 && (i.f ^= pe, i.f &= ~it), jr(i), zn(i), Zt(i, 0);
1643
1643
  }
1644
1644
  }
1645
- function Gt(e, t) {
1645
+ function Zt(e, t) {
1646
1646
  var r = e.deps;
1647
1647
  if (r !== null)
1648
1648
  for (var n = t; n < r.length; n++)
1649
- bi(e, r[n]);
1649
+ wi(e, r[n]);
1650
1650
  }
1651
- function Tt(e) {
1651
+ function Rt(e) {
1652
1652
  var t = e.f;
1653
- if ((t & Ne) === 0) {
1654
- N(e, P);
1655
- var r = E, n = Ht;
1656
- E = e, Ht = !0;
1653
+ if ((t & Pe) === 0) {
1654
+ P(e, F);
1655
+ var r = E, n = qt;
1656
+ E = e, qt = !0;
1657
1657
  try {
1658
- (t & (Fe | pn)) !== 0 ? gi(e) : Hn(e), jn(e);
1659
- var s = Xn(e);
1658
+ (t & (Ue | gn)) !== 0 ? mi(e) : Wn(e), qn(e);
1659
+ var s = es(e);
1660
1660
  e.teardown = typeof s == "function" ? s : null, e.wv = Zn;
1661
1661
  var i;
1662
- xr && Gs && (e.f & q) !== 0 && e.deps;
1662
+ Sr && Zs && (e.f & W) !== 0 && e.deps;
1663
1663
  } finally {
1664
- Ht = n, E = r;
1664
+ qt = n, E = r;
1665
1665
  }
1666
1666
  }
1667
1667
  }
1668
1668
  function c(e) {
1669
- var t = e.f, r = (t & H) !== 0;
1670
- if ($ !== null && !we) {
1671
- var n = E !== null && (E.f & Ne) !== 0;
1672
- if (!n && (pe === null || !pt.call(pe, e))) {
1673
- var s = $.deps;
1674
- if (($.f & $r) !== 0)
1675
- e.rv < et && (e.rv = et, te === null && s !== null && s[se] === e ? se++ : te === null ? te = [e] : te.push(e));
1669
+ var t = e.f, r = (t & q) !== 0;
1670
+ if (x !== null && !ye) {
1671
+ var n = E !== null && (E.f & Pe) !== 0;
1672
+ if (!n && (ve === null || !vt.call(ve, e))) {
1673
+ var s = x.deps;
1674
+ if ((x.f & kr) !== 0)
1675
+ e.rv < tt && (e.rv = tt, re === null && s !== null && s[ie] === e ? ie++ : re === null ? re = [e] : re.push(e));
1676
1676
  else {
1677
- ($.deps ??= []).push(e);
1677
+ (x.deps ??= []).push(e);
1678
1678
  var i = e.reactions;
1679
- i === null ? e.reactions = [$] : pt.call(i, $) || i.push($);
1679
+ i === null ? e.reactions = [x] : vt.call(i, x) || i.push(x);
1680
1680
  }
1681
1681
  }
1682
1682
  }
1683
- if (Ze && We.has(e))
1684
- return We.get(e);
1683
+ if (Ye && Ge.has(e))
1684
+ return Ge.get(e);
1685
1685
  if (r) {
1686
1686
  var a = (
1687
1687
  /** @type {Derived} */
1688
1688
  e
1689
1689
  );
1690
- if (Ze) {
1690
+ if (Ye) {
1691
1691
  var o = a.v;
1692
- return ((a.f & P) === 0 && a.reactions !== null || es(a)) && (o = Ur(a)), We.set(a, o), o;
1692
+ return ((a.f & F) === 0 && a.reactions !== null || rs(a)) && (o = Br(a)), Ge.set(a, o), o;
1693
1693
  }
1694
- var l = (a.f & he) === 0 && !we && $ !== null && (Ht || ($.f & he) !== 0), f = a.deps === null;
1695
- Rt(a) && (l && (a.f |= he), zn(a)), l && !f && Qn(a);
1694
+ var l = (a.f & pe) === 0 && !ye && x !== null && (qt || (x.f & pe) !== 0), f = a.deps === null;
1695
+ Mt(a) && (l && (a.f |= pe), Rn(a)), l && !f && ts(a);
1696
1696
  }
1697
- if (_e?.has(e))
1698
- return _e.get(e);
1697
+ if (be?.has(e))
1698
+ return be.get(e);
1699
1699
  if ((e.f & Ve) !== 0)
1700
1700
  throw e.v;
1701
1701
  return e.v;
1702
1702
  }
1703
- function Qn(e) {
1703
+ function ts(e) {
1704
1704
  if (e.deps !== null) {
1705
- e.f |= he;
1705
+ e.f |= pe;
1706
1706
  for (const t of e.deps)
1707
- (t.reactions ??= []).push(e), (t.f & H) !== 0 && (t.f & he) === 0 && Qn(
1707
+ (t.reactions ??= []).push(e), (t.f & q) !== 0 && (t.f & pe) === 0 && ts(
1708
1708
  /** @type {Derived} */
1709
1709
  t
1710
1710
  );
1711
1711
  }
1712
1712
  }
1713
- function es(e) {
1713
+ function rs(e) {
1714
1714
  if (e.v === B) return !0;
1715
1715
  if (e.deps === null) return !1;
1716
1716
  for (const t of e.deps)
1717
- if (We.has(t) || (t.f & H) !== 0 && es(
1717
+ if (Ge.has(t) || (t.f & q) !== 0 && rs(
1718
1718
  /** @type {Derived} */
1719
1719
  t
1720
1720
  ))
1721
1721
  return !0;
1722
1722
  return !1;
1723
1723
  }
1724
- function Wr(e) {
1725
- var t = we;
1724
+ function Kr(e) {
1725
+ var t = ye;
1726
1726
  try {
1727
- return we = !0, e();
1727
+ return ye = !0, e();
1728
1728
  } finally {
1729
- we = t;
1729
+ ye = t;
1730
1730
  }
1731
1731
  }
1732
- const ts = /* @__PURE__ */ new Set(), Ar = /* @__PURE__ */ new Set();
1733
- function rs(e) {
1732
+ const ns = /* @__PURE__ */ new Set(), zr = /* @__PURE__ */ new Set();
1733
+ function ss(e) {
1734
1734
  for (var t = 0; t < e.length; t++)
1735
- ts.add(e[t]);
1736
- for (var r of Ar)
1735
+ ns.add(e[t]);
1736
+ for (var r of zr)
1737
1737
  r(e);
1738
1738
  }
1739
- let nn = null;
1739
+ let an = null;
1740
1740
  function Bt(e) {
1741
1741
  var t = this, r = (
1742
1742
  /** @type {Node} */
@@ -1745,8 +1745,8 @@ function Bt(e) {
1745
1745
  /** @type {null | Element} */
1746
1746
  s[0] || e.target
1747
1747
  );
1748
- nn = e;
1749
- var a = 0, o = nn === e && e.__root;
1748
+ an = e;
1749
+ var a = 0, o = an === e && e.__root;
1750
1750
  if (o) {
1751
1751
  var l = s.indexOf(o);
1752
1752
  if (l !== -1 && (t === document || t === /** @type {any} */
@@ -1761,14 +1761,14 @@ function Bt(e) {
1761
1761
  }
1762
1762
  if (i = /** @type {Element} */
1763
1763
  s[a] || e.target, i !== t) {
1764
- Wt(e, "currentTarget", {
1764
+ Gt(e, "currentTarget", {
1765
1765
  configurable: !0,
1766
1766
  get() {
1767
1767
  return i || r;
1768
1768
  }
1769
1769
  });
1770
- var u = $, d = E;
1771
- ve(null), Ce(null);
1770
+ var u = x, d = E;
1771
+ ge(null), Ae(null);
1772
1772
  try {
1773
1773
  for (var h, g = []; i !== null; ) {
1774
1774
  var p = i.assignedSlot || i.parentNode || /** @type {any} */
@@ -1794,11 +1794,11 @@ function Bt(e) {
1794
1794
  throw h;
1795
1795
  }
1796
1796
  } finally {
1797
- e.__root = t, delete e.currentTarget, ve(u), Ce(d);
1797
+ e.__root = t, delete e.currentTarget, ge(u), Ae(d);
1798
1798
  }
1799
1799
  }
1800
1800
  }
1801
- function ns(e) {
1801
+ function is(e) {
1802
1802
  var t = document.createElement("template");
1803
1803
  return t.innerHTML = e.replaceAll("<!>", "<!---->"), t.content;
1804
1804
  }
@@ -1810,21 +1810,21 @@ function Ke(e, t) {
1810
1810
  r.nodes === null && (r.nodes = { start: e, end: t, a: null, t: null });
1811
1811
  }
1812
1812
  // @__NO_SIDE_EFFECTS__
1813
- function F(e, t) {
1814
- var r = (t & Es) !== 0, n = (t & Cs) !== 0, s, i = !e.startsWith("<!>");
1813
+ function U(e, t) {
1814
+ var r = (t & Cs) !== 0, n = (t & As) !== 0, s, i = !e.startsWith("<!>");
1815
1815
  return () => {
1816
1816
  if (k)
1817
1817
  return Ke(S, null), S;
1818
- s === void 0 && (s = ns(i ? e : "<!>" + e), r || (s = /** @type {TemplateNode} */
1819
- /* @__PURE__ */ Ye(s)));
1818
+ s === void 0 && (s = is(i ? e : "<!>" + e), r || (s = /** @type {TemplateNode} */
1819
+ /* @__PURE__ */ Je(s)));
1820
1820
  var a = (
1821
1821
  /** @type {TemplateNode} */
1822
- n || In ? document.importNode(s, !0) : s.cloneNode(!0)
1822
+ n || Dn ? document.importNode(s, !0) : s.cloneNode(!0)
1823
1823
  );
1824
1824
  if (r) {
1825
1825
  var o = (
1826
1826
  /** @type {TemplateNode} */
1827
- /* @__PURE__ */ Ye(a)
1827
+ /* @__PURE__ */ Je(a)
1828
1828
  ), l = (
1829
1829
  /** @type {TemplateNode} */
1830
1830
  a.lastChild
@@ -1836,7 +1836,7 @@ function F(e, t) {
1836
1836
  };
1837
1837
  }
1838
1838
  // @__NO_SIDE_EFFECTS__
1839
- function wi(e, t, r = "svg") {
1839
+ function yi(e, t, r = "svg") {
1840
1840
  var n = !e.startsWith("<!>"), s = `<${r}>${n ? e : "<!>" + e}</${r}>`, i;
1841
1841
  return () => {
1842
1842
  if (k)
@@ -1844,13 +1844,13 @@ function wi(e, t, r = "svg") {
1844
1844
  if (!i) {
1845
1845
  var a = (
1846
1846
  /** @type {DocumentFragment} */
1847
- ns(s)
1847
+ is(s)
1848
1848
  ), o = (
1849
1849
  /** @type {Element} */
1850
- /* @__PURE__ */ Ye(a)
1850
+ /* @__PURE__ */ Je(a)
1851
1851
  );
1852
1852
  i = /** @type {Element} */
1853
- /* @__PURE__ */ Ye(o);
1853
+ /* @__PURE__ */ Je(o);
1854
1854
  }
1855
1855
  var l = (
1856
1856
  /** @type {TemplateNode} */
@@ -1860,22 +1860,22 @@ function wi(e, t, r = "svg") {
1860
1860
  };
1861
1861
  }
1862
1862
  // @__NO_SIDE_EFFECTS__
1863
- function or(e, t) {
1864
- return /* @__PURE__ */ wi(e, t, "svg");
1863
+ function lr(e, t) {
1864
+ return /* @__PURE__ */ yi(e, t, "svg");
1865
1865
  }
1866
- function yi() {
1866
+ function $i() {
1867
1867
  if (k)
1868
1868
  return Ke(S, null), S;
1869
1869
  var e = document.createDocumentFragment(), t = document.createComment(""), r = xe();
1870
1870
  return e.append(t, r), Ke(t, r), e;
1871
1871
  }
1872
- function I(e, t) {
1872
+ function O(e, t) {
1873
1873
  if (k) {
1874
1874
  var r = (
1875
1875
  /** @type {Effect & { nodes: EffectNodes }} */
1876
1876
  E
1877
1877
  );
1878
- ((r.f & tr) === 0 || r.nodes.end === null) && (r.nodes.end = S), sr();
1878
+ ((r.f & rr) === 0 || r.nodes.end === null) && (r.nodes.end = S), ir();
1879
1879
  return;
1880
1880
  }
1881
1881
  e !== null && e.before(
@@ -1884,60 +1884,60 @@ function I(e, t) {
1884
1884
  );
1885
1885
  }
1886
1886
  const xi = ["touchstart", "touchmove"];
1887
- function $i(e) {
1887
+ function Si(e) {
1888
1888
  return xi.includes(e);
1889
1889
  }
1890
- function He(e, t) {
1890
+ function qe(e, t) {
1891
1891
  var r = t == null ? "" : typeof t == "object" ? t + "" : t;
1892
1892
  r !== (e.__t ??= e.nodeValue) && (e.__t = r, e.nodeValue = r + "");
1893
1893
  }
1894
- function ss(e, t) {
1895
- return is(e, t);
1894
+ function as(e, t) {
1895
+ return os(e, t);
1896
1896
  }
1897
- function Si(e, t) {
1898
- Cr(), t.intro = t.intro ?? !1;
1897
+ function ki(e, t) {
1898
+ Tr(), t.intro = t.intro ?? !1;
1899
1899
  const r = t.target, n = k, s = S;
1900
1900
  try {
1901
- for (var i = /* @__PURE__ */ Ye(r); i && (i.nodeType !== bt || /** @type {Comment} */
1902
- i.data !== fn); )
1903
- i = /* @__PURE__ */ Ae(i);
1901
+ for (var i = /* @__PURE__ */ Je(r); i && (i.nodeType !== wt || /** @type {Comment} */
1902
+ i.data !== dn); )
1903
+ i = /* @__PURE__ */ Te(i);
1904
1904
  if (!i)
1905
- throw ht;
1906
- Le(!0), oe(
1905
+ throw pt;
1906
+ Le(!0), le(
1907
1907
  /** @type {Comment} */
1908
1908
  i
1909
1909
  );
1910
- const a = is(e, { ...t, anchor: i });
1910
+ const a = os(e, { ...t, anchor: i });
1911
1911
  return Le(!1), /** @type {Exports} */
1912
1912
  a;
1913
1913
  } catch (a) {
1914
1914
  if (a instanceof Error && a.message.split(`
1915
1915
  `).some((o) => o.startsWith("https://svelte.dev/e/")))
1916
1916
  throw a;
1917
- return a !== ht && console.warn("Failed to hydrate: ", a), t.recover === !1 && Hs(), Cr(), Nn(r), Le(!1), ss(e, t);
1917
+ return a !== pt && console.warn("Failed to hydrate: ", a), t.recover === !1 && qs(), Tr(), Fn(r), Le(!1), as(e, t);
1918
1918
  } finally {
1919
- Le(n), oe(s);
1919
+ Le(n), le(s);
1920
1920
  }
1921
1921
  }
1922
- const ct = /* @__PURE__ */ new Map();
1923
- function is(e, { target: t, anchor: r, props: n = {}, events: s, context: i, intro: a = !0 }) {
1924
- Cr();
1922
+ const ft = /* @__PURE__ */ new Map();
1923
+ function os(e, { target: t, anchor: r, props: n = {}, events: s, context: i, intro: a = !0 }) {
1924
+ Tr();
1925
1925
  var o = /* @__PURE__ */ new Set(), l = (d) => {
1926
1926
  for (var h = 0; h < d.length; h++) {
1927
1927
  var g = d[h];
1928
1928
  if (!o.has(g)) {
1929
1929
  o.add(g);
1930
- var p = $i(g);
1930
+ var p = Si(g);
1931
1931
  t.addEventListener(g, Bt, { passive: p });
1932
- var _ = ct.get(g);
1933
- _ === void 0 ? (document.addEventListener(g, Bt, { passive: p }), ct.set(g, 1)) : ct.set(g, _ + 1);
1932
+ var _ = ft.get(g);
1933
+ _ === void 0 ? (document.addEventListener(g, Bt, { passive: p }), ft.set(g, 1)) : ft.set(g, _ + 1);
1934
1934
  }
1935
1935
  }
1936
1936
  };
1937
- l(Qt(ts)), Ar.add(l);
1938
- var f = void 0, u = pi(() => {
1937
+ l(er(ns)), zr.add(l);
1938
+ var f = void 0, u = vi(() => {
1939
1939
  var d = r ?? t.appendChild(xe());
1940
- return ri(
1940
+ return ni(
1941
1941
  /** @type {TemplateNode} */
1942
1942
  d,
1943
1943
  {
@@ -1946,10 +1946,10 @@ function is(e, { target: t, anchor: r, props: n = {}, events: s, context: i, int
1946
1946
  },
1947
1947
  (h) => {
1948
1948
  if (i) {
1949
- Nr({});
1949
+ Fr({});
1950
1950
  var g = (
1951
1951
  /** @type {ComponentContext} */
1952
- le
1952
+ ce
1953
1953
  );
1954
1954
  g.c = i;
1955
1955
  }
@@ -1957,31 +1957,31 @@ function is(e, { target: t, anchor: r, props: n = {}, events: s, context: i, int
1957
1957
  /** @type {TemplateNode} */
1958
1958
  h,
1959
1959
  null
1960
- ), f = e(h, n) || {}, k && (E.nodes.end = S, S === null || S.nodeType !== bt || /** @type {Comment} */
1961
- S.data !== Ir))
1962
- throw nr(), ht;
1963
- i && Pr();
1960
+ ), f = e(h, n) || {}, k && (E.nodes.end = S, S === null || S.nodeType !== wt || /** @type {Comment} */
1961
+ S.data !== Dr))
1962
+ throw sr(), pt;
1963
+ i && Ur();
1964
1964
  }
1965
1965
  ), () => {
1966
1966
  for (var h of o) {
1967
1967
  t.removeEventListener(h, Bt);
1968
1968
  var g = (
1969
1969
  /** @type {number} */
1970
- ct.get(h)
1970
+ ft.get(h)
1971
1971
  );
1972
- --g === 0 ? (document.removeEventListener(h, Bt), ct.delete(h)) : ct.set(h, g);
1972
+ --g === 0 ? (document.removeEventListener(h, Bt), ft.delete(h)) : ft.set(h, g);
1973
1973
  }
1974
- Ar.delete(l), d !== r && d.parentNode?.removeChild(d);
1974
+ zr.delete(l), d !== r && d.parentNode?.removeChild(d);
1975
1975
  };
1976
1976
  });
1977
- return zr.set(f, u), f;
1977
+ return Rr.set(f, u), f;
1978
1978
  }
1979
- let zr = /* @__PURE__ */ new WeakMap();
1980
- function ki(e, t) {
1981
- const r = zr.get(e);
1982
- return r ? (zr.delete(e), r(t)) : Promise.resolve();
1979
+ let Rr = /* @__PURE__ */ new WeakMap();
1980
+ function Ei(e, t) {
1981
+ const r = Rr.get(e);
1982
+ return r ? (Rr.delete(e), r(t)) : Promise.resolve();
1983
1983
  }
1984
- class Ei {
1984
+ class Ci {
1985
1985
  /** @type {TemplateNode} */
1986
1986
  anchor;
1987
1987
  /** @type {Map<Batch, Key>} */
@@ -2035,7 +2035,7 @@ class Ei {
2035
2035
  this.#e.get(t)
2036
2036
  ), n = this.#t.get(r);
2037
2037
  if (n)
2038
- Vr(n), this.#a.delete(r);
2038
+ Gr(n), this.#a.delete(r);
2039
2039
  else {
2040
2040
  var s = this.#r.get(r);
2041
2041
  s && (this.#t.set(r, s.effect), this.#r.delete(r), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), n = s.effect);
@@ -2044,19 +2044,19 @@ class Ei {
2044
2044
  if (this.#e.delete(i), i === t)
2045
2045
  break;
2046
2046
  const o = this.#r.get(a);
2047
- o && (G(o.effect), this.#r.delete(a));
2047
+ o && (Z(o.effect), this.#r.delete(a));
2048
2048
  }
2049
2049
  for (const [i, a] of this.#t) {
2050
2050
  if (i === r || this.#a.has(i)) continue;
2051
2051
  const o = () => {
2052
2052
  if (Array.from(this.#e.values()).includes(i)) {
2053
2053
  var f = document.createDocumentFragment();
2054
- Kn(a, f), f.append(xe()), this.#r.set(i, { effect: a, fragment: f });
2054
+ Jn(a, f), f.append(xe()), this.#r.set(i, { effect: a, fragment: f });
2055
2055
  } else
2056
- G(a);
2056
+ Z(a);
2057
2057
  this.#a.delete(i), this.#t.delete(i);
2058
2058
  };
2059
- this.#o || !n ? (this.#a.add(i), rt(a, o, !1)) : o();
2059
+ this.#o || !n ? (this.#a.add(i), nt(a, o, !1)) : o();
2060
2060
  }
2061
2061
  }
2062
2062
  };
@@ -2067,7 +2067,7 @@ class Ei {
2067
2067
  this.#e.delete(t);
2068
2068
  const r = Array.from(this.#e.values());
2069
2069
  for (const [n, s] of this.#r)
2070
- r.includes(n) || (G(s.effect), this.#r.delete(n));
2070
+ r.includes(n) || (Z(s.effect), this.#r.delete(n));
2071
2071
  };
2072
2072
  /**
2073
2073
  *
@@ -2078,18 +2078,18 @@ class Ei {
2078
2078
  var n = (
2079
2079
  /** @type {Batch} */
2080
2080
  D
2081
- ), s = Pn();
2081
+ ), s = Un();
2082
2082
  if (r && !this.#t.has(t) && !this.#r.has(t))
2083
2083
  if (s) {
2084
2084
  var i = document.createDocumentFragment(), a = xe();
2085
2085
  i.append(a), this.#r.set(t, {
2086
- effect: de(() => r(a)),
2086
+ effect: he(() => r(a)),
2087
2087
  fragment: i
2088
2088
  });
2089
2089
  } else
2090
2090
  this.#t.set(
2091
2091
  t,
2092
- de(() => r(this.anchor))
2092
+ he(() => r(this.anchor))
2093
2093
  );
2094
2094
  if (this.#e.set(n, t), s) {
2095
2095
  for (const [o, l] of this.#t)
@@ -2101,40 +2101,40 @@ class Ei {
2101
2101
  k && (this.anchor = S), this.#s();
2102
2102
  }
2103
2103
  }
2104
- function as(e) {
2105
- le === null && Ns(), Zt(() => {
2106
- const t = Wr(e);
2104
+ function ls(e) {
2105
+ ce === null && Ps(), Yt(() => {
2106
+ const t = Kr(e);
2107
2107
  if (typeof t == "function") return (
2108
2108
  /** @type {() => void} */
2109
2109
  t
2110
2110
  );
2111
2111
  });
2112
2112
  }
2113
- function j(e, t, r = !1) {
2114
- k && sr();
2115
- var n = new Ei(e), s = r ? vt : 0;
2113
+ function H(e, t, r = !1) {
2114
+ k && ir();
2115
+ var n = new Ci(e), s = r ? gt : 0;
2116
2116
  function i(a, o) {
2117
2117
  if (k) {
2118
- const f = gn(e) === Xt;
2118
+ const f = _n(e) === Qt;
2119
2119
  if (a === f) {
2120
- var l = Yt();
2121
- oe(l), n.anchor = l, Le(!1), n.ensure(a, o), Le(!0);
2120
+ var l = Jt();
2121
+ le(l), n.anchor = l, Le(!1), n.ensure(a, o), Le(!0);
2122
2122
  return;
2123
2123
  }
2124
2124
  }
2125
2125
  n.ensure(a, o);
2126
2126
  }
2127
- qr(() => {
2127
+ Vr(() => {
2128
2128
  var a = !1;
2129
2129
  t((o, l = !0) => {
2130
2130
  a = !0, i(l, o);
2131
2131
  }), a || i(!1, null);
2132
2132
  }, s);
2133
2133
  }
2134
- function Ci(e, t, r) {
2134
+ function Ai(e, t, r) {
2135
2135
  for (var n = [], s = t.length, i, a = t.length, o = 0; o < s; o++) {
2136
2136
  let d = t[o];
2137
- rt(
2137
+ nt(
2138
2138
  d,
2139
2139
  () => {
2140
2140
  if (i) {
@@ -2143,7 +2143,7 @@ function Ci(e, t, r) {
2143
2143
  /** @type {Set<EachOutroGroup>} */
2144
2144
  e.outrogroups
2145
2145
  );
2146
- Tr(Qt(i.done)), h.delete(i), h.size === 0 && (e.outrogroups = null);
2146
+ Mr(er(i.done)), h.delete(i), h.size === 0 && (e.outrogroups = null);
2147
2147
  }
2148
2148
  } else
2149
2149
  a -= 1;
@@ -2161,65 +2161,65 @@ function Ci(e, t, r) {
2161
2161
  /** @type {Element} */
2162
2162
  f.parentNode
2163
2163
  );
2164
- Nn(u), u.append(f), e.items.clear();
2164
+ Fn(u), u.append(f), e.items.clear();
2165
2165
  }
2166
- Tr(t, !l);
2166
+ Mr(t, !l);
2167
2167
  } else
2168
2168
  i = {
2169
2169
  pending: new Set(t),
2170
2170
  done: /* @__PURE__ */ new Set()
2171
2171
  }, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(i);
2172
2172
  }
2173
- function Tr(e, t = !0) {
2173
+ function Mr(e, t = !0) {
2174
2174
  for (var r = 0; r < e.length; r++)
2175
- G(e[r], t);
2175
+ Z(e[r], t);
2176
2176
  }
2177
- var sn;
2178
- function Ai(e, t, r, n, s, i = null) {
2177
+ var on;
2178
+ function Ti(e, t, r, n, s, i = null) {
2179
2179
  var a = e, o = /* @__PURE__ */ new Map();
2180
- k && sr();
2181
- var l = null, f = /* @__PURE__ */ oi(() => {
2180
+ k && ir();
2181
+ var l = null, f = /* @__PURE__ */ li(() => {
2182
2182
  var _ = r();
2183
- return un(_) ? _ : _ == null ? [] : Qt(_);
2183
+ return hn(_) ? _ : _ == null ? [] : er(_);
2184
2184
  }), u, d = !0;
2185
2185
  function h() {
2186
- p.fallback = l, zi(p, u, a, t, n), l !== null && (u.length === 0 ? (l.f & qe) === 0 ? Vr(l) : (l.f ^= qe, Ct(l, null, a)) : rt(l, () => {
2186
+ p.fallback = l, zi(p, u, a, t, n), l !== null && (u.length === 0 ? (l.f & We) === 0 ? Gr(l) : (l.f ^= We, At(l, null, a)) : nt(l, () => {
2187
2187
  l = null;
2188
2188
  }));
2189
2189
  }
2190
- var g = qr(() => {
2190
+ var g = Vr(() => {
2191
2191
  u = /** @type {V[]} */
2192
2192
  c(f);
2193
2193
  var _ = u.length;
2194
2194
  let z = !1;
2195
2195
  if (k) {
2196
- var w = gn(a) === Xt;
2197
- w !== (_ === 0) && (a = Yt(), oe(a), Le(!1), z = !0);
2196
+ var w = _n(a) === Qt;
2197
+ w !== (_ === 0) && (a = Jt(), le(a), Le(!1), z = !0);
2198
2198
  }
2199
- for (var x = /* @__PURE__ */ new Set(), J = (
2199
+ for (var $ = /* @__PURE__ */ new Set(), X = (
2200
2200
  /** @type {Batch} */
2201
2201
  D
2202
- ), V = Pn(), W = 0; W < _; W += 1) {
2203
- k && S.nodeType === bt && /** @type {Comment} */
2204
- S.data === Ir && (a = /** @type {Comment} */
2202
+ ), V = Un(), G = 0; G < _; G += 1) {
2203
+ k && S.nodeType === wt && /** @type {Comment} */
2204
+ S.data === Dr && (a = /** @type {Comment} */
2205
2205
  S, z = !0, Le(!1));
2206
- var Te = u[W], Se = n(Te, W), T = d ? null : o.get(Se);
2207
- T ? (T.v && _t(T.v, Te), T.i && _t(T.i, W), V && J.unskip_effect(T.e)) : (T = Ti(
2206
+ var Re = u[G], ke = n(Re, G), R = d ? null : o.get(ke);
2207
+ R ? (R.v && bt(R.v, Re), R.i && bt(R.i, G), V && X.unskip_effect(R.e)) : (R = Ri(
2208
2208
  o,
2209
- d ? a : sn ??= xe(),
2210
- Te,
2211
- Se,
2212
- W,
2209
+ d ? a : on ??= xe(),
2210
+ Re,
2211
+ ke,
2212
+ G,
2213
2213
  s,
2214
2214
  t,
2215
2215
  r
2216
- ), d || (T.e.f |= qe), o.set(Se, T)), x.add(Se);
2216
+ ), d || (R.e.f |= We), o.set(ke, R)), $.add(ke);
2217
2217
  }
2218
- if (_ === 0 && i && !l && (d ? l = de(() => i(a)) : (l = de(() => i(sn ??= xe())), l.f |= qe)), k && _ > 0 && oe(Yt()), !d)
2218
+ if (_ === 0 && i && !l && (d ? l = he(() => i(a)) : (l = he(() => i(on ??= xe())), l.f |= We)), k && _ > 0 && le(Jt()), !d)
2219
2219
  if (V) {
2220
- for (const [ot, ge] of o)
2221
- x.has(ot) || J.skip_effect(ge.e);
2222
- J.oncommit(h), J.ondiscard(() => {
2220
+ for (const [lt, me] of o)
2221
+ $.has(lt) || X.skip_effect(me.e);
2222
+ X.oncommit(h), X.ondiscard(() => {
2223
2223
  });
2224
2224
  } else
2225
2225
  h();
@@ -2227,97 +2227,97 @@ function Ai(e, t, r, n, s, i = null) {
2227
2227
  }), p = { effect: g, items: o, outrogroups: null, fallback: l };
2228
2228
  d = !1, k && (a = S);
2229
2229
  }
2230
- function kt(e) {
2231
- for (; e !== null && (e.f & $e) === 0; )
2230
+ function Et(e) {
2231
+ for (; e !== null && (e.f & Se) === 0; )
2232
2232
  e = e.next;
2233
2233
  return e;
2234
2234
  }
2235
2235
  function zi(e, t, r, n, s) {
2236
- var i = t.length, a = e.items, o = kt(e.effect.first), l, f = null, u = [], d = [], h, g, p, _;
2236
+ var i = t.length, a = e.items, o = Et(e.effect.first), l, f = null, u = [], d = [], h, g, p, _;
2237
2237
  for (_ = 0; _ < i; _ += 1) {
2238
2238
  if (h = t[_], g = s(h, _), p = /** @type {EachItem} */
2239
2239
  a.get(g).e, e.outrogroups !== null)
2240
- for (const T of e.outrogroups)
2241
- T.pending.delete(p), T.done.delete(p);
2242
- if ((p.f & qe) !== 0)
2243
- if (p.f ^= qe, p === o)
2244
- Ct(p, null, r);
2240
+ for (const R of e.outrogroups)
2241
+ R.pending.delete(p), R.done.delete(p);
2242
+ if ((p.f & We) !== 0)
2243
+ if (p.f ^= We, p === o)
2244
+ At(p, null, r);
2245
2245
  else {
2246
2246
  var z = f ? f.next : o;
2247
- p === e.effect.last && (e.effect.last = p.prev), p.prev && (p.prev.next = p.next), p.next && (p.next.prev = p.prev), je(e, f, p), je(e, p, z), Ct(p, z, r), f = p, u = [], d = [], o = kt(f.next);
2247
+ p === e.effect.last && (e.effect.last = p.prev), p.prev && (p.prev.next = p.next), p.next && (p.next.prev = p.prev), He(e, f, p), He(e, p, z), At(p, z, r), f = p, u = [], d = [], o = Et(f.next);
2248
2248
  continue;
2249
2249
  }
2250
- if ((p.f & ae) !== 0 && Vr(p), p !== o) {
2250
+ if ((p.f & oe) !== 0 && Gr(p), p !== o) {
2251
2251
  if (l !== void 0 && l.has(p)) {
2252
2252
  if (u.length < d.length) {
2253
- var w = d[0], x;
2253
+ var w = d[0], $;
2254
2254
  f = w.prev;
2255
- var J = u[0], V = u[u.length - 1];
2256
- for (x = 0; x < u.length; x += 1)
2257
- Ct(u[x], w, r);
2258
- for (x = 0; x < d.length; x += 1)
2259
- l.delete(d[x]);
2260
- je(e, J.prev, V.next), je(e, f, J), je(e, V, w), o = w, f = V, _ -= 1, u = [], d = [];
2255
+ var X = u[0], V = u[u.length - 1];
2256
+ for ($ = 0; $ < u.length; $ += 1)
2257
+ At(u[$], w, r);
2258
+ for ($ = 0; $ < d.length; $ += 1)
2259
+ l.delete(d[$]);
2260
+ He(e, X.prev, V.next), He(e, f, X), He(e, V, w), o = w, f = V, _ -= 1, u = [], d = [];
2261
2261
  } else
2262
- l.delete(p), Ct(p, o, r), je(e, p.prev, p.next), je(e, p, f === null ? e.effect.first : f.next), je(e, f, p), f = p;
2262
+ l.delete(p), At(p, o, r), He(e, p.prev, p.next), He(e, p, f === null ? e.effect.first : f.next), He(e, f, p), f = p;
2263
2263
  continue;
2264
2264
  }
2265
2265
  for (u = [], d = []; o !== null && o !== p; )
2266
- (l ??= /* @__PURE__ */ new Set()).add(o), d.push(o), o = kt(o.next);
2266
+ (l ??= /* @__PURE__ */ new Set()).add(o), d.push(o), o = Et(o.next);
2267
2267
  if (o === null)
2268
2268
  continue;
2269
2269
  }
2270
- (p.f & qe) === 0 && u.push(p), f = p, o = kt(p.next);
2270
+ (p.f & We) === 0 && u.push(p), f = p, o = Et(p.next);
2271
2271
  }
2272
2272
  if (e.outrogroups !== null) {
2273
- for (const T of e.outrogroups)
2274
- T.pending.size === 0 && (Tr(Qt(T.done)), e.outrogroups?.delete(T));
2273
+ for (const R of e.outrogroups)
2274
+ R.pending.size === 0 && (Mr(er(R.done)), e.outrogroups?.delete(R));
2275
2275
  e.outrogroups.size === 0 && (e.outrogroups = null);
2276
2276
  }
2277
2277
  if (o !== null || l !== void 0) {
2278
- var W = [];
2278
+ var G = [];
2279
2279
  if (l !== void 0)
2280
2280
  for (p of l)
2281
- (p.f & ae) === 0 && W.push(p);
2281
+ (p.f & oe) === 0 && G.push(p);
2282
2282
  for (; o !== null; )
2283
- (o.f & ae) === 0 && o !== e.fallback && W.push(o), o = kt(o.next);
2284
- var Te = W.length;
2285
- if (Te > 0) {
2286
- var Se = null;
2287
- Ci(e, W, Se);
2283
+ (o.f & oe) === 0 && o !== e.fallback && G.push(o), o = Et(o.next);
2284
+ var Re = G.length;
2285
+ if (Re > 0) {
2286
+ var ke = null;
2287
+ Ai(e, G, ke);
2288
2288
  }
2289
2289
  }
2290
2290
  }
2291
- function Ti(e, t, r, n, s, i, a, o) {
2292
- var l = (a & $s) !== 0 ? (a & ks) === 0 ? /* @__PURE__ */ Rn(r, !1, !1) : it(r) : null, f = (a & Ss) !== 0 ? it(s) : null;
2291
+ function Ri(e, t, r, n, s, i, a, o) {
2292
+ var l = (a & Ss) !== 0 ? (a & Es) === 0 ? /* @__PURE__ */ In(r, !1, !1) : at(r) : null, f = (a & ks) !== 0 ? at(s) : null;
2293
2293
  return {
2294
2294
  v: l,
2295
2295
  i: f,
2296
- e: de(() => (i(t, l ?? r, f ?? s, o), () => {
2296
+ e: he(() => (i(t, l ?? r, f ?? s, o), () => {
2297
2297
  e.delete(n);
2298
2298
  }))
2299
2299
  };
2300
2300
  }
2301
- function Ct(e, t, r) {
2301
+ function At(e, t, r) {
2302
2302
  if (e.nodes)
2303
- for (var n = e.nodes.start, s = e.nodes.end, i = t && (t.f & qe) === 0 ? (
2303
+ for (var n = e.nodes.start, s = e.nodes.end, i = t && (t.f & We) === 0 ? (
2304
2304
  /** @type {EffectNodes} */
2305
2305
  t.nodes.start
2306
2306
  ) : r; n !== null; ) {
2307
2307
  var a = (
2308
2308
  /** @type {TemplateNode} */
2309
- /* @__PURE__ */ Ae(n)
2309
+ /* @__PURE__ */ Te(n)
2310
2310
  );
2311
2311
  if (i.before(n), n === s)
2312
2312
  return;
2313
2313
  n = a;
2314
2314
  }
2315
2315
  }
2316
- function je(e, t, r) {
2316
+ function He(e, t, r) {
2317
2317
  t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
2318
2318
  }
2319
- function os(e, t) {
2320
- Bn(() => {
2319
+ function cs(e, t) {
2320
+ Hn(() => {
2321
2321
  var r = e.getRootNode(), n = (
2322
2322
  /** @type {ShadowRoot} */
2323
2323
  r.host ? (
@@ -2335,9 +2335,9 @@ function os(e, t) {
2335
2335
  }
2336
2336
  });
2337
2337
  }
2338
- const an = [...`
2338
+ const ln = [...`
2339
2339
  \r\f \v\uFEFF`];
2340
- function Ri(e, t, r) {
2340
+ function Mi(e, t, r) {
2341
2341
  var n = e == null ? "" : "" + e;
2342
2342
  if (r) {
2343
2343
  for (var s in r)
@@ -2346,12 +2346,12 @@ function Ri(e, t, r) {
2346
2346
  else if (n.length)
2347
2347
  for (var i = s.length, a = 0; (a = n.indexOf(s, a)) >= 0; ) {
2348
2348
  var o = a + i;
2349
- (a === 0 || an.includes(n[a - 1])) && (o === n.length || an.includes(n[o])) ? n = (a === 0 ? "" : n.substring(0, a)) + n.substring(o + 1) : a = o;
2349
+ (a === 0 || ln.includes(n[a - 1])) && (o === n.length || ln.includes(n[o])) ? n = (a === 0 ? "" : n.substring(0, a)) + n.substring(o + 1) : a = o;
2350
2350
  }
2351
2351
  }
2352
2352
  return n === "" ? null : n;
2353
2353
  }
2354
- function on(e, t = !1) {
2354
+ function cn(e, t = !1) {
2355
2355
  var r = t ? " !important;" : ";", n = "";
2356
2356
  for (var s in e) {
2357
2357
  var i = e[s];
@@ -2359,16 +2359,16 @@ function on(e, t = !1) {
2359
2359
  }
2360
2360
  return n;
2361
2361
  }
2362
- function br(e) {
2362
+ function yr(e) {
2363
2363
  return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
2364
2364
  }
2365
- function Mi(e, t) {
2365
+ function Ii(e, t) {
2366
2366
  if (t) {
2367
2367
  var r = "", n, s;
2368
2368
  if (Array.isArray(t) ? (n = t[0], s = t[1]) : n = t, e) {
2369
2369
  e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
2370
2370
  var i = !1, a = 0, o = !1, l = [];
2371
- n && l.push(...Object.keys(n).map(br)), s && l.push(...Object.keys(s).map(br));
2371
+ n && l.push(...Object.keys(n).map(yr)), s && l.push(...Object.keys(s).map(yr));
2372
2372
  var f = 0, u = -1;
2373
2373
  const _ = e.length;
2374
2374
  for (var d = 0; d < _; d++) {
@@ -2378,7 +2378,7 @@ function Mi(e, t) {
2378
2378
  u = d;
2379
2379
  else if (h === ";" || d === _ - 1) {
2380
2380
  if (u !== -1) {
2381
- var g = br(e.substring(f, u).trim());
2381
+ var g = yr(e.substring(f, u).trim());
2382
2382
  if (!l.includes(g)) {
2383
2383
  h !== ";" && d++;
2384
2384
  var p = e.substring(f, d).trim();
@@ -2390,14 +2390,14 @@ function Mi(e, t) {
2390
2390
  }
2391
2391
  }
2392
2392
  }
2393
- return n && (r += on(n)), s && (r += on(s, !0)), r = r.trim(), r === "" ? null : r;
2393
+ return n && (r += cn(n)), s && (r += cn(s, !0)), r = r.trim(), r === "" ? null : r;
2394
2394
  }
2395
2395
  return e == null ? null : String(e);
2396
2396
  }
2397
- function ut(e, t, r, n, s, i) {
2397
+ function dt(e, t, r, n, s, i) {
2398
2398
  var a = e.__className;
2399
2399
  if (k || a !== r || a === void 0) {
2400
- var o = Ri(r, n, i);
2400
+ var o = Mi(r, n, i);
2401
2401
  (!k || o !== e.getAttribute("class")) && (o == null ? e.removeAttribute("class") : e.className = o), e.__className = r;
2402
2402
  } else if (i && s !== i)
2403
2403
  for (var l in i) {
@@ -2406,66 +2406,66 @@ function ut(e, t, r, n, s, i) {
2406
2406
  }
2407
2407
  return i;
2408
2408
  }
2409
- function wr(e, t = {}, r, n) {
2409
+ function $r(e, t = {}, r, n) {
2410
2410
  for (var s in r) {
2411
2411
  var i = r[s];
2412
2412
  t[s] !== i && (r[s] == null ? e.style.removeProperty(s) : e.style.setProperty(s, i, n));
2413
2413
  }
2414
2414
  }
2415
- function Rr(e, t, r, n) {
2415
+ function Ir(e, t, r, n) {
2416
2416
  var s = e.__style;
2417
2417
  if (k || s !== t) {
2418
- var i = Mi(t, n);
2418
+ var i = Ii(t, n);
2419
2419
  (!k || i !== e.getAttribute("style")) && (i == null ? e.removeAttribute("style") : e.style.cssText = i), e.__style = t;
2420
- } else n && (Array.isArray(n) ? (wr(e, r?.[0], n[0]), wr(e, r?.[1], n[1], "important")) : wr(e, r, n));
2420
+ } else n && (Array.isArray(n) ? ($r(e, r?.[0], n[0]), $r(e, r?.[1], n[1], "important")) : $r(e, r, n));
2421
2421
  return n;
2422
2422
  }
2423
- const Ii = /* @__PURE__ */ Symbol("is custom element"), Di = /* @__PURE__ */ Symbol("is html");
2424
- function Jt(e, t, r, n) {
2423
+ const Oi = /* @__PURE__ */ Symbol("is custom element"), Di = /* @__PURE__ */ Symbol("is html");
2424
+ function Xt(e, t, r, n) {
2425
2425
  var s = Li(e);
2426
- k && (s[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || s[t] !== (s[t] = r) && (t === "loading" && (e[Os] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Oi(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
2426
+ k && (s[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || s[t] !== (s[t] = r) && (t === "loading" && (e[Ns] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Ni(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
2427
2427
  }
2428
2428
  function Li(e) {
2429
2429
  return (
2430
2430
  /** @type {Record<string | symbol, unknown>} **/
2431
2431
  // @ts-expect-error
2432
2432
  e.__attributes ??= {
2433
- [Ii]: e.nodeName.includes("-"),
2434
- [Di]: e.namespaceURI === As
2433
+ [Oi]: e.nodeName.includes("-"),
2434
+ [Di]: e.namespaceURI === Ts
2435
2435
  }
2436
2436
  );
2437
2437
  }
2438
- var ln = /* @__PURE__ */ new Map();
2439
- function Oi(e) {
2440
- var t = e.getAttribute("is") || e.nodeName, r = ln.get(t);
2438
+ var fn = /* @__PURE__ */ new Map();
2439
+ function Ni(e) {
2440
+ var t = e.getAttribute("is") || e.nodeName, r = fn.get(t);
2441
2441
  if (r) return r;
2442
- ln.set(t, r = []);
2442
+ fn.set(t, r = []);
2443
2443
  for (var n, s = e, i = Element.prototype; i !== s; ) {
2444
- n = Ts(s);
2444
+ n = Rs(s);
2445
2445
  for (var a in n)
2446
2446
  n[a].set && r.push(a);
2447
- s = dn(s);
2447
+ s = pn(s);
2448
2448
  }
2449
2449
  return r;
2450
2450
  }
2451
- function cn(e, t) {
2452
- return e === t || e?.[jt] === t;
2451
+ function un(e, t) {
2452
+ return e === t || e?.[Ht] === t;
2453
2453
  }
2454
- function Mr(e = {}, t, r, n) {
2455
- return Bn(() => {
2454
+ function Or(e = {}, t, r, n) {
2455
+ return Hn(() => {
2456
2456
  var s, i;
2457
- return Hr(() => {
2458
- s = i, i = [], Wr(() => {
2459
- e !== r(...i) && (t(e, ...i), s && cn(r(...s), e) && t(null, ...s));
2457
+ return Wr(() => {
2458
+ s = i, i = [], Kr(() => {
2459
+ e !== r(...i) && (t(e, ...i), s && un(r(...s), e) && t(null, ...s));
2460
2460
  });
2461
2461
  }), () => {
2462
- tt(() => {
2463
- i && cn(r(...i), e) && t(null, ...i);
2462
+ rt(() => {
2463
+ i && un(r(...i), e) && t(null, ...i);
2464
2464
  });
2465
2465
  };
2466
2466
  }), e;
2467
2467
  }
2468
- function Z(e, t, r, n) {
2468
+ function Y(e, t, r, n) {
2469
2469
  var s = (
2470
2470
  /** @type {V} */
2471
2471
  n
@@ -2481,7 +2481,7 @@ function Z(e, t, r, n) {
2481
2481
  );
2482
2482
  return h === void 0 ? a() : (i = !0, h);
2483
2483
  };
2484
- var f = !1, u = /* @__PURE__ */ ar(() => (f = !1, l())), d = (
2484
+ var f = !1, u = /* @__PURE__ */ or(() => (f = !1, l())), d = (
2485
2485
  /** @type {Effect} */
2486
2486
  E
2487
2487
  );
@@ -2492,14 +2492,14 @@ function Z(e, t, r, n) {
2492
2492
  const p = g ? c(u) : h;
2493
2493
  return m(u, p), f = !0, s !== void 0 && (s = p), h;
2494
2494
  }
2495
- return Ze && f || (d.f & Ne) !== 0 ? u.v : c(u);
2495
+ return Ye && f || (d.f & Pe) !== 0 ? u.v : c(u);
2496
2496
  })
2497
2497
  );
2498
2498
  }
2499
- function Ni(e) {
2500
- return new Pi(e);
2499
+ function Pi(e) {
2500
+ return new Fi(e);
2501
2501
  }
2502
- class Pi {
2502
+ class Fi {
2503
2503
  /** @type {any} */
2504
2504
  #e;
2505
2505
  /** @type {Record<string, any>} */
@@ -2511,7 +2511,7 @@ class Pi {
2511
2511
  */
2512
2512
  constructor(t) {
2513
2513
  var r = /* @__PURE__ */ new Map(), n = (i, a) => {
2514
- var o = /* @__PURE__ */ Rn(a, !1, !1);
2514
+ var o = /* @__PURE__ */ In(a, !1, !1);
2515
2515
  return r.set(i, o), o;
2516
2516
  };
2517
2517
  const s = new Proxy(
@@ -2528,7 +2528,7 @@ class Pi {
2528
2528
  }
2529
2529
  }
2530
2530
  );
2531
- this.#t = (t.hydrate ? Si : ss)(t.component, {
2531
+ this.#t = (t.hydrate ? ki : as)(t.component, {
2532
2532
  target: t.target,
2533
2533
  anchor: t.anchor,
2534
2534
  props: s,
@@ -2537,7 +2537,7 @@ class Pi {
2537
2537
  recover: t.recover
2538
2538
  }), (!t?.props?.$$host || t.sync === !1) && K(), this.#e = s.$$events;
2539
2539
  for (const i of Object.keys(this.#t))
2540
- i === "$set" || i === "$destroy" || i === "$on" || Wt(this, i, {
2540
+ i === "$set" || i === "$destroy" || i === "$on" || Gt(this, i, {
2541
2541
  get() {
2542
2542
  return this.#t[i];
2543
2543
  },
@@ -2551,7 +2551,7 @@ class Pi {
2551
2551
  (i) => {
2552
2552
  Object.assign(s, i);
2553
2553
  }, this.#t.$destroy = () => {
2554
- ki(this.#t);
2554
+ Ei(this.#t);
2555
2555
  };
2556
2556
  }
2557
2557
  /** @param {Record<string, any>} props */
@@ -2577,8 +2577,8 @@ class Pi {
2577
2577
  this.#t.$destroy();
2578
2578
  }
2579
2579
  }
2580
- let ls;
2581
- typeof HTMLElement == "function" && (ls = class extends HTMLElement {
2580
+ let fs;
2581
+ typeof HTMLElement == "function" && (fs = class extends HTMLElement {
2582
2582
  /** The Svelte component constructor */
2583
2583
  $$ctor;
2584
2584
  /** Slots */
@@ -2637,21 +2637,21 @@ typeof HTMLElement == "function" && (ls = class extends HTMLElement {
2637
2637
  let e = function(n) {
2638
2638
  return (s) => {
2639
2639
  const i = document.createElement("slot");
2640
- n !== "default" && (i.name = n), I(s, i);
2640
+ n !== "default" && (i.name = n), O(s, i);
2641
2641
  };
2642
2642
  };
2643
2643
  if (await Promise.resolve(), !this.$$cn || this.$$c)
2644
2644
  return;
2645
- const t = {}, r = Fi(this);
2645
+ const t = {}, r = Ui(this);
2646
2646
  for (const n of this.$$s)
2647
2647
  n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
2648
2648
  for (const n of this.attributes) {
2649
2649
  const s = this.$$g_p(n.name);
2650
- s in this.$$d || (this.$$d[s] = qt(s, n.value, this.$$p_d, "toProp"));
2650
+ s in this.$$d || (this.$$d[s] = Wt(s, n.value, this.$$p_d, "toProp"));
2651
2651
  }
2652
2652
  for (const n in this.$$p_d)
2653
2653
  !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
2654
- this.$$c = Ni({
2654
+ this.$$c = Pi({
2655
2655
  component: this.$$ctor,
2656
2656
  target: this.$$shadowRoot || this,
2657
2657
  props: {
@@ -2659,13 +2659,13 @@ typeof HTMLElement == "function" && (ls = class extends HTMLElement {
2659
2659
  $$slots: t,
2660
2660
  $$host: this
2661
2661
  }
2662
- }), this.$$me = hi(() => {
2663
- Hr(() => {
2662
+ }), this.$$me = pi(() => {
2663
+ Wr(() => {
2664
2664
  this.$$r = !0;
2665
2665
  for (const n of Vt(this.$$c)) {
2666
2666
  if (!this.$$p_d[n]?.reflect) continue;
2667
2667
  this.$$d[n] = this.$$c[n];
2668
- const s = qt(
2668
+ const s = Wt(
2669
2669
  n,
2670
2670
  this.$$d[n],
2671
2671
  this.$$p_d,
@@ -2692,7 +2692,7 @@ typeof HTMLElement == "function" && (ls = class extends HTMLElement {
2692
2692
  * @param {string} newValue
2693
2693
  */
2694
2694
  attributeChangedCallback(e, t, r) {
2695
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = qt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2695
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = Wt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
2696
2696
  }
2697
2697
  disconnectedCallback() {
2698
2698
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -2708,7 +2708,7 @@ typeof HTMLElement == "function" && (ls = class extends HTMLElement {
2708
2708
  ) || e;
2709
2709
  }
2710
2710
  });
2711
- function qt(e, t, r, n) {
2711
+ function Wt(e, t, r, n) {
2712
2712
  const s = r[e]?.type;
2713
2713
  if (t = s === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
2714
2714
  return t;
@@ -2738,7 +2738,7 @@ function qt(e, t, r, n) {
2738
2738
  return t;
2739
2739
  }
2740
2740
  }
2741
- function Fi(e) {
2741
+ function Ui(e) {
2742
2742
  const t = {};
2743
2743
  return e.childNodes.forEach((r) => {
2744
2744
  t[
@@ -2747,8 +2747,8 @@ function Fi(e) {
2747
2747
  ] = !0;
2748
2748
  }), t;
2749
2749
  }
2750
- function cs(e, t, r, n, s, i) {
2751
- let a = class extends ls {
2750
+ function us(e, t, r, n, s, i) {
2751
+ let a = class extends fs {
2752
2752
  constructor() {
2753
2753
  super(e, r, s), this.$$p_d = t;
2754
2754
  }
@@ -2759,21 +2759,21 @@ function cs(e, t, r, n, s, i) {
2759
2759
  }
2760
2760
  };
2761
2761
  return Vt(t).forEach((o) => {
2762
- Wt(a.prototype, o, {
2762
+ Gt(a.prototype, o, {
2763
2763
  get() {
2764
2764
  return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
2765
2765
  },
2766
2766
  set(l) {
2767
- l = qt(o, l, t), this.$$d[o] = l;
2767
+ l = Wt(o, l, t), this.$$d[o] = l;
2768
2768
  var f = this.$$c;
2769
2769
  if (f) {
2770
- var u = dt(f, o)?.get;
2770
+ var u = ht(f, o)?.get;
2771
2771
  u ? f[o] = l : f.$set({ [o]: l });
2772
2772
  }
2773
2773
  }
2774
2774
  });
2775
2775
  }), n.forEach((o) => {
2776
- Wt(a.prototype, o, {
2776
+ Gt(a.prototype, o, {
2777
2777
  get() {
2778
2778
  return this.$$c?.[o];
2779
2779
  }
@@ -2781,7 +2781,7 @@ function cs(e, t, r, n, s, i) {
2781
2781
  }), e.element = /** @type {any} */
2782
2782
  a, a;
2783
2783
  }
2784
- const Ui = 50, Et = 5;
2784
+ const ji = 50, Ct = 5;
2785
2785
  class Bi {
2786
2786
  consoleErrors = [];
2787
2787
  attachments = [];
@@ -2820,7 +2820,7 @@ class Bi {
2820
2820
  timestamp: Date.now(),
2821
2821
  stack: new Error().stack
2822
2822
  };
2823
- this.consoleErrors.push(n), this.consoleErrors.length > Ui && this.consoleErrors.shift();
2823
+ this.consoleErrors.push(n), this.consoleErrors.length > ji && this.consoleErrors.shift();
2824
2824
  }
2825
2825
  stringifyArg(t) {
2826
2826
  if (t === null) return "null";
@@ -3008,8 +3008,8 @@ class Bi {
3008
3008
  * Add an attachment from a File
3009
3009
  */
3010
3010
  async addAttachment(t) {
3011
- if (this.attachments.length >= Et)
3012
- return console.warn(`[SDK] Maximum ${Et} attachments allowed`), null;
3011
+ if (this.attachments.length >= Ct)
3012
+ return console.warn(`[SDK] Maximum ${Ct} attachments allowed`), null;
3013
3013
  const r = this.getAttachmentType(t.type);
3014
3014
  if (!r)
3015
3015
  return console.warn(`[SDK] Unsupported file type: ${t.type}`), null;
@@ -3026,8 +3026,8 @@ class Bi {
3026
3026
  * Add an attachment from a Blob (e.g., screen recording)
3027
3027
  */
3028
3028
  async addBlobAttachment(t, r) {
3029
- if (this.attachments.length >= Et)
3030
- return console.warn(`[SDK] Maximum ${Et} attachments allowed`), null;
3029
+ if (this.attachments.length >= Ct)
3030
+ return console.warn(`[SDK] Maximum ${Ct} attachments allowed`), null;
3031
3031
  const n = this.getAttachmentType(t.type);
3032
3032
  if (!n)
3033
3033
  return console.warn(`[SDK] Unsupported blob type: ${t.type}`), null;
@@ -3063,7 +3063,7 @@ class Bi {
3063
3063
  * Check if more attachments can be added
3064
3064
  */
3065
3065
  canAddAttachment() {
3066
- return this.attachments.length < Et;
3066
+ return this.attachments.length < Ct;
3067
3067
  }
3068
3068
  getAttachmentType(t) {
3069
3069
  return t.startsWith("image/") ? "image" : t.startsWith("audio/") ? "audio" : t.startsWith("video/") ? "video" : null;
@@ -3093,12 +3093,12 @@ class Bi {
3093
3093
  this.stopConsoleCapture(), this.isRecording() && this.stopScreenRecording(), this.clearConsoleErrors(), this.clearAttachments();
3094
3094
  }
3095
3095
  }
3096
- let yr = null;
3097
- function fs() {
3098
- return yr || (yr = new Bi()), yr;
3096
+ let xr = null;
3097
+ function ds() {
3098
+ return xr || (xr = new Bi()), xr;
3099
3099
  }
3100
- var ji = /* @__PURE__ */ F('<button class="recording-btn svelte-1105cax" aria-label="Stop recording"><span class="recording-dot svelte-1105cax"></span> <span class="recording-time svelte-1105cax"> </span> <span class="stop-label svelte-1105cax">Stop</span></button>'), Hi = /* @__PURE__ */ F('<span class="unread-badge svelte-1105cax"> </span>'), qi = /* @__PURE__ */ or('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon svelte-1105cax"><path fill-rule="evenodd" d="M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd" class="svelte-1105cax"></path></svg>'), Vi = /* @__PURE__ */ or('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon svelte-1105cax"><path fill-rule="evenodd" d="M4.804 21.644A6.707 6.707 0 0 0 6 21.75a6.721 6.721 0 0 0 3.583-1.029c.774.182 1.584.279 2.417.279 5.322 0 9.75-3.97 9.75-9 0-5.03-4.428-9-9.75-9s-9.75 3.97-9.75 9c0 2.409 1.025 4.587 2.674 6.192.232.226.277.428.254.543a3.73 3.73 0 0 1-.814 1.686.75.75 0 0 0 .44 1.223ZM8.25 10.875a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25ZM10.875 12a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0Zm4.875-1.125a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25Z" clip-rule="evenodd" class="svelte-1105cax"></path></svg>'), Wi = /* @__PURE__ */ F('<button class="toggle-btn svelte-1105cax"><!> <!></button>'), Ki = /* @__PURE__ */ F('<div class="loading-state svelte-1105cax"><div class="loading-spinner svelte-1105cax"></div> <p class="svelte-1105cax">Loading...</p></div>'), Yi = /* @__PURE__ */ F('<div class="support-chat svelte-1105cax"><!> <div><!> <iframe title="Support Chat" sandbox="allow-scripts allow-forms allow-same-origin allow-popups allow-popups-to-escape-sandbox" allow="clipboard-write; display-capture; microphone"></iframe></div></div>');
3101
- const Zi = {
3100
+ var Hi = /* @__PURE__ */ U('<button class="recording-btn svelte-1105cax" aria-label="Stop recording"><span class="recording-dot svelte-1105cax"></span> <span class="recording-time svelte-1105cax"> </span> <span class="stop-label svelte-1105cax">Stop</span></button>'), qi = /* @__PURE__ */ U('<span class="unread-badge svelte-1105cax"> </span>'), Wi = /* @__PURE__ */ lr('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon svelte-1105cax"><path fill-rule="evenodd" d="M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd" class="svelte-1105cax"></path></svg>'), Vi = /* @__PURE__ */ lr('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon svelte-1105cax"><path fill-rule="evenodd" d="M4.804 21.644A6.707 6.707 0 0 0 6 21.75a6.721 6.721 0 0 0 3.583-1.029c.774.182 1.584.279 2.417.279 5.322 0 9.75-3.97 9.75-9 0-5.03-4.428-9-9.75-9s-9.75 3.97-9.75 9c0 2.409 1.025 4.587 2.674 6.192.232.226.277.428.254.543a3.73 3.73 0 0 1-.814 1.686.75.75 0 0 0 .44 1.223ZM8.25 10.875a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25ZM10.875 12a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0Zm4.875-1.125a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25Z" clip-rule="evenodd" class="svelte-1105cax"></path></svg>'), Gi = /* @__PURE__ */ U('<button class="toggle-btn svelte-1105cax"><!> <!></button>'), Ki = /* @__PURE__ */ U('<div class="loading-state svelte-1105cax"><div class="loading-spinner svelte-1105cax"></div> <p class="svelte-1105cax">Loading...</p></div>'), Ji = /* @__PURE__ */ U('<div class="support-chat svelte-1105cax"><!> <div><!> <iframe title="Support Chat" sandbox="allow-scripts allow-forms allow-same-origin allow-popups allow-popups-to-escape-sandbox" allow="clipboard-write; display-capture; microphone"></iframe></div></div>');
3101
+ const Yi = {
3102
3102
  hash: "svelte-1105cax",
3103
3103
  code: `.svelte-1105cax {box-sizing:border-box;margin:0;padding:0;}.support-chat.svelte-1105cax {--primary-color: #6366f1;--shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
3104
3104
  0 8px 10px -6px rgba(0, 0, 0, 0.1);position:fixed;bottom:1rem;z-index:9999;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
@@ -3144,30 +3144,30 @@ const Zi = {
3144
3144
  }
3145
3145
  }`
3146
3146
  };
3147
- function Gi(e, t) {
3148
- Nr(t, !0), os(e, Zi);
3149
- let r = Z(t, "embedId"), n = Z(t, "embedUrl", 7, "https://app.fortalece.ai"), s = Z(t, "position", 7, "bottom-right"), i = Z(
3147
+ function Zi(e, t) {
3148
+ Fr(t, !0), cs(e, Yi);
3149
+ let r = Y(t, "embedId"), n = Y(t, "embedUrl", 7, "https://app.fortalece.ai"), s = Y(t, "position", 7, "bottom-right"), i = Y(
3150
3150
  t,
3151
3151
  "showHeader",
3152
3152
  7,
3153
3153
  "true"
3154
3154
  // Default to string 'true' since HTML attributes are strings
3155
- ), a = Z(t, "allowAttachments", 7, !0), o = Z(t, "allowScreenRecording", 7, !0), l = Z(t, "captureConsoleLogs", 7, !0), f = /* @__PURE__ */ A(!1), u = /* @__PURE__ */ A(!1), d = /* @__PURE__ */ A(!1), h = /* @__PURE__ */ A(0), g = /* @__PURE__ */ A(!1), p = /* @__PURE__ */ A(null), _ = /* @__PURE__ */ A("00:00"), z = /* @__PURE__ */ A(void 0), w = /* @__PURE__ */ A(null), x = /* @__PURE__ */ A(Oe([])), J = /* @__PURE__ */ A(Oe([]));
3156
- Zt(() => {
3155
+ ), a = Y(t, "allowAttachments", 7, !0), o = Y(t, "allowScreenRecording", 7, !0), l = Y(t, "captureConsoleLogs", 7, !0), f = /* @__PURE__ */ A(!1), u = /* @__PURE__ */ A(!1), d = /* @__PURE__ */ A(!1), h = /* @__PURE__ */ A(0), g = /* @__PURE__ */ A(!1), p = /* @__PURE__ */ A(null), _ = /* @__PURE__ */ A("00:00"), z = /* @__PURE__ */ A(void 0), w = /* @__PURE__ */ A(null), $ = /* @__PURE__ */ A(Ne([])), X = /* @__PURE__ */ A(Ne([]));
3156
+ Yt(() => {
3157
3157
  if (c(g) && c(p) !== null) {
3158
3158
  const y = setInterval(
3159
3159
  () => {
3160
- const L = Math.floor((Date.now() - c(p)) / 1e3), ne = Math.floor(L / 60).toString().padStart(2, "0"), ke = (L % 60).toString().padStart(2, "0");
3161
- m(_, `${ne}:${ke}`);
3160
+ const L = Math.floor((Date.now() - c(p)) / 1e3), se = Math.floor(L / 60).toString().padStart(2, "0"), Ee = (L % 60).toString().padStart(2, "0");
3161
+ m(_, `${se}:${Ee}`);
3162
3162
  },
3163
3163
  1e3
3164
3164
  );
3165
3165
  return () => clearInterval(y);
3166
3166
  }
3167
3167
  });
3168
- const V = /* @__PURE__ */ me(() => i() === "false" || i() === !1), W = /* @__PURE__ */ me(() => !c(f) || c(V) || !c(u)), Te = /* @__PURE__ */ me(() => `${n()}/embed/${r()}${c(V) ? "?showHeader=false" : ""}`), Se = /* @__PURE__ */ me(() => s() === "bottom-left" ? "left: 1rem; right: auto;" : "right: 1rem; left: auto;");
3169
- as(() => {
3170
- m(w, fs(), !0), l() && c(w).startConsoleCapture();
3168
+ const V = /* @__PURE__ */ _e(() => i() === "false" || i() === !1), G = /* @__PURE__ */ _e(() => !c(f) || c(V) || !c(u)), Re = /* @__PURE__ */ _e(() => `${n()}/embed/${r()}${c(V) ? "?showHeader=false" : ""}`), ke = /* @__PURE__ */ _e(() => s() === "bottom-left" ? "left: 1rem; right: auto;" : "right: 1rem; left: auto;");
3169
+ ls(() => {
3170
+ m(w, ds(), !0), l() && c(w).startConsoleCapture();
3171
3171
  function y(L) {
3172
3172
  try {
3173
3173
  const Be = new URL(n()).origin;
@@ -3175,8 +3175,8 @@ function Gi(e, t) {
3175
3175
  } catch {
3176
3176
  return;
3177
3177
  }
3178
- const { type: ne, payload: ke } = L.data || {};
3179
- switch (ne) {
3178
+ const { type: se, payload: Ee } = L.data || {};
3179
+ switch (se) {
3180
3180
  case "fortalece:ready":
3181
3181
  m(u, !0);
3182
3182
  break;
@@ -3184,19 +3184,19 @@ function Gi(e, t) {
3184
3184
  m(f, !1);
3185
3185
  break;
3186
3186
  case "fortalece:request-context":
3187
- wt();
3187
+ yt();
3188
3188
  break;
3189
3189
  case "fortalece:request-attachments":
3190
- re();
3190
+ ne();
3191
3191
  break;
3192
3192
  case "fortalece:clear-attachments":
3193
- yt();
3193
+ $t();
3194
3194
  break;
3195
3195
  case "fortalece:resize":
3196
- m(d, ke?.fullscreen ?? !1, !0);
3196
+ m(d, Ee?.fullscreen ?? !1, !0);
3197
3197
  break;
3198
3198
  case "fortalece:unread":
3199
- m(h, ke?.count || 0, !0);
3199
+ m(h, Ee?.count || 0, !0);
3200
3200
  break;
3201
3201
  case "fortalece:recording-started":
3202
3202
  m(g, !0), m(p, Date.now(), !0), m(_, "00:00"), m(f, !1);
@@ -3210,42 +3210,42 @@ function Gi(e, t) {
3210
3210
  window.removeEventListener("message", y), l() && c(w) && c(w).stopConsoleCapture();
3211
3211
  };
3212
3212
  });
3213
- function T() {
3213
+ function R() {
3214
3214
  m(f, !c(f)), c(f) && m(h, 0);
3215
3215
  }
3216
- function ot() {
3217
- ge("fortalece:stop-recording"), m(g, !1), m(p, null), m(_, "00:00");
3216
+ function lt() {
3217
+ me("fortalece:stop-recording"), m(g, !1), m(p, null), m(_, "00:00");
3218
3218
  }
3219
- function ge(y, L = {}) {
3219
+ function me(y, L = {}) {
3220
3220
  if (c(z)?.contentWindow)
3221
3221
  try {
3222
- const ne = new URL(n()).origin;
3223
- c(z).contentWindow.postMessage({ type: y, payload: L }, ne);
3222
+ const se = new URL(n()).origin;
3223
+ c(z).contentWindow.postMessage({ type: y, payload: L }, se);
3224
3224
  } catch {
3225
3225
  }
3226
3226
  }
3227
- function wt() {
3227
+ function yt() {
3228
3228
  if (!c(w)) return;
3229
3229
  const y = c(w).getPageContext();
3230
- if (ge("fortalece:page-context", y), l()) {
3230
+ if (me("fortalece:page-context", y), l()) {
3231
3231
  const L = c(w).getConsoleErrors();
3232
- m(J, L, !0), ge("fortalece:console-logs", { logs: L });
3232
+ m(X, L, !0), me("fortalece:console-logs", { logs: L });
3233
3233
  }
3234
- ge("fortalece:capture-state", {
3234
+ me("fortalece:capture-state", {
3235
3235
  allowAttachments: a(),
3236
3236
  allowScreenRecording: o(),
3237
3237
  captureConsoleLogs: l(),
3238
- attachmentCount: c(x).length,
3238
+ attachmentCount: c($).length,
3239
3239
  maxAttachments: 5
3240
3240
  });
3241
3241
  }
3242
- function re() {
3243
- c(x).forEach((y) => {
3244
- ge("fortalece:attachment-added", y);
3242
+ function ne() {
3243
+ c($).forEach((y) => {
3244
+ me("fortalece:attachment-added", y);
3245
3245
  });
3246
3246
  }
3247
- function yt() {
3248
- c(w) && (c(w).clearAttachments(), c(w).clearConsoleErrors(), m(x, [], !0), m(J, [], !0), ge("fortalece:capture-state", {
3247
+ function $t() {
3248
+ c(w) && (c(w).clearAttachments(), c(w).clearConsoleErrors(), m($, [], !0), m(X, [], !0), me("fortalece:capture-state", {
3249
3249
  allowAttachments: a(),
3250
3250
  allowScreenRecording: o(),
3251
3251
  captureConsoleLogs: l(),
@@ -3253,10 +3253,10 @@ function Gi(e, t) {
3253
3253
  maxAttachments: 5
3254
3254
  }));
3255
3255
  }
3256
- Zt(() => {
3257
- c(f) && c(u) && (ge("fortalece:opened"), wt(), re());
3256
+ Yt(() => {
3257
+ c(f) && c(u) && (me("fortalece:opened"), yt(), ne());
3258
3258
  });
3259
- var Mt = {
3259
+ var It = {
3260
3260
  get embedId() {
3261
3261
  return r();
3262
3262
  },
@@ -3299,84 +3299,84 @@ function Gi(e, t) {
3299
3299
  set captureConsoleLogs(y = !0) {
3300
3300
  l(y), K();
3301
3301
  }
3302
- }, Ue = Yi(), It = M(Ue);
3302
+ }, je = Ji(), Ot = I(je);
3303
3303
  {
3304
- var lr = (y) => {
3305
- var L = ji();
3306
- L.__click = ot;
3307
- var ne = O(M(L), 2), ke = M(ne, !0);
3308
- R(ne), Or(2), R(L), ee(() => He(ke, c(_))), I(y, L);
3309
- }, cr = (y) => {
3310
- var L = yi(), ne = On(L);
3304
+ var fr = (y) => {
3305
+ var L = Hi();
3306
+ L.__click = lt;
3307
+ var se = N(I(L), 2), Ee = I(se, !0);
3308
+ M(se), Pr(2), M(L), te(() => qe(Ee, c(_))), O(y, L);
3309
+ }, ur = (y) => {
3310
+ var L = $i(), se = Pn(L);
3311
3311
  {
3312
- var ke = (Be) => {
3313
- var Je = Wi();
3314
- Je.__click = T;
3315
- var $t = M(Je);
3312
+ var Ee = (Be) => {
3313
+ var Xe = Gi();
3314
+ Xe.__click = R;
3315
+ var St = I(Xe);
3316
3316
  {
3317
- var ur = (ce) => {
3318
- var Re = Hi(), v = M(Re, !0);
3319
- R(Re), ee(() => He(v, c(h) > 9 ? "9+" : c(h))), I(ce, Re);
3317
+ var hr = (fe) => {
3318
+ var Me = qi(), v = I(Me, !0);
3319
+ M(Me), te(() => qe(v, c(h) > 9 ? "9+" : c(h))), O(fe, Me);
3320
3320
  };
3321
- j($t, (ce) => {
3322
- c(h) > 0 && !c(f) && ce(ur);
3321
+ H(St, (fe) => {
3322
+ c(h) > 0 && !c(f) && fe(hr);
3323
3323
  });
3324
3324
  }
3325
- var Pt = O($t, 2);
3325
+ var Ft = N(St, 2);
3326
3326
  {
3327
- var dr = (ce) => {
3328
- var Re = qi();
3329
- I(ce, Re);
3330
- }, St = (ce) => {
3331
- var Re = Vi();
3332
- I(ce, Re);
3327
+ var pr = (fe) => {
3328
+ var Me = Wi();
3329
+ O(fe, Me);
3330
+ }, kt = (fe) => {
3331
+ var Me = Vi();
3332
+ O(fe, Me);
3333
3333
  };
3334
- j(Pt, (ce) => {
3335
- c(f) ? ce(dr) : ce(St, !1);
3334
+ H(Ft, (fe) => {
3335
+ c(f) ? fe(pr) : fe(kt, !1);
3336
3336
  });
3337
3337
  }
3338
- R(Je), ee(() => Jt(Je, "aria-label", c(f) ? "Close chat" : "Open chat")), I(Be, Je);
3338
+ M(Xe), te(() => Xt(Xe, "aria-label", c(f) ? "Close chat" : "Open chat")), O(Be, Xe);
3339
3339
  };
3340
- j(
3341
- ne,
3340
+ H(
3341
+ se,
3342
3342
  (Be) => {
3343
- c(W) && Be(ke);
3343
+ c(G) && Be(Ee);
3344
3344
  },
3345
3345
  !0
3346
3346
  );
3347
3347
  }
3348
- I(y, L);
3348
+ O(y, L);
3349
3349
  };
3350
- j(It, (y) => {
3351
- c(g) ? y(lr) : y(cr, !1);
3350
+ H(Ot, (y) => {
3351
+ c(g) ? y(fr) : y(ur, !1);
3352
3352
  });
3353
3353
  }
3354
- var lt = O(It, 2);
3354
+ var ct = N(Ot, 2);
3355
3355
  let Dt, Lt;
3356
- var Ot = M(lt);
3356
+ var Nt = I(ct);
3357
3357
  {
3358
- var fr = (y) => {
3358
+ var dr = (y) => {
3359
3359
  var L = Ki();
3360
- I(y, L);
3360
+ O(y, L);
3361
3361
  };
3362
- j(Ot, (y) => {
3363
- c(u) || y(fr);
3362
+ H(Nt, (y) => {
3363
+ c(u) || y(dr);
3364
3364
  });
3365
3365
  }
3366
- var xt = O(Ot, 2);
3367
- let Nt;
3368
- return Mr(xt, (y) => m(z, y), () => c(z)), R(lt), R(Ue), ee(() => {
3369
- Rr(Ue, c(Se)), Dt = ut(lt, 1, "chat-window svelte-1105cax", null, Dt, {
3366
+ var xt = N(Nt, 2);
3367
+ let Pt;
3368
+ return Or(xt, (y) => m(z, y), () => c(z)), M(ct), M(je), te(() => {
3369
+ Ir(je, c(ke)), Dt = dt(ct, 1, "chat-window svelte-1105cax", null, Dt, {
3370
3370
  "chat-window-hidden": !c(f),
3371
3371
  "chat-window-fullscreen": c(d)
3372
- }), Lt = Rr(lt, "", Lt, {
3373
- bottom: c(d) ? void 0 : c(W) ? "4.5rem" : "0"
3374
- }), Jt(xt, "src", c(Te)), Nt = ut(xt, 1, "svelte-1105cax", null, Nt, { hidden: !c(u) });
3375
- }), I(e, Ue), Pr(Mt);
3376
- }
3377
- rs(["click"]);
3378
- customElements.define("support-chat", cs(
3379
- Gi,
3372
+ }), Lt = Ir(ct, "", Lt, {
3373
+ bottom: c(d) ? void 0 : c(G) ? "4.5rem" : "0"
3374
+ }), Xt(xt, "src", c(Re)), Pt = dt(xt, 1, "svelte-1105cax", null, Pt, { hidden: !c(u) });
3375
+ }), O(e, je), Ur(It);
3376
+ }
3377
+ ss(["click"]);
3378
+ customElements.define("support-chat", us(
3379
+ Zi,
3380
3380
  {
3381
3381
  embedId: { attribute: "embed-id", reflect: !0 },
3382
3382
  embedUrl: { attribute: "embed-url", reflect: !0 },
@@ -3402,8 +3402,8 @@ customElements.define("support-chat", cs(
3402
3402
  [],
3403
3403
  { mode: "open" }
3404
3404
  ));
3405
- var Ji = /* @__PURE__ */ F('<div class="recording-indicator svelte-p7nz7"><div class="recording-dot svelte-p7nz7"></div> <span class="svelte-p7nz7">Recording...</span> <button class="stop-recording-btn svelte-p7nz7">Stop</button></div>'), Xi = /* @__PURE__ */ F('<button class="capture-btn svelte-p7nz7"><span class="capture-icon svelte-p7nz7">📎</span> <span class="svelte-p7nz7">Add File</span></button>'), Qi = /* @__PURE__ */ F('<button class="capture-btn svelte-p7nz7"><span class="capture-icon svelte-p7nz7">📸</span> <span class="svelte-p7nz7">Screenshot</span></button> <button class="capture-btn record-btn svelte-p7nz7"><span class="capture-icon svelte-p7nz7">🔴</span> <span class="svelte-p7nz7">Record Screen</span></button>', 1), ea = /* @__PURE__ */ F('<div class="attachment-item svelte-p7nz7"><span class="attachment-icon svelte-p7nz7"> </span> <div class="attachment-info svelte-p7nz7"><span class="attachment-name svelte-p7nz7"> </span> <span class="attachment-size svelte-p7nz7"> </span></div> <button class="remove-attachment-btn svelte-p7nz7">✕</button></div>'), ta = /* @__PURE__ */ F('<div class="attachment-list svelte-p7nz7"><div class="attachment-header svelte-p7nz7"><span class="svelte-p7nz7"> </span></div> <!></div>'), ra = /* @__PURE__ */ F('<div class="console-info svelte-p7nz7"><span class="console-icon svelte-p7nz7">🔧</span> <span class="svelte-p7nz7"> </span></div>'), na = /* @__PURE__ */ F('<div class="capture-panel svelte-p7nz7"><div class="capture-panel-header svelte-p7nz7"><span class="svelte-p7nz7">Capture</span> <button class="close-capture-btn svelte-p7nz7">✕</button></div> <div class="capture-actions svelte-p7nz7"><!> <!></div> <!> <!></div>'), sa = /* @__PURE__ */ or('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon svelte-p7nz7"><path fill-rule="evenodd" d="M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd" class="svelte-p7nz7"></path></svg>'), ia = /* @__PURE__ */ or('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon svelte-p7nz7"><path fill-rule="evenodd" d="M4.848 2.771A49.144 49.144 0 0 1 12 2.25c2.43 0 4.817.178 7.152.52 1.978.292 3.348 2.024 3.348 3.97v6.02c0 1.946-1.37 3.678-3.348 3.97a48.901 48.901 0 0 1-3.476.383.39.39 0 0 0-.297.17l-2.755 4.133a.75.75 0 0 1-1.248 0l-2.755-4.133a.39.39 0 0 0-.297-.17 48.9 48.9 0 0 1-3.476-.384c-1.978-.29-3.348-2.024-3.348-3.97V6.741c0-1.946 1.37-3.68 3.348-3.97Z" clip-rule="evenodd" class="svelte-p7nz7"></path></svg>'), aa = /* @__PURE__ */ F('<button class="toggle-btn svelte-p7nz7"><!></button>'), oa = /* @__PURE__ */ F('<span class="badge svelte-p7nz7"> </span>'), la = /* @__PURE__ */ F('<button aria-label="Toggle capture panel"><!> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon svelte-p7nz7"><path d="M12 9a3.75 3.75 0 1 0 0 7.5A3.75 3.75 0 0 0 12 9Z" class="svelte-p7nz7"></path><path fill-rule="evenodd" d="M9.344 3.071a49.52 49.52 0 0 1 5.312 0c.967.052 1.83.585 2.332 1.39l.821 1.317c.24.383.645.643 1.11.71.386.054.77.113 1.152.177 1.432.239 2.429 1.493 2.429 2.909V18a3 3 0 0 1-3 3H4.5a3 3 0 0 1-3-3V9.574c0-1.416.997-2.67 2.429-2.909.382-.064.766-.123 1.151-.178a1.56 1.56 0 0 0 1.11-.71l.822-1.315a2.942 2.942 0 0 1 2.332-1.39ZM6.75 12.75a5.25 5.25 0 1 1 10.5 0 5.25 5.25 0 0 1-10.5 0Zm12-1.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z" clip-rule="evenodd" class="svelte-p7nz7"></path></svg></button>'), ca = /* @__PURE__ */ F('<div class="loading-state svelte-p7nz7"><div class="loading-spinner svelte-p7nz7"></div> <p class="svelte-p7nz7">Loading...</p></div>'), fa = /* @__PURE__ */ F('<div><!> <iframe title="Feedback Panel" sandbox="allow-scripts allow-forms allow-same-origin allow-popups allow-popups-to-escape-sandbox" allow="clipboard-write; display-capture; microphone"></iframe></div>'), ua = /* @__PURE__ */ F('<div><!> <!> <!> <!> <input type="file" accept="image/*,audio/*,video/*" multiple style="display: none;" class="svelte-p7nz7"/> <!></div>');
3406
- const da = {
3405
+ var Xi = /* @__PURE__ */ U('<div class="recording-indicator svelte-p7nz7"><div class="recording-dot svelte-p7nz7"></div> <span class="svelte-p7nz7">Recording...</span> <button class="stop-recording-btn svelte-p7nz7">Stop</button></div>'), Qi = /* @__PURE__ */ U('<button class="capture-btn svelte-p7nz7"><span class="capture-icon svelte-p7nz7">📎</span> <span class="svelte-p7nz7">Add File</span></button>'), ea = /* @__PURE__ */ U('<button class="capture-btn svelte-p7nz7"><span class="capture-icon svelte-p7nz7">📸</span> <span class="svelte-p7nz7">Screenshot</span></button> <button class="capture-btn record-btn svelte-p7nz7"><span class="capture-icon svelte-p7nz7">🔴</span> <span class="svelte-p7nz7">Record Screen</span></button>', 1), ta = /* @__PURE__ */ U('<div class="attachment-item svelte-p7nz7"><span class="attachment-icon svelte-p7nz7"> </span> <div class="attachment-info svelte-p7nz7"><span class="attachment-name svelte-p7nz7"> </span> <span class="attachment-size svelte-p7nz7"> </span></div> <button class="remove-attachment-btn svelte-p7nz7">✕</button></div>'), ra = /* @__PURE__ */ U('<div class="attachment-list svelte-p7nz7"><div class="attachment-header svelte-p7nz7"><span class="svelte-p7nz7"> </span></div> <!></div>'), na = /* @__PURE__ */ U('<div class="console-info svelte-p7nz7"><span class="console-icon svelte-p7nz7">🔧</span> <span class="svelte-p7nz7"> </span></div>'), sa = /* @__PURE__ */ U('<div class="capture-panel svelte-p7nz7"><div class="capture-panel-header svelte-p7nz7"><span class="svelte-p7nz7">Capture</span> <button class="close-capture-btn svelte-p7nz7">✕</button></div> <div class="capture-actions svelte-p7nz7"><!> <!></div> <!> <!></div>'), ia = /* @__PURE__ */ lr('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon svelte-p7nz7"><path fill-rule="evenodd" d="M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd" class="svelte-p7nz7"></path></svg>'), aa = /* @__PURE__ */ lr('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon svelte-p7nz7"><path fill-rule="evenodd" d="M4.848 2.771A49.144 49.144 0 0 1 12 2.25c2.43 0 4.817.178 7.152.52 1.978.292 3.348 2.024 3.348 3.97v6.02c0 1.946-1.37 3.678-3.348 3.97a48.901 48.901 0 0 1-3.476.383.39.39 0 0 0-.297.17l-2.755 4.133a.75.75 0 0 1-1.248 0l-2.755-4.133a.39.39 0 0 0-.297-.17 48.9 48.9 0 0 1-3.476-.384c-1.978-.29-3.348-2.024-3.348-3.97V6.741c0-1.946 1.37-3.68 3.348-3.97Z" clip-rule="evenodd" class="svelte-p7nz7"></path></svg>'), oa = /* @__PURE__ */ U('<button class="toggle-btn svelte-p7nz7"><!></button>'), la = /* @__PURE__ */ U('<span class="badge svelte-p7nz7"> </span>'), ca = /* @__PURE__ */ U('<button aria-label="Toggle capture panel"><!> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="icon svelte-p7nz7"><path d="M12 9a3.75 3.75 0 1 0 0 7.5A3.75 3.75 0 0 0 12 9Z" class="svelte-p7nz7"></path><path fill-rule="evenodd" d="M9.344 3.071a49.52 49.52 0 0 1 5.312 0c.967.052 1.83.585 2.332 1.39l.821 1.317c.24.383.645.643 1.11.71.386.054.77.113 1.152.177 1.432.239 2.429 1.493 2.429 2.909V18a3 3 0 0 1-3 3H4.5a3 3 0 0 1-3-3V9.574c0-1.416.997-2.67 2.429-2.909.382-.064.766-.123 1.151-.178a1.56 1.56 0 0 0 1.11-.71l.822-1.315a2.942 2.942 0 0 1 2.332-1.39ZM6.75 12.75a5.25 5.25 0 1 1 10.5 0 5.25 5.25 0 0 1-10.5 0Zm12-1.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z" clip-rule="evenodd" class="svelte-p7nz7"></path></svg></button>'), fa = /* @__PURE__ */ U('<div class="loading-state svelte-p7nz7"><div class="loading-spinner svelte-p7nz7"></div> <p class="svelte-p7nz7">Loading...</p></div>'), ua = /* @__PURE__ */ U('<div><!> <iframe title="Feedback Panel" sandbox="allow-scripts allow-forms allow-same-origin allow-popups allow-popups-to-escape-sandbox" allow="clipboard-write; display-capture; microphone"></iframe></div>'), da = /* @__PURE__ */ U('<div><!> <!> <!> <!> <input type="file" accept="image/*,audio/*,video/*" multiple style="display: none;" class="svelte-p7nz7"/> <!></div>');
3406
+ const ha = {
3407
3407
  hash: "svelte-p7nz7",
3408
3408
  code: `
3409
3409
  /* Host element styling for inline mode */:host {display:block;}:host([display="inline"]) {display:block;width:100%;height:100%;}.svelte-p7nz7 {box-sizing:border-box;margin:0;padding:0;}.feedback-panel.svelte-p7nz7 {--primary-color: #6366f1;--danger-color: #ef4444;--shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
@@ -3460,47 +3460,47 @@ const da = {
3460
3460
  }
3461
3461
  }`
3462
3462
  };
3463
- function ha(e, t) {
3464
- Nr(t, !0), os(e, da);
3465
- let r = Z(t, "embedId"), n = Z(t, "embedUrl", 7, "https://app.fortalece.ai"), s = Z(t, "position", 7, "bottom-right"), i = Z(t, "display", 7, "floating"), a = Z(t, "allowAttachments", 7, !0), o = Z(t, "allowScreenRecording", 7, !0), l = Z(t, "captureConsoleLogs", 7, !0), f = Z(
3463
+ function pa(e, t) {
3464
+ Fr(t, !0), cs(e, ha);
3465
+ let r = Y(t, "embedId"), n = Y(t, "embedUrl", 7, "https://app.fortalece.ai"), s = Y(t, "position", 7, "bottom-right"), i = Y(t, "display", 7, "floating"), a = Y(t, "allowAttachments", 7, !0), o = Y(t, "allowScreenRecording", 7, !0), l = Y(t, "captureConsoleLogs", 7, !0), f = Y(
3466
3466
  t,
3467
3467
  "showHeader",
3468
3468
  7,
3469
3469
  "true"
3470
3470
  // Default to string 'true' since HTML attributes are strings
3471
3471
  );
3472
- const u = /* @__PURE__ */ me(() => i() === "inline");
3472
+ const u = /* @__PURE__ */ _e(() => i() === "inline");
3473
3473
  let d = /* @__PURE__ */ A(!1), h = /* @__PURE__ */ A(!1);
3474
- const g = /* @__PURE__ */ me(() => c(u) ? !0 : c(d));
3475
- let p = /* @__PURE__ */ A(!1), _ = /* @__PURE__ */ A(void 0), z = /* @__PURE__ */ A(void 0), w = /* @__PURE__ */ A(null), x = /* @__PURE__ */ A(Oe([])), J = /* @__PURE__ */ A(Oe([])), V = /* @__PURE__ */ A(!1);
3476
- const W = /* @__PURE__ */ me(() => f() === "false" || f() === !1), Te = /* @__PURE__ */ me(() => `${n()}/embed/${r()}?type=feedback-panel${c(W) ? "&showHeader=false" : ""}`), Se = /* @__PURE__ */ me(() => s() === "bottom-left" ? "left: 1rem; right: auto;" : "right: 1rem; left: auto;"), T = /* @__PURE__ */ me(() => c(x).length < 5), ot = /* @__PURE__ */ me(() => a() || o());
3477
- as(() => {
3478
- m(w, fs(), !0), l() && c(w).startConsoleCapture();
3474
+ const g = /* @__PURE__ */ _e(() => c(u) ? !0 : c(d));
3475
+ let p = /* @__PURE__ */ A(!1), _ = /* @__PURE__ */ A(void 0), z = /* @__PURE__ */ A(void 0), w = /* @__PURE__ */ A(null), $ = /* @__PURE__ */ A(Ne([])), X = /* @__PURE__ */ A(Ne([])), V = /* @__PURE__ */ A(!1);
3476
+ const G = /* @__PURE__ */ _e(() => f() === "false" || f() === !1), Re = /* @__PURE__ */ _e(() => `${n()}/embed/${r()}?type=feedback-panel${c(G) ? "&showHeader=false" : ""}`), ke = /* @__PURE__ */ _e(() => s() === "bottom-left" ? "left: 1rem; right: auto;" : "right: 1rem; left: auto;"), R = /* @__PURE__ */ _e(() => c($).length < 5), lt = /* @__PURE__ */ _e(() => a() || o());
3477
+ ls(() => {
3478
+ m(w, ds(), !0), l() && c(w).startConsoleCapture();
3479
3479
  function v(b) {
3480
3480
  try {
3481
- const X = new URL(n()).origin;
3482
- if (b.origin !== X) return;
3481
+ const Q = new URL(n()).origin;
3482
+ if (b.origin !== Q) return;
3483
3483
  } catch {
3484
3484
  return;
3485
3485
  }
3486
3486
  const { type: C } = b.data || {};
3487
3487
  switch (C) {
3488
3488
  case "fortalece:ready":
3489
- m(h, !0), yt();
3489
+ m(h, !0), $t();
3490
3490
  break;
3491
3491
  case "fortalece:close-request":
3492
3492
  m(d, !1);
3493
3493
  break;
3494
3494
  case "fortalece:request-context":
3495
- yt();
3495
+ $t();
3496
3496
  break;
3497
3497
  case "fortalece:request-attachments":
3498
- Mt();
3498
+ It();
3499
3499
  break;
3500
3500
  case "fortalece:submit-start":
3501
3501
  break;
3502
3502
  case "fortalece:submit-complete":
3503
- b.data.payload?.success && (Ot(), c(u) || m(d, !1));
3503
+ b.data.payload?.success && (Nt(), c(u) || m(d, !1));
3504
3504
  break;
3505
3505
  }
3506
3506
  }
@@ -3508,13 +3508,13 @@ function ha(e, t) {
3508
3508
  window.removeEventListener("message", v), l() && c(w) && c(w).stopConsoleCapture();
3509
3509
  };
3510
3510
  });
3511
- function ge() {
3511
+ function me() {
3512
3512
  m(d, !c(d)), c(d) && m(V, !1);
3513
3513
  }
3514
- function wt() {
3514
+ function yt() {
3515
3515
  m(V, !c(V));
3516
3516
  }
3517
- function re(v, b = {}) {
3517
+ function ne(v, b = {}) {
3518
3518
  if (c(_)?.contentWindow)
3519
3519
  try {
3520
3520
  const C = new URL(n()).origin;
@@ -3522,49 +3522,49 @@ function ha(e, t) {
3522
3522
  } catch {
3523
3523
  }
3524
3524
  }
3525
- function yt() {
3525
+ function $t() {
3526
3526
  if (!c(w)) return;
3527
3527
  const v = c(w).getPageContext();
3528
- if (re("fortalece:page-context", v), l()) {
3528
+ if (ne("fortalece:page-context", v), l()) {
3529
3529
  const b = c(w).getConsoleErrors();
3530
- re("fortalece:console-logs", { logs: b });
3530
+ ne("fortalece:console-logs", { logs: b });
3531
3531
  }
3532
- re("fortalece:capture-state", {
3532
+ ne("fortalece:capture-state", {
3533
3533
  allowAttachments: a(),
3534
3534
  allowScreenRecording: o(),
3535
3535
  captureConsoleLogs: l(),
3536
- attachmentCount: c(x).length,
3536
+ attachmentCount: c($).length,
3537
3537
  maxAttachments: 5
3538
3538
  });
3539
3539
  }
3540
- function Mt() {
3541
- c(x).forEach((v) => {
3542
- re("fortalece:attachment-added", v);
3540
+ function It() {
3541
+ c($).forEach((v) => {
3542
+ ne("fortalece:attachment-added", v);
3543
3543
  });
3544
3544
  }
3545
- let Ue = !1;
3546
- Zt(() => {
3545
+ let je = !1;
3546
+ Yt(() => {
3547
3547
  const v = c(g) && c(h);
3548
- v && !Ue ? (Ue = !0, re("fortalece:opened"), yt(), Mt()) : v || (Ue = !1);
3548
+ v && !je ? (je = !0, ne("fortalece:opened"), $t(), It()) : v || (je = !1);
3549
3549
  });
3550
- function It() {
3550
+ function Ot() {
3551
3551
  c(z)?.click();
3552
3552
  }
3553
- async function lr(v) {
3553
+ async function fr(v) {
3554
3554
  const b = v.target;
3555
3555
  if (!(!b.files || !c(w))) {
3556
3556
  for (const C of Array.from(b.files)) {
3557
- if (!c(T)) break;
3558
- const X = await c(w).addAttachment(C);
3559
- X && (m(x, [...c(x), X], !0), re("fortalece:attachment-added", X));
3557
+ if (!c(R)) break;
3558
+ const Q = await c(w).addAttachment(C);
3559
+ Q && (m($, [...c($), Q], !0), ne("fortalece:attachment-added", Q));
3560
3560
  }
3561
3561
  b.value = "";
3562
3562
  }
3563
3563
  }
3564
- function cr(v) {
3565
- c(w) && (c(w).removeAttachment(v), m(x, c(x).filter((b) => b.id !== v), !0), re("fortalece:attachment-removed", { id: v }));
3564
+ function ur(v) {
3565
+ c(w) && (c(w).removeAttachment(v), m($, c($).filter((b) => b.id !== v), !0), ne("fortalece:attachment-removed", { id: v }));
3566
3566
  }
3567
- async function lt() {
3567
+ async function ct() {
3568
3568
  if (!(!c(w) || c(p)))
3569
3569
  try {
3570
3570
  await c(w).startScreenRecording(), m(p, !0), m(
@@ -3580,13 +3580,13 @@ function ha(e, t) {
3580
3580
  if (!c(w) || !c(p)) return;
3581
3581
  m(p, !1);
3582
3582
  const v = await c(w).stopScreenRecording();
3583
- if (v && c(T)) {
3583
+ if (v && c(R)) {
3584
3584
  const b = `recording-${Date.now()}.webm`, C = await c(w).addBlobAttachment(v, b);
3585
- C && (m(x, [...c(x), C], !0), re("fortalece:attachment-added", C), re("fortalece:recording-complete", { dataUrl: C.dataUrl, size: C.size }));
3585
+ C && (m($, [...c($), C], !0), ne("fortalece:attachment-added", C), ne("fortalece:recording-complete", { dataUrl: C.dataUrl, size: C.size }));
3586
3586
  }
3587
3587
  }
3588
3588
  async function Lt() {
3589
- if (!c(w) || !c(T)) return;
3589
+ if (!c(w) || !c(R)) return;
3590
3590
  m(
3591
3591
  V,
3592
3592
  !1
@@ -3595,13 +3595,13 @@ function ha(e, t) {
3595
3595
  const v = await c(w).captureScreenshot();
3596
3596
  if (v) {
3597
3597
  const b = `screenshot-${Date.now()}.png`, C = await c(w).addBlobAttachment(v, b);
3598
- C && (m(x, [...c(x), C], !0), re("fortalece:attachment-added", C));
3598
+ C && (m($, [...c($), C], !0), ne("fortalece:attachment-added", C));
3599
3599
  }
3600
3600
  }
3601
- function Ot() {
3602
- c(w) && (c(w).clearAttachments(), c(w).clearConsoleErrors(), m(x, [], !0), m(J, [], !0));
3601
+ function Nt() {
3602
+ c(w) && (c(w).clearAttachments(), c(w).clearConsoleErrors(), m($, [], !0), m(X, [], !0));
3603
3603
  }
3604
- function fr(v) {
3604
+ function dr(v) {
3605
3605
  return v < 1024 ? `${v} B` : v < 1024 * 1024 ? `${(v / 1024).toFixed(1)} KB` : `${(v / (1024 * 1024)).toFixed(1)} MB`;
3606
3606
  }
3607
3607
  function xt(v) {
@@ -3614,7 +3614,7 @@ function ha(e, t) {
3614
3614
  return "🖼️";
3615
3615
  }
3616
3616
  }
3617
- var Nt = {
3617
+ var Pt = {
3618
3618
  get embedId() {
3619
3619
  return r();
3620
3620
  },
@@ -3663,173 +3663,173 @@ function ha(e, t) {
3663
3663
  set showHeader(v = "true") {
3664
3664
  f(v), K();
3665
3665
  }
3666
- }, y = ua();
3666
+ }, y = da();
3667
3667
  let L;
3668
- var ne = M(y);
3668
+ var se = I(y);
3669
3669
  {
3670
- var ke = (v) => {
3671
- var b = Ji(), C = O(M(b), 4);
3672
- C.__click = Dt, R(b), I(v, b);
3670
+ var Ee = (v) => {
3671
+ var b = Xi(), C = N(I(b), 4);
3672
+ C.__click = Dt, M(b), O(v, b);
3673
3673
  };
3674
- j(ne, (v) => {
3675
- c(p) && !c(u) && v(ke);
3674
+ H(se, (v) => {
3675
+ c(p) && !c(u) && v(Ee);
3676
3676
  });
3677
3677
  }
3678
- var Be = O(ne, 2);
3678
+ var Be = N(se, 2);
3679
3679
  {
3680
- var Je = (v) => {
3681
- var b = na(), C = M(b), X = O(M(C), 2);
3682
- X.__click = wt, R(C);
3683
- var Me = O(C, 2), U = M(Me);
3680
+ var Xe = (v) => {
3681
+ var b = sa(), C = I(b), Q = N(I(C), 2);
3682
+ Q.__click = yt, M(C);
3683
+ var Ie = N(C, 2), j = I(Ie);
3684
3684
  {
3685
- var fe = (Y) => {
3686
- var Q = Xi();
3687
- Q.__click = It, ee(() => Q.disabled = !c(T)), I(Y, Q);
3685
+ var ue = (J) => {
3686
+ var ee = Qi();
3687
+ ee.__click = Ot, te(() => ee.disabled = !c(R)), O(J, ee);
3688
3688
  };
3689
- j(U, (Y) => {
3690
- a() && Y(fe);
3689
+ H(j, (J) => {
3690
+ a() && J(ue);
3691
3691
  });
3692
3692
  }
3693
- var Ie = O(U, 2);
3693
+ var Oe = N(j, 2);
3694
3694
  {
3695
- var hr = (Y) => {
3696
- var Q = Qi(), Ee = On(Q);
3697
- Ee.__click = Lt;
3698
- var Xe = O(Ee, 2);
3699
- Xe.__click = lt, ee(() => {
3700
- Ee.disabled = !c(T), Xe.disabled = !c(T);
3701
- }), I(Y, Q);
3695
+ var vr = (J) => {
3696
+ var ee = ea(), Ce = Pn(ee);
3697
+ Ce.__click = Lt;
3698
+ var Qe = N(Ce, 2);
3699
+ Qe.__click = ct, te(() => {
3700
+ Ce.disabled = !c(R), Qe.disabled = !c(R);
3701
+ }), O(J, ee);
3702
3702
  };
3703
- j(Ie, (Y) => {
3704
- o() && Y(hr);
3703
+ H(Oe, (J) => {
3704
+ o() && J(vr);
3705
3705
  });
3706
3706
  }
3707
- R(Me);
3708
- var Zr = O(Me, 2);
3707
+ M(Ie);
3708
+ var Zr = N(Ie, 2);
3709
3709
  {
3710
- var ds = (Y) => {
3711
- var Q = ta(), Ee = M(Q), Xe = M(Ee), vs = M(Xe);
3712
- R(Xe), R(Ee);
3713
- var gs = O(Ee, 2);
3714
- Ai(gs, 17, () => c(x), (pr) => pr.id, (pr, Ft) => {
3715
- var vr = ea(), gr = M(vr), ms = M(gr, !0);
3716
- R(gr);
3717
- var mr = O(gr, 2), _r = M(mr), _s = M(_r, !0);
3718
- R(_r);
3719
- var Gr = O(_r, 2), bs = M(Gr, !0);
3720
- R(Gr), R(mr);
3721
- var ws = O(mr, 2);
3722
- ws.__click = () => cr(c(Ft).id), R(vr), ee(
3723
- (ys, xs) => {
3724
- He(ms, ys), He(_s, c(Ft).name), He(bs, xs);
3710
+ var hs = (J) => {
3711
+ var ee = ra(), Ce = I(ee), Qe = I(Ce), gs = I(Qe);
3712
+ M(Qe), M(Ce);
3713
+ var ms = N(Ce, 2);
3714
+ Ti(ms, 17, () => c($), (gr) => gr.id, (gr, Ut) => {
3715
+ var mr = ta(), _r = I(mr), _s = I(_r, !0);
3716
+ M(_r);
3717
+ var br = N(_r, 2), wr = I(br), bs = I(wr, !0);
3718
+ M(wr);
3719
+ var Xr = N(wr, 2), ws = I(Xr, !0);
3720
+ M(Xr), M(br);
3721
+ var ys = N(br, 2);
3722
+ ys.__click = () => ur(c(Ut).id), M(mr), te(
3723
+ ($s, xs) => {
3724
+ qe(_s, $s), qe(bs, c(Ut).name), qe(ws, xs);
3725
3725
  },
3726
3726
  [
3727
- () => xt(c(Ft).type),
3728
- () => fr(c(Ft).size)
3727
+ () => xt(c(Ut).type),
3728
+ () => dr(c(Ut).size)
3729
3729
  ]
3730
- ), I(pr, vr);
3731
- }), R(Q), ee(() => He(vs, `Attachments (${c(x).length ?? ""}/5)`)), I(Y, Q);
3730
+ ), O(gr, mr);
3731
+ }), M(ee), te(() => qe(gs, `Attachments (${c($).length ?? ""}/5)`)), O(J, ee);
3732
3732
  };
3733
- j(Zr, (Y) => {
3734
- c(x).length > 0 && Y(ds);
3733
+ H(Zr, (J) => {
3734
+ c($).length > 0 && J(hs);
3735
3735
  });
3736
3736
  }
3737
- var hs = O(Zr, 2);
3737
+ var ps = N(Zr, 2);
3738
3738
  {
3739
- var ps = (Y) => {
3740
- var Q = ra(), Ee = O(M(Q), 2), Xe = M(Ee);
3741
- R(Ee), R(Q), ee(() => He(Xe, `${c(J).length ?? ""} console error(s) captured`)), I(Y, Q);
3739
+ var vs = (J) => {
3740
+ var ee = na(), Ce = N(I(ee), 2), Qe = I(Ce);
3741
+ M(Ce), M(ee), te(() => qe(Qe, `${c(X).length ?? ""} console error(s) captured`)), O(J, ee);
3742
3742
  };
3743
- j(hs, (Y) => {
3744
- l() && c(J).length > 0 && Y(ps);
3743
+ H(ps, (J) => {
3744
+ l() && c(X).length > 0 && J(vs);
3745
3745
  });
3746
3746
  }
3747
- R(b), I(v, b);
3747
+ M(b), O(v, b);
3748
3748
  };
3749
- j(Be, (v) => {
3750
- c(V) && !c(p) && c(ot) && !c(u) && v(Je);
3749
+ H(Be, (v) => {
3750
+ c(V) && !c(p) && c(lt) && !c(u) && v(Xe);
3751
3751
  });
3752
3752
  }
3753
- var $t = O(Be, 2);
3753
+ var St = N(Be, 2);
3754
3754
  {
3755
- var ur = (v) => {
3756
- var b = aa();
3757
- b.__click = ge;
3758
- var C = M(b);
3755
+ var hr = (v) => {
3756
+ var b = oa();
3757
+ b.__click = me;
3758
+ var C = I(b);
3759
3759
  {
3760
- var X = (U) => {
3761
- var fe = sa();
3762
- I(U, fe);
3763
- }, Me = (U) => {
3764
- var fe = ia();
3765
- I(U, fe);
3760
+ var Q = (j) => {
3761
+ var ue = ia();
3762
+ O(j, ue);
3763
+ }, Ie = (j) => {
3764
+ var ue = aa();
3765
+ O(j, ue);
3766
3766
  };
3767
- j(C, (U) => {
3768
- c(g) ? U(X) : U(Me, !1);
3767
+ H(C, (j) => {
3768
+ c(g) ? j(Q) : j(Ie, !1);
3769
3769
  });
3770
3770
  }
3771
- R(b), ee(() => Jt(b, "aria-label", c(g) ? "Close feedback" : "Send feedback")), I(v, b);
3771
+ M(b), te(() => Xt(b, "aria-label", c(g) ? "Close feedback" : "Send feedback")), O(v, b);
3772
3772
  };
3773
- j($t, (v) => {
3774
- c(u) || v(ur);
3773
+ H(St, (v) => {
3774
+ c(u) || v(hr);
3775
3775
  });
3776
3776
  }
3777
- var Pt = O($t, 2);
3777
+ var Ft = N(St, 2);
3778
3778
  {
3779
- var dr = (v) => {
3780
- var b = la();
3779
+ var pr = (v) => {
3780
+ var b = ca();
3781
3781
  let C;
3782
- b.__click = wt;
3783
- var X = M(b);
3782
+ b.__click = yt;
3783
+ var Q = I(b);
3784
3784
  {
3785
- var Me = (U) => {
3786
- var fe = oa(), Ie = M(fe, !0);
3787
- R(fe), ee(() => He(Ie, c(x).length)), I(U, fe);
3785
+ var Ie = (j) => {
3786
+ var ue = la(), Oe = I(ue, !0);
3787
+ M(ue), te(() => qe(Oe, c($).length)), O(j, ue);
3788
3788
  };
3789
- j(X, (U) => {
3790
- c(x).length > 0 && U(Me);
3789
+ H(Q, (j) => {
3790
+ c($).length > 0 && j(Ie);
3791
3791
  });
3792
3792
  }
3793
- Or(2), R(b), ee(() => C = ut(b, 1, "capture-toggle-btn svelte-p7nz7", null, C, { "has-items": c(x).length > 0 })), I(v, b);
3793
+ Pr(2), M(b), te(() => C = dt(b, 1, "capture-toggle-btn svelte-p7nz7", null, C, { "has-items": c($).length > 0 })), O(v, b);
3794
3794
  };
3795
- j(Pt, (v) => {
3796
- !c(u) && c(g) && c(ot) && !c(p) && v(dr);
3795
+ H(Ft, (v) => {
3796
+ !c(u) && c(g) && c(lt) && !c(p) && v(pr);
3797
3797
  });
3798
3798
  }
3799
- var St = O(Pt, 2);
3800
- St.__change = lr, Mr(St, (v) => m(z, v), () => c(z));
3801
- var ce = O(St, 2);
3799
+ var kt = N(Ft, 2);
3800
+ kt.__change = fr, Or(kt, (v) => m(z, v), () => c(z));
3801
+ var fe = N(kt, 2);
3802
3802
  {
3803
- var Re = (v) => {
3804
- var b = fa();
3803
+ var Me = (v) => {
3804
+ var b = ua();
3805
3805
  let C;
3806
- var X = M(b);
3806
+ var Q = I(b);
3807
3807
  {
3808
- var Me = (Ie) => {
3809
- var hr = ca();
3810
- I(Ie, hr);
3808
+ var Ie = (Oe) => {
3809
+ var vr = fa();
3810
+ O(Oe, vr);
3811
3811
  };
3812
- j(X, (Ie) => {
3813
- c(h) || Ie(Me);
3812
+ H(Q, (Oe) => {
3813
+ c(h) || Oe(Ie);
3814
3814
  });
3815
3815
  }
3816
- var U = O(X, 2);
3817
- let fe;
3818
- Mr(U, (Ie) => m(_, Ie), () => c(_)), R(b), ee(() => {
3819
- C = ut(b, 1, "panel-window svelte-p7nz7", null, C, { inline: c(u) }), Jt(U, "src", c(Te)), fe = ut(U, 1, "svelte-p7nz7", null, fe, { hidden: !c(h) });
3820
- }), I(v, b);
3816
+ var j = N(Q, 2);
3817
+ let ue;
3818
+ Or(j, (Oe) => m(_, Oe), () => c(_)), M(b), te(() => {
3819
+ C = dt(b, 1, "panel-window svelte-p7nz7", null, C, { inline: c(u) }), Xt(j, "src", c(Re)), ue = dt(j, 1, "svelte-p7nz7", null, ue, { hidden: !c(h) });
3820
+ }), O(v, b);
3821
3821
  };
3822
- j(ce, (v) => {
3823
- c(g) && v(Re);
3822
+ H(fe, (v) => {
3823
+ c(g) && v(Me);
3824
3824
  });
3825
3825
  }
3826
- return R(y), ee(() => {
3827
- L = ut(y, 1, "feedback-panel svelte-p7nz7", null, L, { inline: c(u) }), Rr(y, c(u) ? "" : c(Se));
3828
- }), I(e, y), Pr(Nt);
3826
+ return M(y), te(() => {
3827
+ L = dt(y, 1, "feedback-panel svelte-p7nz7", null, L, { inline: c(u) }), Ir(y, c(u) ? "" : c(ke));
3828
+ }), O(e, y), Ur(Pt);
3829
3829
  }
3830
- rs(["click", "change"]);
3831
- customElements.define("feedback-panel", cs(
3832
- ha,
3830
+ ss(["click", "change"]);
3831
+ customElements.define("feedback-panel", us(
3832
+ pa,
3833
3833
  {
3834
3834
  embedId: { attribute: "embed-id", reflect: !0 },
3835
3835
  embedUrl: { attribute: "embed-url", reflect: !0 },
@@ -3856,18 +3856,36 @@ customElements.define("feedback-panel", cs(
3856
3856
  [],
3857
3857
  { mode: "open" }
3858
3858
  ));
3859
- const Kr = "https://api.fortalece.ai";
3860
- function Yr() {
3859
+ const cr = "https://api.fortalece.ai";
3860
+ function Jr() {
3861
3861
  return `msg_${Date.now()}_${Math.random().toString(36).substring(2, 9)}`;
3862
3862
  }
3863
- function us(e) {
3863
+ function Yr(e) {
3864
3864
  const t = {
3865
3865
  "Content-Type": "application/json"
3866
3866
  };
3867
3867
  return e.apiKey && (t.Authorization = `Bearer ${e.apiKey}`), e.projectId && (t["X-Project-ID"] = e.projectId), t;
3868
3868
  }
3869
- async function va(e, t, r) {
3870
- const n = e.apiUrl || Kr, s = {
3869
+ async function T(e, t, r) {
3870
+ const n = e.apiUrl || cr;
3871
+ try {
3872
+ const s = await fetch(`${n}${t}`, {
3873
+ ...r,
3874
+ headers: {
3875
+ ...Yr(e),
3876
+ ...r?.headers || {}
3877
+ }
3878
+ }), i = await s.json().catch(() => ({}));
3879
+ return s.ok ? { success: !0, data: i } : { success: !1, error: typeof i.error == "string" ? i.error : `Request failed with status ${s.status}` };
3880
+ } catch (s) {
3881
+ return {
3882
+ success: !1,
3883
+ error: s instanceof Error ? s.message : "Unknown error occurred"
3884
+ };
3885
+ }
3886
+ }
3887
+ async function ga(e, t, r) {
3888
+ const n = e.apiUrl || cr, s = {
3871
3889
  projectId: e.projectId,
3872
3890
  message: t,
3873
3891
  conversationId: r
@@ -3875,7 +3893,7 @@ async function va(e, t, r) {
3875
3893
  try {
3876
3894
  const i = await fetch(`${n}/api/chat/message`, {
3877
3895
  method: "POST",
3878
- headers: us(e),
3896
+ headers: Yr(e),
3879
3897
  body: JSON.stringify(s)
3880
3898
  });
3881
3899
  if (!i.ok)
@@ -3887,7 +3905,7 @@ async function va(e, t, r) {
3887
3905
  return {
3888
3906
  success: !0,
3889
3907
  message: {
3890
- id: a.id || Yr(),
3908
+ id: a.id || Jr(),
3891
3909
  role: "assistant",
3892
3910
  content: a.message || a.content || "",
3893
3911
  timestamp: new Date(a.timestamp || Date.now()),
@@ -3902,31 +3920,31 @@ async function va(e, t, r) {
3902
3920
  };
3903
3921
  }
3904
3922
  }
3905
- function ga(e) {
3923
+ function ma(e) {
3906
3924
  return {
3907
- id: Yr(),
3925
+ id: Jr(),
3908
3926
  role: "user",
3909
3927
  content: e,
3910
3928
  timestamp: /* @__PURE__ */ new Date()
3911
3929
  };
3912
3930
  }
3913
- function ma(e) {
3931
+ function _a(e) {
3914
3932
  return {
3915
- id: Yr(),
3933
+ id: Jr(),
3916
3934
  role: "system",
3917
3935
  content: e,
3918
3936
  timestamp: /* @__PURE__ */ new Date()
3919
3937
  };
3920
3938
  }
3921
- async function _a(e, t) {
3922
- const r = e.apiUrl || Kr, n = {
3939
+ async function ba(e, t) {
3940
+ const r = e.apiUrl || cr, n = {
3923
3941
  ...t,
3924
3942
  projectId: e.projectId
3925
3943
  };
3926
3944
  try {
3927
3945
  const s = await fetch(`${r}/api/feedback`, {
3928
3946
  method: "POST",
3929
- headers: us(e),
3947
+ headers: Yr(e),
3930
3948
  body: JSON.stringify(n)
3931
3949
  });
3932
3950
  if (!s.ok)
@@ -3946,24 +3964,157 @@ async function _a(e, t) {
3946
3964
  };
3947
3965
  }
3948
3966
  }
3949
- function ba(e, t) {
3967
+ async function wa(e) {
3968
+ return T(e, "/api/admin/feedback", { method: "GET" });
3969
+ }
3970
+ async function ya(e, t) {
3971
+ return T(e, `/api/admin/feedback/${t}`, { method: "GET" });
3972
+ }
3973
+ async function $a(e, t, r) {
3974
+ return T(e, `/api/admin/feedback/${t}`, {
3975
+ method: "PUT",
3976
+ body: JSON.stringify(r)
3977
+ });
3978
+ }
3979
+ async function xa(e, t) {
3980
+ return T(e, `/api/admin/feedback/${t}/archive`, { method: "POST" });
3981
+ }
3982
+ async function Sa(e, t) {
3983
+ return T(e, `/api/admin/feedback/${t}/reanalyze`, { method: "POST" });
3984
+ }
3985
+ async function ka(e, t) {
3986
+ return T(e, `/api/admin/feedback/${t}/work-item`, { method: "POST" });
3987
+ }
3988
+ async function Ea(e, t) {
3989
+ return T(e, `/api/admin/feedback/${t}/create-and-assign`, { method: "POST" });
3990
+ }
3991
+ async function Ca(e) {
3992
+ return T(e, "/api/admin/work-items", { method: "GET" });
3993
+ }
3994
+ async function Aa(e, t) {
3995
+ return T(e, "/api/admin/work-items", {
3996
+ method: "POST",
3997
+ body: JSON.stringify(t)
3998
+ });
3999
+ }
4000
+ async function Ta(e, t) {
4001
+ return T(e, `/api/admin/work-items/${t}`, { method: "GET" });
4002
+ }
4003
+ async function za(e, t, r) {
4004
+ return T(e, `/api/admin/work-items/${t}`, {
4005
+ method: "PUT",
4006
+ body: JSON.stringify(r)
4007
+ });
4008
+ }
4009
+ async function Ra(e, t) {
4010
+ return T(e, `/api/admin/work-items/${t}`, { method: "DELETE" });
4011
+ }
4012
+ async function Ma(e, t) {
4013
+ return T(e, `/api/admin/work-items/${t}/reanalyze`, { method: "POST" });
4014
+ }
4015
+ async function Ia(e, t) {
4016
+ return T(e, `/api/admin/work-items/${t}/deployment`, { method: "GET" });
4017
+ }
4018
+ async function Oa(e, t) {
4019
+ return T(e, `/api/admin/work-items/${t}/environments`, { method: "GET" });
4020
+ }
4021
+ async function Da(e, t) {
4022
+ return T(e, `/api/admin/work-items/${t}/deployment/merge`, { method: "POST" });
4023
+ }
4024
+ async function La(e, t, r) {
4025
+ return T(e, `/api/issues/${t}/assign-agent`, {
4026
+ method: "POST",
4027
+ body: JSON.stringify(r)
4028
+ });
4029
+ }
4030
+ async function Na(e, t) {
4031
+ return T(e, `/api/issues/${t}/agent`, { method: "GET" });
4032
+ }
4033
+ async function Pa(e, t, r) {
4034
+ return T(e, `/api/agents/${t}/followup`, {
4035
+ method: "POST",
4036
+ body: JSON.stringify(r)
4037
+ });
4038
+ }
4039
+ async function Fa(e) {
4040
+ return T(e, "/api/admin/story-map", { method: "GET" });
4041
+ }
4042
+ async function Ua(e, t) {
4043
+ return T(e, `/api/admin/story-map/${t}`, { method: "GET" });
4044
+ }
4045
+ async function ja(e, t, r) {
4046
+ return T(e, `/api/admin/story-map/${t}`, {
4047
+ method: "POST",
4048
+ body: JSON.stringify(r)
4049
+ });
4050
+ }
4051
+ async function Ba(e, t, r, n) {
4052
+ return T(e, `/api/admin/story-map/${t}/${r}`, {
4053
+ method: "PUT",
4054
+ body: JSON.stringify(n)
4055
+ });
4056
+ }
4057
+ async function Ha(e, t, r) {
4058
+ return T(e, `/api/admin/story-map/${t}/${r}`, { method: "DELETE" });
4059
+ }
4060
+ async function qa(e) {
4061
+ return T(e, "/api/projects", { method: "GET" });
4062
+ }
4063
+ async function Wa(e, t) {
4064
+ return T(e, `/api/projects/${t}`, { method: "GET" });
4065
+ }
4066
+ async function Va(e) {
4067
+ return T(e, "/api/admin/queue", { method: "GET" });
4068
+ }
4069
+ async function Ga(e, t) {
4070
+ return T(e, `/api/admin/queue/${t}/cancel`, { method: "POST" });
4071
+ }
4072
+ function Ka(e, t) {
3950
4073
  return {
3951
4074
  projectId: e,
3952
- apiUrl: t?.apiUrl || Kr,
4075
+ apiUrl: t?.apiUrl || cr,
3953
4076
  apiKey: t?.apiKey
3954
4077
  };
3955
4078
  }
3956
- const wa = "0.2.0";
4079
+ const Ja = "0.2.0";
3957
4080
  export {
3958
4081
  Bi as ContextCaptureService,
3959
- Kr as DEFAULT_API_URL,
3960
- ha as FeedbackPanel,
3961
- Gi as SupportChat,
3962
- wa as VERSION,
3963
- ba as createApiConfig,
3964
- ma as createSystemMessage,
3965
- ga as createUserMessage,
3966
- fs as getContextCaptureService,
3967
- va as sendMessage,
3968
- _a as submitFeedback
4082
+ cr as DEFAULT_API_URL,
4083
+ pa as FeedbackPanel,
4084
+ Zi as SupportChat,
4085
+ Ja as VERSION,
4086
+ xa as archiveFeedback,
4087
+ La as assignToAI,
4088
+ Ga as cancelQueueItem,
4089
+ Ea as createAndAssignFromFeedback,
4090
+ Ka as createApiConfig,
4091
+ ja as createStoryMapEntity,
4092
+ _a as createSystemMessage,
4093
+ ma as createUserMessage,
4094
+ Aa as createWorkItem,
4095
+ ka as createWorkItemFromFeedback,
4096
+ Ha as deleteStoryMapEntity,
4097
+ Ra as deleteWorkItem,
4098
+ Na as getAgentInfo,
4099
+ ds as getContextCaptureService,
4100
+ Ia as getDeployment,
4101
+ Oa as getEnvironments,
4102
+ ya as getFeedback,
4103
+ Wa as getProject,
4104
+ Fa as getStoryMap,
4105
+ Ta as getWorkItem,
4106
+ wa as listFeedback,
4107
+ qa as listProjects,
4108
+ Va as listQueue,
4109
+ Ua as listStoryMapEntities,
4110
+ Ca as listWorkItems,
4111
+ Da as mergePR,
4112
+ Sa as reanalyzeFeedback,
4113
+ Ma as reanalyzeWorkItem,
4114
+ Pa as sendFollowUp,
4115
+ ga as sendMessage,
4116
+ ba as submitFeedback,
4117
+ $a as updateFeedback,
4118
+ Ba as updateStoryMapEntity,
4119
+ za as updateWorkItem
3969
4120
  };