react-docs-ui 0.6.16 → 0.6.17

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.
@@ -22340,28 +22340,24 @@ var Pb = C.memo(({ title: e, children: t }) => /* @__PURE__ */ W("div", {
22340
22340
  Tip: Pb,
22341
22341
  Warning: Fb,
22342
22342
  Card: Ib
22343
- }, Rb = null, zb = Function("componentPath", "return import(componentPath)");
22344
- function Bb() {
22345
- return Rb ||= zb(`/${[
22346
- "src",
22347
- "generated",
22348
- "mdx-components.ts"
22349
- ].join("/")}`).then((e) => e && e.MDX_COMPONENTS ? e.MDX_COMPONENTS : null).catch(() => null), Rb;
22350
- }
22351
- async function Vb() {
22343
+ }, Rb = null;
22344
+ function zb() {
22345
+ return Rb ||= import("./mdx-components-Dxpipc50.js").then((e) => e && e.MDX_COMPONENTS ? e.MDX_COMPONENTS : null).catch(() => null), Rb;
22346
+ }
22347
+ async function Bb() {
22352
22348
  try {
22353
- return await Bb();
22349
+ return await zb();
22354
22350
  } catch {
22355
22351
  return null;
22356
22352
  }
22357
22353
  }
22358
- function Hb() {
22359
- Bb();
22354
+ function Vb() {
22355
+ zb();
22360
22356
  }
22361
- async function Ub(e = "/src/components") {
22357
+ async function Hb(e = "/src/components") {
22362
22358
  return [];
22363
22359
  }
22364
- async function Wb(e) {
22360
+ async function Ub(e) {
22365
22361
  try {
22366
22362
  let t = await import(
22367
22363
  /* @vite-ignore */
@@ -22372,22 +22368,22 @@ async function Wb(e) {
22372
22368
  return console.warn(`[MDX] 无法导入组件 ${e}:`, t), null;
22373
22369
  }
22374
22370
  }
22375
- async function Gb(e, t) {
22371
+ async function Wb(e, t) {
22376
22372
  let n = {};
22377
22373
  Object.assign(n, Lb);
22378
- let r = await Vb();
22374
+ let r = await Bb();
22379
22375
  if (r && Object.keys(r).length > 0 && Object.assign(n, r), t && Object.keys(t).length > 0 && !r) for (let [e, r] of Object.entries(t)) try {
22380
- let t = await Wb(r);
22376
+ let t = await Ub(r);
22381
22377
  t && (n[e] = t);
22382
22378
  } catch (t) {
22383
22379
  console.warn(`[MDX] 加载组件 ${e} 失败:`, t);
22384
22380
  }
22385
22381
  return n;
22386
22382
  }
22387
- function Kb() {
22383
+ function Gb() {
22388
22384
  return { ...Lb };
22389
22385
  }
22390
- function qb(e = {}) {
22386
+ function Kb(e = {}) {
22391
22387
  return {
22392
22388
  ...Lb,
22393
22389
  ...e
@@ -22395,7 +22391,7 @@ function qb(e = {}) {
22395
22391
  }
22396
22392
  //#endregion
22397
22393
  //#region src/lib/navigation.ts
22398
- function Jb(e, t, n) {
22394
+ function qb(e, t, n) {
22399
22395
  if (!e) return {
22400
22396
  prev: null,
22401
22397
  next: null
@@ -22422,37 +22418,37 @@ function Jb(e, t, n) {
22422
22418
  };
22423
22419
  }
22424
22420
  typeof window < "u" && window.document && window.document.createElement;
22425
- function Yb(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
22421
+ function Jb(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
22426
22422
  return function(r) {
22427
22423
  if (e?.(r), n === !1 || !r.defaultPrevented) return t?.(r);
22428
22424
  };
22429
22425
  }
22430
22426
  //#endregion
22431
22427
  //#region node_modules/.pnpm/@radix-ui+react-compose-ref_29f07d10044c0f91d4662ac1c244e8f8/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
22432
- function Xb(e, t) {
22428
+ function Yb(e, t) {
22433
22429
  if (typeof e == "function") return e(t);
22434
22430
  e != null && (e.current = t);
22435
22431
  }
22436
- function Zb(...e) {
22432
+ function Xb(...e) {
22437
22433
  return (t) => {
22438
22434
  let n = !1, r = e.map((e) => {
22439
- let r = Xb(e, t);
22435
+ let r = Yb(e, t);
22440
22436
  return !n && typeof r == "function" && (n = !0), r;
22441
22437
  });
22442
22438
  if (n) return () => {
22443
22439
  for (let t = 0; t < r.length; t++) {
22444
22440
  let n = r[t];
22445
- typeof n == "function" ? n() : Xb(e[t], null);
22441
+ typeof n == "function" ? n() : Yb(e[t], null);
22446
22442
  }
22447
22443
  };
22448
22444
  };
22449
22445
  }
22450
- function Qb(...e) {
22451
- return C.useCallback(Zb(...e), e);
22446
+ function Zb(...e) {
22447
+ return C.useCallback(Xb(...e), e);
22452
22448
  }
22453
22449
  //#endregion
22454
22450
  //#region node_modules/.pnpm/@radix-ui+react-context@1.1_9d20477d12b5887e0da6102ab9f6f0ba/node_modules/@radix-ui/react-context/dist/index.mjs
22455
- function $b(e, t = []) {
22451
+ function Qb(e, t = []) {
22456
22452
  let n = [];
22457
22453
  function r(t, r) {
22458
22454
  let i = C.createContext(r), a = n.length;
@@ -22483,9 +22479,9 @@ function $b(e, t = []) {
22483
22479
  } }), [n, r]);
22484
22480
  };
22485
22481
  };
22486
- return i.scopeName = e, [r, ex(i, ...t)];
22482
+ return i.scopeName = e, [r, $b(i, ...t)];
22487
22483
  }
22488
- function ex(...e) {
22484
+ function $b(...e) {
22489
22485
  let t = e[0];
22490
22486
  if (e.length === 1) return t;
22491
22487
  let n = () => {
@@ -22508,8 +22504,8 @@ function ex(...e) {
22508
22504
  }
22509
22505
  //#endregion
22510
22506
  //#region node_modules/.pnpm/@radix-ui+react-collection@_161926fa2509d0b7370b60b8bb4eb8b0/node_modules/@radix-ui/react-collection/dist/index.mjs
22511
- function tx(e) {
22512
- let t = e + "CollectionProvider", [n, r] = $b(t), [i, a] = n(t, {
22507
+ function ex(e) {
22508
+ let t = e + "CollectionProvider", [n, r] = Qb(t), [i, a] = n(t, {
22513
22509
  collectionRef: { current: null },
22514
22510
  itemMap: /* @__PURE__ */ new Map()
22515
22511
  }), o = (e) => {
@@ -22525,13 +22521,13 @@ function tx(e) {
22525
22521
  let s = e + "CollectionSlot", c = Ne(s), l = w.forwardRef((e, t) => {
22526
22522
  let { scope: n, children: r } = e;
22527
22523
  return /* @__PURE__ */ U(c, {
22528
- ref: Qb(t, a(s, n).collectionRef),
22524
+ ref: Zb(t, a(s, n).collectionRef),
22529
22525
  children: r
22530
22526
  });
22531
22527
  });
22532
22528
  l.displayName = s;
22533
22529
  let u = e + "CollectionItemSlot", d = "data-radix-collection-item", f = Ne(u), p = w.forwardRef((e, t) => {
22534
- let { scope: n, children: r, ...i } = e, o = w.useRef(null), s = Qb(t, o), c = a(u, n);
22530
+ let { scope: n, children: r, ...i } = e, o = w.useRef(null), s = Zb(t, o), c = a(u, n);
22535
22531
  return w.useEffect(() => (c.itemMap.set(o, {
22536
22532
  ref: o,
22537
22533
  ...i
@@ -22563,7 +22559,7 @@ function tx(e) {
22563
22559
  }
22564
22560
  //#endregion
22565
22561
  //#region node_modules/.pnpm/@radix-ui+react-primitive@2_1181ea5061ec9212248424669240e4ec/node_modules/@radix-ui/react-primitive/dist/index.mjs
22566
- var nx = [
22562
+ var tx = [
22567
22563
  "a",
22568
22564
  "button",
22569
22565
  "div",
@@ -22594,12 +22590,12 @@ var nx = [
22594
22590
  [t]: r
22595
22591
  };
22596
22592
  }, {});
22597
- function rx(e, t) {
22593
+ function nx(e, t) {
22598
22594
  e && He.flushSync(() => e.dispatchEvent(t));
22599
22595
  }
22600
22596
  //#endregion
22601
22597
  //#region node_modules/.pnpm/@radix-ui+react-use-callbac_e56a1071fabc108dc60d6f8e586ff493/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
22602
- function ix(e) {
22598
+ function rx(e) {
22603
22599
  let t = C.useRef(e);
22604
22600
  return C.useEffect(() => {
22605
22601
  t.current = e;
@@ -22607,8 +22603,8 @@ function ix(e) {
22607
22603
  }
22608
22604
  //#endregion
22609
22605
  //#region node_modules/.pnpm/@radix-ui+react-use-escape-_8ace045c7dc8a9f26af4a8dddd419f24/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
22610
- function ax(e, t = globalThis?.document) {
22611
- let n = ix(e);
22606
+ function ix(e, t = globalThis?.document) {
22607
+ let n = rx(e);
22612
22608
  C.useEffect(() => {
22613
22609
  let e = (e) => {
22614
22610
  e.key === "Escape" && n(e);
@@ -22618,23 +22614,23 @@ function ax(e, t = globalThis?.document) {
22618
22614
  }
22619
22615
  //#endregion
22620
22616
  //#region node_modules/.pnpm/@radix-ui+react-dismissable_3d3960154a4c07d09bb90cb341135fc5/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
22621
- var ox = "DismissableLayer", sx = "dismissableLayer.update", cx = "dismissableLayer.pointerDownOutside", lx = "dismissableLayer.focusOutside", ux, dx = C.createContext({
22617
+ var ax = "DismissableLayer", ox = "dismissableLayer.update", sx = "dismissableLayer.pointerDownOutside", cx = "dismissableLayer.focusOutside", lx, ux = C.createContext({
22622
22618
  layers: /* @__PURE__ */ new Set(),
22623
22619
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
22624
22620
  branches: /* @__PURE__ */ new Set()
22625
- }), fx = C.forwardRef((e, t) => {
22626
- let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: r, onPointerDownOutside: i, onFocusOutside: a, onInteractOutside: o, onDismiss: s, ...c } = e, l = C.useContext(dx), [u, d] = C.useState(null), f = u?.ownerDocument ?? globalThis?.document, [, p] = C.useState({}), m = Qb(t, (e) => d(e)), h = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), _ = h.indexOf(g), v = u ? h.indexOf(u) : -1, y = l.layersWithOutsidePointerEventsDisabled.size > 0, b = v >= _, x = hx((e) => {
22621
+ }), dx = C.forwardRef((e, t) => {
22622
+ let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: r, onPointerDownOutside: i, onFocusOutside: a, onInteractOutside: o, onDismiss: s, ...c } = e, l = C.useContext(ux), [u, d] = C.useState(null), f = u?.ownerDocument ?? globalThis?.document, [, p] = C.useState({}), m = Zb(t, (e) => d(e)), h = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), _ = h.indexOf(g), v = u ? h.indexOf(u) : -1, y = l.layersWithOutsidePointerEventsDisabled.size > 0, b = v >= _, x = mx((e) => {
22627
22623
  let t = e.target, n = [...l.branches].some((e) => e.contains(t));
22628
22624
  !b || n || (i?.(e), o?.(e), e.defaultPrevented || s?.());
22629
- }, f), S = gx((e) => {
22625
+ }, f), S = hx((e) => {
22630
22626
  let t = e.target;
22631
22627
  [...l.branches].some((e) => e.contains(t)) || (a?.(e), o?.(e), e.defaultPrevented || s?.());
22632
22628
  }, f);
22633
- return ax((e) => {
22629
+ return ix((e) => {
22634
22630
  v === l.layers.size - 1 && (r?.(e), !e.defaultPrevented && s && (e.preventDefault(), s()));
22635
22631
  }, f), C.useEffect(() => {
22636
- if (u) return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (ux = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(u)), l.layers.add(u), _x(), () => {
22637
- n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = ux);
22632
+ if (u) return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (lx = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(u)), l.layers.add(u), gx(), () => {
22633
+ n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = lx);
22638
22634
  };
22639
22635
  }, [
22640
22636
  u,
@@ -22642,43 +22638,43 @@ var ox = "DismissableLayer", sx = "dismissableLayer.update", cx = "dismissableLa
22642
22638
  n,
22643
22639
  l
22644
22640
  ]), C.useEffect(() => () => {
22645
- u && (l.layers.delete(u), l.layersWithOutsidePointerEventsDisabled.delete(u), _x());
22641
+ u && (l.layers.delete(u), l.layersWithOutsidePointerEventsDisabled.delete(u), gx());
22646
22642
  }, [u, l]), C.useEffect(() => {
22647
22643
  let e = () => p({});
22648
- return document.addEventListener(sx, e), () => document.removeEventListener(sx, e);
22649
- }, []), /* @__PURE__ */ U(nx.div, {
22644
+ return document.addEventListener(ox, e), () => document.removeEventListener(ox, e);
22645
+ }, []), /* @__PURE__ */ U(tx.div, {
22650
22646
  ...c,
22651
22647
  ref: m,
22652
22648
  style: {
22653
22649
  pointerEvents: y ? b ? "auto" : "none" : void 0,
22654
22650
  ...e.style
22655
22651
  },
22656
- onFocusCapture: Yb(e.onFocusCapture, S.onFocusCapture),
22657
- onBlurCapture: Yb(e.onBlurCapture, S.onBlurCapture),
22658
- onPointerDownCapture: Yb(e.onPointerDownCapture, x.onPointerDownCapture)
22652
+ onFocusCapture: Jb(e.onFocusCapture, S.onFocusCapture),
22653
+ onBlurCapture: Jb(e.onBlurCapture, S.onBlurCapture),
22654
+ onPointerDownCapture: Jb(e.onPointerDownCapture, x.onPointerDownCapture)
22659
22655
  });
22660
22656
  });
22661
- fx.displayName = ox;
22662
- var px = "DismissableLayerBranch", mx = C.forwardRef((e, t) => {
22663
- let n = C.useContext(dx), r = C.useRef(null), i = Qb(t, r);
22657
+ dx.displayName = ax;
22658
+ var fx = "DismissableLayerBranch", px = C.forwardRef((e, t) => {
22659
+ let n = C.useContext(ux), r = C.useRef(null), i = Zb(t, r);
22664
22660
  return C.useEffect(() => {
22665
22661
  let e = r.current;
22666
22662
  if (e) return n.branches.add(e), () => {
22667
22663
  n.branches.delete(e);
22668
22664
  };
22669
- }, [n.branches]), /* @__PURE__ */ U(nx.div, {
22665
+ }, [n.branches]), /* @__PURE__ */ U(tx.div, {
22670
22666
  ...e,
22671
22667
  ref: i
22672
22668
  });
22673
22669
  });
22674
- mx.displayName = px;
22675
- function hx(e, t = globalThis?.document) {
22676
- let n = ix(e), r = C.useRef(!1), i = C.useRef(() => {});
22670
+ px.displayName = fx;
22671
+ function mx(e, t = globalThis?.document) {
22672
+ let n = rx(e), r = C.useRef(!1), i = C.useRef(() => {});
22677
22673
  return C.useEffect(() => {
22678
22674
  let e = (e) => {
22679
22675
  if (e.target && !r.current) {
22680
22676
  let r = function() {
22681
- vx(cx, n, a, { discrete: !0 });
22677
+ _x(sx, n, a, { discrete: !0 });
22682
22678
  }, a = { originalEvent: e };
22683
22679
  e.pointerType === "touch" ? (t.removeEventListener("click", i.current), i.current = r, t.addEventListener("click", i.current, { once: !0 })) : r();
22684
22680
  } else t.removeEventListener("click", i.current);
@@ -22691,11 +22687,11 @@ function hx(e, t = globalThis?.document) {
22691
22687
  };
22692
22688
  }, [t, n]), { onPointerDownCapture: () => r.current = !0 };
22693
22689
  }
22694
- function gx(e, t = globalThis?.document) {
22695
- let n = ix(e), r = C.useRef(!1);
22690
+ function hx(e, t = globalThis?.document) {
22691
+ let n = rx(e), r = C.useRef(!1);
22696
22692
  return C.useEffect(() => {
22697
22693
  let e = (e) => {
22698
- e.target && !r.current && vx(lx, n, { originalEvent: e }, { discrete: !1 });
22694
+ e.target && !r.current && _x(cx, n, { originalEvent: e }, { discrete: !1 });
22699
22695
  };
22700
22696
  return t.addEventListener("focusin", e), () => t.removeEventListener("focusin", e);
22701
22697
  }, [t, n]), {
@@ -22703,40 +22699,40 @@ function gx(e, t = globalThis?.document) {
22703
22699
  onBlurCapture: () => r.current = !1
22704
22700
  };
22705
22701
  }
22706
- function _x() {
22707
- let e = new CustomEvent(sx);
22702
+ function gx() {
22703
+ let e = new CustomEvent(ox);
22708
22704
  document.dispatchEvent(e);
22709
22705
  }
22710
- function vx(e, t, n, { discrete: r }) {
22706
+ function _x(e, t, n, { discrete: r }) {
22711
22707
  let i = n.originalEvent.target, a = new CustomEvent(e, {
22712
22708
  bubbles: !1,
22713
22709
  cancelable: !0,
22714
22710
  detail: n
22715
22711
  });
22716
- t && i.addEventListener(e, t, { once: !0 }), r ? rx(i, a) : i.dispatchEvent(a);
22712
+ t && i.addEventListener(e, t, { once: !0 }), r ? nx(i, a) : i.dispatchEvent(a);
22717
22713
  }
22718
- var yx = fx, bx = mx, xx = globalThis?.document ? C.useLayoutEffect : () => {}, Sx = "Portal", Cx = C.forwardRef((e, t) => {
22714
+ var vx = dx, yx = px, bx = globalThis?.document ? C.useLayoutEffect : () => {}, xx = "Portal", Sx = C.forwardRef((e, t) => {
22719
22715
  let { container: n, ...r } = e, [i, a] = C.useState(!1);
22720
- xx(() => a(!0), []);
22716
+ bx(() => a(!0), []);
22721
22717
  let o = n || i && globalThis?.document?.body;
22722
- return o ? Ue.createPortal(/* @__PURE__ */ U(nx.div, {
22718
+ return o ? Ue.createPortal(/* @__PURE__ */ U(tx.div, {
22723
22719
  ...r,
22724
22720
  ref: t
22725
22721
  }), o) : null;
22726
22722
  });
22727
- Cx.displayName = Sx;
22723
+ Sx.displayName = xx;
22728
22724
  //#endregion
22729
22725
  //#region node_modules/.pnpm/@radix-ui+react-presence@1._c01c26c80b5ab5e3ecefbda6eca51ad1/node_modules/@radix-ui/react-presence/dist/index.mjs
22730
- function wx(e, t) {
22726
+ function Cx(e, t) {
22731
22727
  return C.useReducer((e, n) => t[e][n] ?? e, e);
22732
22728
  }
22733
- var Tx = (e) => {
22734
- let { present: t, children: n } = e, r = Ex(t), i = typeof n == "function" ? n({ present: r.isPresent }) : C.Children.only(n), a = Qb(r.ref, Ox(i));
22729
+ var wx = (e) => {
22730
+ let { present: t, children: n } = e, r = Tx(t), i = typeof n == "function" ? n({ present: r.isPresent }) : C.Children.only(n), a = Zb(r.ref, Dx(i));
22735
22731
  return typeof n == "function" || r.isPresent ? C.cloneElement(i, { ref: a }) : null;
22736
22732
  };
22737
- Tx.displayName = "Presence";
22738
- function Ex(e) {
22739
- let [t, n] = C.useState(), r = C.useRef(null), i = C.useRef(e), a = C.useRef("none"), [o, s] = wx(e ? "mounted" : "unmounted", {
22733
+ wx.displayName = "Presence";
22734
+ function Tx(e) {
22735
+ let [t, n] = C.useState(), r = C.useRef(null), i = C.useRef(e), a = C.useRef("none"), [o, s] = Cx(e ? "mounted" : "unmounted", {
22740
22736
  mounted: {
22741
22737
  UNMOUNT: "unmounted",
22742
22738
  ANIMATION_OUT: "unmountSuspended"
@@ -22748,18 +22744,18 @@ function Ex(e) {
22748
22744
  unmounted: { MOUNT: "mounted" }
22749
22745
  });
22750
22746
  return C.useEffect(() => {
22751
- let e = Dx(r.current);
22747
+ let e = Ex(r.current);
22752
22748
  a.current = o === "mounted" ? e : "none";
22753
- }, [o]), xx(() => {
22749
+ }, [o]), bx(() => {
22754
22750
  let t = r.current, n = i.current;
22755
22751
  if (n !== e) {
22756
- let r = a.current, o = Dx(t);
22752
+ let r = a.current, o = Ex(t);
22757
22753
  e ? s("MOUNT") : o === "none" || t?.display === "none" ? s("UNMOUNT") : s(n && r !== o ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
22758
22754
  }
22759
- }, [e, s]), xx(() => {
22755
+ }, [e, s]), bx(() => {
22760
22756
  if (t) {
22761
22757
  let e, n = t.ownerDocument.defaultView ?? window, o = (a) => {
22762
- let o = Dx(r.current).includes(CSS.escape(a.animationName));
22758
+ let o = Ex(r.current).includes(CSS.escape(a.animationName));
22763
22759
  if (a.target === t && o && (s("ANIMATION_END"), !i.current)) {
22764
22760
  let r = t.style.animationFillMode;
22765
22761
  t.style.animationFillMode = "forwards", e = n.setTimeout(() => {
@@ -22767,7 +22763,7 @@ function Ex(e) {
22767
22763
  });
22768
22764
  }
22769
22765
  }, c = (e) => {
22770
- e.target === t && (a.current = Dx(r.current));
22766
+ e.target === t && (a.current = Ex(r.current));
22771
22767
  };
22772
22768
  return t.addEventListener("animationstart", c), t.addEventListener("animationcancel", o), t.addEventListener("animationend", o), () => {
22773
22769
  n.clearTimeout(e), t.removeEventListener("animationstart", c), t.removeEventListener("animationcancel", o), t.removeEventListener("animationend", o);
@@ -22780,18 +22776,18 @@ function Ex(e) {
22780
22776
  }, [])
22781
22777
  };
22782
22778
  }
22783
- function Dx(e) {
22779
+ function Ex(e) {
22784
22780
  return e?.animationName || "none";
22785
22781
  }
22786
- function Ox(e) {
22782
+ function Dx(e) {
22787
22783
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
22788
22784
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
22789
22785
  }
22790
22786
  //#endregion
22791
22787
  //#region node_modules/.pnpm/@radix-ui+react-use-control_2c89a53ae2749e0bc3b2a0d94ee60a61/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
22792
- var kx = C.useInsertionEffect || xx;
22793
- function Ax({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
22794
- let [i, a, o] = jx({
22788
+ var Ox = C.useInsertionEffect || bx;
22789
+ function kx({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
22790
+ let [i, a, o] = Ax({
22795
22791
  defaultProp: t,
22796
22792
  onChange: n
22797
22793
  }), s = e !== void 0, c = s ? e : i;
@@ -22804,7 +22800,7 @@ function Ax({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
22804
22800
  }
22805
22801
  return [c, C.useCallback((t) => {
22806
22802
  if (s) {
22807
- let n = Mx(t) ? t(e) : t;
22803
+ let n = jx(t) ? t(e) : t;
22808
22804
  n !== e && o.current?.(n);
22809
22805
  } else a(t);
22810
22806
  }, [
@@ -22814,9 +22810,9 @@ function Ax({ prop: e, defaultProp: t, onChange: n = () => {}, caller: r }) {
22814
22810
  o
22815
22811
  ])];
22816
22812
  }
22817
- function jx({ defaultProp: e, onChange: t }) {
22813
+ function Ax({ defaultProp: e, onChange: t }) {
22818
22814
  let [n, r] = C.useState(e), i = C.useRef(n), a = C.useRef(t);
22819
- return kx(() => {
22815
+ return Ox(() => {
22820
22816
  a.current = t;
22821
22817
  }, [t]), C.useEffect(() => {
22822
22818
  i.current !== n && (a.current?.(n), i.current = n);
@@ -22826,12 +22822,12 @@ function jx({ defaultProp: e, onChange: t }) {
22826
22822
  a
22827
22823
  ];
22828
22824
  }
22829
- function Mx(e) {
22825
+ function jx(e) {
22830
22826
  return typeof e == "function";
22831
22827
  }
22832
22828
  //#endregion
22833
22829
  //#region node_modules/.pnpm/@radix-ui+react-visually-hi_fa89646d7248b32d1762bf88948f6339/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
22834
- var Nx = Object.freeze({
22830
+ var Mx = Object.freeze({
22835
22831
  position: "absolute",
22836
22832
  border: 0,
22837
22833
  width: 1,
@@ -22842,22 +22838,22 @@ var Nx = Object.freeze({
22842
22838
  clip: "rect(0, 0, 0, 0)",
22843
22839
  whiteSpace: "nowrap",
22844
22840
  wordWrap: "normal"
22845
- }), Px = "VisuallyHidden", Fx = C.forwardRef((e, t) => /* @__PURE__ */ U(nx.span, {
22841
+ }), Nx = "VisuallyHidden", Px = C.forwardRef((e, t) => /* @__PURE__ */ U(tx.span, {
22846
22842
  ...e,
22847
22843
  ref: t,
22848
22844
  style: {
22849
- ...Nx,
22845
+ ...Mx,
22850
22846
  ...e.style
22851
22847
  }
22852
22848
  }));
22853
- Fx.displayName = Px;
22849
+ Px.displayName = Nx;
22854
22850
  //#endregion
22855
22851
  //#region node_modules/.pnpm/@radix-ui+react-toast@1.2.1_4581e89c6ba13e4159ce65546c8b2a16/node_modules/@radix-ui/react-toast/dist/index.mjs
22856
- var Ix = "ToastProvider", [Lx, Rx, zx] = tx("Toast"), [Bx, Vx] = $b("Toast", [zx]), [Hx, Ux] = Bx(Ix), Wx = (e) => {
22852
+ var Fx = "ToastProvider", [Ix, Lx, Rx] = ex("Toast"), [zx, Bx] = Qb("Toast", [Rx]), [Vx, Hx] = zx(Fx), Ux = (e) => {
22857
22853
  let { __scopeToast: t, label: n = "Notification", duration: r = 5e3, swipeDirection: i = "right", swipeThreshold: a = 50, children: o } = e, [s, c] = C.useState(null), [l, u] = C.useState(0), d = C.useRef(!1), f = C.useRef(!1);
22858
- return n.trim() || console.error(`Invalid prop \`label\` supplied to \`${Ix}\`. Expected non-empty \`string\`.`), /* @__PURE__ */ U(Lx.Provider, {
22854
+ return n.trim() || console.error(`Invalid prop \`label\` supplied to \`${Fx}\`. Expected non-empty \`string\`.`), /* @__PURE__ */ U(Ix.Provider, {
22859
22855
  scope: t,
22860
- children: /* @__PURE__ */ U(Hx, {
22856
+ children: /* @__PURE__ */ U(Vx, {
22861
22857
  scope: t,
22862
22858
  label: n,
22863
22859
  duration: r,
@@ -22874,9 +22870,9 @@ var Ix = "ToastProvider", [Lx, Rx, zx] = tx("Toast"), [Bx, Vx] = $b("Toast", [zx
22874
22870
  })
22875
22871
  });
22876
22872
  };
22877
- Wx.displayName = Ix;
22878
- var Gx = "ToastViewport", Kx = ["F8"], qx = "toast.viewportPause", Jx = "toast.viewportResume", Yx = C.forwardRef((e, t) => {
22879
- let { __scopeToast: n, hotkey: r = Kx, label: i = "Notifications ({hotkey})", ...a } = e, o = Ux(Gx, n), s = Rx(n), c = C.useRef(null), l = C.useRef(null), u = C.useRef(null), d = C.useRef(null), f = Qb(t, d, o.onViewportChange), p = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), m = o.toastCount > 0;
22873
+ Ux.displayName = Fx;
22874
+ var Wx = "ToastViewport", Gx = ["F8"], Kx = "toast.viewportPause", qx = "toast.viewportResume", Jx = C.forwardRef((e, t) => {
22875
+ let { __scopeToast: n, hotkey: r = Gx, label: i = "Notifications ({hotkey})", ...a } = e, o = Hx(Wx, n), s = Lx(n), c = C.useRef(null), l = C.useRef(null), u = C.useRef(null), d = C.useRef(null), f = Zb(t, d, o.onViewportChange), p = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), m = o.toastCount > 0;
22880
22876
  C.useEffect(() => {
22881
22877
  let e = (e) => {
22882
22878
  r.length !== 0 && r.every((t) => e[t] || e.code === t) && d.current?.focus();
@@ -22887,12 +22883,12 @@ var Gx = "ToastViewport", Kx = ["F8"], qx = "toast.viewportPause", Jx = "toast.v
22887
22883
  if (m && e && t) {
22888
22884
  let n = () => {
22889
22885
  if (!o.isClosePausedRef.current) {
22890
- let e = new CustomEvent(qx);
22886
+ let e = new CustomEvent(Kx);
22891
22887
  t.dispatchEvent(e), o.isClosePausedRef.current = !0;
22892
22888
  }
22893
22889
  }, r = () => {
22894
22890
  if (o.isClosePausedRef.current) {
22895
- let e = new CustomEvent(Jx);
22891
+ let e = new CustomEvent(qx);
22896
22892
  t.dispatchEvent(e), o.isClosePausedRef.current = !1;
22897
22893
  }
22898
22894
  }, i = (t) => {
@@ -22907,7 +22903,7 @@ var Gx = "ToastViewport", Kx = ["F8"], qx = "toast.viewportPause", Jx = "toast.v
22907
22903
  }, [m, o.isClosePausedRef]);
22908
22904
  let h = C.useCallback(({ tabbingDirection: e }) => {
22909
22905
  let t = s().map((t) => {
22910
- let n = t.ref.current, r = [n, ...SS(n)];
22906
+ let n = t.ref.current, r = [n, ...xS(n)];
22911
22907
  return e === "forwards" ? r : r.reverse();
22912
22908
  });
22913
22909
  return (e === "forwards" ? t.reverse() : t).flat();
@@ -22924,45 +22920,45 @@ var Gx = "ToastViewport", Kx = ["F8"], qx = "toast.viewportPause", Jx = "toast.v
22924
22920
  return;
22925
22921
  }
22926
22922
  let i = h({ tabbingDirection: r ? "backwards" : "forwards" }), a = i.findIndex((e) => e === n);
22927
- CS(i.slice(a + 1)) ? t.preventDefault() : r ? l.current?.focus() : u.current?.focus();
22923
+ SS(i.slice(a + 1)) ? t.preventDefault() : r ? l.current?.focus() : u.current?.focus();
22928
22924
  }
22929
22925
  };
22930
22926
  return e.addEventListener("keydown", t), () => e.removeEventListener("keydown", t);
22931
22927
  }
22932
- }, [s, h]), /* @__PURE__ */ W(bx, {
22928
+ }, [s, h]), /* @__PURE__ */ W(yx, {
22933
22929
  ref: c,
22934
22930
  role: "region",
22935
22931
  "aria-label": i.replace("{hotkey}", p),
22936
22932
  tabIndex: -1,
22937
22933
  style: { pointerEvents: m ? void 0 : "none" },
22938
22934
  children: [
22939
- m && /* @__PURE__ */ U(Zx, {
22935
+ m && /* @__PURE__ */ U(Xx, {
22940
22936
  ref: l,
22941
22937
  onFocusFromOutsideViewport: () => {
22942
- CS(h({ tabbingDirection: "forwards" }));
22938
+ SS(h({ tabbingDirection: "forwards" }));
22943
22939
  }
22944
22940
  }),
22945
- /* @__PURE__ */ U(Lx.Slot, {
22941
+ /* @__PURE__ */ U(Ix.Slot, {
22946
22942
  scope: n,
22947
- children: /* @__PURE__ */ U(nx.ol, {
22943
+ children: /* @__PURE__ */ U(tx.ol, {
22948
22944
  tabIndex: -1,
22949
22945
  ...a,
22950
22946
  ref: f
22951
22947
  })
22952
22948
  }),
22953
- m && /* @__PURE__ */ U(Zx, {
22949
+ m && /* @__PURE__ */ U(Xx, {
22954
22950
  ref: u,
22955
22951
  onFocusFromOutsideViewport: () => {
22956
- CS(h({ tabbingDirection: "backwards" }));
22952
+ SS(h({ tabbingDirection: "backwards" }));
22957
22953
  }
22958
22954
  })
22959
22955
  ]
22960
22956
  });
22961
22957
  });
22962
- Yx.displayName = Gx;
22963
- var Xx = "ToastFocusProxy", Zx = C.forwardRef((e, t) => {
22964
- let { __scopeToast: n, onFocusFromOutsideViewport: r, ...i } = e, a = Ux(Xx, n);
22965
- return /* @__PURE__ */ U(Fx, {
22958
+ Jx.displayName = Wx;
22959
+ var Yx = "ToastFocusProxy", Xx = C.forwardRef((e, t) => {
22960
+ let { __scopeToast: n, onFocusFromOutsideViewport: r, ...i } = e, a = Hx(Yx, n);
22961
+ return /* @__PURE__ */ U(Px, {
22966
22962
  tabIndex: 0,
22967
22963
  ...i,
22968
22964
  ref: t,
@@ -22973,43 +22969,43 @@ var Xx = "ToastFocusProxy", Zx = C.forwardRef((e, t) => {
22973
22969
  }
22974
22970
  });
22975
22971
  });
22976
- Zx.displayName = Xx;
22977
- var Qx = "Toast", $x = "toast.swipeStart", eS = "toast.swipeMove", tS = "toast.swipeCancel", nS = "toast.swipeEnd", rS = C.forwardRef((e, t) => {
22978
- let { forceMount: n, open: r, defaultOpen: i, onOpenChange: a, ...o } = e, [s, c] = Ax({
22972
+ Xx.displayName = Yx;
22973
+ var Zx = "Toast", Qx = "toast.swipeStart", $x = "toast.swipeMove", eS = "toast.swipeCancel", tS = "toast.swipeEnd", nS = C.forwardRef((e, t) => {
22974
+ let { forceMount: n, open: r, defaultOpen: i, onOpenChange: a, ...o } = e, [s, c] = kx({
22979
22975
  prop: r,
22980
22976
  defaultProp: i ?? !0,
22981
22977
  onChange: a,
22982
- caller: Qx
22978
+ caller: Zx
22983
22979
  });
22984
- return /* @__PURE__ */ U(Tx, {
22980
+ return /* @__PURE__ */ U(wx, {
22985
22981
  present: n || s,
22986
- children: /* @__PURE__ */ U(oS, {
22982
+ children: /* @__PURE__ */ U(aS, {
22987
22983
  open: s,
22988
22984
  ...o,
22989
22985
  ref: t,
22990
22986
  onClose: () => c(!1),
22991
- onPause: ix(e.onPause),
22992
- onResume: ix(e.onResume),
22993
- onSwipeStart: Yb(e.onSwipeStart, (e) => {
22987
+ onPause: rx(e.onPause),
22988
+ onResume: rx(e.onResume),
22989
+ onSwipeStart: Jb(e.onSwipeStart, (e) => {
22994
22990
  e.currentTarget.setAttribute("data-swipe", "start");
22995
22991
  }),
22996
- onSwipeMove: Yb(e.onSwipeMove, (e) => {
22992
+ onSwipeMove: Jb(e.onSwipeMove, (e) => {
22997
22993
  let { x: t, y: n } = e.detail.delta;
22998
22994
  e.currentTarget.setAttribute("data-swipe", "move"), e.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${t}px`), e.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${n}px`);
22999
22995
  }),
23000
- onSwipeCancel: Yb(e.onSwipeCancel, (e) => {
22996
+ onSwipeCancel: Jb(e.onSwipeCancel, (e) => {
23001
22997
  e.currentTarget.setAttribute("data-swipe", "cancel"), e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"), e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y");
23002
22998
  }),
23003
- onSwipeEnd: Yb(e.onSwipeEnd, (e) => {
22999
+ onSwipeEnd: Jb(e.onSwipeEnd, (e) => {
23004
23000
  let { x: t, y: n } = e.detail.delta;
23005
23001
  e.currentTarget.setAttribute("data-swipe", "end"), e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), e.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${t}px`), e.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${n}px`), c(!1);
23006
23002
  })
23007
23003
  })
23008
23004
  });
23009
23005
  });
23010
- rS.displayName = Qx;
23011
- var [iS, aS] = Bx(Qx, { onClose() {} }), oS = C.forwardRef((e, t) => {
23012
- let { __scopeToast: n, type: r = "foreground", duration: i, open: a, onClose: o, onEscapeKeyDown: s, onPause: c, onResume: l, onSwipeStart: u, onSwipeMove: d, onSwipeCancel: f, onSwipeEnd: p, ...m } = e, h = Ux(Qx, n), [g, _] = C.useState(null), v = Qb(t, (e) => _(e)), y = C.useRef(null), b = C.useRef(null), x = i || h.duration, S = C.useRef(0), w = C.useRef(x), T = C.useRef(0), { onToastAdd: E, onToastRemove: D } = h, O = ix(() => {
23006
+ nS.displayName = Zx;
23007
+ var [rS, iS] = zx(Zx, { onClose() {} }), aS = C.forwardRef((e, t) => {
23008
+ let { __scopeToast: n, type: r = "foreground", duration: i, open: a, onClose: o, onEscapeKeyDown: s, onPause: c, onResume: l, onSwipeStart: u, onSwipeMove: d, onSwipeCancel: f, onSwipeEnd: p, ...m } = e, h = Hx(Zx, n), [g, _] = C.useState(null), v = Zb(t, (e) => _(e)), y = C.useRef(null), b = C.useRef(null), x = i || h.duration, S = C.useRef(0), w = C.useRef(x), T = C.useRef(0), { onToastAdd: E, onToastRemove: D } = h, O = rx(() => {
23013
23009
  g?.contains(document.activeElement) && h.viewport?.focus(), o();
23014
23010
  }), k = C.useCallback((e) => {
23015
23011
  !e || e === Infinity || (window.clearTimeout(T.current), S.current = (/* @__PURE__ */ new Date()).getTime(), T.current = window.setTimeout(O, e));
@@ -23023,8 +23019,8 @@ var [iS, aS] = Bx(Qx, { onClose() {} }), oS = C.forwardRef((e, t) => {
23023
23019
  let e = (/* @__PURE__ */ new Date()).getTime() - S.current;
23024
23020
  w.current -= e, window.clearTimeout(T.current), c?.();
23025
23021
  };
23026
- return e.addEventListener(qx, n), e.addEventListener(Jx, t), () => {
23027
- e.removeEventListener(qx, n), e.removeEventListener(Jx, t);
23022
+ return e.addEventListener(Kx, n), e.addEventListener(qx, t), () => {
23023
+ e.removeEventListener(Kx, n), e.removeEventListener(qx, t);
23028
23024
  };
23029
23025
  }
23030
23026
  }, [
@@ -23041,23 +23037,23 @@ var [iS, aS] = Bx(Qx, { onClose() {} }), oS = C.forwardRef((e, t) => {
23041
23037
  h.isClosePausedRef,
23042
23038
  k
23043
23039
  ]), C.useEffect(() => (E(), () => D()), [E, D]);
23044
- let A = C.useMemo(() => g ? _S(g) : null, [g]);
23045
- return h.viewport ? /* @__PURE__ */ W(Me, { children: [A && /* @__PURE__ */ U(sS, {
23040
+ let A = C.useMemo(() => g ? gS(g) : null, [g]);
23041
+ return h.viewport ? /* @__PURE__ */ W(Me, { children: [A && /* @__PURE__ */ U(oS, {
23046
23042
  __scopeToast: n,
23047
23043
  role: "status",
23048
23044
  "aria-live": r === "foreground" ? "assertive" : "polite",
23049
23045
  children: A
23050
- }), /* @__PURE__ */ U(iS, {
23046
+ }), /* @__PURE__ */ U(rS, {
23051
23047
  scope: n,
23052
23048
  onClose: O,
23053
- children: He.createPortal(/* @__PURE__ */ U(Lx.ItemSlot, {
23049
+ children: He.createPortal(/* @__PURE__ */ U(Ix.ItemSlot, {
23054
23050
  scope: n,
23055
- children: /* @__PURE__ */ U(yx, {
23051
+ children: /* @__PURE__ */ U(vx, {
23056
23052
  asChild: !0,
23057
- onEscapeKeyDown: Yb(s, () => {
23053
+ onEscapeKeyDown: Jb(s, () => {
23058
23054
  h.isFocusedToastEscapeKeyDownRef.current || O(), h.isFocusedToastEscapeKeyDownRef.current = !1;
23059
23055
  }),
23060
- children: /* @__PURE__ */ U(nx.li, {
23056
+ children: /* @__PURE__ */ U(tx.li, {
23061
23057
  tabIndex: 0,
23062
23058
  "data-state": a ? "open" : "closed",
23063
23059
  "data-swipe-direction": h.swipeDirection,
@@ -23068,16 +23064,16 @@ var [iS, aS] = Bx(Qx, { onClose() {} }), oS = C.forwardRef((e, t) => {
23068
23064
  touchAction: "none",
23069
23065
  ...e.style
23070
23066
  },
23071
- onKeyDown: Yb(e.onKeyDown, (e) => {
23067
+ onKeyDown: Jb(e.onKeyDown, (e) => {
23072
23068
  e.key === "Escape" && (s?.(e.nativeEvent), e.nativeEvent.defaultPrevented || (h.isFocusedToastEscapeKeyDownRef.current = !0, O()));
23073
23069
  }),
23074
- onPointerDown: Yb(e.onPointerDown, (e) => {
23070
+ onPointerDown: Jb(e.onPointerDown, (e) => {
23075
23071
  e.button === 0 && (y.current = {
23076
23072
  x: e.clientX,
23077
23073
  y: e.clientY
23078
23074
  });
23079
23075
  }),
23080
- onPointerMove: Yb(e.onPointerMove, (e) => {
23076
+ onPointerMove: Jb(e.onPointerMove, (e) => {
23081
23077
  if (!y.current) return;
23082
23078
  let t = e.clientX - y.current.x, n = e.clientY - y.current.y, r = !!b.current, i = ["left", "right"].includes(h.swipeDirection), a = ["left", "up"].includes(h.swipeDirection) ? Math.min : Math.max, o = i ? a(0, t) : 0, s = i ? 0 : a(0, n), c = e.pointerType === "touch" ? 10 : 2, l = {
23083
23079
  x: o,
@@ -23086,30 +23082,30 @@ var [iS, aS] = Bx(Qx, { onClose() {} }), oS = C.forwardRef((e, t) => {
23086
23082
  originalEvent: e,
23087
23083
  delta: l
23088
23084
  };
23089
- r ? (b.current = l, vS(eS, d, f, { discrete: !1 })) : yS(l, h.swipeDirection, c) ? (b.current = l, vS($x, u, f, { discrete: !1 }), e.target.setPointerCapture(e.pointerId)) : (Math.abs(t) > c || Math.abs(n) > c) && (y.current = null);
23085
+ r ? (b.current = l, _S($x, d, f, { discrete: !1 })) : vS(l, h.swipeDirection, c) ? (b.current = l, _S(Qx, u, f, { discrete: !1 }), e.target.setPointerCapture(e.pointerId)) : (Math.abs(t) > c || Math.abs(n) > c) && (y.current = null);
23090
23086
  }),
23091
- onPointerUp: Yb(e.onPointerUp, (e) => {
23087
+ onPointerUp: Jb(e.onPointerUp, (e) => {
23092
23088
  let t = b.current, n = e.target;
23093
23089
  if (n.hasPointerCapture(e.pointerId) && n.releasePointerCapture(e.pointerId), b.current = null, y.current = null, t) {
23094
23090
  let n = e.currentTarget, r = {
23095
23091
  originalEvent: e,
23096
23092
  delta: t
23097
23093
  };
23098
- yS(t, h.swipeDirection, h.swipeThreshold) ? vS(nS, p, r, { discrete: !0 }) : vS(tS, f, r, { discrete: !0 }), n.addEventListener("click", (e) => e.preventDefault(), { once: !0 });
23094
+ vS(t, h.swipeDirection, h.swipeThreshold) ? _S(tS, p, r, { discrete: !0 }) : _S(eS, f, r, { discrete: !0 }), n.addEventListener("click", (e) => e.preventDefault(), { once: !0 });
23099
23095
  }
23100
23096
  })
23101
23097
  })
23102
23098
  })
23103
23099
  }), h.viewport)
23104
23100
  })] }) : null;
23105
- }), sS = (e) => {
23106
- let { __scopeToast: t, children: n, ...r } = e, i = Ux(Qx, t), [a, o] = C.useState(!1), [s, c] = C.useState(!1);
23107
- return bS(() => o(!0)), C.useEffect(() => {
23101
+ }), oS = (e) => {
23102
+ let { __scopeToast: t, children: n, ...r } = e, i = Hx(Zx, t), [a, o] = C.useState(!1), [s, c] = C.useState(!1);
23103
+ return yS(() => o(!0)), C.useEffect(() => {
23108
23104
  let e = window.setTimeout(() => c(!0), 1e3);
23109
23105
  return () => window.clearTimeout(e);
23110
- }, []), s ? null : /* @__PURE__ */ U(Cx, {
23106
+ }, []), s ? null : /* @__PURE__ */ U(Sx, {
23111
23107
  asChild: !0,
23112
- children: /* @__PURE__ */ U(Fx, {
23108
+ children: /* @__PURE__ */ U(Px, {
23113
23109
  ...r,
23114
23110
  children: a && /* @__PURE__ */ W(Me, { children: [
23115
23111
  i.label,
@@ -23118,93 +23114,93 @@ var [iS, aS] = Bx(Qx, { onClose() {} }), oS = C.forwardRef((e, t) => {
23118
23114
  ] })
23119
23115
  })
23120
23116
  });
23121
- }, cS = "ToastTitle", lS = C.forwardRef((e, t) => {
23117
+ }, sS = "ToastTitle", cS = C.forwardRef((e, t) => {
23122
23118
  let { __scopeToast: n, ...r } = e;
23123
- return /* @__PURE__ */ U(nx.div, {
23119
+ return /* @__PURE__ */ U(tx.div, {
23124
23120
  ...r,
23125
23121
  ref: t
23126
23122
  });
23127
23123
  });
23128
- lS.displayName = cS;
23129
- var uS = "ToastDescription", dS = C.forwardRef((e, t) => {
23124
+ cS.displayName = sS;
23125
+ var lS = "ToastDescription", uS = C.forwardRef((e, t) => {
23130
23126
  let { __scopeToast: n, ...r } = e;
23131
- return /* @__PURE__ */ U(nx.div, {
23127
+ return /* @__PURE__ */ U(tx.div, {
23132
23128
  ...r,
23133
23129
  ref: t
23134
23130
  });
23135
23131
  });
23136
- dS.displayName = uS;
23137
- var fS = "ToastAction", pS = C.forwardRef((e, t) => {
23132
+ uS.displayName = lS;
23133
+ var dS = "ToastAction", fS = C.forwardRef((e, t) => {
23138
23134
  let { altText: n, ...r } = e;
23139
- return n.trim() ? /* @__PURE__ */ U(gS, {
23135
+ return n.trim() ? /* @__PURE__ */ U(hS, {
23140
23136
  altText: n,
23141
23137
  asChild: !0,
23142
- children: /* @__PURE__ */ U(hS, {
23138
+ children: /* @__PURE__ */ U(mS, {
23143
23139
  ...r,
23144
23140
  ref: t
23145
23141
  })
23146
- }) : (console.error(`Invalid prop \`altText\` supplied to \`${fS}\`. Expected non-empty \`string\`.`), null);
23142
+ }) : (console.error(`Invalid prop \`altText\` supplied to \`${dS}\`. Expected non-empty \`string\`.`), null);
23147
23143
  });
23148
- pS.displayName = fS;
23149
- var mS = "ToastClose", hS = C.forwardRef((e, t) => {
23150
- let { __scopeToast: n, ...r } = e, i = aS(mS, n);
23151
- return /* @__PURE__ */ U(gS, {
23144
+ fS.displayName = dS;
23145
+ var pS = "ToastClose", mS = C.forwardRef((e, t) => {
23146
+ let { __scopeToast: n, ...r } = e, i = iS(pS, n);
23147
+ return /* @__PURE__ */ U(hS, {
23152
23148
  asChild: !0,
23153
- children: /* @__PURE__ */ U(nx.button, {
23149
+ children: /* @__PURE__ */ U(tx.button, {
23154
23150
  type: "button",
23155
23151
  ...r,
23156
23152
  ref: t,
23157
- onClick: Yb(e.onClick, i.onClose)
23153
+ onClick: Jb(e.onClick, i.onClose)
23158
23154
  })
23159
23155
  });
23160
23156
  });
23161
- hS.displayName = mS;
23162
- var gS = C.forwardRef((e, t) => {
23157
+ mS.displayName = pS;
23158
+ var hS = C.forwardRef((e, t) => {
23163
23159
  let { __scopeToast: n, altText: r, ...i } = e;
23164
- return /* @__PURE__ */ U(nx.div, {
23160
+ return /* @__PURE__ */ U(tx.div, {
23165
23161
  "data-radix-toast-announce-exclude": "",
23166
23162
  "data-radix-toast-announce-alt": r || void 0,
23167
23163
  ...i,
23168
23164
  ref: t
23169
23165
  });
23170
23166
  });
23171
- function _S(e) {
23167
+ function gS(e) {
23172
23168
  let t = [];
23173
23169
  return Array.from(e.childNodes).forEach((e) => {
23174
- if (e.nodeType === e.TEXT_NODE && e.textContent && t.push(e.textContent), xS(e)) {
23170
+ if (e.nodeType === e.TEXT_NODE && e.textContent && t.push(e.textContent), bS(e)) {
23175
23171
  let n = e.ariaHidden || e.hidden || e.style.display === "none", r = e.dataset.radixToastAnnounceExclude === "";
23176
23172
  if (!n) if (r) {
23177
23173
  let n = e.dataset.radixToastAnnounceAlt;
23178
23174
  n && t.push(n);
23179
- } else t.push(..._S(e));
23175
+ } else t.push(...gS(e));
23180
23176
  }
23181
23177
  }), t;
23182
23178
  }
23183
- function vS(e, t, n, { discrete: r }) {
23179
+ function _S(e, t, n, { discrete: r }) {
23184
23180
  let i = n.originalEvent.currentTarget, a = new CustomEvent(e, {
23185
23181
  bubbles: !0,
23186
23182
  cancelable: !0,
23187
23183
  detail: n
23188
23184
  });
23189
- t && i.addEventListener(e, t, { once: !0 }), r ? rx(i, a) : i.dispatchEvent(a);
23185
+ t && i.addEventListener(e, t, { once: !0 }), r ? nx(i, a) : i.dispatchEvent(a);
23190
23186
  }
23191
- var yS = (e, t, n = 0) => {
23187
+ var vS = (e, t, n = 0) => {
23192
23188
  let r = Math.abs(e.x), i = Math.abs(e.y), a = r > i;
23193
23189
  return t === "left" || t === "right" ? a && r > n : !a && i > n;
23194
23190
  };
23195
- function bS(e = () => {}) {
23196
- let t = ix(e);
23197
- xx(() => {
23191
+ function yS(e = () => {}) {
23192
+ let t = rx(e);
23193
+ bx(() => {
23198
23194
  let e = 0, n = 0;
23199
23195
  return e = window.requestAnimationFrame(() => n = window.requestAnimationFrame(t)), () => {
23200
23196
  window.cancelAnimationFrame(e), window.cancelAnimationFrame(n);
23201
23197
  };
23202
23198
  }, [t]);
23203
23199
  }
23204
- function xS(e) {
23200
+ function bS(e) {
23205
23201
  return e.nodeType === e.ELEMENT_NODE;
23206
23202
  }
23207
- function SS(e) {
23203
+ function xS(e) {
23208
23204
  let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
23209
23205
  let t = e.tagName === "INPUT" && e.type === "hidden";
23210
23206
  return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
@@ -23212,75 +23208,75 @@ function SS(e) {
23212
23208
  for (; n.nextNode();) t.push(n.currentNode);
23213
23209
  return t;
23214
23210
  }
23215
- function CS(e) {
23211
+ function SS(e) {
23216
23212
  let t = document.activeElement;
23217
23213
  return e.some((e) => e === t ? !0 : (e.focus(), document.activeElement !== t));
23218
23214
  }
23219
- var wS = Wx, TS = Yx, ES = rS, DS = lS, OS = dS, kS = pS, AS = hS, jS = wS, MS = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U(TS, {
23215
+ var CS = Ux, wS = Jx, TS = nS, ES = cS, DS = uS, OS = fS, kS = mS, AS = CS, jS = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U(wS, {
23220
23216
  ref: n,
23221
23217
  className: m("fixed top-4 left-1/2 z-[100] flex max-h-screen w-fit max-w-[min(92vw,360px)] -translate-x-1/2 flex-col gap-2 p-0", e),
23222
23218
  ...t
23223
23219
  }));
23224
- MS.displayName = TS.displayName;
23225
- var NS = Pe("group pointer-events-auto relative flex w-fit max-w-[min(92vw,360px)] items-start gap-3 overflow-hidden rounded-md border px-4 py-3 pr-9 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2", {
23220
+ jS.displayName = wS.displayName;
23221
+ var MS = Pe("group pointer-events-auto relative flex w-fit max-w-[min(92vw,360px)] items-start gap-3 overflow-hidden rounded-md border px-4 py-3 pr-9 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2", {
23226
23222
  variants: { variant: {
23227
23223
  default: "border bg-background text-foreground",
23228
23224
  destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
23229
23225
  } },
23230
23226
  defaultVariants: { variant: "default" }
23231
- }), PS = C.forwardRef(({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ U(ES, {
23227
+ }), NS = C.forwardRef(({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ U(TS, {
23232
23228
  ref: r,
23233
- className: m(NS({ variant: t }), e),
23229
+ className: m(MS({ variant: t }), e),
23234
23230
  ...n
23235
23231
  }));
23236
- PS.displayName = ES.displayName;
23237
- var FS = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U(kS, {
23232
+ NS.displayName = TS.displayName;
23233
+ var PS = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U(OS, {
23238
23234
  ref: n,
23239
23235
  className: m("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive", e),
23240
23236
  ...t
23241
23237
  }));
23242
- FS.displayName = kS.displayName;
23243
- var IS = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U(AS, {
23238
+ PS.displayName = OS.displayName;
23239
+ var FS = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U(kS, {
23244
23240
  ref: n,
23245
23241
  className: m("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", e),
23246
23242
  "toast-close": "",
23247
23243
  ...t,
23248
23244
  children: /* @__PURE__ */ U(we, { className: "h-4 w-4" })
23249
23245
  }));
23250
- IS.displayName = AS.displayName;
23251
- var LS = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U(DS, {
23246
+ FS.displayName = kS.displayName;
23247
+ var IS = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U(ES, {
23252
23248
  ref: n,
23253
23249
  className: m("text-sm font-semibold", e),
23254
23250
  ...t
23255
23251
  }));
23256
- LS.displayName = DS.displayName;
23257
- var RS = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U(OS, {
23252
+ IS.displayName = ES.displayName;
23253
+ var LS = C.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ U(DS, {
23258
23254
  ref: n,
23259
23255
  className: m("text-sm opacity-90", e),
23260
23256
  ...t
23261
23257
  }));
23262
- RS.displayName = OS.displayName;
23258
+ LS.displayName = DS.displayName;
23263
23259
  //#endregion
23264
23260
  //#region src/components/ui/toaster.tsx
23265
- function zS() {
23261
+ function RS() {
23266
23262
  let { toasts: e } = h();
23267
- return /* @__PURE__ */ W(jS, { children: [e.map(function({ id: e, title: t, description: n, action: r, ...i }) {
23268
- return /* @__PURE__ */ W(PS, {
23263
+ return /* @__PURE__ */ W(AS, { children: [e.map(function({ id: e, title: t, description: n, action: r, ...i }) {
23264
+ return /* @__PURE__ */ W(NS, {
23269
23265
  ...i,
23270
23266
  children: [
23271
23267
  /* @__PURE__ */ W("div", {
23272
23268
  className: "grid gap-1",
23273
- children: [t && /* @__PURE__ */ U(LS, { children: t }), n && /* @__PURE__ */ U(RS, { children: n })]
23269
+ children: [t && /* @__PURE__ */ U(IS, { children: t }), n && /* @__PURE__ */ U(LS, { children: n })]
23274
23270
  }),
23275
23271
  r,
23276
- /* @__PURE__ */ U(IS, {})
23272
+ /* @__PURE__ */ U(FS, {})
23277
23273
  ]
23278
23274
  }, e);
23279
- }), /* @__PURE__ */ U(MS, {})] });
23275
+ }), /* @__PURE__ */ U(jS, {})] });
23280
23276
  }
23281
23277
  //#endregion
23282
23278
  //#region src/lib/rehype-toc.ts
23283
- function BS(e) {
23279
+ function zS(e) {
23284
23280
  return e.split(/(`[^`]+`|~~[^~]+~~)/g).filter(Boolean).map((e) => e.startsWith("`") && e.endsWith("`") ? {
23285
23281
  type: "inlineCode",
23286
23282
  value: e.slice(1, -1)
@@ -23295,38 +23291,38 @@ function BS(e) {
23295
23291
  value: e
23296
23292
  });
23297
23293
  }
23298
- function VS(e) {
23294
+ function BS(e) {
23299
23295
  try {
23300
- return e ? Array.isArray(e) ? e.map(VS).join("") : e.type === "text" || e.type === "inlineCode" ? e.value || "" : typeof e == "object" && "children" in e && Array.isArray(e.children) ? e.children.map(VS).join("") : "" : "";
23296
+ return e ? Array.isArray(e) ? e.map(BS).join("") : e.type === "text" || e.type === "inlineCode" ? e.value || "" : typeof e == "object" && "children" in e && Array.isArray(e.children) ? e.children.map(BS).join("") : "" : "";
23301
23297
  } catch {
23302
23298
  return "";
23303
23299
  }
23304
23300
  }
23305
- function HS(e) {
23301
+ function VS(e) {
23306
23302
  try {
23307
- return e ? Array.isArray(e) ? e.flatMap(HS) : e.type === "text" ? BS(e.value || "") : e.type === "inlineCode" ? [{
23303
+ return e ? Array.isArray(e) ? e.flatMap(VS) : e.type === "text" ? zS(e.value || "") : e.type === "inlineCode" ? [{
23308
23304
  type: "inlineCode",
23309
23305
  value: e.value || ""
23310
23306
  }] : e.type === "strong" || e.type === "emphasis" || e.type === "delete" ? [{
23311
23307
  type: e.type,
23312
- children: HS(e.children || [])
23308
+ children: VS(e.children || [])
23313
23309
  }] : e.type === "link" ? [{
23314
23310
  type: "link",
23315
23311
  url: e.url,
23316
- children: HS(e.children || [])
23317
- }] : typeof e == "object" && "children" in e && Array.isArray(e.children) ? HS(e.children) : [] : [];
23312
+ children: VS(e.children || [])
23313
+ }] : typeof e == "object" && "children" in e && Array.isArray(e.children) ? VS(e.children) : [] : [];
23318
23314
  } catch {
23319
23315
  return [];
23320
23316
  }
23321
23317
  }
23322
- function US(e = {}) {
23318
+ function HS(e = {}) {
23323
23319
  let t = e.maxLevel || 3;
23324
23320
  return (e) => {
23325
23321
  let n = [], r = /* @__PURE__ */ new Map();
23326
23322
  Ve(e, "heading", (e) => {
23327
23323
  try {
23328
23324
  if (e.depth > t) return;
23329
- let i = VS(e).trim(), a = HS(e.children || []);
23325
+ let i = BS(e).trim(), a = VS(e.children || []);
23330
23326
  if (!i) return;
23331
23327
  let o = i.trim().toLowerCase().replace(/[^a-z0-9\u4e00-\u9fa5\s-]/g, "").replace(/\s+/g, "-"), s = r.get(o) || 0;
23332
23328
  r.set(o, s + 1), s > 0 && (o = `${o}-${s}`);
@@ -23348,23 +23344,23 @@ function US(e = {}) {
23348
23344
  }
23349
23345
  //#endregion
23350
23346
  //#region src/app/DocsApp.tsx
23351
- var WS = D(() => import("./GlobalContextMenu-DG6x5Y5w.js").then((e) => ({ default: e.GlobalContextMenu }))), GS = D(() => import("./MdxContent.lazy-C4rcCv4v.js"));
23352
- function KS() {
23347
+ var US = D(() => import("./GlobalContextMenu-DG6x5Y5w.js").then((e) => ({ default: e.GlobalContextMenu }))), WS = D(() => import("./MdxContent.lazy-C4rcCv4v.js"));
23348
+ function GS() {
23353
23349
  import("./MdxContent.lazy-C4rcCv4v.js");
23354
23350
  }
23355
- function qS() {
23351
+ function KS() {
23356
23352
  globalThis.dispatchEvent(new Event("react-docs-ui:content-ready"));
23357
23353
  }
23358
- var JS = D(() => import("./AISelectionTrigger-MaBGhxTE.js").then((e) => e.n).then((e) => ({ default: e.AISelectionTrigger }))), YS = D(() => import("./AIChatDialog-W60DtiEW.js").then((e) => e.n).then((e) => ({ default: e.AIChatDialog }))), XS = D(() => import("./AISettingsPanel-aiMnncnQ.js").then((e) => e.n).then((e) => ({ default: e.AISettingsPanel })));
23359
- function ZS(e) {
23354
+ var qS = D(() => import("./AISelectionTrigger-MaBGhxTE.js").then((e) => e.n).then((e) => ({ default: e.AISelectionTrigger }))), JS = D(() => import("./AIChatDialog-W60DtiEW.js").then((e) => e.n).then((e) => ({ default: e.AIChatDialog }))), YS = D(() => import("./AISettingsPanel-aiMnncnQ.js").then((e) => e.n).then((e) => ({ default: e.AISettingsPanel })));
23355
+ function XS(e) {
23360
23356
  let t = e.split("\n");
23361
23357
  for (let e of t) if (e.startsWith("# ")) return e.slice(2).trim();
23362
23358
  }
23363
- var QS = E({
23359
+ var ZS = E({
23364
23360
  config: null,
23365
23361
  lang: "zh-cn"
23366
23362
  });
23367
- function $S({ children: e }) {
23363
+ function QS({ children: e }) {
23368
23364
  let t = je(), n = j(() => t.lang || "zh-cn", [t.lang]), [r, i] = N(null);
23369
23365
  return A(() => {
23370
23366
  Ly(n).then(i).catch(console.error);
@@ -23376,8 +23372,8 @@ function $S({ children: e }) {
23376
23372
  children: e
23377
23373
  });
23378
23374
  }
23379
- function eC() {
23380
- let e = ke(), [t, n] = N(null), [r, i] = N(() => Kb()), [a, o] = N(!1), s = j(() => {
23375
+ function $S() {
23376
+ let e = ke(), [t, n] = N(null), [r, i] = N(() => Gb()), [a, o] = N(!1), s = j(() => {
23381
23377
  let t = e.pathname.split("/").filter(Boolean);
23382
23378
  return t[0] === "en" || t[0] === "zh-cn" ? t[0] : "zh-cn";
23383
23379
  }, [e.pathname]);
@@ -23385,13 +23381,13 @@ function eC() {
23385
23381
  let e = !1;
23386
23382
  return (async () => {
23387
23383
  try {
23388
- Hb();
23384
+ Vb();
23389
23385
  let t = await Ly(s);
23390
23386
  if (!e) {
23391
23387
  n(t), o(t?.ai?.enabled === !0);
23392
23388
  let e = t?.mdx?.componentsPath || "/src/components", r = t?.mdx?.components;
23393
23389
  if (t?.mdx?.enabled !== !1) try {
23394
- i(await Gb(await Ub(e), r));
23390
+ i(await Wb(await Hb(e), r));
23395
23391
  } catch (e) {
23396
23392
  console.warn("[MDX] 加载组件失败:", e);
23397
23393
  }
@@ -23405,7 +23401,7 @@ function eC() {
23405
23401
  }, [s]), /* @__PURE__ */ U(p, {
23406
23402
  defaultTheme: "system",
23407
23403
  storageKey: "vite-ui-theme",
23408
- children: /* @__PURE__ */ U(QS.Provider, {
23404
+ children: /* @__PURE__ */ U(ZS.Provider, {
23409
23405
  value: {
23410
23406
  config: t,
23411
23407
  lang: s
@@ -23415,32 +23411,32 @@ function eC() {
23415
23411
  lang: s,
23416
23412
  children: /* @__PURE__ */ W(S, { children: [/* @__PURE__ */ U(l, {
23417
23413
  components: r,
23418
- children: /* @__PURE__ */ U($S, { children: /* @__PURE__ */ U(T, {
23414
+ children: /* @__PURE__ */ U(QS, { children: /* @__PURE__ */ U(T, {
23419
23415
  fallback: /* @__PURE__ */ U(Ee, {}),
23420
- children: /* @__PURE__ */ W(WS, {
23416
+ children: /* @__PURE__ */ W(US, {
23421
23417
  config: t?.contextMenu,
23422
23418
  children: [a && /* @__PURE__ */ W(T, {
23423
23419
  fallback: null,
23424
23420
  children: [
23421
+ /* @__PURE__ */ U(qS, {}),
23425
23422
  /* @__PURE__ */ U(JS, {}),
23426
- /* @__PURE__ */ U(YS, {}),
23427
- /* @__PURE__ */ U(XS, {})
23423
+ /* @__PURE__ */ U(YS, {})
23428
23424
  ]
23429
23425
  }), /* @__PURE__ */ U(Ee, {})]
23430
23426
  })
23431
23427
  }) })
23432
- }), /* @__PURE__ */ U(zS, {})] })
23428
+ }), /* @__PURE__ */ U(RS, {})] })
23433
23429
  })
23434
23430
  })
23435
23431
  });
23436
23432
  }
23437
- function tC({ shikiBundle: e }) {
23433
+ function eC({ shikiBundle: e }) {
23438
23434
  let t = je(), n = t.lang, r = t["*"], i = j(() => n || "zh-cn", [n]), [a, s] = N(null), [c, l] = N(null), [u, d] = N(null), [f, p] = N(!0), [m, h] = N(null), g = j(() => {
23439
23435
  let e = (r || "").split("/").filter(Boolean);
23440
23436
  return e.length > 0 ? e[0] : "";
23441
23437
  }, [r]), { prev: _, next: v } = j(() => {
23442
23438
  let e = `/${i}/${r || ""}`;
23443
- return Jb(a?.sidebar, e, g);
23439
+ return qb(a?.sidebar, e, g);
23444
23440
  }, [
23445
23441
  a?.sidebar,
23446
23442
  i,
@@ -23461,7 +23457,7 @@ function tC({ shikiBundle: e }) {
23461
23457
  };
23462
23458
  }, [i]), A(() => {
23463
23459
  let t = !1;
23464
- p(!0), KS();
23460
+ p(!0), GS();
23465
23461
  let n = r || "index", s = `/docs/${i}/${n}.md`, c = `/docs/${i}/${n}.mdx`;
23466
23462
  return (async () => {
23467
23463
  try {
@@ -23476,7 +23472,7 @@ function tC({ shikiBundle: e }) {
23476
23472
  }
23477
23473
  if (!i) throw Error(`Neither ${s} nor ${c} found`);
23478
23474
  if (t) return;
23479
- let { data: u, content: f } = By(i), p = a?.toc?.maxLevel || 3, m = Dg().use(Iy).use(US, { maxLevel: p }), h = (await m.run(m.parse(f))).data?.toc || [], g = ZS(f);
23475
+ let { data: u, content: f } = By(i), p = a?.toc?.maxLevel || 3, m = Dg().use(Iy).use(HS, { maxLevel: p }), h = (await m.run(m.parse(f))).data?.toc || [], g = XS(f);
23480
23476
  d({
23481
23477
  ...u,
23482
23478
  toc: h,
@@ -23495,7 +23491,7 @@ function tC({ shikiBundle: e }) {
23495
23491
  t = !0;
23496
23492
  };
23497
23493
  }, [i, r]), A(() => {
23498
- !c || f || (qS(), o(c, a?.codeHighlight, e));
23494
+ !c || f || (KS(), o(c, a?.codeHighlight, e));
23499
23495
  }, [
23500
23496
  c,
23501
23497
  f,
@@ -23526,7 +23522,7 @@ function tC({ shikiBundle: e }) {
23526
23522
  availableLangs: ["zh-cn", "en"],
23527
23523
  children: f && !c ? /* @__PURE__ */ U("div", { children: "Loading..." }) : /* @__PURE__ */ U(T, {
23528
23524
  fallback: /* @__PURE__ */ U("div", { children: "Loading..." }),
23529
- children: /* @__PURE__ */ U(GS, {
23525
+ children: /* @__PURE__ */ U(WS, {
23530
23526
  source: c || "",
23531
23527
  skipFirstH1: !!u?.title,
23532
23528
  imageViewer: a?.imageViewer,
@@ -23536,25 +23532,25 @@ function tC({ shikiBundle: e }) {
23536
23532
  })
23537
23533
  }) : /* @__PURE__ */ U("div", { children: "Loading..." });
23538
23534
  }
23539
- function nC({ shikiBundle: e } = {}) {
23535
+ function tC({ shikiBundle: e } = {}) {
23540
23536
  return /* @__PURE__ */ U(De, { router: j(() => Oe([{
23541
23537
  path: "/",
23542
- element: /* @__PURE__ */ U(eC, {}),
23538
+ element: /* @__PURE__ */ U($S, {}),
23543
23539
  children: [
23544
23540
  {
23545
23541
  index: !0,
23546
- element: /* @__PURE__ */ U(tC, { shikiBundle: e })
23542
+ element: /* @__PURE__ */ U(eC, { shikiBundle: e })
23547
23543
  },
23548
23544
  {
23549
23545
  path: ":lang",
23550
- element: /* @__PURE__ */ U(tC, { shikiBundle: e })
23546
+ element: /* @__PURE__ */ U(eC, { shikiBundle: e })
23551
23547
  },
23552
23548
  {
23553
23549
  path: ":lang/*",
23554
- element: /* @__PURE__ */ U(tC, { shikiBundle: e })
23550
+ element: /* @__PURE__ */ U(eC, { shikiBundle: e })
23555
23551
  }
23556
23552
  ]
23557
23553
  }]), [e]) });
23558
23554
  }
23559
23555
  //#endregion
23560
- export { Ye as $, Lt as A, it as B, mb as C, Ht as D, Kt as E, wt as F, Ze as G, Xe as H, St as I, st as J, $e as K, mt as L, Et as M, Ct as N, Vt as O, Tt as P, et as Q, ft as R, db as S, Ly as T, rt as U, nt as V, ot as W, Qe as X, ct as Y, tt as Z, yb as _, Wb as a, hb as b, Hb as c, Fb as d, Pb as f, xb as g, Cb as h, Jb as i, Dt as j, Bt as k, Ub as l, Mb as m, KS as n, Gb as o, Nb as p, at as q, US as r, qb as s, nC as t, Ib as u, _b as v, gb as w, ub as x, lb as y, Je as z };
23556
+ export { Ye as $, Lt as A, it as B, mb as C, Ht as D, Kt as E, wt as F, Ze as G, Xe as H, St as I, st as J, $e as K, mt as L, Et as M, Ct as N, Vt as O, Tt as P, et as Q, ft as R, db as S, Ly as T, rt as U, nt as V, ot as W, Qe as X, ct as Y, tt as Z, yb as _, Ub as a, hb as b, Vb as c, Fb as d, Pb as f, xb as g, Cb as h, qb as i, Dt as j, Bt as k, Hb as l, Mb as m, GS as n, Wb as o, Nb as p, at as q, HS as r, Kb as s, tC as t, Ib as u, _b as v, gb as w, ub as x, lb as y, Je as z };
@@ -1,4 +1,4 @@
1
- import { c as e, n as t, t as n } from "./DocsApp-CUrnKwOU.js";
1
+ import { c as e, n as t, t as n } from "./DocsApp-BN6Bo0YD.js";
2
2
  //#region src/docs-app.ts
3
3
  var r = !1;
4
4
  function i() {
@@ -0,0 +1,4 @@
1
+ //#region src/generated/mdx-components.ts
2
+ var e = {}, t = {};
3
+ //#endregion
4
+ export { e as MDX_COMPONENTS, t as mdxComponentsConfig };
@@ -1,6 +1,6 @@
1
1
  import { c as e, d as t, f as n, l as r, o as i, p as a, s as ee, u as te } from "./shiki-highlighter-BmQSSJpS.js";
2
2
  import { n as ne, t as re } from "./theme-provider-fNhx9xK0.js";
3
- import { $ as ie, A as ae, B as oe, C as se, D as ce, E as le, F as ue, G as de, H as o, I as s, J as c, K as l, L as u, M as d, N as f, O as p, P as m, Q as h, R as g, S as _, T as v, U as y, V as b, W as x, X as S, Y as C, Z as w, _ as T, a as E, b as D, d as O, f as k, g as A, h as j, i as M, j as N, k as P, l as F, m as I, o as L, p as R, q as z, r as B, s as V, t as H, u as fe, v as pe, w as me, x as he, y as ge, z as _e } from "./DocsApp-CUrnKwOU.js";
3
+ import { $ as ie, A as ae, B as oe, C as se, D as ce, E as le, F as ue, G as de, H as o, I as s, J as c, K as l, L as u, M as d, N as f, O as p, P as m, Q as h, R as g, S as _, T as v, U as y, V as b, W as x, X as S, Y as C, Z as w, _ as T, a as E, b as D, d as O, f as k, g as A, h as j, i as M, j as N, k as P, l as F, m as I, o as L, p as R, q as z, r as B, s as V, t as H, u as fe, v as pe, w as me, x as he, y as ge, z as _e } from "./DocsApp-BN6Bo0YD.js";
4
4
  import { t as U } from "./utils-Ct96Mtjw.js";
5
5
  import { a as ve, c as ye, i as W, n as be, o as G, r as K, s as q, t as J } from "./dialog-DQ6nkP0y.js";
6
6
  import { a as xe, c as Se, d as Ce, f as we, l as Te, m as Ee, n as De, o as Oe, p as Y, r as ke, s as Ae, t as je, u as Me } from "./context-menu-CB7erSoV.js";
@@ -1 +1 @@
1
- {"version":3,"file":"component-scanner.d.ts","sourceRoot":"","sources":["../../../src/lib/component-scanner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,CAAC,aAAa,EAAE,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAA;CAClD;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb;AA8CD,wBAAgB,2BAA2B,IAAI,IAAI,CAElD;AAED;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,eAAe,GAAE,MAA0B,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAI5G;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,eAAe,EAAE,CASvG;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAcrG;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAClC,WAAW,EAAE,eAAe,EAAE,EAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACxC,OAAO,CAAC,iBAAiB,CAAC,CA2B5B;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,iBAAiB,CAExD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,gBAAgB,GAAE,iBAAsB,GACvC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAK1C"}
1
+ {"version":3,"file":"component-scanner.d.ts","sourceRoot":"","sources":["../../../src/lib/component-scanner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,CAAC,aAAa,EAAE,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAA;CAClD;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb;AAyCD,wBAAgB,2BAA2B,IAAI,IAAI,CAElD;AAED;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,eAAe,GAAE,MAA0B,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAI5G;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,eAAe,EAAE,CASvG;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAcrG;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAClC,WAAW,EAAE,eAAe,EAAE,EAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACxC,OAAO,CAAC,iBAAiB,CAAC,CA2B5B;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,iBAAiB,CAExD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,gBAAgB,GAAE,iBAAsB,GACvC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAK1C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-docs-ui",
3
- "version": "0.6.16",
3
+ "version": "0.6.17",
4
4
  "type": "module",
5
5
  "description": "React documentation site UI components — navigation, sidebar, search, code highlight, MDX rendering and theming to help you build docs fast.",
6
6
  "homepage": "https://shenjianZ.github.io/react-docs-ui",