@lettuceai/crisp 1.2.2 → 1.3.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.
package/dist/index.js CHANGED
@@ -5611,8 +5611,57 @@ var Ki = a(function({ ratio: e = 1, className: t, style: n, ...r }, i) {
5611
5611
  });
5612
5612
  Ki.displayName = "AspectRatio";
5613
5613
  //#endregion
5614
+ //#region src/components/InlineMarkdown.tsx
5615
+ var qi = [
5616
+ "p",
5617
+ "strong",
5618
+ "em",
5619
+ "del",
5620
+ "code",
5621
+ "a",
5622
+ "br",
5623
+ "ul",
5624
+ "ol",
5625
+ "li",
5626
+ "blockquote"
5627
+ ];
5628
+ function Ji(e) {
5629
+ return e.replace(/^( {0,3})#(?=#{0,5}(?:\s|$))/gm, "$1\\#");
5630
+ }
5631
+ var Yi = ({ children: e }) => /* @__PURE__ */ W("span", { children: [e, " "] });
5632
+ function Xi({ children: e, className: t }) {
5633
+ return /* @__PURE__ */ U("span", {
5634
+ className: G(t),
5635
+ children: /* @__PURE__ */ U(Je, {
5636
+ remarkPlugins: [Ye],
5637
+ allowedElements: qi,
5638
+ unwrapDisallowed: !0,
5639
+ components: {
5640
+ p: Yi,
5641
+ ul: Yi,
5642
+ ol: Yi,
5643
+ li: Yi,
5644
+ blockquote: Yi,
5645
+ a: ({ children: e }) => /* @__PURE__ */ U("span", { children: e }),
5646
+ strong: ({ children: e }) => /* @__PURE__ */ U("strong", {
5647
+ className: "font-semibold",
5648
+ children: e
5649
+ }),
5650
+ em: ({ children: e }) => /* @__PURE__ */ U("em", { children: e }),
5651
+ del: ({ children: e }) => /* @__PURE__ */ U("del", { children: e }),
5652
+ code: ({ children: e }) => /* @__PURE__ */ U("code", {
5653
+ className: "rounded bg-fill px-1 font-mono text-[0.9em]",
5654
+ children: e
5655
+ }),
5656
+ br: () => /* @__PURE__ */ U(H, { children: " " })
5657
+ },
5658
+ children: Ji(e)
5659
+ })
5660
+ });
5661
+ }
5662
+ //#endregion
5614
5663
  //#region src/components/Prose.tsx
5615
- function qi({ children: e, size: t = "md", className: n }) {
5664
+ function Zi({ children: e, size: t = "md", className: n }) {
5616
5665
  return /* @__PURE__ */ U("div", {
5617
5666
  className: G(t === "sm" ? "text-sm" : "text-base", "leading-relaxed text-fg", n),
5618
5667
  children: /* @__PURE__ */ U(Je, {
@@ -5705,10 +5754,10 @@ function qi({ children: e, size: t = "md", className: n }) {
5705
5754
  }
5706
5755
  //#endregion
5707
5756
  //#region src/components/Radio.tsx
5708
- var Ji = r(null);
5709
- function Yi({ value: e, onChange: t, disabled: n, orientation: r = "vertical", className: i, children: a, ...o }) {
5757
+ var Qi = r(null);
5758
+ function $i({ value: e, onChange: t, disabled: n, orientation: r = "vertical", className: i, children: a, ...o }) {
5710
5759
  let s = u();
5711
- return /* @__PURE__ */ U(Ji.Provider, {
5760
+ return /* @__PURE__ */ U(Qi.Provider, {
5712
5761
  value: {
5713
5762
  name: s,
5714
5763
  value: e,
@@ -5723,8 +5772,8 @@ function Yi({ value: e, onChange: t, disabled: n, orientation: r = "vertical", c
5723
5772
  })
5724
5773
  });
5725
5774
  }
5726
- function Xi({ value: e, label: t, description: n, disabled: r }) {
5727
- let i = c(Ji);
5775
+ function ea({ value: e, label: t, description: n, disabled: r }) {
5776
+ let i = c(Qi);
5728
5777
  if (!i) throw Error("Radio must be used inside <RadioGroup>");
5729
5778
  let a = i.value === e, o = r || i.disabled;
5730
5779
  return /* @__PURE__ */ W("label", {
@@ -5758,7 +5807,7 @@ function Xi({ value: e, label: t, description: n, disabled: r }) {
5758
5807
  }
5759
5808
  //#endregion
5760
5809
  //#region src/components/Resizable.tsx
5761
- function Zi({ panel: e, children: t, side: n = "left", defaultSize: r = 320, minSize: i = 200, maxSize: a = 640, storageKey: o, className: c }) {
5810
+ function ta({ panel: e, children: t, side: n = "left", defaultSize: r = 320, minSize: i = 200, maxSize: a = 640, storageKey: o, className: c }) {
5762
5811
  let { strings: u } = q(), [d, f] = m(() => {
5763
5812
  if (!o || typeof localStorage > "u") return r;
5764
5813
  try {
@@ -5823,7 +5872,7 @@ function Zi({ panel: e, children: t, side: n = "left", defaultSize: r = 320, min
5823
5872
  }
5824
5873
  //#endregion
5825
5874
  //#region src/components/SearchField.tsx
5826
- var Qi = a(function({ value: e, onChange: t, loading: n, shortcut: r, size: i = "md", placeholder: a, className: o, ...s }, c) {
5875
+ var na = a(function({ value: e, onChange: t, loading: n, shortcut: r, size: i = "md", placeholder: a, className: o, ...s }, c) {
5827
5876
  let { strings: l } = q(), u = p(null);
5828
5877
  return /* @__PURE__ */ W("div", {
5829
5878
  className: "relative",
@@ -5864,10 +5913,10 @@ var Qi = a(function({ value: e, onChange: t, loading: n, shortcut: r, size: i =
5864
5913
  ]
5865
5914
  });
5866
5915
  });
5867
- Qi.displayName = "SearchField";
5916
+ na.displayName = "SearchField";
5868
5917
  //#endregion
5869
5918
  //#region src/components/Segmented.tsx
5870
- function $i({ options: e, value: t, onChange: n, size: r = "md", block: i, className: a, ...o }) {
5919
+ function ra({ options: e, value: t, onChange: n, size: r = "md", block: i, className: a, ...o }) {
5871
5920
  let s = u();
5872
5921
  return /* @__PURE__ */ U("div", {
5873
5922
  role: "radiogroup",
@@ -5906,7 +5955,7 @@ function $i({ options: e, value: t, onChange: n, size: r = "md", block: i, class
5906
5955
  }
5907
5956
  //#endregion
5908
5957
  //#region src/components/Select.tsx
5909
- var ea = a(function({ options: e, placeholder: t, className: n, id: r, value: i, defaultValue: a, ...o }, s) {
5958
+ var ia = a(function({ options: e, placeholder: t, className: n, id: r, value: i, defaultValue: a, ...o }, s) {
5910
5959
  let c = Y(), l = (i ?? a ?? "") === "";
5911
5960
  return /* @__PURE__ */ W("div", {
5912
5961
  className: "relative",
@@ -5935,10 +5984,10 @@ var ea = a(function({ options: e, placeholder: t, className: n, id: r, value: i,
5935
5984
  })]
5936
5985
  });
5937
5986
  });
5938
- ea.displayName = "Select";
5987
+ ia.displayName = "Select";
5939
5988
  //#endregion
5940
5989
  //#region src/components/SelectMenu.tsx
5941
- function ta(e) {
5990
+ function aa(e) {
5942
5991
  let { strings: t } = q(), { options: n, placeholder: r, triggerIcon: i = !0, disabled: a, id: o, className: c, menuClassName: d } = e, h = e.multiple === !0, g = Y(), _ = u(), [v, y] = m(!1), [b, x] = m(0), S = p(null), C = p({
5943
5992
  query: "",
5944
5993
  at: 0
@@ -6108,7 +6157,7 @@ function ta(e) {
6108
6157
  }
6109
6158
  //#endregion
6110
6159
  //#region src/components/Slider.tsx
6111
- var na = a(function({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, showValue: a, className: o, id: s, style: c, ...l }, u) {
6160
+ var oa = a(function({ value: e, onChange: t, min: n = 0, max: r = 100, step: i = 1, showValue: a, className: o, id: s, style: c, ...l }, u) {
6112
6161
  let d = Y(), f = (e - n) / (r - n) * 100, p = typeof a == "function" ? a(e) : a ? String(e) : null;
6113
6162
  return /* @__PURE__ */ W("div", {
6114
6163
  className: G("flex items-center gap-3", o),
@@ -6134,10 +6183,10 @@ var na = a(function({ value: e, onChange: t, min: n = 0, max: r = 100, step: i =
6134
6183
  })]
6135
6184
  });
6136
6185
  });
6137
- na.displayName = "Slider";
6186
+ oa.displayName = "Slider";
6138
6187
  //#endregion
6139
6188
  //#region src/components/StatTile.tsx
6140
- function ra({ label: e, value: t, sub: n, trend: r, goodDirection: i = "up", icon: a, highlight: o, className: s }) {
6189
+ function sa({ label: e, value: t, sub: n, trend: r, goodDirection: i = "up", icon: a, highlight: o, className: s }) {
6141
6190
  let c = r ? r.direction === i : void 0;
6142
6191
  return /* @__PURE__ */ W("div", {
6143
6192
  className: G("rounded-xl border px-3.5 py-3", o ? "border-accent/30 bg-accent/8" : "border-line bg-surface-1", s),
@@ -6173,7 +6222,7 @@ function ra({ label: e, value: t, sub: n, trend: r, goodDirection: i = "up", ico
6173
6222
  ]
6174
6223
  });
6175
6224
  }
6176
- function ia({ items: e, layout: t = "inline", className: n }) {
6225
+ function ca({ items: e, layout: t = "inline", className: n }) {
6177
6226
  return /* @__PURE__ */ U("dl", {
6178
6227
  className: G("divide-y divide-line", n),
6179
6228
  children: e.map((e, n) => /* @__PURE__ */ W("div", {
@@ -6190,7 +6239,7 @@ function ia({ items: e, layout: t = "inline", className: n }) {
6190
6239
  }
6191
6240
  //#endregion
6192
6241
  //#region src/components/Stepper.tsx
6193
- function aa({ steps: e, current: t, onStepClick: n, variant: r = "bar", className: i }) {
6242
+ function la({ steps: e, current: t, onStepClick: n, variant: r = "bar", className: i }) {
6194
6243
  let { strings: a } = q(), o = Math.max(0, Math.min(t, e.length - 1));
6195
6244
  return r === "dots" ? /* @__PURE__ */ U("div", {
6196
6245
  className: G("flex items-center gap-1.5", i),
@@ -6260,7 +6309,7 @@ function aa({ steps: e, current: t, onStepClick: n, variant: r = "bar", classNam
6260
6309
  }
6261
6310
  //#endregion
6262
6311
  //#region src/components/Switch.tsx
6263
- function oa({ checked: e, onChange: t, disabled: n, id: r, className: i, ...a }) {
6312
+ function ua({ checked: e, onChange: t, disabled: n, id: r, className: i, ...a }) {
6264
6313
  let o = Y();
6265
6314
  return /* @__PURE__ */ U("button", {
6266
6315
  type: "button",
@@ -6283,7 +6332,7 @@ function oa({ checked: e, onChange: t, disabled: n, id: r, className: i, ...a })
6283
6332
  }
6284
6333
  //#endregion
6285
6334
  //#region src/components/Table.tsx
6286
- function sa({ columns: e, rows: t, rowKey: n, sort: r, onSortChange: i, onRowClick: a, empty: o, caption: s, className: c }) {
6335
+ function da({ columns: e, rows: t, rowKey: n, sort: r, onSortChange: i, onRowClick: a, empty: o, caption: s, className: c }) {
6287
6336
  let { strings: l } = q(), u = (e) => {
6288
6337
  i && i({
6289
6338
  key: e,
@@ -6344,15 +6393,15 @@ function sa({ columns: e, rows: t, rowKey: n, sort: r, onSortChange: i, onRowCli
6344
6393
  }
6345
6394
  //#endregion
6346
6395
  //#region src/components/Tabs.tsx
6347
- var ca = r(null);
6348
- function la() {
6349
- let e = c(ca);
6396
+ var fa = r(null);
6397
+ function pa() {
6398
+ let e = c(fa);
6350
6399
  if (!e) throw Error("Tabs parts must be used inside <Tabs>");
6351
6400
  return e;
6352
6401
  }
6353
- function ua({ value: e, onChange: t, className: n, children: r }) {
6402
+ function ma({ value: e, onChange: t, className: n, children: r }) {
6354
6403
  let i = u();
6355
- return /* @__PURE__ */ U(ca.Provider, {
6404
+ return /* @__PURE__ */ U(fa.Provider, {
6356
6405
  value: {
6357
6406
  value: e,
6358
6407
  onChange: t,
@@ -6364,7 +6413,7 @@ function ua({ value: e, onChange: t, className: n, children: r }) {
6364
6413
  })
6365
6414
  });
6366
6415
  }
6367
- function da({ children: e, className: t, "aria-label": n }) {
6416
+ function ha({ children: e, className: t, "aria-label": n }) {
6368
6417
  return /* @__PURE__ */ U("div", {
6369
6418
  role: "tablist",
6370
6419
  "aria-label": n,
@@ -6381,8 +6430,8 @@ function da({ children: e, className: t, "aria-label": n }) {
6381
6430
  children: e
6382
6431
  });
6383
6432
  }
6384
- function fa({ value: e, icon: t, count: n, children: r }) {
6385
- let i = la(), a = i.value === e;
6433
+ function ga({ value: e, icon: t, count: n, children: r }) {
6434
+ let i = pa(), a = i.value === e;
6386
6435
  return /* @__PURE__ */ W("button", {
6387
6436
  type: "button",
6388
6437
  role: "tab",
@@ -6407,8 +6456,8 @@ function fa({ value: e, icon: t, count: n, children: r }) {
6407
6456
  ]
6408
6457
  });
6409
6458
  }
6410
- function pa({ value: e, className: t, children: n }) {
6411
- let r = la();
6459
+ function _a({ value: e, className: t, children: n }) {
6460
+ let r = pa();
6412
6461
  return r.value === e ? /* @__PURE__ */ U("div", {
6413
6462
  role: "tabpanel",
6414
6463
  id: `${r.id}-panel-${e}`,
@@ -6420,7 +6469,7 @@ function pa({ value: e, className: t, children: n }) {
6420
6469
  }
6421
6470
  //#endregion
6422
6471
  //#region src/components/TagInput.tsx
6423
- function ma({ value: e, onChange: t, placeholder: n, max: r, separators: i = [","], disabled: a, id: o, className: s }) {
6472
+ function va({ value: e, onChange: t, placeholder: n, max: r, separators: i = [","], disabled: a, id: o, className: s }) {
6424
6473
  let { strings: c } = q(), l = Y(), u = p(null), [d, f] = m(""), h = (n) => {
6425
6474
  let i = n.trim();
6426
6475
  if (!i || e.includes(i)) return f("");
@@ -6462,7 +6511,7 @@ function ma({ value: e, onChange: t, placeholder: n, max: r, separators: i = [",
6462
6511
  }
6463
6512
  //#endregion
6464
6513
  //#region src/components/Text.tsx
6465
- var ha = {
6514
+ var ya = {
6466
6515
  hero: "text-5xl font-bold leading-[1.05] tracking-[-0.03em] text-fg @3xl:text-6xl",
6467
6516
  display: "text-4xl font-bold leading-[1.1] tracking-tight text-fg",
6468
6517
  page: "text-3xl font-bold tracking-tight text-fg",
@@ -6473,7 +6522,7 @@ var ha = {
6473
6522
  label: "text-sm font-medium text-fg-2",
6474
6523
  hint: "text-sm text-fg-3",
6475
6524
  caption: "text-2xs text-fg-3"
6476
- }, ga = {
6525
+ }, ba = {
6477
6526
  hero: "h1",
6478
6527
  display: "h1",
6479
6528
  page: "h1",
@@ -6485,15 +6534,15 @@ var ha = {
6485
6534
  hint: "p",
6486
6535
  caption: "span"
6487
6536
  };
6488
- function _a({ variant: e = "body", as: t, className: n, ...r }) {
6489
- return i(t ?? ga[e], {
6490
- className: G(ha[e], n),
6537
+ function xa({ variant: e = "body", as: t, className: n, ...r }) {
6538
+ return i(t ?? ba[e], {
6539
+ className: G(ya[e], n),
6491
6540
  ...r
6492
6541
  });
6493
6542
  }
6494
6543
  //#endregion
6495
6544
  //#region src/lib/color.ts
6496
- function va(e) {
6545
+ function Sa(e) {
6497
6546
  let t = e.trim().replace(/^#/, ""), n = t.length === 3 ? t.split("").map((e) => e + e).join("") : t;
6498
6547
  return /^[0-9a-f]{6}$/i.test(n) ? {
6499
6548
  r: parseInt(n.slice(0, 2), 16),
@@ -6501,16 +6550,16 @@ function va(e) {
6501
6550
  b: parseInt(n.slice(4, 6), 16)
6502
6551
  } : null;
6503
6552
  }
6504
- function ya(e) {
6505
- let t = va(e);
6553
+ function Ca(e) {
6554
+ let t = Sa(e);
6506
6555
  return t ? `#${[
6507
6556
  t.r,
6508
6557
  t.g,
6509
6558
  t.b
6510
6559
  ].map((e) => e.toString(16).padStart(2, "0")).join("")}` : null;
6511
6560
  }
6512
- function ba(e) {
6513
- let t = va(e);
6561
+ function wa(e) {
6562
+ let t = Sa(e);
6514
6563
  if (!t) return 0;
6515
6564
  let n = (e) => {
6516
6565
  let t = e / 255;
@@ -6518,18 +6567,18 @@ function ba(e) {
6518
6567
  };
6519
6568
  return .2126 * n(t.r) + .7152 * n(t.g) + .0722 * n(t.b);
6520
6569
  }
6521
- function xa(e, t) {
6522
- let n = ba(e), r = ba(t);
6570
+ function Ta(e, t) {
6571
+ let n = wa(e), r = wa(t);
6523
6572
  return (Math.max(n, r) + .05) / (Math.min(n, r) + .05);
6524
6573
  }
6525
- function Sa(e) {
6526
- return ba(e) > .4;
6574
+ function Ea(e) {
6575
+ return wa(e) > .4;
6527
6576
  }
6528
- function Ca(e) {
6529
- return xa(e, "#ffffff") >= xa(e, "#000000") ? "#ffffff" : "#0a0a0a";
6577
+ function Da(e) {
6578
+ return Ta(e, "#ffffff") >= Ta(e, "#000000") ? "#ffffff" : "#0a0a0a";
6530
6579
  }
6531
- function wa(e, t, n) {
6532
- let r = va(e), i = va(t);
6580
+ function Oa(e, t, n) {
6581
+ let r = Sa(e), i = Sa(t);
6533
6582
  if (!r || !i) return e;
6534
6583
  let a = Math.min(1, Math.max(0, n)), o = (e, t) => Math.round(e + (t - e) * a);
6535
6584
  return `#${[
@@ -6540,7 +6589,7 @@ function wa(e, t, n) {
6540
6589
  }
6541
6590
  //#endregion
6542
6591
  //#region src/theme/theme.ts
6543
- var Ta = {
6592
+ var ka = {
6544
6593
  sharp: {
6545
6594
  sm: "2px",
6546
6595
  md: "3px",
@@ -6562,21 +6611,21 @@ var Ta = {
6562
6611
  xl: "18px",
6563
6612
  "2xl": "24px"
6564
6613
  }
6565
- }, Ea = {
6614
+ }, Aa = {
6566
6615
  fg2: 72,
6567
6616
  fg3: 50,
6568
6617
  fg4: 34
6569
- }, Da = {
6618
+ }, ja = {
6570
6619
  fill: 5,
6571
6620
  fill2: 8,
6572
6621
  fill3: 12
6573
- }, Oa = {
6622
+ }, Ma = {
6574
6623
  line: 10,
6575
6624
  line2: 16,
6576
6625
  line3: 26
6577
6626
  };
6578
- function ka(e) {
6579
- let { surface: t, fg: n, accent: r, danger: i, warning: a, info: o, secondary: s, nav: c } = e.colors, l = Sa(t), u = l ? wa(t, "#ffffff", .6) : wa(t, "#ffffff", .075), d = l ? "#ffffff" : wa(t, "#ffffff", .13), f = l ? .12 : .45, p = (e, t) => `color-mix(in oklab, ${e} ${t}%, transparent)`;
6627
+ function Na(e) {
6628
+ let { surface: t, fg: n, accent: r, danger: i, warning: a, info: o, secondary: s, nav: c } = e.colors, l = Ea(t), u = l ? Oa(t, "#ffffff", .6) : Oa(t, "#ffffff", .075), d = l ? "#ffffff" : Oa(t, "#ffffff", .13), f = l ? .12 : .45, p = (e, t) => `color-mix(in oklab, ${e} ${t}%, transparent)`;
6580
6629
  return {
6581
6630
  "--color-surface": t,
6582
6631
  "--color-surface-1": u,
@@ -6584,36 +6633,36 @@ function ka(e) {
6584
6633
  "--color-surface-el": u,
6585
6634
  "--color-nav": c ?? u,
6586
6635
  "--color-fg": n,
6587
- "--color-fg-2": p(n, Ea.fg2),
6588
- "--color-fg-3": p(n, Ea.fg3),
6589
- "--color-fg-4": p(n, Ea.fg4),
6590
- "--color-fill": p(n, Da.fill),
6591
- "--color-fill-2": p(n, Da.fill2),
6592
- "--color-fill-3": p(n, Da.fill3),
6593
- "--color-line": p(n, Oa.line),
6594
- "--color-line-2": p(n, Oa.line2),
6595
- "--color-line-3": p(n, Oa.line3),
6636
+ "--color-fg-2": p(n, Aa.fg2),
6637
+ "--color-fg-3": p(n, Aa.fg3),
6638
+ "--color-fg-4": p(n, Aa.fg4),
6639
+ "--color-fill": p(n, ja.fill),
6640
+ "--color-fill-2": p(n, ja.fill2),
6641
+ "--color-fill-3": p(n, ja.fill3),
6642
+ "--color-line": p(n, Ma.line),
6643
+ "--color-line-2": p(n, Ma.line2),
6644
+ "--color-line-3": p(n, Ma.line3),
6596
6645
  "--color-accent": r,
6597
6646
  "--color-danger": i,
6598
6647
  "--color-warning": a,
6599
6648
  "--color-info": o,
6600
6649
  "--color-secondary": s,
6601
- "--color-on-accent": Ca(r),
6650
+ "--color-on-accent": Da(r),
6602
6651
  "--color-knob": l ? "#ffffff" : n,
6603
6652
  "--edge-light": l ? "rgb(255 255 255 / 0.9)" : "rgb(255 255 255 / 0.08)",
6604
6653
  "--edge-dark": l ? "rgb(0 0 0 / 0.16)" : "rgb(0 0 0 / 0.55)",
6605
6654
  "--edge-ambient": l ? "rgb(0 0 0 / 0.08)" : "rgb(0 0 0 / 0.35)",
6606
6655
  "--shadow-raised": `0 8px 24px rgb(0 0 0 / ${f})`,
6607
6656
  "--shadow-sheet": `0 -12px 40px rgb(0 0 0 / ${f + .1})`,
6608
- ...Object.fromEntries(Object.entries(Ta[e.radius ?? "default"]).map(([e, t]) => [`--radius-${e}`, t]))
6657
+ ...Object.fromEntries(Object.entries(ka[e.radius ?? "default"]).map(([e, t]) => [`--radius-${e}`, t]))
6609
6658
  };
6610
6659
  }
6611
- function Aa(e, t = document.documentElement) {
6612
- let n = ka(e);
6660
+ function Pa(e, t = document.documentElement) {
6661
+ let n = Na(e);
6613
6662
  for (let [e, r] of Object.entries(n)) t.style.setProperty(e, r);
6614
- t.style.colorScheme = Sa(e.colors.surface) ? "light" : "dark", t.dataset.theme = Sa(e.colors.surface) ? "light" : "dark", t.dataset.density = e.density ?? "default";
6663
+ t.style.colorScheme = Ea(e.colors.surface) ? "light" : "dark", t.dataset.theme = Ea(e.colors.surface) ? "light" : "dark", t.dataset.density = e.density ?? "default";
6615
6664
  }
6616
- var ja = [
6665
+ var Fa = [
6617
6666
  {
6618
6667
  id: "midnight",
6619
6668
  name: "Midnight",
@@ -6692,29 +6741,29 @@ var ja = [
6692
6741
  secondary: "#e879f9"
6693
6742
  }
6694
6743
  }
6695
- ], Ma = ja[0], Na = "crisp.theme", Pa = r(null);
6696
- function Fa() {
6697
- let e = c(Pa);
6744
+ ], Ia = Fa[0], La = "crisp.theme", Ra = r(null);
6745
+ function za() {
6746
+ let e = c(Ra);
6698
6747
  if (!e) throw Error("useTheme must be used inside <ThemeProvider>");
6699
6748
  return e;
6700
6749
  }
6701
- function Ia() {
6702
- if (typeof localStorage > "u") return Ma;
6750
+ function Ba() {
6751
+ if (typeof localStorage > "u") return Ia;
6703
6752
  try {
6704
- let e = localStorage.getItem(Na);
6705
- if (!e) return Ma;
6753
+ let e = localStorage.getItem(La);
6754
+ if (!e) return Ia;
6706
6755
  let t = JSON.parse(e);
6707
- return !t?.colors?.surface || !t.colors.fg ? Ma : t;
6756
+ return !t?.colors?.surface || !t.colors.fg ? Ia : t;
6708
6757
  } catch {
6709
- return Ma;
6758
+ return Ia;
6710
6759
  }
6711
6760
  }
6712
- function La({ children: e, initial: t }) {
6713
- let [n, r] = m(() => t ?? Ia());
6714
- m(() => (typeof document < "u" && Aa(t ?? Ia()), null)), l(() => {
6715
- Aa(n);
6761
+ function Va({ children: e, initial: t }) {
6762
+ let [n, r] = m(() => t ?? Ba());
6763
+ m(() => (typeof document < "u" && Pa(t ?? Ba()), null)), l(() => {
6764
+ Pa(n);
6716
6765
  try {
6717
- localStorage.setItem(Na, JSON.stringify(n));
6766
+ localStorage.setItem(La, JSON.stringify(n));
6718
6767
  } catch {}
6719
6768
  }, [n]);
6720
6769
  let i = s((e, t) => {
@@ -6739,12 +6788,12 @@ function La({ children: e, initial: t }) {
6739
6788
  }));
6740
6789
  }, []), c = f(() => ({
6741
6790
  theme: n,
6742
- presets: ja,
6791
+ presets: Fa,
6743
6792
  setTheme: r,
6744
6793
  setColor: i,
6745
6794
  setRadius: a,
6746
6795
  setDensity: o,
6747
- reset: () => r(Ma),
6796
+ reset: () => r(Ia),
6748
6797
  isCustom: n.id === "custom"
6749
6798
  }), [
6750
6799
  n,
@@ -6752,14 +6801,14 @@ function La({ children: e, initial: t }) {
6752
6801
  a,
6753
6802
  o
6754
6803
  ]);
6755
- return /* @__PURE__ */ U(Pa.Provider, {
6804
+ return /* @__PURE__ */ U(Ra.Provider, {
6756
6805
  value: c,
6757
6806
  children: e
6758
6807
  });
6759
6808
  }
6760
6809
  //#endregion
6761
6810
  //#region src/components/ThemeEditor.tsx
6762
- var Ra = (e) => [
6811
+ var Ha = (e) => [
6763
6812
  {
6764
6813
  key: "surface",
6765
6814
  label: e.themeEditorSurface,
@@ -6795,7 +6844,7 @@ var Ra = (e) => [
6795
6844
  label: e.themeEditorSecondary,
6796
6845
  hint: e.themeEditorSecondaryHint
6797
6846
  }
6798
- ], za = [
6847
+ ], Ua = [
6799
6848
  {
6800
6849
  var: "--color-surface-1",
6801
6850
  label: "surface-1"
@@ -6845,7 +6894,7 @@ var Ra = (e) => [
6845
6894
  label: "on-accent"
6846
6895
  }
6847
6896
  ];
6848
- function Ba({ ratio: e, need: t = 4.5, label: n }) {
6897
+ function Wa({ ratio: e, need: t = 4.5, label: n }) {
6849
6898
  let { strings: r } = q(), i = e >= t;
6850
6899
  return /* @__PURE__ */ U(Nt, {
6851
6900
  content: r.themeEditorContrast(n, e.toFixed(2), t),
@@ -6860,13 +6909,13 @@ function Ba({ ratio: e, need: t = 4.5, label: n }) {
6860
6909
  })
6861
6910
  });
6862
6911
  }
6863
- function Va({ className: e }) {
6864
- let { strings: t } = q(), { theme: n, presets: r, setTheme: i, setColor: a, setRadius: o, setDensity: s, reset: c, isCustom: l } = Fa(), { surface: u, fg: d, accent: p } = n.colors, m = f(() => {
6865
- let e = xa(d, u);
6912
+ function Ga({ className: e }) {
6913
+ let { strings: t } = q(), { theme: n, presets: r, setTheme: i, setColor: a, setRadius: o, setDensity: s, reset: c, isCustom: l } = za(), { surface: u, fg: d, accent: p } = n.colors, m = f(() => {
6914
+ let e = Ta(d, u);
6866
6915
  return {
6867
6916
  body: e,
6868
6917
  muted: (e + 1) / 2,
6869
- accent: xa(p, u)
6918
+ accent: Ta(p, u)
6870
6919
  };
6871
6920
  }, [
6872
6921
  d,
@@ -6879,7 +6928,7 @@ function Va({ className: e }) {
6879
6928
  /* @__PURE__ */ W("div", {
6880
6929
  className: "flex flex-wrap items-center gap-2",
6881
6930
  children: [
6882
- /* @__PURE__ */ U($i, {
6931
+ /* @__PURE__ */ U(ra, {
6883
6932
  "aria-label": t.themeEditorPreset,
6884
6933
  size: "sm",
6885
6934
  value: l ? "custom" : n.id,
@@ -6896,7 +6945,7 @@ function Va({ className: e }) {
6896
6945
  }] : []]
6897
6946
  }),
6898
6947
  /* @__PURE__ */ U("span", { className: "flex-1" }),
6899
- /* @__PURE__ */ U($i, {
6948
+ /* @__PURE__ */ U(ra, {
6900
6949
  "aria-label": t.themeEditorDensity,
6901
6950
  size: "sm",
6902
6951
  value: n.density ?? "default",
@@ -6909,7 +6958,7 @@ function Va({ className: e }) {
6909
6958
  label: t.themeEditorDensityCompact
6910
6959
  }]
6911
6960
  }),
6912
- /* @__PURE__ */ U($i, {
6961
+ /* @__PURE__ */ U(ra, {
6913
6962
  "aria-label": t.themeEditorRadius,
6914
6963
  size: "sm",
6915
6964
  value: n.radius ?? "default",
@@ -6940,7 +6989,7 @@ function Va({ className: e }) {
6940
6989
  }),
6941
6990
  /* @__PURE__ */ U("div", {
6942
6991
  className: "grid gap-3 sm:grid-cols-2 lg:grid-cols-3",
6943
- children: Ra(t).map((e) => /* @__PURE__ */ W("div", {
6992
+ children: Ha(t).map((e) => /* @__PURE__ */ W("div", {
6944
6993
  className: "space-y-1.5",
6945
6994
  children: [
6946
6995
  /* @__PURE__ */ W("div", {
@@ -6968,16 +7017,16 @@ function Va({ className: e }) {
6968
7017
  /* @__PURE__ */ W("div", {
6969
7018
  className: "flex flex-wrap items-center gap-2",
6970
7019
  children: [
6971
- /* @__PURE__ */ U(Ba, {
7020
+ /* @__PURE__ */ U(Wa, {
6972
7021
  ratio: m.body,
6973
7022
  label: t.themeEditorBody
6974
7023
  }),
6975
- /* @__PURE__ */ U(Ba, {
7024
+ /* @__PURE__ */ U(Wa, {
6976
7025
  ratio: m.muted,
6977
7026
  need: 4.5,
6978
7027
  label: t.themeEditorMuted
6979
7028
  }),
6980
- /* @__PURE__ */ U(Ba, {
7029
+ /* @__PURE__ */ U(Wa, {
6981
7030
  ratio: m.accent,
6982
7031
  need: 3,
6983
7032
  label: t.themeEditorAccent
@@ -6997,7 +7046,7 @@ function Va({ className: e }) {
6997
7046
  }),
6998
7047
  /* @__PURE__ */ U("div", {
6999
7048
  className: "flex flex-wrap gap-2 pt-1",
7000
- children: za.map((e) => /* @__PURE__ */ W("div", {
7049
+ children: Ua.map((e) => /* @__PURE__ */ W("div", {
7001
7050
  className: "flex items-center gap-2 rounded-lg border border-line bg-fill px-2 py-1.5",
7002
7051
  children: [/* @__PURE__ */ U("span", {
7003
7052
  className: "h-5 w-5 shrink-0 rounded-md ring-1 ring-inset ring-line-2",
@@ -7015,7 +7064,7 @@ function Va({ className: e }) {
7015
7064
  }
7016
7065
  //#endregion
7017
7066
  //#region src/components/Timeline.tsx
7018
- var Ha = {
7067
+ var Ka = {
7019
7068
  neutral: "border-line-3 bg-fill-2 text-fg-3",
7020
7069
  accent: "border-accent/45 bg-accent/18 text-accent",
7021
7070
  info: "border-info/40 bg-info/15 text-info",
@@ -7023,7 +7072,7 @@ var Ha = {
7023
7072
  danger: "border-danger/40 bg-danger/15 text-danger",
7024
7073
  secondary: "border-secondary/40 bg-secondary/15 text-secondary"
7025
7074
  };
7026
- function Ua({ items: e, className: t }) {
7075
+ function qa({ items: e, className: t }) {
7027
7076
  return /* @__PURE__ */ U("ol", {
7028
7077
  className: G("relative", t),
7029
7078
  children: e.map((t, n) => /* @__PURE__ */ W("li", {
@@ -7034,7 +7083,7 @@ function Ua({ items: e, className: t }) {
7034
7083
  className: "absolute left-3.5 top-8 h-[calc(100%-2rem)] w-px bg-line"
7035
7084
  }),
7036
7085
  /* @__PURE__ */ W("span", {
7037
- className: G("relative z-10 flex h-7 w-7 shrink-0 items-center justify-center rounded-full border", Ha[t.tone ?? "neutral"]),
7086
+ className: G("relative z-10 flex h-7 w-7 shrink-0 items-center justify-center rounded-full border", Ka[t.tone ?? "neutral"]),
7038
7087
  children: [t.active && /* @__PURE__ */ U("span", {
7039
7088
  "aria-hidden": "true",
7040
7089
  className: "absolute inset-0 animate-ping rounded-full bg-current opacity-25 motion-reduce:hidden"
@@ -7062,7 +7111,7 @@ function Ua({ items: e, className: t }) {
7062
7111
  }
7063
7112
  //#endregion
7064
7113
  //#region src/components/TitleBar.tsx
7065
- function Wa({ title: e, platform: t = "linux", onMinimize: n, onMaximize: r, onClose: i, children: a, className: o }) {
7114
+ function Ja({ title: e, platform: t = "linux", onMinimize: n, onMaximize: r, onClose: i, children: a, className: o }) {
7066
7115
  let { strings: s } = q(), c = t === "macos";
7067
7116
  return /* @__PURE__ */ W("div", {
7068
7117
  "data-tauri-drag-region": !0,
@@ -7108,7 +7157,7 @@ function Wa({ title: e, platform: t = "linux", onMinimize: n, onMaximize: r, onC
7108
7157
  }
7109
7158
  //#endregion
7110
7159
  //#region src/components/Toast.tsx
7111
- var Ga = {
7160
+ var Ya = {
7112
7161
  info: /* @__PURE__ */ U(ue, {
7113
7162
  size: 16,
7114
7163
  className: "text-info"
@@ -7125,24 +7174,24 @@ var Ga = {
7125
7174
  size: 16,
7126
7175
  className: "text-danger"
7127
7176
  })
7128
- }, Ka = {
7177
+ }, Xa = {
7129
7178
  info: "bg-info",
7130
7179
  success: "bg-accent",
7131
7180
  warning: "bg-warning",
7132
7181
  error: "bg-danger"
7133
- }, qa = "pointer-events-auto relative flex w-full items-start gap-3 overflow-hidden rounded-xl border border-line bg-surface-2 py-3 pl-4 pr-3 shadow-raised";
7134
- function Ja({ tone: e, title: t, description: n, action: r, secondary: i, onDismiss: a }) {
7182
+ }, Za = "pointer-events-auto relative flex w-full items-start gap-3 overflow-hidden rounded-xl border border-line bg-surface-2 py-3 pl-4 pr-3 shadow-raised";
7183
+ function Qa({ tone: e, title: t, description: n, action: r, secondary: i, onDismiss: a }) {
7135
7184
  let { strings: o } = q(), s = (e) => (t) => {
7136
7185
  t.preventDefault(), t.stopPropagation(), e(), a();
7137
7186
  };
7138
7187
  return /* @__PURE__ */ W(H, { children: [
7139
7188
  /* @__PURE__ */ U("span", {
7140
7189
  "aria-hidden": "true",
7141
- className: G("absolute inset-y-0 left-0 w-0.5", Ka[e])
7190
+ className: G("absolute inset-y-0 left-0 w-0.5", Xa[e])
7142
7191
  }),
7143
7192
  /* @__PURE__ */ U("span", {
7144
7193
  className: "mt-0.5 shrink-0",
7145
- children: Ga[e]
7194
+ children: Ya[e]
7146
7195
  }),
7147
7196
  /* @__PURE__ */ W("div", {
7148
7197
  className: "min-w-0 flex-1",
@@ -7185,10 +7234,10 @@ function Ja({ tone: e, title: t, description: n, action: r, secondary: i, onDism
7185
7234
  })
7186
7235
  ] });
7187
7236
  }
7188
- function Ya(e, t, n, r) {
7237
+ function $a(e, t, n, r) {
7189
7238
  return Ze.custom((i) => /* @__PURE__ */ U("div", {
7190
- className: qa,
7191
- children: /* @__PURE__ */ U(Ja, {
7239
+ className: Za,
7240
+ children: /* @__PURE__ */ U(Qa, {
7192
7241
  tone: e,
7193
7242
  title: t,
7194
7243
  description: n,
@@ -7201,10 +7250,10 @@ function Ya(e, t, n, r) {
7201
7250
  id: r?.id
7202
7251
  });
7203
7252
  }
7204
- function Xa({ id: e, title: t, description: n, progress: r, duration: i }) {
7253
+ function eo({ id: e, title: t, description: n, progress: r, duration: i }) {
7205
7254
  let a = r === void 0 ? void 0 : Math.round(Math.min(1, Math.max(0, r)) * 100);
7206
7255
  return Ze.custom(() => /* @__PURE__ */ W("div", {
7207
- className: G(qa, "items-center"),
7256
+ className: G(Za, "items-center"),
7208
7257
  children: [
7209
7258
  /* @__PURE__ */ U("span", {
7210
7259
  "aria-hidden": "true",
@@ -7253,16 +7302,16 @@ function Xa({ id: e, title: t, description: n, progress: r, duration: i }) {
7253
7302
  id: e
7254
7303
  });
7255
7304
  }
7256
- var Za = {
7257
- info: (e, t, n) => Ya("info", e, t, n),
7258
- success: (e, t, n) => Ya("success", e, t, n),
7259
- warning: (e, t, n) => Ya("warning", e, t, n),
7260
- error: (e, t, n) => Ya("error", e, t, n),
7261
- progress: Xa,
7305
+ var to = {
7306
+ info: (e, t, n) => $a("info", e, t, n),
7307
+ success: (e, t, n) => $a("success", e, t, n),
7308
+ warning: (e, t, n) => $a("warning", e, t, n),
7309
+ error: (e, t, n) => $a("error", e, t, n),
7310
+ progress: eo,
7262
7311
  dismiss: (e) => Ze.dismiss(e),
7263
7312
  isVisible: (e) => Ze.getToasts().some((t) => t.id === e)
7264
7313
  };
7265
- function Qa({ position: e = "bottom-center", bottomInset: t = 0 } = {}) {
7314
+ function no({ position: e = "bottom-center", bottomInset: t = 0 } = {}) {
7266
7315
  return /* @__PURE__ */ U(Xe, {
7267
7316
  position: e,
7268
7317
  gap: 8,
@@ -7283,7 +7332,7 @@ function Qa({ position: e = "bottom-center", bottomInset: t = 0 } = {}) {
7283
7332
  }
7284
7333
  //#endregion
7285
7334
  //#region src/components/ToggleGroup.tsx
7286
- function $a({ options: e, value: t, onChange: n, min: r = 0, size: i = "md", className: a, ...o }) {
7335
+ function ro({ options: e, value: t, onChange: n, min: r = 0, size: i = "md", className: a, ...o }) {
7287
7336
  let s = (e) => {
7288
7337
  if (e.disabled) return;
7289
7338
  let i = t.includes(e.value);
@@ -7314,7 +7363,7 @@ function $a({ options: e, value: t, onChange: n, min: r = 0, size: i = "md", cla
7314
7363
  }
7315
7364
  //#endregion
7316
7365
  //#region src/components/Toolbar.tsx
7317
- function eo({ variant: e = "bar", className: t, children: n, ...r }) {
7366
+ function io({ variant: e = "bar", className: t, children: n, ...r }) {
7318
7367
  return /* @__PURE__ */ U("div", {
7319
7368
  role: "toolbar",
7320
7369
  "aria-label": r["aria-label"],
@@ -7328,13 +7377,13 @@ function eo({ variant: e = "bar", className: t, children: n, ...r }) {
7328
7377
  children: n
7329
7378
  });
7330
7379
  }
7331
- function to() {
7380
+ function ao() {
7332
7381
  return /* @__PURE__ */ U("span", {
7333
7382
  "aria-hidden": "true",
7334
7383
  className: "mx-1 h-5 w-px shrink-0 bg-line"
7335
7384
  });
7336
7385
  }
7337
- function no({ children: e, className: t }) {
7386
+ function oo({ children: e, className: t }) {
7338
7387
  return /* @__PURE__ */ U("div", {
7339
7388
  className: G("flex items-center gap-0.5", t),
7340
7389
  children: e
@@ -7342,8 +7391,8 @@ function no({ children: e, className: t }) {
7342
7391
  }
7343
7392
  //#endregion
7344
7393
  //#region src/components/Tour.tsx
7345
- var ro = 8;
7346
- function io({ steps: e, open: t, onClose: n, onFinish: r, finishLabel: i }) {
7394
+ var so = 8;
7395
+ function co({ steps: e, open: t, onClose: n, onFinish: r, finishLabel: i }) {
7347
7396
  let { strings: a } = q(), [o, c] = m(0), [u, f] = m(null), p = e[o];
7348
7397
  l(() => {
7349
7398
  t && c(0);
@@ -7398,8 +7447,8 @@ function io({ steps: e, open: t, onClose: n, onFinish: r, finishLabel: i }) {
7398
7447
  layout: !0,
7399
7448
  transition: K.surface,
7400
7449
  style: {
7401
- top: u.top - ro,
7402
- left: u.left - ro,
7450
+ top: u.top - so,
7451
+ left: u.left - so,
7403
7452
  width: u.width + 16,
7404
7453
  height: u.height + 16
7405
7454
  },
@@ -7444,7 +7493,7 @@ function io({ steps: e, open: t, onClose: n, onFinish: r, finishLabel: i }) {
7444
7493
  /* @__PURE__ */ W("div", {
7445
7494
  className: "mt-4 flex items-center gap-3",
7446
7495
  children: [
7447
- /* @__PURE__ */ U(aa, {
7496
+ /* @__PURE__ */ U(la, {
7448
7497
  steps: e.map((e, t) => ({
7449
7498
  id: String(t),
7450
7499
  label: String(e.title)
@@ -7472,7 +7521,7 @@ function io({ steps: e, open: t, onClose: n, onFinish: r, finishLabel: i }) {
7472
7521
  }
7473
7522
  //#endregion
7474
7523
  //#region src/components/Tree.tsx
7475
- function ao({ nodes: e, selectedId: t, onSelect: n, defaultExpanded: r = [], className: i }) {
7524
+ function lo({ nodes: e, selectedId: t, onSelect: n, defaultExpanded: r = [], className: i }) {
7476
7525
  let { strings: a } = q(), [o, s] = m(() => new Set(r)), c = (e) => s((t) => {
7477
7526
  let n = new Set(t);
7478
7527
  return n.has(e) ? n.delete(e) : n.add(e), n;
@@ -7530,7 +7579,7 @@ function ao({ nodes: e, selectedId: t, onSelect: n, defaultExpanded: r = [], cla
7530
7579
  }
7531
7580
  //#endregion
7532
7581
  //#region src/components/VirtualList.tsx
7533
- function oo({ items: e, children: t, estimateSize: n = 56, overscan: r = 8, itemKey: i, className: a }) {
7582
+ function uo({ items: e, children: t, estimateSize: n = 56, overscan: r = 8, itemKey: i, className: a }) {
7534
7583
  let o = p(null), s = Qe({
7535
7584
  count: e.length,
7536
7585
  getScrollElement: () => o.current,
@@ -7564,7 +7613,7 @@ function oo({ items: e, children: t, estimateSize: n = 56, overscan: r = 8, item
7564
7613
  }
7565
7614
  //#endregion
7566
7615
  //#region src/components/WindowControls.tsx
7567
- var so = [
7616
+ var fo = [
7568
7617
  {
7569
7618
  dir: "North",
7570
7619
  className: "left-2 right-2 top-0 h-1 cursor-n-resize"
@@ -7598,8 +7647,8 @@ var so = [
7598
7647
  className: "bottom-0 right-0 h-2.5 w-2.5 cursor-se-resize"
7599
7648
  }
7600
7649
  ];
7601
- function co({ onResizeStart: e, disabled: t }) {
7602
- return t ? null : /* @__PURE__ */ U(H, { children: so.map(({ dir: t, className: n }) => /* @__PURE__ */ U("div", {
7650
+ function po({ onResizeStart: e, disabled: t }) {
7651
+ return t ? null : /* @__PURE__ */ U(H, { children: fo.map(({ dir: t, className: n }) => /* @__PURE__ */ U("div", {
7603
7652
  "aria-hidden": "true",
7604
7653
  "data-tauri-drag-region": "false",
7605
7654
  onPointerDown: (n) => {
@@ -7610,7 +7659,7 @@ function co({ onResizeStart: e, disabled: t }) {
7610
7659
  }
7611
7660
  //#endregion
7612
7661
  //#region src/components/ActionBar.tsx
7613
- function lo({ primary: e, secondary: t, onBack: n, backLabel: r, leading: i, pinned: a, className: o }) {
7662
+ function mo({ primary: e, secondary: t, onBack: n, backLabel: r, leading: i, pinned: a, className: o }) {
7614
7663
  let { strings: s } = q(), c = Ot(), l = a ?? c;
7615
7664
  return /* @__PURE__ */ W("div", {
7616
7665
  className: G("flex items-center gap-2", l ? "sticky bottom-0 z-20 border-t border-line bg-surface/90 px-4 pt-3 pb-[calc(var(--safe-bottom,0px)+0.75rem)] backdrop-blur-md" : "pt-8", o),
@@ -7630,7 +7679,7 @@ function lo({ primary: e, secondary: t, onBack: n, backLabel: r, leading: i, pin
7630
7679
  }
7631
7680
  //#endregion
7632
7681
  //#region src/components/ChoiceCard.tsx
7633
- var uo = a(function({ selected: e, title: t, description: n, icon: r, meta: i, indicator: a = "radio", children: o, layout: s = "row", className: c, type: l = "button", ...u }, d) {
7682
+ var ho = a(function({ selected: e, title: t, description: n, icon: r, meta: i, indicator: a = "radio", children: o, layout: s = "row", className: c, type: l = "button", ...u }, d) {
7634
7683
  let f = a === "none" ? null : /* @__PURE__ */ U("span", {
7635
7684
  "aria-hidden": "true",
7636
7685
  className: G("flex h-5 w-5 shrink-0 items-center justify-center border transition-colors motion-instant", a === "radio" ? "rounded-full" : "rounded-md", e ? "border-accent bg-accent text-on-accent" : "border-line-3"),
@@ -7680,10 +7729,10 @@ var uo = a(function({ selected: e, title: t, description: n, icon: r, meta: i, i
7680
7729
  })]
7681
7730
  });
7682
7731
  });
7683
- uo.displayName = "ChoiceCard";
7732
+ ho.displayName = "ChoiceCard";
7684
7733
  //#endregion
7685
7734
  //#region src/components/Shelf.tsx
7686
- function fo({ children: e, itemClassName: t = "w-40", bleed: n = !0, className: r, ...i }) {
7735
+ function go({ children: e, itemClassName: t = "w-40", bleed: n = !0, className: r, ...i }) {
7687
7736
  let { strings: a } = q(), o = p(null), [s, c] = m({
7688
7737
  start: !1,
7689
7738
  end: !1
@@ -7745,7 +7794,7 @@ function fo({ children: e, itemClassName: t = "w-40", bleed: n = !0, className:
7745
7794
  }
7746
7795
  //#endregion
7747
7796
  //#region src/components/Wizard.tsx
7748
- function po(e, t = 0) {
7797
+ function _o(e, t = 0) {
7749
7798
  let [n, r] = m(t), i = (t) => Math.max(0, Math.min(e.length - 1, t));
7750
7799
  return {
7751
7800
  index: n,
@@ -7757,11 +7806,11 @@ function po(e, t = 0) {
7757
7806
  goTo: (e) => r(i(e))
7758
7807
  };
7759
7808
  }
7760
- function mo({ steps: e, index: t, onStepClick: n, title: r, description: i, progress: a = "bar", className: o, children: s }) {
7809
+ function vo({ steps: e, index: t, onStepClick: n, title: r, description: i, progress: a = "bar", className: o, children: s }) {
7761
7810
  let c = C(), [l, u] = m(t), d = t >= l ? 1 : -1;
7762
7811
  return l !== t && u(t), /* @__PURE__ */ W("div", {
7763
7812
  className: G("space-y-6", o),
7764
- children: [a !== "none" && /* @__PURE__ */ U(aa, {
7813
+ children: [a !== "none" && /* @__PURE__ */ U(la, {
7765
7814
  steps: e,
7766
7815
  current: t,
7767
7816
  onStepClick: n,
@@ -7801,7 +7850,7 @@ function mo({ steps: e, index: t, onStepClick: n, title: r, description: i, prog
7801
7850
  }
7802
7851
  //#endregion
7803
7852
  //#region src/components/SecretInput.tsx
7804
- var ho = a(function({ value: e, onChange: t, status: n = { state: "idle" }, paste: r = !0, className: i, id: a, disabled: o, ...s }, c) {
7853
+ var yo = a(function({ value: e, onChange: t, status: n = { state: "idle" }, paste: r = !0, className: i, id: a, disabled: o, ...s }, c) {
7805
7854
  let { strings: l } = q(), u = Y(), [d, f] = m(!1), p = r && typeof navigator < "u" && !!navigator.clipboard?.readText, h = async () => {
7806
7855
  try {
7807
7856
  let e = (await navigator.clipboard.readText()).trim();
@@ -7862,10 +7911,10 @@ var ho = a(function({ value: e, onChange: t, status: n = { state: "idle" }, past
7862
7911
  ]
7863
7912
  })] });
7864
7913
  });
7865
- ho.displayName = "SecretInput";
7914
+ yo.displayName = "SecretInput";
7866
7915
  //#endregion
7867
7916
  //#region src/components/ReorderableList.tsx
7868
- function go({ items: e, onReorder: t, keyOf: n, children: r, axis: i = "y", handleOnly: a = !0, className: o, itemClassName: s, ...c }) {
7917
+ function bo({ items: e, onReorder: t, keyOf: n, children: r, axis: i = "y", handleOnly: a = !0, className: o, itemClassName: s, ...c }) {
7869
7918
  let l = (n, r) => {
7870
7919
  if (r < 0 || r >= e.length || n === r) return;
7871
7920
  let i = [...e], [a] = i.splice(n, 1);
@@ -7877,7 +7926,7 @@ function go({ items: e, onReorder: t, keyOf: n, children: r, axis: i = "y", hand
7877
7926
  onReorder: t,
7878
7927
  "aria-label": c["aria-label"],
7879
7928
  className: G("flex", i === "y" ? "flex-col gap-2" : "flex-row gap-2", o),
7880
- children: e.map((t, o) => /* @__PURE__ */ U(_o, {
7929
+ children: e.map((t, o) => /* @__PURE__ */ U(xo, {
7881
7930
  item: t,
7882
7931
  index: o,
7883
7932
  count: e.length,
@@ -7889,7 +7938,7 @@ function go({ items: e, onReorder: t, keyOf: n, children: r, axis: i = "y", hand
7889
7938
  }, n(t)))
7890
7939
  });
7891
7940
  }
7892
- function _o({ item: e, index: t, count: n, handleOnly: r, axis: i, onMove: a, className: o, children: s }) {
7941
+ function xo({ item: e, index: t, count: n, handleOnly: r, axis: i, onMove: a, className: o, children: s }) {
7893
7942
  let { strings: c } = q(), l = b(), u = C(), d = /* @__PURE__ */ U("button", {
7894
7943
  type: "button",
7895
7944
  "aria-label": c.reorderableHandle(t + 1, n),
@@ -7919,7 +7968,7 @@ function _o({ item: e, index: t, count: n, handleOnly: r, axis: i, onMove: a, cl
7919
7968
  }
7920
7969
  //#endregion
7921
7970
  //#region src/components/AvatarPicker.tsx
7922
- function vo({ value: e, onChange: t, name: n = "?", size: r = "xl", output: i = 512, crop: a = !0, disabled: o, className: s }) {
7971
+ function So({ value: e, onChange: t, name: n = "?", size: r = "xl", output: i = 512, crop: a = !0, disabled: o, className: s }) {
7923
7972
  let { strings: c } = q(), [l, u] = m(null), d = (e) => {
7924
7973
  let n = new FileReader();
7925
7974
  n.onload = () => a ? u(String(n.result)) : t(String(n.result)), n.readAsDataURL(e);
@@ -7951,7 +8000,7 @@ function vo({ value: e, onChange: t, name: n = "?", size: r = "xl", output: i =
7951
8000
  className: "absolute -left-1 -top-1 flex h-7 w-7 items-center justify-center rounded-full border border-line-2 bg-surface-2 text-fg-3 shadow-raised hover:text-danger",
7952
8001
  children: /* @__PURE__ */ U(De, { size: Z.xs })
7953
8002
  })]
7954
- }), /* @__PURE__ */ U(bo, {
8003
+ }), /* @__PURE__ */ U(wo, {
7955
8004
  src: l,
7956
8005
  output: i,
7957
8006
  onClose: () => u(null),
@@ -7960,8 +8009,8 @@ function vo({ value: e, onChange: t, name: n = "?", size: r = "xl", output: i =
7960
8009
  }
7961
8010
  })] });
7962
8011
  }
7963
- var yo = 288;
7964
- function bo({ src: e, output: t, onClose: n, onDone: r }) {
8012
+ var Co = 288;
8013
+ function wo({ src: e, output: t, onClose: n, onDone: r }) {
7965
8014
  let { strings: i } = q(), [a, o] = m(null), [s, c] = m(1), [u, d] = m({
7966
8015
  x: 0,
7967
8016
  y: 0
@@ -7979,12 +8028,12 @@ function bo({ src: e, output: t, onClose: n, onDone: r }) {
7979
8028
  });
7980
8029
  }, t.src = e;
7981
8030
  }, [e]);
7982
- let h = (a ? Math.max(yo / a.width, yo / a.height) : 1) * s, g = (a?.width ?? 0) * h, _ = (a?.height ?? 0) * h, v = ((e) => ({
7983
- x: Math.min(Math.max(e.x, yo - g), 0),
7984
- y: Math.min(Math.max(e.y, yo - _), 0)
8031
+ let h = (a ? Math.max(Co / a.width, Co / a.height) : 1) * s, g = (a?.width ?? 0) * h, _ = (a?.height ?? 0) * h, v = ((e) => ({
8032
+ x: Math.min(Math.max(e.x, Co - g), 0),
8033
+ y: Math.min(Math.max(e.y, Co - _), 0)
7985
8034
  }))({
7986
- x: u.x + (yo - g) / 2,
7987
- y: u.y + (yo - _) / 2
8035
+ x: u.x + (Co - g) / 2,
8036
+ y: u.y + (Co - _) / 2
7988
8037
  }), y = (e) => {
7989
8038
  f.current = {
7990
8039
  x: e.clientX,
@@ -8018,7 +8067,7 @@ function bo({ src: e, output: t, onClose: n, onDone: r }) {
8018
8067
  if (!a) return;
8019
8068
  let e = document.createElement("canvas");
8020
8069
  e.width = t, e.height = t;
8021
- let n = e.getContext("2d"), i = t / yo;
8070
+ let n = e.getContext("2d"), i = t / Co;
8022
8071
  n.drawImage(a, v.x * i, v.y * i, g * i, _ * i), r(e.toDataURL("image/webp", .9));
8023
8072
  },
8024
8073
  children: i.avatarPickerUse
@@ -8033,8 +8082,8 @@ function bo({ src: e, output: t, onClose: n, onDone: r }) {
8033
8082
  onPointerCancel: x,
8034
8083
  className: "relative cursor-grab touch-none select-none overflow-hidden rounded-2xl bg-black active:cursor-grabbing",
8035
8084
  style: {
8036
- width: yo,
8037
- height: yo
8085
+ width: Co,
8086
+ height: Co
8038
8087
  },
8039
8088
  children: [
8040
8089
  a && /* @__PURE__ */ U("img", {
@@ -8063,7 +8112,7 @@ function bo({ src: e, output: t, onClose: n, onDone: r }) {
8063
8112
  children: [/* @__PURE__ */ U(je, {
8064
8113
  size: Z.md,
8065
8114
  className: "shrink-0 text-fg-3"
8066
- }), /* @__PURE__ */ U(na, {
8115
+ }), /* @__PURE__ */ U(oa, {
8067
8116
  "aria-label": i.avatarPickerZoom,
8068
8117
  value: s,
8069
8118
  onChange: c,
@@ -8078,7 +8127,7 @@ function bo({ src: e, output: t, onClose: n, onDone: r }) {
8078
8127
  }
8079
8128
  //#endregion
8080
8129
  //#region src/components/Page.tsx
8081
- function xo({ footer: e, mainRef: t, padding: n = "default", contentClassName: r, className: i, children: a, ...o }) {
8130
+ function To({ footer: e, mainRef: t, padding: n = "default", contentClassName: r, className: i, children: a, ...o }) {
8082
8131
  return /* @__PURE__ */ W("div", {
8083
8132
  className: G("flex h-full min-h-0 flex-col", i),
8084
8133
  children: [/* @__PURE__ */ W("main", {
@@ -8096,7 +8145,7 @@ function xo({ footer: e, mainRef: t, padding: n = "default", contentClassName: r
8096
8145
  }
8097
8146
  //#endregion
8098
8147
  //#region src/components/ModelSelect.tsx
8099
- var So = (e, t) => /* @__PURE__ */ W("span", {
8148
+ var Eo = (e, t) => /* @__PURE__ */ W("span", {
8100
8149
  className: "flex items-center gap-1",
8101
8150
  children: [e.vision && /* @__PURE__ */ U(ut, {
8102
8151
  tone: "info",
@@ -8106,7 +8155,7 @@ var So = (e, t) => /* @__PURE__ */ W("span", {
8106
8155
  children: t.modelSelectAudio
8107
8156
  })]
8108
8157
  });
8109
- function Co({ models: e, value: t, onChange: n, placeholder: r, defaultId: i, footer: a, disabled: o, id: s, className: c, ...l }) {
8158
+ function Do({ models: e, value: t, onChange: n, placeholder: r, defaultId: i, footer: a, disabled: o, id: s, className: c, ...l }) {
8110
8159
  let { strings: u } = q(), d = Ot(), [p, h] = m(!1), g = e.find((e) => e.id === t) ?? null, _ = f(() => e.map((e) => ({
8111
8160
  value: e.id,
8112
8161
  label: e.name,
@@ -8115,14 +8164,14 @@ function Co({ models: e, value: t, onChange: n, placeholder: r, defaultId: i, fo
8115
8164
  icon: e.local ? /* @__PURE__ */ U(R, { size: Z.md }) : /* @__PURE__ */ U(ce, { size: Z.md }),
8116
8165
  meta: /* @__PURE__ */ W("span", {
8117
8166
  className: "flex items-center gap-1",
8118
- children: [So(e, u), e.id === i && /* @__PURE__ */ U(ut, {
8167
+ children: [Eo(e, u), e.id === i && /* @__PURE__ */ U(ut, {
8119
8168
  tone: "accent",
8120
8169
  dot: !0,
8121
8170
  children: u.modelSelectDefault
8122
8171
  })]
8123
8172
  })
8124
8173
  })), [e, i]);
8125
- if (!d) return /* @__PURE__ */ U(ta, {
8174
+ if (!d) return /* @__PURE__ */ U(aa, {
8126
8175
  id: s,
8127
8176
  options: _,
8128
8177
  value: t,
@@ -8152,7 +8201,7 @@ function Co({ models: e, value: t, onChange: n, placeholder: r, defaultId: i, fo
8152
8201
  }),
8153
8202
  g && /* @__PURE__ */ U("span", {
8154
8203
  className: "hidden @sm:flex",
8155
- children: So(g, u)
8204
+ children: Eo(g, u)
8156
8205
  }),
8157
8206
  /* @__PURE__ */ U(N, {
8158
8207
  size: Z.md,
@@ -8176,7 +8225,7 @@ function Co({ models: e, value: t, onChange: n, placeholder: r, defaultId: i, fo
8176
8225
  className: "flex flex-wrap items-center gap-1.5",
8177
8226
  children: [
8178
8227
  e.meta,
8179
- So(e, u),
8228
+ Eo(e, u),
8180
8229
  e.id === i && /* @__PURE__ */ U(ut, {
8181
8230
  tone: "accent",
8182
8231
  dot: !0,
@@ -8199,7 +8248,7 @@ function Co({ models: e, value: t, onChange: n, placeholder: r, defaultId: i, fo
8199
8248
  }
8200
8249
  //#endregion
8201
8250
  //#region src/components/Citation.tsx
8202
- function wo({ index: e, title: t, url: n, snippet: r, domain: i, favicon: a, className: o }) {
8251
+ function Oo({ index: e, title: t, url: n, snippet: r, domain: i, favicon: a, className: o }) {
8203
8252
  let { strings: s } = q(), c = Ot(), [l, u] = m(!1), d = i ?? (n ? (() => {
8204
8253
  try {
8205
8254
  return new URL(n).hostname.replace(/^www\./, "");
@@ -8268,10 +8317,10 @@ function wo({ index: e, title: t, url: n, snippet: r, domain: i, favicon: a, cla
8268
8317
  children: f
8269
8318
  });
8270
8319
  }
8271
- wo.displayName = "Citation";
8320
+ Oo.displayName = "Citation";
8272
8321
  //#endregion
8273
8322
  //#region src/components/FeedbackAction.tsx
8274
- function To({ sentiment: e = null, onLike: t, onDislike: n, onCopy: r, copyText: i, onRetry: a, children: o, className: s }) {
8323
+ function ko({ sentiment: e = null, onLike: t, onDislike: n, onCopy: r, copyText: i, onRetry: a, children: o, className: s }) {
8275
8324
  let { strings: c } = q(), [l, u] = m(!1);
8276
8325
  return /* @__PURE__ */ W("div", {
8277
8326
  className: G("inline-flex items-center gap-1 text-fg-3", s),
@@ -8327,16 +8376,16 @@ function To({ sentiment: e = null, onLike: t, onDislike: n, onCopy: r, copyText:
8327
8376
  ]
8328
8377
  });
8329
8378
  }
8330
- To.displayName = "FeedbackAction";
8379
+ ko.displayName = "FeedbackAction";
8331
8380
  //#endregion
8332
8381
  //#region src/components/PromptSuggestions.tsx
8333
- var Eo = {
8382
+ var Ao = {
8334
8383
  1: "grid-cols-1",
8335
8384
  2: "grid-cols-1 @sm:grid-cols-2",
8336
8385
  3: "grid-cols-1 @sm:grid-cols-2 @lg:grid-cols-3",
8337
8386
  4: "grid-cols-1 @sm:grid-cols-2 @lg:grid-cols-4"
8338
8387
  };
8339
- function Do({ prompts: e, onSelect: t, title: n, columns: r = 2, className: i }) {
8388
+ function jo({ prompts: e, onSelect: t, title: n, columns: r = 2, className: i }) {
8340
8389
  let { strings: a } = q(), o = n ?? /* @__PURE__ */ W("span", {
8341
8390
  className: "flex items-center gap-1.5 text-xs font-semibold uppercase tracking-wider text-fg-3",
8342
8391
  children: [/* @__PURE__ */ U(Ce, {
@@ -8347,7 +8396,7 @@ function Do({ prompts: e, onSelect: t, title: n, columns: r = 2, className: i })
8347
8396
  return /* @__PURE__ */ W("div", {
8348
8397
  className: G("@container w-full space-y-3", i),
8349
8398
  children: [o && /* @__PURE__ */ U("div", { children: o }), /* @__PURE__ */ U("div", {
8350
- className: G("grid gap-2.5", Eo[r]),
8399
+ className: G("grid gap-2.5", Ao[r]),
8351
8400
  children: e.map((e) => /* @__PURE__ */ W("button", {
8352
8401
  type: "button",
8353
8402
  onClick: () => t(e.prompt, e),
@@ -8376,10 +8425,10 @@ function Do({ prompts: e, onSelect: t, title: n, columns: r = 2, className: i })
8376
8425
  })]
8377
8426
  });
8378
8427
  }
8379
- Do.displayName = "PromptSuggestions";
8428
+ jo.displayName = "PromptSuggestions";
8380
8429
  //#endregion
8381
8430
  //#region src/components/OtpInput.tsx
8382
- var Oo = a(function({ length: e = 6, value: t = "", onChange: n, onComplete: r, type: i = "number", mask: a = !1, disabled: o = !1, autoFocus: c = !1, className: l, id: u }, d) {
8431
+ var Mo = a(function({ length: e = 6, value: t = "", onChange: n, onComplete: r, type: i = "number", mask: a = !1, disabled: o = !1, autoFocus: c = !1, className: l, id: u }, d) {
8383
8432
  let { strings: f } = q(), m = Y(), h = p([]), g = Array.from({ length: e }, (e, n) => t[n] ?? ""), _ = s((t) => {
8384
8433
  let n = Math.max(0, Math.min(e - 1, t));
8385
8434
  h.current[n]?.focus(), h.current[n]?.select();
@@ -8439,39 +8488,39 @@ var Oo = a(function({ length: e = 6, value: t = "", onChange: n, onComplete: r,
8439
8488
  }, n))
8440
8489
  });
8441
8490
  });
8442
- Oo.displayName = "OtpInput";
8491
+ Mo.displayName = "OtpInput";
8443
8492
  //#endregion
8444
8493
  //#region src/layout/Box.tsx
8445
- var ko = a(function({ as: e, className: t, ...n }, r) {
8494
+ var No = a(function({ as: e, className: t, ...n }, r) {
8446
8495
  return /* @__PURE__ */ U(e ?? "div", {
8447
8496
  ref: r,
8448
8497
  className: G(t),
8449
8498
  ...n
8450
8499
  });
8451
- }), Ao = a(function({ as: e, className: t, ...n }, r) {
8500
+ }), Po = a(function({ as: e, className: t, ...n }, r) {
8452
8501
  return /* @__PURE__ */ U(e ?? "div", {
8453
8502
  ref: r,
8454
8503
  className: G("flex items-center justify-center", t),
8455
8504
  ...n
8456
8505
  });
8457
- }), jo = {
8506
+ }), Fo = {
8458
8507
  sm: "max-w-screen-sm",
8459
8508
  md: "max-w-screen-md",
8460
8509
  lg: "max-w-screen-lg",
8461
8510
  xl: "max-w-screen-xl",
8462
8511
  prose: "max-w-prose"
8463
- }, Mo = a(function({ as: e, size: t = "lg", flush: n, className: r, ...i }, a) {
8512
+ }, Io = a(function({ as: e, size: t = "lg", flush: n, className: r, ...i }, a) {
8464
8513
  return /* @__PURE__ */ U(e ?? "div", {
8465
8514
  ref: a,
8466
- className: G("mx-auto w-full", jo[t], !n && "px-4 sm:px-6", r),
8515
+ className: G("mx-auto w-full", Fo[t], !n && "px-4 sm:px-6", r),
8467
8516
  ...i
8468
8517
  });
8469
- }), No = {
8518
+ }), Lo = {
8470
8519
  none: "",
8471
8520
  sm: "my-2",
8472
8521
  md: "my-4",
8473
8522
  lg: "my-8"
8474
- }, Po = a(function({ orientation: e = "horizontal", label: t, spacing: n = "none", className: r, ...i }, a) {
8523
+ }, Ro = a(function({ orientation: e = "horizontal", label: t, spacing: n = "none", className: r, ...i }, a) {
8475
8524
  return e === "vertical" ? /* @__PURE__ */ U("div", {
8476
8525
  ref: a,
8477
8526
  role: "separator",
@@ -8481,7 +8530,7 @@ var ko = a(function({ as: e, className: t, ...n }, r) {
8481
8530
  }) : t ? /* @__PURE__ */ W("div", {
8482
8531
  ref: a,
8483
8532
  role: "separator",
8484
- className: G("flex items-center gap-3", No[n], r),
8533
+ className: G("flex items-center gap-3", Lo[n], r),
8485
8534
  ...i,
8486
8535
  children: [
8487
8536
  /* @__PURE__ */ U("span", { className: "h-px flex-1 bg-line" }),
@@ -8494,10 +8543,10 @@ var ko = a(function({ as: e, className: t, ...n }, r) {
8494
8543
  }) : /* @__PURE__ */ U("div", {
8495
8544
  ref: a,
8496
8545
  role: "separator",
8497
- className: G("h-px w-full bg-line", No[n], r),
8546
+ className: G("h-px w-full bg-line", Lo[n], r),
8498
8547
  ...i
8499
8548
  });
8500
- }), Fo = {
8549
+ }), zo = {
8501
8550
  0: "gap-0",
8502
8551
  .5: "gap-0.5",
8503
8552
  1: "gap-1",
@@ -8512,31 +8561,31 @@ var ko = a(function({ as: e, className: t, ...n }, r) {
8512
8561
  10: "gap-10",
8513
8562
  12: "gap-12",
8514
8563
  16: "gap-16"
8515
- }, Io = {
8564
+ }, Bo = {
8516
8565
  start: "items-start",
8517
8566
  center: "items-center",
8518
8567
  end: "items-end",
8519
8568
  stretch: "items-stretch",
8520
8569
  baseline: "items-baseline"
8521
- }, Lo = {
8570
+ }, Vo = {
8522
8571
  start: "justify-start",
8523
8572
  center: "justify-center",
8524
8573
  end: "justify-end",
8525
8574
  between: "justify-between",
8526
8575
  around: "justify-around",
8527
8576
  evenly: "justify-evenly"
8528
- }, Ro = {
8577
+ }, Ho = {
8529
8578
  row: "flex-row",
8530
8579
  column: "flex-col",
8531
8580
  "row-reverse": "flex-row-reverse",
8532
8581
  "column-reverse": "flex-col-reverse"
8533
- }, zo = a(function({ as: e, direction: t = "row", align: n, justify: r, wrap: i, gap: a, inline: o, className: s, ...c }, l) {
8582
+ }, Uo = a(function({ as: e, direction: t = "row", align: n, justify: r, wrap: i, gap: a, inline: o, className: s, ...c }, l) {
8534
8583
  return /* @__PURE__ */ U(e ?? "div", {
8535
8584
  ref: l,
8536
- className: G(o ? "inline-flex" : "flex", Ro[t], n && Io[n], r && Lo[r], i && "flex-wrap", a !== void 0 && Fo[a], s),
8585
+ className: G(o ? "inline-flex" : "flex", Ho[t], n && Bo[n], r && Vo[r], i && "flex-wrap", a !== void 0 && zo[a], s),
8537
8586
  ...c
8538
8587
  });
8539
- }), Bo = {
8588
+ }), Wo = {
8540
8589
  base: {
8541
8590
  1: "grid-cols-1",
8542
8591
  2: "grid-cols-2",
@@ -8582,11 +8631,11 @@ var ko = a(function({ as: e, className: t, ...n }, r) {
8582
8631
  6: "xl:grid-cols-6",
8583
8632
  12: "xl:grid-cols-12"
8584
8633
  }
8585
- }, Vo = a(function({ as: e, columns: t, gap: n = 4, minChildWidth: r, className: i, style: a, ...o }, s) {
8586
- let c = e ?? "div", l = t === void 0 ? null : typeof t == "number" ? Bo.base[t] : Object.entries(t).map(([e, t]) => Bo[e][t]);
8634
+ }, Go = a(function({ as: e, columns: t, gap: n = 4, minChildWidth: r, className: i, style: a, ...o }, s) {
8635
+ let c = e ?? "div", l = t === void 0 ? null : typeof t == "number" ? Wo.base[t] : Object.entries(t).map(([e, t]) => Wo[e][t]);
8587
8636
  return /* @__PURE__ */ U(c, {
8588
8637
  ref: s,
8589
- className: G("grid", Fo[n], l, i),
8638
+ className: G("grid", zo[n], l, i),
8590
8639
  style: r ? {
8591
8640
  gridTemplateColumns: `repeat(auto-fit, minmax(min(${r}, 100%), 1fr))`,
8592
8641
  ...a
@@ -8596,7 +8645,7 @@ var ko = a(function({ as: e, className: t, ...n }, r) {
8596
8645
  });
8597
8646
  //#endregion
8598
8647
  //#region src/layout/Spacer.tsx
8599
- function Ho({ className: e }) {
8648
+ function Ko({ className: e }) {
8600
8649
  return /* @__PURE__ */ U("div", {
8601
8650
  "aria-hidden": "true",
8602
8651
  className: G("flex-1", e)
@@ -8604,21 +8653,21 @@ function Ho({ className: e }) {
8604
8653
  }
8605
8654
  //#endregion
8606
8655
  //#region src/layout/Stack.tsx
8607
- function Uo(e, t, n) {
8656
+ function qo(e, t, n) {
8608
8657
  let r = a(function({ as: e, gap: r = n.gap, align: i = n.align, justify: a, wrap: o, className: s, ...c }, l) {
8609
8658
  return /* @__PURE__ */ U(e ?? "div", {
8610
8659
  ref: l,
8611
- className: G("flex", t === "column" ? "flex-col" : "flex-row", Fo[r], i && Io[i], a && Lo[a], o && "flex-wrap", s),
8660
+ className: G("flex", t === "column" ? "flex-col" : "flex-row", zo[r], i && Bo[i], a && Vo[a], o && "flex-wrap", s),
8612
8661
  ...c
8613
8662
  });
8614
8663
  });
8615
8664
  return r.displayName = e, r;
8616
8665
  }
8617
- var Wo = Uo("Stack", "column", { gap: 4 }), Go = Wo, Ko = Uo("HStack", "row", {
8666
+ var Jo = qo("Stack", "column", { gap: 4 }), Yo = Jo, Xo = qo("HStack", "row", {
8618
8667
  gap: 3,
8619
8668
  align: "center"
8620
8669
  });
8621
8670
  //#endregion
8622
- export { st as Accordion, ct as AccordionItem, lo as ActionBar, ht as Alert, St as AppBar, Gt as AppShell, Ki as AspectRatio, qt as AudioItem, Xt as Avatar, Qt as AvatarGroup, vo as AvatarPicker, ut as Badge, tn as Banner, Er as BottomMenu, ko as Box, fn as Breadcrumb, Q as Button, _n as ButtonGroup, Pn as CHART_SERIES, Nr as Calendar, xn as Card, Sn as CardButton, Cn as Carousel, Ao as Center, Mn as CharacterCard, Nn as CharacterCardSkeleton, Ln as Chart, Ve as ChartCell, Bn as Checkbox, Vn as Chip, uo as ChoiceCard, wo as Citation, Gn as CodeBlock, Kn as Collapsible, ir as ColorPicker, cr as Combobox, fr as CommandPalette, hr as Composer, kr as ConfirmHost, Mo as Container, Ar as ContextMenu, Hn as CopyButton, pt as CrispStringsProvider, Ma as DEFAULT_THEME, Pr as DatePicker, Ir as Dialog, zr as Diff, Po as Divider, It as Dock, Jr as DownloadItem, Yr as Dropzone, Xr as EmptyState, Zr as ErrorState, To as FeedbackAction, yt as Field, $r as FilterBar, zo as Flex, ni as Form, ri as FormActions, wt as FrameProvider, Vo as Grid, Ko as HStack, ur as Highlight, ai as HoverCard, oi as ICON_SIZE, si as Icon, J as IconButton, ci as ImageViewer, li as InfiniteScroll, bt as Input, dr as Kbd, ia as KeyValue, ui as ListGroup, mi as ListRow, hi as ListRowButton, sr as LoadingState, gi as Masonry, vi as MediaCard, yi as MediaCardSkeleton, bi as MediaTile, xi as MediaTileSkeleton, rn as Menu, sn as MenuContent, cn as MenuItem, un as MenuLabel, ln as MenuSeparator, on as MenuTrigger, ki as Message, Mi as MessageDivider, Ni as Meter, Co as ModelSelect, Fi as MultiItemDownloadCard, Pt as NavBadge, Vt as NavLabel, Ht as NavRail, Ii as NumberInput, Oo as OtpInput, ja as PRESETS, xo as Page, Ri as Pagination, Vi as Panel, Wi as PartitionBar, Zn as Popover, $n as PopoverAnchor, tr as PopoverContent, Qn as PopoverTrigger, Vr as Progress, Do as PromptSuggestions, qi as Prose, Xi as Radio, Yi as RadioGroup, _r as RecordingWave, go as ReorderableList, Zi as Resizable, Wn as ScrollArea, Qi as SearchField, ho as SecretInput, $i as Segmented, ea as Select, ta as SelectMenu, Tr as Sheet, fo as Shelf, $ as Skeleton, jn as SkeletonRow, na as Slider, Ho as Spacer, Rn as Sparkline, or as Spinner, vn as SplitButton, Wo as Stack, ra as StatTile, aa as Stepper, An as Surface, oa as Switch, fa as Tab, Ft as TabBar, da as TabList, pa as TabPanel, sa as Table, ua as Tabs, ma as TagInput, _a as Text, xt as Textarea, Va as ThemeEditor, La as ThemeProvider, Ua as Timeline, Wa as TitleBar, Qa as Toaster, $a as ToggleGroup, eo as Toolbar, no as ToolbarGroup, to as ToolbarSeparator, Nt as Tooltip, io as Tour, ao as Tree, ji as TypingDots, Go as VStack, oo as VirtualList, Gi as VisuallyHidden, co as WindowResizeHandles, mo as Wizard, Io as alignClass, Aa as applyTheme, G as cn, Wr as compactNumber, Or as confirm, xa as contrastRatio, Lr as diffLines, dt as englishStrings, Kr as fileSize, Fo as gapClass, Jn as getElementRef, va as hexToRgb, Z as icon, gn as iconSize, X as inputSurface, Sa as isLight, Lo as justifyClass, ba as luminance, qn as mergeRefs, wa as mixHex, K as motion, ya as normaliseHex, Ca as readableOn, Ur as relativeTime, ka as themeToVars, wn as tintFromName, Za as toast, pr as useCommandPalette, Ot as useCompactLayout, q as useCrispStrings, Y as useFieldContext, ti as useForm, Tt as useFrame, Tn as useImageBrightness, mr as useLongPress, Dt as useMediaQuery, vr as useModal, zt as useNavExpanded, Dn as useOnSurface, er as usePopoverPosition, Et as usePortalTarget, Fa as useTheme, ii as useUnsavedGuard, po as useWizard };
8671
+ export { st as Accordion, ct as AccordionItem, mo as ActionBar, ht as Alert, St as AppBar, Gt as AppShell, Ki as AspectRatio, qt as AudioItem, Xt as Avatar, Qt as AvatarGroup, So as AvatarPicker, ut as Badge, tn as Banner, Er as BottomMenu, No as Box, fn as Breadcrumb, Q as Button, _n as ButtonGroup, Pn as CHART_SERIES, Nr as Calendar, xn as Card, Sn as CardButton, Cn as Carousel, Po as Center, Mn as CharacterCard, Nn as CharacterCardSkeleton, Ln as Chart, Ve as ChartCell, Bn as Checkbox, Vn as Chip, ho as ChoiceCard, Oo as Citation, Gn as CodeBlock, Kn as Collapsible, ir as ColorPicker, cr as Combobox, fr as CommandPalette, hr as Composer, kr as ConfirmHost, Io as Container, Ar as ContextMenu, Hn as CopyButton, pt as CrispStringsProvider, Ia as DEFAULT_THEME, Pr as DatePicker, Ir as Dialog, zr as Diff, Ro as Divider, It as Dock, Jr as DownloadItem, Yr as Dropzone, Xr as EmptyState, Zr as ErrorState, ko as FeedbackAction, yt as Field, $r as FilterBar, Uo as Flex, ni as Form, ri as FormActions, wt as FrameProvider, Go as Grid, Xo as HStack, ur as Highlight, ai as HoverCard, oi as ICON_SIZE, si as Icon, J as IconButton, ci as ImageViewer, li as InfiniteScroll, Xi as InlineMarkdown, bt as Input, dr as Kbd, ca as KeyValue, ui as ListGroup, mi as ListRow, hi as ListRowButton, sr as LoadingState, gi as Masonry, vi as MediaCard, yi as MediaCardSkeleton, bi as MediaTile, xi as MediaTileSkeleton, rn as Menu, sn as MenuContent, cn as MenuItem, un as MenuLabel, ln as MenuSeparator, on as MenuTrigger, ki as Message, Mi as MessageDivider, Ni as Meter, Do as ModelSelect, Fi as MultiItemDownloadCard, Pt as NavBadge, Vt as NavLabel, Ht as NavRail, Ii as NumberInput, Mo as OtpInput, Fa as PRESETS, To as Page, Ri as Pagination, Vi as Panel, Wi as PartitionBar, Zn as Popover, $n as PopoverAnchor, tr as PopoverContent, Qn as PopoverTrigger, Vr as Progress, jo as PromptSuggestions, Zi as Prose, ea as Radio, $i as RadioGroup, _r as RecordingWave, bo as ReorderableList, ta as Resizable, Wn as ScrollArea, na as SearchField, yo as SecretInput, ra as Segmented, ia as Select, aa as SelectMenu, Tr as Sheet, go as Shelf, $ as Skeleton, jn as SkeletonRow, oa as Slider, Ko as Spacer, Rn as Sparkline, or as Spinner, vn as SplitButton, Jo as Stack, sa as StatTile, la as Stepper, An as Surface, ua as Switch, ga as Tab, Ft as TabBar, ha as TabList, _a as TabPanel, da as Table, ma as Tabs, va as TagInput, xa as Text, xt as Textarea, Ga as ThemeEditor, Va as ThemeProvider, qa as Timeline, Ja as TitleBar, no as Toaster, ro as ToggleGroup, io as Toolbar, oo as ToolbarGroup, ao as ToolbarSeparator, Nt as Tooltip, co as Tour, lo as Tree, ji as TypingDots, Yo as VStack, uo as VirtualList, Gi as VisuallyHidden, po as WindowResizeHandles, vo as Wizard, Bo as alignClass, Pa as applyTheme, G as cn, Wr as compactNumber, Or as confirm, Ta as contrastRatio, Lr as diffLines, dt as englishStrings, Ji as escapeHeadings, Kr as fileSize, zo as gapClass, Jn as getElementRef, Sa as hexToRgb, Z as icon, gn as iconSize, X as inputSurface, Ea as isLight, Vo as justifyClass, wa as luminance, qn as mergeRefs, Oa as mixHex, K as motion, Ca as normaliseHex, Da as readableOn, Ur as relativeTime, Na as themeToVars, wn as tintFromName, to as toast, pr as useCommandPalette, Ot as useCompactLayout, q as useCrispStrings, Y as useFieldContext, ti as useForm, Tt as useFrame, Tn as useImageBrightness, mr as useLongPress, Dt as useMediaQuery, vr as useModal, zt as useNavExpanded, Dn as useOnSurface, er as usePopoverPosition, Et as usePortalTarget, za as useTheme, ii as useUnsavedGuard, _o as useWizard };
8623
8672
 
8624
8673
  //# sourceMappingURL=index.js.map