@mdsvex/typescript-plugin 0.1.0-next.4 → 0.1.0

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.
Files changed (2) hide show
  1. package/lib/index.cjs +549 -540
  2. package/package.json +2 -2
package/lib/index.cjs CHANGED
@@ -15130,23 +15130,23 @@ let Mi$2 = class Mi extends Error {
15130
15130
  }
15131
15131
  };
15132
15132
  const _h = "mdsvex's built-in parser handles common YAML. For anything else pass a parser, for example frontmatter: { parse: (raw) => yaml.parse(raw) }";
15133
- function Ih$1(u2, t2, s2, e2) {
15134
- const i2 = u2.slice(t2, s2);
15133
+ function Ih$1(u2, t2, s2, e2, i2) {
15134
+ const n2 = u2.slice(t2, s2);
15135
15135
  if (e2 === void 0)
15136
15136
  try {
15137
- return Zr$2(i2);
15138
- } catch (r3) {
15139
- if (!(r3 instanceof rn$3))
15140
- throw r3;
15141
- const h2 = r3.line + hn$3(u2, t2);
15142
- throw new Mi$2(`Unsupported frontmatter at line ${h2}: ${r3.reason}. ${_h}`, h2, r3.column);
15137
+ return Zr$2(n2);
15138
+ } catch (h2) {
15139
+ if (!(h2 instanceof rn$3))
15140
+ throw h2;
15141
+ const o2 = h2.line + hn$3(u2, t2);
15142
+ throw new Mi$2(`Unsupported frontmatter at line ${o2}: ${h2.reason}. ${_h}`, o2, h2.column);
15143
15143
  }
15144
- const n2 = e2(i2);
15145
- if (n2 == null)
15144
+ const r3 = e2(n2, { filename: i2 });
15145
+ if (r3 == null)
15146
15146
  return {};
15147
- if (typeof n2 != "object" || Array.isArray(n2))
15148
- throw new Mi$2(`frontmatter.parse must return an object of metadata, it returned ${Array.isArray(n2) ? "an array" : typeof n2}`, 1, 1);
15149
- return n2;
15147
+ if (typeof r3 != "object" || Array.isArray(r3))
15148
+ throw new Mi$2(`frontmatter.parse must return an object of metadata, it returned ${Array.isArray(r3) ? "an array" : typeof r3}`, 1, 1);
15149
+ return r3;
15150
15150
  }
15151
15151
  function Uh$1(u2, t2, s2, e2) {
15152
15152
  const n2 = new RegExp(`^["']?${e2}["']?[ \\t]*[:=]`, "m").exec(u2.slice(t2, s2));
@@ -15876,17 +15876,17 @@ function Jc(e2) {
15876
15876
  }
15877
15877
  const a2 = o2.data.role;
15878
15878
  if (a2 === "open_syntax" || a2 === "close_syntax") continue;
15879
- const c2 = o2.sourceOffsets, u2 = o2.generatedOffsets, f2 = c2.length;
15880
- if (s2 + f2 > t2.length && (gr$1(s2, s2 + f2), t2 = ce$6, n2 = ze$5, r3 = Je$2), a2 === "node")
15881
- f2 > 0 && (t2[s2] = u2[0], n2[s2] = c2[0], r3[s2] = 1, s2++);
15879
+ const c2 = o2.sourceOffsets, f2 = o2.generatedOffsets, u2 = c2.length;
15880
+ if (s2 + u2 > t2.length && (gr$1(s2, s2 + u2), t2 = ce$6, n2 = ze$5, r3 = Je$2), a2 === "node")
15881
+ u2 > 0 && (t2[s2] = f2[0], n2[s2] = c2[0], r3[s2] = 1, s2++);
15882
15882
  else if (o2.generatedLengths)
15883
- for (let h2 = 0; h2 < f2; h2++)
15884
- t2[s2] = u2[h2], n2[s2] = c2[h2], r3[s2] = 1, s2++;
15883
+ for (let h2 = 0; h2 < u2; h2++)
15884
+ t2[s2] = f2[h2], n2[s2] = c2[h2], r3[s2] = 1, s2++;
15885
15885
  else {
15886
15886
  const h2 = o2.lengths;
15887
- for (let p2 = 0; p2 < f2; p2++) {
15887
+ for (let p2 = 0; p2 < u2; p2++) {
15888
15888
  const _2 = h2[p2];
15889
- _2 > 0 && (t2[s2] = u2[p2], n2[s2] = c2[p2], r3[s2] = _2, s2++);
15889
+ _2 > 0 && (t2[s2] = f2[p2], n2[s2] = c2[p2], r3[s2] = _2, s2++);
15890
15890
  }
15891
15891
  }
15892
15892
  }
@@ -15899,9 +15899,9 @@ function Wc(e2) {
15899
15899
  if (r3._arrays === null) {
15900
15900
  const l2 = r3._key & 3;
15901
15901
  if (l2 === 2 || l2 === 3) continue;
15902
- const a2 = r3._generated, c2 = r3._source, u2 = r3._length;
15903
- if (l2 === 1 && r3._generated_length === u2)
15904
- for (let f2 = 0; f2 < u2; f2++) Oe$6(a2 + f2, c2 + f2, 1);
15902
+ const a2 = r3._generated, c2 = r3._source, f2 = r3._length;
15903
+ if (l2 === 1 && r3._generated_length === f2)
15904
+ for (let u2 = 0; u2 < f2; u2++) Oe$6(a2 + u2, c2 + u2, 1);
15905
15905
  else
15906
15906
  Oe$6(a2, c2, 1);
15907
15907
  continue;
@@ -16041,7 +16041,7 @@ function ou(e2, t2, n2, r3) {
16041
16041
  }
16042
16042
  function zl() {
16043
16043
  const e2 = me$7, t2 = ce$6, n2 = ze$5, r3 = Je$2, s2 = Ut$3, i2 = Ce$5.starts, o2 = Ce$5.count, l2 = se$6.starts, a2 = se$6.count;
16044
- let c2 = ke$7, u2 = mr$1, f2 = 0, h2 = 0, p2 = 0, _2 = 0, m2 = 0, g2 = 0, v3 = 0, x2 = false;
16044
+ let c2 = ke$7, f2 = mr$1, u2 = 0, h2 = 0, p2 = 0, _2 = 0, m2 = 0, g2 = 0, v3 = 0, x2 = false;
16045
16045
  for (let $2 = 0; $2 < e2; $2++) {
16046
16046
  const b2 = s2[$2];
16047
16047
  let y2 = t2[b2], C3 = n2[b2], k2 = r3[b2];
@@ -16053,24 +16053,24 @@ function zl() {
16053
16053
  W2 < R2 && (R2 = W2);
16054
16054
  const D2 = l2[v3 + 1] - C3;
16055
16055
  D2 < R2 && (R2 = D2);
16056
- const z2 = f2 + (g2 - m2) + 24 + 5 * R2;
16057
- if (z2 > c2.length && (Qc(f2, z2), c2 = ke$7, u2 = mr$1), m2 < g2) {
16056
+ const z2 = u2 + (g2 - m2) + 24 + 5 * R2;
16057
+ if (z2 > c2.length && (Qc(u2, z2), c2 = ke$7, f2 = mr$1), m2 < g2) {
16058
16058
  do
16059
- c2[f2++] = pt$2;
16059
+ c2[u2++] = pt$2;
16060
16060
  while (++m2 < g2);
16061
16061
  h2 = 0;
16062
- } else x2 && (c2[f2++] = Ye$4);
16063
- x2 = true, f2 = ds(c2, f2, w2 - h2), c2[f2++] = lr$1, f2 = ds(c2, f2, v3 - p2), f2 = ds(c2, f2, O2 - _2);
16062
+ } else x2 && (c2[u2++] = Ye$4);
16063
+ x2 = true, u2 = ds(c2, u2, w2 - h2), c2[u2++] = lr$1, u2 = ds(c2, u2, v3 - p2), u2 = ds(c2, u2, O2 - _2);
16064
16064
  let V3 = R2 - 1;
16065
16065
  for (; V3 >= 4; )
16066
- u2.setUint32(f2, eu, true), u2.setUint32(f2 + 4, tu, true), u2.setUint32(f2 + 8, nu, true), u2.setUint32(f2 + 12, ru, true), u2.setUint32(f2 + 16, su, true), f2 += 20, V3 -= 4;
16066
+ f2.setUint32(u2, eu, true), f2.setUint32(u2 + 4, tu, true), f2.setUint32(u2 + 8, nu, true), f2.setUint32(u2 + 12, ru, true), f2.setUint32(u2 + 16, su, true), u2 += 20, V3 -= 4;
16067
16067
  for (; V3 > 0; V3--)
16068
- c2[f2] = Ye$4, c2[f2 + 1] = Ao, c2[f2 + 2] = lr$1, c2[f2 + 3] = lr$1, c2[f2 + 4] = Ao, f2 += 5;
16068
+ c2[u2] = Ye$4, c2[u2 + 1] = Ao, c2[u2 + 2] = lr$1, c2[u2 + 3] = lr$1, c2[u2 + 4] = Ao, u2 += 5;
16069
16069
  if (h2 = w2 + R2 - 1, p2 = v3, _2 = O2 + R2 - 1, k2 -= R2, k2 === 0) break;
16070
16070
  y2 += R2, C3 += R2;
16071
16071
  }
16072
16072
  }
16073
- return Kc.decode(c2.subarray(0, f2));
16073
+ return Kc.decode(c2.subarray(0, u2));
16074
16074
  }
16075
16075
  const jl = 32768, lu = 8192;
16076
16076
  let Et$1 = new Uint32Array(0), en$2 = 0;
@@ -16173,8 +16173,8 @@ let Ns$1 = class Ns {
16173
16173
  if (a2 !== null && this.id_to_index === null && t2 === l2._size) {
16174
16174
  let c2 = s2 === -1 ? Pe$6 : s2;
16175
16175
  if (a2.has_handlers(n2)) {
16176
- const u2 = l2.push_node(n2, r3, c2, i2, o2);
16177
- a2.dispatch_open(u2, n2, l2), this.refresh(a2), l2._size !== u2 + 1 && this.pushed();
16176
+ const f2 = l2.push_node(n2, r3, c2, i2, o2);
16177
+ a2.dispatch_open(f2, n2, l2), this.refresh(a2), l2._size !== f2 + 1 && this.pushed();
16178
16178
  return;
16179
16179
  }
16180
16180
  c2 !== Pe$6 && (c2 = a2.resolve(c2)), l2.push_node(n2, r3, c2, i2, o2);
@@ -16185,16 +16185,16 @@ let Ns$1 = class Ns {
16185
16185
  /** an open once a plugin pushed nodes without ids or ids skipped a slot */
16186
16186
  open_mapped(t2, n2, r3, s2, i2, o2) {
16187
16187
  const l2 = this.nodes, a2 = this.dispatcher, c2 = this.id_to_index ?? this.start_id_map();
16188
- let u2 = s2 === -1 ? Pe$6 : c2[s2] ?? Pe$6;
16188
+ let f2 = s2 === -1 ? Pe$6 : c2[s2] ?? Pe$6;
16189
16189
  if (a2 !== null) {
16190
16190
  if (a2.has_handlers(n2)) {
16191
- const f2 = l2.push_node(n2, r3, u2, i2, o2);
16192
- c2[t2] = f2, a2.dispatch_open(f2, n2, l2), this.refresh(a2);
16191
+ const u2 = l2.push_node(n2, r3, f2, i2, o2);
16192
+ c2[t2] = u2, a2.dispatch_open(u2, n2, l2), this.refresh(a2);
16193
16193
  return;
16194
16194
  }
16195
- u2 !== Pe$6 && (u2 = a2.resolve(u2));
16195
+ f2 !== Pe$6 && (f2 = a2.resolve(f2));
16196
16196
  }
16197
- c2[t2] = l2.push_node(n2, r3, u2, i2, o2);
16197
+ c2[t2] = l2.push_node(n2, r3, f2, i2, o2);
16198
16198
  }
16199
16199
  close(t2, n2, r3) {
16200
16200
  const s2 = this.index_of(t2);
@@ -16424,28 +16424,28 @@ let Os$1 = class Os {
16424
16424
  /* NodeField.stride */
16425
16425
  ] & 255;
16426
16426
  }
16427
- /** byte offset where the current node starts in source. */
16427
+ /** offset where the current node starts in source */
16428
16428
  get start() {
16429
16429
  return this.n[
16430
16430
  this.b + 1
16431
16431
  /* NodeField.start */
16432
16432
  ];
16433
16433
  }
16434
- /** byte offset where the current node ends in source. */
16434
+ /** offset where the current node ends in source */
16435
16435
  get end() {
16436
16436
  return this.n[
16437
16437
  this.b + 2
16438
16438
  /* NodeField.end */
16439
16439
  ];
16440
16440
  }
16441
- /** byte offset where the current node's value content starts. */
16441
+ /** offset where the value content of the current node starts */
16442
16442
  get value_start() {
16443
16443
  return this.n[
16444
16444
  this.b + 3
16445
16445
  /* NodeField.value_start */
16446
16446
  ];
16447
16447
  }
16448
- /** byte offset where the current node's value content ends. */
16448
+ /** offset where the value content of the current node ends */
16449
16449
  get value_end() {
16450
16450
  return this.n[
16451
16451
  this.b + 4
@@ -16486,7 +16486,7 @@ let Os$1 = class Os {
16486
16486
  ];
16487
16487
  return t2 === 0 ? void 0 : this.buf._meta[t2 - 1];
16488
16488
  }
16489
- /** slice the source string by byte offsets. for resolving metadata offset pairs. */
16489
+ /** slice the source by offsets, for metadata offset pairs */
16490
16490
  slice(t2, n2) {
16491
16491
  return this.src.slice(t2, n2);
16492
16492
  }
@@ -16719,8 +16719,8 @@ let dn$2 = class dn {
16719
16719
  for (let i2 = 0; i2 < t2.length; i2++) {
16720
16720
  const { specifier: o2, names: l2 } = t2[i2], a2 = t2[i2].static;
16721
16721
  for (let c2 = 0; c2 < l2.length; c2++) {
16722
- const u2 = l2[c2], f2 = this.own.get(u2), h2 = f2 ? f2.local : this.local_for(u2, n2);
16723
- a2 !== void 0 && a2.includes(u2) ? (this.own.set(u2, { name: u2, specifier: o2, local: h2, static: true }), s2 = true) : this.own.set(u2, { name: u2, specifier: o2, local: h2 });
16722
+ const f2 = l2[c2], u2 = this.own.get(f2), h2 = u2 ? u2.local : this.local_for(f2, n2);
16723
+ a2 !== void 0 && a2.includes(f2) ? (this.own.set(f2, { name: f2, specifier: o2, local: h2, static: true }), s2 = true) : this.own.set(f2, { name: f2, specifier: o2, local: h2 });
16724
16724
  }
16725
16725
  }
16726
16726
  this.size = this.own.size + (r3 === null ? 0 : r3.size), this.has_static = s2;
@@ -17171,26 +17171,26 @@ function B$i(e2, t2, n2, r3, s2, i2, o2) {
17171
17171
  }
17172
17172
  }
17173
17173
  function de$6(e2, t2, n2, r3, s2, i2, o2) {
17174
- const l2 = i2.start, a2 = i2.value_start, c2 = i2.value_end, u2 = c2 > a2, f2 = i2.end, h2 = u2 ? c2 : f2;
17174
+ const l2 = i2.start, a2 = i2.value_start, c2 = i2.value_end, f2 = c2 > a2, u2 = i2.end, h2 = f2 ? c2 : u2;
17175
17175
  if (l2 === 4294967295 || h2 === 4294967295 || !e2.syntax) {
17176
17176
  Wu(e2, t2, n2, r3, s2, i2, o2);
17177
17177
  return;
17178
17178
  }
17179
- const p2 = i2.index, _2 = u2 ? a2 : l2;
17179
+ const p2 = i2.index, _2 = f2 ? a2 : l2;
17180
17180
  let m2 = e2.rec;
17181
17181
  const g2 = e2.n;
17182
- g2 + 18 > m2.length && (m2 = e2.grow()), m2[g2] = t2, m2[g2 + 1] = s2 - t2, m2[g2 + 2] = l2, m2[g2 + 3] = f2 > l2 ? f2 - l2 : 0, m2[g2 + 4] = p2, m2[g2 + 5] = o2 << 2, m2[g2 + 6] = t2, m2[g2 + 7] = n2 - t2, m2[g2 + 8] = l2, m2[g2 + 9] = _2 > l2 ? _2 - l2 : 0, m2[g2 + 10] = p2, m2[g2 + 11] = 14, m2[g2 + 12] = r3, m2[g2 + 13] = s2 - r3, m2[g2 + 14] = h2, m2[g2 + 15] = f2 > h2 ? f2 - h2 : 0, m2[g2 + 16] = p2, m2[g2 + 17] = 15, e2.n = g2 + 18;
17182
+ g2 + 18 > m2.length && (m2 = e2.grow()), m2[g2] = t2, m2[g2 + 1] = s2 - t2, m2[g2 + 2] = l2, m2[g2 + 3] = u2 > l2 ? u2 - l2 : 0, m2[g2 + 4] = p2, m2[g2 + 5] = o2 << 2, m2[g2 + 6] = t2, m2[g2 + 7] = n2 - t2, m2[g2 + 8] = l2, m2[g2 + 9] = _2 > l2 ? _2 - l2 : 0, m2[g2 + 10] = p2, m2[g2 + 11] = 14, m2[g2 + 12] = r3, m2[g2 + 13] = s2 - r3, m2[g2 + 14] = h2, m2[g2 + 15] = u2 > h2 ? u2 - h2 : 0, m2[g2 + 16] = p2, m2[g2 + 17] = 15, e2.n = g2 + 18;
17183
17183
  }
17184
17184
  function Wu(e2, t2, n2, r3, s2, i2, o2) {
17185
17185
  const l2 = i2.index, a2 = i2.start, c2 = i2.end;
17186
17186
  if (c2 === 4294967295 || (B$i(e2, t2, s2, a2, c2, l2, o2 << 2), !e2.syntax)) return;
17187
- const u2 = i2.value_start, f2 = i2.value_end, h2 = f2 > u2;
17187
+ const f2 = i2.value_start, u2 = i2.value_end, h2 = u2 > f2;
17188
17188
  B$i(
17189
17189
  e2,
17190
17190
  t2,
17191
17191
  n2,
17192
17192
  a2,
17193
- h2 ? u2 : a2,
17193
+ h2 ? f2 : a2,
17194
17194
  l2,
17195
17195
  14
17196
17196
  /* STRUCTURE_OPEN */
@@ -17198,7 +17198,7 @@ function Wu(e2, t2, n2, r3, s2, i2, o2) {
17198
17198
  e2,
17199
17199
  r3,
17200
17200
  s2,
17201
- h2 ? f2 : c2,
17201
+ h2 ? u2 : c2,
17202
17202
  c2,
17203
17203
  l2,
17204
17204
  15
@@ -17440,11 +17440,11 @@ function Vr$1(e2, t2, n2) {
17440
17440
  /* value_end */
17441
17441
  ], c2 = e2.prebuilt_at(i2) ?? e2.slice(l2, a2);
17442
17442
  if (t2 !== void 0) {
17443
- const u2 = d$7.length;
17444
- n2 ? fe$6(t2, u2, u2 + c2.length, l2, a2) : l2 !== 4294967295 && a2 > l2 && B$i(
17443
+ const f2 = d$7.length;
17444
+ n2 ? fe$6(t2, f2, f2 + c2.length, l2, a2) : l2 !== 4294967295 && a2 > l2 && B$i(
17445
17445
  t2,
17446
- u2,
17447
- u2 + c2.length,
17446
+ f2,
17447
+ f2 + c2.length,
17448
17448
  l2,
17449
17449
  a2,
17450
17450
  i2,
@@ -17531,28 +17531,28 @@ function rf(e2, t2, n2, r3, s2) {
17531
17531
  if (i2 === void 0 || Z$c !== null && Z$c.has(e2.index) || Ir$1(e2))
17532
17532
  return false;
17533
17533
  const o2 = e2.source, l2 = e2.value_end;
17534
- let a2 = e2.value_start, c2 = 0, u2 = 0;
17534
+ let a2 = e2.value_start, c2 = 0, f2 = 0;
17535
17535
  for (; ; ) {
17536
- let f2 = we$6.call(r3, `
17536
+ let u2 = we$6.call(r3, `
17537
17537
  `, c2), h2 = we$6.call(i2, `
17538
- `, u2), p2 = we$6.call(o2, `
17538
+ `, f2), p2 = we$6.call(o2, `
17539
17539
  `, a2);
17540
17540
  (p2 === -1 || p2 > l2) && (p2 = l2);
17541
- const _2 = f2 === -1;
17542
- _2 ? (f2 = r3.length, h2 = i2.length) : (f2++, h2++);
17541
+ const _2 = u2 === -1;
17542
+ _2 ? (u2 = r3.length, h2 = i2.length) : (u2++, h2++);
17543
17543
  const m2 = _2 ? p2 : p2 + 1;
17544
- let g2 = m2 - (h2 - u2);
17545
- if (g2 < a2 && (g2 = a2), f2 > c2 && (s2 ? fe$6(t2, n2 + c2, n2 + f2, g2, m2) : B$i(
17544
+ let g2 = m2 - (h2 - f2);
17545
+ if (g2 < a2 && (g2 = a2), u2 > c2 && (s2 ? fe$6(t2, n2 + c2, n2 + u2, g2, m2) : B$i(
17546
17546
  t2,
17547
17547
  n2 + c2,
17548
- n2 + f2,
17548
+ n2 + u2,
17549
17549
  g2,
17550
17550
  m2,
17551
17551
  e2.index,
17552
17552
  5
17553
17553
  /* CODE_CONTENT */
17554
17554
  )), _2) return true;
17555
- c2 = f2, u2 = h2, a2 = p2 + 1;
17555
+ c2 = u2, f2 = h2, a2 = p2 + 1;
17556
17556
  }
17557
17557
  }
17558
17558
  function bi$1(e2, t2, n2, r3, s2) {
@@ -17718,18 +17718,18 @@ function ge$7(e2, t2) {
17718
17718
  /* value_end */
17719
17719
  ];
17720
17720
  if (l2 !== 4294967295 && !Mt$3) {
17721
- const u2 = n2[
17721
+ const f2 = n2[
17722
17722
  l2 * 12
17723
17723
  /* stride */
17724
17724
  ] & 255;
17725
- if (u2 === 1 || u2 === 18) {
17725
+ if (f2 === 1 || f2 === 18) {
17726
17726
  r3 = wf(n2, r3, s2, e2.source);
17727
- const f2 = r3 * 12;
17727
+ const u2 = r3 * 12;
17728
17728
  c2 = n2[
17729
- f2 + 4
17729
+ u2 + 4
17730
17730
  /* value_end */
17731
17731
  ], l2 = n2[
17732
- f2 + 6
17732
+ u2 + 6
17733
17733
  /* next */
17734
17734
  ];
17735
17735
  }
@@ -17772,14 +17772,14 @@ function wf(e2, t2, n2, r3) {
17772
17772
  ] !== n2) return s2;
17773
17773
  let c2 = e2[a2] & 255;
17774
17774
  if (c2 === 18) {
17775
- const f2 = e2[
17775
+ const u2 = e2[
17776
17776
  a2 + 1
17777
17777
  /* start */
17778
17778
  ];
17779
- if (f2 !== o2 || e2[
17779
+ if (u2 !== o2 || e2[
17780
17780
  a2 + 2
17781
17781
  /* end */
17782
- ] !== f2 + 1 || r3.charCodeAt(f2) !== 10 || (l2 = e2[
17782
+ ] !== u2 + 1 || r3.charCodeAt(u2) !== 10 || (l2 = e2[
17783
17783
  a2 + 6
17784
17784
  /* next */
17785
17785
  ], l2 === 4294967295) || (a2 = l2 * 12, e2[
@@ -17788,21 +17788,21 @@ function wf(e2, t2, n2, r3) {
17788
17788
  ] !== n2) || (c2 = e2[a2] & 255, c2 !== 1 || e2[
17789
17789
  a2 + 3
17790
17790
  /* value_start */
17791
- ] !== f2 + 1)) return s2;
17791
+ ] !== u2 + 1)) return s2;
17792
17792
  } else if (c2 !== 1 || e2[
17793
17793
  a2 + 3
17794
17794
  /* value_start */
17795
17795
  ] !== o2)
17796
17796
  return s2;
17797
- const u2 = e2[
17797
+ const f2 = e2[
17798
17798
  a2 + 4
17799
17799
  /* value_end */
17800
17800
  ];
17801
- if (u2 === 4294967295 || u2 < e2[
17801
+ if (f2 === 4294967295 || f2 < e2[
17802
17802
  a2 + 3
17803
17803
  /* value_start */
17804
17804
  ]) return s2;
17805
- s2 = l2, i2 = a2, o2 = u2;
17805
+ s2 = l2, i2 = a2, o2 = f2;
17806
17806
  }
17807
17807
  }
17808
17808
  function rn$2(e2, t2) {
@@ -18094,15 +18094,15 @@ function he$5(e2, t2, n2) {
18094
18094
  const c2 = r3[
18095
18095
  o2 + 3
18096
18096
  /* value_start */
18097
- ], u2 = r3[
18097
+ ], f2 = r3[
18098
18098
  o2 + 4
18099
18099
  /* value_end */
18100
- ], f2 = bt$3(e2, s2, c2, u2, false);
18101
- if (n2 !== 0 && (d$7 += q$h[n2], n2 = 0), c2 !== 4294967295 && u2 > c2) {
18100
+ ], u2 = bt$3(e2, s2, c2, f2, false);
18101
+ if (n2 !== 0 && (d$7 += q$h[n2], n2 = 0), c2 !== 4294967295 && f2 > c2) {
18102
18102
  const h2 = d$7.length;
18103
- fe$6(t2, h2, h2 + f2.length, c2, u2);
18103
+ fe$6(t2, h2, h2 + u2.length, c2, f2);
18104
18104
  }
18105
- d$7 += f2;
18105
+ d$7 += u2;
18106
18106
  } else l2 !== 6 && (e2.move_to(s2), n2 = sn$2(e2, t2, n2));
18107
18107
  const a2 = r3[
18108
18108
  o2 + 6
@@ -18272,12 +18272,12 @@ function Of(e2, t2, n2) {
18272
18272
  let a2 = "<" + Y$d(i2);
18273
18273
  const c2 = s2?.attributes;
18274
18274
  if (c2) {
18275
- const u2 = !e2.synthetic;
18276
- for (const f2 in c2) {
18277
- const h2 = c2[f2];
18278
- h2 === true ? a2 += " " + f2 : typeof h2 == "object" && h2.type === "expression" ? a2 += Mn$1(f2, Y$d(h2.value)) : a2 += " " + f2 + '="' + hn$2(h2, u2) + '"';
18275
+ const f2 = !e2.synthetic;
18276
+ for (const u2 in c2) {
18277
+ const h2 = c2[u2];
18278
+ h2 === true ? a2 += " " + u2 : typeof h2 == "object" && h2.type === "expression" ? a2 += Mn$1(u2, Y$d(h2.value)) : a2 += " " + u2 + '="' + hn$2(h2, f2) + '"';
18279
18279
  }
18280
- s2.repeated !== void 0 && (a2 += zr$1(s2.repeated, u2));
18280
+ s2.repeated !== void 0 && (a2 += zr$1(s2.repeated, f2));
18281
18281
  }
18282
18282
  if (o2)
18283
18283
  return d$7 += a2, fe$6(t2, r3, d$7.length + S$l[mt$2], e2.start, e2.end), mt$2;
@@ -18366,24 +18366,24 @@ function pe$7(e2, t2, n2) {
18366
18366
  const c2 = r3[
18367
18367
  o2 + 3
18368
18368
  /* value_start */
18369
- ], u2 = r3[
18369
+ ], f2 = r3[
18370
18370
  o2 + 4
18371
18371
  /* value_end */
18372
- ], f2 = bt$3(e2, s2, c2, u2, false);
18373
- if (n2 !== 0 && (d$7 += q$h[n2], n2 = 0), c2 !== 4294967295 && u2 > c2) {
18372
+ ], u2 = bt$3(e2, s2, c2, f2, false);
18373
+ if (n2 !== 0 && (d$7 += q$h[n2], n2 = 0), c2 !== 4294967295 && f2 > c2) {
18374
18374
  const h2 = d$7.length;
18375
18375
  B$i(
18376
18376
  t2,
18377
18377
  h2,
18378
- h2 + f2.length,
18378
+ h2 + u2.length,
18379
18379
  c2,
18380
- u2,
18380
+ f2,
18381
18381
  s2,
18382
18382
  1
18383
18383
  /* TEXT_CONTENT */
18384
18384
  );
18385
18385
  }
18386
- d$7 += f2;
18386
+ d$7 += u2;
18387
18387
  } else l2 !== 6 && (e2.move_to(s2), n2 = on$1(e2, t2, n2));
18388
18388
  const a2 = r3[
18389
18389
  o2 + 6
@@ -18691,14 +18691,14 @@ function Uf(e2, t2, n2, r3) {
18691
18691
  else {
18692
18692
  const c2 = d$7.length + S$l[n2];
18693
18693
  n2 = J$e(e2, n2, Un$1, Rn$2, U$i);
18694
- const u2 = d$7.length + S$l[n2];
18695
- n2 = L$k(n2, s2), n2 = pe$7(e2, t2, n2);
18696
18694
  const f2 = d$7.length + S$l[n2];
18695
+ n2 = L$k(n2, s2), n2 = pe$7(e2, t2, n2);
18696
+ const u2 = d$7.length + S$l[n2];
18697
18697
  n2 = L$k(n2, kt$2), de$6(
18698
18698
  t2,
18699
18699
  c2,
18700
- u2,
18701
18700
  f2,
18701
+ u2,
18702
18702
  d$7.length + S$l[n2],
18703
18703
  e2,
18704
18704
  0
@@ -18762,17 +18762,17 @@ function zf(e2, t2, n2) {
18762
18762
  if (l2)
18763
18763
  d$7 += l2;
18764
18764
  else {
18765
- let u2 = "<" + Y$d(i2);
18766
- const f2 = s2?.attributes;
18767
- if (f2) {
18765
+ let f2 = "<" + Y$d(i2);
18766
+ const u2 = s2?.attributes;
18767
+ if (u2) {
18768
18768
  const h2 = !e2.synthetic;
18769
- for (const p2 in f2) {
18770
- const _2 = f2[p2];
18771
- _2 === true ? u2 += " " + p2 : typeof _2 == "object" && _2.type === "expression" ? u2 += Mn$1(p2, Y$d(_2.value)) : u2 += " " + p2 + '="' + hn$2(_2, h2) + '"';
18769
+ for (const p2 in u2) {
18770
+ const _2 = u2[p2];
18771
+ _2 === true ? f2 += " " + p2 : typeof _2 == "object" && _2.type === "expression" ? f2 += Mn$1(p2, Y$d(_2.value)) : f2 += " " + p2 + '="' + hn$2(_2, h2) + '"';
18772
18772
  }
18773
- s2.repeated !== void 0 && (u2 += zr$1(s2.repeated, h2));
18773
+ s2.repeated !== void 0 && (f2 += zr$1(s2.repeated, h2));
18774
18774
  }
18775
- if (d$7 += u2, o2)
18775
+ if (d$7 += f2, o2)
18776
18776
  return B$i(
18777
18777
  t2,
18778
18778
  r3,
@@ -18823,8 +18823,8 @@ function zf(e2, t2, n2) {
18823
18823
  /* SVELTE_CONTENT */
18824
18824
  );
18825
18825
  else {
18826
- const u2 = pe$7(e2, t2, U$i);
18827
- u2 !== 0 && (d$7 += q$h[u2]);
18826
+ const f2 = pe$7(e2, t2, U$i);
18827
+ f2 !== 0 && (d$7 += q$h[f2]);
18828
18828
  }
18829
18829
  const c2 = d$7.length;
18830
18830
  return d$7 = d$7 + "</" + Y$d(i2), de$6(
@@ -19171,21 +19171,21 @@ function Wf(e2, t2, n2) {
19171
19171
  if (s2 += o2.length, l2 === true) continue;
19172
19172
  if (s2 = nr$1(r3, s2), r3.charCodeAt(s2) !== 61) return -1;
19173
19173
  s2 = nr$1(r3, s2 + 1);
19174
- let c2, u2 = -1, f2 = -1;
19174
+ let c2, f2 = -1, u2 = -1;
19175
19175
  if (typeof l2 == "string") {
19176
19176
  c2 = l2;
19177
19177
  const h2 = r3.charCodeAt(s2);
19178
- (h2 === 34 || h2 === 39) && (u2 = f2 = h2);
19178
+ (h2 === 34 || h2 === 39) && (f2 = u2 = h2);
19179
19179
  } else if (typeof l2 == "object" && l2 !== null)
19180
- c2 = Y$d(l2.value), u2 = 123, f2 = 125;
19180
+ c2 = Y$d(l2.value), f2 = 123, u2 = 125;
19181
19181
  else return -1;
19182
- if (u2 !== -1) {
19183
- if (r3.charCodeAt(s2) !== u2) return -1;
19182
+ if (f2 !== -1) {
19183
+ if (r3.charCodeAt(s2) !== f2) return -1;
19184
19184
  s2++;
19185
19185
  }
19186
19186
  if (!r3.startsWith(c2, s2)) return -1;
19187
- if (s2 += c2.length, f2 !== -1) {
19188
- if (r3.charCodeAt(s2) !== f2) return -1;
19187
+ if (s2 += c2.length, u2 !== -1) {
19188
+ if (r3.charCodeAt(s2) !== u2) return -1;
19189
19189
  s2++;
19190
19190
  }
19191
19191
  }
@@ -19247,7 +19247,7 @@ function eo$1(e2, t2, n2, r3) {
19247
19247
  if (i2 >= 30 && i2 <= 32)
19248
19248
  return ed(e2, t2, n2, r3);
19249
19249
  const o2 = d$7.length, l2 = r3.local;
19250
- let a2 = "<" + l2, c2 = "", u2 = "</" + l2 + ">", f2 = 0, h2 = false;
19250
+ let a2 = "<" + l2, c2 = "", f2 = "</" + l2 + ">", u2 = 0, h2 = false;
19251
19251
  switch (i2) {
19252
19252
  case 3:
19253
19253
  a2 += M$l(e2) + " level={" + e2.extra + "}";
@@ -19279,7 +19279,7 @@ function eo$1(e2, t2, n2, r3) {
19279
19279
  return I$k(n2, a2 + M$l(e2) + ` />
19280
19280
  `);
19281
19281
  case 36:
19282
- return Od(e2, t2, n2, o2, a2, u2);
19282
+ return Od(e2, t2, n2, o2, a2, f2);
19283
19283
  case 7:
19284
19284
  a2 += M$l(e2), e2.index === Ot$1 && (c2 = Gr$1);
19285
19285
  break;
@@ -19290,31 +19290,31 @@ function eo$1(e2, t2, n2, r3) {
19290
19290
  a2 += " start={" + (typeof g2 == "number" ? g2 : 1) + "}";
19291
19291
  }
19292
19292
  c2 = `
19293
- `, u2 = `
19294
- ` + u2, f2 = 3;
19293
+ `, f2 = `
19294
+ ` + f2, u2 = 3;
19295
19295
  break;
19296
19296
  }
19297
19297
  case 16: {
19298
19298
  const m2 = (s2 = e2.meta()) == null ? void 0 : s2.checked;
19299
- a2 += M$l(e2), typeof m2 == "boolean" && (a2 += " checked={" + m2 + "}"), u2 += `
19299
+ a2 += M$l(e2), typeof m2 == "boolean" && (a2 += " checked={" + m2 + "}"), f2 += `
19300
19300
  `;
19301
19301
  break;
19302
19302
  }
19303
19303
  case 14:
19304
19304
  a2 += M$l(e2), c2 = `
19305
- `, u2 = `
19306
- ` + u2;
19305
+ `, f2 = `
19306
+ ` + f2;
19307
19307
  break;
19308
19308
  case 22:
19309
19309
  a2 += M$l(e2), c2 = `
19310
- `, u2 = `
19311
- ` + u2, f2 = 3;
19310
+ `, f2 = `
19311
+ ` + f2, u2 = 3;
19312
19312
  break;
19313
19313
  case 8: {
19314
19314
  if (F$m !== null) {
19315
19315
  const x2 = rs$1(e2);
19316
19316
  if (x2 !== null)
19317
- return r3.name === "math" ? bd(e2, t2, n2, x2, a2, u2) : vd(e2, t2, n2, x2, a2, u2);
19317
+ return r3.name === "math" ? bd(e2, t2, n2, x2, a2, f2) : vd(e2, t2, n2, x2, a2, f2);
19318
19318
  }
19319
19319
  n2 = I$k(n2, a2 + M$l(e2) + ">");
19320
19320
  const m2 = d$7.length;
@@ -19322,7 +19322,7 @@ function eo$1(e2, t2, n2, r3) {
19322
19322
  we$6.call(g2, `
19323
19323
  `) !== -1 && (g2 = g2.replace(/\n/g, " ")), n2 = zs(e2, t2, n2, g2);
19324
19324
  const v3 = d$7.length;
19325
- return n2 = I$k(n2, u2), Jt$1(
19325
+ return n2 = I$k(n2, f2), Jt$1(
19326
19326
  e2,
19327
19327
  t2,
19328
19328
  o2,
@@ -19338,7 +19338,7 @@ function eo$1(e2, t2, n2, r3) {
19338
19338
  if (F$m !== null) {
19339
19339
  const b2 = ns$2(e2, m2);
19340
19340
  if (b2 !== null)
19341
- return r3.name === "math" ? _d(e2, t2, n2, b2, m2, a2, u2) : md(e2, t2, n2, b2, m2, a2, u2);
19341
+ return r3.name === "math" ? _d(e2, t2, n2, b2, m2, a2, f2) : md(e2, t2, n2, b2, m2, a2, f2);
19342
19342
  }
19343
19343
  a2 += M$l(e2);
19344
19344
  let g2 = "<code>";
@@ -19357,7 +19357,7 @@ function eo$1(e2, t2, n2, r3) {
19357
19357
  /* TRACE */
19358
19358
  );
19359
19359
  const $2 = d$7.length;
19360
- return n2 = I$k(n2, "</code></pre>" + u2), Jt$1(
19360
+ return n2 = I$k(n2, "</code></pre>" + f2), Jt$1(
19361
19361
  e2,
19362
19362
  t2,
19363
19363
  o2,
@@ -19416,7 +19416,7 @@ function eo$1(e2, t2, n2, r3) {
19416
19416
  /* SVELTE_CONTENT */
19417
19417
  ) : n2 = i2 === 22 ? Qr$1(e2, t2, n2) : It$5(e2, t2, n2);
19418
19418
  const _2 = d$7.length;
19419
- return n2 = I$k(n2, u2), Jt$1(e2, t2, o2, p2, _2, d$7.length, f2), n2;
19419
+ return n2 = I$k(n2, f2), Jt$1(e2, t2, o2, p2, _2, d$7.length, u2), n2;
19420
19420
  }
19421
19421
  let ga$1 = class ga extends Error {
19422
19422
  constructor(t2, n2) {
@@ -19506,11 +19506,11 @@ function ed(e2, t2, n2, r3) {
19506
19506
  const p2 = wa(e2, r3);
19507
19507
  if (p2 !== void 0) return td$1(e2, t2, n2, p2);
19508
19508
  }
19509
- const s2 = d$7.length, i2 = e2.kind, o2 = r3.local, l2 = "<" + o2 + ma$1(e2, i2), a2 = i2 === 30 ? 4294967295 : no$1(e2), c2 = a2 !== 4294967295, u2 = i2 === 30 ? e2.words[
19509
+ const s2 = d$7.length, i2 = e2.kind, o2 = r3.local, l2 = "<" + o2 + ma$1(e2, i2), a2 = i2 === 30 ? 4294967295 : no$1(e2), c2 = a2 !== 4294967295, f2 = i2 === 30 ? e2.words[
19510
19510
  e2.index * 12 + 8
19511
19511
  /* first_child */
19512
19512
  ] !== 4294967295 : i2 === 32 && _a(e2);
19513
- if (!c2 && !u2)
19513
+ if (!c2 && !f2)
19514
19514
  return n2 = I$k(n2, l2 + " />"), Wt$3(
19515
19515
  e2,
19516
19516
  t2,
@@ -19519,8 +19519,8 @@ function ed(e2, t2, n2, r3) {
19519
19519
  /* STRUCTURE */
19520
19520
  ), n2;
19521
19521
  n2 = I$k(n2, l2 + ">"), c2 && (n2 = Qf(e2, t2, n2, a2));
19522
- const f2 = d$7.length;
19523
- u2 && (i2 === 32 && (n2 = I$k(n2, `
19522
+ const u2 = d$7.length;
19523
+ f2 && (i2 === 32 && (n2 = I$k(n2, `
19524
19524
  `)), n2 = It$5(e2, t2, n2), i2 === 32 && (n2 = I$k(n2, `
19525
19525
  `)));
19526
19526
  const h2 = d$7.length;
@@ -19528,7 +19528,7 @@ function ed(e2, t2, n2, r3) {
19528
19528
  e2,
19529
19529
  t2,
19530
19530
  s2,
19531
- f2,
19531
+ u2,
19532
19532
  h2,
19533
19533
  d$7.length,
19534
19534
  i2 === 30 ? 0 : 3
@@ -19578,18 +19578,18 @@ function td$1(e2, t2, n2, r3) {
19578
19578
  const a2 = d$7.length;
19579
19579
  for (let c2 = 0; c2 < l2.length; c2++) {
19580
19580
  if (l2[c2] === "label") {
19581
- const u2 = e2.index;
19582
- e2.move_to(no$1(e2)), n2 = It$5(e2, t2, n2), e2.move_to(u2);
19581
+ const f2 = e2.index;
19582
+ e2.move_to(no$1(e2)), n2 = It$5(e2, t2, n2), e2.move_to(f2);
19583
19583
  } else
19584
19584
  n2 = It$5(e2, t2, n2);
19585
19585
  if (c2 === l2.length - 1) {
19586
- const u2 = d$7.length;
19586
+ const f2 = d$7.length;
19587
19587
  n2 = I$k(n2, o2[c2 + 1]), Jt$1(
19588
19588
  e2,
19589
19589
  t2,
19590
19590
  s2,
19591
19591
  a2,
19592
- u2,
19592
+ f2,
19593
19593
  d$7.length,
19594
19594
  i2 === 30 ? 0 : 3
19595
19595
  /* STRUCTURE */
@@ -19607,16 +19607,16 @@ function nd(e2, t2, n2, r3) {
19607
19607
  do {
19608
19608
  const c2 = i2.kind;
19609
19609
  if (c2 >= 30 && c2 <= 32) {
19610
- const u2 = n2.get(Yn$1(i2));
19611
- if (u2 !== void 0 && u2.static === true) {
19612
- const f2 = va$1(i2, u2);
19613
- if (!o2.has(f2) && r3?.get(f2) === void 0) {
19614
- o2.add(f2);
19610
+ const f2 = n2.get(Yn$1(i2));
19611
+ if (f2 !== void 0 && f2.static === true) {
19612
+ const u2 = va$1(i2, f2);
19613
+ if (!o2.has(u2) && r3?.get(u2) === void 0) {
19614
+ o2.add(u2);
19615
19615
  const { label: h2, children: p2 } = ba$1(i2), _2 = (a2 = i2.meta()) == null ? void 0 : a2.args;
19616
19616
  s2.push({
19617
- key: f2,
19618
- specifier: u2.specifier,
19619
- name: u2.name,
19617
+ key: u2,
19618
+ specifier: f2.specifier,
19619
+ name: f2.name,
19620
19620
  args: _2 === void 0 ? {} : { ..._2 },
19621
19621
  label: h2 !== 4294967295,
19622
19622
  children: p2,
@@ -19635,10 +19635,10 @@ function nd(e2, t2, n2, r3) {
19635
19635
  function Qr$1(e2, t2, n2) {
19636
19636
  const r3 = e2.meta(), s2 = r3?.alignments ?? [], i2 = Xn$1(r3, s2), o2 = ue$5.get("thead"), l2 = ue$5.get("tbody"), a2 = ue$5.get("tr"), c2 = a2 ? "<" + a2.local + `>
19637
19637
  ` : `<tr>
19638
- `, u2 = a2 ? "</" + a2.local + `>
19638
+ `, f2 = a2 ? "</" + a2.local + `>
19639
19639
  ` : `</tr>
19640
19640
  `;
19641
- let f2 = false;
19641
+ let u2 = false;
19642
19642
  if (!e2.goto_first_child()) return n2;
19643
19643
  do
19644
19644
  if (e2.kind === 23)
@@ -19646,18 +19646,18 @@ function Qr$1(e2, t2, n2) {
19646
19646
  ` : `<thead>
19647
19647
  `) + c2), n2 = i2 ? Fo(e2, t2, n2, "th", s2, 0, Zn$1) : Mo(e2, t2, n2, "th", s2), n2 = I$k(
19648
19648
  n2,
19649
- u2 + (o2 ? "</" + o2.local + `>
19649
+ f2 + (o2 ? "</" + o2.local + `>
19650
19650
  ` : `</thead>
19651
19651
  `)
19652
19652
  );
19653
19653
  else if (e2.kind === 24) {
19654
19654
  let h2 = c2;
19655
- f2 || (h2 = (l2 ? "<" + l2.local + `>
19655
+ u2 || (h2 = (l2 ? "<" + l2.local + `>
19656
19656
  ` : `<tbody>
19657
- `) + h2, f2 = true), n2 = I$k(n2, h2), n2 = i2 ? Fo(e2, t2, n2, "td", s2, gn$2, mn$1) : Mo(e2, t2, n2, "td", s2), n2 = I$k(n2, u2);
19657
+ `) + h2, u2 = true), n2 = I$k(n2, h2), n2 = i2 ? Fo(e2, t2, n2, "td", s2, gn$2, mn$1) : Mo(e2, t2, n2, "td", s2), n2 = I$k(n2, f2);
19658
19658
  }
19659
19659
  while (e2.goto_next_sibling());
19660
- return e2.goto_parent(), f2 && (n2 = I$k(n2, l2 ? "</" + l2.local + ">" : "</tbody>")), n2;
19660
+ return e2.goto_parent(), u2 && (n2 = I$k(n2, l2 ? "</" + l2.local + ">" : "</tbody>")), n2;
19661
19661
  }
19662
19662
  function Mo(e2, t2, n2, r3, s2) {
19663
19663
  const i2 = ue$5.get(r3), o2 = i2 ? i2.local : r3;
@@ -19676,11 +19676,11 @@ function Mo(e2, t2, n2, r3, s2) {
19676
19676
  return e2.goto_parent(), n2;
19677
19677
  }
19678
19678
  function Fo(e2, t2, n2, r3, s2, i2, o2) {
19679
- const l2 = ue$5.get(r3), a2 = l2 ? l2.local : r3, c2 = r3 === "th" ? void 0 : ue$5.get("th"), u2 = c2 ? c2.local : "th";
19679
+ const l2 = ue$5.get(r3), a2 = l2 ? l2.local : r3, c2 = r3 === "th" ? void 0 : ue$5.get("th"), f2 = c2 ? c2.local : "th";
19680
19680
  if (!e2.goto_first_child()) return n2;
19681
19681
  do
19682
19682
  if (e2.kind === 25) {
19683
- const f2 = e2.extra, h2 = f2 < i2 || f2 >= o2, p2 = Hr$1(e2, f2, s2), _2 = h2 ? u2 : a2;
19683
+ const u2 = e2.extra, h2 = u2 < i2 || u2 >= o2, p2 = Hr$1(e2, u2, s2), _2 = h2 ? f2 : a2;
19684
19684
  n2 = I$k(
19685
19685
  n2,
19686
19686
  h2 ? "<" + _2 + ' scope="row"' + p2 + ">" : "<" + _2 + p2 + ">"
@@ -19744,15 +19744,15 @@ function id(e2, t2) {
19744
19744
  const l2 = Bl;
19745
19745
  let a2 = 0;
19746
19746
  for (let c2 = 0; c2 < r3; c2 += 6) {
19747
- const u2 = n2[c2 + 3], f2 = n2[c2], h2 = n2[c2 + 1];
19747
+ const f2 = n2[c2 + 3], u2 = n2[c2], h2 = n2[c2 + 1];
19748
19748
  let p2 = n2[c2 + 2];
19749
- const _2 = p2 + u2, m2 = h2 === u2;
19749
+ const _2 = p2 + f2, m2 = h2 === f2;
19750
19750
  a2 = Jo(t2, p2, a2);
19751
19751
  const g2 = n2[c2 + 5], v3 = n2[c2 + 4] | 0, x2 = (v3 + 1) * 16 + g2;
19752
19752
  if (m2) {
19753
19753
  if (a2 < s2 && t2[a2] + 1 < _2) {
19754
19754
  const b2 = [], y2 = [], C3 = [];
19755
- let k2 = f2;
19755
+ let k2 = u2;
19756
19756
  for (; a2 < s2 && t2[a2] + 1 < _2; ) {
19757
19757
  const O2 = t2[a2] + 1;
19758
19758
  b2.push(p2 + a2), y2.push(k2), C3.push(O2 - p2), k2 += O2 - p2, p2 = O2, a2++;
@@ -19768,19 +19768,19 @@ function id(e2, t2) {
19768
19768
  } else
19769
19769
  i2[o2++] = new An$1(
19770
19770
  p2 + a2,
19771
- f2,
19772
- u2,
19773
19771
  u2,
19772
+ f2,
19773
+ f2,
19774
19774
  x2,
19775
19775
  null
19776
19776
  );
19777
19777
  continue;
19778
19778
  }
19779
- let $2 = u2;
19779
+ let $2 = f2;
19780
19780
  if (a2 < s2 && t2[a2] < _2 && ($2 = _2 + Jo(t2, _2, a2) - p2 - a2), $2 !== h2)
19781
19781
  i2[o2++] = new An$1(
19782
19782
  p2 + a2,
19783
- f2,
19783
+ u2,
19784
19784
  $2,
19785
19785
  h2,
19786
19786
  x2,
@@ -19789,7 +19789,7 @@ function id(e2, t2) {
19789
19789
  else {
19790
19790
  const b2 = {
19791
19791
  sourceOffsets: [p2 + a2],
19792
- generatedOffsets: [f2],
19792
+ generatedOffsets: [u2],
19793
19793
  lengths: [$2],
19794
19794
  data: l2(g2, v3),
19795
19795
  generatedLengths: [h2]
@@ -19854,13 +19854,13 @@ function oo(e2, t2, n2, r3, s2, i2) {
19854
19854
  ], c2 = o2[
19855
19855
  l2 + 4
19856
19856
  /* value_end */
19857
- ], u2 = bt$3(e2, s2, a2, c2, false);
19857
+ ], f2 = bt$3(e2, s2, a2, c2, false);
19858
19858
  if (n2 !== 0 && (d$7 += q$h[n2]), a2 !== 4294967295 && c2 > a2) {
19859
- const f2 = d$7.length;
19860
- r3 === 1 ? fe$6(t2, f2, f2 + u2.length, a2, c2) : B$i(
19859
+ const u2 = d$7.length;
19860
+ r3 === 1 ? fe$6(t2, u2, u2 + f2.length, a2, c2) : B$i(
19861
19861
  t2,
19862
- f2,
19863
- f2 + u2.length,
19862
+ u2,
19863
+ u2 + f2.length,
19864
19864
  a2,
19865
19865
  c2,
19866
19866
  s2,
@@ -19868,7 +19868,7 @@ function oo(e2, t2, n2, r3, s2, i2) {
19868
19868
  /* TEXT_CONTENT */
19869
19869
  );
19870
19870
  }
19871
- return d$7 += u2, 0;
19871
+ return d$7 += f2, 0;
19872
19872
  }
19873
19873
  return r3 === 1 ? sn$2(e2, t2, n2) : on$1(e2, t2, n2);
19874
19874
  }
@@ -19906,19 +19906,19 @@ let fr$1 = class fr {
19906
19906
  l2 !== void 0 && (Z$c = l2);
19907
19907
  const a2 = this.footnotes;
19908
19908
  if (a2 !== void 0 && (oe$5 = a2), !this.cache) {
19909
- const c2 = this.scope, u2 = this.directives;
19909
+ const c2 = this.scope, f2 = this.directives;
19910
19910
  if (this.template !== void 0)
19911
19911
  return this.html = this.render_wrapped(s2, t2, null, false, r3), this.blocks;
19912
- const f2 = this.imports, h2 = f2 !== void 0 && f2.length !== 0;
19912
+ const u2 = this.imports, h2 = u2 !== void 0 && u2.length !== 0;
19913
19913
  try {
19914
- (c2 !== null && c2.size !== 0 || u2 !== null && u2.size !== 0) && (wn$1 = _s(
19914
+ (c2 !== null && c2.size !== 0 || f2 !== null && f2.size !== 0) && (wn$1 = _s(
19915
19915
  s2,
19916
19916
  c2,
19917
- u2,
19917
+ f2,
19918
19918
  0,
19919
19919
  this.replace_typed,
19920
19920
  this.shells
19921
- )), h2 && vs(f2), this.strict_directives && (qe$4 = true), this.wrap_static === true && (Ae$7 = true), ms$2(s2, t2, h2), r3 && Lo(t2, r3), gs$1(t2), this.html = ua$1(s2), oe$5 !== null && (this.html += il(s2));
19921
+ )), h2 && vs(u2), this.strict_directives && (qe$4 = true), this.wrap_static === true && (Ae$7 = true), ms$2(s2, t2, h2), r3 && Lo(t2, r3), gs$1(t2), this.html = ua$1(s2), oe$5 !== null && (this.html += il(s2));
19922
19922
  } finally {
19923
19923
  oe$5 = null, F$m = null, tt$4 = null, o2 !== void 0 && (Ee$5 = null), l2 !== void 0 && (Z$c = null), i2 !== void 0 && sr$1(), Mt$3 = true, Sn$1 = null, qe$4 && (qe$4 = false), Ae$7 && (Ae$7 = false), ue$5 !== null && bs$1(), h2 && ws(), r3 && tr$1();
19924
19924
  }
@@ -19960,17 +19960,17 @@ let fr$1 = class fr {
19960
19960
  a2 !== void 0 && (Ee$5 = a2);
19961
19961
  const c2 = this.fences;
19962
19962
  c2 !== void 0 && (Z$c = c2);
19963
- const u2 = this.footnotes;
19964
- if (u2 !== void 0 && (oe$5 = u2), this.template !== void 0) {
19963
+ const f2 = this.footnotes;
19964
+ if (f2 !== void 0 && (oe$5 = f2), this.template !== void 0) {
19965
19965
  this.html = this.render_wrapped(o2, t2, r3, s2, i2);
19966
19966
  return;
19967
19967
  }
19968
- const f2 = this.scope, h2 = this.directives, p2 = this.imports, _2 = p2 !== void 0 && p2.length !== 0;
19968
+ const u2 = this.scope, h2 = this.directives, p2 = this.imports, _2 = p2 !== void 0 && p2.length !== 0;
19969
19969
  let m2 = 0;
19970
19970
  try {
19971
- (f2 !== null && f2.size !== 0 || h2 !== null && h2.size !== 0) && (wn$1 = _s(
19971
+ (u2 !== null && u2.size !== 0 || h2 !== null && h2.size !== 0) && (wn$1 = _s(
19972
19972
  o2,
19973
- f2,
19973
+ u2,
19974
19974
  h2,
19975
19975
  s2 ? 1 : 2,
19976
19976
  this.replace_typed,
@@ -19993,29 +19993,29 @@ let fr$1 = class fr {
19993
19993
  * check, sink null for the fold walk
19994
19994
  */
19995
19995
  render_wrapped(t2, n2, r3, s2, i2) {
19996
- const o2 = this.scope, l2 = this.directives, a2 = this.imports, c2 = a2 !== void 0 && a2.length !== 0, u2 = r3 === null ? 0 : s2 ? 1 : 2;
19997
- let f2;
19996
+ const o2 = this.scope, l2 = this.directives, a2 = this.imports, c2 = a2 !== void 0 && a2.length !== 0, f2 = r3 === null ? 0 : s2 ? 1 : 2;
19997
+ let u2;
19998
19998
  try {
19999
19999
  if ((o2 !== null && o2.size !== 0 || l2 !== null && l2.size !== 0) && (wn$1 = _s(
20000
20000
  t2,
20001
20001
  o2,
20002
20002
  l2,
20003
- u2,
20003
+ f2,
20004
20004
  this.replace_typed,
20005
20005
  this.shells
20006
- )), c2 && vs(a2), this.strict_directives && (qe$4 = true), this.wrap_static === true && (Ae$7 = true), fd(this.template, u2), Ku(t2, n2), i2 && (r3 === null ? Lo(n2, i2) : cr$1(n2, i2)), gs$1(n2), r3 === null) {
20006
+ )), c2 && vs(a2), this.strict_directives && (qe$4 = true), this.wrap_static === true && (Ae$7 = true), fd(this.template, f2), Ku(t2, n2), i2 && (r3 === null ? Lo(n2, i2) : cr$1(n2, i2)), gs$1(n2), r3 === null) {
20007
20007
  ae$5 = Ve$3;
20008
20008
  const h2 = Xo(t2, void 0, 0);
20009
- f2 = ae$5, ae$5 = "", h2 !== 0 && (f2 += q$h[h2]);
20009
+ u2 = ae$5, ae$5 = "", h2 !== 0 && (u2 += q$h[h2]);
20010
20010
  } else {
20011
20011
  d$7 = Ve$3, i2 && (d$7 += wr$1());
20012
20012
  const h2 = Xo(t2, r3, 0);
20013
- f2 = d$7, d$7 = "", h2 !== 0 && (f2 += q$h[h2]);
20013
+ u2 = d$7, d$7 = "", h2 !== 0 && (u2 += q$h[h2]);
20014
20014
  }
20015
20015
  } finally {
20016
20016
  oe$5 = null, F$m = null, tt$4 = null, Ee$5 = null, Z$c = null, ss$1 && sr$1(), Mt$3 = true, Sn$1 = null, qe$4 && (qe$4 = false), Ae$7 && (Ae$7 = false), ue$5 !== null && bs$1(), c2 && ws(), dd(), i2 && tr$1(), this.template = void 0;
20017
20017
  }
20018
- return f2.length !== 0 && (Rs$1[0] = f2.charCodeAt(0)), f2;
20018
+ return u2.length !== 0 && (Rs$1[0] = u2.charCodeAt(0)), u2;
20019
20019
  }
20020
20020
  /**
20021
20021
  * render with source mapping. always full render (no caching).
@@ -20286,9 +20286,9 @@ function La$1(e2, t2, n2, r3) {
20286
20286
  if (e2.prebuilt === void 0) return s2 + n2;
20287
20287
  const i2 = e2.source, o2 = e2.value_end;
20288
20288
  let l2 = s2;
20289
- for (let f2 = we$6.call(t2, `
20290
- `); f2 !== -1 && f2 < n2; f2 = we$6.call(t2, `
20291
- `, f2 + 1))
20289
+ for (let u2 = we$6.call(t2, `
20290
+ `); u2 !== -1 && u2 < n2; u2 = we$6.call(t2, `
20291
+ `, u2 + 1))
20292
20292
  if (l2 = we$6.call(i2, `
20293
20293
  `, l2) + 1, l2 === 0 || l2 > o2) return -1;
20294
20294
  let a2 = we$6.call(t2, `
@@ -20297,8 +20297,8 @@ function La$1(e2, t2, n2, r3) {
20297
20297
  let c2 = we$6.call(i2, `
20298
20298
  `, l2);
20299
20299
  (c2 === -1 || c2 > o2) && (c2 = o2);
20300
- const u2 = c2 - (a2 - n2);
20301
- return u2 < l2 || i2.slice(u2, u2 + r3) !== t2.slice(n2, n2 + r3) ? -1 : u2;
20300
+ const f2 = c2 - (a2 - n2);
20301
+ return f2 < l2 || i2.slice(f2, f2 + r3) !== t2.slice(n2, n2 + r3) ? -1 : f2;
20302
20302
  }
20303
20303
  function Na$1(e2, t2, n2, r3, s2) {
20304
20304
  const i2 = t2.index;
@@ -20317,10 +20317,10 @@ function Na$1(e2, t2, n2, r3, s2) {
20317
20317
  }
20318
20318
  const o2 = Tr$1(t2);
20319
20319
  let l2 = n2, a2 = t2.value_start;
20320
- for (let u2 = 0; u2 < s2.length; u2 += 3) {
20321
- const f2 = s2[u2 + 2], h2 = La$1(t2, o2, s2[u2 + 1], f2);
20320
+ for (let f2 = 0; f2 < s2.length; f2 += 3) {
20321
+ const u2 = s2[f2 + 2], h2 = La$1(t2, o2, s2[f2 + 1], u2);
20322
20322
  if (h2 === -1 || h2 < a2) continue;
20323
- const p2 = n2 + s2[u2];
20323
+ const p2 = n2 + s2[f2];
20324
20324
  p2 > l2 && B$i(
20325
20325
  e2,
20326
20326
  l2,
@@ -20333,13 +20333,13 @@ function Na$1(e2, t2, n2, r3, s2) {
20333
20333
  ), B$i(
20334
20334
  e2,
20335
20335
  p2,
20336
- p2 + f2,
20336
+ p2 + u2,
20337
20337
  h2,
20338
- h2 + f2,
20338
+ h2 + u2,
20339
20339
  i2,
20340
20340
  9
20341
20341
  /* SVELTE_CONTENT */
20342
- ), l2 = p2 + f2, a2 = h2 + f2;
20342
+ ), l2 = p2 + u2, a2 = h2 + u2;
20343
20343
  }
20344
20344
  const c2 = n2 + r3.length;
20345
20345
  c2 > l2 && B$i(
@@ -20361,10 +20361,10 @@ function Oa$1(e2, t2, n2, r3, s2) {
20361
20361
  const i2 = Tr$1(t2);
20362
20362
  let o2 = n2, l2 = t2.value_start;
20363
20363
  for (let c2 = 0; c2 < s2.length; c2 += 3) {
20364
- const u2 = s2[c2 + 2], f2 = La$1(t2, i2, s2[c2 + 1], u2);
20365
- if (f2 === -1 || f2 < l2) continue;
20364
+ const f2 = s2[c2 + 2], u2 = La$1(t2, i2, s2[c2 + 1], f2);
20365
+ if (u2 === -1 || u2 < l2) continue;
20366
20366
  const h2 = n2 + s2[c2];
20367
- h2 > o2 && fe$6(e2, o2, h2, l2, f2), fe$6(e2, h2, h2 + u2, f2, f2 + u2), o2 = h2 + u2, l2 = f2 + u2;
20367
+ h2 > o2 && fe$6(e2, o2, h2, l2, u2), fe$6(e2, h2, h2 + f2, u2, u2 + f2), o2 = h2 + f2, l2 = u2 + f2;
20368
20368
  }
20369
20369
  const a2 = n2 + r3.length;
20370
20370
  a2 > o2 && fe$6(e2, o2, a2, l2, t2.value_end);
@@ -20482,25 +20482,25 @@ function rl(e2, t2, n2, r3, s2, i2, o2) {
20482
20482
  const l2 = !Ua$1(e2, t2), a2 = pn$2(n2, r3);
20483
20483
  let c2 = "";
20484
20484
  for (; i2 < s2; ) {
20485
- const u2 = n2.charCodeAt(i2);
20486
- if (c2 += n2.slice(o2, i2), o2 = i2 + 1, u2 === 38)
20485
+ const f2 = n2.charCodeAt(i2);
20486
+ if (c2 += n2.slice(o2, i2), o2 = i2 + 1, f2 === 38)
20487
20487
  Zt$1 = ve$7("&", i2 + 1), Yl(n2, r3, s2, i2) ? o2 = i2 : c2 += "&amp;";
20488
- else if (u2 === 60)
20488
+ else if (f2 === 60)
20489
20489
  c2 += "&lt;", ot$2 = ve$7("<", i2 + 1);
20490
- else if (u2 === 62)
20490
+ else if (f2 === 62)
20491
20491
  c2 += "&gt;", lt$3 = ve$7(">", i2 + 1);
20492
- else if (u2 === 34 || u2 === 39) {
20493
- u2 === 34 ? at$4 = ve$7('"', i2 + 1) : ct$2 = ve$7("'", i2 + 1);
20494
- const f2 = l2 && cn$2 && !(a2 && i2 === r3) ? Ta(e2, t2, n2, r3, s2, i2) : 0;
20495
- f2 === 0 ? u2 === 34 ? c2 += "&quot;" : o2 = i2 : f2 === 1 ? c2 += u2 === 34 ? Bs : Gs : u2 === 34 ? c2 += Ps$1 : c2 += f2 === 3 ? "’" : Hs$1;
20492
+ else if (f2 === 34 || f2 === 39) {
20493
+ f2 === 34 ? at$4 = ve$7('"', i2 + 1) : ct$2 = ve$7("'", i2 + 1);
20494
+ const u2 = l2 && cn$2 && !(a2 && i2 === r3) ? Ta(e2, t2, n2, r3, s2, i2) : 0;
20495
+ u2 === 0 ? f2 === 34 ? c2 += "&quot;" : o2 = i2 : u2 === 1 ? c2 += f2 === 34 ? Bs : Gs : f2 === 34 ? c2 += Ps$1 : c2 += u2 === 3 ? "’" : Hs$1;
20496
20496
  } else {
20497
- let f2 = i2 + 1;
20498
- for (; f2 < s2 && n2.charCodeAt(f2) === u2; ) f2++;
20499
- const h2 = u2 === 45;
20500
- h2 ? ut$2 = ve$7("--", f2) : ft$3 = ve$7("...", f2);
20501
- const p2 = f2 - i2;
20497
+ let u2 = i2 + 1;
20498
+ for (; u2 < s2 && n2.charCodeAt(u2) === f2; ) u2++;
20499
+ const h2 = f2 === 45;
20500
+ h2 ? ut$2 = ve$7("--", u2) : ft$3 = ve$7("...", u2);
20501
+ const p2 = u2 - i2;
20502
20502
  l2 && (p2 === 3 || p2 === 2 && h2) && !(a2 && i2 === r3) && // the run goes on in the next text node, behind a backslash
20503
- !(f2 === s2 && n2.charCodeAt(s2) === 92 && n2.charCodeAt(s2 + 1) === u2) && !(p2 === 2 && $d(e2, t2, n2, r3, s2, i2)) ? c2 += h2 ? p2 === 2 ? "–" : "—" : "…" : c2 += n2.slice(i2, f2), o2 = f2;
20503
+ !(u2 === s2 && n2.charCodeAt(s2) === 92 && n2.charCodeAt(s2 + 1) === f2) && !(p2 === 2 && $d(e2, t2, n2, r3, s2, i2)) ? c2 += h2 ? p2 === 2 ? "–" : "—" : "…" : c2 += n2.slice(i2, u2), o2 = u2;
20504
20504
  }
20505
20505
  i2 = Zt$1, ot$2 < i2 && (i2 = ot$2), lt$3 < i2 && (i2 = lt$3), at$4 < i2 && (i2 = at$4), ct$2 < i2 && (i2 = ct$2), ut$2 < i2 && (i2 = ut$2), ft$3 < i2 && (i2 = ft$3);
20506
20506
  }
@@ -20656,15 +20656,15 @@ function po(e2, t2, n2) {
20656
20656
  s2 + 3
20657
20657
  /* value_start */
20658
20658
  ];
20659
- let u2 = r3[
20659
+ let f2 = r3[
20660
20660
  s2 + 4
20661
20661
  /* value_end */
20662
20662
  ];
20663
- const f2 = e2.source;
20664
- if (u2 !== 4294967295 && u2 > f2.length && (u2 = f2.length), c2 === 4294967295 || u2 === 4294967295 || u2 <= c2) return -1;
20665
- if (!n2) return Xt$1(f2.charCodeAt(c2));
20666
- const h2 = f2.charCodeAt(u2 - 1);
20667
- return (h2 === 34 || h2 === 39) && cn$2 && !(u2 - 1 === c2 && pn$2(f2, c2)) && !Ua$1(e2, t2) ? Ta(e2, t2, f2, c2, u2, u2 - 1) === 1 ? 1 : 3 : Xt$1(h2);
20663
+ const u2 = e2.source;
20664
+ if (f2 !== 4294967295 && f2 > u2.length && (f2 = u2.length), c2 === 4294967295 || f2 === 4294967295 || f2 <= c2) return -1;
20665
+ if (!n2) return Xt$1(u2.charCodeAt(c2));
20666
+ const h2 = u2.charCodeAt(f2 - 1);
20667
+ return (h2 === 34 || h2 === 39) && cn$2 && !(f2 - 1 === c2 && pn$2(u2, c2)) && !Ua$1(e2, t2) ? Ta(e2, t2, u2, c2, f2, f2 - 1) === 1 ? 1 : 3 : Xt$1(h2);
20668
20668
  }
20669
20669
  if (i2 === 18 || i2 === 17 || i2 === 6)
20670
20670
  return 0;
@@ -20797,30 +20797,30 @@ function Ba$1(e2, t2, n2, r3, s2, i2) {
20797
20797
  /* first_child */
20798
20798
  ];
20799
20799
  let a2 = 4294967295;
20800
- for (let u2 = l2; u2 !== 4294967295 && o2[
20801
- u2 * 12 + 5
20800
+ for (let f2 = l2; f2 !== 4294967295 && o2[
20801
+ f2 * 12 + 5
20802
20802
  /* parent */
20803
- ] === s2; u2 = o2[
20804
- u2 * 12 + 6
20803
+ ] === s2; f2 = o2[
20804
+ f2 * 12 + 6
20805
20805
  /* next */
20806
20806
  ])
20807
20807
  (o2[
20808
- u2 * 12
20808
+ f2 * 12
20809
20809
  /* stride */
20810
- ] & 255) !== 6 && (a2 = u2);
20810
+ ] & 255) !== 6 && (a2 = f2);
20811
20811
  let c2 = false;
20812
- for (let u2 = l2; u2 !== 4294967295 && o2[
20813
- u2 * 12 + 5
20812
+ for (let f2 = l2; f2 !== 4294967295 && o2[
20813
+ f2 * 12 + 5
20814
20814
  /* parent */
20815
- ] === s2; u2 = o2[
20816
- u2 * 12 + 6
20815
+ ] === s2; f2 = o2[
20816
+ f2 * 12 + 6
20817
20817
  /* next */
20818
20818
  ]) {
20819
- const f2 = o2[
20820
- u2 * 12
20819
+ const u2 = o2[
20820
+ f2 * 12
20821
20821
  /* stride */
20822
20822
  ] & 255;
20823
- f2 !== 6 && (e2.move_to(u2), u2 === a2 && f2 === 7 && !(Fe$6 && Vt$2(e2) !== null) ? (n2 = Ld(e2, t2, n2, r3, i2), c2 = true) : n2 = oo(e2, t2, n2, r3, u2, f2));
20823
+ u2 !== 6 && (e2.move_to(f2), f2 === a2 && u2 === 7 && !(Fe$6 && Vt$2(e2) !== null) ? (n2 = Ld(e2, t2, n2, r3, i2), c2 = true) : n2 = oo(e2, t2, n2, r3, f2, u2));
20824
20824
  }
20825
20825
  return c2 ? n2 : dr$1(n2, i2, r3);
20826
20826
  }
@@ -20832,15 +20832,15 @@ function mo(e2, t2, n2, r3) {
20832
20832
  <ol>
20833
20833
  `, a2 = 1;
20834
20834
  for (let c2 = 0; c2 < i2.length; c2++) {
20835
- const u2 = i2[c2];
20836
- if (u2 === 4294967295) continue;
20837
- let f2 = l2 + '<li id="' + je$5(un$2(s2, Mn$2(s2.labels[c2]))) + '"';
20838
- l2 = "", c2 + 1 !== a2 && (f2 += ' value="' + (c2 + 1) + '"'), a2 = c2 + 2, n2 = dr$1(n2, f2 + ">", r3), n2 = Ba$1(
20835
+ const f2 = i2[c2];
20836
+ if (f2 === 4294967295) continue;
20837
+ let u2 = l2 + '<li id="' + je$5(un$2(s2, Mn$2(s2.labels[c2]))) + '"';
20838
+ l2 = "", c2 + 1 !== a2 && (u2 += ' value="' + (c2 + 1) + '"'), a2 = c2 + 2, n2 = dr$1(n2, u2 + ">", r3), n2 = Ba$1(
20839
20839
  e2,
20840
20840
  t2,
20841
20841
  n2,
20842
20842
  r3,
20843
- u2,
20843
+ f2,
20844
20844
  Dd(s2, c2 + 1, s2.counts[c2])
20845
20845
  ), n2 = dr$1(n2, `</li>
20846
20846
  `, r3);
@@ -20858,20 +20858,20 @@ let ys = false;
20858
20858
  function Od(e2, t2, n2, r3, s2, i2) {
20859
20859
  const o2 = Ra$1(e2), l2 = o2.references.get(e2.index);
20860
20860
  if (l2 === void 0) return n2;
20861
- const a2 = Math.floor(l2 / 65536), c2 = o2.labels[a2 - 1], u2 = e2.index;
20861
+ const a2 = Math.floor(l2 / 65536), c2 = o2.labels[a2 - 1], f2 = e2.index;
20862
20862
  n2 = I$k(
20863
20863
  n2,
20864
20864
  s2 + xe$8("label", c2) + " number={" + a2 + "}" + xe$8("href", "#" + za$1(un$2(o2, Mn$2(c2)))) + xe$8("id", un$2(o2, In$2(a2, l2 % 65536))) + M$l(e2, Nd) + ">"
20865
20865
  );
20866
- const f2 = o2.definitions[a2 - 1];
20867
- if (f2 !== 4294967295 && !ys) {
20866
+ const u2 = o2.definitions[a2 - 1];
20867
+ if (u2 !== 4294967295 && !ys) {
20868
20868
  ys = true;
20869
20869
  try {
20870
- n2 = I$k(n2, "{#snippet note()}"), n2 = Ba$1(e2, t2, n2, K$f, f2, ""), n2 = I$k(n2, "{/snippet}");
20870
+ n2 = I$k(n2, "{#snippet note()}"), n2 = Ba$1(e2, t2, n2, K$f, u2, ""), n2 = I$k(n2, "{/snippet}");
20871
20871
  } finally {
20872
20872
  ys = false;
20873
20873
  }
20874
- e2.move_to(u2);
20874
+ e2.move_to(f2);
20875
20875
  }
20876
20876
  return n2 = I$k(n2, go(e2) + i2), Wt$3(
20877
20877
  e2,
@@ -20899,32 +20899,32 @@ function _o(e2, t2, n2, r3, s2) {
20899
20899
  const i2 = r3 === 0, o2 = r3 === 1 ? 3 : 6;
20900
20900
  let l2 = i2 ? ae$5 : d$7;
20901
20901
  n2 !== 0 && (l2 += q$h[n2]);
20902
- let a2 = "", c2 = 0, u2 = 0;
20903
- const f2 = e2.words;
20904
- let h2 = f2[
20902
+ let a2 = "", c2 = 0, f2 = 0;
20903
+ const u2 = e2.words;
20904
+ let h2 = u2[
20905
20905
  8
20906
20906
  /* first_child */
20907
20907
  ];
20908
20908
  for (; h2 !== 4294967295; ) {
20909
20909
  const _2 = h2 * 12;
20910
- if (f2[
20910
+ if (u2[
20911
20911
  _2 + 5
20912
20912
  /* parent */
20913
20913
  ] !== 0) break;
20914
- const m2 = f2[_2] & 255;
20914
+ const m2 = u2[_2] & 255;
20915
20915
  if (m2 !== 6 && (e2.move_to(h2), !s2 || !ya$1(e2, m2))) {
20916
20916
  const g2 = t2 === void 0 ? 0 : t2.n;
20917
20917
  i2 ? ae$5 = "" : d$7 = "", n2 = oo(e2, t2, 0, r3, h2, m2);
20918
20918
  let v3 = i2 ? ae$5 : d$7;
20919
- n2 !== 0 && (v3 += q$h[n2]), v3.length === 0 && c2 === 0 ? xs(t2, g2, o2, l2.length) : v3.length === 0 || Id(v3) ? (c2 === 0 && (u2 = g2), xs(t2, g2, o2, a2.length), v3.length !== 0 && (a2 += v3, c2++)) : (l2 = ll(l2, a2, c2, t2, u2, g2, o2), a2 = "", c2 = 0, xs(t2, g2, o2, l2.length), l2 += v3);
20919
+ n2 !== 0 && (v3 += q$h[n2]), v3.length === 0 && c2 === 0 ? xs(t2, g2, o2, l2.length) : v3.length === 0 || Id(v3) ? (c2 === 0 && (f2 = g2), xs(t2, g2, o2, a2.length), v3.length !== 0 && (a2 += v3, c2++)) : (l2 = ll(l2, a2, c2, t2, f2, g2, o2), a2 = "", c2 = 0, xs(t2, g2, o2, l2.length), l2 += v3);
20920
20920
  }
20921
- h2 = f2[
20921
+ h2 = u2[
20922
20922
  _2 + 6
20923
20923
  /* next */
20924
20924
  ];
20925
20925
  }
20926
20926
  const p2 = t2 === void 0 ? 0 : t2.n;
20927
- return l2 = ll(l2, a2, c2, t2, u2, p2, o2), i2 ? ae$5 = l2 : d$7 = l2, e2.move_to(0), 0;
20927
+ return l2 = ll(l2, a2, c2, t2, f2, p2, o2), i2 ? ae$5 = l2 : d$7 = l2, e2.move_to(0), 0;
20928
20928
  }
20929
20929
  function ll(e2, t2, n2, r3, s2, i2, o2) {
20930
20930
  return n2 === 0 ? e2 : n2 === 1 ? (Js$1(r3, s2, i2, o2, e2.length), e2 + t2) : (Js$1(r3, s2, i2, o2, e2.length + ol.length), e2 + ol + t2 + Td);
@@ -21086,8 +21086,8 @@ function Ma$1(e2, t2, n2, r3, s2 = null) {
21086
21086
  }
21087
21087
  if (a2 !== null)
21088
21088
  throw new Vd(c2, a2);
21089
- const f2 = i2 || o2.problems.length === 0 ? o2 : Rn$3(e2, true);
21090
- return f2.warnings = l2, s2 !== null && (f2.moved = s2), n2 !== void 0 && (n2.label !== void 0 && (f2.label = n2.label), n2.back_label !== void 0 && (f2.back_label = n2.back_label)), f2;
21089
+ const u2 = i2 || o2.problems.length === 0 ? o2 : Rn$3(e2, true);
21090
+ return u2.warnings = l2, s2 !== null && (u2.moved = s2), n2 !== void 0 && (n2.label !== void 0 && (u2.label = n2.label), n2.back_label !== void 0 && (u2.back_label = n2.back_label)), u2;
21091
21091
  }
21092
21092
  const ul = "[mdsvex] smart_punctuation must be true, false or an object with quotes, dashes and ellipses";
21093
21093
  function ks$1(e2) {
@@ -21190,11 +21190,11 @@ function Wa$1(e2) {
21190
21190
  function Sr$1(e2, t2, n2) {
21191
21191
  let r3 = null, s2 = null, i2 = null, o2 = Xd, l2 = e2.first_child_at(0);
21192
21192
  for (; l2 !== Gt$2; ) {
21193
- let u2 = Gt$2;
21193
+ let f2 = Gt$2;
21194
21194
  if (e2.kind_at(l2) === Kl) {
21195
- const f2 = e2.metadata_at(l2)?.src;
21196
- if (typeof f2 == "string" && f2 !== "" && (r3 === null && (r3 = /* @__PURE__ */ new Map()), !r3.has(f2))) {
21197
- let h2 = Jd(f2);
21195
+ const u2 = e2.metadata_at(l2)?.src;
21196
+ if (typeof u2 == "string" && u2 !== "" && (r3 === null && (r3 = /* @__PURE__ */ new Map()), !r3.has(u2))) {
21197
+ let h2 = Jd(u2);
21198
21198
  const p2 = n2 && h2 !== null ? Kd(h2) : null;
21199
21199
  p2 !== null && (h2 = p2);
21200
21200
  let _2 = null;
@@ -21207,21 +21207,21 @@ function Sr$1(e2, t2, n2) {
21207
21207
  _2 = m2;
21208
21208
  else {
21209
21209
  const g2 = o2 + i2.length, v3 = p2 === null ? { type: "expression", value: g2 } : { type: "picture", value: g2 };
21210
- s2.set(h2, v3), _2 = v3, i2.push({ type: "image", url: f2, specifier: h2, name: g2 });
21210
+ s2.set(h2, v3), _2 = v3, i2.push({ type: "image", url: u2, specifier: h2, name: g2 });
21211
21211
  }
21212
21212
  }
21213
- r3.set(f2, _2);
21213
+ r3.set(u2, _2);
21214
21214
  }
21215
21215
  } else
21216
- u2 = e2.first_child_at(l2);
21217
- if (u2 !== Gt$2) {
21218
- l2 = u2;
21216
+ f2 = e2.first_child_at(l2);
21217
+ if (f2 !== Gt$2) {
21218
+ l2 = f2;
21219
21219
  continue;
21220
21220
  }
21221
21221
  for (; ; ) {
21222
- const f2 = e2.next_at(l2), h2 = e2.parent_at(l2);
21223
- if (f2 !== Gt$2 && e2.parent_at(f2) === h2) {
21224
- l2 = f2;
21222
+ const u2 = e2.next_at(l2), h2 = e2.parent_at(l2);
21223
+ if (u2 !== Gt$2 && e2.parent_at(u2) === h2) {
21224
+ l2 = u2;
21225
21225
  break;
21226
21226
  }
21227
21227
  if (h2 === 0 || h2 === Gt$2) {
@@ -21234,13 +21234,13 @@ function Sr$1(e2, t2, n2) {
21234
21234
  if (i2 === null)
21235
21235
  return null;
21236
21236
  const a2 = [];
21237
- for (let u2 = 0; u2 < i2.length; u2++)
21238
- a2.push("import " + i2[u2].name + " from " + Zs$1(i2[u2].specifier) + ";");
21237
+ for (let f2 = 0; f2 < i2.length; f2++)
21238
+ a2.push("import " + i2[f2].name + " from " + Zs$1(i2[f2].specifier) + ";");
21239
21239
  const c2 = r3;
21240
21240
  return {
21241
21241
  needs: i2,
21242
21242
  lines: a2,
21243
- lookup: (u2, f2) => f2 ? c2.get(u2) : void 0
21243
+ lookup: (f2, u2) => u2 ? c2.get(f2) : void 0
21244
21244
  };
21245
21245
  }
21246
21246
  const Ht$2 = 4294967295, Qd = /^[a-zA-Z][a-zA-Z0-9+.-]*:/, eh = /^[A-Za-z_$][\w$]*$/, th = /^\+page(?:@.*)?$/, Za$1 = [".md", ".svx"];
@@ -21345,22 +21345,22 @@ function sh(e2, t2, n2) {
21345
21345
  for (let h2 = 0; h2 < c2.length; h2++)
21346
21346
  if (a2[h2] !== c2[h2])
21347
21347
  return null;
21348
- let u2 = "";
21349
- const f2 = a2.length - 1;
21350
- for (let h2 = c2.length; h2 <= f2; h2++) {
21348
+ let f2 = "";
21349
+ const u2 = a2.length - 1;
21350
+ for (let h2 = c2.length; h2 <= u2; h2++) {
21351
21351
  const p2 = a2[h2];
21352
21352
  if (p2.indexOf("[") !== -1)
21353
21353
  return null;
21354
- if (h2 === f2 && (p2 === "index" || th.test(p2)))
21354
+ if (h2 === u2 && (p2 === "index" || th.test(p2)))
21355
21355
  break;
21356
- p2.charCodeAt(0) === 40 && p2.charCodeAt(p2.length - 1) === 41 || (u2 += "/" + p2);
21356
+ p2.charCodeAt(0) === 40 && p2.charCodeAt(p2.length - 1) === 41 || (f2 += "/" + p2);
21357
21357
  }
21358
- return (u2 === "" ? "/" : u2) + e2.slice(s2);
21358
+ return (f2 === "" ? "/" : f2) + e2.slice(s2);
21359
21359
  }
21360
21360
  const ih = "__mdsvex_base";
21361
21361
  function Xa$1(e2, t2, n2, r3, s2) {
21362
- let i2 = null, o2 = null, l2 = null, a2 = null, c2 = e2.routes === null || r3 === void 0 ? false : null, u2 = null;
21363
- const f2 = e2.rewrite, h2 = e2.base, p2 = e2.resolver;
21362
+ let i2 = null, o2 = null, l2 = null, a2 = null, c2 = e2.routes === null || r3 === void 0 ? false : null, f2 = null;
21363
+ const u2 = e2.rewrite, h2 = e2.base, p2 = e2.resolver;
21364
21364
  let _2 = t2.first_child_at(0);
21365
21365
  for (; _2 !== Ht$2; ) {
21366
21366
  const v3 = t2.kind_at(_2), x2 = v3 === Kl, $2 = x2 ? Ht$2 : t2.first_child_at(_2);
@@ -21370,8 +21370,8 @@ function Xa$1(e2, t2, n2, r3, s2) {
21370
21370
  y2.indexOf("{") === -1 && (!x2 || s2 === null || s2(y2, true) == null)) {
21371
21371
  C3.add(y2);
21372
21372
  let k2 = y2;
21373
- if (!x2 && c2 !== false && (c2 === null && (c2 = bo(r3, []) ?? false, c2 !== false && c2.pop()), c2 !== false && (k2 = sh(y2, e2, c2) ?? y2)), f2 !== void 0) {
21374
- const O2 = f2(k2, {
21373
+ if (!x2 && c2 !== false && (c2 === null && (c2 = bo(r3, []) ?? false, c2 !== false && c2.pop()), c2 !== false && (k2 = sh(y2, e2, c2) ?? y2)), u2 !== void 0) {
21374
+ const O2 = u2(k2, {
21375
21375
  filename: r3,
21376
21376
  type: x2 ? "image" : "link",
21377
21377
  written: y2
@@ -21388,12 +21388,12 @@ function Xa$1(e2, t2, n2, r3, s2) {
21388
21388
  else {
21389
21389
  const O2 = Ja$1(k2);
21390
21390
  if (O2 !== null) {
21391
- if (u2 === null)
21392
- for (u2 = ih; n2.indexOf(u2) !== -1; )
21393
- u2 += "_";
21391
+ if (f2 === null)
21392
+ for (f2 = ih; n2.indexOf(f2) !== -1; )
21393
+ f2 += "_";
21394
21394
  w2 = {
21395
21395
  type: "expression",
21396
- value: u2 + "(" + Zs$1(O2) + ")"
21396
+ value: f2 + "(" + Zs$1(O2) + ")"
21397
21397
  };
21398
21398
  }
21399
21399
  }
@@ -21421,8 +21421,8 @@ function Xa$1(e2, t2, n2, r3, s2) {
21421
21421
  return null;
21422
21422
  const m2 = i2, g2 = o2;
21423
21423
  return {
21424
- lines: u2 === null ? void 0 : [
21425
- (p2.import === "default" ? "import " + u2 : "import { " + p2.import + " as " + u2 + " }") + " from " + Zs$1(p2.from) + ";"
21424
+ lines: f2 === null ? void 0 : [
21425
+ (p2.import === "default" ? "import " + f2 : "import { " + p2.import + " as " + f2 + " }") + " from " + Zs$1(p2.from) + ";"
21426
21426
  ],
21427
21427
  lookup: (v3, x2) => x2 ? g2 === null ? void 0 : g2.get(v3) : m2 === null ? void 0 : m2.get(v3)
21428
21428
  };
@@ -21516,11 +21516,11 @@ function nc(e2, t2, n2, r3) {
21516
21516
  throw $t$1("run_eval", `A block is live with [!eval] or runs with ${Dt$3}, not both, its {...} groups mean different things in each`, t2, n2, r3);
21517
21517
  }
21518
21518
  function rc(e2, t2, n2, r3, s2) {
21519
- let i2 = null, o2 = null, l2 = null, a2 = null, c2 = null, u2 = false, f2 = e2.first_child_at(0);
21520
- for (; f2 !== wt$3; ) {
21519
+ let i2 = null, o2 = null, l2 = null, a2 = null, c2 = null, f2 = false, u2 = e2.first_child_at(0);
21520
+ for (; u2 !== wt$3; ) {
21521
21521
  let h2 = wt$3;
21522
- if (e2.kind_at(f2) === Fu) {
21523
- const p2 = e2.metadata_at(f2);
21522
+ if (e2.kind_at(u2) === Fu) {
21523
+ const p2 = e2.metadata_at(u2);
21524
21524
  let _2 = p2?.info;
21525
21525
  if (!_2 && p2 != null) {
21526
21526
  const m2 = p2.info_start, g2 = p2.info_end;
@@ -21529,7 +21529,7 @@ function rc(e2, t2, n2, r3, s2) {
21529
21529
  if (_2) {
21530
21530
  const m2 = ec(_2);
21531
21531
  let g2 = m2 === -1 ? _2 : _2.slice(0, m2);
21532
- g2 === "math" && (u2 = true);
21532
+ g2 === "math" && (f2 = true);
21533
21533
  const v3 = _2.indexOf("src=");
21534
21534
  if ((r3 || v3 === -1) && (v3 !== -1 || _2.indexOf(Dt$3) !== -1)) {
21535
21535
  let x2 = m2 === -1 ? "" : _2.slice(m2);
@@ -21541,14 +21541,14 @@ function rc(e2, t2, n2, r3, s2) {
21541
21541
  b2 === -1 && w2.startsWith("src=") ? b2 = k2 : y2 === -1 && (C3 = A$o(w2)) !== 0 && (y2 = k2);
21542
21542
  }
21543
21543
  if (b2 !== -1 || y2 !== -1) {
21544
- const k2 = e2.start_at(f2);
21544
+ const k2 = e2.start_at(u2);
21545
21545
  let w2 = "", O2 = "", R2 = 0, W2 = 0, D2 = "";
21546
- const z2 = e2.value_start_at(f2), V3 = e2.value_end_at(f2);
21546
+ const z2 = e2.value_start_at(u2), V3 = e2.value_end_at(u2);
21547
21547
  if (b2 !== -1) {
21548
- if (O2 = ah($2[b2].slice(4)), { spec: w2, from: R2, to: W2 } = ch2(O2, n2, t2, k2), V3 > z2 && dl.test(t2.slice(z2, V3)) || e2.first_child_at(f2) !== wt$3 && dl.test(Di$2(e2, f2, t2)))
21548
+ if (O2 = ah($2[b2].slice(4)), { spec: w2, from: R2, to: W2 } = ch2(O2, n2, t2, k2), V3 > z2 && dl.test(t2.slice(z2, V3)) || e2.first_child_at(u2) !== wt$3 && dl.test(Di$2(e2, u2, t2)))
21549
21549
  throw Yt$2("src_body", `A fence with src= shows ${w2}, so it can have no code of its own`, w2, n2, t2, k2);
21550
21550
  } else
21551
- D2 = Di$2(e2, f2, t2);
21551
+ D2 = Di$2(e2, u2, t2);
21552
21552
  let H2 = null;
21553
21553
  if (y2 === -1 || !s2)
21554
21554
  C3 = 0;
@@ -21557,7 +21557,7 @@ function rc(e2, t2, n2, r3, s2) {
21557
21557
  b2 === -1 && (nc(D2, n2, t2, k2), H2 = Zt$2(g2, ne2, D2, Bn$1(t2, k2).line + 1), (c2 ?? (c2 = /* @__PURE__ */ new Set())).has(H2.hash) || (c2.add(H2.hash), (a2 ?? (a2 = [])).push(H2)));
21558
21558
  }
21559
21559
  y2 > b2 ? ($2.splice(y2, 1), b2 !== -1 && $2.splice(b2, 1)) : ($2.splice(b2, 1), y2 !== -1 && $2.splice(y2, 1)), (i2 ?? (i2 = [])).push({
21560
- node: f2,
21560
+ node: u2,
21561
21561
  start: k2,
21562
21562
  spec: w2,
21563
21563
  written: O2,
@@ -21577,25 +21577,25 @@ function rc(e2, t2, n2, r3, s2) {
21577
21577
  }
21578
21578
  }
21579
21579
  } else
21580
- h2 = e2.first_child_at(f2);
21580
+ h2 = e2.first_child_at(u2);
21581
21581
  if (h2 !== wt$3) {
21582
- f2 = h2;
21582
+ u2 = h2;
21583
21583
  continue;
21584
21584
  }
21585
21585
  for (; ; ) {
21586
- const p2 = e2.next_at(f2), _2 = e2.parent_at(f2);
21586
+ const p2 = e2.next_at(u2), _2 = e2.parent_at(u2);
21587
21587
  if (p2 !== wt$3 && e2.parent_at(p2) === _2) {
21588
- f2 = p2;
21588
+ u2 = p2;
21589
21589
  break;
21590
21590
  }
21591
21591
  if (_2 === 0 || _2 === wt$3) {
21592
- f2 = wt$3;
21592
+ u2 = wt$3;
21593
21593
  break;
21594
21594
  }
21595
- f2 = _2;
21595
+ u2 = _2;
21596
21596
  }
21597
21597
  }
21598
- return i2 === null ? null : { needs: o2 ?? [], fences: i2, math: u2, snippets: a2 };
21598
+ return i2 === null ? null : { needs: o2 ?? [], fences: i2, math: f2, snippets: a2 };
21599
21599
  }
21600
21600
  const sc = Object.prototype.hasOwnProperty;
21601
21601
  function fh(e2, t2) {
@@ -21612,43 +21612,43 @@ function fh(e2, t2) {
21612
21612
  function ic(e2, t2, n2, r3, s2) {
21613
21613
  const i2 = /* @__PURE__ */ new Map(), o2 = e2.fences;
21614
21614
  let l2 = null, a2, c2 = -1;
21615
- for (let u2 = 0; u2 < o2.length; u2++) {
21616
- const f2 = o2[u2], h2 = f2.spec;
21617
- let p2 = f2.text, _2 = f2.lang, m2;
21615
+ for (let f2 = 0; f2 < o2.length; f2++) {
21616
+ const u2 = o2[f2], h2 = u2.spec;
21617
+ let p2 = u2.text, _2 = u2.lang, m2;
21618
21618
  if (h2 !== "") {
21619
21619
  if (t2 === void 0 || !sc.call(t2, h2))
21620
- throw Yt$2("src_missing", `No text was given for ${h2}, pass it in the sources option`, h2, r3, n2, f2.start);
21620
+ throw Yt$2("src_missing", `No text was given for ${h2}, pass it in the sources option`, h2, r3, n2, u2.start);
21621
21621
  if (p2 = t2[h2], typeof p2 != "string")
21622
21622
  throw new TypeError(`[mdsvex] sources[${JSON.stringify(h2)}] must be the text of the file`);
21623
- if (f2.from === 0)
21623
+ if (u2.from === 0)
21624
21624
  p2.charCodeAt(0) === 65279 && (p2 = p2.slice(1)), p2.indexOf("\r") !== -1 && (p2 = p2.replace(/\r\n?/g, `
21625
21625
  `)), p2.charCodeAt(p2.length - 1) === 10 && (p2 = p2.slice(0, -1));
21626
21626
  else {
21627
21627
  let g2 = (l2 ?? (l2 = /* @__PURE__ */ new Map())).get(h2);
21628
21628
  g2 === void 0 && (g2 = (p2.charCodeAt(0) === 65279 ? p2.slice(1) : p2).split(/\r\n?|\n/), g2[g2.length - 1] === "" && g2.pop(), l2.set(h2, g2));
21629
- const v3 = f2.to === 0 ? g2.length : f2.to;
21630
- if (f2.from > g2.length || v3 > g2.length)
21631
- throw Yt$2("src_slice", `${f2.written} asks for ${f2.from === v3 ? "line " + v3 : "lines " + f2.from + " to " + v3}, ${h2} has ${g2.length}`, h2, r3, n2, f2.start);
21632
- p2 = g2.slice(f2.from - 1, v3).join(`
21629
+ const v3 = u2.to === 0 ? g2.length : u2.to;
21630
+ if (u2.from > g2.length || v3 > g2.length)
21631
+ throw Yt$2("src_slice", `${u2.written} asks for ${u2.from === v3 ? "line " + v3 : "lines " + u2.from + " to " + v3}, ${h2} has ${g2.length}`, h2, r3, n2, u2.start);
21632
+ p2 = g2.slice(u2.from - 1, v3).join(`
21633
21633
  `);
21634
21634
  }
21635
- _2 === "" && (_2 = tc(h2)), m2 = " src={" + JSON.stringify(f2.written) + "}";
21635
+ _2 === "" && (_2 = tc(h2)), m2 = " src={" + JSON.stringify(u2.written) + "}";
21636
21636
  }
21637
- if (f2.run !== 0 && s2 !== false) {
21638
- c2 === -1 && (c2 = f2.start);
21637
+ if (u2.run !== 0 && s2 !== false) {
21638
+ c2 === -1 && (c2 = u2.start);
21639
21639
  let g2 = h2, v3;
21640
- const x2 = f2.snippet;
21641
- if (x2 === null ? (nc(p2, r3, n2, f2.start), v3 = Vt$3(et$5(`src
21642
- ` + h2))) : (g2 = dh(x2, s2, r3, n2, f2.start), v3 = Vt$3(x2.hash)), f2.run === 2)
21640
+ const x2 = u2.snippet;
21641
+ if (x2 === null ? (nc(p2, r3, n2, u2.start), v3 = Vt$3(et$5(`src
21642
+ ` + h2))) : (g2 = dh(x2, s2, r3, n2, u2.start), v3 = Vt$3(x2.hash)), u2.run === 2)
21643
21643
  m2 = (m2 ?? "") + " load={() => import(" + JSON.stringify(g2) + ")}";
21644
21644
  else {
21645
21645
  const $2 = "import * as " + v3 + " from " + JSON.stringify(g2) + ";";
21646
21646
  a2 === void 0 ? a2 = [$2] : a2.includes($2) || a2.push($2), m2 = (m2 ?? "") + " module={" + v3 + "}";
21647
21647
  }
21648
21648
  }
21649
- i2.set(f2.node, {
21649
+ i2.set(u2.node, {
21650
21650
  text: p2,
21651
- info: f2.rest === "" ? _2 : _2 + " " + f2.rest,
21651
+ info: u2.rest === "" ? _2 : _2 + " " + u2.rest,
21652
21652
  props: m2
21653
21653
  });
21654
21654
  }
@@ -21716,11 +21716,11 @@ const as$1 = Kn$1();
21716
21716
  function Qn$1(e2) {
21717
21717
  const t2 = e2.component_mode;
21718
21718
  Pa$2(void 0, t2);
21719
- const n2 = e2.strict_directives, r3 = e2.plugins, s2 = e2.parse_plugins, i2 = e2.components, o2 = e2.directives, l2 = e2.frontmatter?.parse, a2 = Lh(e2) ? e2 : void 0, c2 = e2.highlight, u2 = e2.filename, f2 = e2.unwrap_images, h2 = e2.heading_ids, p2 = e2.smart_punctuation, _2 = e2.math, m2 = e2.footnotes, g2 = e2.import_images, v3 = e2.wrap_static, x2 = e2.rewrite, $2 = e2.links, b2 = e2.sources, y2 = e2.snippets, C3 = e2.read, k2 = e2.resolve;
21720
- if (r3 === void 0 && s2 === void 0 && i2 === void 0 && o2 === void 0 && t2 === void 0 && l2 === void 0 && a2 === void 0 && n2 === void 0 && c2 === void 0 && u2 === void 0 && f2 === void 0 && h2 === void 0 && p2 === void 0 && _2 === void 0 && m2 === void 0 && g2 === void 0 && v3 === void 0 && x2 === void 0 && $2 === void 0 && b2 === void 0 && y2 === void 0 && C3 === void 0 && k2 === void 0)
21719
+ const n2 = e2.strict_directives, r3 = e2.plugins, s2 = e2.parse_plugins, i2 = e2.components, o2 = e2.directives, l2 = e2.frontmatter?.parse, a2 = Nh(e2) ? e2 : void 0, c2 = e2.highlight, f2 = e2.filename, u2 = e2.unwrap_images, h2 = e2.heading_ids, p2 = e2.smart_punctuation, _2 = e2.math, m2 = e2.footnotes, g2 = e2.import_images, v3 = e2.wrap_static, x2 = e2.rewrite, $2 = e2.links, b2 = e2.sources, y2 = e2.snippets, C3 = e2.read, k2 = e2.resolve;
21720
+ if (r3 === void 0 && s2 === void 0 && i2 === void 0 && o2 === void 0 && t2 === void 0 && l2 === void 0 && a2 === void 0 && n2 === void 0 && c2 === void 0 && f2 === void 0 && u2 === void 0 && h2 === void 0 && p2 === void 0 && _2 === void 0 && m2 === void 0 && g2 === void 0 && v3 === void 0 && x2 === void 0 && $2 === void 0 && b2 === void 0 && y2 === void 0 && C3 === void 0 && k2 === void 0)
21721
21721
  return as$1;
21722
21722
  const w2 = Kn$1();
21723
- return w2.plugins = r3, w2.parse_plugins = s2, w2.components = i2, w2.directives = o2, w2.component_mode = t2, w2.frontmatter_parse = l2, w2.templates = a2, w2.strict_directives = n2 === void 0 ? true : n2, w2.highlight = c2, w2.filename = u2, w2.unwrap_images = f2, h2 !== void 0 && (w2.heading_ids = Ga$1(h2)), p2 !== void 0 && (w2.smart_punctuation = Fa$1(p2)), w2.math = _2, m2 !== void 0 && (w2.footnotes = lc(m2)), w2.wrap_static = v3, g2 !== void 0 && (w2.import_images = Wa$1(g2), w2.enhanced_images = oc(g2)), (x2 !== void 0 || $2 !== void 0) && (w2.links = rh(x2, $2)), w2.sources = b2, w2.read = C3, w2.resolve = k2, w2.snippets = y2, w2;
21723
+ return w2.plugins = r3, w2.parse_plugins = s2, w2.components = i2, w2.directives = o2, w2.component_mode = t2, w2.frontmatter_parse = l2, w2.templates = a2, w2.strict_directives = n2 === void 0 ? true : n2, w2.highlight = c2, w2.filename = f2, w2.unwrap_images = u2, h2 !== void 0 && (w2.heading_ids = Ga$1(h2)), p2 !== void 0 && (w2.smart_punctuation = Fa$1(p2)), w2.math = _2, m2 !== void 0 && (w2.footnotes = lc(m2)), w2.wrap_static = v3, g2 !== void 0 && (w2.import_images = Wa$1(g2), w2.enhanced_images = oc(g2)), (x2 !== void 0 || $2 !== void 0) && (w2.links = rh(x2, $2)), w2.sources = b2, w2.read = C3, w2.resolve = k2, w2.snippets = y2, w2;
21724
21724
  }
21725
21725
  function oc(e2) {
21726
21726
  return typeof e2 == "object" && e2.enhanced === true;
@@ -21759,6 +21759,14 @@ class Es {
21759
21759
  }
21760
21760
  }
21761
21761
  const pl = /* @__PURE__ */ new WeakMap();
21762
+ function Dh(e2, t2) {
21763
+ if (e2.length !== t2.length)
21764
+ return false;
21765
+ for (let n2 = 0; n2 < t2.length; n2++)
21766
+ if (e2[n2] !== t2[n2])
21767
+ return false;
21768
+ return true;
21769
+ }
21762
21770
  function et$4(e2, t2, n2) {
21763
21771
  const r3 = typeof t2 == "object" && t2 !== null ? t2.name : void 0;
21764
21772
  return new Error(`[mdsvex] plugins[${e2}]` + (typeof r3 == "string" ? ` (${r3})` : "") + " " + n2);
@@ -21768,53 +21776,53 @@ function yn$1(e2) {
21768
21776
  }
21769
21777
  function cc(e2) {
21770
21778
  const t2 = pl.get(e2);
21771
- if (t2 !== void 0)
21779
+ if (t2 !== void 0 && Dh(e2, t2.from))
21772
21780
  return t2;
21773
21781
  if (!Array.isArray(e2))
21774
21782
  throw new Error("[mdsvex] plugins must be an array of plugins");
21775
21783
  const n2 = [], r3 = [], s2 = [], i2 = [], o2 = /* @__PURE__ */ new Map();
21776
21784
  let l2 = null;
21777
21785
  for (let c2 = 0; c2 < e2.length; c2++) {
21778
- const u2 = e2[c2];
21779
- if (!yn$1(u2))
21780
- throw et$4(c2, u2, "must be an object, call the plugin");
21781
- if (typeof u2.name != "string" || u2.name === "")
21782
- throw et$4(c2, u2, "needs a name");
21783
- const f2 = u2.directives;
21784
- if (f2 !== void 0) {
21785
- if (!yn$1(f2))
21786
- throw et$4(c2, u2, "directives must be an object keyed by directive name");
21787
- const p2 = Object.keys(f2);
21786
+ const f2 = e2[c2];
21787
+ if (!yn$1(f2))
21788
+ throw et$4(c2, f2, "must be an object, call the plugin");
21789
+ if (typeof f2.name != "string" || f2.name === "")
21790
+ throw et$4(c2, f2, "needs a name");
21791
+ const u2 = f2.directives;
21792
+ if (u2 !== void 0) {
21793
+ if (!yn$1(u2))
21794
+ throw et$4(c2, f2, "directives must be an object keyed by directive name");
21795
+ const p2 = Object.keys(u2);
21788
21796
  for (const _2 of p2) {
21789
- if (!yn$1(f2[_2]))
21790
- throw et$4(c2, u2, `directives.${_2} must be an object`);
21797
+ if (!yn$1(u2[_2]))
21798
+ throw et$4(c2, f2, `directives.${_2} must be an object`);
21791
21799
  const m2 = o2.get(_2);
21792
21800
  if (m2 !== void 0)
21793
- throw new mr$2(_2, [m2, u2.name]);
21794
- o2.set(_2, u2.name);
21801
+ throw new mr$2(_2, [m2, f2.name]);
21802
+ o2.set(_2, f2.name);
21795
21803
  }
21796
21804
  if (p2.length !== 0) {
21797
- if (typeof u2.module != "string" || u2.module === "")
21798
- throw et$4(c2, u2, "needs a module, the specifier its directive components are exported from");
21799
- const _2 = u2[$h];
21800
- r3.push(_2 === void 0 || _2.length === 0 ? { specifier: u2.module, names: p2 } : { specifier: u2.module, names: p2, static: _2 }), n2.push({ name: u2.name, directives: f2 });
21805
+ if (typeof f2.module != "string" || f2.module === "")
21806
+ throw et$4(c2, f2, "needs a module, the specifier its directive components are exported from");
21807
+ const _2 = f2[$h];
21808
+ r3.push(_2 === void 0 || _2.length === 0 ? { specifier: f2.module, names: p2 } : { specifier: f2.module, names: p2, static: _2 }), n2.push({ name: f2.name, directives: u2 });
21801
21809
  }
21802
21810
  }
21803
- const h2 = u2.components;
21811
+ const h2 = f2.components;
21804
21812
  if (h2 !== void 0) {
21805
21813
  if (!yn$1(h2) || typeof h2.specifier != "string" || !Array.isArray(h2.names))
21806
- throw et$4(c2, u2, "components must be { specifier, names }");
21814
+ throw et$4(c2, f2, "components must be { specifier, names }");
21807
21815
  s2.push(h2);
21808
21816
  }
21809
- if (u2.parse !== void 0) {
21810
- if (!yn$1(u2.parse))
21811
- throw et$4(c2, u2, "parse must be a parse plugin");
21812
- i2.push(u2.parse.name === u2.name ? u2.parse : { ...u2.parse, name: u2.name });
21817
+ if (f2.parse !== void 0) {
21818
+ if (!yn$1(f2.parse))
21819
+ throw et$4(c2, f2, "parse must be a parse plugin");
21820
+ i2.push(f2.parse.name === f2.name ? f2.parse : { ...f2.parse, name: f2.name });
21813
21821
  }
21814
- if (u2.fences !== void 0) {
21815
- const p2 = Rd(u2.fences, u2.name, l2 ?? (l2 = /* @__PURE__ */ new Map()));
21822
+ if (f2.fences !== void 0) {
21823
+ const p2 = Rd(f2.fences, f2.name, l2 ?? (l2 = /* @__PURE__ */ new Map()));
21816
21824
  if (p2 !== null)
21817
- throw et$4(c2, u2, p2);
21825
+ throw et$4(c2, f2, p2);
21818
21826
  }
21819
21827
  }
21820
21828
  const a2 = {
@@ -21823,7 +21831,8 @@ function cc(e2) {
21823
21831
  directives: new Es(r3),
21824
21832
  components: new Es(s2),
21825
21833
  parse: new Es(i2),
21826
- fences: l2 === null ? null : new zd(l2)
21834
+ fences: l2 === null ? null : new zd(l2),
21835
+ from: e2.slice()
21827
21836
  };
21828
21837
  return pl.set(e2, a2), a2;
21829
21838
  }
@@ -21840,7 +21849,7 @@ function uc(e2) {
21840
21849
  let t2 = gl.get(e2);
21841
21850
  return t2 === void 0 && (t2 = new dn$2(e2, "D_G"), gl.set(e2, t2)), t2;
21842
21851
  }
21843
- const Dh = [
21852
+ const Lh = [
21844
21853
  "directive_inline",
21845
21854
  "directive_leaf",
21846
21855
  "directive_container"
@@ -21855,15 +21864,15 @@ function fc(e2, t2) {
21855
21864
  for (let s2 = 0; s2 < e2.length; s2++) {
21856
21865
  const i2 = e2[s2];
21857
21866
  let o2 = null;
21858
- for (const l2 of Dh) {
21867
+ for (const l2 of Lh) {
21859
21868
  const a2 = i2[l2];
21860
21869
  if (typeof a2 != "object" || typeof a2.parse != "function")
21861
21870
  continue;
21862
21871
  const c2 = a2.parse;
21863
21872
  o2 ?? (o2 = { ...i2 }), o2[l2] = {
21864
- parse(u2, f2) {
21865
- const h2 = u2.attrs.name;
21866
- return typeof h2 == "string" && t2.get(h2) !== void 0 ? void 0 : c2(u2, f2);
21873
+ parse(f2, u2) {
21874
+ const h2 = f2.attrs.name;
21875
+ return typeof h2 == "string" && t2.get(h2) !== void 0 ? void 0 : c2(f2, u2);
21867
21876
  }
21868
21877
  };
21869
21878
  }
@@ -21872,45 +21881,45 @@ function fc(e2, t2) {
21872
21881
  return ml.set(e2, { scope: t2, plugins: r3 }), r3;
21873
21882
  }
21874
21883
  const En$1 = Object.prototype.hasOwnProperty;
21875
- function Lh(e2) {
21884
+ function Nh(e2) {
21876
21885
  return e2 !== void 0 && (e2.templates !== void 0 || e2.template !== void 0 || e2.select_template !== void 0 || e2.default_template !== void 0);
21877
21886
  }
21878
- function dc(e2, t2, n2, r3) {
21879
- const s2 = e2 !== void 0 && En$1.call(e2, "template");
21887
+ function dc(e2, t2, n2, r3, s2) {
21888
+ const i2 = e2 !== void 0 && En$1.call(e2, "template");
21880
21889
  if (t2 === void 0) {
21881
- if (!s2)
21890
+ if (!i2)
21882
21891
  return;
21883
21892
  t2 = {};
21884
21893
  }
21885
- let i2 = t2.template, o2 = "the template option";
21886
- if (i2 === void 0 && s2 && (i2 = e2.template, o2 = "frontmatter", i2 !== false && typeof i2 != "string"))
21887
- throw hr$1(n2, r3, "template", `template must be the name of a template or false, got ${JSON.stringify(i2)}`);
21888
- if (i2 === void 0 && t2.select_template !== void 0 && (i2 = t2.select_template(e2 ?? {}), o2 = "select_template", i2 !== void 0 && i2 !== false && typeof i2 != "string"))
21889
- throw new Error(`[mdsvex] select_template must return a template name, false or undefined, it returned ${JSON.stringify(i2)}`);
21890
- const l2 = t2.templates;
21891
- if (i2 === void 0)
21894
+ let o2 = t2.template, l2 = "the template option";
21895
+ if (o2 === void 0 && i2 && (o2 = e2.template, l2 = "frontmatter", o2 !== false && typeof o2 != "string"))
21896
+ throw hr$1(r3, s2, "template", `template must be the name of a template or false, got ${JSON.stringify(o2)}`);
21897
+ if (o2 === void 0 && t2.select_template !== void 0 && (o2 = t2.select_template(n2, e2 ?? {}), l2 = "select_template", o2 !== void 0 && o2 !== false && typeof o2 != "string"))
21898
+ throw new Error(`[mdsvex] select_template must return a template name, false or undefined, it returned ${JSON.stringify(o2)}`);
21899
+ const a2 = t2.templates;
21900
+ if (o2 === void 0)
21892
21901
  if (t2.default_template !== void 0)
21893
- i2 = t2.default_template, o2 = "default_template";
21894
- else if (l2 !== void 0 && En$1.call(l2, "default"))
21895
- i2 = "default";
21902
+ o2 = t2.default_template, l2 = "default_template";
21903
+ else if (a2 !== void 0 && En$1.call(a2, "default"))
21904
+ o2 = "default";
21896
21905
  else
21897
21906
  return;
21898
- if (i2 === false)
21907
+ if (o2 === false)
21899
21908
  return;
21900
- if ((l2 !== void 0 && En$1.call(l2, i2) ? l2[i2] : void 0) === void 0) {
21901
- const c2 = l2 === void 0 ? [] : Object.keys(l2), u2 = `Unknown template ${JSON.stringify(i2)} from ${o2}. ` + (c2.length === 0 ? "No templates are configured" : `Known templates: ${c2.join(", ")}`);
21902
- throw o2 === "frontmatter" ? hr$1(n2, r3, "template", u2) : new Error("[mdsvex] " + u2);
21909
+ if ((a2 !== void 0 && En$1.call(a2, o2) ? a2[o2] : void 0) === void 0) {
21910
+ const f2 = a2 === void 0 ? [] : Object.keys(a2), u2 = `Unknown template ${JSON.stringify(o2)} from ${l2}. ` + (f2.length === 0 ? "No templates are configured" : `Known templates: ${f2.join(", ")}`);
21911
+ throw l2 === "frontmatter" ? hr$1(r3, s2, "template", u2) : new Error("[mdsvex] " + u2);
21903
21912
  }
21904
21913
  if (e2 !== void 0 && En$1.call(e2, "children"))
21905
- throw hr$1(n2, r3, "children", `The frontmatter key children collides with the children of template ${JSON.stringify(i2)}, rename it`);
21906
- return i2;
21914
+ throw hr$1(r3, s2, "children", `The frontmatter key children collides with the children of template ${JSON.stringify(o2)}, rename it`);
21915
+ return o2;
21907
21916
  }
21908
21917
  function hr$1(e2, t2, n2, r3) {
21909
21918
  const s2 = e2.first_child_at(0), i2 = Uh$1(t2, e2.value_start_at(s2), e2.value_end_at(s2), n2);
21910
21919
  return new Mi$2(`${r3} (frontmatter line ${i2})`, i2, 1);
21911
21920
  }
21912
21921
  const _l = /* @__PURE__ */ new WeakMap();
21913
- function Nh(e2, t2) {
21922
+ function Oh(e2, t2) {
21914
21923
  const n2 = e2.components;
21915
21924
  if (n2 === void 0 || n2.length === 0)
21916
21925
  return t2;
@@ -21947,17 +21956,17 @@ function pc(e2, t2) {
21947
21956
  const i2 = s2.length === 0 ? e2 : new dn$2(s2, "R", e2);
21948
21957
  return vl.set(n2, { root: e2, scope: i2 }), i2;
21949
21958
  }
21950
- function Oh(e2, t2, n2, r3, s2, i2) {
21951
- const o2 = dc(n2, r3, s2, i2);
21952
- if (o2 === void 0) {
21959
+ function Th(e2, t2, n2, r3, s2, i2, o2) {
21960
+ const l2 = dc(n2, r3, s2, i2, o2);
21961
+ if (l2 === void 0) {
21953
21962
  e2.scope = t2;
21954
21963
  return;
21955
21964
  }
21956
- const l2 = r3.templates[o2];
21957
- return e2.scope = Nh(l2, t2), e2.directives = hc(l2, e2.directives), e2.template = {
21958
- specifier: l2.specifier,
21965
+ const a2 = r3.templates[l2];
21966
+ return e2.scope = Oh(a2, t2), e2.directives = hc(a2, e2.directives), e2.template = {
21967
+ specifier: a2.specifier,
21959
21968
  metadata: n2 !== void 0
21960
- }, o2;
21969
+ }, l2;
21961
21970
  }
21962
21971
  let $s$1 = null, Pn$1 = null;
21963
21972
  function gc() {
@@ -21965,7 +21974,7 @@ function gc() {
21965
21974
  return Pn$1 = null, e2;
21966
21975
  }
21967
21976
  let Ks$1 = null, Qs$1 = null;
21968
- function Th() {
21977
+ function Ih() {
21969
21978
  const e2 = Qs$1;
21970
21979
  return e2 === null ? new fr$1({ cache: false }) : (Qs$1 = null, e2);
21971
21980
  }
@@ -21982,7 +21991,7 @@ class mc {
21982
21991
  */
21983
21992
  start(t2, n2, r3) {
21984
21993
  const s2 = this.dispatcher;
21985
- s2.allow_async = r3, s2.async_hint = Vh, this.read = n2.read, this.resolve = n2.resolve, this.pending = null, this.source = t2, this.filename = n2.filename, this.parse = n2.frontmatter_parse, this.parsed_frontmatter = false, this.metadata = void 0, this.exported = void 0, this.dispatcher.set_document(this);
21994
+ s2.allow_async = r3, s2.async_hint = Bh, this.read = n2.read, this.resolve = n2.resolve, this.pending = null, this.source = t2, this.filename = n2.filename, this.parse = n2.frontmatter_parse, this.parsed_frontmatter = false, this.metadata = void 0, this.exported = void 0, this.dispatcher.set_document(this);
21986
21995
  }
21987
21996
  /** parsed once, for the first handler that asks or for the compile after the parse */
21988
21997
  read_frontmatter() {
@@ -21991,7 +22000,7 @@ class mc {
21991
22000
  const t2 = this.tree.get_buffer(), n2 = t2.first_child_at(0);
21992
22001
  if (n2 === Cr$1 || t2.kind_at(n2) !== hi$1 || t2.end_at(n2) === Cr$1)
21993
22002
  return;
21994
- const r3 = Ih$1(this.source, t2.value_start_at(n2), t2.value_end_at(n2), this.parse);
22003
+ const r3 = Ih$1(this.source, t2.value_start_at(n2), t2.value_end_at(n2), this.parse, this.filename);
21995
22004
  return this.parsed_frontmatter = true, this.metadata = r3;
21996
22005
  }
21997
22006
  /**
@@ -22004,7 +22013,7 @@ class mc {
22004
22013
  return;
22005
22014
  const s2 = t2.template;
22006
22015
  try {
22007
- if (this.exported = Lh$1(r3), cs(t2, Gh), s2 === void 0)
22016
+ if (this.exported = Lh$1(r3), cs(t2, Hh), s2 === void 0)
22008
22017
  return;
22009
22018
  if (n2 !== void 0 && En$1.call(n2, dh$1))
22010
22019
  throw hr$1(this.tree.get_buffer(), this.source, dh$1, `The frontmatter key ${dh$1} collides with the prop a template takes what plugins left as, rename it`);
@@ -22033,7 +22042,7 @@ class mc {
22033
22042
  }
22034
22043
  /** a document that waits for its render, the dispatcher holds what they left until then */
22035
22044
  wait(t2, n2) {
22036
- t2._host = this, t2.data = this.dispatcher.data(), t2.dependencies = this.dispatcher.dependencies(), this.pending !== null && (t2._scan = Wh(n2));
22045
+ t2._host = this, t2.data = this.dispatcher.data(), t2.dependencies = this.dispatcher.dependencies(), this.pending !== null && (t2._scan = Zh(n2));
22037
22046
  }
22038
22047
  /**
22039
22048
  * gives a result what the handlers left, their warnings ahead of those of
@@ -22048,8 +22057,8 @@ class mc {
22048
22057
  if (i2 === void 0)
22049
22058
  return;
22050
22059
  const o2 = this.source, l2 = [];
22051
- for (const { plugin: c2, code: u2, message: f2, start: h2 } of i2) {
22052
- const p2 = h2 === void 0 ? { code: u2, message: f2, start: { line: 1, column: 0 } } : Dr$1(u2, f2, h2, o2);
22060
+ for (const { plugin: c2, code: f2, message: u2, start: h2 } of i2) {
22061
+ const p2 = h2 === void 0 ? { code: f2, message: u2, start: { line: 1, column: 0 } } : Dr$1(f2, u2, h2, o2);
22053
22062
  c2 !== void 0 && (p2.plugin = c2), l2.push(p2);
22054
22063
  }
22055
22064
  const a2 = t2.warnings;
@@ -22059,7 +22068,7 @@ class mc {
22059
22068
  function ei$1(e2, t2) {
22060
22069
  t2 !== null && (e2._images = t2, e2.needs = t2.needs);
22061
22070
  }
22062
- function Ih(e2, t2) {
22071
+ function Uh(e2, t2) {
22063
22072
  if (e2 !== null && e2.has_static)
22064
22073
  return true;
22065
22074
  const n2 = t2?.templates;
@@ -22076,11 +22085,11 @@ function Ih(e2, t2) {
22076
22085
  }
22077
22086
  return false;
22078
22087
  }
22079
- function Uh(e2, t2, n2, r3, s2) {
22088
+ function Rh(e2, t2, n2, r3, s2) {
22080
22089
  const i2 = s2.templates;
22081
22090
  let o2 = r3;
22082
22091
  if (i2 !== void 0 || n2 !== void 0) {
22083
- const c2 = dc(n2, i2, e2, t2);
22092
+ const c2 = dc(n2, i2, s2.filename, e2, t2);
22084
22093
  c2 !== void 0 && (o2 = hc(i2.templates[c2], r3));
22085
22094
  }
22086
22095
  if (o2 === null)
@@ -22098,11 +22107,11 @@ function Uh(e2, t2, n2, r3, s2) {
22098
22107
  args: c2.args,
22099
22108
  label: c2.label,
22100
22109
  children: c2.children,
22101
- start: Rh(t2, c2.start)
22110
+ start: zh(t2, c2.start)
22102
22111
  });
22103
22112
  return a2;
22104
22113
  }
22105
- function Rh(e2, t2) {
22114
+ function zh(e2, t2) {
22106
22115
  let n2 = 1;
22107
22116
  for (let r3 = e2.indexOf(`
22108
22117
  `); r3 !== -1 && r3 < t2; r3 = e2.indexOf(`
@@ -22111,7 +22120,7 @@ function Rh(e2, t2) {
22111
22120
  return { line: n2, column: t2 - (e2.lastIndexOf(`
22112
22121
  `, t2 - 1) + 1) };
22113
22122
  }
22114
- function zh(e2, t2) {
22123
+ function jh(e2, t2) {
22115
22124
  const n2 = e2.needs;
22116
22125
  e2.needs = n2 === void 0 ? t2 : [...n2, ...t2];
22117
22126
  }
@@ -22121,11 +22130,11 @@ function ti$1(e2, t2) {
22121
22130
  const n2 = e2.needs;
22122
22131
  e2.needs = n2 === void 0 ? t2.needs : [...n2, ...t2.needs];
22123
22132
  }
22124
- function jh(e2, t2) {
22133
+ function Vh(e2, t2) {
22125
22134
  if (e2.pending !== null)
22126
22135
  throw t2._nodes = null, new Error("[mdsvex] the plugins of this document deferred work, wait for settle(parsed) before its render");
22127
22136
  }
22128
- const Vh = "compile() is synchronous, use compile_async() for a document whose plugins wait";
22137
+ const Bh = "compile() is synchronous, use compile_async() for a document whose plugins wait";
22129
22138
  function _c(e2, t2, n2, r3) {
22130
22139
  const s2 = t2 !== void 0 && t2.length > 0;
22131
22140
  return !s2 && n2 === void 0 ? null : new mc(new Ph$1(s2 ? fc(t2, r3) : void 0, new Dn$2(e2), n2));
@@ -22133,13 +22142,13 @@ function _c(e2, t2, n2, r3) {
22133
22142
  function bc(e2, t2, n2, r3) {
22134
22143
  const s2 = e2.length, i2 = new Ns$1(s2 < 512 ? (s2 >> 2) + 16 : s2 >> 3, t2 === null ? void 0 : t2.dispatcher);
22135
22144
  t2 !== null && (t2.tree = i2, t2.start(e2, n2, r3));
22136
- const o2 = n2.heading_ids, l2 = o2 === void 0 ? null : Bh(i2, o2, e2);
22145
+ const o2 = n2.heading_ids, l2 = o2 === void 0 ? null : Ph2(i2, o2, e2);
22137
22146
  let a2 = $s$1;
22138
22147
  a2 === null ? a2 = new Mh$1(i2) : ($s$1 = null, a2.bind(i2)), a2.set_options(n2), a2.parse_normalized(e2), a2.release(), $s$1 = a2;
22139
22148
  const c2 = i2.get_buffer();
22140
22149
  return l2 !== null && (l2.finish(c2), Pn$1 = l2.moved, Ks$1 = l2), t2 !== null && (t2.dispatcher.run_sequential(c2), t2.finish(c2)), c2.trim(), c2;
22141
22150
  }
22142
- function Bh(e2, t2, n2) {
22151
+ function Ph2(e2, t2, n2) {
22143
22152
  let r3 = Ks$1;
22144
22153
  return r3 === null || r3.slug !== t2 ? r3 = Ha$1(t2) : Ks$1 = null, e2.set_headings(r3), r3.start(n2), r3;
22145
22154
  }
@@ -22150,10 +22159,10 @@ function wl(e2, t2, n2) {
22150
22159
  return (r3 === null || r3.slug !== t2) && (r3 = Ha$1(t2), e2.set_headings(r3)), r3.start(n2), r3;
22151
22160
  }
22152
22161
  const Cr$1 = 4294967295;
22153
- function vc(e2, t2, n2) {
22154
- const r3 = e2.first_child_at(0);
22155
- if (!(r3 === Cr$1 || e2.kind_at(r3) !== hi$1))
22156
- return Ih$1(t2, e2.value_start_at(r3), e2.value_end_at(r3), n2);
22162
+ function vc(e2, t2, n2, r3) {
22163
+ const s2 = e2.first_child_at(0);
22164
+ if (!(s2 === Cr$1 || e2.kind_at(s2) !== hi$1))
22165
+ return Ih$1(t2, e2.value_start_at(s2), e2.value_end_at(s2), n2, r3);
22157
22166
  }
22158
22167
  function Dr$1(e2, t2, n2, r3) {
22159
22168
  const s2 = r3.lastIndexOf(`
@@ -22167,17 +22176,17 @@ function Dr$1(e2, t2, n2, r3) {
22167
22176
  }
22168
22177
  function wc(e2, t2, n2, r3, s2, i2, o2) {
22169
22178
  e2.scope = n2, e2.directives = r3, e2.strict_directives = t2.strict_directives;
22170
- const l2 = t2.templates, a2 = l2 === void 0 && s2 === void 0 ? void 0 : Oh(e2, n2, s2, l2, i2, o2);
22179
+ const l2 = t2.templates, a2 = l2 === void 0 && s2 === void 0 ? void 0 : Th(e2, n2, s2, l2, t2.filename, i2, o2);
22171
22180
  e2.scope !== null && (e2.replace_typed = t2.component_mode === "all");
22172
- const c2 = t2.filename, u2 = t2.highlight;
22173
- let f2 = u2 === void 0 || u2 === false ? null : oe$6(u2, c2, o2);
22174
- return e2.highlight = f2, f2 === null && e2.scope?.get("pre") !== void 0 && (f2 = le$7(c2, o2)), e2.pre_meta = f2, a2;
22181
+ const c2 = t2.filename, f2 = t2.highlight;
22182
+ let u2 = f2 === void 0 || f2 === false ? null : oe$6(f2, c2, o2);
22183
+ return e2.highlight = u2, u2 === null && e2.scope?.get("pre") !== void 0 && (u2 = le$7(c2, o2)), e2.pre_meta = u2, a2;
22175
22184
  }
22176
22185
  function ni$1(e2, t2, n2) {
22177
22186
  const r3 = t2.pre_meta;
22178
22187
  r3 !== null && (t2.highlight = null, t2.pre_meta = null);
22179
22188
  const s2 = t2.scope, i2 = s2 === null || s2.size === 0 ? null : t2.warnings, o2 = r3 === null ? null : r3.warnings;
22180
- (i2 === null || i2.length === 0) && (o2 === null || o2.length === 0) || (e2.warnings = Ph2(i2, o2, n2));
22189
+ (i2 === null || i2.length === 0) && (o2 === null || o2.length === 0) || (e2.warnings = Gh(i2, o2, n2));
22181
22190
  }
22182
22191
  function ri$1(e2, t2, n2) {
22183
22192
  const r3 = t2.warnings;
@@ -22187,7 +22196,7 @@ function ri$1(e2, t2, n2) {
22187
22196
  for (const { code: i2, message: o2, start: l2 } of r3)
22188
22197
  s2.push(Dr$1(i2, o2, l2, n2));
22189
22198
  }
22190
- function Ph2(e2, t2, n2) {
22199
+ function Gh(e2, t2, n2) {
22191
22200
  const r3 = [];
22192
22201
  if (e2 !== null)
22193
22202
  for (const { tag: s2, directive: i2, start: o2 } of e2)
@@ -22207,18 +22216,18 @@ function xt$4(e2, t2) {
22207
22216
  function yc(e2, t2) {
22208
22217
  let n2 = t2 === void 0 ? as$1 : Qn$1(t2);
22209
22218
  n2.plugins !== void 0 && (n2 = Ys(n2));
22210
- const r3 = Xs$1(e2), s2 = ac(n2), i2 = uc(n2.directives), o2 = _c(r3, n2.parse_plugins, n2.directive_handlers, pc(i2, n2.templates)), l2 = bc(r3, o2, n2, false), a2 = gh(), c2 = ph() ? Ma$1(l2, r3, n2.footnotes, n2.filename, n2.heading_ids === void 0 ? null : gc()) : null, u2 = o2 === null ? vc(l2, r3, n2.frontmatter_parse) : o2.frontmatter();
22211
- let f2 = n2.import_images === true && (fh$1() || n2.parse_plugins !== void 0 || n2.directive_handlers !== void 0) ? Sr$1(l2, r3, n2.enhanced_images === true) : null;
22219
+ const r3 = Xs$1(e2), s2 = ac(n2), i2 = uc(n2.directives), o2 = _c(r3, n2.parse_plugins, n2.directive_handlers, pc(i2, n2.templates)), l2 = bc(r3, o2, n2, false), a2 = gh(), c2 = ph() ? Ma$1(l2, r3, n2.footnotes, n2.filename, n2.heading_ids === void 0 ? null : gc()) : null, f2 = o2 === null ? vc(l2, r3, n2.frontmatter_parse, n2.filename) : o2.frontmatter();
22220
+ let u2 = n2.import_images === true && (fh$1() || n2.parse_plugins !== void 0 || n2.directive_handlers !== void 0) ? Sr$1(l2, r3, n2.enhanced_images === true) : null;
22212
22221
  const h2 = n2.links;
22213
- h2 !== void 0 && (f2 = Ya$1(f2, Xa$1(h2, l2, r3, n2.filename, f2 === null ? null : f2.lookup)));
22214
- const p2 = n2.sources, _2 = (p2 !== false || n2.snippets !== false) && (kh(r3, "src=", "run") || n2.parse_plugins !== void 0 || n2.directive_handlers !== void 0) ? si$1(l2, r3, n2) : null, m2 = _2 === null ? null : ic(_2, p2, r3, n2.filename, n2.snippets), g2 = Th(), v3 = n2.math, x2 = v3 !== void 0 && v3 !== false;
22222
+ h2 !== void 0 && (u2 = Ya$1(u2, Xa$1(h2, l2, r3, n2.filename, u2 === null ? null : u2.lookup)));
22223
+ const p2 = n2.sources, _2 = (p2 !== false || n2.snippets !== false) && (kh(r3, "src=", "run") || n2.parse_plugins !== void 0 || n2.directive_handlers !== void 0) ? si$1(l2, r3, n2) : null, m2 = _2 === null ? null : ic(_2, p2, r3, n2.filename, n2.snippets), g2 = Ih(), v3 = n2.math, x2 = v3 !== void 0 && v3 !== false;
22215
22224
  let $2;
22216
22225
  try {
22217
- $2 = wc(g2, n2, s2, i2, u2, l2, r3), o2 !== null && o2.share(g2, u2);
22226
+ $2 = wc(g2, n2, s2, i2, f2, l2, r3), o2 !== null && o2.share(g2, f2);
22218
22227
  } catch (C3) {
22219
22228
  throw or$1(g2), C3;
22220
22229
  }
22221
- if (x2 && (g2.highlight !== null ? g2.highlight.with_math(v3) : a2 && Cn$2(g2, v3, n2.filename, r3)), f2 !== null && (cs(g2, f2.lines), g2.urls = f2.lookup), m2 !== null)
22230
+ if (x2 && (g2.highlight !== null ? g2.highlight.with_math(v3) : a2 && Cn$2(g2, v3, n2.filename, r3)), u2 !== null && (cs(g2, u2.lines), g2.urls = u2.lookup), m2 !== null)
22222
22231
  try {
22223
22232
  xc(g2, m2, n2.filename, r3);
22224
22233
  } catch (C3) {
@@ -22228,20 +22237,20 @@ function yc(e2, t2) {
22228
22237
  if (b2 !== void 0 && (g2.smart_punctuation = b2), c2 !== null && (g2.footnotes = c2), n2.wrap_static === true && (g2.wrap_static = true), t2?.sourcemap) {
22229
22238
  let C3;
22230
22239
  do
22231
- C3 = g2.update_mapped(l2, r3, r3.length === e2.length ? null : ii$1(e2), xt$4(u2, o2));
22240
+ C3 = g2.update_mapped(l2, r3, r3.length === e2.length ? null : ii$1(e2), xt$4(f2, o2));
22232
22241
  while (x2 && g2.highlight === null && Us() && Cn$2(g2, v3, n2.filename, r3));
22233
22242
  const k2 = {
22234
22243
  code: g2.html,
22235
22244
  mappings: C3.mappings,
22236
- metadata: u2,
22245
+ metadata: f2,
22237
22246
  template: $2
22238
22247
  };
22239
22248
  return m2 !== null && (k2.snippets = m2.snippets), ni$1(k2, g2, r3), c2 !== null && ri$1(k2, c2, r3), o2 !== null && o2.leave(k2, false), or$1(g2), k2;
22240
22249
  }
22241
22250
  do
22242
- g2.update(l2, r3, xt$4(u2, o2));
22251
+ g2.update(l2, r3, xt$4(f2, o2));
22243
22252
  while (x2 && g2.highlight === null && Us() && Cn$2(g2, v3, n2.filename, r3));
22244
- const y2 = { code: g2.html, metadata: u2, template: $2 };
22253
+ const y2 = { code: g2.html, metadata: f2, template: $2 };
22245
22254
  return m2 !== null && (y2.snippets = m2.snippets), ni$1(y2, g2, r3), c2 !== null && ri$1(y2, c2, r3), o2 !== null && o2.leave(y2, false), or$1(g2), y2;
22246
22255
  }
22247
22256
  function si$1(e2, t2, n2) {
@@ -22258,7 +22267,7 @@ function cs(e2, t2) {
22258
22267
  const n2 = e2.imports;
22259
22268
  e2.imports = n2 === void 0 || n2.length === 0 ? t2 : n2.concat(t2);
22260
22269
  }
22261
- const Gh = [
22270
+ const Hh = [
22262
22271
  "import { setContext as set_context_MDSVEX } from 'svelte';",
22263
22272
  `set_context_MDSVEX(Symbol.for('mdsvex.plugin_data'), { current: ${dh$1} });`
22264
22273
  ];
@@ -22304,14 +22313,14 @@ let Lr$1 = class Lr {
22304
22313
  parse_plugged(t2, n2, r3, s2, i2, o2) {
22305
22314
  let l2 = this.plugin_arena;
22306
22315
  if (l2 === null || l2.plugins !== n2 || l2.bound !== r3 || l2.reserved !== s2) {
22307
- const f2 = new Dn$2(t2), h2 = new Ph$1(n2 !== void 0 && n2.length > 0 ? fc(n2, s2) : void 0, f2, r3), p2 = new Ns$1(t2.length >> 3 || 16, h2), _2 = new mc(h2);
22316
+ const u2 = new Dn$2(t2), h2 = new Ph$1(n2 !== void 0 && n2.length > 0 ? fc(n2, s2) : void 0, u2, r3), p2 = new Ns$1(t2.length >> 3 || 16, h2), _2 = new mc(h2);
22308
22317
  _2.tree = p2;
22309
22318
  let m2;
22310
22319
  l2 === null ? m2 = new Mh$1(p2) : (m2 = l2.parser, m2.bind(p2)), l2 = this.plugin_arena = {
22311
22320
  plugins: n2,
22312
22321
  bound: r3,
22313
22322
  reserved: s2,
22314
- text: f2,
22323
+ text: u2,
22315
22324
  dispatcher: h2,
22316
22325
  tree: p2,
22317
22326
  parser: m2,
@@ -22322,13 +22331,13 @@ let Lr$1 = class Lr {
22322
22331
  l2.host.start(t2, i2, o2), l2.host.cache = this.cache;
22323
22332
  const a2 = i2.heading_ids, c2 = a2 === void 0 && l2.tree.get_headings() === null ? null : wl(l2.tree, a2, t2);
22324
22333
  this.plugin_busy = true;
22325
- let u2 = false;
22334
+ let f2 = false;
22326
22335
  try {
22327
22336
  l2.parser.set_options(i2), l2.parser.parse_normalized(t2);
22328
- const f2 = l2.tree.get_buffer();
22329
- return c2 !== null && (c2.finish(f2), Pn$1 = c2.moved), l2.dispatcher.run_sequential(f2), l2.host.finish(f2), u2 = true, f2;
22337
+ const u2 = l2.tree.get_buffer();
22338
+ return c2 !== null && (c2.finish(u2), Pn$1 = c2.moved), l2.dispatcher.run_sequential(u2), l2.host.finish(u2), f2 = true, u2;
22330
22339
  } finally {
22331
- this.plugin_busy = false, u2 || (this.plugin_arena = null);
22340
+ this.plugin_busy = false, f2 || (this.plugin_arena = null);
22332
22341
  }
22333
22342
  }
22334
22343
  compile(t2, n2) {
@@ -22358,7 +22367,7 @@ let Lr$1 = class Lr {
22358
22367
  settle(t2) {
22359
22368
  const n2 = t2._host;
22360
22369
  if (!(n2 === null || n2.pending === null))
22361
- return Jh(n2, n2.pending, t2);
22370
+ return Wh(n2, n2.pending, t2);
22362
22371
  }
22363
22372
  /**
22364
22373
  * drops what ctx.cached keeps under these paths, a host that watches
@@ -22418,8 +22427,8 @@ let Lr$1 = class Lr {
22418
22427
  this.tree !== null && (this.tree.reset(), this.parser.release(), this.released = true), this.plugin_arena !== null && (this.plugin_arena = null), this.renderer.release();
22419
22428
  }
22420
22429
  /** @internal the map equals mappings_to_v3 over compile mappings with raw as source */
22421
- compile_v3(t2, n2, r3, s2, i2, o2, l2, a2, c2, u2) {
22422
- return this.run(t2, qs$1(r3, s2, i2, o2, l2, a2, c2, n2, u2), 2, void 0, void 0);
22430
+ compile_v3(t2, n2, r3, s2, i2, o2, l2, a2, c2, f2) {
22431
+ return this.run(t2, qs$1(r3, s2, i2, o2, l2, a2, c2, n2, f2), 2, void 0, void 0);
22423
22432
  }
22424
22433
  /**
22425
22434
  * defers the map, the vite plugin builds only the lines the svelte compiler
@@ -22448,8 +22457,8 @@ let Lr$1 = class Lr {
22448
22457
  * compile_into with its inputs spelled out
22449
22458
  * @internal
22450
22459
  */
22451
- compile_trace_into(t2, n2, r3, s2, i2, o2, l2, a2, c2, u2, f2) {
22452
- this.run(t2, qs$1(n2, s2, i2, o2, l2, a2, c2, u2, f2), 4, r3, void 0);
22460
+ compile_trace_into(t2, n2, r3, s2, i2, o2, l2, a2, c2, f2, u2) {
22461
+ this.run(t2, qs$1(n2, s2, i2, o2, l2, a2, c2, f2, u2), 4, r3, void 0);
22453
22462
  }
22454
22463
  /**
22455
22464
  * every compile of the session, kind picks the render and what comes
@@ -22461,41 +22470,41 @@ let Lr$1 = class Lr {
22461
22470
  run(t2, n2, r3, s2, i2) {
22462
22471
  n2.plugins !== void 0 && (n2 = Ys(n2));
22463
22472
  const o2 = ac(n2), l2 = n2.directives, a2 = l2 === void 0 ? null : uc(l2);
22464
- let c2 = this.renderer, u2, f2, h2, p2 = null, _2 = null, m2 = false, g2 = null, v3 = null;
22473
+ let c2 = this.renderer, f2, u2, h2, p2 = null, _2 = null, m2 = false, g2 = null, v3 = null;
22465
22474
  if (i2 === void 0) {
22466
- u2 = Xs$1(t2);
22475
+ f2 = Xs$1(t2);
22467
22476
  const D2 = n2.parse_plugins, z2 = n2.directive_handlers, V3 = D2 !== void 0 && D2.length > 0 || z2 !== void 0;
22468
22477
  if (V3) {
22469
22478
  const G2 = pc(a2, n2.templates), Be2 = r3 === 5 || n2.await_plugins;
22470
- this.plugin_busy ? (v3 = _c(u2, D2, z2, G2), f2 = bc(u2, v3, n2, Be2), c2 = new fr$1({ cache: false })) : (f2 = this.parse_plugged(u2, D2, z2, G2, n2, Be2), v3 = this.plugin_arena.host), h2 = v3.frontmatter();
22479
+ this.plugin_busy ? (v3 = _c(f2, D2, z2, G2), u2 = bc(f2, v3, n2, Be2), c2 = new fr$1({ cache: false })) : (u2 = this.parse_plugged(f2, D2, z2, G2, n2, Be2), v3 = this.plugin_arena.host), h2 = v3.frontmatter();
22471
22480
  } else {
22472
- f2 = this.parse_plain(u2, n2);
22473
- const G2 = f2.first_child_at(0);
22474
- h2 = G2 === Cr$1 || f2.kind_at(G2) !== hi$1 ? void 0 : vc(f2, u2, n2.frontmatter_parse);
22481
+ u2 = this.parse_plain(f2, n2);
22482
+ const G2 = u2.first_child_at(0);
22483
+ h2 = G2 === Cr$1 || u2.kind_at(G2) !== hi$1 ? void 0 : vc(u2, f2, n2.frontmatter_parse, n2.filename);
22475
22484
  }
22476
- m2 = this.spans = gh(), g2 = this.notes = ph() ? Ma$1(f2, u2, n2.footnotes, n2.filename, n2.heading_ids === void 0 ? null : gc()) : null, n2.import_images === true && (fh$1() || V3) && (p2 = Sr$1(f2, u2, n2.enhanced_images === true));
22485
+ m2 = this.spans = gh(), g2 = this.notes = ph() ? Ma$1(u2, f2, n2.footnotes, n2.filename, n2.heading_ids === void 0 ? null : gc()) : null, n2.import_images === true && (fh$1() || V3) && (p2 = Sr$1(u2, f2, n2.enhanced_images === true));
22477
22486
  const H2 = n2.sources;
22478
- (H2 !== false || n2.snippets !== false) && (kh(u2, "src=", "run") || V3) && (_2 = si$1(f2, u2, n2));
22479
- const ne2 = (r3 === 5 || n2.await_shells) && Ih(a2, n2.templates) ? Uh(f2, u2, h2, a2, n2) : null;
22487
+ (H2 !== false || n2.snippets !== false) && (kh(f2, "src=", "run") || V3) && (_2 = si$1(u2, f2, n2));
22488
+ const ne2 = (r3 === 5 || n2.await_shells) && Uh(a2, n2.templates) ? Rh(u2, f2, h2, a2, n2) : null;
22480
22489
  if (r3 === 5 || ne2 !== null && s2 !== void 0 || _2 !== null && s2 !== void 0 && n2.await_sources && !fh(_2, H2) || v3 !== null && s2 !== void 0 && v3.pending !== null) {
22481
- const G2 = new yl(t2, u2, h2, f2);
22482
- return G2.math = G2._spans = m2, G2._notes = g2, v3 !== null && v3.wait(G2, n2), ei$1(G2, p2), ti$1(G2, _2), ne2 !== null && zh(G2, ne2), c2 === this.renderer && this.lend(G2, V3), r3 === 5 ? G2 : (s2.waiting = G2, s2);
22490
+ const G2 = new yl(t2, f2, h2, u2);
22491
+ return G2.math = G2._spans = m2, G2._notes = g2, v3 !== null && v3.wait(G2, n2), ei$1(G2, p2), ti$1(G2, _2), ne2 !== null && jh(G2, ne2), c2 === this.renderer && this.lend(G2, V3), r3 === 5 ? G2 : (s2.waiting = G2, s2);
22483
22492
  }
22484
22493
  } else {
22485
22494
  const D2 = i2._nodes;
22486
22495
  if (D2 === null)
22487
22496
  throw new Error("[mdsvex] a parsed document renders once");
22488
- i2._nodes = null, f2 = D2, u2 = i2.source, h2 = i2.metadata, p2 = i2._images, _2 = i2._sources, m2 = i2._spans, g2 = i2._notes, v3 = i2._host, v3 !== null && jh(v3, i2), i2._host = null, this.plugin_busy && (c2 = new fr$1({ cache: false }));
22497
+ i2._nodes = null, u2 = D2, f2 = i2.source, h2 = i2.metadata, p2 = i2._images, _2 = i2._sources, m2 = i2._spans, g2 = i2._notes, v3 = i2._host, v3 !== null && Vh(v3, i2), i2._host = null, this.plugin_busy && (c2 = new fr$1({ cache: false }));
22489
22498
  }
22490
22499
  let x2 = p2;
22491
22500
  const $2 = n2.links;
22492
- $2 !== void 0 && (x2 = Ya$1(p2, Xa$1($2, f2, u2, n2.filename, p2 === null ? null : p2.lookup)));
22493
- const b2 = _2 === null ? null : ic(_2, n2.sources, u2, n2.filename, n2.snippets);
22501
+ $2 !== void 0 && (x2 = Ya$1(p2, Xa$1($2, u2, f2, n2.filename, p2 === null ? null : p2.lookup)));
22502
+ const b2 = _2 === null ? null : ic(_2, n2.sources, f2, n2.filename, n2.snippets);
22494
22503
  s2 !== void 0 && (s2.metadata = h2);
22495
- const y2 = wc(c2, n2, o2, a2, h2, f2, u2);
22504
+ const y2 = wc(c2, n2, o2, a2, h2, u2, f2);
22496
22505
  v3 !== null && v3.share(c2, h2);
22497
22506
  const C3 = n2.math, k2 = C3 !== void 0 && C3 !== false;
22498
- k2 && (c2.highlight !== null ? c2.highlight.with_math(C3) : m2 && Cn$2(c2, C3, n2.filename, u2));
22507
+ k2 && (c2.highlight !== null ? c2.highlight.with_math(C3) : m2 && Cn$2(c2, C3, n2.filename, f2));
22499
22508
  let w2;
22500
22509
  x2 !== null && (cs(c2, x2.lines), c2.urls = x2.lookup);
22501
22510
  const O2 = n2.smart_punctuation;
@@ -22505,15 +22514,15 @@ let Lr$1 = class Lr {
22505
22514
  const W2 = n2.shells;
22506
22515
  W2 !== void 0 && (c2.shells = W2);
22507
22516
  try {
22508
- b2 !== null && xc(c2, b2, n2.filename, u2);
22517
+ b2 !== null && xc(c2, b2, n2.filename, f2);
22509
22518
  do
22510
22519
  switch (r3) {
22511
22520
  case 4: {
22512
- s2.template = y2, c2.update_trace_into(f2, u2, s2, xt$4(h2, v3)), s2.source = u2, s2.html = c2.html, w2 = s2;
22521
+ s2.template = y2, c2.update_trace_into(u2, f2, s2, xt$4(h2, v3)), s2.source = f2, s2.html = c2.html, w2 = s2;
22513
22522
  break;
22514
22523
  }
22515
22524
  case 1: {
22516
- const D2 = c2.update_mapped(f2, u2, u2.length === t2.length ? null : ii$1(t2), xt$4(h2, v3));
22525
+ const D2 = c2.update_mapped(u2, f2, f2.length === t2.length ? null : ii$1(t2), xt$4(h2, v3));
22517
22526
  w2 = {
22518
22527
  code: c2.html,
22519
22528
  mappings: D2.mappings,
@@ -22524,12 +22533,12 @@ let Lr$1 = class Lr {
22524
22533
  }
22525
22534
  case 2: {
22526
22535
  const D2 = n2.filename, z2 = xt$4(h2, v3);
22527
- if (u2.length === t2.length) {
22528
- const ne2 = c2.update_v3(f2, u2, t2, D2, z2);
22536
+ if (f2.length === t2.length) {
22537
+ const ne2 = c2.update_v3(u2, f2, t2, D2, z2);
22529
22538
  w2 = { code: c2.html, map: ne2, metadata: h2, template: y2 };
22530
22539
  break;
22531
22540
  }
22532
- const V3 = c2.update_mapped(f2, u2, ii$1(t2), z2), H2 = c2.html;
22541
+ const V3 = c2.update_mapped(u2, f2, ii$1(t2), z2), H2 = c2.html;
22533
22542
  w2 = {
22534
22543
  code: H2,
22535
22544
  map: Yc(V3.mappings, t2, H2, D2),
@@ -22539,39 +22548,39 @@ let Lr$1 = class Lr {
22539
22548
  break;
22540
22549
  }
22541
22550
  case 3: {
22542
- const D2 = c2.update_trace(f2, u2, xt$4(h2, v3));
22543
- w2 = { code: c2.html, trace: D2, source: u2, metadata: h2, template: y2 };
22551
+ const D2 = c2.update_trace(u2, f2, xt$4(h2, v3));
22552
+ w2 = { code: c2.html, trace: D2, source: f2, metadata: h2, template: y2 };
22544
22553
  break;
22545
22554
  }
22546
22555
  default:
22547
- c2.update(f2, u2, xt$4(h2, v3)), w2 = { code: c2.html, metadata: h2, template: y2 };
22556
+ c2.update(u2, f2, xt$4(h2, v3)), w2 = { code: c2.html, metadata: h2, template: y2 };
22548
22557
  }
22549
- while (k2 && c2.highlight === null && Us() && Cn$2(c2, C3, n2.filename, u2));
22558
+ while (k2 && c2.highlight === null && Us() && Cn$2(c2, C3, n2.filename, f2));
22550
22559
  } finally {
22551
22560
  x2 !== null && (c2.imports = void 0, c2.urls = void 0), b2 !== null && (c2.fences = void 0, c2.imports = void 0), v3 !== null && (c2.imports = void 0), O2 !== void 0 && (c2.smart_punctuation = void 0), g2 !== null && (c2.footnotes = void 0), R2 && (c2.wrap_static = void 0), W2 !== void 0 && (c2.shells = void 0);
22552
22561
  }
22553
- return b2 !== null && (w2.snippets = b2.snippets), ni$1(w2, c2, u2), g2 !== null && ri$1(w2, g2, u2), v3 !== null && v3.leave(w2, s2 !== void 0), i2 !== void 0 && this.take_back(i2), w2;
22562
+ return b2 !== null && (w2.snippets = b2.snippets), ni$1(w2, c2, f2), g2 !== null && ri$1(w2, g2, f2), v3 !== null && v3.leave(w2, s2 !== void 0), i2 !== void 0 && this.take_back(i2), w2;
22554
22563
  }
22555
22564
  };
22556
- const Hh = 1 << 19, Mh2 = 65536;
22565
+ const Mh2 = 1 << 19, Fh = 65536;
22557
22566
  let yt$3 = null, Ss$2 = false;
22558
- function Fh(e2, t2) {
22559
- if (Ss$2 || e2.length > Hh || t2 !== void 0 && us2(t2))
22567
+ function Jh(e2, t2) {
22568
+ if (Ss$2 || e2.length > Mh2 || t2 !== void 0 && us2(t2))
22560
22569
  return yc(e2, t2);
22561
22570
  Ss$2 = true;
22562
22571
  let n2 = false;
22563
22572
  try {
22564
22573
  yt$3 === null && (yt$3 = new Lr$1());
22565
22574
  const r3 = yt$3.compile(e2, t2);
22566
- return n2 = yt$3.capacity <= Mh2, r3;
22575
+ return n2 = yt$3.capacity <= Fh, r3;
22567
22576
  } finally {
22568
22577
  n2 ? yt$3.release() : yt$3 = null, Ss$2 = false;
22569
22578
  }
22570
22579
  }
22571
- async function Jh(e2, t2, n2) {
22572
- await t2, e2.pending = null, n2.data = e2.dispatcher.data(), n2.dependencies = e2.dispatcher.dependencies(), Zh(n2);
22580
+ async function Wh(e2, t2, n2) {
22581
+ await t2, e2.pending = null, n2.data = e2.dispatcher.data(), n2.dependencies = e2.dispatcher.dependencies(), Xh(n2);
22573
22582
  }
22574
- function Wh(e2) {
22583
+ function Zh(e2) {
22575
22584
  const t2 = e2.import_images === true, n2 = e2.sources !== false, r3 = e2.snippets !== false;
22576
22585
  return !t2 && !n2 && !r3 ? null : {
22577
22586
  images: t2,
@@ -22581,7 +22590,7 @@ function Wh(e2) {
22581
22590
  filename: e2.filename
22582
22591
  };
22583
22592
  }
22584
- function Zh(e2) {
22593
+ function Xh(e2) {
22585
22594
  const t2 = e2._scan, n2 = e2._nodes;
22586
22595
  if (e2._scan = null, t2 === null || n2 === null)
22587
22596
  return;
@@ -31735,28 +31744,28 @@ let r$5 = class r {
31735
31744
  /* NodeField.stride */
31736
31745
  ] & 255;
31737
31746
  }
31738
- /** byte offset where the current node starts in source. */
31747
+ /** offset where the current node starts in source */
31739
31748
  get start() {
31740
31749
  return this.n[
31741
31750
  this.b + 1
31742
31751
  /* NodeField.start */
31743
31752
  ];
31744
31753
  }
31745
- /** byte offset where the current node ends in source. */
31754
+ /** offset where the current node ends in source */
31746
31755
  get end() {
31747
31756
  return this.n[
31748
31757
  this.b + 2
31749
31758
  /* NodeField.end */
31750
31759
  ];
31751
31760
  }
31752
- /** byte offset where the current node's value content starts. */
31761
+ /** offset where the value content of the current node starts */
31753
31762
  get value_start() {
31754
31763
  return this.n[
31755
31764
  this.b + 3
31756
31765
  /* NodeField.value_start */
31757
31766
  ];
31758
31767
  }
31759
- /** byte offset where the current node's value content ends. */
31768
+ /** offset where the value content of the current node ends */
31760
31769
  get value_end() {
31761
31770
  return this.n[
31762
31771
  this.b + 4
@@ -31797,7 +31806,7 @@ let r$5 = class r {
31797
31806
  ];
31798
31807
  return t2 === 0 ? void 0 : this.buf._meta[t2 - 1];
31799
31808
  }
31800
- /** slice the source string by byte offsets. for resolving metadata offset pairs. */
31809
+ /** slice the source by offsets, for metadata offset pairs */
31801
31810
  slice(t2, s2) {
31802
31811
  return this.src.slice(t2, s2);
31803
31812
  }
@@ -32341,7 +32350,7 @@ function compile_leniently(source2, options, diagnostics, frontmatter) {
32341
32350
  let last;
32342
32351
  for (let attempt = 0; attempt < 8; attempt++) {
32343
32352
  try {
32344
- const result = Fh(source2, opts);
32353
+ const result = Jh(source2, opts);
32345
32354
  if (result.snippets !== void 0 && opts.snippets !== false) {
32346
32355
  opts = { ...opts, snippets: false };
32347
32356
  continue;
@@ -82492,18 +82501,18 @@ function o$4() {
82492
82501
  }
82493
82502
  const ve$5 = "node_modules/.mdsvex/manifest.json", ge$5 = 1;
82494
82503
  function Ae$5(t2) {
82495
- const i2 = /* @__PURE__ */ new Map();
82496
- for (const o2 of Object.values(t2.templates)) {
82497
- const l2 = o2.extra;
82498
- i2.set(o2.id, (f2) => f2 !== "default" && l2 !== null && l2.names.includes(f2) ? l2.file : o2.file);
82499
- for (const f2 of o2.directives)
82500
- i2.set(f2.id, () => f2.file);
82501
- }
82502
- for (const o2 of t2.plugins ?? [])
82503
- o2.components && i2.set(o2.components.id, () => o2.components.file), o2.directives && i2.set(o2.directives.id, () => o2.directives.file);
82504
- for (const o2 of [...t2.components, ...t2.directives])
82505
- i2.set(o2.id, () => o2.file);
82506
- return (o2, l2) => i2.get(o2)?.(l2);
82504
+ const o2 = /* @__PURE__ */ new Map();
82505
+ for (const i2 of Object.values(t2.templates)) {
82506
+ const l2 = i2.extra;
82507
+ o2.set(i2.id, (c2) => c2 !== "default" && l2 !== null && l2.names.includes(c2) ? l2.file : i2.file);
82508
+ for (const c2 of i2.directives)
82509
+ o2.set(c2.id, () => c2.file);
82510
+ }
82511
+ for (const i2 of t2.plugins ?? [])
82512
+ i2.components && o2.set(i2.components.id, () => i2.components.file), i2.directives && o2.set(i2.directives.id, () => i2.directives.file);
82513
+ for (const i2 of [...t2.components, ...t2.directives])
82514
+ o2.set(i2.id, () => i2.file);
82515
+ return (i2, l2) => o2.get(i2)?.(l2);
82507
82516
  }
82508
82517
  const Ce$4 = "mdsvex:components", Se$6 = "mdsvex:directives", De$5 = "directives", Ne$5 = "mdsvex:template/", be$6 = "mdsvex:template-directives/", Pe$5 = "mdsvex:plugin/";
82509
82518
  let V$f = class V extends Error {
@@ -82545,28 +82554,28 @@ function v$g(t2) {
82545
82554
  function ie$4(t2) {
82546
82555
  try {
82547
82556
  return re$5(t2);
82548
- } catch (i2) {
82549
- if (i2 instanceof V$f)
82557
+ } catch (o2) {
82558
+ if (o2 instanceof V$f)
82550
82559
  return null;
82551
- throw i2;
82560
+ throw o2;
82552
82561
  }
82553
82562
  }
82554
82563
  function re$5(t2) {
82555
- const i2 = t2.length, o2 = /* @__PURE__ */ new Set(), l2 = [], f2 = [], m2 = [];
82556
- let e2 = 0, h2 = true, c2 = false, d2 = false, a2 = "";
82564
+ const o2 = t2.length, i2 = /* @__PURE__ */ new Set(), l2 = [], c2 = [], m2 = [];
82565
+ let e2 = 0, h2 = true, f2 = false, d2 = false, a2 = "";
82557
82566
  const r3 = (n2) => t2.charCodeAt(n2), p2 = () => {
82558
82567
  throw new V$f();
82559
82568
  };
82560
82569
  function x2() {
82561
82570
  let n2 = false;
82562
- for (; e2 < i2; ) {
82571
+ for (; e2 < o2; ) {
82563
82572
  const s2 = r3(e2);
82564
82573
  if (s2 === 10 || s2 === 13 || s2 === 8232 || s2 === 8233)
82565
82574
  n2 = true, e2++;
82566
82575
  else if (s2 <= 32 || s2 === 160 || s2 === 65279)
82567
82576
  e2++;
82568
82577
  else if (s2 === 47 && r3(e2 + 1) === 47)
82569
- for (; e2 < i2 && r3(e2) !== 10 && r3(e2) !== 13; )
82578
+ for (; e2 < o2 && r3(e2) !== 10 && r3(e2) !== 13; )
82570
82579
  e2++;
82571
82580
  else if (s2 === 47 && r3(e2 + 1) === 42) {
82572
82581
  const u2 = t2.indexOf("*/", e2 + 2);
@@ -82581,13 +82590,13 @@ function re$5(t2) {
82581
82590
  }
82582
82591
  function E2() {
82583
82592
  const n2 = e2;
82584
- for (; e2 < i2 && I$h(r3(e2)); )
82593
+ for (; e2 < o2 && I$h(r3(e2)); )
82585
82594
  e2++;
82586
- return e2 === n2 && p2(), o2.add(n2), t2.slice(n2, e2);
82595
+ return e2 === n2 && p2(), i2.add(n2), t2.slice(n2, e2);
82587
82596
  }
82588
82597
  function g2() {
82589
82598
  const n2 = e2;
82590
- for (; e2 < i2; ) {
82599
+ for (; e2 < o2; ) {
82591
82600
  const s2 = r3(e2);
82592
82601
  if (I$h(s2) || s2 === 46)
82593
82602
  e2++;
@@ -82599,7 +82608,7 @@ function re$5(t2) {
82599
82608
  }
82600
82609
  function R2() {
82601
82610
  const n2 = r3(e2++);
82602
- for (; e2 < i2; ) {
82611
+ for (; e2 < o2; ) {
82603
82612
  const s2 = r3(e2);
82604
82613
  if (s2 === 92)
82605
82614
  e2 += 2;
@@ -82611,7 +82620,7 @@ function re$5(t2) {
82611
82620
  p2();
82612
82621
  }
82613
82622
  function L2() {
82614
- for (; e2 < i2; ) {
82623
+ for (; e2 < o2; ) {
82615
82624
  const n2 = r3(e2);
82616
82625
  if (n2 === 92)
82617
82626
  e2 += 2;
@@ -82619,7 +82628,7 @@ function re$5(t2) {
82619
82628
  e2++;
82620
82629
  return;
82621
82630
  } else if (n2 === 36 && r3(e2 + 1) === 123) {
82622
- e2 += 2, f2.push(U$f), m2.push(123);
82631
+ e2 += 2, c2.push(U$f), m2.push(123);
82623
82632
  return;
82624
82633
  } else
82625
82634
  e2++;
@@ -82629,7 +82638,7 @@ function re$5(t2) {
82629
82638
  function X2() {
82630
82639
  e2++;
82631
82640
  let n2 = false;
82632
- for (; e2 < i2; ) {
82641
+ for (; e2 < o2; ) {
82633
82642
  const s2 = r3(e2);
82634
82643
  if (s2 === 92)
82635
82644
  e2 += 2;
@@ -82640,7 +82649,7 @@ function re$5(t2) {
82640
82649
  else if (s2 === 93)
82641
82650
  n2 = false, e2++;
82642
82651
  else if (s2 === 47 && !n2) {
82643
- for (e2++; e2 < i2 && I$h(r3(e2)); )
82652
+ for (e2++; e2 < o2 && I$h(r3(e2)); )
82644
82653
  e2++;
82645
82654
  return;
82646
82655
  } else
@@ -82649,10 +82658,10 @@ function re$5(t2) {
82649
82658
  p2();
82650
82659
  }
82651
82660
  function T2() {
82652
- h2 = false, c2 = true;
82661
+ h2 = false, f2 = true;
82653
82662
  }
82654
82663
  function w2() {
82655
- h2 = true, c2 = false;
82664
+ h2 = true, f2 = false;
82656
82665
  }
82657
82666
  function O2() {
82658
82667
  const n2 = r3(e2), s2 = d2;
@@ -82668,21 +82677,21 @@ function re$5(t2) {
82668
82677
  const u2 = E2();
82669
82678
  return !s2 && oe$4.has(u2) ? w2() : T2(), a2 = s2 ? "v" : u2, u2;
82670
82679
  } else if (n2 === 40 || n2 === 91 || n2 === 123)
82671
- f2.push(n2 === 40 && ne$5.has(a2) ? k$o : n2 === 123 && se$5.has(a2) ? y$i : te$5), m2.push(n2), e2++, w2(), a2 = String.fromCharCode(n2);
82680
+ c2.push(n2 === 40 && ne$5.has(a2) ? k$o : n2 === 123 && se$5.has(a2) ? y$i : te$5), m2.push(n2), e2++, w2(), a2 = String.fromCharCode(n2);
82672
82681
  else if (n2 === 41 || n2 === 93 || n2 === 125) {
82673
- const u2 = f2.pop(), _2 = m2.pop();
82682
+ const u2 = c2.pop(), _2 = m2.pop();
82674
82683
  (u2 === void 0 || _2 !== (n2 === 41 ? 40 : n2 - 2)) && p2(), e2++, u2 === U$f ? (L2(), T2(), a2 = "v") : u2 === k$o ? (w2(), a2 = ")") : (T2(), u2 === y$i && (h2 = true), a2 = String.fromCharCode(n2));
82675
82684
  } else if (n2 === 46) {
82676
82685
  const u2 = r3(e2 + 1) === 46 && r3(e2 + 2) === 46;
82677
82686
  e2 += u2 ? 3 : 1, d2 = !u2, w2(), a2 = ".";
82678
- } else n2 === 61 && r3(e2 + 1) === 62 ? (e2 += 2, w2(), a2 = "=>") : (n2 === 43 || n2 === 45) && r3(e2 + 1) === n2 ? (e2 += 2, c2 || w2(), a2 = "v") : (e2++, w2(), a2 = String.fromCharCode(n2));
82687
+ } else n2 === 61 && r3(e2 + 1) === 62 ? (e2 += 2, w2(), a2 = "=>") : (n2 === 43 || n2 === 45) && r3(e2 + 1) === n2 ? (e2 += 2, f2 || w2(), a2 = "v") : (e2++, w2(), a2 = String.fromCharCode(n2));
82679
82688
  return "";
82680
82689
  }
82681
82690
  function B2() {
82682
82691
  const n2 = r3(e2);
82683
82692
  if (I$h(n2) && !v$g(n2)) {
82684
82693
  let s2 = e2;
82685
- for (; s2 < i2 && I$h(r3(s2)); )
82694
+ for (; s2 < o2 && I$h(r3(s2)); )
82686
82695
  s2++;
82687
82696
  const u2 = t2.slice(e2, s2);
82688
82697
  return u2 !== "instanceof" && u2 !== "in";
@@ -82690,16 +82699,16 @@ function re$5(t2) {
82690
82699
  return (n2 === 43 || n2 === 45) && r3(e2 + 1) === n2 ? true : v$g(n2) || n2 === 34 || n2 === 39 || n2 === 123 || n2 === 33 || n2 === 126 || n2 === 64;
82691
82700
  }
82692
82701
  function M2(n2) {
82693
- const s2 = f2.length;
82702
+ const s2 = c2.length;
82694
82703
  for (; ; ) {
82695
82704
  const u2 = x2();
82696
- if (e2 >= i2) {
82697
- if (n2 === D$m && f2.length === s2)
82705
+ if (e2 >= o2) {
82706
+ if (n2 === D$m && c2.length === s2)
82698
82707
  return;
82699
82708
  p2();
82700
82709
  }
82701
82710
  const _2 = r3(e2);
82702
- if (f2.length === s2 && (_2 === 44 || _2 === 59 || _2 === 41 || _2 === 93 || _2 === 125 || n2 === D$m && u2 && c2 && B2()))
82711
+ if (c2.length === s2 && (_2 === 44 || _2 === 59 || _2 === 41 || _2 === 93 || _2 === 125 || n2 === D$m && u2 && f2 && B2()))
82703
82712
  return;
82704
82713
  O2();
82705
82714
  }
@@ -82751,26 +82760,26 @@ function re$5(t2) {
82751
82760
  l2.push({ start: n2, end: e2, names: s2 }), w2(), a2 = ";";
82752
82761
  }
82753
82762
  if (t2.startsWith("#!"))
82754
- for (; e2 < i2 && r3(e2) !== 10; )
82763
+ for (; e2 < o2 && r3(e2) !== 10; )
82755
82764
  e2++;
82756
- for (; x2(), !(e2 >= i2); ) {
82757
- const n2 = f2.length === 0, s2 = e2, u2 = O2();
82765
+ for (; x2(), !(e2 >= o2); ) {
82766
+ const n2 = c2.length === 0, s2 = e2, u2 = O2();
82758
82767
  !n2 || u2 !== "export" || (x2(), /^(?:const|let|var)(?![\w$])/.exec(t2.slice(e2, e2 + 6)) === null) || (E2(), H2(s2));
82759
82768
  }
82760
- return f2.length !== 0 && p2(), { declarations: l2, words: o2 };
82769
+ return c2.length !== 0 && p2(), { declarations: l2, words: i2 };
82761
82770
  }
82762
82771
  function le$5() {
82763
82772
  return { names: [], stars: [], namespaces: [], reexports: [], imports: [] };
82764
82773
  }
82765
82774
  const ce$5 = /^export\s*\*\s*as\s+([\w$]+|"[^"]*"|'[^']*')\s*from/;
82766
- function ke$5(t2, i2, o2) {
82767
- const l2 = i2 === "svelte" ? xe$6(t2) : t2;
82768
- return l2 === null || l2.trim() === "" ? le$5() : fe$5(o2 === void 0 ? l2 : o2(l2));
82775
+ function ke$5(t2, o2, i2) {
82776
+ const l2 = o2 === "svelte" ? xe$6(t2) : t2;
82777
+ return l2 === null || l2.trim() === "" ? le$5() : fe$5(i2 === void 0 ? l2 : i2(l2));
82769
82778
  }
82770
82779
  function fe$5(t2) {
82771
- const [i2, o2] = parse3(t2), l2 = ue$4.test(t2) ? de$5(t2, i2, o2) ?? o2.map((c2) => c2.n) : o2.map((c2) => c2.n), f2 = [], m2 = [], e2 = [], h2 = [];
82772
- for (let c2 = 0; c2 < i2.length; c2++) {
82773
- const d2 = i2[c2];
82780
+ const [o2, i2] = parse3(t2), l2 = ue$4.test(t2) ? de$5(t2, o2, i2) ?? i2.map((f2) => f2.n) : i2.map((f2) => f2.n), c2 = [], m2 = [], e2 = [], h2 = [];
82781
+ for (let f2 = 0; f2 < o2.length; f2++) {
82782
+ const d2 = o2[f2];
82774
82783
  if (d2.n === void 0 || d2.t !== 1)
82775
82784
  continue;
82776
82785
  if (!t2.startsWith("export", d2.ss)) {
@@ -82779,7 +82788,7 @@ function fe$5(t2) {
82779
82788
  }
82780
82789
  const a2 = t2.slice(d2.ss, d2.se);
82781
82790
  if (/^export\s*\*\s*from/.test(a2))
82782
- f2.push(d2.n);
82791
+ c2.push(d2.n);
82783
82792
  else {
82784
82793
  const r3 = ce$5.exec(a2);
82785
82794
  if (r3 !== null) {
@@ -82797,31 +82806,31 @@ function fe$5(t2) {
82797
82806
  }
82798
82807
  }
82799
82808
  }
82800
- return { names: l2, stars: f2, namespaces: m2, reexports: e2, imports: h2 };
82809
+ return { names: l2, stars: c2, namespaces: m2, reexports: e2, imports: h2 };
82801
82810
  }
82802
82811
  const ae$4 = /^export\s*\{([^}]*)\}/, q$e = /([\w$]+|"[^"]*"|'[^']*')(?:\s+as\s+([\w$]+|"[^"]*"|'[^']*'))?/g;
82803
82812
  function b$j(t2) {
82804
82813
  return /^["']/.test(t2) ? t2.slice(1, -1) : t2;
82805
82814
  }
82806
82815
  const ue$4 = /\bexport\s+(?:const|let|var)\b/, W$d = /\bexport\s+(?:const|let|var)\b/g, F$j = /["']/;
82807
- function de$5(t2, i2, o2) {
82816
+ function de$5(t2, o2, i2) {
82808
82817
  const l2 = ie$4(t2);
82809
82818
  if (l2 === null)
82810
82819
  return null;
82811
- const { declarations: f2, words: m2 } = l2;
82812
- for (const c2 of i2)
82813
- if (c2.t === 1 && c2.ss >= 0 && !m2.has(c2.ss))
82820
+ const { declarations: c2, words: m2 } = l2;
82821
+ for (const f2 of o2)
82822
+ if (f2.t === 1 && f2.ss >= 0 && !m2.has(f2.ss))
82814
82823
  return null;
82815
82824
  const e2 = [];
82816
82825
  let h2 = -1;
82817
- for (const c2 of o2) {
82818
- c2.s >= 0 && (h2 = c2.s);
82819
- const d2 = F$j.test(t2[c2.s] ?? "") || F$j.test(t2[c2.s - 1] ?? "");
82820
- if (c2.s >= 0 && !d2 && !m2.has(c2.s))
82826
+ for (const f2 of i2) {
82827
+ f2.s >= 0 && (h2 = f2.s);
82828
+ const d2 = F$j.test(t2[f2.s] ?? "") || F$j.test(t2[f2.s - 1] ?? "");
82829
+ if (f2.s >= 0 && !d2 && !m2.has(f2.s))
82821
82830
  return null;
82822
- const a2 = f2.find((p2) => p2.start <= h2 && h2 < p2.end);
82831
+ const a2 = c2.find((p2) => p2.start <= h2 && h2 < p2.end);
82823
82832
  if (a2 === void 0) {
82824
- e2.push({ at: h2, name: c2.n });
82833
+ e2.push({ at: h2, name: f2.n });
82825
82834
  continue;
82826
82835
  }
82827
82836
  W$d.lastIndex = a2.start + 1;
@@ -82829,24 +82838,24 @@ function de$5(t2, i2, o2) {
82829
82838
  if (r3 !== null && r3.index < h2)
82830
82839
  return null;
82831
82840
  }
82832
- for (const c2 of f2)
82833
- for (const d2 of c2.names)
82834
- e2.push({ at: c2.start, name: d2 });
82835
- return e2.sort((c2, d2) => c2.at - d2.at).map((c2) => c2.name);
82841
+ for (const f2 of c2)
82842
+ for (const d2 of f2.names)
82843
+ e2.push({ at: f2.start, name: d2 });
82844
+ return e2.sort((f2, d2) => f2.at - d2.at).map((f2) => f2.name);
82836
82845
  }
82837
82846
  const C$k = /<script((?:\s+[^\s=>"'/]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>"']+))?)*)\s*>/gi, P$h = /<\/script\s*>/gi, pe$5 = /<!--[\s\S]*?-->/g, me$5 = /(?:^|\s)module(?:\s|=|$)|(?:^|\s)context\s*=\s*["']?module\b/;
82838
82847
  function xe$6(t2) {
82839
- const i2 = t2.includes("<!--") ? t2.replace(pe$5, (l2) => " ".repeat(l2.length)) : t2;
82848
+ const o2 = t2.includes("<!--") ? t2.replace(pe$5, (l2) => " ".repeat(l2.length)) : t2;
82840
82849
  C$k.lastIndex = 0;
82841
- let o2;
82842
- for (; (o2 = C$k.exec(i2)) !== null; ) {
82850
+ let i2;
82851
+ for (; (i2 = C$k.exec(o2)) !== null; ) {
82843
82852
  const l2 = C$k.lastIndex;
82844
82853
  P$h.lastIndex = l2;
82845
- const f2 = P$h.exec(i2);
82846
- if (f2 === null)
82854
+ const c2 = P$h.exec(o2);
82855
+ if (c2 === null)
82847
82856
  return null;
82848
- if (me$5.test(o2[1]))
82849
- return i2.slice(l2, f2.index);
82857
+ if (me$5.test(i2[1]))
82858
+ return o2.slice(l2, c2.index);
82850
82859
  C$k.lastIndex = P$h.lastIndex;
82851
82860
  }
82852
82861
  return null;