react-docs-ui 0.6.15 → 0.6.16

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