@rspress/core 1.0.0-beta.2 → 1.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/index.js +19 -12
  2. package/dist/index.js.map +1 -1
  3. package/dist/runtime/App.d.ts +1 -0
  4. package/dist/runtime/index.d.ts +2 -2
  5. package/dist/runtime/index.js +2 -2
  6. package/dist/runtime/utils.d.ts +1 -0
  7. package/dist/runtime/utils.js +7 -1
  8. package/dist/theme/bundle.css +132 -125
  9. package/dist/theme/bundle.d.ts +5 -2
  10. package/dist/theme/bundle.js +900 -894
  11. package/dist/theme/bundle.js.map +1 -1
  12. package/package.json +7 -10
  13. package/src/runtime/index.ts +2 -1
  14. package/src/runtime/utils.ts +9 -0
  15. package/src/theme-default/components/Aside/index.css +0 -1
  16. package/src/theme-default/components/Aside/index.tsx +7 -8
  17. package/src/theme-default/components/DocFooter/index.tsx +4 -1
  18. package/src/theme-default/components/HomeHero/index.module.scss +6 -0
  19. package/src/theme-default/components/HomeHero/index.tsx +8 -2
  20. package/src/theme-default/components/LocalSideBar/index.tsx +5 -15
  21. package/src/theme-default/components/Nav/NavBarTitle.tsx +42 -0
  22. package/src/theme-default/components/Nav/index.module.scss +18 -4
  23. package/src/theme-default/components/Nav/index.tsx +14 -54
  24. package/src/theme-default/components/NavHambmger/index.tsx +1 -3
  25. package/src/theme-default/components/NavScreen/index.tsx +31 -18
  26. package/src/theme-default/components/Search/SearchPanel.tsx +1 -0
  27. package/src/theme-default/components/Sidebar/SidebarGroup.tsx +1 -1
  28. package/src/theme-default/components/Sidebar/index.module.scss +20 -11
  29. package/src/theme-default/components/Sidebar/index.tsx +25 -38
  30. package/src/theme-default/layout/DocLayout/docComponents/link.tsx +2 -1
  31. package/src/theme-default/layout/DocLayout/index.module.scss +7 -3
  32. package/src/theme-default/layout/DocLayout/index.tsx +6 -19
  33. package/src/theme-default/layout/HomeLayout/index.tsx +1 -1
  34. package/src/theme-default/layout/Layout/index.tsx +3 -5
  35. package/src/theme-default/logic/index.ts +1 -0
  36. package/src/theme-default/logic/sideEffects.ts +8 -7
  37. package/src/theme-default/logic/useHiddenNav.ts +55 -0
  38. package/src/theme-default/styles/code.css +0 -1
@@ -41,23 +41,22 @@ function NotFoundLayout() {
41
41
  }
42
42
 
43
43
  // src/theme-default/layout/Layout/index.tsx
44
- import { jsx as _jsx15, jsxs as _jsxs9 } from "react/jsx-runtime";
44
+ import { jsx as _jsx16, jsxs as _jsxs10 } from "react/jsx-runtime";
45
45
  import "nprogress/nprogress.css";
46
- import React5, { useEffect as useEffect8 } from "react";
46
+ import React5, { useEffect as useEffect10 } from "react";
47
47
  import { Helmet } from "react-helmet-async";
48
48
  import Theme, { Nav } from "@theme";
49
49
  import globalComponents from "virtual-global-components";
50
50
 
51
51
  // src/theme-default/layout/DocLayout/index.tsx
52
- import { jsx as _jsx14, jsxs as _jsxs8 } from "react/jsx-runtime";
53
- import { useLocation as useLocation4 } from "react-router-dom";
54
- import { useEffect as useEffect7, useState as useState4 } from "react";
52
+ import { jsx as _jsx15, jsxs as _jsxs9 } from "react/jsx-runtime";
53
+ import { useEffect as useEffect9, useState as useState6 } from "react";
55
54
  import { MDXProvider } from "@mdx-js/react";
56
55
  import { getCustomMDXComponent } from "@theme";
57
56
 
58
57
  // src/theme-default/components/Aside/index.tsx
59
58
  import { jsx as _jsx2, jsxs as _jsxs2 } from "react/jsx-runtime";
60
- import { useRef, useEffect as useEffect2 } from "react";
59
+ import { useEffect as useEffect3 } from "react";
61
60
 
62
61
  // src/theme-default/logic/usePrevNextPage.ts
63
62
  import { useLocation as useLocation2 } from "react-router-dom";
@@ -250,8 +249,51 @@ function useEditLink() {
250
249
  };
251
250
  }
252
251
 
253
- // src/theme-default/logic/sideEffects.ts
252
+ // src/theme-default/logic/useHiddenNav.ts
254
253
  import throttle from "lodash-es/throttle";
254
+ import { useEffect as useEffect2, useRef, useState as useState2 } from "react";
255
+ import { useLocation as useLocation3, usePageData as usePageData4 } from "@/runtime";
256
+ function useDisableNav() {
257
+ const { siteData: { themeConfig }, page: { frontmatter = {} } } = usePageData4();
258
+ var _frontmatter_navbar;
259
+ return !((_frontmatter_navbar = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.navbar) !== null && _frontmatter_navbar !== void 0 ? _frontmatter_navbar : true) || (themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.hideNavbar) === "always";
260
+ }
261
+ function useHiddenNav() {
262
+ const { siteData: { themeConfig } } = usePageData4();
263
+ var _themeConfig_hideNavbar;
264
+ const hiddenBehaivor = (_themeConfig_hideNavbar = themeConfig.hideNavbar) !== null && _themeConfig_hideNavbar !== void 0 ? _themeConfig_hideNavbar : "never";
265
+ const [hiddenNav, setHiddenNav] = useState2(false);
266
+ const { pathname } = useLocation3();
267
+ const lastScrollTop = useRef(0);
268
+ if (hiddenBehaivor === "never") {
269
+ return false;
270
+ } else if (hiddenBehaivor === "always") {
271
+ return true;
272
+ } else {
273
+ useEffect2(() => {
274
+ setHiddenNav(false);
275
+ const onScrollListen = throttle(() => {
276
+ const { scrollTop } = document.documentElement;
277
+ if (scrollTop === lastScrollTop.current) {
278
+ return;
279
+ }
280
+ const shouldHidden = lastScrollTop.current > 0 && scrollTop - lastScrollTop.current > 0;
281
+ setHiddenNav(shouldHidden);
282
+ lastScrollTop.current = scrollTop <= 0 ? 0 : scrollTop;
283
+ }, 200);
284
+ window.addEventListener("mousewheel", onScrollListen);
285
+ return () => {
286
+ window.removeEventListener("mousewheel", onScrollListen);
287
+ };
288
+ }, [
289
+ pathname
290
+ ]);
291
+ return hiddenNav;
292
+ }
293
+ }
294
+
295
+ // src/theme-default/logic/sideEffects.ts
296
+ import throttle2 from "lodash-es/throttle";
255
297
  import { inBrowser } from "@rspress/shared";
256
298
  function _define_property2(obj, key, value) {
257
299
  if (key in obj) {
@@ -282,9 +324,9 @@ function _object_spread2(target) {
282
324
  return target;
283
325
  }
284
326
  var DEFAULT_NAV_HEIGHT = 72;
285
- function scrollToTarget(target, isSmooth) {
327
+ function scrollToTarget(target, isSmooth, fallbackHeight = DEFAULT_NAV_HEIGHT) {
286
328
  const targetPadding = parseInt(window.getComputedStyle(target).paddingTop, 10);
287
- const targetTop = window.scrollY + target.getBoundingClientRect().top - DEFAULT_NAV_HEIGHT + targetPadding;
329
+ const targetTop = window.scrollY + target.getBoundingClientRect().top - fallbackHeight - targetPadding;
288
330
  window.scrollTo(_object_spread2({
289
331
  left: 0,
290
332
  top: targetTop
@@ -336,7 +378,6 @@ function bindingAsideScroll() {
336
378
  function isBottom() {
337
379
  return document.documentElement.scrollTop + window.innerHeight >= document.documentElement.scrollHeight;
338
380
  }
339
- const marker = document.getElementById("aside-marker");
340
381
  const aside = document.getElementById("aside-container");
341
382
  const links = Array.from(document.querySelectorAll(".rspress-doc .header-anchor")).filter((item) => {
342
383
  var _item_parentElement;
@@ -347,8 +388,7 @@ function bindingAsideScroll() {
347
388
  }
348
389
  let prevActiveLink = null;
349
390
  const headers = Array.from((aside === null || aside === void 0 ? void 0 : aside.getElementsByTagName("a")) || []).map((item) => decodeURIComponent(item.hash));
350
- if (marker && !headers.length) {
351
- marker.style.opacity = "0";
391
+ if (!headers.length) {
352
392
  return;
353
393
  }
354
394
  const activate = (links2, index) => {
@@ -389,7 +429,7 @@ function bindingAsideScroll() {
389
429
  }
390
430
  }
391
431
  };
392
- const throttledSetLink = throttle(setActiveLink, 200);
432
+ const throttledSetLink = throttle2(setActiveLink, 200);
393
433
  window.addEventListener("scroll", throttledSetLink);
394
434
  return () => {
395
435
  window.removeEventListener("scroll", throttledSetLink);
@@ -404,11 +444,11 @@ function setup() {
404
444
 
405
445
  // src/theme-default/logic/usePathUtils.ts
406
446
  import { isExternalUrl } from "@rspress/shared";
407
- import { removeBase, useLang, usePageData as usePageData4, normalizeHrefInRuntime as normalizeHref, useVersion, withBase as withBase3 } from "@/runtime";
447
+ import { removeBase, useLang, usePageData as usePageData5, normalizeHrefInRuntime as normalizeHref, useVersion, withBase as withBase3 } from "@/runtime";
408
448
  function usePathUtils() {
409
449
  const currentLang = useLang();
410
450
  const currentVersion = useVersion();
411
- const pageData = usePageData4();
451
+ const pageData = usePageData5();
412
452
  const defaultLang = pageData.siteData.lang;
413
453
  const defaultVersion = pageData.siteData.multiVersion.default;
414
454
  const normalizeLinkHref = (rawHref) => {
@@ -484,13 +524,10 @@ function Aside(props) {
484
524
  var _headers_;
485
525
  const { headers } = props;
486
526
  const hasOutline = headers.length > 0;
487
- const markerRef = useRef(null);
488
527
  const baseHeaderLevel = ((_headers_ = headers[0]) === null || _headers_ === void 0 ? void 0 : _headers_.depth) || 2;
489
- useEffect2(() => {
528
+ const hiddenNav = useHiddenNav();
529
+ useEffect3(() => {
490
530
  let unbinding;
491
- if (markerRef.current) {
492
- markerRef.current.style.opacity = "0";
493
- }
494
531
  setTimeout(() => {
495
532
  unbinding = bindingAsideScroll();
496
533
  }, 100);
@@ -500,7 +537,7 @@ function Aside(props) {
500
537
  } else {
501
538
  const target = document.getElementById(hash.slice(1));
502
539
  if (target) {
503
- scrollToTarget(target, false);
540
+ scrollToTarget(target, false, hiddenNav ? 0 : DEFAULT_NAV_HEIGHT);
504
541
  }
505
542
  }
506
543
  return () => {
@@ -525,7 +562,7 @@ function Aside(props) {
525
562
  window.location.hash = header.id;
526
563
  const target = document.getElementById(header.id);
527
564
  if (target) {
528
- scrollToTarget(target, false);
565
+ scrollToTarget(target, false, hiddenNav ? 0 : DEFAULT_NAV_HEIGHT);
529
566
  }
530
567
  },
531
568
  children: /* @__PURE__ */ _jsx2("span", {
@@ -586,7 +623,7 @@ function EditLink() {
586
623
 
587
624
  // src/theme-default/components/Link/index.tsx
588
625
  import { jsx as _jsx4 } from "react/jsx-runtime";
589
- import { matchRoutes, useLocation as useLocation3, useNavigate } from "react-router-dom";
626
+ import { matchRoutes, useLocation as useLocation4, useNavigate } from "react-router-dom";
590
627
  import nprogress from "nprogress";
591
628
  import { routes } from "virtual-routes";
592
629
 
@@ -635,7 +672,7 @@ function Link(props) {
635
672
  const rel = isExternal ? "noopener noreferrer" : void 0;
636
673
  const withBaseUrl = isExternal ? href : withBase4(normalizeHref2(href));
637
674
  const navigate = useNavigate();
638
- const { pathname } = useLocation3();
675
+ const { pathname } = useLocation4();
639
676
  const inCurrentPage = withBaseUrl.startsWith(pathname);
640
677
  const handleNavigate = function() {
641
678
  var _ref = _async_to_generator(function* (e) {
@@ -692,11 +729,11 @@ function Link(props) {
692
729
  var index_module_default3 = { "pager": "pager_33e00", "has-next": "has-next_33e00", "hasNext": "has-next_33e00", "prev": "prev_33e00", "next": "next_33e00", "pager-link": "pager-link_33e00", "pagerLink": "pager-link_33e00", "title": "title_33e00", "desc": "desc_33e00" };
693
730
 
694
731
  // src/theme-default/components/DocFooter/index.tsx
695
- import { normalizeHrefInRuntime as normalizeHref3, usePageData as usePageData5 } from "@/runtime";
732
+ import { normalizeHrefInRuntime as normalizeHref3, usePageData as usePageData6 } from "@/runtime";
696
733
  function DocFooter() {
697
734
  const { prevPage, nextPage } = usePrevNextPage();
698
735
  const { prevPageText = "Previous Page", nextPageText = "Next page", lastUpdatedText: localesLastUpdatedText = "Last Updated", lastUpdated: localesLastUpdated = false } = useLocaleSiteData();
699
- const { page: { lastUpdatedTime }, siteData: siteData2 } = usePageData5();
736
+ const { page: { lastUpdatedTime }, siteData: siteData2 } = usePageData6();
700
737
  const { themeConfig } = siteData2;
701
738
  const lastUpdatedText = (themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.lastUpdatedText) || localesLastUpdatedText;
702
739
  const showLastUpdated = themeConfig.lastUpdated || localesLastUpdated;
@@ -768,31 +805,70 @@ function DocFooter() {
768
805
  }
769
806
 
770
807
  // src/theme-default/components/LocalSideBar/index.tsx
771
- import { jsx as _jsx12, jsxs as _jsxs6 } from "react/jsx-runtime";
772
- import { Fragment, useEffect as useEffect6, useState as useState3 } from "react";
808
+ import { jsx as _jsx13, jsxs as _jsxs7 } from "react/jsx-runtime";
809
+ import { Fragment, useEffect as useEffect8, useState as useState5 } from "react";
773
810
 
774
811
  // src/theme-default/components/Sidebar/index.tsx
775
- import { jsx as _jsx10 } from "react/jsx-runtime";
776
- import { useEffect as useEffect5, useState as useState2 } from "react";
777
- import { matchRoutes as matchRoutes2 } from "react-router-dom";
812
+ import { jsx as _jsx11, jsxs as _jsxs6 } from "react/jsx-runtime";
813
+ import { useEffect as useEffect7, useState as useState4 } from "react";
814
+ import { normalizeSlash } from "@rspress/shared";
778
815
  import { routes as routes2 } from "virtual-routes";
779
816
 
817
+ // src/theme-default/components/Nav/NavBarTitle.tsx
818
+ import { jsx as _jsx6 } from "react/jsx-runtime";
819
+ import { useContext, useEffect as useEffect4, useState as useState3 } from "react";
820
+
821
+ // src/theme-default/components/Nav/index.module.scss
822
+ var index_module_default4 = { "hidden": "hidden_47ac2", "container": "container_47ac2", "navContainer": "navContainer_47ac2", "leftNav": "leftNav_47ac2", "rightNav": "rightNav_47ac2", "activeItem": "activeItem_47ac2", "singleItem": "singleItem_47ac2", "social-links-icon": "social-links-icon_47ac2", "socialLinksIcon": "social-links-icon_47ac2", "menu-item": "menu-item_47ac2", "menuItem": "menu-item_47ac2", "mobileNavMenu": "mobileNavMenu_47ac2", "mask": "mask_47ac2", "docPage": "docPage_47ac2" };
823
+
824
+ // src/theme-default/components/Nav/NavBarTitle.tsx
825
+ import { ThemeContext, normalizeImagePath, usePageData as usePageData7, withBase as withBase5 } from "@/runtime";
826
+ var NavBarTitle = () => {
827
+ const { siteData: siteData2 } = usePageData7();
828
+ const localeData = useLocaleSiteData();
829
+ const { logo: rawLogo } = siteData2;
830
+ var _localeData_title;
831
+ const title = (_localeData_title = localeData.title) !== null && _localeData_title !== void 0 ? _localeData_title : siteData2.title;
832
+ const { theme } = useContext(ThemeContext);
833
+ const [logo, setLogo] = useState3(getLogoUrl(rawLogo, theme));
834
+ useEffect4(() => {
835
+ setLogo(getLogoUrl(rawLogo, theme));
836
+ }, [
837
+ theme
838
+ ]);
839
+ return /* @__PURE__ */ _jsx6("div", {
840
+ className: `${index_module_default4.navBarTitle}`,
841
+ children: /* @__PURE__ */ _jsx6("a", {
842
+ href: withBase5(localeData.langRoutePrefix || "/"),
843
+ className: "flex items-center w-full h-full text-base font-semibold transition-opacity duration-300 hover:opacity-60",
844
+ children: logo ? /* @__PURE__ */ _jsx6("img", {
845
+ src: normalizeImagePath(logo),
846
+ alt: "logo",
847
+ id: "logo",
848
+ className: "w-24 mr-4 rspress-logo"
849
+ }) : /* @__PURE__ */ _jsx6("span", {
850
+ children: title
851
+ })
852
+ })
853
+ });
854
+ };
855
+
780
856
  // src/theme-default/components/Sidebar/index.module.scss
781
- var index_module_default4 = { "sidebar": "sidebar_74484", "sidebarContent": "sidebarContent_74484", "open": "open_74484", "menuLink": "menuLink_74484", "menuItem": "menuItem_74484", "collapseContainer": "collapseContainer_74484", "menuItemStatic": "menuItemStatic_74484", "menuItemActive": "menuItemActive_74484", "menuGroupActive": "menuGroupActive_74484" };
857
+ var index_module_default5 = { "navTitleMask": "navTitleMask_74484", "sidebar": "sidebar_74484", "sidebarContent": "sidebarContent_74484", "open": "open_74484", "menuLink": "menuLink_74484", "menuItem": "menuItem_74484", "collapseContainer": "collapseContainer_74484", "menuItemStatic": "menuItemStatic_74484", "menuItemActive": "menuItemActive_74484", "menuGroupActive": "menuGroupActive_74484" };
782
858
 
783
859
  // src/theme-default/components/Sidebar/SidebarItem.tsx
784
- import { jsx as _jsx9, jsxs as _jsxs5 } from "react/jsx-runtime";
785
- import { useEffect as useEffect4, useRef as useRef3 } from "react";
860
+ import { jsx as _jsx10, jsxs as _jsxs5 } from "react/jsx-runtime";
861
+ import { useEffect as useEffect6, useRef as useRef3 } from "react";
786
862
 
787
863
  // src/theme-default/components/Tag/index.tsx
788
- import { jsx as _jsx6 } from "react/jsx-runtime";
864
+ import { jsx as _jsx7 } from "react/jsx-runtime";
789
865
  var Tag = ({ tag }) => {
790
866
  if (!tag) {
791
867
  return null;
792
868
  }
793
869
  const isSvgTagString = tag.trim().startsWith("<svg");
794
870
  if (isSvgTagString) {
795
- return /* @__PURE__ */ _jsx6("div", {
871
+ return /* @__PURE__ */ _jsx7("div", {
796
872
  // eslint-disable-next-line react/no-danger
797
873
  dangerouslySetInnerHTML: {
798
874
  __html: tag
@@ -803,19 +879,19 @@ var Tag = ({ tag }) => {
803
879
  }
804
880
  });
805
881
  } else {
806
- return /* @__PURE__ */ _jsx6("img", {
882
+ return /* @__PURE__ */ _jsx7("img", {
807
883
  src: tag
808
884
  });
809
885
  }
810
886
  };
811
887
 
812
888
  // src/theme-default/components/Sidebar/SidebarGroup.tsx
813
- import { jsx as _jsx8, jsxs as _jsxs4 } from "react/jsx-runtime";
814
- import { useEffect as useEffect3, useRef as useRef2 } from "react";
889
+ import { jsx as _jsx9, jsxs as _jsxs4 } from "react/jsx-runtime";
890
+ import { useEffect as useEffect5, useRef as useRef2 } from "react";
815
891
  import { useNavigate as useNavigate2 } from "react-router-dom";
816
892
 
817
893
  // src/theme-default/assets/arrow-right.svg
818
- import { jsx as _jsx7 } from "react/jsx-runtime";
894
+ import { jsx as _jsx8 } from "react/jsx-runtime";
819
895
  import * as React from "react";
820
896
  function _define_property3(obj, key, value) {
821
897
  if (key in obj) {
@@ -869,12 +945,12 @@ function _object_spread_props2(target, source) {
869
945
  }
870
946
  return target;
871
947
  }
872
- var SvgArrowRight = (props) => /* @__PURE__ */ _jsx7("svg", _object_spread_props2(_object_spread3({
948
+ var SvgArrowRight = (props) => /* @__PURE__ */ _jsx8("svg", _object_spread_props2(_object_spread3({
873
949
  width: "1em",
874
950
  height: "1em",
875
951
  viewBox: "0 0 32 32"
876
952
  }, props), {
877
- children: /* @__PURE__ */ _jsx7("path", {
953
+ children: /* @__PURE__ */ _jsx8("path", {
878
954
  fill: "currentColor",
879
955
  d: "M22 16 12 26l-1.4-1.4 8.6-8.6-8.6-8.6L12 6z"
880
956
  })
@@ -882,7 +958,7 @@ var SvgArrowRight = (props) => /* @__PURE__ */ _jsx7("svg", _object_spread_props
882
958
  var arrow_right_default = SvgArrowRight;
883
959
 
884
960
  // src/theme-default/components/Sidebar/SidebarGroup.tsx
885
- import { normalizeHrefInRuntime as normalizeHref4, withBase as withBase5 } from "@/runtime";
961
+ import { normalizeHrefInRuntime as normalizeHref4, withBase as withBase6 } from "@/runtime";
886
962
  function _define_property4(obj, key, value) {
887
963
  if (key in obj) {
888
964
  Object.defineProperty(obj, key, {
@@ -947,15 +1023,15 @@ function SidebarGroup(props) {
947
1023
  const initialState = useRef2(item.collapsed);
948
1024
  const active = item.link && activeMatcher(item.link);
949
1025
  const { collapsed, collapsible = true } = item;
950
- const collapsibleIcon = /* @__PURE__ */ _jsx8("div", {
1026
+ const collapsibleIcon = /* @__PURE__ */ _jsx9("div", {
951
1027
  style: {
952
1028
  cursor: "pointer",
953
1029
  transition: "transform 0.2s ease-out",
954
1030
  transform: collapsed ? "rotate(0deg)" : "rotate(90deg)"
955
1031
  },
956
- children: /* @__PURE__ */ _jsx8(arrow_right_default, {})
1032
+ children: /* @__PURE__ */ _jsx9(arrow_right_default, {})
957
1033
  });
958
- useEffect3(() => {
1034
+ useEffect5(() => {
959
1035
  if (initialRender.current) {
960
1036
  return;
961
1037
  }
@@ -990,7 +1066,7 @@ function SidebarGroup(props) {
990
1066
  }, [
991
1067
  collapsed
992
1068
  ]);
993
- useEffect3(() => {
1069
+ useEffect5(() => {
994
1070
  initialRender.current = false;
995
1071
  }, []);
996
1072
  const toggleCollapse = (e) => {
@@ -1019,12 +1095,12 @@ function SidebarGroup(props) {
1019
1095
  },
1020
1096
  children: [
1021
1097
  /* @__PURE__ */ _jsxs4("div", {
1022
- className: `flex justify-between items-center ${isGroupMatched && !active ? index_module_default4.menuGroupActive : ""} ${// eslint-disable-next-line no-nested-ternary
1023
- active ? index_module_default4.menuItemActive : collapsible || item.link ? index_module_default4.menuItem : index_module_default4.menuItemStatic}`,
1098
+ className: `flex justify-between items-center ${isGroupMatched && !active ? index_module_default5.menuGroupActive : ""} ${// eslint-disable-next-line no-nested-ternary
1099
+ active ? index_module_default5.menuItemActive : collapsible || item.link ? index_module_default5.menuItem : index_module_default5.menuItemStatic}`,
1024
1100
  onMouseEnter: () => item.link && props.preloadLink(item.link),
1025
1101
  onClick: (e) => {
1026
1102
  if (item.link) {
1027
- navigate(withBase5(normalizeHref4(item.link)));
1103
+ navigate(withBase6(normalizeHref4(item.link)));
1028
1104
  collapsed && toggleCollapse(e);
1029
1105
  } else {
1030
1106
  collapsible && toggleCollapse(e);
@@ -1036,30 +1112,30 @@ function SidebarGroup(props) {
1036
1112
  },
1037
1113
  children: [
1038
1114
  /* @__PURE__ */ _jsxs4("h2", {
1039
- className: "py-2.5 px-3 text-sm font-medium flex",
1115
+ className: "py-2 px-3 text-sm font-medium flex",
1040
1116
  style: _object_spread4({}, depth === 0 ? highlightTitleStyle : {}),
1041
1117
  children: [
1042
- /* @__PURE__ */ _jsx8(Tag, {
1118
+ /* @__PURE__ */ _jsx9(Tag, {
1043
1119
  tag: item.tag
1044
1120
  }),
1045
1121
  item.text
1046
1122
  ]
1047
1123
  }),
1048
- collapsible && /* @__PURE__ */ _jsx8("div", {
1049
- className: `${index_module_default4.collapseContainer} p-2 rounded-xl`,
1124
+ collapsible && /* @__PURE__ */ _jsx9("div", {
1125
+ className: `${index_module_default5.collapseContainer} p-2 rounded-xl`,
1050
1126
  onClick: toggleCollapse,
1051
1127
  children: collapsibleIcon
1052
1128
  })
1053
1129
  ]
1054
1130
  }),
1055
- /* @__PURE__ */ _jsx8("div", {
1131
+ /* @__PURE__ */ _jsx9("div", {
1056
1132
  ref: containerRef,
1057
1133
  className: "transition-all duration-300 ease-in-out",
1058
1134
  style: {
1059
1135
  overflow: "hidden",
1060
1136
  maxHeight: initialState.current ? 0 : void 0
1061
1137
  },
1062
- children: /* @__PURE__ */ _jsx8("div", {
1138
+ children: /* @__PURE__ */ _jsx9("div", {
1063
1139
  ref: innerRef,
1064
1140
  className: "rspress-sidebar-group transition-opacity duration-500 ease-in-out",
1065
1141
  style: {
@@ -1068,8 +1144,8 @@ function SidebarGroup(props) {
1068
1144
  },
1069
1145
  children: item === null || item === void 0 ? void 0 : (_item_items = item.items) === null || _item_items === void 0 ? void 0 : _item_items.map((item2, index) => (
1070
1146
  // eslint-disable-next-line react/no-array-index-key
1071
- /* @__PURE__ */ _jsx8("div", {
1072
- children: /* @__PURE__ */ _jsx8(SidebarItem, _object_spread_props3(_object_spread4({}, props), {
1147
+ /* @__PURE__ */ _jsx9("div", {
1148
+ children: /* @__PURE__ */ _jsx9(SidebarItem, _object_spread_props3(_object_spread4({}, props), {
1073
1149
  item: item2,
1074
1150
  depth: depth + 1,
1075
1151
  id: `${id}-${index}`,
@@ -1117,7 +1193,7 @@ function SidebarItem(props) {
1117
1193
  const { item, depth = 0, activeMatcher, id, setSidebarData } = props;
1118
1194
  const active = item.link && activeMatcher(item.link);
1119
1195
  const ref = useRef3(null);
1120
- useEffect4(() => {
1196
+ useEffect6(() => {
1121
1197
  if (active) {
1122
1198
  var _ref_current;
1123
1199
  (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.scrollIntoView({
@@ -1127,7 +1203,7 @@ function SidebarItem(props) {
1127
1203
  }, []);
1128
1204
  const { text } = item;
1129
1205
  if ("items" in item) {
1130
- return /* @__PURE__ */ _jsx9(SidebarGroup, {
1206
+ return /* @__PURE__ */ _jsx10(SidebarGroup, {
1131
1207
  id,
1132
1208
  item,
1133
1209
  depth,
@@ -1137,13 +1213,13 @@ function SidebarItem(props) {
1137
1213
  preloadLink: props.preloadLink
1138
1214
  }, `${item.text}-${id}`);
1139
1215
  } else {
1140
- return /* @__PURE__ */ _jsx9(Link, {
1216
+ return /* @__PURE__ */ _jsx10(Link, {
1141
1217
  href: normalizeHref5(item.link),
1142
- className: index_module_default4.menuLink,
1218
+ className: index_module_default5.menuLink,
1143
1219
  children: /* @__PURE__ */ _jsxs5("div", {
1144
1220
  ref,
1145
1221
  onMouseEnter: () => props.preloadLink(item.link),
1146
- className: `${active ? index_module_default4.menuItemActive : index_module_default4.menuItem} mt-0.5 py-2 px-3 font-medium flex`,
1222
+ className: `${active ? index_module_default5.menuItemActive : index_module_default5.menuItem} mt-0.5 py-2 px-3 font-medium flex`,
1147
1223
  style: _object_spread5({
1148
1224
  // The first level menu item will have the same font size as the sidebar group
1149
1225
  fontSize: depth === 0 ? "14px" : "13px",
@@ -1153,7 +1229,7 @@ function SidebarItem(props) {
1153
1229
  color: "var(--rp-c-brand)"
1154
1230
  } : {}),
1155
1231
  children: [
1156
- /* @__PURE__ */ _jsx9(Tag, {
1232
+ /* @__PURE__ */ _jsx10(Tag, {
1157
1233
  tag: item.tag
1158
1234
  }),
1159
1235
  text
@@ -1164,35 +1240,7 @@ function SidebarItem(props) {
1164
1240
  }
1165
1241
 
1166
1242
  // src/theme-default/components/Sidebar/index.tsx
1167
- import { removeBase as removeBase2, usePageData as usePageData6 } from "@/runtime";
1168
- function _define_property6(obj, key, value) {
1169
- if (key in obj) {
1170
- Object.defineProperty(obj, key, {
1171
- value,
1172
- enumerable: true,
1173
- configurable: true,
1174
- writable: true
1175
- });
1176
- } else {
1177
- obj[key] = value;
1178
- }
1179
- return obj;
1180
- }
1181
- function _object_spread6(target) {
1182
- for (var i = 1; i < arguments.length; i++) {
1183
- var source = arguments[i] != null ? arguments[i] : {};
1184
- var ownKeys36 = Object.keys(source);
1185
- if (typeof Object.getOwnPropertySymbols === "function") {
1186
- ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1187
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1188
- }));
1189
- }
1190
- ownKeys36.forEach(function(key) {
1191
- _define_property6(target, key, source[key]);
1192
- });
1193
- }
1194
- return target;
1195
- }
1243
+ import { matchRoutes as matchRoutes2, useLocation as useLocation5, removeBase as removeBase2 } from "@/runtime";
1196
1244
  var highlightTitleStyle = {
1197
1245
  color: "var(--rp-c-text-1)",
1198
1246
  fontSize: "14px",
@@ -1201,14 +1249,16 @@ var highlightTitleStyle = {
1201
1249
  };
1202
1250
  var matchCache = /* @__PURE__ */ new WeakMap();
1203
1251
  function SideBar(props) {
1204
- const { isSidebarOpen, langRoutePrefix, pathname: rawPathname, sidebarData: rawSidebarData } = props;
1205
- const { siteData: { themeConfig }, page: { frontmatter } } = usePageData6();
1206
- var _frontmatter_hideNavbar, _ref;
1207
- const hideNavbar = (_ref = (_frontmatter_hideNavbar = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.hideNavbar) !== null && _frontmatter_hideNavbar !== void 0 ? _frontmatter_hideNavbar : themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.hideNavbar) !== null && _ref !== void 0 ? _ref : false;
1208
- const [sidebarData, setSidebarData] = useState2(rawSidebarData.filter(Boolean).flat());
1252
+ const { isSidebarOpen } = props;
1253
+ const { items: rawSidebarData } = useSidebarData();
1254
+ const localesData = useLocaleSiteData();
1255
+ const { pathname: rawPathname } = useLocation5();
1256
+ const langRoutePrefix = normalizeSlash(localesData.langRoutePrefix || "");
1257
+ const hideNavbar = useDisableNav();
1258
+ const [sidebarData, setSidebarData] = useState4(rawSidebarData.filter(Boolean).flat());
1209
1259
  const pathname = decodeURIComponent(rawPathname);
1210
- useEffect5(() => {
1211
- if (props.sidebarData === sidebarData) {
1260
+ useEffect7(() => {
1261
+ if (rawSidebarData === sidebarData) {
1212
1262
  return;
1213
1263
  }
1214
1264
  matchCache = /* @__PURE__ */ new WeakMap();
@@ -1238,11 +1288,11 @@ function SideBar(props) {
1238
1288
  }
1239
1289
  }
1240
1290
  };
1241
- const newSidebarData = props.sidebarData.filter(Boolean).flat();
1291
+ const newSidebarData = rawSidebarData.filter(Boolean).flat();
1242
1292
  newSidebarData.forEach(traverse);
1243
1293
  setSidebarData(newSidebarData);
1244
1294
  }, [
1245
- props.sidebarData,
1295
+ rawSidebarData,
1246
1296
  pathname
1247
1297
  ]);
1248
1298
  const removeLangPrefix = (path) => {
@@ -1257,40 +1307,43 @@ function SideBar(props) {
1257
1307
  }
1258
1308
  };
1259
1309
  var _item_collapsed;
1260
- return /* @__PURE__ */ _jsx10("aside", {
1261
- className: `${index_module_default4.sidebar} rspress-sidebar ${isSidebarOpen ? index_module_default4.open : ""}`,
1262
- style: _object_spread6({}, hideNavbar ? {
1263
- marginTop: 0
1264
- } : {}),
1265
- children: /* @__PURE__ */ _jsx10("div", {
1266
- className: `mt-1 ${index_module_default4.sidebarContent}`,
1267
- children: /* @__PURE__ */ _jsx10("div", {
1268
- className: "rspress-scrollbar",
1269
- style: {
1270
- maxHeight: "calc(100vh - var(--rp-nav-height) - 8px)",
1271
- overflow: "scroll"
1272
- },
1273
- children: /* @__PURE__ */ _jsx10("nav", {
1274
- className: "pb-2",
1275
- children: sidebarData.map((item, index) => /* @__PURE__ */ _jsx10(SidebarItem, {
1276
- id: String(index),
1277
- item,
1278
- depth: 0,
1279
- activeMatcher,
1280
- collapsed: (_item_collapsed = item.collapsed) !== null && _item_collapsed !== void 0 ? _item_collapsed : true,
1281
- setSidebarData,
1282
- preloadLink
1283
- }, index))
1310
+ return /* @__PURE__ */ _jsxs6("aside", {
1311
+ className: `${index_module_default5.sidebar} rspress-sidebar ${isSidebarOpen ? index_module_default5.open : ""}`,
1312
+ children: [
1313
+ hideNavbar ? null : /* @__PURE__ */ _jsx11("div", {
1314
+ className: index_module_default5.navTitleMask,
1315
+ children: /* @__PURE__ */ _jsx11(NavBarTitle, {})
1316
+ }),
1317
+ /* @__PURE__ */ _jsx11("div", {
1318
+ className: `mt-1 ${index_module_default5.sidebarContent}`,
1319
+ children: /* @__PURE__ */ _jsx11("div", {
1320
+ className: "rspress-scrollbar",
1321
+ style: {
1322
+ maxHeight: "calc(100vh - var(--rp-nav-height) - 8px)",
1323
+ overflow: "scroll"
1324
+ },
1325
+ children: /* @__PURE__ */ _jsx11("nav", {
1326
+ className: "pb-2",
1327
+ children: sidebarData.map((item, index) => /* @__PURE__ */ _jsx11(SidebarItem, {
1328
+ id: String(index),
1329
+ item,
1330
+ depth: 0,
1331
+ activeMatcher,
1332
+ collapsed: (_item_collapsed = item.collapsed) !== null && _item_collapsed !== void 0 ? _item_collapsed : true,
1333
+ setSidebarData,
1334
+ preloadLink
1335
+ }, index))
1336
+ })
1284
1337
  })
1285
1338
  })
1286
- })
1339
+ ]
1287
1340
  });
1288
1341
  }
1289
1342
 
1290
1343
  // src/theme-default/assets/menu.svg
1291
- import { jsx as _jsx11 } from "react/jsx-runtime";
1344
+ import { jsx as _jsx12 } from "react/jsx-runtime";
1292
1345
  import * as React4 from "react";
1293
- function _define_property7(obj, key, value) {
1346
+ function _define_property6(obj, key, value) {
1294
1347
  if (key in obj) {
1295
1348
  Object.defineProperty(obj, key, {
1296
1349
  value,
@@ -1303,7 +1356,7 @@ function _define_property7(obj, key, value) {
1303
1356
  }
1304
1357
  return obj;
1305
1358
  }
1306
- function _object_spread7(target) {
1359
+ function _object_spread6(target) {
1307
1360
  for (var i = 1; i < arguments.length; i++) {
1308
1361
  var source = arguments[i] != null ? arguments[i] : {};
1309
1362
  var ownKeys36 = Object.keys(source);
@@ -1313,7 +1366,7 @@ function _object_spread7(target) {
1313
1366
  }));
1314
1367
  }
1315
1368
  ownKeys36.forEach(function(key) {
1316
- _define_property7(target, key, source[key]);
1369
+ _define_property6(target, key, source[key]);
1317
1370
  });
1318
1371
  }
1319
1372
  return target;
@@ -1342,12 +1395,12 @@ function _object_spread_props4(target, source) {
1342
1395
  }
1343
1396
  return target;
1344
1397
  }
1345
- var SvgMenu = (props) => /* @__PURE__ */ _jsx11("svg", _object_spread_props4(_object_spread7({
1398
+ var SvgMenu = (props) => /* @__PURE__ */ _jsx12("svg", _object_spread_props4(_object_spread6({
1346
1399
  width: "1em",
1347
1400
  height: "1em",
1348
1401
  viewBox: "0 0 32 32"
1349
1402
  }, props), {
1350
- children: /* @__PURE__ */ _jsx11("path", {
1403
+ children: /* @__PURE__ */ _jsx12("path", {
1351
1404
  fill: "currentColor",
1352
1405
  d: "M4 6h24v2H4zm0 18h24v2H4zm0-12h24v2H4zm0 6h24v2H4z"
1353
1406
  })
@@ -1355,46 +1408,44 @@ var SvgMenu = (props) => /* @__PURE__ */ _jsx11("svg", _object_spread_props4(_ob
1355
1408
  var menu_default = SvgMenu;
1356
1409
 
1357
1410
  // src/theme-default/components/LocalSideBar/index.tsx
1358
- function SideMenu(props) {
1359
- const { langRoutePrefix, pathname, sidebarData } = props;
1360
- const [isSidebarOpen, setIsOpen] = useState3(false);
1411
+ import { useLocation as useLocation6 } from "@/runtime";
1412
+ function SideMenu() {
1413
+ const [isSidebarOpen, setIsOpen] = useState5(false);
1414
+ const { pathname } = useLocation6();
1361
1415
  function openSidebar() {
1362
1416
  setIsOpen(true);
1363
1417
  }
1364
1418
  function closeSidebar() {
1365
1419
  setIsOpen(false);
1366
1420
  }
1367
- useEffect6(() => {
1421
+ useEffect8(() => {
1368
1422
  setIsOpen(false);
1369
1423
  }, [
1370
1424
  pathname
1371
1425
  ]);
1372
- return /* @__PURE__ */ _jsxs6(Fragment, {
1426
+ return /* @__PURE__ */ _jsxs7(Fragment, {
1373
1427
  children: [
1374
- /* @__PURE__ */ _jsx12("div", {
1428
+ /* @__PURE__ */ _jsx13("div", {
1375
1429
  className: "rspress-sidebar-menu",
1376
- children: /* @__PURE__ */ _jsxs6("button", {
1430
+ children: /* @__PURE__ */ _jsxs7("button", {
1377
1431
  onClick: openSidebar,
1378
1432
  className: "flex-center",
1379
1433
  children: [
1380
- /* @__PURE__ */ _jsx12("div", {
1434
+ /* @__PURE__ */ _jsx13("div", {
1381
1435
  className: "text-md mr-2",
1382
- children: /* @__PURE__ */ _jsx12(menu_default, {})
1436
+ children: /* @__PURE__ */ _jsx13(menu_default, {})
1383
1437
  }),
1384
- /* @__PURE__ */ _jsx12("span", {
1438
+ /* @__PURE__ */ _jsx13("span", {
1385
1439
  className: "text-sm",
1386
1440
  children: "Menu"
1387
1441
  })
1388
1442
  ]
1389
1443
  })
1390
1444
  }),
1391
- /* @__PURE__ */ _jsx12(SideBar, {
1392
- langRoutePrefix,
1393
- pathname,
1394
- sidebarData,
1445
+ /* @__PURE__ */ _jsx13(SideBar, {
1395
1446
  isSidebarOpen
1396
1447
  }),
1397
- isSidebarOpen ? /* @__PURE__ */ _jsx12("div", {
1448
+ isSidebarOpen ? /* @__PURE__ */ _jsx13("div", {
1398
1449
  onClick: closeSidebar,
1399
1450
  className: "rspress-sidebar-back-drop"
1400
1451
  }) : null
@@ -1403,15 +1454,15 @@ function SideMenu(props) {
1403
1454
  }
1404
1455
 
1405
1456
  // src/theme-default/components/Overview/index.tsx
1406
- import { jsx as _jsx13, jsxs as _jsxs7 } from "react/jsx-runtime";
1457
+ import { jsx as _jsx14, jsxs as _jsxs8 } from "react/jsx-runtime";
1407
1458
  import { useMemo } from "react";
1408
1459
 
1409
1460
  // src/theme-default/components/Overview/index.module.scss
1410
- var index_module_default5 = { "header-anchor": "header-anchor_90d29", "headerAnchor": "header-anchor_90d29", "overview-groups": "overview-groups_90d29", "overviewGroups": "overview-groups_90d29", "overview-group-li": "overview-group-li_90d29", "overviewGroupLi": "overview-group-li_90d29", "level-2": "level-2_90d29", "level2": "level-2_90d29", "overview-group": "overview-group_90d29", "overviewGroup": "overview-group_90d29", "header": "header_90d29" };
1461
+ var index_module_default6 = { "header-anchor": "header-anchor_90d29", "headerAnchor": "header-anchor_90d29", "overview-groups": "overview-groups_90d29", "overviewGroups": "overview-groups_90d29", "overview-group-li": "overview-group-li_90d29", "overviewGroupLi": "overview-group-li_90d29", "level-2": "level-2_90d29", "level2": "level-2_90d29", "overview-group": "overview-group_90d29", "overviewGroup": "overview-group_90d29", "header": "header_90d29" };
1411
1462
 
1412
1463
  // src/theme-default/components/Overview/index.tsx
1413
- import { usePageData as usePageData7, normalizeHrefInRuntime as normalizeHref6, withBase as withBase6, isEqualPath as isEqualPath4 } from "@/runtime";
1414
- function _define_property8(obj, key, value) {
1464
+ import { usePageData as usePageData8, normalizeHrefInRuntime as normalizeHref6, withBase as withBase7, isEqualPath as isEqualPath4 } from "@/runtime";
1465
+ function _define_property7(obj, key, value) {
1415
1466
  if (key in obj) {
1416
1467
  Object.defineProperty(obj, key, {
1417
1468
  value,
@@ -1424,7 +1475,7 @@ function _define_property8(obj, key, value) {
1424
1475
  }
1425
1476
  return obj;
1426
1477
  }
1427
- function _object_spread8(target) {
1478
+ function _object_spread7(target) {
1428
1479
  for (var i = 1; i < arguments.length; i++) {
1429
1480
  var source = arguments[i] != null ? arguments[i] : {};
1430
1481
  var ownKeys36 = Object.keys(source);
@@ -1434,7 +1485,7 @@ function _object_spread8(target) {
1434
1485
  }));
1435
1486
  }
1436
1487
  ownKeys36.forEach(function(key) {
1437
- _define_property8(target, key, source[key]);
1488
+ _define_property7(target, key, source[key]);
1438
1489
  });
1439
1490
  }
1440
1491
  return target;
@@ -1465,13 +1516,13 @@ function _object_spread_props5(target, source) {
1465
1516
  }
1466
1517
  var DEFAULT_GROUP = "Others";
1467
1518
  function Overview() {
1468
- const { siteData: siteData2, page: { routePath } } = usePageData7();
1519
+ const { siteData: siteData2, page: { routePath } } = usePageData8();
1469
1520
  const { pages } = siteData2;
1470
1521
  const overviewModules = pages.filter((page) => page.routePath.startsWith(routePath.replace(/overview$/, "")) && page.routePath !== routePath);
1471
1522
  const { items: overviewSidebarGroups } = useSidebarData();
1472
1523
  function normalizeSidebarItem(item) {
1473
1524
  var _pageModule_toc;
1474
- const pageModule = overviewModules.find((m) => isEqualPath4(m.routePath, withBase6(item.link || "")));
1525
+ const pageModule = overviewModules.find((m) => isEqualPath4(m.routePath, withBase7(item.link || "")));
1475
1526
  const getChildLink = (traverseItem) => {
1476
1527
  if (traverseItem.link) {
1477
1528
  return traverseItem.link;
@@ -1482,7 +1533,7 @@ function Overview() {
1482
1533
  return "";
1483
1534
  };
1484
1535
  const link = getChildLink(item);
1485
- return _object_spread_props5(_object_spread8({}, item), {
1536
+ return _object_spread_props5(_object_spread7({}, item), {
1486
1537
  link,
1487
1538
  headers: (pageModule === null || pageModule === void 0 ? void 0 : (_pageModule_toc = pageModule.toc) === null || _pageModule_toc === void 0 ? void 0 : _pageModule_toc.filter((header) => header.depth === 2)) || []
1488
1539
  });
@@ -1505,49 +1556,49 @@ function Overview() {
1505
1556
  }, [
1506
1557
  overviewSidebarGroups
1507
1558
  ]);
1508
- return /* @__PURE__ */ _jsxs7("div", {
1559
+ return /* @__PURE__ */ _jsxs8("div", {
1509
1560
  className: "overview-index mx-auto px-8",
1510
1561
  children: [
1511
- /* @__PURE__ */ _jsx13("div", {
1562
+ /* @__PURE__ */ _jsx14("div", {
1512
1563
  className: "flex items-center justify-between",
1513
- children: /* @__PURE__ */ _jsx13("h1", {
1564
+ children: /* @__PURE__ */ _jsx14("h1", {
1514
1565
  children: "Overview"
1515
1566
  })
1516
1567
  }),
1517
- groups.map((group) => /* @__PURE__ */ _jsxs7("div", {
1568
+ groups.map((group) => /* @__PURE__ */ _jsxs8("div", {
1518
1569
  className: "mb-16",
1519
1570
  children: [
1520
- group.name === DEFAULT_GROUP && groups.length === 1 ? /* @__PURE__ */ _jsx13("h2", {
1571
+ group.name === DEFAULT_GROUP && groups.length === 1 ? /* @__PURE__ */ _jsx14("h2", {
1521
1572
  style: {
1522
1573
  paddingTop: 0
1523
1574
  }
1524
- }) : /* @__PURE__ */ _jsx13("h2", {
1575
+ }) : /* @__PURE__ */ _jsx14("h2", {
1525
1576
  children: group.name
1526
1577
  }),
1527
- /* @__PURE__ */ _jsx13("div", {
1528
- className: index_module_default5.overviewGroups,
1578
+ /* @__PURE__ */ _jsx14("div", {
1579
+ className: index_module_default6.overviewGroups,
1529
1580
  children: group.items.map((item) => {
1530
1581
  var _item_headers;
1531
- return /* @__PURE__ */ _jsxs7("div", {
1532
- className: index_module_default5.overviewGroup,
1582
+ return /* @__PURE__ */ _jsxs8("div", {
1583
+ className: index_module_default6.overviewGroup,
1533
1584
  children: [
1534
- /* @__PURE__ */ _jsx13("div", {
1585
+ /* @__PURE__ */ _jsx14("div", {
1535
1586
  className: "flex",
1536
- children: /* @__PURE__ */ _jsx13("h3", {
1587
+ children: /* @__PURE__ */ _jsx14("h3", {
1537
1588
  style: {
1538
1589
  marginBottom: 8
1539
1590
  },
1540
- children: /* @__PURE__ */ _jsx13(Link, {
1591
+ children: /* @__PURE__ */ _jsx14(Link, {
1541
1592
  href: normalizeHref6(item.link),
1542
1593
  children: item.text
1543
1594
  })
1544
1595
  })
1545
1596
  }),
1546
- /* @__PURE__ */ _jsx13("ul", {
1597
+ /* @__PURE__ */ _jsx14("ul", {
1547
1598
  className: "list-none",
1548
- children: (_item_headers = item.headers) === null || _item_headers === void 0 ? void 0 : _item_headers.map((header) => /* @__PURE__ */ _jsx13("li", {
1549
- className: `${index_module_default5.overviewGroupLi} ${index_module_default5[`level${header.depth}`]} first:mt-2`,
1550
- children: /* @__PURE__ */ _jsx13(Link, {
1599
+ children: (_item_headers = item.headers) === null || _item_headers === void 0 ? void 0 : _item_headers.map((header) => /* @__PURE__ */ _jsx14("li", {
1600
+ className: `${index_module_default6.overviewGroupLi} ${index_module_default6[`level${header.depth}`]} first:mt-2`,
1601
+ children: /* @__PURE__ */ _jsx14(Link, {
1551
1602
  href: `${normalizeHref6(item.link)}#${header.id}`,
1552
1603
  children: header.text
1553
1604
  })
@@ -1568,11 +1619,11 @@ import { createContext } from "react";
1568
1619
  var TabDataContext = createContext({});
1569
1620
 
1570
1621
  // src/theme-default/layout/DocLayout/index.module.scss
1571
- var index_module_default6 = { "aside-container": "aside-container_feeda", "asideContainer": "aside-container_feeda", "fade-out": "fade-out_feeda", "fadeOut": "fade-out_feeda", "fade-in": "fade-in_feeda", "fadeIn": "fade-in_feeda", "docLayout": "docLayout_feeda", "content": "content_feeda" };
1622
+ var index_module_default7 = { "aside-container": "aside-container_feeda", "asideContainer": "aside-container_feeda", "fade-out": "fade-out_feeda", "fadeOut": "fade-out_feeda", "fade-in": "fade-in_feeda", "fadeIn": "fade-in_feeda", "docLayout": "docLayout_feeda", "content": "content_feeda" };
1572
1623
 
1573
1624
  // src/theme-default/layout/DocLayout/index.tsx
1574
- import { Content, usePageData as usePageData8, normalizeSlash } from "@/runtime";
1575
- function _define_property9(obj, key, value) {
1625
+ import { Content, usePageData as usePageData9 } from "@/runtime";
1626
+ function _define_property8(obj, key, value) {
1576
1627
  if (key in obj) {
1577
1628
  Object.defineProperty(obj, key, {
1578
1629
  value,
@@ -1585,7 +1636,7 @@ function _define_property9(obj, key, value) {
1585
1636
  }
1586
1637
  return obj;
1587
1638
  }
1588
- function _object_spread9(target) {
1639
+ function _object_spread8(target) {
1589
1640
  for (var i = 1; i < arguments.length; i++) {
1590
1641
  var source = arguments[i] != null ? arguments[i] : {};
1591
1642
  var ownKeys36 = Object.keys(source);
@@ -1595,25 +1646,21 @@ function _object_spread9(target) {
1595
1646
  }));
1596
1647
  }
1597
1648
  ownKeys36.forEach(function(key) {
1598
- _define_property9(target, key, source[key]);
1649
+ _define_property8(target, key, source[key]);
1599
1650
  });
1600
1651
  }
1601
1652
  return target;
1602
1653
  }
1603
1654
  function DocLayout(props) {
1604
1655
  const { beforeDocFooter, beforeDoc, afterDoc, beforeOutline, afterOutline } = props;
1605
- const { siteData: siteData2, page } = usePageData8();
1656
+ const { siteData: siteData2, page } = usePageData9();
1606
1657
  const { toc = [], frontmatter } = page;
1607
- const [tabData, setTabData] = useState4({});
1658
+ const [tabData, setTabData] = useState6({});
1608
1659
  const headers = toc;
1609
1660
  const { themeConfig } = siteData2;
1610
1661
  const localesData = useLocaleSiteData();
1611
1662
  const sidebar = localesData.sidebar || {};
1612
- const { pathname } = useLocation4();
1613
- const { items: sidebarData } = useSidebarData();
1614
- const langRoutePrefix = normalizeSlash(localesData.langRoutePrefix || "");
1615
- var _frontmatter_hideNavbar, _ref;
1616
- const hideNavbar = (_ref = (_frontmatter_hideNavbar = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.hideNavbar) !== null && _frontmatter_hideNavbar !== void 0 ? _frontmatter_hideNavbar : themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.hideNavbar) !== null && _ref !== void 0 ? _ref : false;
1663
+ const disableNavbar = useDisableNav();
1617
1664
  const hasSidebar = (frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.sidebar) !== false && Object.keys(sidebar).length > 0;
1618
1665
  const outlineTitle = (localesData === null || localesData === void 0 ? void 0 : localesData.outlineTitle) || (themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.outlineTitle) || "ON THIS PAGE";
1619
1666
  var _frontmatter_overview;
@@ -1622,71 +1669,64 @@ function DocLayout(props) {
1622
1669
  const hasFooter = (_frontmatter_footer = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.footer) !== null && _frontmatter_footer !== void 0 ? _frontmatter_footer : true;
1623
1670
  const getHasAside = () => {
1624
1671
  const defaultHasAside = typeof window === "undefined" ? true : window.top === window.self;
1625
- var _frontmatter_outline, _ref2;
1626
- return ((_ref2 = (_frontmatter_outline = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.outline) !== null && _frontmatter_outline !== void 0 ? _frontmatter_outline : themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.outline) !== null && _ref2 !== void 0 ? _ref2 : defaultHasAside) && headers.length > 0;
1672
+ var _frontmatter_outline, _ref;
1673
+ return ((_ref = (_frontmatter_outline = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.outline) !== null && _frontmatter_outline !== void 0 ? _frontmatter_outline : themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.outline) !== null && _ref !== void 0 ? _ref : defaultHasAside) && headers.length > 0;
1627
1674
  };
1628
- const [hasAside, setHasAside] = useState4(getHasAside());
1629
- useEffect7(() => {
1675
+ const [hasAside, setHasAside] = useState6(getHasAside());
1676
+ useEffect9(() => {
1630
1677
  setHasAside(getHasAside());
1631
1678
  }, [
1632
1679
  page,
1633
1680
  siteData2
1634
1681
  ]);
1635
- return /* @__PURE__ */ _jsxs8("div", {
1636
- className: `${index_module_default6.docLayout} pt-0`,
1637
- style: _object_spread9({}, hideNavbar ? {
1682
+ return /* @__PURE__ */ _jsxs9("div", {
1683
+ className: `${index_module_default7.docLayout} pt-0`,
1684
+ style: _object_spread8({}, disableNavbar ? {
1638
1685
  marginTop: 0
1639
1686
  } : {}),
1640
1687
  children: [
1641
1688
  beforeDoc,
1642
- hasSidebar ? /* @__PURE__ */ _jsx14(SideMenu, {
1643
- pathname,
1644
- langRoutePrefix,
1645
- sidebarData
1646
- }) : null,
1647
- /* @__PURE__ */ _jsxs8("div", {
1648
- className: `${index_module_default6.content} rspress-doc-container flex flex-shrink-0`,
1689
+ hasSidebar ? /* @__PURE__ */ _jsx15(SideMenu, {}) : null,
1690
+ /* @__PURE__ */ _jsxs9("div", {
1691
+ className: `${index_module_default7.content} rspress-doc-container flex flex-shrink-0`,
1649
1692
  children: [
1650
- /* @__PURE__ */ _jsx14("div", {
1693
+ /* @__PURE__ */ _jsx15("div", {
1651
1694
  className: "w-full",
1652
- children: isOverviewPage ? /* @__PURE__ */ _jsx14(Overview, {}) : /* @__PURE__ */ _jsxs8("div", {
1695
+ children: isOverviewPage ? /* @__PURE__ */ _jsx15(Overview, {}) : /* @__PURE__ */ _jsxs9("div", {
1653
1696
  children: [
1654
- /* @__PURE__ */ _jsx14("div", {
1697
+ /* @__PURE__ */ _jsx15("div", {
1655
1698
  className: "rspress-doc",
1656
- children: /* @__PURE__ */ _jsx14(TabDataContext.Provider, {
1699
+ children: /* @__PURE__ */ _jsx15(TabDataContext.Provider, {
1657
1700
  value: {
1658
1701
  tabData,
1659
1702
  setTabData
1660
1703
  },
1661
- children: /* @__PURE__ */ _jsx14(MDXProvider, {
1704
+ children: /* @__PURE__ */ _jsx15(MDXProvider, {
1662
1705
  components: getCustomMDXComponent(),
1663
- children: /* @__PURE__ */ _jsx14(Content, {})
1706
+ children: /* @__PURE__ */ _jsx15(Content, {})
1664
1707
  })
1665
1708
  })
1666
1709
  }),
1667
- /* @__PURE__ */ _jsxs8("div", {
1710
+ /* @__PURE__ */ _jsxs9("div", {
1668
1711
  className: "rspress-doc-footer",
1669
1712
  children: [
1670
1713
  beforeDocFooter,
1671
- hasFooter && /* @__PURE__ */ _jsx14(DocFooter, {})
1714
+ hasFooter && /* @__PURE__ */ _jsx15(DocFooter, {})
1672
1715
  ]
1673
1716
  })
1674
1717
  ]
1675
1718
  })
1676
1719
  }),
1677
- hasAside ? /* @__PURE__ */ _jsx14("div", {
1678
- className: index_module_default6.asideContainer,
1679
- style: _object_spread9({
1680
- maxHeight: "calc(100vh - (var(--rp-nav-height) + 32px))",
1681
- overflow: "scroll"
1682
- }, hideNavbar ? {
1720
+ hasAside ? /* @__PURE__ */ _jsx15("div", {
1721
+ className: index_module_default7.asideContainer,
1722
+ style: _object_spread8({}, disableNavbar ? {
1683
1723
  marginTop: 0,
1684
1724
  paddingTop: "32px"
1685
1725
  } : {}),
1686
- children: /* @__PURE__ */ _jsxs8("div", {
1726
+ children: /* @__PURE__ */ _jsxs9("div", {
1687
1727
  children: [
1688
1728
  beforeOutline,
1689
- /* @__PURE__ */ _jsx14(Aside, {
1729
+ /* @__PURE__ */ _jsx15(Aside, {
1690
1730
  headers,
1691
1731
  outlineTitle
1692
1732
  }),
@@ -1702,8 +1742,8 @@ function DocLayout(props) {
1702
1742
  }
1703
1743
 
1704
1744
  // src/theme-default/layout/Layout/index.tsx
1705
- import { usePageData as usePageData9, Content as Content2, removeBase as removeBase3, withBase as withBase7 } from "@/runtime";
1706
- function _define_property10(obj, key, value) {
1745
+ import { usePageData as usePageData10, Content as Content2, removeBase as removeBase3, withBase as withBase8 } from "@/runtime";
1746
+ function _define_property9(obj, key, value) {
1707
1747
  if (key in obj) {
1708
1748
  Object.defineProperty(obj, key, {
1709
1749
  value,
@@ -1716,7 +1756,7 @@ function _define_property10(obj, key, value) {
1716
1756
  }
1717
1757
  return obj;
1718
1758
  }
1719
- function _object_spread10(target) {
1759
+ function _object_spread9(target) {
1720
1760
  for (var i = 1; i < arguments.length; i++) {
1721
1761
  var source = arguments[i] != null ? arguments[i] : {};
1722
1762
  var ownKeys36 = Object.keys(source);
@@ -1726,7 +1766,7 @@ function _object_spread10(target) {
1726
1766
  }));
1727
1767
  }
1728
1768
  ownKeys36.forEach(function(key) {
1729
- _define_property10(target, key, source[key]);
1769
+ _define_property9(target, key, source[key]);
1730
1770
  });
1731
1771
  }
1732
1772
  return target;
@@ -1746,8 +1786,7 @@ var Layout = (props) => {
1746
1786
  beforeFeatures,
1747
1787
  afterFeatures
1748
1788
  };
1749
- const { siteData: siteData2, page } = usePageData9();
1750
- const { themeConfig } = siteData2;
1789
+ const { siteData: siteData2, page } = usePageData10();
1751
1790
  const {
1752
1791
  pageType,
1753
1792
  lang: currentLang,
@@ -1757,8 +1796,7 @@ var Layout = (props) => {
1757
1796
  } = page;
1758
1797
  const localesData = useLocaleSiteData();
1759
1798
  const defaultLang = siteData2.lang || "";
1760
- var _frontmatter_navbar, _themeConfig_hideNavbar;
1761
- const hideNavbar = !((_frontmatter_navbar = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.navbar) !== null && _frontmatter_navbar !== void 0 ? _frontmatter_navbar : true) || ((_themeConfig_hideNavbar = themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.hideNavbar) !== null && _themeConfig_hideNavbar !== void 0 ? _themeConfig_hideNavbar : false);
1799
+ const hideNavbar = useDisableNav();
1762
1800
  var _ref;
1763
1801
  let title = (_ref = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.title) !== null && _ref !== void 0 ? _ref : articleTitle;
1764
1802
  const mainTitle = siteData2.title || localesData.title;
@@ -1773,19 +1811,19 @@ var Layout = (props) => {
1773
1811
  const getContentLayout = () => {
1774
1812
  switch (pageType) {
1775
1813
  case "home":
1776
- return /* @__PURE__ */ _jsx15(Theme.HomeLayout, _object_spread10({}, homeProps));
1814
+ return /* @__PURE__ */ _jsx16(Theme.HomeLayout, _object_spread9({}, homeProps));
1777
1815
  case "doc":
1778
- return /* @__PURE__ */ _jsx15(DocLayout, _object_spread10({}, docProps));
1816
+ return /* @__PURE__ */ _jsx16(DocLayout, _object_spread9({}, docProps));
1779
1817
  case "404":
1780
- return /* @__PURE__ */ _jsx15(Theme.NotFoundLayout, {});
1818
+ return /* @__PURE__ */ _jsx16(Theme.NotFoundLayout, {});
1781
1819
  case "custom":
1782
1820
  case "blank":
1783
- return /* @__PURE__ */ _jsx15(Content2, {});
1821
+ return /* @__PURE__ */ _jsx16(Content2, {});
1784
1822
  default:
1785
- return /* @__PURE__ */ _jsx15(DocLayout, _object_spread10({}, docProps));
1823
+ return /* @__PURE__ */ _jsx16(DocLayout, _object_spread9({}, docProps));
1786
1824
  }
1787
1825
  };
1788
- useEffect8(() => {
1826
+ useEffect10(() => {
1789
1827
  if (!defaultLang || process.env.TEST === "1") {
1790
1828
  return;
1791
1829
  }
@@ -1806,32 +1844,32 @@ var Layout = (props) => {
1806
1844
  if (targetLang === defaultLang) {
1807
1845
  window.location.replace(pathname.replace(`/${currentLang}`, ""));
1808
1846
  } else if (currentLang === defaultLang) {
1809
- window.location.replace(withBase7(`/${targetLang}${cleanPathname}`));
1847
+ window.location.replace(withBase8(`/${targetLang}${cleanPathname}`));
1810
1848
  } else {
1811
1849
  window.location.replace(pathname.replace(`/${currentLang}`, `/${targetLang}`));
1812
1850
  }
1813
1851
  }
1814
1852
  }, []);
1815
- return /* @__PURE__ */ _jsxs9("div", {
1853
+ return /* @__PURE__ */ _jsxs10("div", {
1816
1854
  children: [
1817
- /* @__PURE__ */ _jsxs9(Helmet, {
1855
+ /* @__PURE__ */ _jsxs10(Helmet, {
1818
1856
  children: [
1819
- title ? /* @__PURE__ */ _jsx15("title", {
1857
+ title ? /* @__PURE__ */ _jsx16("title", {
1820
1858
  children: title
1821
1859
  }) : null,
1822
- description ? /* @__PURE__ */ _jsx15("meta", {
1860
+ description ? /* @__PURE__ */ _jsx16("meta", {
1823
1861
  name: "description",
1824
1862
  content: description
1825
1863
  }) : null
1826
1864
  ]
1827
1865
  }),
1828
1866
  top,
1829
- pageType !== "blank" && !hideNavbar && /* @__PURE__ */ _jsx15(Nav, {
1867
+ pageType !== "blank" && !hideNavbar && /* @__PURE__ */ _jsx16(Nav, {
1830
1868
  beforeNavTitle,
1831
1869
  afterNavTitle,
1832
1870
  beforeNav
1833
1871
  }),
1834
- /* @__PURE__ */ _jsx15("section", {
1872
+ /* @__PURE__ */ _jsx16("section", {
1835
1873
  children: getContentLayout()
1836
1874
  }),
1837
1875
  bottom,
@@ -1839,7 +1877,7 @@ var Layout = (props) => {
1839
1877
  globalComponents.map((componentInfo, index) => {
1840
1878
  if (Array.isArray(componentInfo)) {
1841
1879
  const [component, props2] = componentInfo;
1842
- return /* @__PURE__ */ React5.createElement(component, _object_spread10({
1880
+ return /* @__PURE__ */ React5.createElement(component, _object_spread9({
1843
1881
  // The component order is stable
1844
1882
  // eslint-disable-next-line react/no-array-index-key
1845
1883
  key: index
@@ -1856,17 +1894,17 @@ var Layout = (props) => {
1856
1894
  };
1857
1895
 
1858
1896
  // src/theme-default/layout/HomeLayout/index.tsx
1859
- import { jsx as _jsx18, jsxs as _jsxs12 } from "react/jsx-runtime";
1897
+ import { jsx as _jsx19, jsxs as _jsxs13 } from "react/jsx-runtime";
1860
1898
  import { HomeFooter } from "@theme";
1861
1899
 
1862
1900
  // src/theme-default/components/HomeHero/index.tsx
1863
- import { jsx as _jsx16, jsxs as _jsxs10 } from "react/jsx-runtime";
1901
+ import { jsx as _jsx17, jsxs as _jsxs11 } from "react/jsx-runtime";
1864
1902
 
1865
1903
  // src/theme-default/components/Button/index.tsx
1866
1904
  import React6 from "react";
1867
1905
 
1868
1906
  // src/theme-default/components/Button/index.module.scss
1869
- var index_module_default7 = { "button": "button_c5dfc", "medium": "medium_c5dfc", "big": "big_c5dfc", "brand": "brand_c5dfc", "alt": "alt_c5dfc" };
1907
+ var index_module_default8 = { "button": "button_c5dfc", "medium": "medium_c5dfc", "big": "big_c5dfc", "brand": "brand_c5dfc", "alt": "alt_c5dfc" };
1870
1908
 
1871
1909
  // src/theme-default/components/Button/index.tsx
1872
1910
  function Button(props) {
@@ -1878,16 +1916,16 @@ function Button(props) {
1878
1916
  type = external ? "a" : Link;
1879
1917
  }
1880
1918
  return /* @__PURE__ */ React6.createElement(type !== null && type !== void 0 ? type : "a", {
1881
- className: `${index_module_default7.button} ${index_module_default7[theme]} ${index_module_default7[size]} ${className}`,
1919
+ className: `${index_module_default8.button} ${index_module_default8[theme]} ${index_module_default8[size]} ${className}`,
1882
1920
  href
1883
1921
  }, props.text);
1884
1922
  }
1885
1923
 
1886
1924
  // src/theme-default/components/HomeHero/index.module.scss
1887
- var index_module_default8 = { "clip": "clip_1e4a0", "mask": "mask_1e4a0" };
1925
+ var index_module_default9 = { "clip": "clip_1e4a0", "mask": "mask_1e4a0" };
1888
1926
 
1889
1927
  // src/theme-default/components/HomeHero/index.tsx
1890
- import { normalizeHrefInRuntime as normalizeHref7 } from "@/runtime";
1928
+ import { normalizeHrefInRuntime as normalizeHref7, normalizeImagePath as normalizeImagePath2 } from "@/runtime";
1891
1929
  var DEFAULT_HERO = {
1892
1930
  name: "modern",
1893
1931
  text: "modern ssg",
@@ -1899,47 +1937,47 @@ function HomeHero({ frontmatter }) {
1899
1937
  var _hero_text, _hero_image, _hero_image1;
1900
1938
  const hero = (frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.hero) || DEFAULT_HERO;
1901
1939
  const hasImage = hero.image !== void 0;
1902
- return /* @__PURE__ */ _jsxs10("div", {
1940
+ return /* @__PURE__ */ _jsxs11("div", {
1903
1941
  className: "m-auto pt-0 px-6 pb-12 sm:pt-10 sm:px-16 md:pt-16 md:px-16 md:pb-16",
1904
1942
  children: [
1905
- /* @__PURE__ */ _jsx16("div", {
1906
- className: index_module_default8.mask,
1943
+ /* @__PURE__ */ _jsx17("div", {
1944
+ className: index_module_default9.mask,
1907
1945
  style: {
1908
1946
  left: hasImage ? "75%" : "50%"
1909
1947
  }
1910
1948
  }),
1911
- /* @__PURE__ */ _jsxs10("div", {
1949
+ /* @__PURE__ */ _jsxs11("div", {
1912
1950
  className: "m-auto flex flex-col md:flex-row max-w-6xl min-h-[50vh]",
1913
1951
  children: [
1914
- /* @__PURE__ */ _jsxs10("div", {
1952
+ /* @__PURE__ */ _jsxs11("div", {
1915
1953
  className: "flex flex-col justify-center text-center max-w-xl sm:max-w-4xl m-auto order-2 md:order-1",
1916
1954
  children: [
1917
- /* @__PURE__ */ _jsx16("h1", {
1955
+ /* @__PURE__ */ _jsx17("h1", {
1918
1956
  className: "font-bold text-3xl sm:text-6xl md:text-7xl m-auto sm:m-4 md:m-0 md:pb-3 lg:pb-2 leading-tight z-10",
1919
- children: /* @__PURE__ */ _jsx16("span", {
1920
- className: index_module_default8.clip,
1957
+ children: /* @__PURE__ */ _jsx17("span", {
1958
+ className: index_module_default9.clip,
1921
1959
  style: {
1922
1960
  lineHeight: "1.3"
1923
1961
  },
1924
1962
  children: hero.name
1925
1963
  })
1926
1964
  }),
1927
- ((_hero_text = hero.text) === null || _hero_text === void 0 ? void 0 : _hero_text.length) && /* @__PURE__ */ _jsx16("p", {
1965
+ ((_hero_text = hero.text) === null || _hero_text === void 0 ? void 0 : _hero_text.length) && /* @__PURE__ */ _jsx17("p", {
1928
1966
  className: `mx-auto md:m-0 text-3xl sm:text-5xl md:text-6xl pb-2 font-bold z-10 max-w-392px ${hasImage ? "sm:max-w-xl" : "sm:max-w-4xl"}`,
1929
1967
  style: {
1930
1968
  lineHeight: "1.2"
1931
1969
  },
1932
1970
  children: hero.text
1933
1971
  }),
1934
- /* @__PURE__ */ _jsx16("p", {
1972
+ /* @__PURE__ */ _jsx17("p", {
1935
1973
  className: "whitespace-pre-wrap pt-4 m-auto md:m-0 text-sm sm:tex-xl md:text-2xl text-text-2 font-medium z-10",
1936
1974
  children: hero.tagline
1937
1975
  }),
1938
- /* @__PURE__ */ _jsx16("div", {
1976
+ /* @__PURE__ */ _jsx17("div", {
1939
1977
  className: "flex flex-wrap justify-center gap-3 m--1.5 pt-8 z-10",
1940
- children: hero.actions.map((action) => /* @__PURE__ */ _jsx16("div", {
1978
+ children: hero.actions.map((action) => /* @__PURE__ */ _jsx17("div", {
1941
1979
  className: "flex flex-shrink-0 p-1",
1942
- children: /* @__PURE__ */ _jsx16(Button, {
1980
+ children: /* @__PURE__ */ _jsx17(Button, {
1943
1981
  type: "a",
1944
1982
  text: action.text,
1945
1983
  href: normalizeHref7(action.link),
@@ -1949,10 +1987,10 @@ function HomeHero({ frontmatter }) {
1949
1987
  })
1950
1988
  ]
1951
1989
  }),
1952
- hasImage ? /* @__PURE__ */ _jsx16("div", {
1990
+ hasImage ? /* @__PURE__ */ _jsx17("div", {
1953
1991
  className: "rspress-home-hero-image md:flex-center m-auto order-1 md:order-2 sm:flex md:none lg:flex",
1954
- children: /* @__PURE__ */ _jsx16("img", {
1955
- src: (_hero_image = hero.image) === null || _hero_image === void 0 ? void 0 : _hero_image.src,
1992
+ children: /* @__PURE__ */ _jsx17("img", {
1993
+ src: normalizeImagePath2((_hero_image = hero.image) === null || _hero_image === void 0 ? void 0 : _hero_image.src),
1956
1994
  alt: (_hero_image1 = hero.image) === null || _hero_image1 === void 0 ? void 0 : _hero_image1.alt
1957
1995
  })
1958
1996
  }) : null
@@ -1963,10 +2001,10 @@ function HomeHero({ frontmatter }) {
1963
2001
  }
1964
2002
 
1965
2003
  // src/theme-default/components/HomeFeatures/index.tsx
1966
- import { jsx as _jsx17, jsxs as _jsxs11 } from "react/jsx-runtime";
2004
+ import { jsx as _jsx18, jsxs as _jsxs12 } from "react/jsx-runtime";
1967
2005
 
1968
2006
  // src/theme-default/components/HomeFeatures/index.module.scss
1969
- var index_module_default9 = { "grid-2": "grid-2_7983b", "grid2": "grid-2_7983b", "grid-4": "grid-4_7983b", "grid4": "grid-4_7983b", "grid-6": "grid-6_7983b", "grid6": "grid-6_7983b", "grid-3": "grid-3_7983b", "grid3": "grid-3_7983b", "featureCard": "featureCard_7983b" };
2007
+ var index_module_default10 = { "grid-2": "grid-2_7983b", "grid2": "grid-2_7983b", "grid-4": "grid-4_7983b", "grid4": "grid-4_7983b", "grid-6": "grid-6_7983b", "grid6": "grid-6_7983b", "grid-3": "grid-3_7983b", "grid3": "grid-3_7983b", "featureCard": "featureCard_7983b" };
1970
2008
 
1971
2009
  // src/theme-default/components/HomeFeatures/index.tsx
1972
2010
  var PRESET_COUNT = [
@@ -1989,16 +2027,16 @@ var getGridClass = (count) => {
1989
2027
  function HomeFeature({ frontmatter }) {
1990
2028
  const features = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.features;
1991
2029
  const gridClass = getGridClass(features === null || features === void 0 ? void 0 : features.length);
1992
- return /* @__PURE__ */ _jsx17("div", {
2030
+ return /* @__PURE__ */ _jsx18("div", {
1993
2031
  className: "overflow-hidden m-auto flex flex-wrap justify-between max-w-6xl",
1994
2032
  children: features === null || features === void 0 ? void 0 : features.map((feature) => {
1995
2033
  const { icon, title, details, link } = feature;
1996
- return /* @__PURE__ */ _jsx17("div", {
1997
- className: `${gridClass ? index_module_default9[gridClass] : "w-full"} rounded hover:var(--rp-c-brand)`,
1998
- children: /* @__PURE__ */ _jsx17("div", {
2034
+ return /* @__PURE__ */ _jsx18("div", {
2035
+ className: `${gridClass ? index_module_default10[gridClass] : "w-full"} rounded hover:var(--rp-c-brand)`,
2036
+ children: /* @__PURE__ */ _jsx18("div", {
1999
2037
  className: "h-full p-2",
2000
- children: /* @__PURE__ */ _jsxs11("article", {
2001
- className: `${index_module_default9.featureCard} h-full p-8 rounded-4xl border-transparent`,
2038
+ children: /* @__PURE__ */ _jsxs12("article", {
2039
+ className: `${index_module_default10.featureCard} h-full p-8 rounded-4xl border-transparent`,
2002
2040
  style: {
2003
2041
  cursor: link ? "pointer" : "auto"
2004
2042
  },
@@ -2008,18 +2046,18 @@ function HomeFeature({ frontmatter }) {
2008
2046
  }
2009
2047
  },
2010
2048
  children: [
2011
- /* @__PURE__ */ _jsx17("div", {
2049
+ /* @__PURE__ */ _jsx18("div", {
2012
2050
  className: "flex-center",
2013
- children: /* @__PURE__ */ _jsx17("div", {
2051
+ children: /* @__PURE__ */ _jsx18("div", {
2014
2052
  className: "rspress-home-feature-icon w-12 h-12 text-3xl text-center",
2015
2053
  children: icon
2016
2054
  })
2017
2055
  }),
2018
- /* @__PURE__ */ _jsx17("h2", {
2056
+ /* @__PURE__ */ _jsx18("h2", {
2019
2057
  className: "rspress-home-feature-title font-bold text-center",
2020
2058
  children: title
2021
2059
  }),
2022
- /* @__PURE__ */ _jsx17("p", {
2060
+ /* @__PURE__ */ _jsx18("p", {
2023
2061
  className: "rspress-home-feature-detail leading-6 pt-2 text-sm text-text-2 font-medium",
2024
2062
  children: details
2025
2063
  })
@@ -2032,61 +2070,62 @@ function HomeFeature({ frontmatter }) {
2032
2070
  }
2033
2071
 
2034
2072
  // src/theme-default/layout/HomeLayout/index.tsx
2035
- import { usePageData as usePageData10 } from "@/runtime";
2073
+ import { usePageData as usePageData11 } from "@/runtime";
2036
2074
  function HomeLayout(props) {
2037
2075
  const { beforeHero, afterHero, beforeFeatures, afterFeatures } = props;
2038
- const { page: { frontmatter } } = usePageData10();
2039
- return /* @__PURE__ */ _jsxs12("div", {
2076
+ const { page: { frontmatter } } = usePageData11();
2077
+ return /* @__PURE__ */ _jsxs13("div", {
2040
2078
  className: "relative",
2041
2079
  style: {
2042
2080
  minHeight: "calc(100vh - var(--rp-nav-height))",
2043
2081
  paddingBottom: "80px"
2044
2082
  },
2045
2083
  children: [
2046
- /* @__PURE__ */ _jsxs12("div", {
2047
- className: "mt-14 pb-12",
2084
+ /* @__PURE__ */ _jsxs13("div", {
2085
+ className: "pb-12",
2048
2086
  children: [
2049
2087
  beforeHero,
2050
- /* @__PURE__ */ _jsx18(HomeHero, {
2088
+ /* @__PURE__ */ _jsx19(HomeHero, {
2051
2089
  frontmatter
2052
2090
  }),
2053
2091
  afterHero,
2054
2092
  beforeFeatures,
2055
- /* @__PURE__ */ _jsx18(HomeFeature, {
2093
+ /* @__PURE__ */ _jsx19(HomeFeature, {
2056
2094
  frontmatter
2057
2095
  }),
2058
2096
  afterFeatures
2059
2097
  ]
2060
2098
  }),
2061
- /* @__PURE__ */ _jsx18(HomeFooter, {})
2099
+ /* @__PURE__ */ _jsx19(HomeFooter, {})
2062
2100
  ]
2063
2101
  });
2064
2102
  }
2065
2103
 
2066
2104
  // src/theme-default/components/Nav/index.tsx
2067
- import { jsx as _jsx36, jsxs as _jsxs23 } from "react/jsx-runtime";
2068
- import { replaceLang } from "@rspress/shared";
2069
- import { useLocation as useLocation5 } from "react-router-dom";
2105
+ import { jsx as _jsx37, jsxs as _jsxs24, Fragment as _Fragment4 } from "react/jsx-runtime";
2106
+ import { replaceLang as replaceLang2 } from "@rspress/shared";
2107
+ import { useLocation as useLocation7 } from "react-router-dom";
2070
2108
  import { Search } from "@theme";
2071
- import { useContext as useContext3, useEffect as useEffect11, useState as useState10 } from "react";
2109
+ import { useEffect as useEffect13, useState as useState12 } from "react";
2072
2110
 
2073
2111
  // src/theme-default/components/NavHambmger/index.tsx
2074
- import { jsx as _jsx34, jsxs as _jsxs21 } from "react/jsx-runtime";
2112
+ import { jsx as _jsx35, jsxs as _jsxs22 } from "react/jsx-runtime";
2075
2113
  import { Fragment as Fragment2 } from "react";
2076
2114
 
2077
2115
  // src/theme-default/components/NavScreen/index.tsx
2078
- import { jsx as _jsx32, jsxs as _jsxs19 } from "react/jsx-runtime";
2079
- import { useContext as useContext2, useEffect as useEffect10, useRef as useRef4 } from "react";
2116
+ import { jsx as _jsx33, jsxs as _jsxs20 } from "react/jsx-runtime";
2117
+ import { useEffect as useEffect12, useRef as useRef4 } from "react";
2080
2118
  import { disableBodyScroll, clearAllBodyScrollLocks } from "body-scroll-lock";
2119
+ import { replaceLang } from "@rspress/shared";
2081
2120
 
2082
2121
  // src/theme-default/components/NavScreenMenuGroup/NavScreenMenuGroup.tsx
2083
- import { jsx as _jsx20, jsxs as _jsxs13 } from "react/jsx-runtime";
2084
- import { useState as useState5 } from "react";
2122
+ import { jsx as _jsx21, jsxs as _jsxs14 } from "react/jsx-runtime";
2123
+ import { useState as useState7 } from "react";
2085
2124
 
2086
2125
  // src/theme-default/assets/down.svg
2087
- import { jsx as _jsx19 } from "react/jsx-runtime";
2126
+ import { jsx as _jsx20 } from "react/jsx-runtime";
2088
2127
  import * as React7 from "react";
2089
- function _define_property11(obj, key, value) {
2128
+ function _define_property10(obj, key, value) {
2090
2129
  if (key in obj) {
2091
2130
  Object.defineProperty(obj, key, {
2092
2131
  value,
@@ -2099,7 +2138,7 @@ function _define_property11(obj, key, value) {
2099
2138
  }
2100
2139
  return obj;
2101
2140
  }
2102
- function _object_spread11(target) {
2141
+ function _object_spread10(target) {
2103
2142
  for (var i = 1; i < arguments.length; i++) {
2104
2143
  var source = arguments[i] != null ? arguments[i] : {};
2105
2144
  var ownKeys36 = Object.keys(source);
@@ -2109,7 +2148,7 @@ function _object_spread11(target) {
2109
2148
  }));
2110
2149
  }
2111
2150
  ownKeys36.forEach(function(key) {
2112
- _define_property11(target, key, source[key]);
2151
+ _define_property10(target, key, source[key]);
2113
2152
  });
2114
2153
  }
2115
2154
  return target;
@@ -2138,12 +2177,12 @@ function _object_spread_props6(target, source) {
2138
2177
  }
2139
2178
  return target;
2140
2179
  }
2141
- var SvgDown = (props) => /* @__PURE__ */ _jsx19("svg", _object_spread_props6(_object_spread11({
2180
+ var SvgDown = (props) => /* @__PURE__ */ _jsx20("svg", _object_spread_props6(_object_spread10({
2142
2181
  width: "1em",
2143
2182
  height: "1em",
2144
2183
  viewBox: "0 0 32 32"
2145
2184
  }, props), {
2146
- children: /* @__PURE__ */ _jsx19("path", {
2185
+ children: /* @__PURE__ */ _jsx20("path", {
2147
2186
  fill: "currentColor",
2148
2187
  d: "M16 22 6 12l1.4-1.4 8.6 8.6 8.6-8.6L26 12z"
2149
2188
  })
@@ -2151,30 +2190,30 @@ var SvgDown = (props) => /* @__PURE__ */ _jsx19("svg", _object_spread_props6(_ob
2151
2190
  var down_default = SvgDown;
2152
2191
 
2153
2192
  // src/theme-default/components/NavScreenMenuGroup/index.module.scss
2154
- var index_module_default10 = { "navScreenMenuGroup": "navScreenMenuGroup_de8a5", "open": "open_de8a5", "button": "button_de8a5", "buttonSpan": "buttonSpan_de8a5", "items": "items_de8a5", "down": "down_de8a5" };
2193
+ var index_module_default11 = { "navScreenMenuGroup": "navScreenMenuGroup_de8a5", "open": "open_de8a5", "button": "button_de8a5", "buttonSpan": "buttonSpan_de8a5", "items": "items_de8a5", "down": "down_de8a5" };
2155
2194
 
2156
2195
  // src/theme-default/components/NavScreenMenuGroup/NavScreenMenuGroup.tsx
2157
2196
  function NavScreenMenuGroup(item) {
2158
2197
  const { activeValue } = item;
2159
- const [isOpen, setIsOpen] = useState5(false);
2198
+ const [isOpen, setIsOpen] = useState7(false);
2160
2199
  function ActiveGroupItem2({ item: item2 }) {
2161
- return /* @__PURE__ */ _jsx20("div", {
2200
+ return /* @__PURE__ */ _jsx21("div", {
2162
2201
  className: "p-1",
2163
- children: /* @__PURE__ */ _jsx20("span", {
2202
+ children: /* @__PURE__ */ _jsx21("span", {
2164
2203
  className: "text-brand",
2165
2204
  children: item2.text
2166
2205
  })
2167
2206
  });
2168
2207
  }
2169
2208
  function NormalGroupItem2({ item: item2 }) {
2170
- return /* @__PURE__ */ _jsx20("div", {
2209
+ return /* @__PURE__ */ _jsx21("div", {
2171
2210
  className: "py-1 font-medium",
2172
- children: /* @__PURE__ */ _jsx20(Link, {
2211
+ children: /* @__PURE__ */ _jsx21(Link, {
2173
2212
  href: item2.link,
2174
- children: /* @__PURE__ */ _jsx20("div", {
2175
- children: /* @__PURE__ */ _jsx20("div", {
2213
+ children: /* @__PURE__ */ _jsx21("div", {
2214
+ children: /* @__PURE__ */ _jsx21("div", {
2176
2215
  className: "flex justify-center",
2177
- children: /* @__PURE__ */ _jsx20("span", {
2216
+ children: /* @__PURE__ */ _jsx21("span", {
2178
2217
  children: item2.text
2179
2218
  })
2180
2219
  })
@@ -2184,18 +2223,18 @@ function NavScreenMenuGroup(item) {
2184
2223
  }
2185
2224
  const renderLinkItem = (item2) => {
2186
2225
  if (activeValue === item2.text) {
2187
- return /* @__PURE__ */ _jsx20(ActiveGroupItem2, {
2226
+ return /* @__PURE__ */ _jsx21(ActiveGroupItem2, {
2188
2227
  item: item2
2189
2228
  }, item2.link);
2190
2229
  }
2191
- return /* @__PURE__ */ _jsx20(NormalGroupItem2, {
2230
+ return /* @__PURE__ */ _jsx21(NormalGroupItem2, {
2192
2231
  item: item2
2193
2232
  }, item2.link);
2194
2233
  };
2195
2234
  const renderGroup = (item2) => {
2196
- return /* @__PURE__ */ _jsxs13("div", {
2235
+ return /* @__PURE__ */ _jsxs14("div", {
2197
2236
  children: [
2198
- "link" in item2 ? renderLinkItem(item2) : /* @__PURE__ */ _jsx20("p", {
2237
+ "link" in item2 ? renderLinkItem(item2) : /* @__PURE__ */ _jsx21("p", {
2199
2238
  className: "font-bold text-gray-400 my-1 not:first:border",
2200
2239
  children: item2.text
2201
2240
  }),
@@ -2203,29 +2242,29 @@ function NavScreenMenuGroup(item) {
2203
2242
  ]
2204
2243
  });
2205
2244
  };
2206
- return /* @__PURE__ */ _jsxs13("div", {
2207
- className: `${isOpen ? index_module_default10.open : ""} ${index_module_default10.navScreenMenuGroup} relative`,
2245
+ return /* @__PURE__ */ _jsxs14("div", {
2246
+ className: `${isOpen ? index_module_default11.open : ""} ${index_module_default11.navScreenMenuGroup} relative`,
2208
2247
  children: [
2209
- /* @__PURE__ */ _jsxs13("button", {
2210
- className: index_module_default10.button,
2248
+ /* @__PURE__ */ _jsxs14("button", {
2249
+ className: index_module_default11.button,
2211
2250
  onClick: () => {
2212
2251
  setIsOpen(!isOpen);
2213
2252
  },
2214
2253
  children: [
2215
- /* @__PURE__ */ _jsx20("span", {
2216
- className: index_module_default10.buttonSpan,
2254
+ /* @__PURE__ */ _jsx21("span", {
2255
+ className: index_module_default11.buttonSpan,
2217
2256
  children: item.text
2218
2257
  }),
2219
- /* @__PURE__ */ _jsx20(down_default, {
2220
- className: `${isOpen ? index_module_default10.open : ""} ${index_module_default10.down} `
2258
+ /* @__PURE__ */ _jsx21(down_default, {
2259
+ className: `${isOpen ? index_module_default11.open : ""} ${index_module_default11.down} `
2221
2260
  })
2222
2261
  ]
2223
2262
  }),
2224
- /* @__PURE__ */ _jsx20("div", {
2225
- children: /* @__PURE__ */ _jsx20("div", {
2226
- className: index_module_default10.items,
2263
+ /* @__PURE__ */ _jsx21("div", {
2264
+ children: /* @__PURE__ */ _jsx21("div", {
2265
+ className: index_module_default11.items,
2227
2266
  children: item.items.map((item2) => {
2228
- return /* @__PURE__ */ _jsx20("div", {
2267
+ return /* @__PURE__ */ _jsx21("div", {
2229
2268
  children: "items" in item2 ? renderGroup(item2) : renderLinkItem(item2)
2230
2269
  }, item2.text);
2231
2270
  })
@@ -2236,23 +2275,18 @@ function NavScreenMenuGroup(item) {
2236
2275
  }
2237
2276
 
2238
2277
  // src/theme-default/components/Nav/NavMenuSingleItem.tsx
2239
- import { jsx as _jsx21, jsxs as _jsxs14 } from "react/jsx-runtime";
2278
+ import { jsx as _jsx22, jsxs as _jsxs15 } from "react/jsx-runtime";
2240
2279
  import { withoutBase } from "@rspress/shared";
2241
-
2242
- // src/theme-default/components/Nav/index.module.scss
2243
- var index_module_default11 = { "container": "container_47ac2", "leftNav": "leftNav_47ac2", "rightNav": "rightNav_47ac2", "activeItem": "activeItem_47ac2", "singleItem": "singleItem_47ac2", "navContainer": "navContainer_47ac2", "social-links-icon": "social-links-icon_47ac2", "socialLinksIcon": "social-links-icon_47ac2", "menu-item": "menu-item_47ac2", "menuItem": "menu-item_47ac2", "mobileNavMenu": "mobileNavMenu_47ac2", "mask": "mask_47ac2", "docPage": "docPage_47ac2" };
2244
-
2245
- // src/theme-default/components/Nav/NavMenuSingleItem.tsx
2246
2280
  import { normalizeHrefInRuntime as normalizeHref8 } from "@/runtime";
2247
2281
  function NavMenuSingleItem(item) {
2248
2282
  const { pathname, base } = item;
2249
2283
  const isActive2 = new RegExp(item.activeMatch || item.link).test(withoutBase(pathname, base));
2250
- return /* @__PURE__ */ _jsx21(Link, {
2284
+ return /* @__PURE__ */ _jsx22(Link, {
2251
2285
  href: normalizeHref8(item.link),
2252
- children: /* @__PURE__ */ _jsxs14("div", {
2253
- className: `${index_module_default11.singleItem} ${isActive2 ? index_module_default11.activeItem : ""} text-sm font-medium mx-1.5 px-3 py-2 flex items-center`,
2286
+ children: /* @__PURE__ */ _jsxs15("div", {
2287
+ className: `${index_module_default4.singleItem} ${isActive2 ? index_module_default4.activeItem : ""} text-sm font-medium mx-1.5 px-3 py-2 flex items-center`,
2254
2288
  children: [
2255
- /* @__PURE__ */ _jsx21(Tag, {
2289
+ /* @__PURE__ */ _jsx22(Tag, {
2256
2290
  tag: item.tag
2257
2291
  }),
2258
2292
  item.text,
@@ -2263,13 +2297,13 @@ function NavMenuSingleItem(item) {
2263
2297
  }
2264
2298
 
2265
2299
  // src/theme-default/components/SwitchAppearance/index.tsx
2266
- import { jsx as _jsx24 } from "react/jsx-runtime";
2267
- import { useContext, useEffect as useEffect9 } from "react";
2300
+ import { jsx as _jsx25 } from "react/jsx-runtime";
2301
+ import { useContext as useContext2, useEffect as useEffect11 } from "react";
2268
2302
 
2269
2303
  // src/theme-default/assets/sun.svg
2270
- import { jsx as _jsx22 } from "react/jsx-runtime";
2304
+ import { jsx as _jsx23 } from "react/jsx-runtime";
2271
2305
  import * as React8 from "react";
2272
- function _define_property12(obj, key, value) {
2306
+ function _define_property11(obj, key, value) {
2273
2307
  if (key in obj) {
2274
2308
  Object.defineProperty(obj, key, {
2275
2309
  value,
@@ -2282,7 +2316,7 @@ function _define_property12(obj, key, value) {
2282
2316
  }
2283
2317
  return obj;
2284
2318
  }
2285
- function _object_spread12(target) {
2319
+ function _object_spread11(target) {
2286
2320
  for (var i = 1; i < arguments.length; i++) {
2287
2321
  var source = arguments[i] != null ? arguments[i] : {};
2288
2322
  var ownKeys36 = Object.keys(source);
@@ -2292,7 +2326,7 @@ function _object_spread12(target) {
2292
2326
  }));
2293
2327
  }
2294
2328
  ownKeys36.forEach(function(key) {
2295
- _define_property12(target, key, source[key]);
2329
+ _define_property11(target, key, source[key]);
2296
2330
  });
2297
2331
  }
2298
2332
  return target;
@@ -2321,21 +2355,21 @@ function _object_spread_props7(target, source) {
2321
2355
  }
2322
2356
  return target;
2323
2357
  }
2324
- var SvgSun = (props) => /* @__PURE__ */ _jsx22("svg", _object_spread_props7(_object_spread12({
2358
+ var SvgSun = (props) => /* @__PURE__ */ _jsx23("svg", _object_spread_props7(_object_spread11({
2325
2359
  xmlns: "http://www.w3.org/2000/svg",
2326
2360
  "aria-hidden": "true",
2327
2361
  viewBox: "0 0 24 24"
2328
2362
  }, props), {
2329
- children: /* @__PURE__ */ _jsx22("path", {
2363
+ children: /* @__PURE__ */ _jsx23("path", {
2330
2364
  d: "M12 18c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6zm0-10c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zM12 4c-.6 0-1-.4-1-1V1c0-.6.4-1 1-1s1 .4 1 1v2c0 .6-.4 1-1 1zM12 24c-.6 0-1-.4-1-1v-2c0-.6.4-1 1-1s1 .4 1 1v2c0 .6-.4 1-1 1zM5.6 6.6c-.3 0-.5-.1-.7-.3L3.5 4.9c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l1.4 1.4c.4.4.4 1 0 1.4-.1.2-.4.3-.7.3zM19.8 20.8c-.3 0-.5-.1-.7-.3l-1.4-1.4c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l1.4 1.4c.4.4.4 1 0 1.4-.2.2-.5.3-.7.3zM3 13H1c-.6 0-1-.4-1-1s.4-1 1-1h2c.6 0 1 .4 1 1s-.4 1-1 1zM23 13h-2c-.6 0-1-.4-1-1s.4-1 1-1h2c.6 0 1 .4 1 1s-.4 1-1 1zM4.2 20.8c-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4l1.4-1.4c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-1.4 1.4c-.2.2-.4.3-.7.3zM18.4 6.6c-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4l1.4-1.4c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-1.4 1.4c-.2.2-.5.3-.7.3z"
2331
2365
  })
2332
2366
  }));
2333
2367
  var sun_default = SvgSun;
2334
2368
 
2335
2369
  // src/theme-default/assets/moon.svg
2336
- import { jsx as _jsx23 } from "react/jsx-runtime";
2370
+ import { jsx as _jsx24 } from "react/jsx-runtime";
2337
2371
  import * as React9 from "react";
2338
- function _define_property13(obj, key, value) {
2372
+ function _define_property12(obj, key, value) {
2339
2373
  if (key in obj) {
2340
2374
  Object.defineProperty(obj, key, {
2341
2375
  value,
@@ -2348,7 +2382,7 @@ function _define_property13(obj, key, value) {
2348
2382
  }
2349
2383
  return obj;
2350
2384
  }
2351
- function _object_spread13(target) {
2385
+ function _object_spread12(target) {
2352
2386
  for (var i = 1; i < arguments.length; i++) {
2353
2387
  var source = arguments[i] != null ? arguments[i] : {};
2354
2388
  var ownKeys36 = Object.keys(source);
@@ -2358,7 +2392,7 @@ function _object_spread13(target) {
2358
2392
  }));
2359
2393
  }
2360
2394
  ownKeys36.forEach(function(key) {
2361
- _define_property13(target, key, source[key]);
2395
+ _define_property12(target, key, source[key]);
2362
2396
  });
2363
2397
  }
2364
2398
  return target;
@@ -2387,12 +2421,12 @@ function _object_spread_props8(target, source) {
2387
2421
  }
2388
2422
  return target;
2389
2423
  }
2390
- var SvgMoon = (props) => /* @__PURE__ */ _jsx23("svg", _object_spread_props8(_object_spread13({
2424
+ var SvgMoon = (props) => /* @__PURE__ */ _jsx24("svg", _object_spread_props8(_object_spread12({
2391
2425
  xmlns: "http://www.w3.org/2000/svg",
2392
2426
  "aria-hidden": "true",
2393
2427
  viewBox: "0 0 24 24"
2394
2428
  }, props), {
2395
- children: /* @__PURE__ */ _jsx23("path", {
2429
+ children: /* @__PURE__ */ _jsx24("path", {
2396
2430
  d: "M12.1 22h-.9c-5.5-.5-9.5-5.4-9-10.9.4-4.8 4.2-8.6 9-9 .4 0 .8.2 1 .5.2.3.2.8-.1 1.1-2 2.7-1.4 6.4 1.3 8.4 2.1 1.6 5 1.6 7.1 0 .3-.2.7-.3 1.1-.1.3.2.5.6.5 1-.2 2.7-1.5 5.1-3.6 6.8-1.9 1.4-4.1 2.2-6.4 2.2zM9.3 4.4c-2.9 1-5 3.6-5.2 6.8-.4 4.4 2.8 8.3 7.2 8.7 2.1.2 4.2-.4 5.8-1.8 1.1-.9 1.9-2.1 2.4-3.4-2.5.9-5.3.5-7.5-1.1-2.8-2.2-3.9-5.9-2.7-9.2z"
2397
2431
  })
2398
2432
  }));
@@ -2440,29 +2474,29 @@ var getToggle = () => {
2440
2474
  };
2441
2475
 
2442
2476
  // src/theme-default/components/SwitchAppearance/index.tsx
2443
- import { ThemeContext } from "@/runtime";
2477
+ import { ThemeContext as ThemeContext2 } from "@/runtime";
2444
2478
  function SwitchAppearance({ onClick }) {
2445
- const { theme, setTheme } = useContext(ThemeContext);
2479
+ const { theme, setTheme } = useContext2(ThemeContext2);
2446
2480
  const toggleAppearance = getToggle();
2447
- useEffect9(() => {
2481
+ useEffect11(() => {
2448
2482
  if (isDarkMode()) {
2449
2483
  setTheme("dark");
2450
2484
  }
2451
2485
  }, []);
2452
- return /* @__PURE__ */ _jsx24("div", {
2486
+ return /* @__PURE__ */ _jsx25("div", {
2453
2487
  onClick: () => {
2454
2488
  setTheme(theme === "dark" ? "light" : "dark");
2455
2489
  toggleAppearance();
2456
2490
  onClick === null || onClick === void 0 ? void 0 : onClick();
2457
2491
  },
2458
2492
  className: "md:mr-2 rspress-nav-appearance",
2459
- children: /* @__PURE__ */ _jsx24("div", {
2493
+ children: /* @__PURE__ */ _jsx25("div", {
2460
2494
  className: "p-1 border border-solid border-gray-300 text-gray-400 cursor-pointer rounded-md hover:border-gray-600 hover:text-gray-600 dark:hover:border-gray-200 dark:hover:text-gray-200 transition-all duration-300",
2461
- children: theme === "light" ? /* @__PURE__ */ _jsx24(sun_default, {
2495
+ children: theme === "light" ? /* @__PURE__ */ _jsx25(sun_default, {
2462
2496
  width: "18",
2463
2497
  height: "18",
2464
2498
  fill: "currentColor"
2465
- }) : /* @__PURE__ */ _jsx24(moon_default, {
2499
+ }) : /* @__PURE__ */ _jsx25(moon_default, {
2466
2500
  width: "18",
2467
2501
  height: "18",
2468
2502
  fill: "currentColor"
@@ -2472,9 +2506,9 @@ function SwitchAppearance({ onClick }) {
2472
2506
  }
2473
2507
 
2474
2508
  // src/theme-default/assets/translator.svg
2475
- import { jsx as _jsx25 } from "react/jsx-runtime";
2509
+ import { jsx as _jsx26 } from "react/jsx-runtime";
2476
2510
  import * as React10 from "react";
2477
- function _define_property14(obj, key, value) {
2511
+ function _define_property13(obj, key, value) {
2478
2512
  if (key in obj) {
2479
2513
  Object.defineProperty(obj, key, {
2480
2514
  value,
@@ -2487,7 +2521,7 @@ function _define_property14(obj, key, value) {
2487
2521
  }
2488
2522
  return obj;
2489
2523
  }
2490
- function _object_spread14(target) {
2524
+ function _object_spread13(target) {
2491
2525
  for (var i = 1; i < arguments.length; i++) {
2492
2526
  var source = arguments[i] != null ? arguments[i] : {};
2493
2527
  var ownKeys36 = Object.keys(source);
@@ -2497,7 +2531,7 @@ function _object_spread14(target) {
2497
2531
  }));
2498
2532
  }
2499
2533
  ownKeys36.forEach(function(key) {
2500
- _define_property14(target, key, source[key]);
2534
+ _define_property13(target, key, source[key]);
2501
2535
  });
2502
2536
  }
2503
2537
  return target;
@@ -2526,12 +2560,12 @@ function _object_spread_props9(target, source) {
2526
2560
  }
2527
2561
  return target;
2528
2562
  }
2529
- var SvgTranslator = (props) => /* @__PURE__ */ _jsx25("svg", _object_spread_props9(_object_spread14({
2563
+ var SvgTranslator = (props) => /* @__PURE__ */ _jsx26("svg", _object_spread_props9(_object_spread13({
2530
2564
  width: 18,
2531
2565
  height: 18,
2532
2566
  viewBox: "0 0 32 32"
2533
2567
  }, props), {
2534
- children: /* @__PURE__ */ _jsx25("path", {
2568
+ children: /* @__PURE__ */ _jsx26("path", {
2535
2569
  fill: "currentColor",
2536
2570
  d: "M27.85 29H30l-6-15h-2.35l-6 15h2.15l1.6-4h6.85zm-7.65-6 2.62-6.56L25.45 23zM18 7V5h-7V2H9v3H2v2h10.74a14.71 14.71 0 0 1-3.19 6.18A13.5 13.5 0 0 1 7.26 9h-2.1a16.47 16.47 0 0 0 3 5.58A16.84 16.84 0 0 1 3 18l.75 1.86A18.47 18.47 0 0 0 9.53 16a16.92 16.92 0 0 0 5.76 3.84L16 18a14.48 14.48 0 0 1-5.12-3.37A17.64 17.64 0 0 0 14.8 7z"
2537
2571
  })
@@ -2539,16 +2573,16 @@ var SvgTranslator = (props) => /* @__PURE__ */ _jsx25("svg", _object_spread_prop
2539
2573
  var translator_default = SvgTranslator;
2540
2574
 
2541
2575
  // src/theme-default/components/SocialLinks/index.tsx
2542
- import { jsx as _jsx31, jsxs as _jsxs18 } from "react/jsx-runtime";
2543
- import { useState as useState7 } from "react";
2576
+ import { jsx as _jsx32, jsxs as _jsxs19 } from "react/jsx-runtime";
2577
+ import { useState as useState9 } from "react";
2544
2578
 
2545
2579
  // src/theme-default/components/SocialLinks/ShownLinks.tsx
2546
- import { jsx as _jsx29, jsxs as _jsxs17, Fragment as _Fragment2 } from "react/jsx-runtime";
2580
+ import { jsx as _jsx30, jsxs as _jsxs18, Fragment as _Fragment2 } from "react/jsx-runtime";
2547
2581
 
2548
2582
  // src/theme-default/assets/arrow-down.svg
2549
- import { jsx as _jsx26 } from "react/jsx-runtime";
2583
+ import { jsx as _jsx27 } from "react/jsx-runtime";
2550
2584
  import * as React11 from "react";
2551
- function _define_property15(obj, key, value) {
2585
+ function _define_property14(obj, key, value) {
2552
2586
  if (key in obj) {
2553
2587
  Object.defineProperty(obj, key, {
2554
2588
  value,
@@ -2561,7 +2595,7 @@ function _define_property15(obj, key, value) {
2561
2595
  }
2562
2596
  return obj;
2563
2597
  }
2564
- function _object_spread15(target) {
2598
+ function _object_spread14(target) {
2565
2599
  for (var i = 1; i < arguments.length; i++) {
2566
2600
  var source = arguments[i] != null ? arguments[i] : {};
2567
2601
  var ownKeys36 = Object.keys(source);
@@ -2571,7 +2605,7 @@ function _object_spread15(target) {
2571
2605
  }));
2572
2606
  }
2573
2607
  ownKeys36.forEach(function(key) {
2574
- _define_property15(target, key, source[key]);
2608
+ _define_property14(target, key, source[key]);
2575
2609
  });
2576
2610
  }
2577
2611
  return target;
@@ -2600,12 +2634,12 @@ function _object_spread_props10(target, source) {
2600
2634
  }
2601
2635
  return target;
2602
2636
  }
2603
- var SvgArrowDown = (props) => /* @__PURE__ */ _jsx26("svg", _object_spread_props10(_object_spread15({
2637
+ var SvgArrowDown = (props) => /* @__PURE__ */ _jsx27("svg", _object_spread_props10(_object_spread14({
2604
2638
  width: "1em",
2605
2639
  height: "1em",
2606
2640
  viewBox: "0 0 32 32"
2607
2641
  }, props), {
2608
- children: /* @__PURE__ */ _jsx26("path", {
2642
+ children: /* @__PURE__ */ _jsx27("path", {
2609
2643
  fill: "currentColor",
2610
2644
  d: "M16 22 6 12l1.4-1.4 8.6 8.6 8.6-8.6L26 12z"
2611
2645
  })
@@ -2613,223 +2647,223 @@ var SvgArrowDown = (props) => /* @__PURE__ */ _jsx26("svg", _object_spread_props
2613
2647
  var arrow_down_default = SvgArrowDown;
2614
2648
 
2615
2649
  // src/theme-default/components/SocialLinks/LinkContent.tsx
2616
- import { jsx as _jsx28, jsxs as _jsxs16 } from "react/jsx-runtime";
2617
- import { useState as useState6 } from "react";
2650
+ import { jsx as _jsx29, jsxs as _jsxs17 } from "react/jsx-runtime";
2651
+ import { useState as useState8 } from "react";
2618
2652
 
2619
2653
  // src/theme-default/components/SocialLinks/index.module.scss
2620
2654
  var index_module_default12 = { "social-links-icon": "social-links-icon_8cbd0", "socialLinksIcon": "social-links-icon_8cbd0", "menu-item": "menu-item_8cbd0", "menuItem": "menu-item_8cbd0" };
2621
2655
 
2622
2656
  // src/theme-default/components/SocialLinks/presetIcons.tsx
2623
- import { jsx as _jsx27, jsxs as _jsxs15 } from "react/jsx-runtime";
2657
+ import { jsx as _jsx28, jsxs as _jsxs16 } from "react/jsx-runtime";
2624
2658
  var presetIcons_default = {
2625
- discord: /* @__PURE__ */ _jsxs15("svg", {
2659
+ discord: /* @__PURE__ */ _jsxs16("svg", {
2626
2660
  role: "img",
2627
2661
  viewBox: "0 0 24 24",
2628
2662
  xmlns: "http://www.w3.org/2000/svg",
2629
2663
  children: [
2630
- /* @__PURE__ */ _jsx27("title", {
2664
+ /* @__PURE__ */ _jsx28("title", {
2631
2665
  children: "Discord"
2632
2666
  }),
2633
- /* @__PURE__ */ _jsx27("path", {
2667
+ /* @__PURE__ */ _jsx28("path", {
2634
2668
  d: "M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"
2635
2669
  })
2636
2670
  ]
2637
2671
  }),
2638
- facebook: /* @__PURE__ */ _jsxs15("svg", {
2672
+ facebook: /* @__PURE__ */ _jsxs16("svg", {
2639
2673
  role: "img",
2640
2674
  viewBox: "0 0 24 24",
2641
2675
  xmlns: "http://www.w3.org/2000/svg",
2642
2676
  children: [
2643
- /* @__PURE__ */ _jsx27("title", {
2677
+ /* @__PURE__ */ _jsx28("title", {
2644
2678
  children: "Facebook"
2645
2679
  }),
2646
- /* @__PURE__ */ _jsx27("path", {
2680
+ /* @__PURE__ */ _jsx28("path", {
2647
2681
  d: "M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"
2648
2682
  })
2649
2683
  ]
2650
2684
  }),
2651
- github: /* @__PURE__ */ _jsxs15("svg", {
2685
+ github: /* @__PURE__ */ _jsxs16("svg", {
2652
2686
  role: "img",
2653
2687
  viewBox: "0 0 24 24",
2654
2688
  xmlns: "http://www.w3.org/2000/svg",
2655
2689
  children: [
2656
- /* @__PURE__ */ _jsx27("title", {
2690
+ /* @__PURE__ */ _jsx28("title", {
2657
2691
  children: "GitHub"
2658
2692
  }),
2659
- /* @__PURE__ */ _jsx27("path", {
2693
+ /* @__PURE__ */ _jsx28("path", {
2660
2694
  d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"
2661
2695
  })
2662
2696
  ]
2663
2697
  }),
2664
- gitlab: /* @__PURE__ */ _jsxs15("svg", {
2698
+ gitlab: /* @__PURE__ */ _jsxs16("svg", {
2665
2699
  role: "img",
2666
2700
  viewBox: "0 0 24 24",
2667
2701
  xmlns: "http://www.w3.org/2000/svg",
2668
2702
  children: [
2669
- /* @__PURE__ */ _jsx27("title", {
2703
+ /* @__PURE__ */ _jsx28("title", {
2670
2704
  children: "GitLab"
2671
2705
  }),
2672
- /* @__PURE__ */ _jsx27("path", {
2706
+ /* @__PURE__ */ _jsx28("path", {
2673
2707
  fill: "currentColor",
2674
2708
  d: "m21.94 13.11l-1.05-3.22c0-.03-.01-.06-.02-.09l-2.11-6.48a.859.859 0 0 0-.8-.57c-.36 0-.68.25-.79.58l-2 6.17H8.84L6.83 3.33a.851.851 0 0 0-.79-.58c-.37 0-.69.25-.8.58L3.13 9.82v.01l-1.07 3.28c-.16.5.01 1.04.44 1.34l9.22 6.71c.17.12.39.12.56-.01l9.22-6.7c.43-.3.6-.84.44-1.34M8.15 10.45l2.57 7.91l-6.17-7.91m8.73 7.92l2.47-7.59l.1-.33h3.61l-5.59 7.16m4.1-13.67l1.81 5.56h-3.62m-1.3.95l-1.79 5.51L12 19.24l-2.86-8.79M6.03 3.94L7.84 9.5H4.23m-1.18 4.19c-.09-.07-.13-.19-.09-.29l.79-2.43l5.82 7.45m11.38-4.73l-6.51 4.73l.02-.03l5.79-7.42l.79 2.43c.04.1 0 .22-.09.29"
2675
2709
  })
2676
2710
  ]
2677
2711
  }),
2678
- instagram: /* @__PURE__ */ _jsxs15("svg", {
2712
+ instagram: /* @__PURE__ */ _jsxs16("svg", {
2679
2713
  role: "img",
2680
2714
  viewBox: "0 0 24 24",
2681
2715
  xmlns: "http://www.w3.org/2000/svg",
2682
2716
  children: [
2683
- /* @__PURE__ */ _jsx27("title", {
2717
+ /* @__PURE__ */ _jsx28("title", {
2684
2718
  children: "Instagram"
2685
2719
  }),
2686
- /* @__PURE__ */ _jsx27("path", {
2720
+ /* @__PURE__ */ _jsx28("path", {
2687
2721
  d: "M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"
2688
2722
  })
2689
2723
  ]
2690
2724
  }),
2691
- linkedin: /* @__PURE__ */ _jsxs15("svg", {
2725
+ linkedin: /* @__PURE__ */ _jsxs16("svg", {
2692
2726
  role: "img",
2693
2727
  viewBox: "0 0 24 24",
2694
2728
  xmlns: "http://www.w3.org/2000/svg",
2695
2729
  children: [
2696
- /* @__PURE__ */ _jsx27("title", {
2730
+ /* @__PURE__ */ _jsx28("title", {
2697
2731
  children: "LinkedIn"
2698
2732
  }),
2699
- /* @__PURE__ */ _jsx27("path", {
2733
+ /* @__PURE__ */ _jsx28("path", {
2700
2734
  d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"
2701
2735
  })
2702
2736
  ]
2703
2737
  }),
2704
- slack: /* @__PURE__ */ _jsxs15("svg", {
2738
+ slack: /* @__PURE__ */ _jsxs16("svg", {
2705
2739
  role: "img",
2706
2740
  viewBox: "0 0 24 24",
2707
2741
  xmlns: "http://www.w3.org/2000/svg",
2708
2742
  children: [
2709
- /* @__PURE__ */ _jsx27("title", {
2743
+ /* @__PURE__ */ _jsx28("title", {
2710
2744
  children: "Slack"
2711
2745
  }),
2712
- /* @__PURE__ */ _jsx27("path", {
2746
+ /* @__PURE__ */ _jsx28("path", {
2713
2747
  d: "M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"
2714
2748
  })
2715
2749
  ]
2716
2750
  }),
2717
- twitter: /* @__PURE__ */ _jsxs15("svg", {
2751
+ twitter: /* @__PURE__ */ _jsxs16("svg", {
2718
2752
  role: "img",
2719
2753
  viewBox: "0 0 24 24",
2720
2754
  xmlns: "http://www.w3.org/2000/svg",
2721
2755
  children: [
2722
- /* @__PURE__ */ _jsx27("title", {
2756
+ /* @__PURE__ */ _jsx28("title", {
2723
2757
  children: "Twitter"
2724
2758
  }),
2725
- /* @__PURE__ */ _jsx27("path", {
2759
+ /* @__PURE__ */ _jsx28("path", {
2726
2760
  d: "M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"
2727
2761
  })
2728
2762
  ]
2729
2763
  }),
2730
- youtube: /* @__PURE__ */ _jsxs15("svg", {
2764
+ youtube: /* @__PURE__ */ _jsxs16("svg", {
2731
2765
  role: "img",
2732
2766
  viewBox: "0 0 24 24",
2733
2767
  xmlns: "http://www.w3.org/2000/svg",
2734
2768
  children: [
2735
- /* @__PURE__ */ _jsx27("title", {
2769
+ /* @__PURE__ */ _jsx28("title", {
2736
2770
  children: "YouTube"
2737
2771
  }),
2738
- /* @__PURE__ */ _jsx27("path", {
2772
+ /* @__PURE__ */ _jsx28("path", {
2739
2773
  d: "M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"
2740
2774
  })
2741
2775
  ]
2742
2776
  }),
2743
- juejin: /* @__PURE__ */ _jsxs15("svg", {
2777
+ juejin: /* @__PURE__ */ _jsxs16("svg", {
2744
2778
  className: "icon",
2745
2779
  viewBox: "0 0 1024 1024",
2746
2780
  version: "1.1",
2747
2781
  xmlns: "http://www.w3.org/2000/svg",
2748
2782
  "data-spm-anchor-id": "a313x.7781069.0.i5",
2749
2783
  children: [
2750
- /* @__PURE__ */ _jsx27("path", {
2784
+ /* @__PURE__ */ _jsx28("path", {
2751
2785
  d: "M465.189 161.792c-22.967 18.14-44.325 35.109-47.397 37.742l-5.851 4.68 10.971 8.632c5.998 4.827 11.85 9.508 13.02 10.532 1.17 1.024 17.993 14.336 37.156 29.696l34.962 27.795 5.267-3.95c2.925-2.194 23.259-18.432 45.348-35.986 21.943-17.555 41.253-32.768 42.716-33.646 1.609-1.024 2.779-2.194 2.779-2.78 0-0.438-9.655-8.63-21.504-17.846-11.995-9.363-22.674-17.847-23.845-18.871-15.945-13.02-49.737-39.059-50.76-39.059-0.586 0.147-19.896 14.922-42.862 33.061z m233.325 180.37C507.465 493.275 508.928 492.105 505.417 489.911c-3.072-1.902-11.556-8.485-64.073-50.03-9.07-7.168-18.578-14.775-21.358-16.823-2.78-2.194-8.777-6.875-13.312-10.532-4.68-3.657-10.679-8.339-13.312-10.533-13.165-10.24-71.095-56.027-102.107-80.457-5.852-4.681-11.41-8.485-12.142-8.485-0.731 0-10.971 7.754-22.674 17.116-11.703 9.508-22.674 18.286-24.284 19.456-1.755 1.17-5.12 3.95-7.46 6.144-2.34 2.34-4.828 4.096-5.413 4.096-3.072 0-0.731 3.072 6.437 8.777 4.096 3.218 8.777 6.875 10.094 8.046 1.316 1.024 10.24 8.045 19.748 15.506s23.26 18.286 30.428 23.99c19.31 15.215 31.89 25.308 127.853 101.084 47.836 37.742 88.796 69.779 90.844 71.095 3.657 2.487 3.95 2.487 7.46-0.292a1041.42 1041.42 0 0 0 16.092-12.727c6.875-5.413 14.775-11.703 17.554-13.897 30.135-23.699 80.018-63.05 81.774-64.512 1.17-1.024 12.434-9.802 24.868-19.603s37.888-29.696 56.32-44.324c18.579-14.629 46.227-36.425 61.733-48.567 15.506-12.142 27.794-22.528 27.502-23.26-0.878-1.17-57.637-47.104-59.978-48.274-0.731-0.439-18.578 12.727-39.497 29.257z",
2752
2786
  "data-spm-anchor-id": "a313x.7781069.0.i2"
2753
2787
  }),
2754
- /* @__PURE__ */ _jsx27("path", {
2788
+ /* @__PURE__ */ _jsx28("path", {
2755
2789
  d: "M57.93 489.326c-15.215 12.288-28.527 23.405-29.697 24.576-2.34 2.194-5.412-0.44 80.018 66.852 33.207 26.185 32.622 25.747 57.637 45.495 10.386 8.192 36.279 28.672 57.783 45.495 38.18 30.135 44.91 35.401 52.663 41.545 2.048 1.756 22.967 18.14 46.372 36.572 23.26 18.432 74.167 58.514 112.933 89.088 38.912 30.573 71.095 55.734 71.826 56.027 0.732 0.293 7.46-4.389 14.921-10.386 21.797-16.97 90.259-70.949 101.523-79.872 5.705-4.535 12.873-10.24 15.945-12.58 3.072-2.488 6.436-5.12 7.314-5.852 0.878-0.878 11.85-9.509 24.283-19.31 20.773-16.091 59.1-46.226 64.366-50.615 1.17-1.024 5.12-4.096 8.777-6.875 3.657-2.78 7.9-6.29 9.509-7.607 1.609-1.317 14.775-11.703 29.257-23.113 29.11-22.82 42.277-33.207 88.503-69.632 17.262-13.605 32.475-25.454 33.646-26.478 2.486-2.048 31.451-24.869 44.617-35.255 4.827-3.657 9.07-7.168 9.508-7.607 0.44-0.585 5.998-4.827 12.435-9.8 6.436-4.828 13.165-10.24 15.067-11.85l3.365-2.926-9.948-7.753c-5.412-4.388-10.24-8.192-10.679-8.63-1.17-1.317-22.381-18.433-30.135-24.284-3.95-3.072-7.314-5.998-7.606-6.73-1.317-3.071-6.73 0.147-29.258 17.994-13.458 10.532-25.746 20.187-27.355 21.504-1.61 1.463-10.533 8.338-19.749 15.652-9.216 7.168-17.115 13.459-17.554 13.898-0.439 0.438-6.583 5.412-13.897 10.971-7.168 5.559-15.214 11.703-17.7 13.75-4.974 4.097-5.413 4.39-20.334 16.239-5.56 4.388-11.264 8.777-12.435 9.8-1.17 1.025-20.333 16.092-42.422 33.354-22.09 17.408-41.546 32.768-43.155 34.084-1.609 1.463-14.482 11.557-28.525 22.528s-40.814 32.037-59.539 46.812c-18.578 14.775-42.276 33.353-52.516 41.399s-23.26 18.285-28.965 22.82l-10.386 8.339-4.389-3.072c-2.34-1.756-4.68-3.511-5.12-3.95-0.439-0.439-4.973-4.096-10.24-8.046-11.849-9.216-14.482-11.264-16.676-13.166-0.878-0.877-4.243-3.51-7.46-5.851-3.22-2.487-6.145-4.681-6.584-5.12-0.439-0.439-6.875-5.705-14.482-11.703-7.607-5.851-14.921-11.556-16.091-12.58-1.317-1.17-17.116-13.605-35.255-27.795-17.993-14.19-35.109-27.648-38.035-29.842-5.705-4.681-33.499-26.624-125.074-98.743-34.523-27.209-72.704-57.344-84.846-66.852-49.737-39.498-55.15-43.594-56.905-43.447-0.877 0-14.043 10.24-29.257 22.528z",
2756
2790
  "data-spm-anchor-id": "a313x.7781069.0.i3"
2757
2791
  })
2758
2792
  ]
2759
2793
  }),
2760
- qq: /* @__PURE__ */ _jsx27("svg", {
2794
+ qq: /* @__PURE__ */ _jsx28("svg", {
2761
2795
  xmlns: "http://www.w3.org/2000/svg",
2762
2796
  "aria-hidden": "true",
2763
2797
  role: "img",
2764
2798
  className: "iconify iconify--ri",
2765
2799
  preserveAspectRatio: "xMidYMid meet",
2766
2800
  viewBox: "0 0 24 24",
2767
- children: /* @__PURE__ */ _jsx27("path", {
2801
+ children: /* @__PURE__ */ _jsx28("path", {
2768
2802
  fill: "currentColor",
2769
2803
  d: "M19.913 14.529a31.977 31.977 0 0 0-.675-1.886l-.91-2.246c0-.026.012-.468.012-.696C18.34 5.86 16.507 2 12 2S5.66 5.86 5.66 9.7c0 .229.011.671.012.697l-.91 2.246a32.777 32.777 0 0 0-.675 1.886c-.86 2.737-.581 3.87-.369 3.895c.455.054 1.771-2.06 1.771-2.06c0 1.224.637 2.822 2.016 3.976c-.515.157-1.147.399-1.554.695c-.365.267-.319.54-.253.65c.289.481 4.955.307 6.303.157c1.347.15 6.014.324 6.302-.158c.066-.11.112-.382-.253-.649c-.407-.296-1.039-.538-1.555-.696c1.379-1.153 2.016-2.751 2.016-3.976c0 0 1.316 2.115 1.771 2.06c.212-.025.49-1.157-.37-3.894"
2770
2804
  })
2771
2805
  }),
2772
- wechat: /* @__PURE__ */ _jsx27("svg", {
2806
+ wechat: /* @__PURE__ */ _jsx28("svg", {
2773
2807
  xmlns: "http://www.w3.org/2000/svg",
2774
2808
  "aria-hidden": "true",
2775
2809
  role: "img",
2776
2810
  className: "iconify iconify--ri",
2777
2811
  preserveAspectRatio: "xMidYMid meet",
2778
2812
  viewBox: "0 0 24 24",
2779
- children: /* @__PURE__ */ _jsx27("path", {
2813
+ children: /* @__PURE__ */ _jsx28("path", {
2780
2814
  fill: "currentColor",
2781
2815
  d: "M18.574 13.711a.91.91 0 0 0 .898-.898c0-.498-.399-.898-.898-.898s-.898.4-.898.898c0 .5.4.898.898.898zm-4.425 0a.91.91 0 0 0 .898-.898c0-.498-.4-.898-.898-.898c-.5 0-.898.4-.898.898c0 .5.399.898.898.898zm6.567 5.04a.347.347 0 0 0-.172.37c0 .048 0 .097.025.147c.098.417.294 1.081.294 1.106c0 .073.025.122.025.172a.22.22 0 0 1-.221.22c-.05 0-.074-.024-.123-.048l-1.449-.836a.799.799 0 0 0-.344-.098c-.073 0-.147 0-.196.024c-.688.197-1.4.295-2.161.295c-3.66 0-6.607-2.457-6.607-5.505c0-3.047 2.947-5.505 6.607-5.505c3.659 0 6.606 2.458 6.606 5.505c0 1.647-.884 3.146-2.284 4.154zM16.673 8.099a9.105 9.105 0 0 0-.28-.005c-4.174 0-7.606 2.86-7.606 6.505c0 .554.08 1.09.228 1.6h-.089a9.963 9.963 0 0 1-2.584-.368c-.074-.025-.148-.025-.222-.025a.832.832 0 0 0-.418.123l-1.748 1.005c-.05.025-.099.05-.148.05a.273.273 0 0 1-.27-.27c0-.074.024-.123.049-.197c.024-.024.246-.834.369-1.324c0-.05.024-.123.024-.172a.556.556 0 0 0-.221-.442C2.058 13.376 1 11.586 1 9.598C1 5.945 4.57 3 8.95 3c3.765 0 6.93 2.169 7.723 5.098zm-5.154.418c.573 0 1.026-.477 1.026-1.026c0-.573-.453-1.026-1.026-1.026s-1.026.453-1.026 1.026s.453 1.026 1.026 1.026zm-5.26 0c.573 0 1.027-.477 1.027-1.026c0-.573-.454-1.026-1.027-1.026c-.572 0-1.026.453-1.026 1.026s.454 1.026 1.026 1.026z"
2782
2816
  })
2783
2817
  }),
2784
- weibo: /* @__PURE__ */ _jsx27("svg", {
2818
+ weibo: /* @__PURE__ */ _jsx28("svg", {
2785
2819
  xmlns: "http://www.w3.org/2000/svg",
2786
2820
  "aria-hidden": "true",
2787
2821
  role: "img",
2788
2822
  className: "iconify iconify--ri",
2789
2823
  preserveAspectRatio: "xMidYMid meet",
2790
2824
  viewBox: "0 0 24 24",
2791
- children: /* @__PURE__ */ _jsx27("path", {
2825
+ children: /* @__PURE__ */ _jsx28("path", {
2792
2826
  fill: "currentColor",
2793
2827
  d: "M17.525 11.378c1.263.392 2.669 1.336 2.669 3.004c0 2.763-3.98 6.239-9.964 6.239c-4.565 0-9.23-2.213-9.23-5.852c0-1.902 1.204-4.102 3.277-6.177c2.773-2.77 6.004-4.033 7.219-2.816c.537.537.588 1.464.244 2.572c-.178.557.525.25.525.25c2.24-.938 4.196-.994 4.909.027c.38.543.343 1.306-.008 2.19c-.163.407.048.471.36.563zm-7.282 7.939c3.641-.362 6.401-2.592 6.167-4.983c-.237-2.391-3.382-4.038-7.023-3.677c-3.64.36-6.403 2.59-6.167 4.98c.237 2.394 3.382 4.039 7.023 3.68zM6.16 14.438c.754-1.527 2.712-2.39 4.446-1.94c1.793.463 2.707 2.154 1.976 3.8c-.744 1.682-2.882 2.578-4.695 1.993c-1.752-.566-2.493-2.294-1.727-3.853zm1.446 2.587c.568.257 1.325.013 1.676-.55c.346-.568.163-1.217-.407-1.459c-.563-.237-1.291.008-1.64.553c-.354.547-.189 1.202.371 1.456zm2.206-1.808c.219.092.501-.012.628-.231c.123-.22.044-.466-.178-.548c-.216-.084-.486.018-.613.232c-.123.214-.054.458.163.547zM19.873 9.5a.725.725 0 1 1-1.378-.451a1.38 1.38 0 0 0-.288-1.357a1.395 1.395 0 0 0-1.321-.425a.723.723 0 1 1-.303-1.416a2.836 2.836 0 0 1 3.29 3.649zm-3.916-6.575A5.831 5.831 0 0 1 21.5 4.72a5.836 5.836 0 0 1 1.22 5.704a.838.838 0 0 1-1.06.54a.844.844 0 0 1-.542-1.062a4.143 4.143 0 0 0-4.807-5.327a.845.845 0 0 1-.354-1.65z"
2794
2828
  })
2795
2829
  }),
2796
- zhihu: /* @__PURE__ */ _jsx27("svg", {
2830
+ zhihu: /* @__PURE__ */ _jsx28("svg", {
2797
2831
  xmlns: "http://www.w3.org/2000/svg",
2798
2832
  "aria-hidden": "true",
2799
2833
  role: "img",
2800
2834
  className: "iconify iconify--ri",
2801
2835
  preserveAspectRatio: "xMidYMid meet",
2802
2836
  viewBox: "0 0 24 24",
2803
- children: /* @__PURE__ */ _jsx27("path", {
2837
+ children: /* @__PURE__ */ _jsx28("path", {
2804
2838
  fill: "currentColor",
2805
2839
  d: "m12.344 17.963l-1.688 1.074l-2.131-3.35c-.44 1.402-1.172 2.665-2.139 3.825c-.402.483-.82.918-1.301 1.375c-.155.147-.775.717-.878.82l-1.414-1.414c.139-.139.787-.735.915-.856c.43-.408.795-.79 1.142-1.206c1.266-1.518 2.03-3.21 2.137-5.231H3v-2h4V7h-.868c-.689 1.266-1.558 2.222-2.618 2.857L2.486 8.143c1.395-.838 2.425-2.604 3.038-5.36l1.952.434c-.14.633-.303 1.227-.489 1.783H11.5v2H9v4h2.5v2H9.185l3.159 4.963zm3.838-.07L17.298 17H19V7h-4v10h.736l.446.893zM13 5h8v14h-3l-2.5 2l-1-2H13V5z"
2806
2840
  })
2807
2841
  }),
2808
- bilibili: /* @__PURE__ */ _jsx27("svg", {
2842
+ bilibili: /* @__PURE__ */ _jsx28("svg", {
2809
2843
  xmlns: "http://www.w3.org/2000/svg",
2810
2844
  "aria-hidden": "true",
2811
2845
  role: "img",
2812
2846
  className: "iconify iconify--ri",
2813
2847
  preserveAspectRatio: "xMidYMid meet",
2814
2848
  viewBox: "0 0 24 24",
2815
- children: /* @__PURE__ */ _jsx27("path", {
2849
+ children: /* @__PURE__ */ _jsx28("path", {
2816
2850
  fill: "currentColor",
2817
2851
  d: "M18.223 3.086a1.25 1.25 0 0 1 0 1.768L17.08 5.996h1.17A3.75 3.75 0 0 1 22 9.747v7.5a3.75 3.75 0 0 1-3.75 3.75H5.75A3.75 3.75 0 0 1 2 17.247v-7.5a3.75 3.75 0 0 1 3.75-3.75h1.166L5.775 4.855a1.25 1.25 0 1 1 1.767-1.768l2.652 2.652c.079.079.145.165.198.257h3.213c.053-.092.12-.18.199-.258l2.651-2.652a1.25 1.25 0 0 1 1.768 0zm.027 5.42H5.75a1.25 1.25 0 0 0-1.247 1.157l-.003.094v7.5c0 .659.51 1.199 1.157 1.246l.093.004h12.5a1.25 1.25 0 0 0 1.247-1.157l.003-.093v-7.5c0-.69-.56-1.25-1.25-1.25zm-10 2.5c.69 0 1.25.56 1.25 1.25v1.25a1.25 1.25 0 1 1-2.5 0v-1.25c0-.69.56-1.25 1.25-1.25zm7.5 0c.69 0 1.25.56 1.25 1.25v1.25a1.25 1.25 0 1 1-2.5 0v-1.25c0-.69.56-1.25 1.25-1.25z"
2818
2852
  })
2819
2853
  }),
2820
- lark: /* @__PURE__ */ _jsx27("svg", {
2854
+ lark: /* @__PURE__ */ _jsx28("svg", {
2821
2855
  xmlns: "http://www.w3.org/2000/svg",
2822
2856
  width: "48",
2823
2857
  height: "48",
2824
2858
  viewBox: "0 0 48 48",
2825
- children: /* @__PURE__ */ _jsxs15("g", {
2859
+ children: /* @__PURE__ */ _jsxs16("g", {
2826
2860
  fillRule: "evenodd",
2827
2861
  clipRule: "evenodd",
2828
2862
  children: [
2829
- /* @__PURE__ */ _jsx27("path", {
2863
+ /* @__PURE__ */ _jsx28("path", {
2830
2864
  d: "M41.0716 5.99409L3.31071 16.5187L12.3856 25.8126L20.7998 25.9594L30.4827 16.5187C30.2266 15.9943 30.0985 15.5552 30.0985 15.2013C30.0985 14.4074 30.4104 13.7786 30.8947 13.333C31.7241 12.57 32.7222 12.4558 33.8889 12.9905L41.0716 5.99409Z"
2831
2865
  }),
2832
- /* @__PURE__ */ _jsx27("path", {
2866
+ /* @__PURE__ */ _jsx28("path", {
2833
2867
  d: "M42.1021 6.72842L31.5775 44.4893L22.2836 35.4144L22.1367 27.0002L31.5115 17.4816C32.0195 17.8454 32.5743 18.0105 33.1759 17.9769C34.0784 17.9264 34.6614 17.3813 34.9349 17.0602C35.2083 16.7392 35.5293 16.2051 35.5025 15.4113C35.4847 14.8821 35.3109 14.3941 34.9812 13.9472L42.1021 6.72842Z"
2834
2868
  })
2835
2869
  ]
@@ -2838,7 +2872,7 @@ var presetIcons_default = {
2838
2872
  };
2839
2873
 
2840
2874
  // src/theme-default/components/SocialLinks/LinkContent.tsx
2841
- function _define_property16(obj, key, value) {
2875
+ function _define_property15(obj, key, value) {
2842
2876
  if (key in obj) {
2843
2877
  Object.defineProperty(obj, key, {
2844
2878
  value,
@@ -2851,7 +2885,7 @@ function _define_property16(obj, key, value) {
2851
2885
  }
2852
2886
  return obj;
2853
2887
  }
2854
- function _object_spread16(target) {
2888
+ function _object_spread15(target) {
2855
2889
  for (var i = 1; i < arguments.length; i++) {
2856
2890
  var source = arguments[i] != null ? arguments[i] : {};
2857
2891
  var ownKeys36 = Object.keys(source);
@@ -2861,7 +2895,7 @@ function _object_spread16(target) {
2861
2895
  }));
2862
2896
  }
2863
2897
  ownKeys36.forEach(function(key) {
2864
- _define_property16(target, key, source[key]);
2898
+ _define_property15(target, key, source[key]);
2865
2899
  });
2866
2900
  }
2867
2901
  return target;
@@ -2871,13 +2905,13 @@ var LinkContent = (props) => {
2871
2905
  const { icon, mode = "link", content } = link;
2872
2906
  const IconComp = typeof icon === "object" ? (
2873
2907
  // eslint-disable-next-line react/no-danger
2874
- /* @__PURE__ */ _jsx28("div", {
2908
+ /* @__PURE__ */ _jsx29("div", {
2875
2909
  dangerouslySetInnerHTML: {
2876
2910
  __html: icon.svg
2877
2911
  }
2878
2912
  })
2879
2913
  ) : presetIcons_default[icon];
2880
- const [contentVisible, setContentVisible] = useState6(false);
2914
+ const [contentVisible, setContentVisible] = useState8(false);
2881
2915
  const mouseEnterIcon = () => {
2882
2916
  setContentVisible(true);
2883
2917
  };
@@ -2885,31 +2919,31 @@ var LinkContent = (props) => {
2885
2919
  setContentVisible(false);
2886
2920
  };
2887
2921
  if (mode === "link") {
2888
- return /* @__PURE__ */ _jsx28("a", {
2922
+ return /* @__PURE__ */ _jsx29("a", {
2889
2923
  href: content,
2890
2924
  target: "_blank",
2891
2925
  rel: "noopener noreferrer",
2892
2926
  className: "social-links",
2893
- children: /* @__PURE__ */ _jsx28("div", {
2927
+ children: /* @__PURE__ */ _jsx29("div", {
2894
2928
  className: `${index_module_default12.socialLinksIcon}`,
2895
2929
  children: IconComp
2896
2930
  })
2897
2931
  }, content);
2898
2932
  }
2899
2933
  if (mode === "text") {
2900
- return /* @__PURE__ */ _jsxs16("div", {
2934
+ return /* @__PURE__ */ _jsxs17("div", {
2901
2935
  className: `${index_module_default12.socialLinksIcon} cursor-pointer relative mx-3`,
2902
2936
  onMouseEnter: mouseEnterIcon,
2903
2937
  onMouseLeave: mouseLeavePopper,
2904
2938
  children: [
2905
2939
  IconComp,
2906
- contentVisible ? /* @__PURE__ */ _jsx28("div", {
2907
- style: _object_spread16({
2940
+ contentVisible ? /* @__PURE__ */ _jsx29("div", {
2941
+ style: _object_spread15({
2908
2942
  boxShadow: "var(--rp-shadow-3)",
2909
2943
  border: "1px solid var(--rp-c-divider-light)"
2910
2944
  }, popperStyle),
2911
2945
  className: "z-1 p-3 w-50 absolute right-0 bg-white dark:bg-dark",
2912
- children: /* @__PURE__ */ _jsx28("div", {
2946
+ children: /* @__PURE__ */ _jsx29("div", {
2913
2947
  className: "text-md",
2914
2948
  children: content
2915
2949
  })
@@ -2918,18 +2952,18 @@ var LinkContent = (props) => {
2918
2952
  });
2919
2953
  }
2920
2954
  if (mode === "img") {
2921
- return /* @__PURE__ */ _jsxs16("div", {
2955
+ return /* @__PURE__ */ _jsxs17("div", {
2922
2956
  className: `${index_module_default12.socialLinksIcon} cursor-pointer relative`,
2923
2957
  onMouseEnter: mouseEnterIcon,
2924
2958
  onMouseLeave: mouseLeavePopper,
2925
2959
  children: [
2926
2960
  IconComp,
2927
- contentVisible ? /* @__PURE__ */ _jsx28("div", {
2961
+ contentVisible ? /* @__PURE__ */ _jsx29("div", {
2928
2962
  className: "break-all z-1 p-3 w-50 absolute right-0 rounded-xl",
2929
- style: _object_spread16({
2963
+ style: _object_spread15({
2930
2964
  boxShadow: "var(--rp-shadow-3)"
2931
2965
  }, popperStyle),
2932
- children: /* @__PURE__ */ _jsx28("img", {
2966
+ children: /* @__PURE__ */ _jsx29("img", {
2933
2967
  src: content,
2934
2968
  alt: "img"
2935
2969
  })
@@ -2937,44 +2971,44 @@ var LinkContent = (props) => {
2937
2971
  ]
2938
2972
  });
2939
2973
  }
2940
- return /* @__PURE__ */ _jsx28("div", {});
2974
+ return /* @__PURE__ */ _jsx29("div", {});
2941
2975
  };
2942
2976
 
2943
2977
  // src/theme-default/components/SocialLinks/ShownLinks.tsx
2944
2978
  var ShownLinks = (props) => {
2945
2979
  const { links, moreIconVisible = false, mouseEnter } = props;
2946
- return /* @__PURE__ */ _jsxs17(_Fragment2, {
2980
+ return /* @__PURE__ */ _jsxs18(_Fragment2, {
2947
2981
  children: [
2948
- /* @__PURE__ */ _jsx29("div", {
2982
+ /* @__PURE__ */ _jsx30("div", {
2949
2983
  className: "flex-center h-full gap-x-4 transition-colors duration-300 md:mr-2",
2950
- children: links.map((item, index) => /* @__PURE__ */ _jsx29(LinkContent, {
2984
+ children: links.map((item, index) => /* @__PURE__ */ _jsx30(LinkContent, {
2951
2985
  link: item,
2952
2986
  popperStyle: {
2953
2987
  top: "2.5rem"
2954
2988
  }
2955
2989
  }, index))
2956
2990
  }),
2957
- moreIconVisible ? /* @__PURE__ */ _jsx29("div", {
2991
+ moreIconVisible ? /* @__PURE__ */ _jsx30("div", {
2958
2992
  className: "md:ml-1",
2959
2993
  onMouseEnter: mouseEnter,
2960
- children: /* @__PURE__ */ _jsx29(arrow_down_default, {})
2994
+ children: /* @__PURE__ */ _jsx30(arrow_down_default, {})
2961
2995
  }) : null
2962
2996
  ]
2963
2997
  });
2964
2998
  };
2965
2999
 
2966
3000
  // src/theme-default/components/SocialLinks/HiddenLinks.tsx
2967
- import { jsx as _jsx30 } from "react/jsx-runtime";
3001
+ import { jsx as _jsx31 } from "react/jsx-runtime";
2968
3002
  var HiddenLinks = (props) => {
2969
3003
  const { links } = props;
2970
- return /* @__PURE__ */ _jsx30("div", {
3004
+ return /* @__PURE__ */ _jsx31("div", {
2971
3005
  style: {
2972
3006
  boxShadow: "var(--rp-shadow-3)",
2973
3007
  marginRight: "-2px",
2974
3008
  border: "1px solid var(--rp-c-divider-light)"
2975
3009
  },
2976
3010
  className: "absolute top-13 right-0 z-1 p-3 w-32 rounded-xl bg-white flex flex-wrap gap-4",
2977
- children: links.map((item) => /* @__PURE__ */ _jsx30(LinkContent, {
3011
+ children: links.map((item) => /* @__PURE__ */ _jsx31(LinkContent, {
2978
3012
  link: item,
2979
3013
  popperStyle: {
2980
3014
  top: "1.25rem"
@@ -2995,17 +3029,17 @@ var SocialLinks = ({ socialLinks }) => {
2995
3029
  hiddenLinks.push(item);
2996
3030
  }
2997
3031
  });
2998
- const [moreLinksVisible, setMoreLinksVisible] = useState7(false);
2999
- return /* @__PURE__ */ _jsxs18("div", {
3032
+ const [moreLinksVisible, setMoreLinksVisible] = useState9(false);
3033
+ return /* @__PURE__ */ _jsxs19("div", {
3000
3034
  className: `social-links ${index_module_default12.menuItem} flex-center relative`,
3001
3035
  onMouseLeave: () => setMoreLinksVisible(false),
3002
3036
  children: [
3003
- /* @__PURE__ */ _jsx31(ShownLinks, {
3037
+ /* @__PURE__ */ _jsx32(ShownLinks, {
3004
3038
  links: shownLinks,
3005
3039
  moreIconVisible: moreThanThree,
3006
3040
  mouseEnter: () => setMoreLinksVisible(true)
3007
3041
  }),
3008
- moreLinksVisible ? /* @__PURE__ */ _jsx31(HiddenLinks, {
3042
+ moreLinksVisible ? /* @__PURE__ */ _jsx32(HiddenLinks, {
3009
3043
  links: hiddenLinks
3010
3044
  }) : null
3011
3045
  ]
@@ -3016,8 +3050,8 @@ var SocialLinks = ({ socialLinks }) => {
3016
3050
  var index_module_default13 = { "navScreen": "navScreen_8624f", "active": "active_8624f", "container": "container_8624f", "navMenu": "navMenu_8624f", "navMenuItem": "navMenuItem_8624f", "navAppearance": "navAppearance_8624f", "socialAndAppearance": "socialAndAppearance_8624f" };
3017
3051
 
3018
3052
  // src/theme-default/components/NavScreen/index.tsx
3019
- import { NoSSR, ThemeContext as ThemeContext2 } from "@/runtime";
3020
- function _define_property17(obj, key, value) {
3053
+ import { NoSSR, useLang as useLang2, useVersion as useVersion2 } from "@/runtime";
3054
+ function _define_property16(obj, key, value) {
3021
3055
  if (key in obj) {
3022
3056
  Object.defineProperty(obj, key, {
3023
3057
  value,
@@ -3030,7 +3064,7 @@ function _define_property17(obj, key, value) {
3030
3064
  }
3031
3065
  return obj;
3032
3066
  }
3033
- function _object_spread17(target) {
3067
+ function _object_spread16(target) {
3034
3068
  for (var i = 1; i < arguments.length; i++) {
3035
3069
  var source = arguments[i] != null ? arguments[i] : {};
3036
3070
  var ownKeys36 = Object.keys(source);
@@ -3040,7 +3074,7 @@ function _object_spread17(target) {
3040
3074
  }));
3041
3075
  }
3042
3076
  ownKeys36.forEach(function(key) {
3043
- _define_property17(target, key, source[key]);
3077
+ _define_property16(target, key, source[key]);
3044
3078
  });
3045
3079
  }
3046
3080
  return target;
@@ -3070,19 +3104,20 @@ function _object_spread_props11(target, source) {
3070
3104
  return target;
3071
3105
  }
3072
3106
  var NavScreenTranslations = ({ translationMenuData }) => {
3073
- return /* @__PURE__ */ _jsx32("div", {
3107
+ return /* @__PURE__ */ _jsx33("div", {
3074
3108
  className: `${index_module_default13.navTranslations} flex text-sm font-bold justify-center`,
3075
- children: /* @__PURE__ */ _jsx32("div", {
3109
+ children: /* @__PURE__ */ _jsx33("div", {
3076
3110
  className: "mx-1.5 my-1",
3077
- children: /* @__PURE__ */ _jsx32(NavScreenMenuGroup, _object_spread17({}, translationMenuData))
3111
+ children: /* @__PURE__ */ _jsx33(NavScreenMenuGroup, _object_spread16({}, translationMenuData))
3078
3112
  })
3079
3113
  });
3080
3114
  };
3081
3115
  function NavScreen(props) {
3082
3116
  var _siteData_themeConfig, _localesData_find;
3083
- const { isScreenOpen, localeData, siteData: siteData2, pathname, setLogo } = props;
3117
+ const { isScreenOpen, localeData, siteData: siteData2, pathname } = props;
3118
+ const currentVersion = useVersion2();
3119
+ const currentLang = useLang2();
3084
3120
  const screen = useRef4(null);
3085
- const { theme } = useContext2(ThemeContext2);
3086
3121
  const localesData = siteData2.themeConfig.locales || [];
3087
3122
  const hasMultiLanguage = localesData.length > 1;
3088
3123
  const menuItems = localeData.nav || [];
@@ -3090,9 +3125,10 @@ function NavScreen(props) {
3090
3125
  const socialLinks = (siteData2 === null || siteData2 === void 0 ? void 0 : (_siteData_themeConfig = siteData2.themeConfig) === null || _siteData_themeConfig === void 0 ? void 0 : _siteData_themeConfig.socialLinks) || [];
3091
3126
  const hasSocialLinks = socialLinks.length > 0;
3092
3127
  const langs = localesData.map((item) => item.lang || "zh") || [];
3093
- const { base, logo } = siteData2;
3128
+ const { base, lang: defaultLang, multiVersion } = siteData2;
3129
+ const { default: defaultVersion } = multiVersion;
3094
3130
  const translationMenuData = hasMultiLanguage ? {
3095
- text: /* @__PURE__ */ _jsx32(translator_default, {
3131
+ text: /* @__PURE__ */ _jsx33(translator_default, {
3096
3132
  style: {
3097
3133
  width: "18px",
3098
3134
  height: "18px"
@@ -3100,43 +3136,46 @@ function NavScreen(props) {
3100
3136
  }),
3101
3137
  items: localesData.map((item) => ({
3102
3138
  text: item === null || item === void 0 ? void 0 : item.label,
3103
- link: `/${item.lang}`
3139
+ link: replaceLang(pathname, {
3140
+ current: currentLang,
3141
+ target: item.lang,
3142
+ default: defaultLang
3143
+ }, {
3144
+ current: currentVersion,
3145
+ default: defaultVersion
3146
+ }, base)
3104
3147
  })),
3105
3148
  activeValue: (_localesData_find = localesData.find((item) => item.lang === localeData.lang)) === null || _localesData_find === void 0 ? void 0 : _localesData_find.label
3106
3149
  } : null;
3107
3150
  const NavScreenAppearance = () => {
3108
- return /* @__PURE__ */ _jsx32("div", {
3151
+ return /* @__PURE__ */ _jsx33("div", {
3109
3152
  className: `mt-2 ${index_module_default13.navAppearance} flex justify-center`,
3110
- children: /* @__PURE__ */ _jsx32(NoSSR, {
3111
- children: /* @__PURE__ */ _jsx32(SwitchAppearance, {
3112
- onClick: () => {
3113
- setLogo(getLogoUrl(logo, theme === "dark" ? "light" : "dark"));
3114
- }
3115
- })
3153
+ children: /* @__PURE__ */ _jsx33(NoSSR, {
3154
+ children: /* @__PURE__ */ _jsx33(SwitchAppearance, {})
3116
3155
  })
3117
3156
  });
3118
3157
  };
3119
3158
  const NavScreenMenu = ({ menuItems: menuItems2 }) => {
3120
- return /* @__PURE__ */ _jsx32("div", {
3159
+ return /* @__PURE__ */ _jsx33("div", {
3121
3160
  className: index_module_default13.navMenu,
3122
- children: menuItems2.map((item, index) => {
3123
- return /* @__PURE__ */ _jsx32("div", {
3161
+ children: menuItems2.map((item) => {
3162
+ return /* @__PURE__ */ _jsx33("div", {
3124
3163
  className: `${index_module_default13.navMenuItem} w-full`,
3125
- children: "link" in item ? /* @__PURE__ */ _jsx32(NavMenuSingleItem, _object_spread17({
3164
+ children: "link" in item ? /* @__PURE__ */ _jsx33(NavMenuSingleItem, _object_spread16({
3126
3165
  pathname,
3127
3166
  base,
3128
3167
  langs
3129
- }, item), index) : /* @__PURE__ */ _jsx32("div", {
3168
+ }, item), item.text) : /* @__PURE__ */ _jsx33("div", {
3130
3169
  className: "mx-3 last:mr-0",
3131
- children: /* @__PURE__ */ _jsx32(NavScreenMenuGroup, _object_spread_props11(_object_spread17({}, item), {
3170
+ children: /* @__PURE__ */ _jsx33(NavScreenMenuGroup, _object_spread_props11(_object_spread16({}, item), {
3132
3171
  items: "items" in item ? item.items : item
3133
3172
  }))
3134
- }, index)
3135
- }, index);
3173
+ }, item.text)
3174
+ }, item.text);
3136
3175
  })
3137
3176
  });
3138
3177
  };
3139
- useEffect10(() => {
3178
+ useEffect12(() => {
3140
3179
  screen.current && isScreenOpen && disableBodyScroll(screen.current, {
3141
3180
  reserveScrollBarGap: true
3142
3181
  });
@@ -3146,24 +3185,24 @@ function NavScreen(props) {
3146
3185
  }, [
3147
3186
  isScreenOpen
3148
3187
  ]);
3149
- return /* @__PURE__ */ _jsx32("div", {
3188
+ return /* @__PURE__ */ _jsx33("div", {
3150
3189
  className: `${index_module_default13.navScreen} ${isScreenOpen ? index_module_default13.active : ""}`,
3151
3190
  ref: screen,
3152
3191
  id: "navScreen",
3153
- children: /* @__PURE__ */ _jsxs19("div", {
3192
+ children: /* @__PURE__ */ _jsxs20("div", {
3154
3193
  className: index_module_default13.container,
3155
3194
  children: [
3156
- /* @__PURE__ */ _jsx32(NavScreenMenu, {
3195
+ /* @__PURE__ */ _jsx33(NavScreenMenu, {
3157
3196
  menuItems
3158
3197
  }),
3159
- /* @__PURE__ */ _jsxs19("div", {
3198
+ /* @__PURE__ */ _jsxs20("div", {
3160
3199
  className: "flex-center flex-col gap-2",
3161
3200
  children: [
3162
- hasAppearanceSwitch && /* @__PURE__ */ _jsx32(NavScreenAppearance, {}),
3163
- hasMultiLanguage && /* @__PURE__ */ _jsx32(NavScreenTranslations, {
3201
+ hasAppearanceSwitch && /* @__PURE__ */ _jsx33(NavScreenAppearance, {}),
3202
+ hasMultiLanguage && /* @__PURE__ */ _jsx33(NavScreenTranslations, {
3164
3203
  translationMenuData
3165
3204
  }),
3166
- hasSocialLinks && /* @__PURE__ */ _jsx32(SocialLinks, {
3205
+ hasSocialLinks && /* @__PURE__ */ _jsx33(SocialLinks, {
3167
3206
  socialLinks
3168
3207
  })
3169
3208
  ]
@@ -3174,9 +3213,9 @@ function NavScreen(props) {
3174
3213
  }
3175
3214
 
3176
3215
  // src/theme-default/logic/useNav.ts
3177
- import { useState as useState8 } from "react";
3216
+ import { useState as useState10 } from "react";
3178
3217
  function useNav() {
3179
- const [isScreenOpen, setIsScreenOpen] = useState8(false);
3218
+ const [isScreenOpen, setIsScreenOpen] = useState10(false);
3180
3219
  function openScreen() {
3181
3220
  setIsScreenOpen(true);
3182
3221
  window.addEventListener("resize", closeScreenOnTabletWindow);
@@ -3204,9 +3243,9 @@ function useNav() {
3204
3243
  }
3205
3244
 
3206
3245
  // src/theme-default/assets/small-menu.svg
3207
- import { jsx as _jsx33, jsxs as _jsxs20 } from "react/jsx-runtime";
3246
+ import { jsx as _jsx34, jsxs as _jsxs21 } from "react/jsx-runtime";
3208
3247
  import * as React12 from "react";
3209
- function _define_property18(obj, key, value) {
3248
+ function _define_property17(obj, key, value) {
3210
3249
  if (key in obj) {
3211
3250
  Object.defineProperty(obj, key, {
3212
3251
  value,
@@ -3219,7 +3258,7 @@ function _define_property18(obj, key, value) {
3219
3258
  }
3220
3259
  return obj;
3221
3260
  }
3222
- function _object_spread18(target) {
3261
+ function _object_spread17(target) {
3223
3262
  for (var i = 1; i < arguments.length; i++) {
3224
3263
  var source = arguments[i] != null ? arguments[i] : {};
3225
3264
  var ownKeys36 = Object.keys(source);
@@ -3229,7 +3268,7 @@ function _object_spread18(target) {
3229
3268
  }));
3230
3269
  }
3231
3270
  ownKeys36.forEach(function(key) {
3232
- _define_property18(target, key, source[key]);
3271
+ _define_property17(target, key, source[key]);
3233
3272
  });
3234
3273
  }
3235
3274
  return target;
@@ -3258,25 +3297,25 @@ function _object_spread_props12(target, source) {
3258
3297
  }
3259
3298
  return target;
3260
3299
  }
3261
- var SvgSmallMenu = (props) => /* @__PURE__ */ _jsxs20("svg", _object_spread_props12(_object_spread18({
3300
+ var SvgSmallMenu = (props) => /* @__PURE__ */ _jsxs21("svg", _object_spread_props12(_object_spread17({
3262
3301
  xmlns: "http://www.w3.org/2000/svg",
3263
3302
  width: 32,
3264
3303
  height: 32
3265
3304
  }, props), {
3266
3305
  children: [
3267
- /* @__PURE__ */ _jsx33("circle", {
3306
+ /* @__PURE__ */ _jsx34("circle", {
3268
3307
  cx: 8,
3269
3308
  cy: 16,
3270
3309
  r: 2,
3271
3310
  fill: "currentColor"
3272
3311
  }),
3273
- /* @__PURE__ */ _jsx33("circle", {
3312
+ /* @__PURE__ */ _jsx34("circle", {
3274
3313
  cx: 16,
3275
3314
  cy: 16,
3276
3315
  r: 2,
3277
3316
  fill: "currentColor"
3278
3317
  }),
3279
- /* @__PURE__ */ _jsx33("circle", {
3318
+ /* @__PURE__ */ _jsx34("circle", {
3280
3319
  cx: 24,
3281
3320
  cy: 16,
3282
3321
  r: 2,
@@ -3291,21 +3330,20 @@ var index_module_default14 = { "navHamburger": "navHamburger_2498a", "container"
3291
3330
 
3292
3331
  // src/theme-default/components/NavHambmger/index.tsx
3293
3332
  function NavHamburger(props) {
3294
- const { localeData, siteData: siteData2, pathname, setLogo } = props;
3333
+ const { localeData, siteData: siteData2, pathname } = props;
3295
3334
  const { isScreenOpen, toggleScreen } = useNav();
3296
- return /* @__PURE__ */ _jsxs21(Fragment2, {
3335
+ return /* @__PURE__ */ _jsxs22(Fragment2, {
3297
3336
  children: [
3298
- /* @__PURE__ */ _jsx34(NavScreen, {
3337
+ /* @__PURE__ */ _jsx35(NavScreen, {
3299
3338
  isScreenOpen,
3300
3339
  localeData,
3301
3340
  siteData: siteData2,
3302
- pathname,
3303
- setLogo
3341
+ pathname
3304
3342
  }),
3305
- /* @__PURE__ */ _jsx34("button", {
3343
+ /* @__PURE__ */ _jsx35("button", {
3306
3344
  onClick: toggleScreen,
3307
3345
  className: `${isScreenOpen ? index_module_default14.active : ""} ${index_module_default14.navHamburger} text-gray-500`,
3308
- children: /* @__PURE__ */ _jsx34(small_menu_default, {
3346
+ children: /* @__PURE__ */ _jsx35(small_menu_default, {
3309
3347
  fill: "currentColor"
3310
3348
  })
3311
3349
  })
@@ -3314,10 +3352,10 @@ function NavHamburger(props) {
3314
3352
  }
3315
3353
 
3316
3354
  // src/theme-default/components/Nav/NavMenuGroup.tsx
3317
- import { jsx as _jsx35, jsxs as _jsxs22, Fragment as _Fragment3 } from "react/jsx-runtime";
3318
- import { useState as useState9 } from "react";
3355
+ import { jsx as _jsx36, jsxs as _jsxs23, Fragment as _Fragment3 } from "react/jsx-runtime";
3356
+ import { useState as useState11 } from "react";
3319
3357
  import { withoutBase as withoutBase2 } from "@rspress/shared";
3320
- function _define_property19(obj, key, value) {
3358
+ function _define_property18(obj, key, value) {
3321
3359
  if (key in obj) {
3322
3360
  Object.defineProperty(obj, key, {
3323
3361
  value,
@@ -3330,7 +3368,7 @@ function _define_property19(obj, key, value) {
3330
3368
  }
3331
3369
  return obj;
3332
3370
  }
3333
- function _object_spread19(target) {
3371
+ function _object_spread18(target) {
3334
3372
  for (var i = 1; i < arguments.length; i++) {
3335
3373
  var source = arguments[i] != null ? arguments[i] : {};
3336
3374
  var ownKeys36 = Object.keys(source);
@@ -3340,7 +3378,7 @@ function _object_spread19(target) {
3340
3378
  }));
3341
3379
  }
3342
3380
  ownKeys36.forEach(function(key) {
3343
- _define_property19(target, key, source[key]);
3381
+ _define_property18(target, key, source[key]);
3344
3382
  });
3345
3383
  }
3346
3384
  return target;
@@ -3370,16 +3408,16 @@ function _object_spread_props13(target, source) {
3370
3408
  return target;
3371
3409
  }
3372
3410
  function ActiveGroupItem({ item }) {
3373
- return /* @__PURE__ */ _jsxs22("div", {
3411
+ return /* @__PURE__ */ _jsxs23("div", {
3374
3412
  className: "rounded-2xl my-1 flex",
3375
3413
  style: {
3376
3414
  padding: "0.4rem 1.5rem 0.4rem 0.75rem"
3377
3415
  },
3378
3416
  children: [
3379
- item.tag && /* @__PURE__ */ _jsx35(Tag, {
3417
+ item.tag && /* @__PURE__ */ _jsx36(Tag, {
3380
3418
  tag: item.tag
3381
3419
  }),
3382
- /* @__PURE__ */ _jsx35("span", {
3420
+ /* @__PURE__ */ _jsx36("span", {
3383
3421
  className: "text-brand",
3384
3422
  children: item.text
3385
3423
  })
@@ -3387,22 +3425,22 @@ function ActiveGroupItem({ item }) {
3387
3425
  }, item.link);
3388
3426
  }
3389
3427
  function NormalGroupItem({ item }) {
3390
- return /* @__PURE__ */ _jsx35("div", {
3428
+ return /* @__PURE__ */ _jsx36("div", {
3391
3429
  className: "font-medium my-1",
3392
- children: /* @__PURE__ */ _jsx35(Link, {
3430
+ children: /* @__PURE__ */ _jsx36(Link, {
3393
3431
  href: item.link,
3394
- children: /* @__PURE__ */ _jsx35("div", {
3432
+ children: /* @__PURE__ */ _jsx36("div", {
3395
3433
  className: "rounded-2xl hover:bg-mute",
3396
3434
  style: {
3397
3435
  padding: "0.4rem 1.5rem 0.4rem 0.75rem"
3398
3436
  },
3399
- children: /* @__PURE__ */ _jsxs22("div", {
3437
+ children: /* @__PURE__ */ _jsxs23("div", {
3400
3438
  className: "flex",
3401
3439
  children: [
3402
- item.tag && /* @__PURE__ */ _jsx35(Tag, {
3440
+ item.tag && /* @__PURE__ */ _jsx36(Tag, {
3403
3441
  tag: item.tag
3404
3442
  }),
3405
- /* @__PURE__ */ _jsx35("span", {
3443
+ /* @__PURE__ */ _jsx36("span", {
3406
3444
  children: item.text
3407
3445
  })
3408
3446
  ]
@@ -3413,22 +3451,22 @@ function NormalGroupItem({ item }) {
3413
3451
  }
3414
3452
  function NavMenuGroup(item) {
3415
3453
  const { activeValue, isTranslation, items: groupItems, base = "", link = "", pathname = "" } = item;
3416
- const [isOpen, setIsOpen] = useState9(false);
3454
+ const [isOpen, setIsOpen] = useState11(false);
3417
3455
  const renderLinkItem = (item2) => {
3418
3456
  const isLinkActive = new RegExp(item2.activeMatch || item2.link).test(withoutBase2(pathname, base));
3419
3457
  if (activeValue === item2.text || !activeValue && isLinkActive) {
3420
- return /* @__PURE__ */ _jsx35(ActiveGroupItem, {
3458
+ return /* @__PURE__ */ _jsx36(ActiveGroupItem, {
3421
3459
  item: item2
3422
3460
  }, item2.link);
3423
3461
  }
3424
- return /* @__PURE__ */ _jsx35(NormalGroupItem, {
3462
+ return /* @__PURE__ */ _jsx36(NormalGroupItem, {
3425
3463
  item: item2
3426
3464
  }, item2.link);
3427
3465
  };
3428
3466
  const renderGroup = (item2) => {
3429
- return /* @__PURE__ */ _jsxs22("div", {
3467
+ return /* @__PURE__ */ _jsxs23("div", {
3430
3468
  children: [
3431
- "link" in item2 ? renderLinkItem(item2) : /* @__PURE__ */ _jsx35("p", {
3469
+ "link" in item2 ? renderLinkItem(item2) : /* @__PURE__ */ _jsx36("p", {
3432
3470
  className: "font-bold text-gray-400 my-1 not:first:border",
3433
3471
  children: item2.text
3434
3472
  }),
@@ -3436,30 +3474,30 @@ function NavMenuGroup(item) {
3436
3474
  ]
3437
3475
  });
3438
3476
  };
3439
- return /* @__PURE__ */ _jsxs22("div", {
3477
+ return /* @__PURE__ */ _jsxs23("div", {
3440
3478
  className: "relative flex-center h-14",
3441
3479
  onMouseLeave: () => setIsOpen(false),
3442
3480
  children: [
3443
- /* @__PURE__ */ _jsx35("button", {
3481
+ /* @__PURE__ */ _jsx36("button", {
3444
3482
  onMouseEnter: () => setIsOpen(true),
3445
3483
  className: "nav-menu-group-button flex-center items-center font-medium text-sm text-text-1 hover:text-text-2 transition-colors duration-200",
3446
3484
  children: link ? (
3447
3485
  // @ts-expect-error item.text may be ReactElement
3448
- /* @__PURE__ */ _jsx35(NavMenuSingleItem, _object_spread_props13(_object_spread19({}, item), {
3449
- rightIcon: /* @__PURE__ */ _jsx35(down_default, {})
3486
+ /* @__PURE__ */ _jsx36(NavMenuSingleItem, _object_spread_props13(_object_spread18({}, item), {
3487
+ rightIcon: /* @__PURE__ */ _jsx36(down_default, {})
3450
3488
  }))
3451
- ) : /* @__PURE__ */ _jsxs22(_Fragment3, {
3489
+ ) : /* @__PURE__ */ _jsxs23(_Fragment3, {
3452
3490
  children: [
3453
- /* @__PURE__ */ _jsxs22("span", {
3491
+ /* @__PURE__ */ _jsxs23("span", {
3454
3492
  className: "text-sm font-medium flex",
3455
3493
  style: {
3456
3494
  marginRight: "2px"
3457
3495
  },
3458
3496
  children: [
3459
- /* @__PURE__ */ _jsx35(Tag, {
3497
+ /* @__PURE__ */ _jsx36(Tag, {
3460
3498
  tag: item.tag
3461
3499
  }),
3462
- isTranslation ? /* @__PURE__ */ _jsx35(translator_default, {
3500
+ isTranslation ? /* @__PURE__ */ _jsx36(translator_default, {
3463
3501
  style: {
3464
3502
  with: "18px",
3465
3503
  height: "18px"
@@ -3467,11 +3505,11 @@ function NavMenuGroup(item) {
3467
3505
  }) : item.text
3468
3506
  ]
3469
3507
  }),
3470
- /* @__PURE__ */ _jsx35(down_default, {})
3508
+ /* @__PURE__ */ _jsx36(down_default, {})
3471
3509
  ]
3472
3510
  })
3473
3511
  }),
3474
- /* @__PURE__ */ _jsx35("div", {
3512
+ /* @__PURE__ */ _jsx36("div", {
3475
3513
  className: "nav-menu-group-content absolute mx-0.8 transition-opacity duration-300",
3476
3514
  style: {
3477
3515
  opacity: isOpen ? 1 : 0,
@@ -3479,7 +3517,7 @@ function NavMenuGroup(item) {
3479
3517
  right: 0,
3480
3518
  top: "52px"
3481
3519
  },
3482
- children: /* @__PURE__ */ _jsx35("div", {
3520
+ children: /* @__PURE__ */ _jsx36("div", {
3483
3521
  className: "p-3 pr-2 w-full h-full max-h-100vh whitespace-nowrap",
3484
3522
  style: {
3485
3523
  boxShadow: "var(--rp-shadow-3)",
@@ -3489,7 +3527,7 @@ function NavMenuGroup(item) {
3489
3527
  background: "var(--rp-c-bg)"
3490
3528
  },
3491
3529
  children: groupItems.map((item2) => {
3492
- return /* @__PURE__ */ _jsx35("div", {
3530
+ return /* @__PURE__ */ _jsx36("div", {
3493
3531
  children: "items" in item2 ? renderGroup(item2) : renderLinkItem(item2)
3494
3532
  }, item2.text);
3495
3533
  })
@@ -3500,8 +3538,8 @@ function NavMenuGroup(item) {
3500
3538
  }
3501
3539
 
3502
3540
  // src/theme-default/components/Nav/index.tsx
3503
- import { ThemeContext as ThemeContext3, usePageData as usePageData11, useVersion as useVersion2, withBase as withBase8 } from "@/runtime";
3504
- function _define_property20(obj, key, value) {
3541
+ import { usePageData as usePageData12, useVersion as useVersion3 } from "@/runtime";
3542
+ function _define_property19(obj, key, value) {
3505
3543
  if (key in obj) {
3506
3544
  Object.defineProperty(obj, key, {
3507
3545
  value,
@@ -3514,7 +3552,7 @@ function _define_property20(obj, key, value) {
3514
3552
  }
3515
3553
  return obj;
3516
3554
  }
3517
- function _object_spread20(target) {
3555
+ function _object_spread19(target) {
3518
3556
  for (var i = 1; i < arguments.length; i++) {
3519
3557
  var source = arguments[i] != null ? arguments[i] : {};
3520
3558
  var ownKeys36 = Object.keys(source);
@@ -3524,7 +3562,7 @@ function _object_spread20(target) {
3524
3562
  }));
3525
3563
  }
3526
3564
  ownKeys36.forEach(function(key) {
3527
- _define_property20(target, key, source[key]);
3565
+ _define_property19(target, key, source[key]);
3528
3566
  });
3529
3567
  }
3530
3568
  return target;
@@ -3554,28 +3592,11 @@ function _object_spread_props14(target, source) {
3554
3592
  return target;
3555
3593
  }
3556
3594
  var DEFAULT_NAV_POSTION = "right";
3557
- var NavBarTitle = ({ title, langRoutePrefix, logo }) => {
3558
- return /* @__PURE__ */ _jsx36("div", {
3559
- className: `${index_module_default11.navBarTitle}`,
3560
- children: /* @__PURE__ */ _jsx36("a", {
3561
- href: withBase8(langRoutePrefix),
3562
- className: "flex items-center w-full h-full text-base font-semibold transition-opacity duration-300 hover:opacity-60",
3563
- children: logo ? /* @__PURE__ */ _jsx36("img", {
3564
- src: logo,
3565
- alt: "logo",
3566
- id: "logo",
3567
- className: "w-24 mr-4 rspress-logo"
3568
- }) : /* @__PURE__ */ _jsx36("span", {
3569
- children: title
3570
- })
3571
- })
3572
- });
3573
- };
3574
3595
  var NavTranslations = ({ translationMenuData }) => {
3575
- return /* @__PURE__ */ _jsx36("div", {
3576
- className: `translation ${index_module_default11.menuItem} flex text-sm font-bold items-center px-3 py-2`,
3577
- children: /* @__PURE__ */ _jsx36("div", {
3578
- children: /* @__PURE__ */ _jsx36(NavMenuGroup, _object_spread_props14(_object_spread20({}, translationMenuData), {
3596
+ return /* @__PURE__ */ _jsx37("div", {
3597
+ className: `translation ${index_module_default4.menuItem} flex text-sm font-bold items-center px-3 py-2`,
3598
+ children: /* @__PURE__ */ _jsx37("div", {
3599
+ children: /* @__PURE__ */ _jsx37(NavMenuGroup, _object_spread_props14(_object_spread19({}, translationMenuData), {
3579
3600
  isTranslation: true
3580
3601
  }))
3581
3602
  })
@@ -3584,13 +3605,13 @@ var NavTranslations = ({ translationMenuData }) => {
3584
3605
  function Nav2(props) {
3585
3606
  var _localeLanguages_find, _siteData_themeConfig;
3586
3607
  const { beforeNavTitle, afterNavTitle, beforeNav } = props;
3587
- const { siteData: siteData2, page } = usePageData11();
3588
- const { logo: rawLogo, base } = siteData2;
3589
- const { pathname } = useLocation5();
3590
- const { theme } = useContext3(ThemeContext3);
3608
+ const { siteData: siteData2, page } = usePageData12();
3609
+ const { base } = siteData2;
3610
+ const { pathname } = useLocation7();
3591
3611
  const localeData = useLocaleSiteData();
3592
- const currentVersion = useVersion2();
3593
- const [isMobile, setIsMobile] = useState10(false);
3612
+ const currentVersion = useVersion3();
3613
+ const [isMobile, setIsMobile] = useState12(false);
3614
+ const hiddenNav = useHiddenNav();
3594
3615
  const localeLanguages = Object.values(siteData2.themeConfig.locales || {});
3595
3616
  const hasMultiLanguage = localeLanguages.length > 1;
3596
3617
  const socialLinks = siteData2.themeConfig.socialLinks || [];
@@ -3599,11 +3620,10 @@ function Nav2(props) {
3599
3620
  const defaultVersion = siteData2.multiVersion.default || "";
3600
3621
  const { lang } = page;
3601
3622
  const langs = localeLanguages.map((item) => item.lang || "") || [];
3602
- const [logo, setLogo] = useState10(getLogoUrl(rawLogo, theme));
3603
3623
  const translationMenuData = hasMultiLanguage ? {
3604
3624
  items: localeLanguages.map((item) => ({
3605
3625
  text: item === null || item === void 0 ? void 0 : item.label,
3606
- link: replaceLang(pathname, {
3626
+ link: replaceLang2(pathname, {
3607
3627
  current: lang,
3608
3628
  target: item.lang,
3609
3629
  default: defaultLang
@@ -3614,27 +3634,22 @@ function Nav2(props) {
3614
3634
  })),
3615
3635
  activeValue: (_localeLanguages_find = localeLanguages.find((item) => lang === item.lang)) === null || _localeLanguages_find === void 0 ? void 0 : _localeLanguages_find.label
3616
3636
  } : null;
3617
- useEffect11(() => {
3618
- setLogo(getLogoUrl(rawLogo, theme));
3619
- }, [
3620
- theme
3621
- ]);
3622
- useEffect11(() => {
3637
+ useEffect13(() => {
3623
3638
  setIsMobile(isMobileDevice());
3624
3639
  }, []);
3625
3640
  const NavMenu = ({ menuItems: menuItems2 }) => {
3626
- return /* @__PURE__ */ _jsx36("div", {
3641
+ return /* @__PURE__ */ _jsx37("div", {
3627
3642
  className: "rspress-nav-menu menu h-14",
3628
3643
  children: menuItems2.map((item) => {
3629
- return "items" in item || Array.isArray(item) ? /* @__PURE__ */ _jsx36("div", {
3644
+ return "items" in item || Array.isArray(item) ? /* @__PURE__ */ _jsx37("div", {
3630
3645
  className: "mx-3 last:mr-0",
3631
- children: /* @__PURE__ */ _jsx36(NavMenuGroup, _object_spread_props14(_object_spread20({}, item), {
3646
+ children: /* @__PURE__ */ _jsx37(NavMenuGroup, _object_spread_props14(_object_spread19({}, item), {
3632
3647
  base,
3633
3648
  pathname,
3634
3649
  langs,
3635
3650
  items: "items" in item ? item.items : item
3636
3651
  }))
3637
- }, item.text) : /* @__PURE__ */ _jsx36(NavMenuSingleItem, _object_spread20({
3652
+ }, item.text) : /* @__PURE__ */ _jsx37(NavMenuSingleItem, _object_spread19({
3638
3653
  pathname,
3639
3654
  langs,
3640
3655
  base
@@ -3648,39 +3663,37 @@ function Nav2(props) {
3648
3663
  const leftMenuItems = menuItems.filter((item) => getPosition(item) === "left");
3649
3664
  const rightMenuItems = menuItems.filter((item) => getPosition(item) === "right");
3650
3665
  const hasSearch = (siteData2 === null || siteData2 === void 0 ? void 0 : (_siteData_themeConfig = siteData2.themeConfig) === null || _siteData_themeConfig === void 0 ? void 0 : _siteData_themeConfig.search) !== false;
3651
- var _localeData_title;
3652
- const title = (_localeData_title = localeData.title) !== null && _localeData_title !== void 0 ? _localeData_title : siteData2.title;
3653
3666
  const hasAppearanceSwitch = siteData2.themeConfig.darkMode !== false;
3654
3667
  const leftNav = () => {
3655
- return leftMenuItems.length > 0 ? /* @__PURE__ */ _jsx36("div", {
3656
- className: index_module_default11.leftNav,
3657
- children: /* @__PURE__ */ _jsx36(NavMenu, {
3668
+ return leftMenuItems.length > 0 ? /* @__PURE__ */ _jsx37("div", {
3669
+ className: index_module_default4.leftNav,
3670
+ children: /* @__PURE__ */ _jsx37(NavMenu, {
3658
3671
  menuItems: leftMenuItems
3659
3672
  })
3660
3673
  }) : null;
3661
3674
  };
3662
3675
  const rightNav = () => {
3663
- return /* @__PURE__ */ _jsxs23("div", {
3664
- className: index_module_default11.rightNav,
3676
+ return /* @__PURE__ */ _jsxs24("div", {
3677
+ className: index_module_default4.rightNav,
3665
3678
  children: [
3666
- hasSearch && /* @__PURE__ */ _jsx36("div", {
3679
+ hasSearch && /* @__PURE__ */ _jsx37("div", {
3667
3680
  className: "flex sm:flex-1 items-center sm:pl-4 sm:pr-2",
3668
- children: /* @__PURE__ */ _jsx36(Search, {})
3681
+ children: /* @__PURE__ */ _jsx37(Search, {})
3669
3682
  }),
3670
- /* @__PURE__ */ _jsx36(NavMenu, {
3683
+ /* @__PURE__ */ _jsx37(NavMenu, {
3671
3684
  menuItems: rightMenuItems
3672
3685
  }),
3673
- /* @__PURE__ */ _jsxs23("div", {
3686
+ /* @__PURE__ */ _jsxs24("div", {
3674
3687
  className: "flex-center flex-row",
3675
3688
  children: [
3676
- hasMultiLanguage && /* @__PURE__ */ _jsx36(NavTranslations, {
3689
+ hasMultiLanguage && /* @__PURE__ */ _jsx37(NavTranslations, {
3677
3690
  translationMenuData
3678
3691
  }),
3679
- hasAppearanceSwitch && /* @__PURE__ */ _jsx36("div", {
3692
+ hasAppearanceSwitch && /* @__PURE__ */ _jsx37("div", {
3680
3693
  className: "mx-2",
3681
- children: /* @__PURE__ */ _jsx36(SwitchAppearance, {})
3694
+ children: /* @__PURE__ */ _jsx37(SwitchAppearance, {})
3682
3695
  }),
3683
- hasSocialLinks && /* @__PURE__ */ _jsx36(SocialLinks, {
3696
+ hasSocialLinks && /* @__PURE__ */ _jsx37(SocialLinks, {
3684
3697
  socialLinks
3685
3698
  })
3686
3699
  ]
@@ -3688,40 +3701,30 @@ function Nav2(props) {
3688
3701
  ]
3689
3702
  });
3690
3703
  };
3691
- return /* @__PURE__ */ _jsxs23("header", {
3692
- className: "top-0 left-0 md:fixed w-full",
3693
- style: {
3694
- zIndex: "var(--rp-z-index-nav)",
3695
- background: "var(--rp-c-bg)"
3696
- },
3704
+ return /* @__PURE__ */ _jsxs24(_Fragment4, {
3697
3705
  children: [
3698
3706
  beforeNav,
3699
- /* @__PURE__ */ _jsx36("div", {
3700
- className: `${index_module_default11.navContainer} rspress-nav px-6`,
3701
- children: /* @__PURE__ */ _jsxs23("div", {
3702
- className: `${index_module_default11.container} flex justify-between items-center h-full`,
3707
+ /* @__PURE__ */ _jsx37("div", {
3708
+ className: `${index_module_default4.navContainer} sticky rspress-nav px-6 ${hiddenNav ? index_module_default4.hidden : ""}`,
3709
+ children: /* @__PURE__ */ _jsxs24("div", {
3710
+ className: `${index_module_default4.container} flex justify-between items-center h-full`,
3703
3711
  children: [
3704
3712
  beforeNavTitle,
3705
- /* @__PURE__ */ _jsx36(NavBarTitle, {
3706
- title,
3707
- langRoutePrefix: localeData.langRoutePrefix || "/",
3708
- logo
3709
- }),
3713
+ /* @__PURE__ */ _jsx37(NavBarTitle, {}),
3710
3714
  afterNavTitle,
3711
- /* @__PURE__ */ _jsxs23("div", {
3712
- className: `${index_module_default11.content} flex flex-1 justify-end items-center`,
3715
+ /* @__PURE__ */ _jsxs24("div", {
3716
+ className: `${index_module_default4.content} flex flex-1 justify-end items-center`,
3713
3717
  children: [
3714
3718
  leftNav(),
3715
3719
  rightNav(),
3716
- /* @__PURE__ */ _jsxs23("div", {
3717
- className: index_module_default11.mobileNavMenu,
3720
+ /* @__PURE__ */ _jsxs24("div", {
3721
+ className: index_module_default4.mobileNavMenu,
3718
3722
  children: [
3719
- isMobile && /* @__PURE__ */ _jsx36(Search, {}),
3720
- /* @__PURE__ */ _jsx36(NavHamburger, {
3723
+ isMobile && /* @__PURE__ */ _jsx37(Search, {}),
3724
+ /* @__PURE__ */ _jsx37(NavHamburger, {
3721
3725
  localeData,
3722
3726
  siteData: siteData2,
3723
- pathname,
3724
- setLogo
3727
+ pathname
3725
3728
  })
3726
3729
  ]
3727
3730
  })
@@ -3735,13 +3738,13 @@ function Nav2(props) {
3735
3738
  }
3736
3739
 
3737
3740
  // src/theme-default/components/Search/index.tsx
3738
- import { jsx as _jsx49, jsxs as _jsxs31, Fragment as _Fragment6 } from "react/jsx-runtime";
3739
- import { useState as useState13 } from "react";
3741
+ import { jsx as _jsx50, jsxs as _jsxs32, Fragment as _Fragment7 } from "react/jsx-runtime";
3742
+ import { useState as useState15 } from "react";
3740
3743
 
3741
3744
  // src/theme-default/components/Search/assets/search.svg
3742
- import { jsx as _jsx37 } from "react/jsx-runtime";
3745
+ import { jsx as _jsx38 } from "react/jsx-runtime";
3743
3746
  import * as React13 from "react";
3744
- function _define_property21(obj, key, value) {
3747
+ function _define_property20(obj, key, value) {
3745
3748
  if (key in obj) {
3746
3749
  Object.defineProperty(obj, key, {
3747
3750
  value,
@@ -3754,7 +3757,7 @@ function _define_property21(obj, key, value) {
3754
3757
  }
3755
3758
  return obj;
3756
3759
  }
3757
- function _object_spread21(target) {
3760
+ function _object_spread20(target) {
3758
3761
  for (var i = 1; i < arguments.length; i++) {
3759
3762
  var source = arguments[i] != null ? arguments[i] : {};
3760
3763
  var ownKeys36 = Object.keys(source);
@@ -3764,7 +3767,7 @@ function _object_spread21(target) {
3764
3767
  }));
3765
3768
  }
3766
3769
  ownKeys36.forEach(function(key) {
3767
- _define_property21(target, key, source[key]);
3770
+ _define_property20(target, key, source[key]);
3768
3771
  });
3769
3772
  }
3770
3773
  return target;
@@ -3793,12 +3796,12 @@ function _object_spread_props15(target, source) {
3793
3796
  }
3794
3797
  return target;
3795
3798
  }
3796
- var SvgSearch = (props) => /* @__PURE__ */ _jsx37("svg", _object_spread_props15(_object_spread21({
3799
+ var SvgSearch = (props) => /* @__PURE__ */ _jsx38("svg", _object_spread_props15(_object_spread20({
3797
3800
  width: 24,
3798
3801
  height: 24,
3799
3802
  viewBox: "0 0 32 32"
3800
3803
  }, props), {
3801
- children: /* @__PURE__ */ _jsx37("path", {
3804
+ children: /* @__PURE__ */ _jsx38("path", {
3802
3805
  fill: "var(--rp-c-gray)",
3803
3806
  d: "m29 27.586-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29ZM4 13a9 9 0 1 1 9 9 9.01 9.01 0 0 1-9-9Z"
3804
3807
  })
@@ -3809,22 +3812,22 @@ var search_default = SvgSearch;
3809
3812
  var index_module_default15 = { "mask": "mask_f619e", "modal": "modal_f619e", "inputForm": "inputForm_f619e", "input": "input_f619e", "close": "close_f619e", "searchHits": "searchHits_f619e", "groupTitle": "groupTitle_f619e", "navSearchButton": "navSearchButton_f619e", "searchWord": "searchWord_f619e", "suggestItem": "suggestItem_f619e", "suggestItemContainer": "suggestItemContainer_f619e", "contentWrapper": "contentWrapper_f619e", "mark": "mark_f619e", "titleForContent": "titleForContent_f619e", "actionIcon": "actionIcon_f619e", "current": "current_f619e", "tabClassName": "tabClassName_f619e", "mobileNavSearchButton": "mobileNavSearchButton_f619e" };
3810
3813
 
3811
3814
  // src/theme-default/components/Search/SearchPanel.tsx
3812
- import { jsx as _jsx48, jsxs as _jsxs30, Fragment as _Fragment5 } from "react/jsx-runtime";
3815
+ import { jsx as _jsx49, jsxs as _jsxs31, Fragment as _Fragment6 } from "react/jsx-runtime";
3813
3816
  import debounce from "lodash-es/debounce";
3814
3817
  import groupBy from "lodash-es/groupBy";
3815
3818
  import { createPortal } from "react-dom";
3816
- import { useEffect as useEffect12, useRef as useRef5, useState as useState12 } from "react";
3819
+ import { useEffect as useEffect14, useRef as useRef5, useState as useState14 } from "react";
3817
3820
  import { onSearch } from "virtual-search-hooks";
3818
3821
 
3819
3822
  // src/theme-default/components/Tabs/index.tsx
3820
- import { jsx as _jsx38, jsxs as _jsxs24 } from "react/jsx-runtime";
3821
- import { useContext as useContext4, useState as useState11 } from "react";
3823
+ import { jsx as _jsx39, jsxs as _jsxs25 } from "react/jsx-runtime";
3824
+ import { useContext as useContext3, useState as useState13 } from "react";
3822
3825
 
3823
3826
  // src/theme-default/components/Tabs/index.module.scss
3824
3827
  var index_module_default16 = { "container": "container_7e0fb", "tab-list": "tab-list_7e0fb", "tabList": "tab-list_7e0fb", "tab": "tab_7e0fb", "not-selected": "not-selected_7e0fb", "notSelected": "not-selected_7e0fb", "selected": "selected_7e0fb" };
3825
3828
 
3826
3829
  // src/theme-default/components/Tabs/index.tsx
3827
- function _define_property22(obj, key, value) {
3830
+ function _define_property21(obj, key, value) {
3828
3831
  if (key in obj) {
3829
3832
  Object.defineProperty(obj, key, {
3830
3833
  value,
@@ -3837,7 +3840,7 @@ function _define_property22(obj, key, value) {
3837
3840
  }
3838
3841
  return obj;
3839
3842
  }
3840
- function _object_spread22(target) {
3843
+ function _object_spread21(target) {
3841
3844
  for (var i = 1; i < arguments.length; i++) {
3842
3845
  var source = arguments[i] != null ? arguments[i] : {};
3843
3846
  var ownKeys36 = Object.keys(source);
@@ -3847,7 +3850,7 @@ function _object_spread22(target) {
3847
3850
  }));
3848
3851
  }
3849
3852
  ownKeys36.forEach(function(key) {
3850
- _define_property22(target, key, source[key]);
3853
+ _define_property21(target, key, source[key]);
3851
3854
  });
3852
3855
  }
3853
3856
  return target;
@@ -3932,7 +3935,7 @@ function Tabs(props) {
3932
3935
  };
3933
3936
  });
3934
3937
  }
3935
- const { tabData, setTabData } = useContext4(TabDataContext);
3938
+ const { tabData, setTabData } = useContext3(TabDataContext);
3936
3939
  let defaultIndex = 0;
3937
3940
  const needSync = groupId && tabData[groupId] !== void 0;
3938
3941
  if (needSync) {
@@ -3947,25 +3950,25 @@ function Tabs(props) {
3947
3950
  return false;
3948
3951
  });
3949
3952
  }
3950
- const [activeIndex, setActiveIndex] = useState11(defaultIndex);
3951
- return /* @__PURE__ */ _jsxs24("div", {
3953
+ const [activeIndex, setActiveIndex] = useState13(defaultIndex);
3954
+ return /* @__PURE__ */ _jsxs25("div", {
3952
3955
  className: index_module_default16.container,
3953
3956
  children: [
3954
- /* @__PURE__ */ _jsx38("div", {
3957
+ /* @__PURE__ */ _jsx39("div", {
3955
3958
  className: tabContainerClassName,
3956
- children: tabValues.length ? /* @__PURE__ */ _jsx38("div", {
3959
+ children: tabValues.length ? /* @__PURE__ */ _jsx39("div", {
3957
3960
  className: index_module_default16.tabList,
3958
3961
  style: {
3959
3962
  justifyContent: tabPosition === "center" ? "center" : "flex-start"
3960
3963
  },
3961
3964
  children: tabValues.map((item, index) => {
3962
- return /* @__PURE__ */ _jsx38("div", {
3965
+ return /* @__PURE__ */ _jsx39("div", {
3963
3966
  className: `${index_module_default16.tab} ${activeIndex === index ? index_module_default16.selected : index_module_default16.notSelected}`,
3964
3967
  onClick: () => {
3965
3968
  onChange === null || onChange === void 0 ? void 0 : onChange(index);
3966
3969
  setActiveIndex(index);
3967
3970
  if (groupId) {
3968
- setTabData(_object_spread_props16(_object_spread22({}, tabData), {
3971
+ setTabData(_object_spread_props16(_object_spread21({}, tabData), {
3969
3972
  [groupId]: index
3970
3973
  }));
3971
3974
  }
@@ -3975,7 +3978,7 @@ function Tabs(props) {
3975
3978
  })
3976
3979
  }) : null
3977
3980
  }),
3978
- /* @__PURE__ */ _jsx38("div", {
3981
+ /* @__PURE__ */ _jsx39("div", {
3979
3982
  children: children[activeIndex]
3980
3983
  })
3981
3984
  ]
@@ -3985,16 +3988,16 @@ function Tab(_param) {
3985
3988
  var { children } = _param, props = _object_without_properties(_param, [
3986
3989
  "children"
3987
3990
  ]);
3988
- return /* @__PURE__ */ _jsx38("div", _object_spread_props16(_object_spread22({}, props), {
3991
+ return /* @__PURE__ */ _jsx39("div", _object_spread_props16(_object_spread21({}, props), {
3989
3992
  className: "rounded px-2",
3990
3993
  children
3991
3994
  }));
3992
3995
  }
3993
3996
 
3994
3997
  // src/theme-default/components/Search/assets/loading.svg
3995
- import { jsx as _jsx39, jsxs as _jsxs25 } from "react/jsx-runtime";
3998
+ import { jsx as _jsx40, jsxs as _jsxs26 } from "react/jsx-runtime";
3996
3999
  import * as React14 from "react";
3997
- function _define_property23(obj, key, value) {
4000
+ function _define_property22(obj, key, value) {
3998
4001
  if (key in obj) {
3999
4002
  Object.defineProperty(obj, key, {
4000
4003
  value,
@@ -4007,7 +4010,7 @@ function _define_property23(obj, key, value) {
4007
4010
  }
4008
4011
  return obj;
4009
4012
  }
4010
- function _object_spread23(target) {
4013
+ function _object_spread22(target) {
4011
4014
  for (var i = 1; i < arguments.length; i++) {
4012
4015
  var source = arguments[i] != null ? arguments[i] : {};
4013
4016
  var ownKeys36 = Object.keys(source);
@@ -4017,7 +4020,7 @@ function _object_spread23(target) {
4017
4020
  }));
4018
4021
  }
4019
4022
  ownKeys36.forEach(function(key) {
4020
- _define_property23(target, key, source[key]);
4023
+ _define_property22(target, key, source[key]);
4021
4024
  });
4022
4025
  }
4023
4026
  return target;
@@ -4046,41 +4049,41 @@ function _object_spread_props17(target, source) {
4046
4049
  }
4047
4050
  return target;
4048
4051
  }
4049
- var SvgLoading = (props) => /* @__PURE__ */ _jsx39("svg", _object_spread_props17(_object_spread23({
4052
+ var SvgLoading = (props) => /* @__PURE__ */ _jsx40("svg", _object_spread_props17(_object_spread22({
4050
4053
  width: 32,
4051
4054
  height: 32,
4052
4055
  viewBox: "0 0 24 24"
4053
4056
  }, props), {
4054
- children: /* @__PURE__ */ _jsxs25("g", {
4057
+ children: /* @__PURE__ */ _jsxs26("g", {
4055
4058
  fill: "none",
4056
4059
  stroke: "var(--rp-c-brand)",
4057
4060
  strokeLinecap: "round",
4058
4061
  strokeWidth: 2,
4059
4062
  children: [
4060
- /* @__PURE__ */ _jsx39("path", {
4063
+ /* @__PURE__ */ _jsx40("path", {
4061
4064
  strokeDasharray: 60,
4062
4065
  strokeDashoffset: 60,
4063
4066
  strokeOpacity: 0.3,
4064
4067
  d: "M12 3a9 9 0 1 1 0 18 9 9 0 0 1 0-18Z",
4065
- children: /* @__PURE__ */ _jsx39("animate", {
4068
+ children: /* @__PURE__ */ _jsx40("animate", {
4066
4069
  fill: "freeze",
4067
4070
  attributeName: "stroke-dashoffset",
4068
4071
  dur: "1.3s",
4069
4072
  values: "60;0"
4070
4073
  })
4071
4074
  }),
4072
- /* @__PURE__ */ _jsxs25("path", {
4075
+ /* @__PURE__ */ _jsxs26("path", {
4073
4076
  strokeDasharray: 15,
4074
4077
  strokeDashoffset: 15,
4075
4078
  d: "M12 3a9 9 0 0 1 9 9",
4076
4079
  children: [
4077
- /* @__PURE__ */ _jsx39("animate", {
4080
+ /* @__PURE__ */ _jsx40("animate", {
4078
4081
  fill: "freeze",
4079
4082
  attributeName: "stroke-dashoffset",
4080
4083
  dur: "0.3s",
4081
4084
  values: "15;0"
4082
4085
  }),
4083
- /* @__PURE__ */ _jsx39("animateTransform", {
4086
+ /* @__PURE__ */ _jsx40("animateTransform", {
4084
4087
  attributeName: "transform",
4085
4088
  dur: "1.5s",
4086
4089
  repeatCount: "indefinite",
@@ -4095,9 +4098,9 @@ var SvgLoading = (props) => /* @__PURE__ */ _jsx39("svg", _object_spread_props17
4095
4098
  var loading_default = SvgLoading;
4096
4099
 
4097
4100
  // src/theme-default/components/Search/assets/close.svg
4098
- import { jsx as _jsx40 } from "react/jsx-runtime";
4101
+ import { jsx as _jsx41 } from "react/jsx-runtime";
4099
4102
  import * as React15 from "react";
4100
- function _define_property24(obj, key, value) {
4103
+ function _define_property23(obj, key, value) {
4101
4104
  if (key in obj) {
4102
4105
  Object.defineProperty(obj, key, {
4103
4106
  value,
@@ -4110,7 +4113,7 @@ function _define_property24(obj, key, value) {
4110
4113
  }
4111
4114
  return obj;
4112
4115
  }
4113
- function _object_spread24(target) {
4116
+ function _object_spread23(target) {
4114
4117
  for (var i = 1; i < arguments.length; i++) {
4115
4118
  var source = arguments[i] != null ? arguments[i] : {};
4116
4119
  var ownKeys36 = Object.keys(source);
@@ -4120,7 +4123,7 @@ function _object_spread24(target) {
4120
4123
  }));
4121
4124
  }
4122
4125
  ownKeys36.forEach(function(key) {
4123
- _define_property24(target, key, source[key]);
4126
+ _define_property23(target, key, source[key]);
4124
4127
  });
4125
4128
  }
4126
4129
  return target;
@@ -4149,13 +4152,13 @@ function _object_spread_props18(target, source) {
4149
4152
  }
4150
4153
  return target;
4151
4154
  }
4152
- var SvgClose = (props) => /* @__PURE__ */ _jsx40("svg", _object_spread_props18(_object_spread24({
4155
+ var SvgClose = (props) => /* @__PURE__ */ _jsx41("svg", _object_spread_props18(_object_spread23({
4153
4156
  xmlns: "http://www.w3.org/2000/svg",
4154
4157
  width: 24,
4155
4158
  height: 24,
4156
4159
  viewBox: "0 0 32 32"
4157
4160
  }, props), {
4158
- children: /* @__PURE__ */ _jsx40("path", {
4161
+ children: /* @__PURE__ */ _jsx41("path", {
4159
4162
  fill: "currentColor",
4160
4163
  d: "M24 9.4 22.6 8 16 14.6 9.4 8 8 9.4l6.6 6.6L8 22.6 9.4 24l6.6-6.6 6.6 6.6 1.4-1.4-6.6-6.6L24 9.4z"
4161
4164
  })
@@ -4331,7 +4334,7 @@ function _class_private_method_init(obj, privateSet) {
4331
4334
  _check_private_redeclaration(obj, privateSet);
4332
4335
  privateSet.add(obj);
4333
4336
  }
4334
- function _define_property25(obj, key, value) {
4337
+ function _define_property24(obj, key, value) {
4335
4338
  if (key in obj) {
4336
4339
  Object.defineProperty(obj, key, {
4337
4340
  value,
@@ -4344,7 +4347,7 @@ function _define_property25(obj, key, value) {
4344
4347
  }
4345
4348
  return obj;
4346
4349
  }
4347
- function _object_spread25(target) {
4350
+ function _object_spread24(target) {
4348
4351
  for (var i = 1; i < arguments.length; i++) {
4349
4352
  var source = arguments[i] != null ? arguments[i] : {};
4350
4353
  var ownKeys36 = Object.keys(source);
@@ -4354,7 +4357,7 @@ function _object_spread25(target) {
4354
4357
  }));
4355
4358
  }
4356
4359
  ownKeys36.forEach(function(key) {
4357
- _define_property25(target, key, source[key]);
4360
+ _define_property24(target, key, source[key]);
4358
4361
  });
4359
4362
  }
4360
4363
  return target;
@@ -4392,7 +4395,7 @@ var LocalProvider = class {
4392
4395
  var _this = this;
4393
4396
  return _async_to_generator2(function* () {
4394
4397
  const { currentLang } = options;
4395
- const pagesForSearch = (yield _class_private_method_get(_this, _getPages, getPages).call(_this, currentLang)).filter((page) => page.lang === currentLang).map((page) => _object_spread_props19(_object_spread25({}, page), {
4398
+ const pagesForSearch = (yield _class_private_method_get(_this, _getPages, getPages).call(_this, currentLang)).filter((page) => page.lang === currentLang).map((page) => _object_spread_props19(_object_spread24({}, page), {
4396
4399
  normalizedContent: normalizeTextCase(page.content),
4397
4400
  headers: page.toc.map((header) => normalizeTextCase(header.text)).join(" "),
4398
4401
  normalizedTitle: normalizeTextCase(page.title)
@@ -4412,7 +4415,7 @@ var LocalProvider = class {
4412
4415
  split: /\W+/
4413
4416
  };
4414
4417
  _class_private_field_set(_this, _index, FlexSearch.create(createOptions));
4415
- _class_private_field_set(_this, _cjkIndex, FlexSearch.create(_object_spread_props19(_object_spread25({}, createOptions), {
4418
+ _class_private_field_set(_this, _cjkIndex, FlexSearch.create(_object_spread_props19(_object_spread24({}, createOptions), {
4416
4419
  tokenize(str) {
4417
4420
  const cjkWords = [];
4418
4421
  let m = null;
@@ -4905,12 +4908,12 @@ function isCurrentIndex(index) {
4905
4908
  }
4906
4909
 
4907
4910
  // src/theme-default/components/Search/SuggestItem.tsx
4908
- import { jsx as _jsx45, jsxs as _jsxs27, Fragment as _Fragment4 } from "react/jsx-runtime";
4911
+ import { jsx as _jsx46, jsxs as _jsxs28, Fragment as _Fragment5 } from "react/jsx-runtime";
4909
4912
 
4910
4913
  // src/theme-default/components/Search/assets/file.svg
4911
- import { jsx as _jsx41, jsxs as _jsxs26 } from "react/jsx-runtime";
4914
+ import { jsx as _jsx42, jsxs as _jsxs27 } from "react/jsx-runtime";
4912
4915
  import * as React16 from "react";
4913
- function _define_property26(obj, key, value) {
4916
+ function _define_property25(obj, key, value) {
4914
4917
  if (key in obj) {
4915
4918
  Object.defineProperty(obj, key, {
4916
4919
  value,
@@ -4923,7 +4926,7 @@ function _define_property26(obj, key, value) {
4923
4926
  }
4924
4927
  return obj;
4925
4928
  }
4926
- function _object_spread26(target) {
4929
+ function _object_spread25(target) {
4927
4930
  for (var i = 1; i < arguments.length; i++) {
4928
4931
  var source = arguments[i] != null ? arguments[i] : {};
4929
4932
  var ownKeys36 = Object.keys(source);
@@ -4933,7 +4936,7 @@ function _object_spread26(target) {
4933
4936
  }));
4934
4937
  }
4935
4938
  ownKeys36.forEach(function(key) {
4936
- _define_property26(target, key, source[key]);
4939
+ _define_property25(target, key, source[key]);
4937
4940
  });
4938
4941
  }
4939
4942
  return target;
@@ -4962,28 +4965,28 @@ function _object_spread_props20(target, source) {
4962
4965
  }
4963
4966
  return target;
4964
4967
  }
4965
- var SvgFile = (props) => /* @__PURE__ */ _jsxs26("svg", _object_spread_props20(_object_spread26({
4968
+ var SvgFile = (props) => /* @__PURE__ */ _jsxs27("svg", _object_spread_props20(_object_spread25({
4966
4969
  xmlns: "http://www.w3.org/2000/svg",
4967
4970
  width: 24,
4968
4971
  height: 24,
4969
4972
  viewBox: "0 0 32 32"
4970
4973
  }, props), {
4971
4974
  children: [
4972
- /* @__PURE__ */ _jsx41("circle", {
4975
+ /* @__PURE__ */ _jsx42("circle", {
4973
4976
  cx: 22,
4974
4977
  cy: 24,
4975
4978
  r: 2,
4976
4979
  fill: "currentColor"
4977
4980
  }),
4978
- /* @__PURE__ */ _jsx41("path", {
4981
+ /* @__PURE__ */ _jsx42("path", {
4979
4982
  fill: "none",
4980
4983
  d: "M22 28a4 4 0 1 1 4-4 4.004 4.004 0 0 1-4 4Zm0-6a2 2 0 1 0 2 2 2.003 2.003 0 0 0-2-2Z"
4981
4984
  }),
4982
- /* @__PURE__ */ _jsx41("path", {
4985
+ /* @__PURE__ */ _jsx42("path", {
4983
4986
  fill: "currentColor",
4984
4987
  d: "M29.777 23.479A8.64 8.64 0 0 0 22 18a8.64 8.64 0 0 0-7.777 5.479L14 24l.223.521A8.64 8.64 0 0 0 22 30a8.64 8.64 0 0 0 7.777-5.479L30 24ZM22 28a4 4 0 1 1 4-4 4.005 4.005 0 0 1-4 4Z"
4985
4988
  }),
4986
- /* @__PURE__ */ _jsx41("path", {
4989
+ /* @__PURE__ */ _jsx42("path", {
4987
4990
  fill: "currentColor",
4988
4991
  d: "M12 28H8V4h8v6a2.006 2.006 0 0 0 2 2h6v4h2v-6a.91.91 0 0 0-.3-.7l-7-7A.909.909 0 0 0 18 2H8a2.006 2.006 0 0 0-2 2v24a2.006 2.006 0 0 0 2 2h4Zm6-23.6 5.6 5.6H18Z"
4989
4992
  })
@@ -4992,9 +4995,9 @@ var SvgFile = (props) => /* @__PURE__ */ _jsxs26("svg", _object_spread_props20(_
4992
4995
  var file_default = SvgFile;
4993
4996
 
4994
4997
  // src/theme-default/components/Search/assets/jump.svg
4995
- import { jsx as _jsx42 } from "react/jsx-runtime";
4998
+ import { jsx as _jsx43 } from "react/jsx-runtime";
4996
4999
  import * as React17 from "react";
4997
- function _define_property27(obj, key, value) {
5000
+ function _define_property26(obj, key, value) {
4998
5001
  if (key in obj) {
4999
5002
  Object.defineProperty(obj, key, {
5000
5003
  value,
@@ -5007,7 +5010,7 @@ function _define_property27(obj, key, value) {
5007
5010
  }
5008
5011
  return obj;
5009
5012
  }
5010
- function _object_spread27(target) {
5013
+ function _object_spread26(target) {
5011
5014
  for (var i = 1; i < arguments.length; i++) {
5012
5015
  var source = arguments[i] != null ? arguments[i] : {};
5013
5016
  var ownKeys36 = Object.keys(source);
@@ -5017,7 +5020,7 @@ function _object_spread27(target) {
5017
5020
  }));
5018
5021
  }
5019
5022
  ownKeys36.forEach(function(key) {
5020
- _define_property27(target, key, source[key]);
5023
+ _define_property26(target, key, source[key]);
5021
5024
  });
5022
5025
  }
5023
5026
  return target;
@@ -5046,13 +5049,13 @@ function _object_spread_props21(target, source) {
5046
5049
  }
5047
5050
  return target;
5048
5051
  }
5049
- var SvgJump = (props) => /* @__PURE__ */ _jsx42("svg", _object_spread_props21(_object_spread27({
5052
+ var SvgJump = (props) => /* @__PURE__ */ _jsx43("svg", _object_spread_props21(_object_spread26({
5050
5053
  xmlns: "http://www.w3.org/2000/svg",
5051
5054
  width: 24,
5052
5055
  height: 24,
5053
5056
  viewBox: "0 0 32 32"
5054
5057
  }, props), {
5055
- children: /* @__PURE__ */ _jsx42("path", {
5058
+ children: /* @__PURE__ */ _jsx43("path", {
5056
5059
  fill: "currentColor",
5057
5060
  d: "M13.414 17.586 18 22.172V8H8V6h10a2.002 2.002 0 0 1 2 2v14.172l4.586-4.586L26 19l-7 7-7-7Z"
5058
5061
  })
@@ -5060,9 +5063,9 @@ var SvgJump = (props) => /* @__PURE__ */ _jsx42("svg", _object_spread_props21(_o
5060
5063
  var jump_default = SvgJump;
5061
5064
 
5062
5065
  // src/theme-default/components/Search/assets/header.svg
5063
- import { jsx as _jsx43 } from "react/jsx-runtime";
5066
+ import { jsx as _jsx44 } from "react/jsx-runtime";
5064
5067
  import * as React18 from "react";
5065
- function _define_property28(obj, key, value) {
5068
+ function _define_property27(obj, key, value) {
5066
5069
  if (key in obj) {
5067
5070
  Object.defineProperty(obj, key, {
5068
5071
  value,
@@ -5075,7 +5078,7 @@ function _define_property28(obj, key, value) {
5075
5078
  }
5076
5079
  return obj;
5077
5080
  }
5078
- function _object_spread28(target) {
5081
+ function _object_spread27(target) {
5079
5082
  for (var i = 1; i < arguments.length; i++) {
5080
5083
  var source = arguments[i] != null ? arguments[i] : {};
5081
5084
  var ownKeys36 = Object.keys(source);
@@ -5085,7 +5088,7 @@ function _object_spread28(target) {
5085
5088
  }));
5086
5089
  }
5087
5090
  ownKeys36.forEach(function(key) {
5088
- _define_property28(target, key, source[key]);
5091
+ _define_property27(target, key, source[key]);
5089
5092
  });
5090
5093
  }
5091
5094
  return target;
@@ -5114,13 +5117,13 @@ function _object_spread_props22(target, source) {
5114
5117
  }
5115
5118
  return target;
5116
5119
  }
5117
- var SvgHeader = (props) => /* @__PURE__ */ _jsx43("svg", _object_spread_props22(_object_spread28({
5120
+ var SvgHeader = (props) => /* @__PURE__ */ _jsx44("svg", _object_spread_props22(_object_spread27({
5118
5121
  xmlns: "http://www.w3.org/2000/svg",
5119
5122
  width: 24,
5120
5123
  height: 24,
5121
5124
  viewBox: "0 0 32 32"
5122
5125
  }, props), {
5123
- children: /* @__PURE__ */ _jsx43("path", {
5126
+ children: /* @__PURE__ */ _jsx44("path", {
5124
5127
  fill: "currentColor",
5125
5128
  d: "M28 12v-2h-6V4h-2v6h-8V4h-2v6H4v2h6v8H4v2h6v6h2v-6h8v6h2v-6h6v-2h-6v-8Zm-8 8h-8v-8h8Z"
5126
5129
  })
@@ -5128,9 +5131,9 @@ var SvgHeader = (props) => /* @__PURE__ */ _jsx43("svg", _object_spread_props22(
5128
5131
  var header_default = SvgHeader;
5129
5132
 
5130
5133
  // src/theme-default/components/Search/assets/title.svg
5131
- import { jsx as _jsx44 } from "react/jsx-runtime";
5134
+ import { jsx as _jsx45 } from "react/jsx-runtime";
5132
5135
  import * as React19 from "react";
5133
- function _define_property29(obj, key, value) {
5136
+ function _define_property28(obj, key, value) {
5134
5137
  if (key in obj) {
5135
5138
  Object.defineProperty(obj, key, {
5136
5139
  value,
@@ -5143,7 +5146,7 @@ function _define_property29(obj, key, value) {
5143
5146
  }
5144
5147
  return obj;
5145
5148
  }
5146
- function _object_spread29(target) {
5149
+ function _object_spread28(target) {
5147
5150
  for (var i = 1; i < arguments.length; i++) {
5148
5151
  var source = arguments[i] != null ? arguments[i] : {};
5149
5152
  var ownKeys36 = Object.keys(source);
@@ -5153,7 +5156,7 @@ function _object_spread29(target) {
5153
5156
  }));
5154
5157
  }
5155
5158
  ownKeys36.forEach(function(key) {
5156
- _define_property29(target, key, source[key]);
5159
+ _define_property28(target, key, source[key]);
5157
5160
  });
5158
5161
  }
5159
5162
  return target;
@@ -5182,12 +5185,12 @@ function _object_spread_props23(target, source) {
5182
5185
  }
5183
5186
  return target;
5184
5187
  }
5185
- var SvgTitle = (props) => /* @__PURE__ */ _jsx44("svg", _object_spread_props23(_object_spread29({
5188
+ var SvgTitle = (props) => /* @__PURE__ */ _jsx45("svg", _object_spread_props23(_object_spread28({
5186
5189
  xmlns: "http://www.w3.org/2000/svg",
5187
5190
  width: 24,
5188
5191
  height: 24
5189
5192
  }, props), {
5190
- children: /* @__PURE__ */ _jsx44("path", {
5193
+ children: /* @__PURE__ */ _jsx45("path", {
5191
5194
  fill: "currentColor",
5192
5195
  d: "M4 4a2 2 0 0 1 2-2h8a1 1 0 0 1 .707.293l5 5A1 1 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4zm13.586 4L14 4.414V8h3.586zM12 4H6v16h12V10h-5a1 1 0 0 1-1-1V4z"
5193
5196
  })
@@ -5212,7 +5215,7 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5212
5215
  const prefix = rawText.slice(lastIndex, start);
5213
5216
  const queryStr = getSlicedStrByByteLength(rawText, start, length);
5214
5217
  framegmentList.push(prefix);
5215
- framegmentList.push(/* @__PURE__ */ _jsx45("span", {
5218
+ framegmentList.push(/* @__PURE__ */ _jsx46("span", {
5216
5219
  className: index_module_default15.mark,
5217
5220
  children: queryStr
5218
5221
  }, start));
@@ -5226,12 +5229,12 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5226
5229
  const renderHeaderMatch = () => {
5227
5230
  if (suggestion.type === "header" || suggestion.type === "title") {
5228
5231
  const { header, highlightInfoList } = suggestion;
5229
- return /* @__PURE__ */ _jsx45("div", {
5232
+ return /* @__PURE__ */ _jsx46("div", {
5230
5233
  className: "font-medium",
5231
5234
  children: getHighlightedFragments(header, highlightInfoList)
5232
5235
  });
5233
5236
  } else {
5234
- return /* @__PURE__ */ _jsx45("div", {
5237
+ return /* @__PURE__ */ _jsx46("div", {
5235
5238
  className: "font-medium",
5236
5239
  children: suggestion.header
5237
5240
  });
@@ -5239,10 +5242,10 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5239
5242
  };
5240
5243
  const renderStatementMatch = () => {
5241
5244
  if (suggestion.type !== "content") {
5242
- return /* @__PURE__ */ _jsx45("div", {});
5245
+ return /* @__PURE__ */ _jsx46("div", {});
5243
5246
  }
5244
5247
  const { statement, highlightInfoList } = suggestion;
5245
- return /* @__PURE__ */ _jsx45("div", {
5248
+ return /* @__PURE__ */ _jsx46("div", {
5246
5249
  className: "text-sm text-gray-light w-full",
5247
5250
  children: getHighlightedFragments(statement, highlightInfoList)
5248
5251
  });
@@ -5254,10 +5257,10 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5254
5257
  hitContent = renderHeaderMatch();
5255
5258
  break;
5256
5259
  case "content":
5257
- hitContent = /* @__PURE__ */ _jsxs27(_Fragment4, {
5260
+ hitContent = /* @__PURE__ */ _jsxs28(_Fragment5, {
5258
5261
  children: [
5259
5262
  renderStatementMatch(),
5260
- /* @__PURE__ */ _jsx45("p", {
5263
+ /* @__PURE__ */ _jsx46("p", {
5261
5264
  className: index_module_default15.titleForContent,
5262
5265
  children: suggestion.title
5263
5266
  })
@@ -5267,32 +5270,32 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5267
5270
  default:
5268
5271
  break;
5269
5272
  }
5270
- return /* @__PURE__ */ _jsx45("li", {
5273
+ return /* @__PURE__ */ _jsx46("li", {
5271
5274
  className: `${index_module_default15.suggestItem} ${isCurrent ? index_module_default15.current : ""}`,
5272
5275
  onMouseEnter: setCurrentSuggestionIndex,
5273
- children: /* @__PURE__ */ _jsx45("a", {
5276
+ children: /* @__PURE__ */ _jsx46("a", {
5274
5277
  href: link,
5275
5278
  onClick: (e) => {
5276
5279
  closeSearch();
5277
5280
  e.stopPropagation();
5278
5281
  },
5279
5282
  target: inCurrentDocIndex ? "_self" : "_blank",
5280
- children: /* @__PURE__ */ _jsxs27("div", {
5283
+ children: /* @__PURE__ */ _jsxs28("div", {
5281
5284
  className: index_module_default15.suggestItemContainer,
5282
5285
  children: [
5283
- /* @__PURE__ */ _jsx45("div", {
5286
+ /* @__PURE__ */ _jsx46("div", {
5284
5287
  className: index_module_default15.hitIcon,
5285
- children: /* @__PURE__ */ _jsx45(HitIcon, {})
5288
+ children: /* @__PURE__ */ _jsx46(HitIcon, {})
5286
5289
  }),
5287
- /* @__PURE__ */ _jsx45("div", {
5290
+ /* @__PURE__ */ _jsx46("div", {
5288
5291
  className: index_module_default15.contentWrapper,
5289
- children: /* @__PURE__ */ _jsx45("span", {
5292
+ children: /* @__PURE__ */ _jsx46("span", {
5290
5293
  children: hitContent
5291
5294
  })
5292
5295
  }),
5293
- /* @__PURE__ */ _jsx45("div", {
5296
+ /* @__PURE__ */ _jsx46("div", {
5294
5297
  className: index_module_default15.actionIcon,
5295
- children: /* @__PURE__ */ _jsx45(jump_default, {})
5298
+ children: /* @__PURE__ */ _jsx46(jump_default, {})
5296
5299
  })
5297
5300
  ]
5298
5301
  })
@@ -5301,12 +5304,12 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5301
5304
  }
5302
5305
 
5303
5306
  // src/theme-default/components/Search/NoSearchResult.tsx
5304
- import { jsx as _jsx47, jsxs as _jsxs29 } from "react/jsx-runtime";
5307
+ import { jsx as _jsx48, jsxs as _jsxs30 } from "react/jsx-runtime";
5305
5308
 
5306
5309
  // src/theme-default/components/Search/empty.svg
5307
- import { jsx as _jsx46, jsxs as _jsxs28 } from "react/jsx-runtime";
5310
+ import { jsx as _jsx47, jsxs as _jsxs29 } from "react/jsx-runtime";
5308
5311
  import * as React20 from "react";
5309
- function _define_property30(obj, key, value) {
5312
+ function _define_property29(obj, key, value) {
5310
5313
  if (key in obj) {
5311
5314
  Object.defineProperty(obj, key, {
5312
5315
  value,
@@ -5319,7 +5322,7 @@ function _define_property30(obj, key, value) {
5319
5322
  }
5320
5323
  return obj;
5321
5324
  }
5322
- function _object_spread30(target) {
5325
+ function _object_spread29(target) {
5323
5326
  for (var i = 1; i < arguments.length; i++) {
5324
5327
  var source = arguments[i] != null ? arguments[i] : {};
5325
5328
  var ownKeys36 = Object.keys(source);
@@ -5329,7 +5332,7 @@ function _object_spread30(target) {
5329
5332
  }));
5330
5333
  }
5331
5334
  ownKeys36.forEach(function(key) {
5332
- _define_property30(target, key, source[key]);
5335
+ _define_property29(target, key, source[key]);
5333
5336
  });
5334
5337
  }
5335
5338
  return target;
@@ -5358,19 +5361,19 @@ function _object_spread_props24(target, source) {
5358
5361
  }
5359
5362
  return target;
5360
5363
  }
5361
- var SvgEmpty = (props) => /* @__PURE__ */ _jsxs28("svg", _object_spread_props24(_object_spread30({
5364
+ var SvgEmpty = (props) => /* @__PURE__ */ _jsxs29("svg", _object_spread_props24(_object_spread29({
5362
5365
  xmlns: "http://www.w3.org/2000/svg",
5363
5366
  width: 48,
5364
5367
  height: 48,
5365
5368
  fill: "none"
5366
5369
  }, props), {
5367
5370
  children: [
5368
- /* @__PURE__ */ _jsx46("path", {
5371
+ /* @__PURE__ */ _jsx47("path", {
5369
5372
  stroke: "currentColor",
5370
5373
  strokeWidth: 4,
5371
5374
  d: "M24 5v6m7 1 4-4m-18 4-4-4m27 33H8a2 2 0 0 1-2-2v-8.46a2 2 0 0 1 .272-1.007l6.15-10.54A2 2 0 0 1 14.148 18H33.85a2 2 0 0 1 1.728.992l6.149 10.541A2 2 0 0 1 42 30.541V39a2 2 0 0 1-2 2Z"
5372
5375
  }),
5373
- /* @__PURE__ */ _jsx46("path", {
5376
+ /* @__PURE__ */ _jsx47("path", {
5374
5377
  stroke: "currentColor",
5375
5378
  strokeWidth: 4,
5376
5379
  d: "M41.5 30H28s-1 3-4 3-4-3-4-3H6.5"
@@ -5381,17 +5384,17 @@ var empty_default = SvgEmpty;
5381
5384
 
5382
5385
  // src/theme-default/components/Search/NoSearchResult.tsx
5383
5386
  function NoSearchResult({ query: query2 }) {
5384
- return /* @__PURE__ */ _jsxs29("div", {
5387
+ return /* @__PURE__ */ _jsxs30("div", {
5385
5388
  className: "flex flex-col items-center pt-8 pb-2",
5386
5389
  children: [
5387
- /* @__PURE__ */ _jsx47(empty_default, {
5390
+ /* @__PURE__ */ _jsx48(empty_default, {
5388
5391
  className: "mb-4 opacity-80"
5389
5392
  }),
5390
- /* @__PURE__ */ _jsxs29("p", {
5393
+ /* @__PURE__ */ _jsxs30("p", {
5391
5394
  className: "mb-2",
5392
5395
  children: [
5393
5396
  "No results for ",
5394
- /* @__PURE__ */ _jsxs29("b", {
5397
+ /* @__PURE__ */ _jsxs30("b", {
5395
5398
  children: [
5396
5399
  '"',
5397
5400
  query2,
@@ -5401,7 +5404,7 @@ function NoSearchResult({ query: query2 }) {
5401
5404
  "."
5402
5405
  ]
5403
5406
  }),
5404
- /* @__PURE__ */ _jsx47("p", {
5407
+ /* @__PURE__ */ _jsx48("p", {
5405
5408
  children: "Please try again with a different keyword."
5406
5409
  })
5407
5410
  ]
@@ -5409,7 +5412,7 @@ function NoSearchResult({ query: query2 }) {
5409
5412
  }
5410
5413
 
5411
5414
  // src/theme-default/components/Search/SearchPanel.tsx
5412
- import { isProduction as isProduction2, usePageData as usePageData12 } from "@/runtime";
5415
+ import { isProduction as isProduction2, usePageData as usePageData13 } from "@/runtime";
5413
5416
  function asyncGeneratorStep5(gen, resolve, reject, _next, _throw, key, arg) {
5414
5417
  try {
5415
5418
  var info = gen[key](arg);
@@ -5439,7 +5442,7 @@ function _async_to_generator5(fn) {
5439
5442
  });
5440
5443
  };
5441
5444
  }
5442
- function _define_property31(obj, key, value) {
5445
+ function _define_property30(obj, key, value) {
5443
5446
  if (key in obj) {
5444
5447
  Object.defineProperty(obj, key, {
5445
5448
  value,
@@ -5452,7 +5455,7 @@ function _define_property31(obj, key, value) {
5452
5455
  }
5453
5456
  return obj;
5454
5457
  }
5455
- function _object_spread31(target) {
5458
+ function _object_spread30(target) {
5456
5459
  for (var i = 1; i < arguments.length; i++) {
5457
5460
  var source = arguments[i] != null ? arguments[i] : {};
5458
5461
  var ownKeys36 = Object.keys(source);
@@ -5462,7 +5465,7 @@ function _object_spread31(target) {
5462
5465
  }));
5463
5466
  }
5464
5467
  ownKeys36.forEach(function(key) {
5465
- _define_property31(target, key, source[key]);
5468
+ _define_property30(target, key, source[key]);
5466
5469
  });
5467
5470
  }
5468
5471
  return target;
@@ -5503,16 +5506,16 @@ var RECOMMEND_WORD = {
5503
5506
  en: "Other Site Search Results"
5504
5507
  };
5505
5508
  function SearchPanel({ focused, setFocused }) {
5506
- const [query2, setQuery] = useState12("");
5507
- const [searchResult, setSearchResult] = useState12({
5509
+ const [query2, setQuery] = useState14("");
5510
+ const [searchResult, setSearchResult] = useState14({
5508
5511
  current: [],
5509
5512
  others: []
5510
5513
  });
5511
5514
  const searchInputRef = useRef5(null);
5512
- const [initing, setIniting] = useState12(true);
5513
- const [currentSuggestionIndex, setCurrentSuggestionIndex] = useState12(0);
5515
+ const [initing, setIniting] = useState14(true);
5516
+ const [currentSuggestionIndex, setCurrentSuggestionIndex] = useState14(0);
5514
5517
  const pageSearcherRef = useRef5(null);
5515
- const { siteData: siteData2, page: { lang } } = usePageData12();
5518
+ const { siteData: siteData2, page: { lang } } = usePageData13();
5516
5519
  const { sidebar } = useLocaleSiteData();
5517
5520
  const { search } = siteData2;
5518
5521
  const suggestions = [
@@ -5529,7 +5532,7 @@ function SearchPanel({ focused, setFocused }) {
5529
5532
  if (search === false) {
5530
5533
  return;
5531
5534
  }
5532
- const pageSearcher = new PageSearcher(_object_spread_props25(_object_spread31({}, search), {
5535
+ const pageSearcher = new PageSearcher(_object_spread_props25(_object_spread30({}, search), {
5533
5536
  currentLang: lang,
5534
5537
  extractGroupName
5535
5538
  }));
@@ -5548,7 +5551,7 @@ function SearchPanel({ focused, setFocused }) {
5548
5551
  });
5549
5552
  return _initPageSearcher.apply(this, arguments);
5550
5553
  }
5551
- useEffect12(() => {
5554
+ useEffect14(() => {
5552
5555
  const onKeyDown = (e) => {
5553
5556
  switch (e.code) {
5554
5557
  case KEY_CODE.SEARCH:
@@ -5598,7 +5601,7 @@ function SearchPanel({ focused, setFocused }) {
5598
5601
  suggestions,
5599
5602
  currentSuggestionIndex
5600
5603
  ]);
5601
- useEffect12(() => {
5604
+ useEffect14(() => {
5602
5605
  if (focused) {
5603
5606
  setSearchResult({
5604
5607
  current: [],
@@ -5611,7 +5614,7 @@ function SearchPanel({ focused, setFocused }) {
5611
5614
  }, [
5612
5615
  focused
5613
5616
  ]);
5614
- useEffect12(() => {
5617
+ useEffect14(() => {
5615
5618
  !initing && initPageSearcher();
5616
5619
  }, [
5617
5620
  lang
@@ -5638,7 +5641,7 @@ function SearchPanel({ focused, setFocused }) {
5638
5641
  let accumulateIndex = -1;
5639
5642
  const renderSearchResult = (result, searchOptions) => {
5640
5643
  if (!suggestions.length && !initing) {
5641
- return /* @__PURE__ */ _jsx48(NoSearchResult, {
5644
+ return /* @__PURE__ */ _jsx49(NoSearchResult, {
5642
5645
  query: query2
5643
5646
  });
5644
5647
  }
@@ -5650,21 +5653,21 @@ function SearchPanel({ focused, setFocused }) {
5650
5653
  const indexItem = normalizeSearchIndexes(searchOptions.searchIndexes || []).find((indexInfo) => indexInfo.value === item.index);
5651
5654
  return indexItem.label;
5652
5655
  });
5653
- return /* @__PURE__ */ _jsxs30("div", {
5656
+ return /* @__PURE__ */ _jsxs31("div", {
5654
5657
  children: [
5655
5658
  renderSearchResultItem(result.current),
5656
- hasOtherResult && /* @__PURE__ */ _jsx48("h2", {
5659
+ hasOtherResult && /* @__PURE__ */ _jsx49("h2", {
5657
5660
  className: index_module_default15.groupTitle,
5658
5661
  children: RECOMMEND_WORD[lang]
5659
5662
  }),
5660
- /* @__PURE__ */ _jsx48("div", {
5663
+ /* @__PURE__ */ _jsx49("div", {
5661
5664
  style: {
5662
5665
  marginTop: "-12px"
5663
5666
  },
5664
- children: /* @__PURE__ */ _jsx48(Tabs, {
5667
+ children: /* @__PURE__ */ _jsx49(Tabs, {
5665
5668
  values: tabValues,
5666
5669
  tabContainerClassName: index_module_default15.tabClassName,
5667
- children: result.others.map((item) => /* @__PURE__ */ _jsx48(Tab, {
5670
+ children: result.others.map((item) => /* @__PURE__ */ _jsx49(Tab, {
5668
5671
  children: renderSearchResultItem(item.items, false)
5669
5672
  }, item.index))
5670
5673
  })
@@ -5674,9 +5677,9 @@ function SearchPanel({ focused, setFocused }) {
5674
5677
  };
5675
5678
  const renderSearchResultItem = (suggestionList, isCurrent = true) => {
5676
5679
  if (suggestionList.length === 0 && !initing) {
5677
- return /* @__PURE__ */ _jsx48("div", {
5680
+ return /* @__PURE__ */ _jsx49("div", {
5678
5681
  className: "mt-4 flex-center",
5679
- children: /* @__PURE__ */ _jsx48("div", {
5682
+ children: /* @__PURE__ */ _jsx49("div", {
5680
5683
  className: "p-2 font-bold text-md",
5681
5684
  style: {
5682
5685
  color: "#2c3e50"
@@ -5686,22 +5689,22 @@ function SearchPanel({ focused, setFocused }) {
5686
5689
  });
5687
5690
  }
5688
5691
  const normalizedSuggestions = normalizeSuggestions(suggestionList);
5689
- return /* @__PURE__ */ _jsx48("ul", {
5692
+ return /* @__PURE__ */ _jsx49("ul", {
5690
5693
  className: index_module_default15.suggestList,
5691
5694
  children: Object.keys(normalizedSuggestions).map((group) => {
5692
5695
  const groupSuggestions = normalizedSuggestions[group] || [];
5693
- return /* @__PURE__ */ _jsxs30("li", {
5696
+ return /* @__PURE__ */ _jsxs31("li", {
5694
5697
  children: [
5695
- isCurrent && /* @__PURE__ */ _jsx48("h2", {
5698
+ isCurrent && /* @__PURE__ */ _jsx49("h2", {
5696
5699
  className: index_module_default15.groupTitle,
5697
5700
  children: group
5698
5701
  }),
5699
- /* @__PURE__ */ _jsx48("ul", {
5702
+ /* @__PURE__ */ _jsx49("ul", {
5700
5703
  className: "pb-2",
5701
5704
  children: groupSuggestions.map((suggestion) => {
5702
5705
  accumulateIndex++;
5703
5706
  const suggestionIndex = accumulateIndex;
5704
- return /* @__PURE__ */ _jsx48(SuggestItem, {
5707
+ return /* @__PURE__ */ _jsx49(SuggestItem, {
5705
5708
  suggestion,
5706
5709
  isCurrent: suggestionIndex === currentSuggestionIndex,
5707
5710
  setCurrentSuggestionIndex: () => {
@@ -5717,27 +5720,27 @@ function SearchPanel({ focused, setFocused }) {
5717
5720
  })
5718
5721
  });
5719
5722
  };
5720
- return /* @__PURE__ */ _jsx48(_Fragment5, {
5721
- children: focused && /* @__PURE__ */ createPortal(/* @__PURE__ */ _jsx48("div", {
5723
+ return /* @__PURE__ */ _jsx49(_Fragment6, {
5724
+ children: focused && /* @__PURE__ */ createPortal(/* @__PURE__ */ _jsx49("div", {
5722
5725
  className: index_module_default15.mask,
5723
5726
  onClick: () => setFocused(false),
5724
- children: /* @__PURE__ */ _jsxs30("div", {
5727
+ children: /* @__PURE__ */ _jsxs31("div", {
5725
5728
  className: `${index_module_default15.modal}`,
5726
5729
  onClick: (e) => {
5727
5730
  setFocused(true);
5728
5731
  e.stopPropagation();
5729
5732
  },
5730
5733
  children: [
5731
- /* @__PURE__ */ _jsxs30("div", {
5734
+ /* @__PURE__ */ _jsxs31("div", {
5732
5735
  className: "flex items-center",
5733
5736
  children: [
5734
- /* @__PURE__ */ _jsxs30("div", {
5737
+ /* @__PURE__ */ _jsxs31("div", {
5735
5738
  className: index_module_default15.inputForm,
5736
5739
  children: [
5737
- /* @__PURE__ */ _jsx48("label", {
5738
- children: /* @__PURE__ */ _jsx48(search_default, {})
5740
+ /* @__PURE__ */ _jsx49("label", {
5741
+ children: /* @__PURE__ */ _jsx49(search_default, {})
5739
5742
  }),
5740
- /* @__PURE__ */ _jsx48("input", {
5743
+ /* @__PURE__ */ _jsx49("input", {
5741
5744
  className: index_module_default15.input,
5742
5745
  ref: searchInputRef,
5743
5746
  placeholder: "Search Docs",
@@ -5746,8 +5749,8 @@ function SearchPanel({ focused, setFocused }) {
5746
5749
  autoFocus: true,
5747
5750
  onChange: debounce(onQueryChanged, 150)
5748
5751
  }),
5749
- /* @__PURE__ */ _jsx48("label", {
5750
- children: /* @__PURE__ */ _jsx48(close_default, {
5752
+ /* @__PURE__ */ _jsx49("label", {
5753
+ children: /* @__PURE__ */ _jsx49(close_default, {
5751
5754
  className: index_module_default15.close,
5752
5755
  onClick: (e) => {
5753
5756
  if (searchInputRef.current) {
@@ -5764,7 +5767,7 @@ function SearchPanel({ focused, setFocused }) {
5764
5767
  })
5765
5768
  ]
5766
5769
  }),
5767
- /* @__PURE__ */ _jsx48("h2", {
5770
+ /* @__PURE__ */ _jsx49("h2", {
5768
5771
  className: "text-brand ml-2 sm:hidden cursor-pointer",
5769
5772
  onClick: (e) => {
5770
5773
  e.stopPropagation();
@@ -5774,15 +5777,15 @@ function SearchPanel({ focused, setFocused }) {
5774
5777
  })
5775
5778
  ]
5776
5779
  }),
5777
- query2 ? /* @__PURE__ */ _jsx48("div", {
5780
+ query2 ? /* @__PURE__ */ _jsx49("div", {
5778
5781
  className: `${index_module_default15.searchHits} rspress-scrollbar`,
5779
5782
  children: renderSearchResult(searchResult, search)
5780
5783
  }) : null,
5781
- initing && /* @__PURE__ */ _jsx48("div", {
5784
+ initing && /* @__PURE__ */ _jsx49("div", {
5782
5785
  className: "flex-center",
5783
- children: /* @__PURE__ */ _jsx48("div", {
5786
+ children: /* @__PURE__ */ _jsx49("div", {
5784
5787
  className: "p-2 text-sm",
5785
- children: /* @__PURE__ */ _jsx48(loading_default, {})
5788
+ children: /* @__PURE__ */ _jsx49(loading_default, {})
5786
5789
  })
5787
5790
  })
5788
5791
  ]
@@ -5793,28 +5796,28 @@ function SearchPanel({ focused, setFocused }) {
5793
5796
 
5794
5797
  // src/theme-default/components/Search/index.tsx
5795
5798
  function Search2() {
5796
- const [focused, setFocused] = useState13(false);
5797
- return /* @__PURE__ */ _jsxs31(_Fragment6, {
5799
+ const [focused, setFocused] = useState15(false);
5800
+ return /* @__PURE__ */ _jsxs32(_Fragment7, {
5798
5801
  children: [
5799
- /* @__PURE__ */ _jsx49("div", {
5802
+ /* @__PURE__ */ _jsx50("div", {
5800
5803
  className: index_module_default15.navSearchButton,
5801
5804
  onClick: () => setFocused(true),
5802
- children: /* @__PURE__ */ _jsxs31("button", {
5805
+ children: /* @__PURE__ */ _jsxs32("button", {
5803
5806
  children: [
5804
- /* @__PURE__ */ _jsx49(search_default, {
5807
+ /* @__PURE__ */ _jsx50(search_default, {
5805
5808
  width: "18",
5806
5809
  hight: "18"
5807
5810
  }),
5808
- /* @__PURE__ */ _jsx49("p", {
5811
+ /* @__PURE__ */ _jsx50("p", {
5809
5812
  className: index_module_default15.searchWord,
5810
5813
  children: "Search Docs"
5811
5814
  }),
5812
- /* @__PURE__ */ _jsxs31("div", {
5815
+ /* @__PURE__ */ _jsxs32("div", {
5813
5816
  children: [
5814
- /* @__PURE__ */ _jsx49("span", {
5817
+ /* @__PURE__ */ _jsx50("span", {
5815
5818
  children: "⌘"
5816
5819
  }),
5817
- /* @__PURE__ */ _jsx49("span", {
5820
+ /* @__PURE__ */ _jsx50("span", {
5818
5821
  children: "K"
5819
5822
  })
5820
5823
  ]
@@ -5822,12 +5825,12 @@ function Search2() {
5822
5825
  ]
5823
5826
  })
5824
5827
  }),
5825
- /* @__PURE__ */ _jsx49("div", {
5828
+ /* @__PURE__ */ _jsx50("div", {
5826
5829
  className: index_module_default15.mobileNavSearchButton,
5827
5830
  onClick: () => setFocused(true),
5828
- children: /* @__PURE__ */ _jsx49(search_default, {})
5831
+ children: /* @__PURE__ */ _jsx50(search_default, {})
5829
5832
  }),
5830
- /* @__PURE__ */ _jsx49(SearchPanel, {
5833
+ /* @__PURE__ */ _jsx50(SearchPanel, {
5831
5834
  focused,
5832
5835
  setFocused
5833
5836
  })
@@ -5836,16 +5839,16 @@ function Search2() {
5836
5839
  }
5837
5840
 
5838
5841
  // src/theme-default/components/HomeFooter/index.tsx
5839
- import { jsx as _jsx50 } from "react/jsx-runtime";
5840
- import { usePageData as usePageData13 } from "@/runtime";
5842
+ import { jsx as _jsx51 } from "react/jsx-runtime";
5843
+ import { usePageData as usePageData14 } from "@/runtime";
5841
5844
  function HomeFooter2() {
5842
- const { siteData: siteData2 } = usePageData13();
5845
+ const { siteData: siteData2 } = usePageData14();
5843
5846
  const { message } = siteData2.themeConfig.footer || {};
5844
- return /* @__PURE__ */ _jsx50("footer", {
5847
+ return /* @__PURE__ */ _jsx51("footer", {
5845
5848
  className: "absolute bottom-0 mt-12 py-8 px-6 sm:p-8 w-full border-t border-solid border-divider-light",
5846
- children: /* @__PURE__ */ _jsx50("div", {
5849
+ children: /* @__PURE__ */ _jsx51("div", {
5847
5850
  className: "m-auto w-full text-center",
5848
- children: message && /* @__PURE__ */ _jsx50("div", {
5851
+ children: message && /* @__PURE__ */ _jsx51("div", {
5849
5852
  className: "font-meduim text-sm text-text-2",
5850
5853
  children: message
5851
5854
  })
@@ -5854,9 +5857,9 @@ function HomeFooter2() {
5854
5857
  }
5855
5858
 
5856
5859
  // src/theme-default/components/Toc/index.tsx
5857
- import { jsx as _jsx51 } from "react/jsx-runtime";
5858
- import { usePageData as usePageData14 } from "@/runtime";
5859
- function _define_property32(obj, key, value) {
5860
+ import { jsx as _jsx52 } from "react/jsx-runtime";
5861
+ import { usePageData as usePageData15 } from "@/runtime";
5862
+ function _define_property31(obj, key, value) {
5860
5863
  if (key in obj) {
5861
5864
  Object.defineProperty(obj, key, {
5862
5865
  value,
@@ -5869,7 +5872,7 @@ function _define_property32(obj, key, value) {
5869
5872
  }
5870
5873
  return obj;
5871
5874
  }
5872
- function _object_spread32(target) {
5875
+ function _object_spread31(target) {
5873
5876
  for (var i = 1; i < arguments.length; i++) {
5874
5877
  var source = arguments[i] != null ? arguments[i] : {};
5875
5878
  var ownKeys36 = Object.keys(source);
@@ -5879,15 +5882,15 @@ function _object_spread32(target) {
5879
5882
  }));
5880
5883
  }
5881
5884
  ownKeys36.forEach(function(key) {
5882
- _define_property32(target, key, source[key]);
5885
+ _define_property31(target, key, source[key]);
5883
5886
  });
5884
5887
  }
5885
5888
  return target;
5886
5889
  }
5887
5890
  var TocItem = (header) => {
5888
- return /* @__PURE__ */ _jsx51("li", {
5891
+ return /* @__PURE__ */ _jsx52("li", {
5889
5892
  className: "py-1",
5890
- children: /* @__PURE__ */ _jsx51("a", {
5893
+ children: /* @__PURE__ */ _jsx52("a", {
5891
5894
  href: `#${header.id}`,
5892
5895
  className: "toc-link transition-all duration-300 hover:text-text-1 text-text-2 block underline underline-offset-2",
5893
5896
  style: {
@@ -5901,7 +5904,7 @@ var TocItem = (header) => {
5901
5904
  scrollToTarget(target, false);
5902
5905
  }
5903
5906
  },
5904
- children: /* @__PURE__ */ _jsx51("span", {
5907
+ children: /* @__PURE__ */ _jsx52("span", {
5905
5908
  className: "toc-link-text block",
5906
5909
  children: header.text
5907
5910
  })
@@ -5909,17 +5912,17 @@ var TocItem = (header) => {
5909
5912
  }, header.id);
5910
5913
  };
5911
5914
  function Toc() {
5912
- const { page } = usePageData14();
5913
- return /* @__PURE__ */ _jsx51("ul", {
5914
- children: page.toc.map((item) => /* @__PURE__ */ _jsx51(TocItem, _object_spread32({}, item), item.id))
5915
+ const { page } = usePageData15();
5916
+ return /* @__PURE__ */ _jsx52("ul", {
5917
+ children: page.toc.map((item) => /* @__PURE__ */ _jsx52(TocItem, _object_spread31({}, item), item.id))
5915
5918
  });
5916
5919
  }
5917
5920
 
5918
5921
  // src/theme-default/components/PackageManagerTabs/index.tsx
5919
- import { jsx as _jsx58, jsxs as _jsxs38 } from "react/jsx-runtime";
5922
+ import { jsx as _jsx59, jsxs as _jsxs39 } from "react/jsx-runtime";
5920
5923
 
5921
5924
  // src/theme-default/layout/DocLayout/docComponents/pre.tsx
5922
- import { jsx as _jsx52, jsxs as _jsxs32 } from "react/jsx-runtime";
5925
+ import { jsx as _jsx53, jsxs as _jsxs33 } from "react/jsx-runtime";
5923
5926
  var DEFAULT_LANGUAGE_CLASS = "language-bash";
5924
5927
  function parseTitleFromMeta(meta) {
5925
5928
  var _highlightReg_exec;
@@ -5938,20 +5941,20 @@ function parseTitleFromMeta(meta) {
5938
5941
  }
5939
5942
  function Pre({ children }) {
5940
5943
  if (Array.isArray(children)) {
5941
- return /* @__PURE__ */ _jsx52("pre", {
5944
+ return /* @__PURE__ */ _jsx53("pre", {
5942
5945
  children
5943
5946
  });
5944
5947
  }
5945
5948
  const { className, meta } = children.props;
5946
5949
  const codeTitle = parseTitleFromMeta(meta);
5947
- return /* @__PURE__ */ _jsxs32("div", {
5950
+ return /* @__PURE__ */ _jsxs33("div", {
5948
5951
  className: className || DEFAULT_LANGUAGE_CLASS,
5949
5952
  children: [
5950
- codeTitle && /* @__PURE__ */ _jsx52("div", {
5953
+ codeTitle && /* @__PURE__ */ _jsx53("div", {
5951
5954
  className: "rspress-code-title",
5952
5955
  children: codeTitle
5953
5956
  }),
5954
- /* @__PURE__ */ _jsx52("div", {
5957
+ /* @__PURE__ */ _jsx53("div", {
5955
5958
  className: "rspress-code-content rspress-scrollbar",
5956
5959
  children
5957
5960
  })
@@ -5960,7 +5963,7 @@ function Pre({ children }) {
5960
5963
  }
5961
5964
 
5962
5965
  // src/theme-default/layout/DocLayout/docComponents/code.tsx
5963
- import { jsx as _jsx53, jsxs as _jsxs33, Fragment as _Fragment7 } from "react/jsx-runtime";
5966
+ import { jsx as _jsx54, jsxs as _jsxs34, Fragment as _Fragment8 } from "react/jsx-runtime";
5964
5967
  import { PrismLight as SyntaxHighlighter } from "react-syntax-highlighter";
5965
5968
  import jsx from "react-syntax-highlighter/dist/esm/languages/prism/jsx";
5966
5969
  import js from "react-syntax-highlighter/dist/esm/languages/prism/javascript";
@@ -6054,8 +6057,8 @@ var prisim_theme_default = {
6054
6057
  };
6055
6058
 
6056
6059
  // src/theme-default/layout/DocLayout/docComponents/code.tsx
6057
- import { usePageData as usePageData15 } from "@/runtime";
6058
- function _define_property33(obj, key, value) {
6060
+ import { usePageData as usePageData16 } from "@/runtime";
6061
+ function _define_property32(obj, key, value) {
6059
6062
  if (key in obj) {
6060
6063
  Object.defineProperty(obj, key, {
6061
6064
  value,
@@ -6068,7 +6071,7 @@ function _define_property33(obj, key, value) {
6068
6071
  }
6069
6072
  return obj;
6070
6073
  }
6071
- function _object_spread33(target) {
6074
+ function _object_spread32(target) {
6072
6075
  for (var i = 1; i < arguments.length; i++) {
6073
6076
  var source = arguments[i] != null ? arguments[i] : {};
6074
6077
  var ownKeys36 = Object.keys(source);
@@ -6078,7 +6081,7 @@ function _object_spread33(target) {
6078
6081
  }));
6079
6082
  }
6080
6083
  ownKeys36.forEach(function(key) {
6081
- _define_property33(target, key, source[key]);
6084
+ _define_property32(target, key, source[key]);
6082
6085
  });
6083
6086
  }
6084
6087
  return target;
@@ -6104,7 +6107,7 @@ function registerLanguages() {
6104
6107
  }
6105
6108
  function Code(props) {
6106
6109
  const copyButtonRef = useRef6(null);
6107
- const { siteData: siteData2 } = usePageData15();
6110
+ const { siteData: siteData2 } = usePageData16();
6108
6111
  const { showLineNumbers } = siteData2.markdown;
6109
6112
  if (!registered) {
6110
6113
  registerLanguages();
@@ -6112,7 +6115,7 @@ function Code(props) {
6112
6115
  const { className, meta } = props;
6113
6116
  const language = className === null || className === void 0 ? void 0 : className.replace(/language-/, "");
6114
6117
  if (!language) {
6115
- return /* @__PURE__ */ _jsx53("code", _object_spread33({}, props));
6118
+ return /* @__PURE__ */ _jsx54("code", _object_spread32({}, props));
6116
6119
  }
6117
6120
  let children;
6118
6121
  if (typeof props.children === "string") {
@@ -6154,9 +6157,9 @@ function Code(props) {
6154
6157
  timeoutIdMap.set(el, timeoutId);
6155
6158
  }
6156
6159
  };
6157
- return /* @__PURE__ */ _jsxs33(_Fragment7, {
6160
+ return /* @__PURE__ */ _jsxs34(_Fragment8, {
6158
6161
  children: [
6159
- /* @__PURE__ */ _jsx53(SyntaxHighlighter, {
6162
+ /* @__PURE__ */ _jsx54(SyntaxHighlighter, {
6160
6163
  language,
6161
6164
  style: prisim_theme_default,
6162
6165
  wrapLines: true,
@@ -6179,7 +6182,7 @@ function Code(props) {
6179
6182
  },
6180
6183
  children
6181
6184
  }),
6182
- /* @__PURE__ */ _jsx53("button", {
6185
+ /* @__PURE__ */ _jsx54("button", {
6183
6186
  className: "copy",
6184
6187
  onClick: copyCode,
6185
6188
  ref: copyButtonRef
@@ -6189,8 +6192,8 @@ function Code(props) {
6189
6192
  }
6190
6193
 
6191
6194
  // src/theme-default/components/PackageManagerTabs/icons/Npm.tsx
6192
- import { jsx as _jsx54, jsxs as _jsxs34 } from "react/jsx-runtime";
6193
- function _define_property34(obj, key, value) {
6195
+ import { jsx as _jsx55, jsxs as _jsxs35 } from "react/jsx-runtime";
6196
+ function _define_property33(obj, key, value) {
6194
6197
  if (key in obj) {
6195
6198
  Object.defineProperty(obj, key, {
6196
6199
  value,
@@ -6203,7 +6206,7 @@ function _define_property34(obj, key, value) {
6203
6206
  }
6204
6207
  return obj;
6205
6208
  }
6206
- function _object_spread34(target) {
6209
+ function _object_spread33(target) {
6207
6210
  for (var i = 1; i < arguments.length; i++) {
6208
6211
  var source = arguments[i] != null ? arguments[i] : {};
6209
6212
  var ownKeys36 = Object.keys(source);
@@ -6213,7 +6216,7 @@ function _object_spread34(target) {
6213
6216
  }));
6214
6217
  }
6215
6218
  ownKeys36.forEach(function(key) {
6216
- _define_property34(target, key, source[key]);
6219
+ _define_property33(target, key, source[key]);
6217
6220
  });
6218
6221
  }
6219
6222
  return target;
@@ -6243,18 +6246,18 @@ function _object_spread_props26(target, source) {
6243
6246
  return target;
6244
6247
  }
6245
6248
  function Npm(props) {
6246
- return /* @__PURE__ */ _jsxs34("svg", _object_spread_props26(_object_spread34({
6249
+ return /* @__PURE__ */ _jsxs35("svg", _object_spread_props26(_object_spread33({
6247
6250
  xmlns: "http://www.w3.org/2000/svg",
6248
6251
  width: "1em",
6249
6252
  height: "1em",
6250
6253
  viewBox: "0 0 256 256"
6251
6254
  }, props), {
6252
6255
  children: [
6253
- /* @__PURE__ */ _jsx54("path", {
6256
+ /* @__PURE__ */ _jsx55("path", {
6254
6257
  fill: "#C12127",
6255
6258
  d: "M0 256V0h256v256z"
6256
6259
  }),
6257
- /* @__PURE__ */ _jsx54("path", {
6260
+ /* @__PURE__ */ _jsx55("path", {
6258
6261
  fill: "#FFF",
6259
6262
  d: "M48 48h160v160h-32V80h-48v128H48z"
6260
6263
  })
@@ -6263,8 +6266,8 @@ function Npm(props) {
6263
6266
  }
6264
6267
 
6265
6268
  // src/theme-default/components/PackageManagerTabs/icons/Yarn.tsx
6266
- import { jsx as _jsx55, jsxs as _jsxs35 } from "react/jsx-runtime";
6267
- function _define_property35(obj, key, value) {
6269
+ import { jsx as _jsx56, jsxs as _jsxs36 } from "react/jsx-runtime";
6270
+ function _define_property34(obj, key, value) {
6268
6271
  if (key in obj) {
6269
6272
  Object.defineProperty(obj, key, {
6270
6273
  value,
@@ -6277,7 +6280,7 @@ function _define_property35(obj, key, value) {
6277
6280
  }
6278
6281
  return obj;
6279
6282
  }
6280
- function _object_spread35(target) {
6283
+ function _object_spread34(target) {
6281
6284
  for (var i = 1; i < arguments.length; i++) {
6282
6285
  var source = arguments[i] != null ? arguments[i] : {};
6283
6286
  var ownKeys36 = Object.keys(source);
@@ -6287,7 +6290,7 @@ function _object_spread35(target) {
6287
6290
  }));
6288
6291
  }
6289
6292
  ownKeys36.forEach(function(key) {
6290
- _define_property35(target, key, source[key]);
6293
+ _define_property34(target, key, source[key]);
6291
6294
  });
6292
6295
  }
6293
6296
  return target;
@@ -6317,19 +6320,19 @@ function _object_spread_props27(target, source) {
6317
6320
  return target;
6318
6321
  }
6319
6322
  function Yarn(props) {
6320
- return /* @__PURE__ */ _jsx55("svg", _object_spread_props27(_object_spread35({
6323
+ return /* @__PURE__ */ _jsx56("svg", _object_spread_props27(_object_spread34({
6321
6324
  xmlns: "http://www.w3.org/2000/svg",
6322
6325
  width: "1em",
6323
6326
  height: "1em",
6324
6327
  viewBox: "0 0 128 128"
6325
6328
  }, props), {
6326
- children: /* @__PURE__ */ _jsxs35("g", {
6329
+ children: /* @__PURE__ */ _jsxs36("g", {
6327
6330
  fill: "#2c8ebb",
6328
6331
  children: [
6329
- /* @__PURE__ */ _jsx55("path", {
6332
+ /* @__PURE__ */ _jsx56("path", {
6330
6333
  d: "M99.24 80.71C94.9 80.76 91.1 83 87.89 85c-6 3.71-9 3.47-9 3.47l-.1-.17c-.41-.67 1.92-6.68-.69-13.84c-2.82-7.83-7.3-9.72-6.94-10.32c1.53-2.59 5.36-6.7 6.89-14.36c.91-4.64.67-12.28-1.39-16.28c-.38-.74-3.78 1.24-3.78 1.24s-3.18-7.09-4.07-7.66c-2.87-1.84-6 7.61-6 7.61a14 14 0 0 0-11.71 4.5a9.64 9.64 0 0 1-3.85 2.27c-.41.14-.91.12-2.15 3.47c-1.9 5.07 3.24 10.81 3.24 10.81s-6.13 4.33-8.4 9.72a24.78 24.78 0 0 0-1.75 11.68s-4.36 3.78-4.64 7.68a12.87 12.87 0 0 0 1.77 7.83a1.94 1.94 0 0 0 2.63.91s-2.9 3.38-.19 4.81c2.47 1.29 6.63 2 8.83-.19c1.6-1.6 1.92-5.17 2.51-6.63c.14-.34.62.57 1.08 1a10 10 0 0 0 1.36 1s-3.9 1.68-2.3 5.51c.53 1.27 2.42 2.08 5.51 2.06c1.15 0 13.76-.72 17.12-1.53a4.33 4.33 0 0 0 2.61-1.46a63 63 0 0 0 15.49-7c4.74-3.09 6.68-3.93 10.51-4.84c3.16-.75 2.95-5.65-1.24-5.58z"
6331
6334
  }),
6332
- /* @__PURE__ */ _jsx55("path", {
6335
+ /* @__PURE__ */ _jsx56("path", {
6333
6336
  d: "M64 2a62 62 0 1 0 62 62A62 62 0 0 0 64 2zm37.3 87.83c-3.35.81-4.91 1.44-9.41 4.36a67 67 0 0 1-15.56 7.18a8.71 8.71 0 0 1-3.64 1.77c-3.81.93-16.88 1.63-17.91 1.63h-.24c-4 0-6.27-1.24-7.49-2.54c-3.4 1.7-7.8 1-11-.69a5.55 5.55 0 0 1-3-3.9a6 6 0 0 1 0-2.06a6.66 6.66 0 0 1-.79-1A16.38 16.38 0 0 1 30 84.52c.29-3.73 2.87-7.06 4.55-8.83A28.56 28.56 0 0 1 36.61 64a26.82 26.82 0 0 1 6.82-9c-1.65-2.78-3.33-7.06-1.7-11.42c1.17-3.11 2.13-4.84 4.24-5.58a6.84 6.84 0 0 0 2.51-1.34A17.65 17.65 0 0 1 60.34 31c.19-.48.41-1 .65-1.46c1.6-3.4 3.3-5.31 5.29-6a4.88 4.88 0 0 1 4.4.5c.65.43 1.48 1 3.9 6a4.69 4.69 0 0 1 2.85-.1a3.81 3.81 0 0 1 2.39 1.94c2.47 4.74 2.8 13.19 1.72 18.62a33.8 33.8 0 0 1-5.84 13.31a25.73 25.73 0 0 1 5.77 9.43a25.42 25.42 0 0 1 1.41 10.41A28.7 28.7 0 0 0 86 81.91c3.06-1.89 7.68-4.74 13.19-4.81a6.62 6.62 0 0 1 7 5.7a6.35 6.35 0 0 1-4.89 7.03z"
6334
6337
  })
6335
6338
  ]
@@ -6338,8 +6341,8 @@ function Yarn(props) {
6338
6341
  }
6339
6342
 
6340
6343
  // src/theme-default/components/PackageManagerTabs/icons/Pnpm.tsx
6341
- import { jsx as _jsx56, jsxs as _jsxs36 } from "react/jsx-runtime";
6342
- function _define_property36(obj, key, value) {
6344
+ import { jsx as _jsx57, jsxs as _jsxs37 } from "react/jsx-runtime";
6345
+ function _define_property35(obj, key, value) {
6343
6346
  if (key in obj) {
6344
6347
  Object.defineProperty(obj, key, {
6345
6348
  value,
@@ -6352,7 +6355,7 @@ function _define_property36(obj, key, value) {
6352
6355
  }
6353
6356
  return obj;
6354
6357
  }
6355
- function _object_spread36(target) {
6358
+ function _object_spread35(target) {
6356
6359
  for (var i = 1; i < arguments.length; i++) {
6357
6360
  var source = arguments[i] != null ? arguments[i] : {};
6358
6361
  var ownKeys36 = Object.keys(source);
@@ -6362,7 +6365,7 @@ function _object_spread36(target) {
6362
6365
  }));
6363
6366
  }
6364
6367
  ownKeys36.forEach(function(key) {
6365
- _define_property36(target, key, source[key]);
6368
+ _define_property35(target, key, source[key]);
6366
6369
  });
6367
6370
  }
6368
6371
  return target;
@@ -6392,18 +6395,18 @@ function _object_spread_props28(target, source) {
6392
6395
  return target;
6393
6396
  }
6394
6397
  function Pnpm(props) {
6395
- return /* @__PURE__ */ _jsxs36("svg", _object_spread_props28(_object_spread36({
6398
+ return /* @__PURE__ */ _jsxs37("svg", _object_spread_props28(_object_spread35({
6396
6399
  xmlns: "http://www.w3.org/2000/svg",
6397
6400
  width: "1em",
6398
6401
  height: "1em",
6399
6402
  viewBox: "0 0 128 128"
6400
6403
  }, props), {
6401
6404
  children: [
6402
- /* @__PURE__ */ _jsx56("path", {
6405
+ /* @__PURE__ */ _jsx57("path", {
6403
6406
  fill: "#f8ab00",
6404
6407
  d: "M0 .004V40h39.996V.004Zm43.996 0V40h40V.004Zm44.008 0V40H128V.004Zm0 43.996v39.996H128V44Z"
6405
6408
  }),
6406
- /* @__PURE__ */ _jsx56("path", {
6409
+ /* @__PURE__ */ _jsx57("path", {
6407
6410
  fill: "#4c4c4c",
6408
6411
  d: "M43.996 44v39.996h40V44ZM0 87.996v40h39.996v-40Zm43.996 0v40h40v-40Zm44.008 0v40H128v-40Z"
6409
6412
  })
@@ -6412,8 +6415,8 @@ function Pnpm(props) {
6412
6415
  }
6413
6416
 
6414
6417
  // src/theme-default/components/PackageManagerTabs/icons/Bun.tsx
6415
- import { jsx as _jsx57, jsxs as _jsxs37 } from "react/jsx-runtime";
6416
- function _define_property37(obj, key, value) {
6418
+ import { jsx as _jsx58, jsxs as _jsxs38 } from "react/jsx-runtime";
6419
+ function _define_property36(obj, key, value) {
6417
6420
  if (key in obj) {
6418
6421
  Object.defineProperty(obj, key, {
6419
6422
  value,
@@ -6426,7 +6429,7 @@ function _define_property37(obj, key, value) {
6426
6429
  }
6427
6430
  return obj;
6428
6431
  }
6429
- function _object_spread37(target) {
6432
+ function _object_spread36(target) {
6430
6433
  for (var i = 1; i < arguments.length; i++) {
6431
6434
  var source = arguments[i] != null ? arguments[i] : {};
6432
6435
  var ownKeys36 = Object.keys(source);
@@ -6436,7 +6439,7 @@ function _object_spread37(target) {
6436
6439
  }));
6437
6440
  }
6438
6441
  ownKeys36.forEach(function(key) {
6439
- _define_property37(target, key, source[key]);
6442
+ _define_property36(target, key, source[key]);
6440
6443
  });
6441
6444
  }
6442
6445
  return target;
@@ -6466,28 +6469,28 @@ function _object_spread_props29(target, source) {
6466
6469
  return target;
6467
6470
  }
6468
6471
  function Bun(props) {
6469
- return /* @__PURE__ */ _jsxs37("svg", _object_spread_props29(_object_spread37({
6472
+ return /* @__PURE__ */ _jsxs38("svg", _object_spread_props29(_object_spread36({
6470
6473
  id: "Bun",
6471
6474
  width: "1.2em",
6472
6475
  height: "1.2em",
6473
6476
  viewBox: "0 0 80 70"
6474
6477
  }, props), {
6475
6478
  children: [
6476
- /* @__PURE__ */ _jsx57("path", {
6479
+ /* @__PURE__ */ _jsx58("path", {
6477
6480
  id: "Shadow",
6478
6481
  d: "M71.09,20.74c-.16-.17-.33-.34-.5-.5s-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5A26.46,26.46,0,0,1,75.5,35.7c0,16.57-16.82,30.05-37.5,30.05-11.58,0-21.94-4.23-28.83-10.86l.5.5.5.5.5.5.5.5.5.5.5.5.5.5C19.55,65.3,30.14,69.75,42,69.75c20.68,0,37.5-13.48,37.5-30C79.5,32.69,76.46,26,71.09,20.74Z"
6479
6482
  }),
6480
- /* @__PURE__ */ _jsxs37("g", {
6483
+ /* @__PURE__ */ _jsxs38("g", {
6481
6484
  id: "Body",
6482
6485
  children: [
6483
- /* @__PURE__ */ _jsx57("path", {
6486
+ /* @__PURE__ */ _jsx58("path", {
6484
6487
  id: "Background",
6485
6488
  d: "M73,35.7c0,15.21-15.67,27.54-35,27.54S3,50.91,3,35.7C3,26.27,9,17.94,18.22,13S33.18,3,38,3s8.94,4.13,19.78,10C67,17.94,73,26.27,73,35.7Z",
6486
6489
  style: {
6487
6490
  fill: "#fbf0df"
6488
6491
  }
6489
6492
  }),
6490
- /* @__PURE__ */ _jsx57("path", {
6493
+ /* @__PURE__ */ _jsx58("path", {
6491
6494
  id: "Bottom_Shadow",
6492
6495
  "data-name": "Bottom Shadow",
6493
6496
  d: "M73,35.7a21.67,21.67,0,0,0-.8-5.78c-2.73,33.3-43.35,34.9-59.32,24.94A40,40,0,0,0,38,63.24C57.3,63.24,73,50.89,73,35.7Z",
@@ -6495,7 +6498,7 @@ function Bun(props) {
6495
6498
  fill: "#f6dece"
6496
6499
  }
6497
6500
  }),
6498
- /* @__PURE__ */ _jsx57("path", {
6501
+ /* @__PURE__ */ _jsx58("path", {
6499
6502
  id: "Light_Shine",
6500
6503
  "data-name": "Light Shine",
6501
6504
  d: "M24.53,11.17C29,8.49,34.94,3.46,40.78,3.45A9.29,9.29,0,0,0,38,3c-2.42,0-5,1.25-8.25,3.13-1.13.66-2.3,1.39-3.54,2.15-2.33,1.44-5,3.07-8,4.7C8.69,18.13,3,26.62,3,35.7c0,.4,0,.8,0,1.19C9.06,15.48,20.07,13.85,24.53,11.17Z",
@@ -6503,7 +6506,7 @@ function Bun(props) {
6503
6506
  fill: "#fffefc"
6504
6507
  }
6505
6508
  }),
6506
- /* @__PURE__ */ _jsx57("path", {
6509
+ /* @__PURE__ */ _jsx58("path", {
6507
6510
  id: "Top",
6508
6511
  d: "M35.12,5.53A16.41,16.41,0,0,1,29.49,18c-.28.25-.06.73.3.59,3.37-1.31,7.92-5.23,6-13.14C35.71,5,35.12,5.12,35.12,5.53Zm2.27,0A16.24,16.24,0,0,1,39,19c-.12.35.31.65.55.36C41.74,16.56,43.65,11,37.93,5,37.64,4.74,37.19,5.14,37.39,5.49Zm2.76-.17A16.42,16.42,0,0,1,47,17.12a.33.33,0,0,0,.65.11c.92-3.49.4-9.44-7.17-12.53C40.08,4.54,39.82,5.08,40.15,5.32ZM21.69,15.76a16.94,16.94,0,0,0,10.47-9c.18-.36.75-.22.66.18-1.73,8-7.52,9.67-11.12,9.45C21.32,16.4,21.33,15.87,21.69,15.76Z",
6509
6512
  style: {
@@ -6511,29 +6514,29 @@ function Bun(props) {
6511
6514
  fillRule: "evenodd"
6512
6515
  }
6513
6516
  }),
6514
- /* @__PURE__ */ _jsx57("path", {
6517
+ /* @__PURE__ */ _jsx58("path", {
6515
6518
  id: "Outline",
6516
6519
  d: "M38,65.75C17.32,65.75.5,52.27.5,35.7c0-10,6.18-19.33,16.53-24.92,3-1.6,5.57-3.21,7.86-4.62,1.26-.78,2.45-1.51,3.6-2.19C32,1.89,35,.5,38,.5s5.62,1.2,8.9,3.14c1,.57,2,1.19,3.07,1.87,2.49,1.54,5.3,3.28,9,5.27C69.32,16.37,75.5,25.69,75.5,35.7,75.5,52.27,58.68,65.75,38,65.75ZM38,3c-2.42,0-5,1.25-8.25,3.13-1.13.66-2.3,1.39-3.54,2.15-2.33,1.44-5,3.07-8,4.7C8.69,18.13,3,26.62,3,35.7,3,50.89,18.7,63.25,38,63.25S73,50.89,73,35.7C73,26.62,67.31,18.13,57.78,13,54,11,51.05,9.12,48.66,7.64c-1.09-.67-2.09-1.29-3-1.84C42.63,4,40.42,3,38,3Z"
6517
6520
  })
6518
6521
  ]
6519
6522
  }),
6520
- /* @__PURE__ */ _jsxs37("g", {
6523
+ /* @__PURE__ */ _jsxs38("g", {
6521
6524
  id: "Mouth",
6522
6525
  children: [
6523
- /* @__PURE__ */ _jsx57("g", {
6526
+ /* @__PURE__ */ _jsx58("g", {
6524
6527
  id: "Background-2",
6525
6528
  "data-name": "Background",
6526
- children: /* @__PURE__ */ _jsx57("path", {
6529
+ children: /* @__PURE__ */ _jsx58("path", {
6527
6530
  d: "M45.05,43a8.93,8.93,0,0,1-2.92,4.71,6.81,6.81,0,0,1-4,1.88A6.84,6.84,0,0,1,34,47.71,8.93,8.93,0,0,1,31.12,43a.72.72,0,0,1,.8-.81H44.26A.72.72,0,0,1,45.05,43Z",
6528
6531
  style: {
6529
6532
  fill: "#b71422"
6530
6533
  }
6531
6534
  })
6532
6535
  }),
6533
- /* @__PURE__ */ _jsxs37("g", {
6536
+ /* @__PURE__ */ _jsxs38("g", {
6534
6537
  id: "Tongue",
6535
6538
  children: [
6536
- /* @__PURE__ */ _jsx57("path", {
6539
+ /* @__PURE__ */ _jsx58("path", {
6537
6540
  id: "Background-3",
6538
6541
  "data-name": "Background",
6539
6542
  d: "M34,47.79a6.91,6.91,0,0,0,4.12,1.9,6.91,6.91,0,0,0,4.11-1.9,10.63,10.63,0,0,0,1-1.07,6.83,6.83,0,0,0-4.9-2.31,6.15,6.15,0,0,0-5,2.78C33.56,47.4,33.76,47.6,34,47.79Z",
@@ -6541,24 +6544,24 @@ function Bun(props) {
6541
6544
  fill: "#ff6164"
6542
6545
  }
6543
6546
  }),
6544
- /* @__PURE__ */ _jsx57("path", {
6547
+ /* @__PURE__ */ _jsx58("path", {
6545
6548
  id: "Outline-2",
6546
6549
  "data-name": "Outline",
6547
6550
  d: "M34.16,47a5.36,5.36,0,0,1,4.19-2.08,6,6,0,0,1,4,1.69c.23-.25.45-.51.66-.77a7,7,0,0,0-4.71-1.93,6.36,6.36,0,0,0-4.89,2.36A9.53,9.53,0,0,0,34.16,47Z"
6548
6551
  })
6549
6552
  ]
6550
6553
  }),
6551
- /* @__PURE__ */ _jsx57("path", {
6554
+ /* @__PURE__ */ _jsx58("path", {
6552
6555
  id: "Outline-3",
6553
6556
  "data-name": "Outline",
6554
6557
  d: "M38.09,50.19a7.42,7.42,0,0,1-4.45-2,9.52,9.52,0,0,1-3.11-5.05,1.2,1.2,0,0,1,.26-1,1.41,1.41,0,0,1,1.13-.51H44.26a1.44,1.44,0,0,1,1.13.51,1.19,1.19,0,0,1,.25,1h0a9.52,9.52,0,0,1-3.11,5.05A7.42,7.42,0,0,1,38.09,50.19Zm-6.17-7.4c-.16,0-.2.07-.21.09a8.29,8.29,0,0,0,2.73,4.37A6.23,6.23,0,0,0,38.09,49a6.28,6.28,0,0,0,3.65-1.73,8.3,8.3,0,0,0,2.72-4.37.21.21,0,0,0-.2-.09Z"
6555
6558
  })
6556
6559
  ]
6557
6560
  }),
6558
- /* @__PURE__ */ _jsxs37("g", {
6561
+ /* @__PURE__ */ _jsxs38("g", {
6559
6562
  id: "Face",
6560
6563
  children: [
6561
- /* @__PURE__ */ _jsx57("ellipse", {
6564
+ /* @__PURE__ */ _jsx58("ellipse", {
6562
6565
  id: "Right_Blush",
6563
6566
  "data-name": "Right Blush",
6564
6567
  cx: "53.22",
@@ -6569,7 +6572,7 @@ function Bun(props) {
6569
6572
  fill: "#febbd0"
6570
6573
  }
6571
6574
  }),
6572
- /* @__PURE__ */ _jsx57("ellipse", {
6575
+ /* @__PURE__ */ _jsx58("ellipse", {
6573
6576
  id: "Left_Bluch",
6574
6577
  "data-name": "Left Bluch",
6575
6578
  cx: "22.95",
@@ -6580,14 +6583,14 @@ function Bun(props) {
6580
6583
  fill: "#febbd0"
6581
6584
  }
6582
6585
  }),
6583
- /* @__PURE__ */ _jsx57("path", {
6586
+ /* @__PURE__ */ _jsx58("path", {
6584
6587
  id: "Eyes",
6585
6588
  d: "M25.7,38.8a5.51,5.51,0,1,0-5.5-5.51A5.51,5.51,0,0,0,25.7,38.8Zm24.77,0A5.51,5.51,0,1,0,45,33.29,5.5,5.5,0,0,0,50.47,38.8Z",
6586
6589
  style: {
6587
6590
  fillRule: "evenodd"
6588
6591
  }
6589
6592
  }),
6590
- /* @__PURE__ */ _jsx57("path", {
6593
+ /* @__PURE__ */ _jsx58("path", {
6591
6594
  id: "Iris",
6592
6595
  d: "M24,33.64a2.07,2.07,0,1,0-2.06-2.07A2.07,2.07,0,0,0,24,33.64Zm24.77,0a2.07,2.07,0,1,0-2.06-2.07A2.07,2.07,0,0,0,48.75,33.64Z",
6593
6596
  style: {
@@ -6617,10 +6620,10 @@ function normalizeCommand(command) {
6617
6620
  function PackageManagerTabs({ command, additionalTabs = [] }) {
6618
6621
  let commandInfo;
6619
6622
  const packageMangerToIcon = {
6620
- npm: /* @__PURE__ */ _jsx58(Npm, {}),
6621
- yarn: /* @__PURE__ */ _jsx58(Yarn, {}),
6622
- pnpm: /* @__PURE__ */ _jsx58(Pnpm, {}),
6623
- bun: /* @__PURE__ */ _jsx58(Bun, {})
6623
+ npm: /* @__PURE__ */ _jsx59(Npm, {}),
6624
+ yarn: /* @__PURE__ */ _jsx59(Yarn, {}),
6625
+ pnpm: /* @__PURE__ */ _jsx59(Pnpm, {}),
6626
+ bun: /* @__PURE__ */ _jsx59(Bun, {})
6624
6627
  };
6625
6628
  additionalTabs.forEach((tab) => {
6626
6629
  packageMangerToIcon[tab.tool] = tab.icon;
@@ -6640,8 +6643,8 @@ function PackageManagerTabs({ command, additionalTabs = [] }) {
6640
6643
  }
6641
6644
  commandInfo.yarn = normalizeCommand(commandInfo.yarn);
6642
6645
  commandInfo.bun = normalizeCommand(commandInfo.bun);
6643
- return /* @__PURE__ */ _jsx58(Tabs, {
6644
- values: Object.entries(commandInfo).map(([key]) => /* @__PURE__ */ _jsxs38("div", {
6646
+ return /* @__PURE__ */ _jsx59(Tabs, {
6647
+ values: Object.entries(commandInfo).map(([key]) => /* @__PURE__ */ _jsxs39("div", {
6645
6648
  style: {
6646
6649
  display: "flex",
6647
6650
  alignItems: "center",
@@ -6649,7 +6652,7 @@ function PackageManagerTabs({ command, additionalTabs = [] }) {
6649
6652
  },
6650
6653
  children: [
6651
6654
  packageMangerToIcon[key],
6652
- /* @__PURE__ */ _jsx58("span", {
6655
+ /* @__PURE__ */ _jsx59("span", {
6653
6656
  style: {
6654
6657
  marginLeft: 6,
6655
6658
  marginBottom: 2
@@ -6658,9 +6661,9 @@ function PackageManagerTabs({ command, additionalTabs = [] }) {
6658
6661
  })
6659
6662
  ]
6660
6663
  }, key)),
6661
- children: Object.entries(commandInfo).map(([key, value]) => /* @__PURE__ */ _jsx58(Tab, {
6662
- children: /* @__PURE__ */ _jsx58(Pre, {
6663
- children: /* @__PURE__ */ _jsx58(Code, {
6664
+ children: Object.entries(commandInfo).map(([key, value]) => /* @__PURE__ */ _jsx59(Tab, {
6665
+ children: /* @__PURE__ */ _jsx59(Pre, {
6666
+ children: /* @__PURE__ */ _jsx59(Code, {
6664
6667
  className: "language-js",
6665
6668
  children: value
6666
6669
  })
@@ -6670,13 +6673,13 @@ function PackageManagerTabs({ command, additionalTabs = [] }) {
6670
6673
  }
6671
6674
 
6672
6675
  // src/theme-default/layout/DocLayout/docComponents/title.tsx
6673
- import { jsx as _jsx59 } from "react/jsx-runtime";
6676
+ import { jsx as _jsx60 } from "react/jsx-runtime";
6674
6677
 
6675
6678
  // src/theme-default/layout/DocLayout/docComponents/index.module.scss
6676
6679
  var index_module_default17 = { "title": "title_f1ea0", "blockquote": "blockquote_f1ea0", "link": "link_f1ea0", "inline-link": "inline-link_f1ea0", "inlineLink": "inline-link_f1ea0" };
6677
6680
 
6678
6681
  // src/theme-default/layout/DocLayout/docComponents/title.tsx
6679
- function _define_property38(obj, key, value) {
6682
+ function _define_property37(obj, key, value) {
6680
6683
  if (key in obj) {
6681
6684
  Object.defineProperty(obj, key, {
6682
6685
  value,
@@ -6689,7 +6692,7 @@ function _define_property38(obj, key, value) {
6689
6692
  }
6690
6693
  return obj;
6691
6694
  }
6692
- function _object_spread38(target) {
6695
+ function _object_spread37(target) {
6693
6696
  for (var i = 1; i < arguments.length; i++) {
6694
6697
  var source = arguments[i] != null ? arguments[i] : {};
6695
6698
  var ownKeys36 = Object.keys(source);
@@ -6699,7 +6702,7 @@ function _object_spread38(target) {
6699
6702
  }));
6700
6703
  }
6701
6704
  ownKeys36.forEach(function(key) {
6702
- _define_property38(target, key, source[key]);
6705
+ _define_property37(target, key, source[key]);
6703
6706
  });
6704
6707
  }
6705
6708
  return target;
@@ -6729,39 +6732,39 @@ function _object_spread_props30(target, source) {
6729
6732
  return target;
6730
6733
  }
6731
6734
  var H1 = (props) => {
6732
- return /* @__PURE__ */ _jsx59("h1", _object_spread_props30(_object_spread38({}, props), {
6735
+ return /* @__PURE__ */ _jsx60("h1", _object_spread_props30(_object_spread37({}, props), {
6733
6736
  className: `text-3xl mb-10 leading-10 tracking-tight ${index_module_default17.title}`
6734
6737
  }));
6735
6738
  };
6736
6739
  var H2 = (props) => {
6737
- return /* @__PURE__ */ _jsx59("h2", _object_spread_props30(_object_spread38({}, props), {
6740
+ return /* @__PURE__ */ _jsx60("h2", _object_spread_props30(_object_spread37({}, props), {
6738
6741
  className: `mt-14 mb-6 text-2xl tracking-tight ${index_module_default17.title}`
6739
6742
  }));
6740
6743
  };
6741
6744
  var H3 = (props) => {
6742
- return /* @__PURE__ */ _jsx59("h3", _object_spread_props30(_object_spread38({}, props), {
6745
+ return /* @__PURE__ */ _jsx60("h3", _object_spread_props30(_object_spread37({}, props), {
6743
6746
  className: `mt-10 mb-2 leading-7 text-xl ${index_module_default17.title}`
6744
6747
  }));
6745
6748
  };
6746
6749
  var H4 = (props) => {
6747
- return /* @__PURE__ */ _jsx59("h4", _object_spread_props30(_object_spread38({}, props), {
6750
+ return /* @__PURE__ */ _jsx60("h4", _object_spread_props30(_object_spread37({}, props), {
6748
6751
  className: `mt-8 leading-6 text-base ${index_module_default17.title}`
6749
6752
  }));
6750
6753
  };
6751
6754
  var H5 = (props) => {
6752
- return /* @__PURE__ */ _jsx59("h5", _object_spread_props30(_object_spread38({}, props), {
6755
+ return /* @__PURE__ */ _jsx60("h5", _object_spread_props30(_object_spread37({}, props), {
6753
6756
  className: index_module_default17.title
6754
6757
  }));
6755
6758
  };
6756
6759
  var H6 = (props) => {
6757
- return /* @__PURE__ */ _jsx59("h6", _object_spread_props30(_object_spread38({}, props), {
6760
+ return /* @__PURE__ */ _jsx60("h6", _object_spread_props30(_object_spread37({}, props), {
6758
6761
  className: index_module_default17.title
6759
6762
  }));
6760
6763
  };
6761
6764
 
6762
6765
  // src/theme-default/layout/DocLayout/docComponents/list.tsx
6763
- import { jsx as _jsx60 } from "react/jsx-runtime";
6764
- function _define_property39(obj, key, value) {
6766
+ import { jsx as _jsx61 } from "react/jsx-runtime";
6767
+ function _define_property38(obj, key, value) {
6765
6768
  if (key in obj) {
6766
6769
  Object.defineProperty(obj, key, {
6767
6770
  value,
@@ -6774,7 +6777,7 @@ function _define_property39(obj, key, value) {
6774
6777
  }
6775
6778
  return obj;
6776
6779
  }
6777
- function _object_spread39(target) {
6780
+ function _object_spread38(target) {
6778
6781
  for (var i = 1; i < arguments.length; i++) {
6779
6782
  var source = arguments[i] != null ? arguments[i] : {};
6780
6783
  var ownKeys36 = Object.keys(source);
@@ -6784,7 +6787,7 @@ function _object_spread39(target) {
6784
6787
  }));
6785
6788
  }
6786
6789
  ownKeys36.forEach(function(key) {
6787
- _define_property39(target, key, source[key]);
6790
+ _define_property38(target, key, source[key]);
6788
6791
  });
6789
6792
  }
6790
6793
  return target;
@@ -6814,24 +6817,24 @@ function _object_spread_props31(target, source) {
6814
6817
  return target;
6815
6818
  }
6816
6819
  var Ol = (props) => {
6817
- return /* @__PURE__ */ _jsx60("ol", _object_spread_props31(_object_spread39({}, props), {
6820
+ return /* @__PURE__ */ _jsx61("ol", _object_spread_props31(_object_spread38({}, props), {
6818
6821
  className: "list-decimal pl-5 my-4 leading-7"
6819
6822
  }));
6820
6823
  };
6821
6824
  var Ul = (props) => {
6822
- return /* @__PURE__ */ _jsx60("ul", _object_spread_props31(_object_spread39({}, props), {
6825
+ return /* @__PURE__ */ _jsx61("ul", _object_spread_props31(_object_spread38({}, props), {
6823
6826
  className: "list-disc pl-5 my-4 leading-7"
6824
6827
  }));
6825
6828
  };
6826
6829
  var Li = (props) => {
6827
- return /* @__PURE__ */ _jsx60("li", _object_spread_props31(_object_spread39({}, props), {
6830
+ return /* @__PURE__ */ _jsx61("li", _object_spread_props31(_object_spread38({}, props), {
6828
6831
  className: "[&:not(:first-child)]:mt-2"
6829
6832
  }));
6830
6833
  };
6831
6834
 
6832
6835
  // src/theme-default/layout/DocLayout/docComponents/table.tsx
6833
- import { jsx as _jsx61 } from "react/jsx-runtime";
6834
- function _define_property40(obj, key, value) {
6836
+ import { jsx as _jsx62 } from "react/jsx-runtime";
6837
+ function _define_property39(obj, key, value) {
6835
6838
  if (key in obj) {
6836
6839
  Object.defineProperty(obj, key, {
6837
6840
  value,
@@ -6844,7 +6847,7 @@ function _define_property40(obj, key, value) {
6844
6847
  }
6845
6848
  return obj;
6846
6849
  }
6847
- function _object_spread40(target) {
6850
+ function _object_spread39(target) {
6848
6851
  for (var i = 1; i < arguments.length; i++) {
6849
6852
  var source = arguments[i] != null ? arguments[i] : {};
6850
6853
  var ownKeys36 = Object.keys(source);
@@ -6854,7 +6857,7 @@ function _object_spread40(target) {
6854
6857
  }));
6855
6858
  }
6856
6859
  ownKeys36.forEach(function(key) {
6857
- _define_property40(target, key, source[key]);
6860
+ _define_property39(target, key, source[key]);
6858
6861
  });
6859
6862
  }
6860
6863
  return target;
@@ -6884,29 +6887,29 @@ function _object_spread_props32(target, source) {
6884
6887
  return target;
6885
6888
  }
6886
6889
  var Table = (props) => {
6887
- return /* @__PURE__ */ _jsx61("table", _object_spread_props32(_object_spread40({}, props), {
6890
+ return /* @__PURE__ */ _jsx62("table", _object_spread_props32(_object_spread39({}, props), {
6888
6891
  className: "table border-collapse text-base my-5 overflow-x-auto leading-7 border-gray-light-2"
6889
6892
  }));
6890
6893
  };
6891
6894
  var Tr = (props) => {
6892
- return /* @__PURE__ */ _jsx61("tr", _object_spread_props32(_object_spread40({}, props), {
6895
+ return /* @__PURE__ */ _jsx62("tr", _object_spread_props32(_object_spread39({}, props), {
6893
6896
  className: "border border-solid transition-colors duration-500 even:bg-soft border-gray-light-2"
6894
6897
  }));
6895
6898
  };
6896
6899
  var Td = (props) => {
6897
- return /* @__PURE__ */ _jsx61("td", _object_spread_props32(_object_spread40({}, props), {
6900
+ return /* @__PURE__ */ _jsx62("td", _object_spread_props32(_object_spread39({}, props), {
6898
6901
  className: "border border-solid px-4 py-2 border-gray-light-2"
6899
6902
  }));
6900
6903
  };
6901
6904
  var Th = (props) => {
6902
- return /* @__PURE__ */ _jsx61("th", _object_spread_props32(_object_spread40({}, props), {
6905
+ return /* @__PURE__ */ _jsx62("th", _object_spread_props32(_object_spread39({}, props), {
6903
6906
  className: "border border-solid px-4 py-2 text-text-1 text-base font-semibold border-gray-light-2"
6904
6907
  }));
6905
6908
  };
6906
6909
 
6907
6910
  // src/theme-default/layout/DocLayout/docComponents/hr.tsx
6908
- import { jsx as _jsx62 } from "react/jsx-runtime";
6909
- function _define_property41(obj, key, value) {
6911
+ import { jsx as _jsx63 } from "react/jsx-runtime";
6912
+ function _define_property40(obj, key, value) {
6910
6913
  if (key in obj) {
6911
6914
  Object.defineProperty(obj, key, {
6912
6915
  value,
@@ -6919,7 +6922,7 @@ function _define_property41(obj, key, value) {
6919
6922
  }
6920
6923
  return obj;
6921
6924
  }
6922
- function _object_spread41(target) {
6925
+ function _object_spread40(target) {
6923
6926
  for (var i = 1; i < arguments.length; i++) {
6924
6927
  var source = arguments[i] != null ? arguments[i] : {};
6925
6928
  var ownKeys36 = Object.keys(source);
@@ -6929,7 +6932,7 @@ function _object_spread41(target) {
6929
6932
  }));
6930
6933
  }
6931
6934
  ownKeys36.forEach(function(key) {
6932
- _define_property41(target, key, source[key]);
6935
+ _define_property40(target, key, source[key]);
6933
6936
  });
6934
6937
  }
6935
6938
  return target;
@@ -6959,14 +6962,14 @@ function _object_spread_props33(target, source) {
6959
6962
  return target;
6960
6963
  }
6961
6964
  var Hr = (props) => {
6962
- return /* @__PURE__ */ _jsx62("hr", _object_spread_props33(_object_spread41({}, props), {
6965
+ return /* @__PURE__ */ _jsx63("hr", _object_spread_props33(_object_spread40({}, props), {
6963
6966
  className: "my-12 border-t bordder-solid border-divider-light"
6964
6967
  }));
6965
6968
  };
6966
6969
 
6967
6970
  // src/theme-default/layout/DocLayout/docComponents/link.tsx
6968
- import { jsx as _jsx63 } from "react/jsx-runtime";
6969
- function _define_property42(obj, key, value) {
6971
+ import { jsx as _jsx64 } from "react/jsx-runtime";
6972
+ function _define_property41(obj, key, value) {
6970
6973
  if (key in obj) {
6971
6974
  Object.defineProperty(obj, key, {
6972
6975
  value,
@@ -6979,7 +6982,7 @@ function _define_property42(obj, key, value) {
6979
6982
  }
6980
6983
  return obj;
6981
6984
  }
6982
- function _object_spread42(target) {
6985
+ function _object_spread41(target) {
6983
6986
  for (var i = 1; i < arguments.length; i++) {
6984
6987
  var source = arguments[i] != null ? arguments[i] : {};
6985
6988
  var ownKeys36 = Object.keys(source);
@@ -6989,7 +6992,7 @@ function _object_spread42(target) {
6989
6992
  }));
6990
6993
  }
6991
6994
  ownKeys36.forEach(function(key) {
6992
- _define_property42(target, key, source[key]);
6995
+ _define_property41(target, key, source[key]);
6993
6996
  });
6994
6997
  }
6995
6998
  return target;
@@ -7021,12 +7024,13 @@ function _object_spread_props34(target, source) {
7021
7024
  var A = (props) => {
7022
7025
  const { href = "", className = "" } = props;
7023
7026
  const { normalizeLinkHref } = usePathUtils();
7024
- if (className.includes("header-anchor")) {
7025
- return /* @__PURE__ */ _jsx63("a", _object_spread_props34(_object_spread42({}, props), {
7027
+ const hasHeaderAnchor = className.includes("header-anchor");
7028
+ if (hasHeaderAnchor || href.startsWith("#")) {
7029
+ return /* @__PURE__ */ _jsx64("a", _object_spread_props34(_object_spread41({}, props), {
7026
7030
  className: `${index_module_default17.link} ${className}`
7027
7031
  }));
7028
7032
  } else {
7029
- return /* @__PURE__ */ _jsx63(Link, _object_spread_props34(_object_spread42({}, props), {
7033
+ return /* @__PURE__ */ _jsx64(Link, _object_spread_props34(_object_spread41({}, props), {
7030
7034
  className: `${className} ${index_module_default17.link} ${index_module_default17["inline-link"]}`,
7031
7035
  href: normalizeLinkHref(href)
7032
7036
  }));
@@ -7034,8 +7038,8 @@ var A = (props) => {
7034
7038
  };
7035
7039
 
7036
7040
  // src/theme-default/layout/DocLayout/docComponents/paragraph.tsx
7037
- import { jsx as _jsx64 } from "react/jsx-runtime";
7038
- function _define_property43(obj, key, value) {
7041
+ import { jsx as _jsx65 } from "react/jsx-runtime";
7042
+ function _define_property42(obj, key, value) {
7039
7043
  if (key in obj) {
7040
7044
  Object.defineProperty(obj, key, {
7041
7045
  value,
@@ -7048,7 +7052,7 @@ function _define_property43(obj, key, value) {
7048
7052
  }
7049
7053
  return obj;
7050
7054
  }
7051
- function _object_spread43(target) {
7055
+ function _object_spread42(target) {
7052
7056
  for (var i = 1; i < arguments.length; i++) {
7053
7057
  var source = arguments[i] != null ? arguments[i] : {};
7054
7058
  var ownKeys36 = Object.keys(source);
@@ -7058,7 +7062,7 @@ function _object_spread43(target) {
7058
7062
  }));
7059
7063
  }
7060
7064
  ownKeys36.forEach(function(key) {
7061
- _define_property43(target, key, source[key]);
7065
+ _define_property42(target, key, source[key]);
7062
7066
  });
7063
7067
  }
7064
7068
  return target;
@@ -7088,17 +7092,17 @@ function _object_spread_props35(target, source) {
7088
7092
  return target;
7089
7093
  }
7090
7094
  var P = (props) => {
7091
- return /* @__PURE__ */ _jsx64("p", _object_spread_props35(_object_spread43({}, props), {
7095
+ return /* @__PURE__ */ _jsx65("p", _object_spread_props35(_object_spread42({}, props), {
7092
7096
  className: "my-4 leading-7"
7093
7097
  }));
7094
7098
  };
7095
7099
  var Blockquote = (props) => {
7096
- return /* @__PURE__ */ _jsx64("blockquote", _object_spread_props35(_object_spread43({}, props), {
7100
+ return /* @__PURE__ */ _jsx65("blockquote", _object_spread_props35(_object_spread42({}, props), {
7097
7101
  className: `border-l-2 border-solid border-divider pl-4 my-6 transition-colors duration-500 ${index_module_default17.blockquote}`
7098
7102
  }));
7099
7103
  };
7100
7104
  var Strong = (props) => {
7101
- return /* @__PURE__ */ _jsx64("strong", _object_spread_props35(_object_spread43({}, props), {
7105
+ return /* @__PURE__ */ _jsx65("strong", _object_spread_props35(_object_spread42({}, props), {
7102
7106
  className: "font-semibold"
7103
7107
  }));
7104
7108
  };
@@ -7159,7 +7163,9 @@ export {
7159
7163
  isMobileDevice,
7160
7164
  scrollToTarget,
7161
7165
  setup,
7166
+ useDisableNav,
7162
7167
  useEditLink,
7168
+ useHiddenNav,
7163
7169
  useLocaleSiteData,
7164
7170
  usePathUtils,
7165
7171
  usePrevNextPage,