create-rspress 1.37.4 → 1.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +0 -1
- package/package.json +3 -3
- package/template-basic/doc_build/404.html +2 -2
- package/template-basic/doc_build/guide/index.html +3 -3
- package/template-basic/doc_build/hello.html +3 -3
- package/template-basic/doc_build/index.html +2 -2
- package/template-basic/doc_build/static/css/styles.bb65d7df.css +1 -0
- package/template-basic/doc_build/static/js/966.50de161e.js +2 -0
- package/template-basic/doc_build/static/js/async/194.c0c628ad.js +1 -0
- package/template-basic/doc_build/static/js/async/{599.4a892881.js → 599.38f0373a.js} +1 -1
- package/template-basic/doc_build/static/js/async/918.192cbe22.js +1 -0
- package/template-basic/doc_build/static/js/index.963687b2.js +5 -0
- package/template-basic/doc_build/static/js/{lib-router.243fc14a.js → lib-router.e17aa2e0.js} +2 -2
- package/template-basic/doc_build/static/js/{lib-router.243fc14a.js.LICENSE.txt → lib-router.e17aa2e0.js.LICENSE.txt} +2 -2
- package/template-basic/doc_build/static/js/styles.b1a51003.js +1 -0
- package/template-basic/node_modules/.bin/rspress +2 -2
- package/template-basic/package.json +1 -1
- package/template-basic/doc_build/static/css/styles.664aae8b.css +0 -1
- package/template-basic/doc_build/static/js/92.3d9bb65a.js +0 -2
- package/template-basic/doc_build/static/js/async/194.62189d7d.js +0 -1
- package/template-basic/doc_build/static/js/async/918.8c28cdf5.js +0 -1
- package/template-basic/doc_build/static/js/index.f252963a.js +0 -5
- package/template-basic/doc_build/static/js/styles.11d1fd97.js +0 -1
- /package/template-basic/doc_build/static/js/{92.3d9bb65a.js.LICENSE.txt → 966.50de161e.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
(()=>{"use strict";var e={604:function(e,t,r){r.d(t,{Jr:function(){return o},Ni:function(){return s},R0:function(){return i},Vi:function(){return a},aw:function(){return c},n_:function(){return d}});var n=r(6945),l=r(3567);let i=(0,n.createContext)({}),s=(0,n.createContext)({});function a(){return(0,n.useContext)(i).data}function o(){return(0,n.useContext)(i).data.page.lang||""}function c(){return(0,n.useContext)(i).data.page.version||""}function d(e){let[t,r]=(0,n.useState)(e);return(0,n.useLayoutEffect)(()=>{document.startViewTransition&&t!==e?document.startViewTransition(()=>{(0,l.flushSync)(()=>{r(e)}),window.dispatchEvent(new Event("RspressReloadContent"))}):((0,l.flushSync)(()=>{r(e)}),window.dispatchEvent(new Event("RspressReloadContent")))},[e]),t}},1007:function(e,t,r){r.d(t,{AP:function(){return c},E9:function(){return a},Tm:function(){return i},i6:function(){return d},pJ:function(){return s},pV:function(){return o}});var n=r(6780),l=r(1550);function i(e){return decodeURIComponent(e).replace(/\.html$/,"").replace(/\/index$/,"/")}function s(e="/"){return(0,l.pJ)(e,n.Z.base)}function a(e){return(0,l.E9)(e,n.Z.base)}function o(e,t){return s(c((0,l.lm)(e)))===s(c((0,l.lm)(t)))}function c(e){let t=!!n.Z?.route?.cleanUrls;return(0,l.yc)(e,t)}function d(e){return!(0,l.yv)()||function(e){return(0,l.xf)(e)||(0,l.pZ)(e)||e.startsWith("//")}(e)||!e.startsWith("/")?e:s(e)}},375:function(e,t,r){var n=r("8093"),l=r("6945"),i=r("1550"),s=r("6780"),a=r("1007"),o=r("604"),c=r("6779"),d=r("7570"),u=r("7314"),h=r("3322"),m=r("353"),x=r("5721");r("3608");async function f(e){var t,n;let{routes:l}=r(6118),o=(0,d.fp)(l,e);if(o){let t=o[0].route,r=await t.preload(),l=(0,i.bw)(o[0].route.filePath),c=s.Z.pages.find(t=>{let r=e=>e.replace(/\/$/,"").toLowerCase();return(0,a.pV)(r(t.routePath),r(e))}),d=encodeURIComponent(l),u=(null===(n=r.default.__RSPRESS_PAGE_META)||void 0===n?void 0:n[d])||{},{toc:h=[],title:m="",frontmatter:x={},...f}=i.kv.test(t.filePath)?u:r;return{siteData:s.Z,page:{...f,pagePath:l,...c,pageType:(null==x?void 0:x.pageType)||"doc",title:m,frontmatter:x,toc:h}}}let c=s.Z.lang||"",u=(null===(t=s.Z.multiVersion)||void 0===t?void 0:t.default)||"";if(s.Z.lang&&"undefined"!=typeof window){let e=location.pathname.replace(s.Z.base,"").split("/").slice(0,2);if(s.Z.locales.length){let t=s.Z.locales.find(t=>{let{lang:r}=t;return e.includes(r)});t&&(c=t.lang)}if(s.Z.multiVersion.versions){let t=s.Z.multiVersion.versions.find(t=>e.includes(t));t&&(u=t)}}return{siteData:s.Z,page:{pagePath:"",pageType:"404",routePath:"/404",lang:c,frontmatter:{},title:"404",toc:[],version:u,_filepath:"",_relativePath:""}}}function p(e){let{helmetContext:t}=e,{setData:r,data:i}=(0,l.useContext)(o.R0),s=i.page.frontmatter||{},{pathname:c,search:d}=(0,u.TH)(),p=new URLSearchParams(d),v="globalUIComponents",g=!1===s[v]||"0"===p.get(v);return(0,l.useLayoutEffect)(()=>{(async function e(){try{let e=await f((0,a.Tm)(c));r(e)}catch(e){console.log(e)}})()},[c,r]),(0,n.jsxs)(h.B6,{context:t,children:[(0,n.jsx)(x.default.Layout,{}),!g&&m.Z.map((e,t)=>{if(Array.isArray(e)){let[r,n]=e;return l.createElement(r,{key:t,...n})}return l.createElement(e,{key:t})})]})}let v=s.Z.ssg,{default:g,useThemeState:j}=r(5721);(async function e(){let e=document.getElementById("root"),t=async()=>{let e=await f((0,a.Tm)(window.location.pathname));return function(){let[t,r]=(0,l.useState)(e),[i,s]=j();return(0,n.jsx)(o.Ni.Provider,{value:(0,l.useMemo)(()=>({theme:i,setTheme:s}),[i,s]),children:(0,n.jsx)(o.R0.Provider,{value:(0,l.useMemo)(()=>({data:t,setData:r}),[t,r]),children:(0,n.jsx)(c.VK,{children:(0,n.jsx)(p,{})})})})}},s=await t();{let{createRoot:t,hydrateRoot:l}=r(1796);(0,i.yv)()&&v?l(e,(0,n.jsx)(s,{})):t(e).render((0,n.jsx)(s,{}))}})().then(()=>{g.setup()})},3678:function(e,t,r){r.d(t,{Z:function(){return s}});var n=r(7314),l=r(7750),i=r(6945);function s(e){let{pathname:t}=(0,n.TH)(),{selector:r=".rspress-doc img",options:s={}}=e;return(0,i.useEffect)(()=>{let e;let t=setTimeout(()=>{let t=document.querySelectorAll(r);e=(0,l.Z)(t,{...s,background:"var(--rp-c-bg)"})},100);return()=>{clearTimeout(t),null==e||e.detach(),null==e||e.close()}},[t]),null}r(4623)},1550:function(e,t,r){r.d(t,{$U:function(){return g},E9:function(){return N},Kw:function(){return f},Qj:function(){return x},_f:function(){return u},bw:function(){return c},kv:function(){return i},lm:function(){return d},mi:function(){return m},pJ:function(){return k},pZ:function(){return v},rp:function(){return s},t6:function(){return a},tz:function(){return y},xM:function(){return j},xf:function(){return p},yc:function(){return b},yv:function(){return o}});var n=/\?.*$/s,l=/#.*$/s,i=/\.mdx?$/,s="rspress-theme-appearance",a="search_index",o=()=>!0,c=e=>e.replace(l,"").replace(n,"");function d(e){return e.replace(/#.*$/,"")}var u=()=>!0;function h(e){return"/"===e.charAt(0)||p(e)?e:`/${e}`}function m(e){return"/"===e.charAt(e.length-1)?e:`${e}/`}function x(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function f(e){return x(h(function(e){let t=e.replace(/\\/g,"/"),r=t.startsWith("/"),n=t.split("/"),l=[];for(let e of n)"."===e||""===e||(".."===e?l.length>0&&".."!==l[l.length-1]?l.pop():r&&l.push(".."):l.push(e));let i=l.join("/");return r&&(i=`/${i}`),i}(e)))}function p(e=""){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("mailto:")||e.startsWith("tel:")}function v(e=""){return/^\s*data:/i.test(e)}function g(e,t,r,n="",l=!1,i=!1){let s=N(e,n);(!s||i)&&(s=l?"/index":"/index.html"),s.endsWith("/")&&(s+=l?"/index":"/index.html");let a="",o="",c="",d=s.split("/").filter(Boolean);return r.current&&r.current!==r.default&&(a=d.shift()||""),t.target!==t.default?(o=t.target,t.current!==t.default&&d.shift()):d.shift(),c=d.join("/")||"",(a||o)&&!c&&(c=l?"index":"index.html"),k(h([a,o,c].filter(Boolean).join("/")),n)}function j(e,t,r="",n=!1,l=!1){let i=N(e,r);(!i||l)&&(i=n?"/index":"/index.html");let s="",a=i.split("/").filter(Boolean);t.target!==t.default?(s=t.target,t.current!==t.default&&a.shift()):a.shift();let o=a.join("/")||"";return s&&!o&&(o=n?"index":"index.html"),k(h([s,o].filter(Boolean).join("/")),r)}var w=e=>{let[t,r=""]=e.split("#");return{url:t,hash:r}};function b(e,t=!1){if(!e)return"/";if(p(e))return e;let{url:r,hash:n}=w(decodeURIComponent(e));return!t&&!r.endsWith(".html")&&(r.endsWith("/")?r+="index.html":r+=".html"),t&&r.endsWith("/")&&(r+="index"),t&&r.endsWith(".html")&&(r=r.replace(/\.html$/,"")),h(n?`${r}#${n}`:r)}function y(e,t){return h(e).replace(f(t),"")}function k(e,t){let r=h(e),n=f(t);return r.startsWith(n)?r:`${n}${r}`}function N(e,t){return h(e).replace(RegExp(`^${f(t)}`),"")}},5721:function(e,t,r){r.r(t),r.d(t,{Overview:()=>rq,Layout:()=>tz,SwitchAppearance:()=>rj,Toc:()=>nN,HomeFeature:()=>rn,isMobileDevice:()=>to,useEditLink:()=>eI,useHiddenNav:()=>eZ,DocFooter:()=>tj,PrevNextPage:()=>r5,Tabs:()=>nt,useLocaleSiteData:()=>ez,usePathUtils:()=>eU,HomeLayout:()=>tA,Nav:()=>rO,SourceCode:()=>nj,bindingAsideScroll:()=>eD,PackageManagerTabs:()=>r4,parseInlineMarkdownText:()=>tf,usePrevNextPage:()=>eV,Card:()=>t8,default:()=>nC,Steps:()=>nb,setup:()=>eF,Link:()=>rh,scrollToTarget:()=>eW,renderHtmlOrText:()=>tc,DocLayout:()=>tT,ScrollToTop:()=>r7,LastUpdated:()=>rd,renderInlineMarkdown:()=>tx,Tag:()=>ny,Tab:()=>nr,SearchPanel:()=>no,EditLink:()=>re,useSidebarData:()=>eP,useThemeState:()=>ts,SocialLinks:()=>rC,useFullTextSearch:()=>e9,useEnableNav:()=>eR,Button:()=>t7,useRedirect4FirstVisit:()=>te,getCustomMDXComponent:()=>t4,Badge:()=>t5,RenderType:()=>e7,HomeFooter:()=>rl,isActive:()=>ta,HomeHero:()=>ro,Aside:()=>tp,LinkCard:()=>rx,Sidebar:()=>nv,NotFoundLayout:()=>tB,Search:()=>nc}),r("1536");var n,l,i,s,a,o,c,d,u,h,m,x,f,p,v,g,j,w,b,y,k,N,C,M=r("6945"),_=r("5878"),$=r("7493"),S=r("604"),E=r("8093"),L=r("7314"),T=r("7570"),A=r("6780"),H=r("1007");let{routes:z}=r(6118),B=(0,M.memo)(function(e){let t=e.el;return A.Z?.themeConfig?.enableContentAnimation&&(t=(0,S.n_)(e.el)),t},(e,t)=>e.el===t.el),P=({fallback:e=(0,E.jsx)(E.Fragment,{})})=>{let{pathname:t}=(0,L.TH)(),r=(0,T.fp)(z,(0,H.Tm)(t));if(!r)return(0,E.jsx)("div",{});let n=r[0].route.element;return(0,E.jsx)(M.Suspense,{fallback:e,children:(0,E.jsx)(B,{el:n})})};function V(e){let{children:t}=e,[r,n]=(0,M.useState)(!1);return((0,M.useEffect)(()=>{n(!0)},[]),r)?(0,E.jsx)(E.Fragment,{children:t}):null}var I=r("1550"),R=r("5187"),Z=r("4367"),O=r("8390"),W=r("4823"),D=e=>(0,E.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",...e,children:(0,E.jsx)("path",{fill:"currentColor",d:"M4 6h24v2H4zm0 18h24v2H4zm0-12h24v2H4zm0 6h24v2H4z"})}),F=e=>(0,E.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",...e,children:(0,E.jsx)("path",{fill:"currentColor",d:"M22 16 12 26l-1.4-1.4 8.6-8.6-8.6-8.6L12 6z"})});r("3585");var U=r("3322"),J=e=>(0,E.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 24 24",...e,children:(0,E.jsx)("path",{fill:"currentColor",d:"M16 7H3V5h13v2M3 19h13v-2H3v2m19-7-4-3v2H3v2h15v2l4-3Z"})}),G=e=>(0,E.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 24 24",...e,children:(0,E.jsx)("path",{fill:"#22a041",d:"M21 5H3v2h18zM3 19h7v-2H3zm0-6h15c1 0 2 .43 2 2s-1 2-2 2h-2v-2l-4 3 4 3v-2h2c2.95 0 4-1.27 4-4 0-2.72-1-4-4-4H3z"})}),Y=r("6824"),K=r("7317"),q=r("9522"),X=e=>(0,E.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 30 30",...e,children:[(0,E.jsx)("path",{fill:"currentColor",d:"M28 10v18H10V10h18m0-2H10a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2Z"}),(0,E.jsx)("path",{fill:"currentColor",d:"M4 18H2V4a2 2 0 0 1 2-2h14v2H4Z"})]}),Q=e=>(0,E.jsx)("svg",{width:32,height:32,viewBox:"0 0 30 30",...e,children:(0,E.jsx)("path",{fill:"#49cd37",d:"m13 24-9-9 1.414-1.414L13 21.171 26.586 7.586 28 9 13 24z"})}),ee=r("7841"),et=r("6118"),er=e=>(0,E.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32",...e,children:[(0,E.jsx)("circle",{cx:8,cy:16,r:2,fill:"currentColor"}),(0,E.jsx)("circle",{cx:16,cy:16,r:2,fill:"currentColor"}),(0,E.jsx)("circle",{cx:24,cy:16,r:2,fill:"currentColor"})]}),en=r("2555"),el=e=>(0,E.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",...e,children:(0,E.jsx)("path",{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"})}),ei=e=>(0,E.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",...e,children:(0,E.jsx)("path",{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"})}),es=r("3567"),ea=e=>(0,E.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",...e,children:(0,E.jsx)("path",{fill:"currentColor",d:"M16 22 6 12l1.4-1.4 8.6 8.6 8.6-8.6L26 12z"})}),eo=e=>(0,E.jsx)("svg",{width:18,height:18,viewBox:"0 0 32 32",...e,children:(0,E.jsx)("path",{fill:"currentColor",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"})}),ec=e=>(0,E.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",...e,children:(0,E.jsx)("path",{fill:"currentColor",d:"M16 22 6 12l1.4-1.4 8.6 8.6 8.6-8.6L26 12z"})}),ed=e=>(0,E.jsx)("svg",{width:24,height:24,viewBox:"0 0 32 32",...e,children:(0,E.jsx)("path",{fill:"var(--rp-c-gray)",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"})}),eu=r("4751"),eh=r("5831"),em=e=>(0,E.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 32 32",...e,children:(0,E.jsx)("path",{fill:"currentColor",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"})}),ex=e=>(0,E.jsx)("svg",{width:32,height:32,viewBox:"0 0 24 24",...e,children:(0,E.jsxs)("g",{fill:"none",stroke:"var(--rp-c-brand)",strokeLinecap:"round",strokeWidth:2,children:[(0,E.jsx)("path",{strokeDasharray:60,strokeDashoffset:60,strokeOpacity:.3,d:"M12 3a9 9 0 1 1 0 18 9 9 0 0 1 0-18Z",children:(0,E.jsx)("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"1.3s",values:"60;0"})}),(0,E.jsxs)("path",{strokeDasharray:15,strokeDashoffset:15,d:"M12 3a9 9 0 0 1 9 9",children:[(0,E.jsx)("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"15;0"}),(0,E.jsx)("animateTransform",{attributeName:"transform",dur:"1.5s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})]})]})}),ef=e=>(0,E.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...e,children:[(0,E.jsx)("path",{stroke:"currentColor",strokeWidth:4,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"}),(0,E.jsx)("path",{stroke:"currentColor",strokeWidth:4,d:"M41.5 30H28s-1 3-4 3-4-3-4-3H6.5"})]}),ep=e=>(0,E.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 32 32",...e,children:(0,E.jsx)("path",{fill:"currentColor",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"})}),ev=e=>(0,E.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:(0,E.jsx)("path",{fill:"currentColor",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"})}),eg=e=>(0,E.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:(0,E.jsx)("path",{fill:"currentColor",d:"m21.94 13.11-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.91-6.17-7.91m8.73 7.92 2.47-7.59.1-.33h3.61l-5.59 7.16m4.1-13.67 1.81 5.56h-3.62m-1.3.95-1.79 5.51L12 19.24l-2.86-8.79M6.03 3.94 7.84 9.5H4.23m-1.18 4.19c-.09-.07-.13-.19-.09-.29l.79-2.43 5.82 7.45m11.38-4.73-6.51 4.73.02-.03 5.79-7.42.79 2.43c.04.1 0 .22-.09.29"})}),ej=Object.defineProperty,ew=Object.defineProperties,eb=Object.getOwnPropertyDescriptors,ey=Object.getOwnPropertySymbols,ek=Object.prototype.hasOwnProperty,eN=Object.prototype.propertyIsEnumerable,eC=(e,t,r)=>t in e?ej(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eM=(e,t)=>{for(var r in t||(t={}))ek.call(t,r)&&eC(e,r,t[r]);if(ey)for(var r of ey(t))eN.call(t,r)&&eC(e,r,t[r]);return e},e_=(e,t)=>ew(e,eb(t)),e$=(e,t)=>{var r={};for(var n in e)ek.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&ey)for(var n of ey(e))0>t.indexOf(n)&&eN.call(e,n)&&(r[n]=e[n]);return r},eS=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},eE=(e,t,r)=>(eS(e,t,"read from private field"),r?r.call(e):t.get(e)),eL=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},eT=(e,t,r,n)=>(eS(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),eA=(e,t,r)=>(eS(e,t,"access private method"),r),eH=(e,t,r)=>new Promise((n,l)=>{var i=e=>{try{a(r.next(e))}catch(e){l(e)}},s=e=>{try{a(r.throw(e))}catch(e){l(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,s);a((r=r.apply(e,t)).next())});function ez(){var e,t,r;let n=(0,S.Vi)(),{page:{lang:l}}=n,i=null!=(t=null==(e=null==n?void 0:n.siteData)?void 0:e.themeConfig)?t:{},s=null!=(r=n.siteData.lang)?r:"",a=null==i?void 0:i.locales;return a&&0!==a.length?e_(eM({},a.find(e=>e.lang===l)),{langRoutePrefix:l===s?"/":(0,I.mi)(l)}):{nav:i.nav,sidebar:i.sidebar,prevPageText:i.prevPageText,nextPageText:i.nextPageText,sourceCodeText:i.sourceCodeText,searchPlaceholderText:i.searchPlaceholderText,searchNoResultsText:i.searchNoResultsText,searchSuggestedQueryText:i.searchSuggestedQueryText,overview:i.overview}}var eB=(e,t)=>{let r;for(let n of Object.keys(e)){if(r&&r!==n)continue;if((0,H.pV)((0,H.pJ)(n),t))return{group:"Documentation",items:e[n]};let l=e[n].find(l=>{let i=l=>{if(!t.startsWith((0,H.pJ)(n))){for(let l of Object.keys(e))if(l!==n&&t.startsWith((0,I.mi)((0,H.pJ)(l))))return r=l,!1}let s="link"in l&&""!==l.link,a="items"in l;if(!a&&s&&((0,H.pV)((0,H.pJ)(l.link),t)||t.includes("index")&&(0,H.pV)(`${l.link}/index`,t)))return!0;if(a)return!!(s&&((0,H.pV)((0,H.pJ)(l.link),t)||(0,H.pV)((0,H.pJ)(`${l.link}/index`),t)))||l.items.some(e=>i(e));return!1};return i(l)});if(l){let t=e[n];return{group:"text"in l&&l.text||"",items:t}}}return{group:"Documentation",items:[]}};function eP(){var e;let t=ez(),r=null!=(e=t.sidebar)?e:{},{pathname:n}=(0,L.TH)(),l=decodeURIComponent(n),[i,s]=(0,M.useState)(eB(r,l));return(0,M.useEffect)(()=>{s(eB(r,l))},[l,t.lang]),i}function eV(){let{pathname:e}=(0,L.TH)(),{items:t}=eP(),r=[],n=e=>{"items"in e?(e.link&&r.push({text:e.text,link:e.link}),e.items.forEach(e=>{"dividerType"in e||n(e)})):r.push(e)};t.forEach(e=>!("dividerType"in e)&&n(e));let l=r.findIndex(t=>(0,H.pV)((0,H.pJ)(t.link),e)),i=r[l-1]||null;return{prevPage:i,nextPage:r[l+1]||null}}function eI(){var e,t,r;let{siteData:n,page:l}=(0,S.Vi)(),i=null!=(r=null!=(t=ez().editLink)?t:null==(e=n.themeConfig)?void 0:e.editLink)?r:{};if(!i.docRepoBaseUrl||!i.text)return null;let{docRepoBaseUrl:s}=i;!s.endsWith("/")&&(s+="/");let a=l._relativePath.replace(/\\/g,"/"),o=`${s}${a}`;return{text:i.text,link:o}}function eR(){var e;let{siteData:{themeConfig:t},page:{frontmatter:r={}}}=(0,S.Vi)(),n=(null==(e=null==r?void 0:r.navbar)||e)&&(null==t?void 0:t.hideNavbar)!=="always",[l,i]=(0,M.useState)(n);return[l,i]}function eZ(){var e;let{siteData:{themeConfig:t}}=(0,S.Vi)(),r=null!=(e=t.hideNavbar)?e:"never",[n,l]=(0,M.useState)(!1),{pathname:i}=(0,L.TH)(),s=(0,M.useRef)(0);return"never"!==r&&("always"===r||((0,M.useEffect)(()=>{l(!1);let e=(0,R.Z)(()=>{let{scrollTop:e}=document.documentElement;if(e!==s.current)l(s.current>0&&e-s.current>0),s.current=e<=0?0:e},200);return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[i]),n))}function eO(e,t=72){let r=Number.parseInt(window.getComputedStyle(e).paddingTop,10);return Math.round(window.scrollY+e.getBoundingClientRect().top-t-r)}function eW(e,t,r=72){window.scrollTo(eM({left:0,top:eO(e,r)},t?{behavior:"smooth"}:{}))}function eD(){let e=document.getElementById("aside-container"),t=Array.from(document.querySelectorAll(".rspress-doc .header-anchor")).filter(e=>{var t;return(null==(t=e.parentElement)?void 0:t.tagName)!=="H1"});if(!e||!t.length)return;let r=null;if(!Array.from((null==e?void 0:e.getElementsByTagName("a"))||[]).map(e=>decodeURIComponent(e.hash)).length)return;let n=(t,n)=>{if(t[n]){let l=t[n].getAttribute("href"),i=null==e?void 0:e.querySelector(`a[href="#${null==l?void 0:l.slice(1)}"]`);i&&(r&&r.classList.remove("aside-active"),(r=i).classList.add("aside-active"))}},l=()=>{if(document.documentElement.scrollTop+window.innerHeight>=document.documentElement.scrollHeight)n(t,t.length-1);else for(let e=0;e<t.length;e++){let r=t[e],l=t[e+1],i=Math.ceil(window.scrollY),s=eO(r.parentElement);if(0===e&&i<s||0===i){n(t,0);break}if(!l){n(t,e);break}let a=eO(l.parentElement);if(i>=s&&i<a){n(t,e);break}}},i=(0,R.Z)(l,200);return window.addEventListener("scroll",i),l(),()=>{r&&r.classList.remove("aside-active"),window.removeEventListener("scroll",i)}}function eF(){if(!!(0,I._f)())window.addEventListener("click",e=>{let t=e.target.closest("a");if(t){let{origin:r,hash:n,target:l,pathname:i,search:s}=t,a=window.location;n&&"_blank"!==l&&r===a.origin&&(i===a.pathname&&s===a.search&&n&&t.classList.contains("header-anchor")?(e.preventDefault(),history.pushState(null,"",n),!function(e,t,r=!1){let n=null;try{n=e.classList.contains("header-anchor")?e:document.getElementById(decodeURIComponent(t.slice(1)))}catch(e){console.warn(e)}n&&eW(n,r)}(t,n,!0),window.dispatchEvent(new Event("hashchange"))):window.addEventListener("RspressReloadContent",()=>{location.hash.length>1&&eW(document.getElementById(location.hash.slice(1)),!1)}))}},{capture:!0}),window.addEventListener("hashchange",e=>{e.preventDefault()})}function eU(){let e=(0,S.Jr)(),t=(0,S.aw)(),r=(0,S.Vi)(),n=r.siteData.lang,l=r.siteData.multiVersion.default;return{normalizeLinkHref:r=>{let i=r;if((n||l)&&!(0,I.xf)(i)&&!i.startsWith("#")){let r=(i=(0,H.E9)(i)).split("/").filter(Boolean),s="",a="",o="";return l&&(t!==l?(s=t,r[0]===t&&r.shift()):r[0]===l&&r.shift()),n&&(e!==n?(a=e,r[0]===e&&r.shift()):r[0]===n&&r.shift()),o=r.join("/"),(0,H.AP)((0,H.pJ)([s,a,o].filter(Boolean).join("/")))}return i}}}var eJ="default",eG=/[\u3131-\u314e|\u314f-\u3163|\uac00-\ud7a3]/u,eY=/[\u0400-\u04FF]/u;function eK(e){let t=e.toString().toLowerCase().normalize("NFD"),r=t.replace(/[\u0300-\u036f]/g,"");return eY.test(String(e))?t.normalize("NFC"):eG.test(String(e))?r.normalize("NFC"):r}function eq(e){return e.replace(/https?:\/\/[^/]+/,"")}function eX(e){return e.charCodeAt(0)>255?3:1}var eQ=e=>e.map(e=>"string"==typeof e?{value:e,label:e}:e);function e0(e,t){let r=0,n=0;for(let l=0;l<e.length&&!(n>=t);l++){;n+=eX(e.charAt(l)),r++}return r}function e1(e){let t=0;for(let r=0;r<e.length;r++)t+=eX(e.charAt(r));return t}var e2=/[\u3131-\u314e|\u314f-\u3163|\uac00-\ud7a3]|[\u4E00-\u9FCC\u3400-\u4DB5\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\ud840-\ud868][\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|[\ud86a-\ud86c][\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d]|[\u3041-\u3096]|[\u30A1-\u30FA]/giu,e4=/[\u0400-\u04FF]/g;function e3(e,t){let r=[],n=null;do(n=t.exec(e))&&r.push(n[0]);while(n);return r}var e5=class{constructor(){eL(this,a),eL(this,l,void 0),eL(this,i,void 0),eL(this,s,void 0)}init(e){return eH(this,null,function*(){let{currentLang:t,currentVersion:r}=e,n="remote"!==e.mode&&e.versioned,c=(yield eA(this,a,o).call(this,t,n?r:"")).map(e=>e_(eM({},e),{normalizedContent:eK(e.content),headers:e.toc.map(e=>eK(e.text)).join(" "),normalizedTitle:eK(e.title)})),d={tokenize:"full",document:{id:"id",store:!0,index:["normalizedTitle","headers","normalizedContent"]},cache:100};for(let e of(eT(this,l,new Z.Z(d)),eT(this,i,new Z.Z(e_(eM({},d),{tokenize:e=>e3(e,e2)}))),eT(this,s,new Z.Z(e_(eM({},d),{tokenize:e=>e3(e,e4)}))),c))eE(this,l).add(e),eE(this,i).add(e),eE(this,s).add(e)})}search(e){return eH(this,null,function*(){var t,r;let{keyword:n,limit:a}=e,o={enrich:!0,limit:a,index:["normalizedTitle","headers","normalizedContent"]},c=yield Promise.all([null==(t=eE(this,l))?void 0:t.search(n,a,o),null==(r=eE(this,i))?void 0:r.search(n,a,o),eE(this,s).search(n,a,o)]),d=[],u=new Set;return c.forEach(e=>{!function(e){for(let t of e)t.result.forEach(e=>{let t=e.id;if(!u.has(t))u.add(t),d.push(e.doc)})}(e)}),[{index:eJ,hits:d}]})}};l=new WeakMap,i=new WeakMap,s=new WeakMap,a=new WeakSet,o=function(e,t){return eH(this,null,function*(){let n=`${t}###${e}`,l=t?`.${t.replace(".","_")}`:"",i=e?`.${e}`:"";return(yield fetch(`${(0,I.Qj)(r.p)}/static/${I.t6}${l}${i}.${O.Z[n]}.json`)).json()})};var e6=class{constructor(){eL(this,c,void 0)}init(e){return eH(this,null,function*(){eT(this,c,e)})}search(e){return eH(this,null,function*(){let{apiUrl:t,searchIndexes:r}=eE(this,c),{keyword:n,limit:l}=e,i=Object.entries({keyword:n,limit:l.toString(),searchIndexes:(null==r?void 0:r.map(e=>"string"==typeof e?e:e.value).join(","))||"",lang:eE(this,c).currentLang}).map(e=>e.map(encodeURIComponent).join("=")).join("&");try{return(yield fetch(`${t}?${i}`)).json()}catch(e){return console.error(e),[]}})}};c=new WeakMap;var e7=((n=e7||{}).Default="default",n.Custom="custom",n),e8=class{constructor(e){if(eL(this,m),eL(this,f),eL(this,v),eL(this,j),eL(this,b),eL(this,k),eL(this,d,void 0),eL(this,u,eJ),eL(this,h,void 0),eT(this,d,e),eT(this,u,e.indexName),"remote"===e.mode)eT(this,h,new e6);else eT(this,h,new e5)}init(){return eH(this,null,function*(){var e;yield null==(e=eE(this,h))?void 0:e.init(eE(this,d))})}match(e,t=7){return eH(this,null,function*(){var r;let n=yield null==(r=eE(this,h))?void 0:r.search({keyword:e,limit:t}),l=eK(e),i=(null==n?void 0:n.find(e=>eA(this,k,N).call(this,e.index)))||{index:eJ,renderType:"default",hits:[]};return[{group:eE(this,u),renderType:"default",result:eA(this,m,x).call(this,l,i)},...((null==n?void 0:n.filter(e=>!eA(this,k,N).call(this,e.index)))||[]).map(e=>({group:e.index,renderType:"default",result:eA(this,m,x).call(this,l,e)}))]})}};function e9(){var e;let{siteData:t,page:r}=(0,S.Vi)(),[n,l]=(0,M.useState)(!1),{sidebar:i}=ez(),s=e=>eB(i,e).group,a=(0,M.useRef)(null);return(0,M.useEffect)(()=>{!function(){eH(this,null,function*(){if(!n){let e=new e8(e_(eM({},t.search),{mode:"local",currentLang:r.lang,currentVersion:r.version,extractGroupName:s}));a.current=e,yield e.init(),l(!0)}})}()},[]),{initialized:n,search:null==(e=a.current)?void 0:e.match.bind(a.current)}}function te(){let{siteData:e,page:t}=(0,S.Vi)(),r=e.lang||"",n=Object.values(e.themeConfig.locales||{}).map(e=>e.lang)||[],l=t.lang;(0,M.useEffect)(()=>{var t;let i;if("auto"!==(null!=(t=e.themeConfig.localeRedirect)?t:"auto")||!r)return;if(/bot|spider|crawl|lighthouse/i.test(window.navigator.userAgent))return;let{pathname:s,search:a}=window.location,o=(0,H.E9)(s),c="rspress-visited";if(localStorage.getItem(c))return;localStorage.setItem(c,"1");let d=window.navigator.language.split("-")[0];if(!!n.includes(d)&&d!==l)(i=d===r?s.replace(`/${l}`,""):l===r?(0,H.pJ)(`/${d}${o}`):s.replace(`/${l}`,`/${d}`))&&window.location.replace(i+a)},[])}d=new WeakMap,u=new WeakMap,h=new WeakMap,m=new WeakSet,x=function(e,t){let r=[];return null==t||t.hits.forEach(t=>{eA(this,f,p).call(this,t,e,r);let n=eA(this,v,g).call(this,t,e,r);eA(this,j,w).call(this,t,e,r,n)}),r},f=new WeakSet,p=function(e,t,r){let{title:n=""}=e,l=eK(n);return!!l.includes(t)&&(r.push({type:"title",title:n,header:n,link:`${e.domain}${(0,H.AP)(e.routePath)}`,query:t,highlightInfoList:[{start:l.indexOf(t),length:e1(t)}],group:eE(this,d).extractGroupName(e.routePath)}),!0)},v=new WeakSet,g=function(e,t,r){let n=new WeakSet,{toc:l=[],domain:i="",title:s=""}=e;for(let[a,o]of l.entries())if(eK(o.text).includes(t)){let c=(function(e,t){let r=e[t],n=t,l=[r];for(;r&&r.depth>2;){let t=!1;for(let i=n-1;i>=0;i--){let s=e[i];if(s.depth>1&&s.depth===r.depth-1){r=s,n=i,l.unshift(r),t=!0;break}}if(!t)break}return l})(l,a).map(e=>e.text).join(" > "),u=eK(c).indexOf(t),h=`${s} > `;r.push({type:"header",title:e.title,header:`${h}${c}`,highlightInfoList:[{start:u+h.length,length:e1(t)}],link:`${i}${(0,H.AP)(e.routePath)}#${o.id}`,query:t,group:eE(this,d).extractGroupName(e.routePath)}),n.add(o)}return n},j=new WeakSet,w=function(e,t,r,n){var l,i,s;let{content:a,toc:o,domain:c}=e;if(!a.length)return;let u=eK(a),h=u.indexOf(t),m=o.map(e=>e.charIndex),x=e=>o[m.findIndex((t,r)=>{if(!(r<o.length-1))return t<e;{let n=m[r+1];if(t<=e&&n>=e)return!0}return!1})],f=e=>e&&(null==n?void 0:n.has(e));if(-1===h){let n=null==(l=e._matchesPosition)?void 0:l.content;if(!(null==n?void 0:n.length))return;let s=e._matchesPosition.content[0].start,o=x(s);if(f(o))return;let u=e0(a,s),h=e0(a,s+100),m=a.slice(u,h),p=e._matchesPosition.content.filter(e=>e.start>=s&&e.start+e.length<=s+100).map(e=>({start:e0(a,e.start)-u+3,length:e.length}));r.push({type:"content",title:e.title,header:null!=(i=null==o?void 0:o.text)?i:e.title,link:`${c}${(0,H.AP)(e.routePath)}${o?`#${o.id}`:""}`,query:t,highlightInfoList:p,group:eE(this,d).extractGroupName(e.routePath),statement:`...${m}...`});return}for(;-1!==h;){let l=x(h),i=a.slice(0,h).lastIndexOf("\n");i=-1===i?0:i;let o=a.indexOf("\n\n",h+t.length),m=a.slice(i,o);m.length>100&&(m=eA(this,b,y).call(this,m,t));let p=eK(m).indexOf(t),v=[{start:p,length:e1(t)}];!f(l)&&(r.push({type:"content",title:e.title,header:null!=(s=null==l?void 0:l.text)?s:e.title,statement:m,highlightInfoList:v,link:`${c}${(0,H.AP)(e.routePath)}${l?`#${l.id}`:""}`,query:t,group:eE(this,d).extractGroupName(e.routePath)}),l&&(null==n||n.add(l))),h=u.indexOf(t,h+m.length-p)}},b=new WeakSet,y=function(e,t){let r=eK(e).indexOf(eK(t)),n=Math.floor((100-t.length)/2),l=e.slice(0,r);l.length>n&&(l=`...${e.slice(r-n+3,r)}`);let i=e.slice(r+t.length);return i.length>n&&(i=`${e.slice(r+t.length,r+n-3)}...`),l+t+i},k=new WeakSet,N=function(e){return e===eE(this,u)||e===eJ};var tt=e=>{let t=(0,M.useRef)(e);return t.current=e,(0,M.useRef)((...e)=>t.current(...e)).current},tr=e=>{let[t,r]=(0,M.useState)(()=>"undefined"!=typeof window&&window.matchMedia(e).matches);return(0,M.useEffect)(()=>{let t=window.matchMedia(e),n=e=>r(e.matches);return t.addEventListener("change",n),()=>t.removeEventListener("change",n)},[e]),t},tn=(e,t=null)=>{let[r,n]=(0,M.useState)(()=>{var r;return"undefined"==typeof window?t:null!=(r=localStorage.getItem(e))?r:t}),l=(0,M.useCallback)(t=>{n(r=>{let n="function"==typeof t?t(r):t;return null==n?localStorage.removeItem(e):localStorage.setItem(e,n),n})},[e]);return(0,M.useEffect)(()=>{let r=r=>{var l;r.key===e&&n(null!=(l=localStorage.getItem(e))?l:t)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}},[e,t]),[r,l]},tl=e=>["light","dark","auto"].includes(e)?e:"auto",ti=!1===A.Z.themeConfig.darkMode,ts=()=>{let e=tr("(prefers-color-scheme: dark)"),[t,r]=tn(I.rp),n=tt(()=>{if(ti)return"light";let r=tl(t);return"auto"===r?e?"dark":"light":r}),[l,i]=(0,M.useState)(()=>{var e;if("undefined"==typeof window)return"light";let t=null!=(e=window.RSPRESS_THEME)?e:window.MODERN_THEME;return t?"dark"===t?"dark":"light":n()}),s=(0,M.useCallback)((e,t=e)=>{if(!ti)i(e),r(t),o(!0)},[]);(0,M.useEffect)(()=>{document.documentElement.classList.toggle("dark","dark"===l),document.documentElement.style.colorScheme=l},[l]);let[a,o]=(0,M.useState)(!0);return(0,M.useEffect)(()=>{o(!1)},[a]),(0,M.useEffect)(()=>{if(!a)s(n(),tl(t))},[t]),(0,M.useEffect)(()=>{if(!a)s(e?"dark":"light","auto")},[e]),[l,s]};function ta(e,t,r=!1){return!!t&&(r?(0,H.pV)(e,t)||(0,H.pV)(e,`${t}/index`):(0,H.pV)(e,t)||e.startsWith(t))}function to(){return window.innerWidth<=1024}function tc(e){return e?"number"==typeof e?e:/<([a-z]+)([^<]*)(?:>(.*?)<\/\1>|\s*\/>)/i.test(e)?W(e):e.replace(/\\</g,"<").replace(/\\>/g,">").replace(/</g,"<").replace(/>/g,">"):""}var td=/`(.*?)`/g,tu=/\*{2}(?!\*)(.*?)\*{2}(?!\*)/g,th=/\*(?!\*)(.*?)\*(?!\*)/g,tm=/\~{2}(.*?)\~{2}/g;function tx(e){return tc(e.replace(/`[^`]+`/g,e=>e.replace(/</g,"<")).replace(tu,"<strong>$1</strong>").replace(th,"<em>$1</em>").replace(tm,"<del>$1</del>").replace(td,"<code>$1</code>"))}function tf(e){return e.replace(tu,"$1").replace(th,"$1").replace(tm,"$1").replace(td,"$1")}function tp(e){var t;let{headers:r}=e,n=r.length>0,l=(null==(t=r[0])?void 0:t.depth)||2,i=eZ();return(0,M.useEffect)(()=>{let e;setTimeout(()=>{e=eD()},100);let t=decodeURIComponent(window.location.hash);if(t){let e=document.getElementById(t.slice(1));e&&eW(e,!1,i?0:72)}else window.scrollTo(0,0);return()=>{e&&e()}},[r]),(0,E.jsx)("div",{className:"flex flex-col",children:(0,E.jsx)("div",{className:n?"<lg:hidden":"hidden",children:(0,E.jsxs)("div",{id:"aside-container",className:"relative text-sm font-medium",children:[(0,E.jsx)("div",{className:"leading-7 block text-sm font-semibold pl-3",children:e.outlineTitle}),(0,E.jsx)("nav",{className:"mt-1",children:(0,E.jsx)("ul",{className:"relative",children:r.map(e=>(0,E.jsx)("li",{children:(0,E.jsx)("a",{href:`#${e.id}`,title:tf(e.text),className:"aside-link transition-all duration-300 hover:text-text-1 text-text-2 block",style:{marginLeft:(e.depth-l)*12,fontWeight:"semibold"},onClick:t=>{t.preventDefault(),window.location.hash=e.id;let r=document.getElementById(e.id);r&&eW(r,!1,i?0:72)},children:(0,E.jsx)("span",{className:"aside-link-text block",children:tx(e.text)})})},e.id))})})]})})})}var tv="prev_e7091",tg="next_e7091";function tj(){let{prevPage:e,nextPage:t}=eV(),{lastUpdated:r=!1}=ez(),{siteData:n}=(0,S.Vi)(),{themeConfig:l}=n,i=l.lastUpdated||r;return(0,E.jsxs)("footer",{className:"mt-8",children:[(0,E.jsx)("div",{className:"xs:flex pb-5 px-2 justify-end items-center",children:i&&(0,E.jsx)(rd,{})}),(0,E.jsx)("div",{className:"flex flex-col",children:(0,E.jsx)(re,{})}),(0,E.jsxs)("div",{className:"flex flex-col sm:flex-row sm:justify-around gap-4 pt-6",children:[(0,E.jsx)("div",{className:`${tv} flex flex-col`,children:e?(0,E.jsx)(r5,{type:"prev",text:e.text,href:(0,H.AP)(e.link)}):null}),(0,E.jsx)("div",{className:`${tg} flex flex-col`,children:t?(0,E.jsx)(r5,{type:"next",text:t.text,href:(0,H.AP)(t.link)}):null})]})]})}function tw(e){var{icon:t}=e,r=e$(e,["icon"]);return t?"string"==typeof t?(0,E.jsx)("img",eM({src:t,alt:""},r)):(0,E.jsx)(t,eM({},r)):null}function tb({outlineTitle:e,beforeSidebar:t,afterSidebar:r,uiSwitch:n,navTitle:l}){let[i,s]=(0,M.useState)(!1),[a,o]=(0,M.useState)(!1),c=(0,M.useRef)(),d=(0,M.useRef)(),{pathname:u}=(0,L.TH)();(0,M.useEffect)(()=>{s(!1)},[u]),(0,M.useEffect)(()=>(document.addEventListener("mouseup",h),document.addEventListener("touchend",h),()=>{document.addEventListener("mouseup",h),document.removeEventListener("touchend",h)}),[]);let h=e=>{let{current:t}=d;if(null==t?void 0:t.contains(e.target))return;let{current:r}=c;r&&!r.contains(e.target)&&o(!1)};return(0,E.jsxs)(M.Fragment,{children:[(0,E.jsxs)("div",{className:"rspress-sidebar-menu",children:[n.showSidebar?(0,E.jsxs)("button",{onClick:function(){s(!0)},className:"flex-center mr-auto",children:[(0,E.jsx)("div",{className:"text-md mr-2",children:(0,E.jsx)(tw,{icon:D})}),(0,E.jsx)("span",{className:"text-sm",children:"Menu"})]}):null,n.showAside?(0,E.jsxs)(M.Fragment,{children:[(0,E.jsxs)("button",{onClick:()=>o(e=>!e),className:"flex-center ml-auto",ref:d,children:[(0,E.jsx)("span",{className:"text-sm",children:e}),(0,E.jsx)("div",{className:"text-md mr-2",style:{transform:a?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.2s ease-out",marginTop:"2px"},children:(0,E.jsx)(tw,{icon:F})})]}),(0,E.jsx)("div",{className:`rspress-local-toc-container ${a?"rspress-local-toc-container-show":""}`,children:(0,E.jsx)(nN,{onItemClick:()=>{o(!1)}})})]}):null]}),n.showSidebar?(0,E.jsxs)(M.Fragment,{children:[(0,E.jsx)(nv,{isSidebarOpen:i,beforeSidebar:t,afterSidebar:r,uiSwitch:n,navTitle:l}),i?(0,E.jsx)("div",{onClick:function(){s(!1)},className:"rspress-sidebar-back-drop",style:{background:"rgba(0, 0, 0, 0.6)"}}):null]}):null]})}var ty=(0,M.createContext)({tabData:{},setTabData:()=>{}}),tk={asideContainer:"aside-container_edeb4",docLayout:"docLayout_edeb4",content:"content_edeb4"},tN={title:"title_3b154",blockquote:"blockquote_3b154",link:"link_3b154","inline-link":"inline-link_3b154"},tC=e=>(0,E.jsx)("h1",e_(eM({},e),{className:`rspress-doc-title text-3xl mb-10 leading-10 tracking-tight ${tN.title}`})),tM=e=>(0,E.jsx)("h2",e_(eM({},e),{className:`mt-12 mb-6 pt-8 text-2xl tracking-tight border-t-[1px] border-divider-light ${tN.title}`})),t_=e=>(0,E.jsx)("h3",e_(eM({},e),{className:`mt-10 mb-2 leading-7 text-xl ${tN.title}`})),t$=e=>(0,E.jsx)("h4",e_(eM({},e),{className:`mt-8 leading-6 text-lg ${tN.title}`})),tS=e=>(0,E.jsx)("h5",e_(eM({},e),{className:tN.title})),tE=e=>(0,E.jsx)("h6",e_(eM({},e),{className:tN.title})),tL=e=>{let{href:t="",className:r=""}=e,{normalizeLinkHref:n}=eU();return r.includes("header-anchor")||t.startsWith("#")?(0,E.jsx)("a",e_(eM({},e),{className:`${tN.link} ${r}`})):(0,E.jsx)(rh,e_(eM({},e),{className:`${r} ${tN.link} ${tN["inline-link"]}`,href:n(t)}))};function tT(e){var t,r;let{beforeDocFooter:n,afterDocFooter:l,beforeDoc:i,afterDoc:s,beforeDocContent:a,afterDocContent:o,beforeOutline:c,afterOutline:d,beforeSidebar:u,afterSidebar:h,uiSwitch:m,navTitle:x,components:f}=e,{siteData:p,page:v}=(0,S.Vi)(),{headingTitle:g,title:j,toc:w=[],frontmatter:b}=v,[y,k]=(0,M.useState)({}),{themeConfig:N}=p,C=null!=(t=N.enableScrollToTop)&&t,L=ez(),T=(null==L?void 0:L.outlineTitle)||(null==N?void 0:N.outlineTitle)||"ON THIS PAGE",A=null!=(r=null==b?void 0:b.overview)&&r,H=eM(eM({},t4()),f),z=(0,E.jsx)(ty.Provider,{value:{tabData:y,setTabData:k},children:(0,E.jsx)(_.Zo,{components:H,children:(0,E.jsx)(P,{})})}),B=(0,M.useMemo)(()=>{let e=j&&(0,$.o)(j);return!1!==p.themeConfig.fallbackHeadingTitle&&!g&&e&&(0,E.jsxs)(tC,{id:e,children:[j,(0,E.jsx)(tL,{className:"header-anchor",href:`#${e}`,"aria-hidden":!0,children:"#"})]})},[g,j]);return(0,E.jsxs)("div",{className:`${tk.docLayout} pt-0`,style:eM({},m.showNavbar?{}:{marginTop:0}),children:[i,(0,E.jsx)(tb,{outlineTitle:T,beforeSidebar:u,afterSidebar:h,uiSwitch:m,navTitle:x}),(0,E.jsxs)("div",{className:`${tk.content} rspress-doc-container flex flex-shrink-0 mx-auto`,children:[(0,E.jsx)("div",{className:"w-full flex-1",children:A?(0,E.jsxs)(E.Fragment,{children:[a,(0,E.jsx)(rq,{content:z}),o]}):(0,E.jsxs)("div",{children:[(0,E.jsxs)("div",{className:"rspress-doc",children:[a,B,z,o]}),(0,E.jsxs)("div",{className:"rspress-doc-footer",children:[n,m.showDocFooter&&(0,E.jsx)(tj,{}),l]})]})}),C&&(0,E.jsx)(V,{children:(0,E.jsx)(r7,{})}),m.showAside?(0,E.jsx)("div",{className:tk.asideContainer,style:eM({},m.showNavbar?{}:{marginTop:0,paddingTop:"32px"}),children:(0,E.jsxs)("div",{children:[c,(0,E.jsx)(tp,{headers:w,outlineTitle:T}),d]})}):null]}),s]})}function tA(e){let{beforeHero:t,afterHero:r,beforeFeatures:n,afterFeatures:l}=e,{page:{frontmatter:i,routePath:s}}=(0,S.Vi)();return(0,E.jsxs)("div",{className:"relative",style:{minHeight:"calc(100vh - var(--rp-nav-height))",paddingBottom:"80px"},children:[(0,E.jsxs)("div",{className:"pb-12",children:[t,(0,E.jsx)(ro,{frontmatter:i,routePath:s}),r,n,(0,E.jsx)(rn,{frontmatter:i,routePath:s}),l]}),(0,E.jsx)(rl,{})]})}var tH=(e,t)=>t?(e=e.trim(),(t=t.trim()).startsWith("-")||t.startsWith("|"))?`${e} ${t}`:`${e} - ${t}`:e,tz=e=>{var t;let{top:r,bottom:n,beforeDocFooter:l,afterDocFooter:i,beforeDoc:s,afterDoc:a,beforeDocContent:o,afterDocContent:c,beforeSidebar:d,afterSidebar:u,beforeOutline:h,afterOutline:m,beforeNavTitle:x,afterNavTitle:f,navTitle:p,beforeNav:v,beforeHero:g,afterHero:j,beforeFeatures:w,afterFeatures:b,afterNavMenu:y,components:k}=e,N={beforeDocFooter:l,afterDocFooter:i,beforeDocContent:o,afterDocContent:c,beforeDoc:s,afterDoc:a,beforeSidebar:d,afterSidebar:u,beforeOutline:h,afterOutline:m,components:k},C={beforeHero:g,afterHero:j,beforeFeatures:w,afterFeatures:b},{siteData:_,page:$}=(0,S.Vi)(),{pageType:T,lang:A,title:H,frontmatter:z={}}=$,B=ez();te();let V=null!=(t=z.title)?t:H,R=_.title||B.title;V=V&&"doc"===T?tH(V,z.titleSuffix||R):"home"===T?tH(R,z.titleSuffix):"404"===T?tH("404",R):R;let Z=(null==z?void 0:z.description)||_.description||B.description,O=eM(eM({},function(){var e,t;let{page:r,siteData:n}=(0,S.Vi)(),{frontmatter:l}=r,{themeConfig:i}=n,s=ez(),a=(0,L.TH)(),o=null!=(e=null==l?void 0:l.overview)&&e,c=()=>{var e,t;let r="undefined"==typeof window||window.top===window.self;return(null!=(t=null!=(e=null==l?void 0:l.outline)?e:null==i?void 0:i.outline)?t:r)&&!o},[d,u]=eR(),[h,m]=(0,M.useState)(c()),[x,f]=(0,M.useState)(null==(t=null==l?void 0:l.footer)||t),p=s.sidebar||{},v=(null==l?void 0:l.sidebar)!==!1&&Object.keys(p).length>0;return(0,M.useEffect)(()=>{m(c())},[r,n]),(0,M.useEffect)(()=>{let e=new URLSearchParams(a.search),t=document.documentElement.style,r=t.getPropertyValue("--rp-sidebar-width"),n=t.getPropertyValue("--rp-aside-width"),l=e.get("navbar"),i=e.get("sidebar"),s=e.get("outline"),o=e.get("footer");return"0"===l&&u(!1),"0"===i&&document.documentElement.style.setProperty("--rp-sidebar-width","0px"),"0"===s&&document.documentElement.style.setProperty("--rp-aside-width","0px"),"0"===o&&f(!1),()=>{document.documentElement.style.setProperty("--rp-sidebar-width",r),document.documentElement.style.setProperty("--rp-aside-width",n),u(d),f(x)}},[a.search]),(0,M.useEffect)(()=>{I._f&&history.scrollRestoration&&(history.scrollRestoration=a.hash.length?"manual":"auto")},[!a.hash.length]),{showAside:h,showNavbar:d,showSidebar:v,showDocFooter:x}}()),e.uiSwitch);return(0,E.jsxs)("div",{children:[(0,E.jsxs)(U.ql,{htmlAttributes:{lang:A||"en"},children:[V?(0,E.jsx)("title",{children:V}):null,Z?(0,E.jsx)("meta",{name:"description",content:Z}):null]}),r,"blank"!==T&&O.showNavbar&&(0,E.jsx)(rO,{beforeNavTitle:x,afterNavTitle:f,navTitle:p,beforeNav:v,afterNavMenu:y}),(0,E.jsx)("section",{children:(()=>{switch(T){case"home":return(0,E.jsx)(nC.HomeLayout,eM({},C));case"doc":return(0,E.jsx)(tT,e_(eM({},N),{uiSwitch:O,navTitle:p}));case"404":return(0,E.jsx)(nC.NotFoundLayout,{});case"custom":case"blank":return(0,E.jsx)(P,{});default:return(0,E.jsx)(tT,eM({},N))}})()}),n]})};function tB(){let{siteData:e,page:t}=(0,S.Vi)(),r=e.lang,n=e.multiVersion.default;if(r&&"undefined"!=typeof window&&location.pathname.includes(`/${r}/`)){let e=location.pathname.replace(`/${r}/`,"/");return window.location.replace(e),(0,E.jsx)(E.Fragment,{})}let l="/";return n&&t.version!==n&&(l+=`${t.version}/`),r&&t.lang!==r&&(l+=`${t.lang}/`),(0,E.jsxs)("div",{className:"m-auto mt-50 p-16 sm:p-8 sm:pt-24 sm:pb-40 text-center flex-center flex-col",children:[(0,E.jsx)("p",{className:"text-6xl font-semibold",children:"404"}),(0,E.jsx)("h1",{className:"leading-5 pt-3 text-xl font-bold",children:"PAGE NOT FOUND"}),(0,E.jsx)("div",{style:{height:"1px"},className:"mt-6 mx-auto mb-4.5 w-16 bg-gray-light-1"}),(0,E.jsx)("div",{className:"pt-5",children:(0,E.jsx)("a",{className:"py-2 px-4 rounded-2xl inline-block border-solid border-brand text-brand font-medium hover:border-brand-dark hover:text-brand-dark transition-colors duration-300",href:(0,H.pJ)(l),"aria-label":"go to home",children:"Take me home"})})]})}var tP=e=>(0,E.jsx)("ol",e_(eM({},e),{className:"list-decimal pl-5 my-4 leading-7"})),tV=e=>(0,E.jsx)("ul",e_(eM({},e),{className:"list-disc pl-5 my-4 leading-7"})),tI=e=>(0,E.jsx)("li",e_(eM({},e),{className:"[&:not(:first-child)]:mt-2"})),tR=e=>(0,E.jsx)("table",e_(eM({},e),{className:"block border-collapse text-base my-5 overflow-x-auto leading-7 border-gray-light-3 dark:border-divider"})),tZ=e=>(0,E.jsx)("tr",e_(eM({},e),{className:"border border-solid transition-colors duration-500 even:bg-soft border-gray-light-3 dark:border-divider"})),tO=e=>(0,E.jsx)("td",e_(eM({},e),{className:"border border-solid px-4 py-2 border-gray-light-3 dark:border-divider"})),tW=e=>(0,E.jsx)("th",e_(eM({},e),{className:"border border-solid px-4 py-2 text-text-1 text-base font-semibold border-gray-light-3 dark:border-divider"})),tD=e=>(0,E.jsx)("hr",e_(eM({},e),{className:"my-12 border-t border-solid border-divider-light"})),tF=e=>(0,E.jsx)("p",e_(eM({},e),{className:"my-4 leading-7"})),tU=e=>(0,E.jsx)("blockquote",e_(eM({},e),{className:`border-l-2 border-solid border-divider pl-4 my-6 transition-colors duration-500 ${tN.blockquote}`})),tJ=e=>(0,E.jsx)("strong",e_(eM({},e),{className:"font-semibold"})),tG={"code-button-group":"code-button-group_15153",codeButtonGroup:"code-button-group_15153","code-copy-button":"code-copy-button_15153",codeCopyButton:"code-copy-button_15153","icon-success":"icon-success_15153",iconSuccess:"icon-success_15153","code-copied":"code-copied_15153",codeCopied:"code-copied_15153","icon-copy":"icon-copy_15153",iconCopy:"icon-copy_15153","icon-wrapped":"icon-wrapped_15153",iconWrapped:"icon-wrapped_15153","wrapped-btn":"wrapped-btn_15153",wrappedBtn:"wrapped-btn_15153","icon-wrap":"icon-wrap_15153",iconWrap:"icon-wrap_15153"},tY={doctype:{color:"var(--code-token-text)",fontStyle:"italic"},token:{color:"var(--code-token-text)"},comment:{color:"var(--code-token-comment)"},punctuation:{color:"var(--code-token-punctuation)"},property:{color:"var(--code-token-parameter)"},constant:{color:"var(--code-token-constant)"},string:{color:"var(--code-token-string)"},symbol:{color:"var(--code-token-symbol)"},variable:{color:"var(--code-token-variable)"},"attr-name":{color:"var(--code-token-symbol)"},"attr-value":{color:"var(--code-token-string-expression)"},builtin:{color:"var(--code-token-symbol)"},function:{color:"var(--code-token-function)"},keyword:{color:"var(--code-token-keyword)"},tag:{color:"var(--code-token-function)"},inserted:{color:"var(--code-token-inserted)"},deleted:{color:"var(--code-token-deleted)"},regex:{color:"var(--code-token-keyword)"},key:{color:"var(--code-token-variable)"},title:{color:"var(--code-token-keyword)"},important:{color:"#EBCB8B",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},table:{display:"content"}},tK=!1;function tq(e){var t;let{siteData:r}=(0,S.Vi)(),{meta:n,language:l,codeWrap:i}=e,{showLineNumbers:s}=r.markdown,a="",o=[];return n&&(a=(null==(t=/{[\d,-]*}/i.exec(n))?void 0:t[0])||"")&&(o=a.replace(/[{}]/g,"").split(",").map(e=>{let[t,r]=e.split("-");return r?Array.from({length:Number(r)-Number(t)+1},(e,r)=>r+Number(t)):Number(t)}).flat()),!tK&&(Object.keys(Y.M).forEach(e=>{K.Z.registerLanguage(e,Y.M[e])}),K.Z.alias(Y.j),tK=!0),(0,E.jsx)(K.Z,{language:l,style:tY,wrapLines:!0,className:"code",wrapLongLines:i,customStyle:{backgroundColor:"inherit"},showLineNumbers:s||o.length>0,lineProps:e=>({style:e_(eM({},o.includes(e)?{backgroundColor:"var(--rp-code-line-highlight-color)"}:{}),{display:"block",padding:"0 1.25rem"})}),children:String(e.children).trim()})}var tX=new Map;function tQ({codeBlockRef:e}){let t=(0,M.useRef)(null);return(0,E.jsxs)("button",{className:tG.codeCopyButton,onClick:()=>(function(e,t){let r="",n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),l=n.nextNode();for(;l;)!l.parentElement.classList.contains("linenumber")&&(r+=l.nodeValue),l=n.nextNode();if(q(r)&&t){t.classList.add(tG.codeCopied),clearTimeout(tX.get(t));let e=setTimeout(()=>{t.classList.remove(tG.codeCopied),t.blur(),tX.delete(t)},2e3);tX.set(t,e)}})(e.current,t.current),ref:t,title:"Copy code",children:[(0,E.jsx)(tw,{icon:X,className:tG.iconCopy}),(0,E.jsx)(tw,{icon:Q,className:tG.iconSuccess})]})}function t0(e){var t;let{siteData:r}=(0,S.Vi)(),n=null!=(t=e.codeHighlighter)?t:r.markdown.codeHighlighter,{defaultWrapCode:l}=r.markdown,[i,s]=(0,M.useState)(l),a=(0,M.useRef)(null),o=(0,M.useRef)(),{className:c}=e,d=null==c?void 0:c.replace(/language-/,"");if(!d)return(0,E.jsx)("code",eM({},e));let u=e=>{i?null==e||e.classList.remove(tG.wrappedBtn):null==e||e.classList.add(tG.wrappedBtn),s(!i)};return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{ref:o,children:(()=>{if("prism"===n)return(0,E.jsx)(tq,e_(eM({},e),{language:d,codeWrap:i}));return(0,E.jsx)("pre",e_(eM({},e),{style:{overflowX:"auto"},children:(0,E.jsx)("code",{style:{whiteSpace:i?"pre-wrap":"pre"},children:e.children})}))})()}),(0,E.jsxs)("div",{className:tG.codeButtonGroup,children:[(0,E.jsxs)("button",{ref:a,className:tG.codeWrapButton,onClick:()=>u(a.current),title:"Toggle code wrap",children:[(0,E.jsx)(tw,{icon:G,className:tG.iconWrapped}),(0,E.jsx)(tw,{icon:J,className:tG.iconWrap})]}),(0,E.jsx)(tQ,{codeBlockRef:o})]})]})}function t1({children:e}){let t=e=>{let{className:t,meta:r}=e.props,n=function(e){var t,r;if(!e)return"";let n=e,l=/{[\d,-]*}/i;return(null==(t=l.exec(e))?void 0:t[0])&&(n=e.replace(l,"").trim()),null==(n=null!=(r=n.split("=")[1])?r:"")?void 0:n.replace(/["'`]/g,"")}(r);return(0,E.jsxs)("div",{className:t||"language-bash",children:[n&&(0,E.jsx)("div",{className:"rspress-code-title",children:n}),(0,E.jsx)("div",{className:"rspress-code-content rspress-scrollbar",children:e})]})};return Array.isArray(e)?(0,E.jsx)("div",{children:e.map(e=>t(e))}):t(e)}var t2=e=>(0,E.jsx)("img",e_(eM({},e),{src:(0,H.i6)(e.src||"")}));function t4(){return{h1:tC,h2:tM,h3:t_,h4:t$,h5:tS,h6:tE,ul:tV,ol:tP,li:tI,table:tR,td:tO,th:tW,tr:tZ,hr:tD,p:tF,blockquote:tU,strong:tJ,a:tL,code:t0,pre:t1,img:t2}}var t3={badge:"badge_99dcf",tip:"tip_99dcf",info:"info_99dcf",warning:"warning_99dcf",danger:"danger_99dcf",outline:"outline_99dcf"};function t5({children:e,type:t="tip",text:r,outline:n=!1}){return(0,E.jsx)("span",{className:`inline-flex items-center justify-center rounded-full border border-solid ${n?"border-current":"border-transparent"} font-semibold align-middle px-2.5 h-6 gap-1 text-xs ${t3.badge} ${t3[t]} ${n?t3.outline:""}`,children:e||r})}var t6={button:"button_72e53",medium:"medium_72e53",big:"big_72e53",brand:"brand_72e53",alt:"alt_72e53"};function t7(e){let{theme:t="brand",size:r="big",href:n="/",external:l=!1,className:i=""}=e,s=null;return"button"===e.type?s="button":"a"===e.type&&(s=l?"a":rh),M.createElement(null!=s?s:"a",{className:`${t6.button} ${t6[t]} ${t6[r]} ${i}`,href:n},e.text)}function t8({content:e,title:t,icon:r,style:n}){return(0,E.jsxs)("div",{className:"border border-gray-400 rounded-lg p-6",style:n,children:[(0,E.jsxs)("p",{className:"flex items-center gap-2 mb-4",children:[r&&(0,E.jsx)("div",{children:r}),t&&(0,E.jsx)("span",{className:"text-2xl font-bold",children:t})]}),(0,E.jsx)("div",{className:"text-base overflow-auto",children:e})]})}var t9="editLink_2a169";function re(){let e=eI();if(!e)return null;let{text:t,link:r}=e;return(0,E.jsx)("a",{href:r,target:"_blank",className:t9,children:t})}var rt={"grid-2":"grid-2_d48e3",grid2:"grid-2_d48e3","grid-4":"grid-4_d48e3",grid4:"grid-4_d48e3","grid-6":"grid-6_d48e3",grid6:"grid-6_d48e3","grid-3":"grid-3_d48e3",grid3:"grid-3_d48e3",featureCard:"featureCard_d48e3"},rr=e=>{let{span:t}=e;return`grid-${t||4}`};function rn({frontmatter:e,routePath:t}){let r=null==e?void 0:e.features;return(0,E.jsx)("div",{className:"overflow-hidden m-auto flex flex-wrap max-w-6xl",children:null==r?void 0:r.map(e=>{let{icon:r,title:n,details:l,link:i}=e,s=i;return i&&(s=(0,I.xf)(i)?i:(0,H.AP)((0,I.pJ)(i,t))),(0,E.jsx)("div",{className:`${rt[rr(e)]} rounded hover:var(--rp-c-brand)`,children:(0,E.jsx)("div",{className:"h-full p-2",children:(0,E.jsxs)("article",{className:`rspress-home-feature-card ${rt.featureCard} h-full p-8 rounded-4xl border-transparent`,style:{cursor:s?"pointer":"auto"},onClick:()=>{s&&(window.location.href=s)},children:[r?(0,E.jsx)("div",{className:"flex-center",children:(0,E.jsx)("div",{className:"rspress-home-feature-icon w-12 h-12 text-3xl text-center",children:tc(r)})}):null,(0,E.jsx)("h2",{className:"rspress-home-feature-title font-bold text-center",children:n}),(0,E.jsx)("p",{className:"rspress-home-feature-detail leading-6 pt-2 text-sm text-text-2 font-medium",children:tc(l)})]},n)})},n)})})}function rl(){let{siteData:e}=(0,S.Vi)(),{message:t}=e.themeConfig.footer||{};return t?(0,E.jsx)("footer",{className:"absolute bottom-0 mt-12 py-8 px-6 sm:p-8 w-full border-t border-solid border-divider-light",children:(0,E.jsx)("div",{className:"m-auto w-full text-center",children:(0,E.jsx)("div",{className:"font-meduim text-sm text-text-2",dangerouslySetInnerHTML:{__html:t}})})}):null}var ri="clip_c867a",rs="mask_c867a",ra={name:"modern",text:"modern ssg",tagline:"modern ssg",actions:[],image:void 0};function ro({frontmatter:e,routePath:t}){var r,n,l,i,s,a,o,c,d;let u=(null==e?void 0:e.hero)||ra,h=void 0!==u.image,m=h?"sm:max-w-xl":"sm:max-w-4xl",x=u.text?u.text.toString().split(/\n/g).filter(e=>""!==e):[],f="string"==typeof(null==(r=u.image)?void 0:r.src)?{light:u.image.src,dark:u.image.src}:(null==(n=u.image)?void 0:n.src)||{light:"",dark:""};return(0,E.jsxs)("div",{className:"m-auto pt-0 px-6 pb-12 sm:pt-10 sm:px-16 md:pt-16 md:px-16 md:pb-16 relative",children:[(0,E.jsx)("div",{className:rs,style:{left:h?"75%":"50%"}}),(0,E.jsxs)("div",{className:"m-auto flex flex-col md:flex-row max-w-6xl min-h-[50vh] mt-12 sm:mt-0",children:[(0,E.jsxs)("div",{className:"flex flex-col justify-center items-center text-center max-w-xl sm:max-w-4xl m-auto order-2 md:order-1",children:[(0,E.jsx)("h1",{className:"font-bold text-3xl pb-2 sm:text-6xl md:text-7xl m-auto sm:m-4 md:m-0 md:pb-3 lg:pb-2 leading-tight z-10",children:(0,E.jsx)("span",{className:ri,style:{lineHeight:"1.3"},children:tc(u.name)})}),0!==x.length&&x.map(e=>(0,E.jsx)("p",{className:`rspress-home-hero-text mx-auto md:m-0 text-3xl sm:text-5xl md:text-6xl sm:pb-2 font-bold z-10 ${m}`,style:{lineHeight:"1.2"},children:tc(e)},e)),(0,E.jsx)("p",{className:`rspress-home-hero-tagline whitespace-pre-wrap pt-4 m-auto md:m-0 text-sm sm:tex-xl md:text-[1.5rem] text-text-2 font-medium z-10 ${m}`,children:tc(u.tagline)}),(null==(l=u.actions)?void 0:l.length)&&(0,E.jsx)("div",{className:"grid md:flex md:flex-wrap md:justify-center gap-3 m--1.5 pt-6 sm:pt-8 z-10",children:u.actions.map(e=>{let r=(0,I.xf)(e.link)?e.link:(0,H.AP)((0,I.pJ)(e.link,t));return(0,E.jsx)("div",{className:"flex flex-shrink-0 p-1",children:(0,E.jsx)(t7,{type:"a",href:r,text:tc(e.text),theme:e.theme,className:"w-full"})},r)})})]}),h?(0,E.jsxs)("div",{className:"rspress-home-hero-image md:flex-center m-auto order-1 md:order-2 sm:flex md:none lg:flex",children:[(0,E.jsx)("img",{src:(0,H.i6)(f.light),alt:null==(i=u.image)?void 0:i.alt,srcSet:rc(null==(s=u.image)?void 0:s.srcset),sizes:rc(null==(a=u.image)?void 0:a.sizes),width:375,height:375,className:"dark:hidden"}),(0,E.jsx)("img",{src:(0,H.i6)(f.dark),alt:null==(o=u.image)?void 0:o.alt,srcSet:rc(null==(c=u.image)?void 0:c.srcset),sizes:rc(null==(d=u.image)?void 0:d.sizes),width:375,height:375,className:"hidden dark:block"})]}):null]})]})}function rc(e){return(Array.isArray(e)?e:[e]).filter(Boolean).join(", ")||void 0}function rd(){let{lastUpdatedText:e="Last Updated"}=ez(),{page:{lastUpdatedTime:t},siteData:r}=(0,S.Vi)(),{themeConfig:n}=r,l=(null==n?void 0:n.lastUpdatedText)||e;return(0,E.jsx)("div",{className:"flex text-sm text-text-2 leading-6 sm:leading-8 font-medium",children:(0,E.jsxs)("p",{children:[l,": ",(0,E.jsx)("span",{children:t})]})})}var ru={link:"link_03735"};function rh(e){let{href:t="/",children:r,className:n="",onNavigate:l,keepCurrentParams:i=!1}=e,s=e$(e,["href","children","className","onNavigate","keepCurrentParams"]),a=(0,I.xf)(t),o=a?"_blank":"",c=a?"noopener noreferrer":void 0,d=a?t:(0,H.pJ)((0,H.AP)(t)),u=(0,L.s0)(),{pathname:h,search:m}=(0,L.TH)(),x=i?d+m:d,f=(0,H.pV)(h,d);return a?(0,E.jsx)("a",e_(eM({},s),{href:d,target:o,rel:c,className:`${ru.link} ${n}`,children:r})):(0,E.jsx)("a",e_(eM({},s),{className:`${ru.link} ${n} cursor-pointer`,rel:c,target:o,onClick:e=>eH(this,null,function*(){if(0!==e.button||e.currentTarget.target&&"_self"!==e.currentTarget.target||e.metaKey||e.shiftKey||e.altKey||e.ctrlKey)return;e.preventDefault();let t=d.split("#")[1];if(!a&&f&&t){let e=document.getElementById(t);e&&(eW(e,!0),u(x,{replace:!1}));return}if(!f){let e=(0,T.fp)(et.routes,(0,H.Tm)(d));if(null==e?void 0:e.length){let t=setTimeout(()=>{ee.start()},200);yield e[0].route.preload(),clearTimeout(t),ee.done()}null==l||l(),u(x,{replace:!1})}}),href:d,children:r}))}ee.configure({showSpinner:!1});var rm="link_9ef55";function rx(e){let{href:t,title:r,description:n,style:l}=e;return(0,E.jsxs)("div",{className:"relative border border-gray-400 rounded-lg p-6 flex justify-between items-start hover:border-gray-500 hover:bg-gray-100 transition-all duration-300",style:l,children:[(0,E.jsxs)("div",{className:"flex flex-col",children:[(0,E.jsx)("a",{href:t,className:`flex items-center gap-2 mb-4 ${rm}`,children:r&&(0,E.jsx)("span",{className:"text-2xl font-bold",children:r})}),(0,E.jsx)("span",{className:"text-base overflow-auto",children:n})]}),(0,E.jsx)(F,{})]})}var rf={hidden:"hidden_f6cde",container:"container_f6cde",navContainer:"navContainer_f6cde",leftNav:"leftNav_f6cde",rightNav:"rightNav_f6cde",singleItem:"singleItem_f6cde",activeItem:"activeItem_f6cde",navBarTitle:"navBarTitle_f6cde",menuItem:"menu-item_f6cde",mobileNavMenu:"mobileNavMenu_f6cde"};function rp(e){let{pathname:t,base:r}=e,n=new RegExp(e.activeMatch||e.link).test((0,I.tz)(t,r));return(0,E.jsx)(rh,{href:(0,H.AP)(e.link),children:(0,E.jsxs)("div",{className:`rspress-nav-menu-item ${rf.singleItem} ${n?rf.activeItem:""} text-sm font-medium ${e.compact?"mx-0.5":"mx-1.5"} px-3 py-2 flex items-center`,children:[(0,E.jsx)(ny,{tag:e.tag}),e.text,e.rightIcon]},e.text)})}var rv=()=>(null==document?void 0:document.startViewTransition)&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches,rg=()=>{let e=document.createElement("style");return e.innerHTML=`
|
|
2
|
+
.rspress-doc {
|
|
3
|
+
view-transition-name: none !important;
|
|
4
|
+
}
|
|
5
|
+
`,document.head.appendChild(e),()=>{document.head.removeChild(e)}};function rj({onClick:e}){let{theme:t,setTheme:r}=(0,M.useContext)(S.Ni);return(0,E.jsx)("div",{onClick:n=>{var l,i;let s=rv(),a=null==(i=null==(l=A.Z)?void 0:l.themeConfig)?void 0:i.enableAppearanceAnimation,o="dark"===t?"light":"dark",c="dark"===o;if(s&&a){let t=n.clientX,l=n.clientY,i=Math.hypot(Math.max(t,innerWidth-t+200),Math.max(l,innerHeight-l+200)),s=rg(),a=document.startViewTransition(()=>eH(this,null,function*(){(0,es.flushSync)(()=>{r(o),null==e||e()})})),d=[`circle(0px at ${t}px ${l}px)`,`circle(${i}px at ${t}px ${l}px)`];a.ready.then(()=>{document.documentElement.animate({clipPath:c?[...d].reverse():d},{duration:400,easing:"ease-in",pseudoElement:c?"::view-transition-old(root)":"::view-transition-new(root)",id:""}).finished.then(()=>{s()})})}else r(o),null==e||e()},className:"md:mr-2 rspress-nav-appearance",children:(0,E.jsxs)("div",{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 w-7 h-7",children:[(0,E.jsx)(tw,{className:"dark:hidden",icon:el,width:"18",height:"18",fill:"currentColor"}),(0,E.jsx)(tw,{className:"hidden dark:block",icon:ei,width:"18",height:"18",fill:"currentColor"})]})})}var rw={socialLinksIcon:"social-links-icon_93d67",menuItem:"menu-item_93d67"},rb={discord:(0,E.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("title",{children:"Discord"}),(0,E.jsx)("path",{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"})]}),facebook:(0,E.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("title",{children:"Facebook"}),(0,E.jsx)("path",{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"})]}),github:(0,E.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("title",{children:"GitHub"}),(0,E.jsx)("path",{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"})]}),gitlab:(0,E.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("title",{children:"GitLab"}),(0,E.jsx)("path",{fill:"currentColor",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"})]}),instagram:(0,E.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("title",{children:"Instagram"}),(0,E.jsx)("path",{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"})]}),linkedin:(0,E.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("title",{children:"LinkedIn"}),(0,E.jsx)("path",{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"})]}),slack:(0,E.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("title",{children:"Slack"}),(0,E.jsx)("path",{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"})]}),twitter:(0,E.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("title",{children:"Twitter"}),(0,E.jsx)("path",{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"})]}),youtube:(0,E.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("title",{children:"YouTube"}),(0,E.jsx)("path",{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"})]}),juejin:(0,E.jsxs)("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg","data-spm-anchor-id":"a313x.7781069.0.i5",children:[(0,E.jsx)("path",{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","data-spm-anchor-id":"a313x.7781069.0.i2"}),(0,E.jsx)("path",{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","data-spm-anchor-id":"a313x.7781069.0.i3"})]}),qq:(0,E.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--ri",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"24",height:"24",children:(0,E.jsx)("path",{fill:"currentColor",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"})}),wechat:(0,E.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--ri",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"24",height:"24",children:(0,E.jsx)("path",{fill:"currentColor",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"})}),weibo:(0,E.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--ri",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"24",height:"24",children:(0,E.jsx)("path",{fill:"currentColor",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"})}),zhihu:(0,E.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--ri",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"24",height:"24",children:(0,E.jsx)("path",{fill:"currentColor",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"})}),bilibili:(0,E.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--ri",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"24",height:"24",children:(0,E.jsx)("path",{fill:"currentColor",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"})}),lark:(0,E.jsxs)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("title",{children:"Lark"}),(0,E.jsx)("path",{d:"M8.813 5.477c1.038.836 2.286 2.045 3.3 3.495.171.23.377.576.457.71l.034.056a8.803 8.803 0 0 0-.922 1.3l-.271-.494C9.655 7.53 6.3 5.477 6.137 5.377a.447.447 0 0 1-.006-.004l-.666-.393-.107-.086a.499.499 0 0 1 .306-.885L6.084 4h7.997c.159.006.318.037.47.092.174.064.317.174.458.308.134.143.272.296.403.448.622.675 1.324 1.688 1.324 1.688-.573.193-1.349.736-1.349.736a5.095 5.095 0 0 0-.348-.54 20.665 20.665 0 0 0-1.037-1.255H8.813Z",fill:"currentColor"}),(0,E.jsx)("path",{d:"M18.482 7.507a5.42 5.42 0 0 1 4.04.717c.248.168.788.635.242 1.233-1.7 1.67-2.194 3.225-2.63 4.599-.278.873-.541 1.697-1.066 2.424-1.813 2.508-4.114 4-6.837 4.434-.561.089-1.132.131-1.7.131-3.958 0-7.498-2.035-8.75-2.844h.003l-.161-.107c-.534-.378-.61-.723-.623-.989V7.055a.486.486 0 0 1 .827-.317l.482.589c5.082 6.201 9.126 8.063 11.626 8.53 2.246.424 3.631-.165 4.022-.37.333-.51.534-1.143.764-1.865l.006-.021c.406-1.276.898-2.821 2.322-4.477a3.93 3.93 0 0 0-2.28-.168c-1.761.394-3.403 1.96-4.89 4.643a8.27 8.27 0 0 0-.341.671c-.724-.107-1.334-.65-1.334-.65.128-.269.22-.455.345-.672 1.718-3.125 3.714-4.962 5.933-5.441ZM2.477 16.889c1.145.744 5.341 3.232 9.532 2.563 1.56-.247 2.963-.915 4.196-1.99-2.771.254-7.557-.753-13.728-7.666v7.093Z",fill:"currentColor"})]}),x:(0,E.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,E.jsx)("title",{children:"X"}),(0,E.jsx)("path",{d:"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"})]})},ry=e=>{let{link:t,popperStyle:r={}}=e,{icon:n,mode:l="link",content:i}=t,s=null;if("object"==typeof n)s=(0,E.jsx)("div",{dangerouslySetInnerHTML:{__html:n.svg}});else if(n){let e=n.toLowerCase();s="twitter"===e?rb.x:rb[e]}let[a,o]=(0,M.useState)(!1),c=()=>{o(!0)},d=()=>{o(!1)};return"link"===l?(0,E.jsx)("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"social-links",children:(0,E.jsx)("div",{className:`${rw.socialLinksIcon}`,children:s})},i):"text"===l?(0,E.jsxs)("div",{className:`${rw.socialLinksIcon} cursor-pointer relative mx-3`,onMouseEnter:c,onMouseLeave:d,children:[s,a?(0,E.jsx)("div",{style:eM({boxShadow:"var(--rp-shadow-3)",border:"1px solid var(--rp-c-divider-light)"},r),className:"z-[1] p-3 w-50 absolute right-0 bg-white dark:bg-dark",children:(0,E.jsx)("div",{className:"text-md",children:i})}):null]}):"img"===l?(0,E.jsxs)("div",{className:`${rw.socialLinksIcon} cursor-pointer relative`,onMouseEnter:c,onMouseLeave:d,children:[s,a?(0,E.jsx)("div",{className:"break-all z-[1] p-3 w-[50px] h-[50px] absolute right-0 bg-white dark:bg-dark rounded-xl",style:eM({boxShadow:"var(--rp-shadow-3)"},r),children:(0,E.jsx)("img",{src:i,alt:"img"})}):null]}):"dom"===l?(0,E.jsxs)("div",{className:`${rw.socialLinksIcon} cursor-pointer relative`,onMouseEnter:c,onMouseLeave:d,children:[s,a?(0,E.jsx)("div",{className:"break-all z-[1] p-3 absolute right-0 bg-white dark:bg-dark rounded-xl",style:eM({boxShadow:"var(--rp-shadow-3)"},r),children:(0,E.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})}):null]}):(0,E.jsx)("div",{})},rk=e=>{let{links:t,moreIconVisible:r=!1,mouseEnter:n}=e;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"flex-center h-full gap-x-4 transition-colors duration-300 md:mr-2",children:t.map((e,t)=>(0,E.jsx)(ry,{link:e,popperStyle:{top:"2.5rem"}},t))}),r?(0,E.jsx)("div",{className:"md:ml-1 p-2",onMouseEnter:n,children:(0,E.jsx)(tw,{icon:ea})}):null]})},rN=e=>{let{links:t}=e;return(0,E.jsx)("div",{style:{boxShadow:"var(--rp-shadow-3)",marginRight:"-2px",border:"1px solid var(--rp-c-divider-light)",background:"var(--rp-c-bg)"},className:"absolute top-8 right-0 z-1 p-3 w-32 rounded-2xl flex flex-wrap gap-4",children:t.map(e=>(0,E.jsx)(ry,{link:e,popperStyle:{top:"1.25rem"}},e.content))})},rC=({socialLinks:e})=>{let t=e.length>3,r=[],n=[];e.forEach((e,t)=>{t<3?r.push(e):n.push(e)});let[l,i]=(0,M.useState)(!1);return(0,E.jsxs)("div",{className:`social-links ${rw.menuItem} flex-center relative`,onMouseLeave:()=>i(!1),children:[(0,E.jsx)(rk,{links:r,moreIconVisible:t,mouseEnter:()=>i(!0)}),l?(0,E.jsx)(rN,{links:n}):null]})};function rM(){var e,t;let{siteData:r,page:n}=(0,S.Vi)(),l=(0,S.aw)(),{pathname:i,search:s}=(0,L.TH)(),a=r.lang||"",o=r.multiVersion.default||"",c=Object.values(r.locales||r.themeConfig.locales||{}),d=(null==(e=r.route)?void 0:e.cleanUrls)||!1,u=c.length>1,{lang:h,pageType:m}=n,{base:x}=r;return u?{text:(0,E.jsx)(tw,{icon:eo,style:{width:"18px",height:"18px"}}),items:c.map(e=>({text:null==e?void 0:e.label,link:(0,I.$U)(i+s,{current:h,target:e.lang,default:a},{current:l,default:o},x,d,"404"===m)})),activeValue:null==(t=c.find(e=>h===e.lang))?void 0:t.label}:null}function r_(){var e;let{siteData:t,page:r}=(0,S.Vi)(),n=(0,S.aw)(),{pathname:l}=(0,L.TH)(),i=(null==(e=t.route)?void 0:e.cleanUrls)||!1,s=t.multiVersion.default||"",a=t.multiVersion.versions||[],{base:o}=t;return{items:a.map(e=>({text:e,link:(0,I.xM)(l,{current:n,target:e,default:s},o,i,"404"===r.pageType)})),text:n,activeValue:n}}var r$={navScreen:"navScreen_457e8",active:"active_457e8",container:"container_457e8",navMenu:"navMenu_457e8",navMenuItem:"navMenuItem_457e8",navAppearance:"navAppearance_457e8",socialAndAppearance:"socialAndAppearance_457e8",navScreenMenuGroup:"navScreenMenuGroup_457e8",open:"open_457e8",button:"button_457e8",buttonSpan:"buttonSpan_457e8",items:"items_457e8",down:"down_457e8"};function rS(e){let{activeValue:t}=e,[r,n]=(0,M.useState)(!1);function l({item:e}){return(0,E.jsx)("div",{className:"p-1 text-center",children:(0,E.jsx)("span",{className:"text-brand",children:e.text})})}function i({item:e}){return(0,E.jsx)("div",{className:"py-1 font-medium",children:(0,E.jsx)(rh,{href:e.link,children:(0,E.jsx)("div",{children:(0,E.jsx)("div",{className:"flex justify-center",children:(0,E.jsx)("span",{children:e.text})})})})})}let s=e=>t===e.text?(0,E.jsx)(l,{item:e},e.link):(0,E.jsx)(i,{item:e},e.link),a=e=>(0,E.jsxs)("div",{children:["link"in e?s(e):(0,E.jsx)("p",{className:"font-bold text-gray-400 my-1 not:first:border",children:e.text}),e.items.map(s)]});return(0,E.jsxs)("div",{className:`${r?r$.open:""} ${r$.navScreenMenuGroup} relative`,children:[(0,E.jsxs)("button",{className:r$.button,onClick:()=>{n(!r)},children:[(0,E.jsx)("span",{className:r$.buttonSpan,children:e.text}),(0,E.jsx)(ec,{className:`${r?r$.open:""} ${r$.down} `})]}),(0,E.jsx)("div",{children:(0,E.jsx)("div",{className:r$.items,children:e.items.map(e=>(0,E.jsx)("div",{children:"items"in e?a(e):s(e)},e.text))})})]})}function rE(){let{nav:e}=ez(),t=(0,S.aw)();return Array.isArray(e)?e:[...e[t.length>0?t:"default"]]}var rL=()=>{let e=rM();return(0,E.jsx)("div",{className:"flex text-sm font-bold justify-center",children:(0,E.jsx)("div",{className:"mx-1.5 my-1",children:(0,E.jsx)(rS,eM({},e))})})},rT=()=>{let e=r_();return(0,E.jsx)("div",{className:`${r$.navTranslations} flex text-sm font-bold justify-center`,children:(0,E.jsx)("div",{className:"mx-1.5 my-1",children:(0,E.jsx)(rS,eM({},e))})})};function rA(e){var t;let{isScreenOpen:r,siteData:n,pathname:l}=e,i=(0,M.useRef)(null),s=n.themeConfig.locales||[],a=s.length>1,o=n.multiVersion.versions.length>1,c=rE(),d=!1!==n.themeConfig.darkMode,u=(null==(t=null==n?void 0:n.themeConfig)?void 0:t.socialLinks)||[],h=u.length>0,m=s.map(e=>e.lang||"zh")||[],{base:x}=n;return(0,M.useEffect)(()=>(i.current&&r&&(0,en.Qp)(i.current,{reserveScrollBarGap:!0}),()=>{(0,en.tP)()}),[r]),(0,E.jsx)("div",{className:`${r$.navScreen} ${r?r$.active:""}`,ref:i,id:"navScreen",children:(0,E.jsxs)("div",{className:r$.container,children:[(0,E.jsx)(({menuItems:e})=>(0,E.jsx)("div",{className:r$.navMenu,children:e.map(e=>(0,E.jsx)("div",{className:`${r$.navMenuItem} w-full`,children:"link"in e?(0,E.jsx)(rp,eM({pathname:l,base:x,langs:m},e),e.text):(0,E.jsx)("div",{className:"mx-3 last:mr-0",children:(0,E.jsx)(rS,e_(eM({},e),{items:"items"in e?e.items:e}))},e.text)},e.text))}),{menuItems:c}),(0,E.jsxs)("div",{className:"flex-center flex-col gap-2",children:[d&&(0,E.jsx)(()=>(0,E.jsx)("div",{className:`mt-2 ${r$.navAppearance} flex justify-center`,children:(0,E.jsx)(V,{children:(0,E.jsx)(rj,{})})}),{}),a&&(0,E.jsx)(rL,{}),o&&(0,E.jsx)(rT,{}),h&&(0,E.jsx)(rC,{socialLinks:u})]})]})})}var rH={navHamburger:"navHamburger_e7b06",active:"active_e7b06"};function rz(e){let{siteData:t,pathname:r}=e,{isScreenOpen:n,toggleScreen:l}=function(){let{pathname:e}=(0,L.TH)(),[t,r]=(0,M.useState)(!1);function n(){r(!0),window.addEventListener("resize",i)}function l(){r(!1),window.removeEventListener("resize",i)}function i(){window.outerWidth>=768&&l()}return(0,M.useEffect)(()=>{l()},[e]),{isScreenOpen:t,openScreen:n,closeScreen:l,toggleScreen:function(){t?l():n()}}}();return(0,E.jsxs)(M.Fragment,{children:[(0,E.jsx)(rA,{isScreenOpen:n,siteData:t,pathname:r}),(0,E.jsx)("button",{onClick:l,"aria-label":"mobile hamburger",className:`${n?rH.active:""} ${rH.navHamburger} text-gray-500`,children:(0,E.jsx)(tw,{icon:er,fill:"currentColor"})})]})}function rB({item:e}){return(0,E.jsxs)("div",{className:"rounded-2xl my-1 flex",style:{padding:"0.4rem 1.5rem 0.4rem 0.75rem"},children:[e.tag&&(0,E.jsx)(ny,{tag:e.tag}),(0,E.jsx)("span",{className:"text-brand",children:e.text})]},e.link)}function rP({item:e}){return(0,E.jsx)("div",{className:"font-medium my-1",children:(0,E.jsx)(rh,{href:e.link,children:(0,E.jsx)("div",{className:"rounded-2xl hover:bg-mute",style:{padding:"0.4rem 1.5rem 0.4rem 0.75rem"},children:(0,E.jsxs)("div",{className:"flex",children:[e.tag&&(0,E.jsx)(ny,{tag:e.tag}),(0,E.jsx)("span",{children:e.text})]})})})},e.link)}function rV(e){let{activeValue:t,items:r,base:n="",link:l="",pathname:i=""}=e,[s,a]=(0,M.useState)(!1),o=e=>{let r=new RegExp(e.activeMatch||e.link).test((0,I.tz)(i,n));return t===e.text||!t&&r?(0,E.jsx)(rB,{item:e},e.link):(0,E.jsx)(rP,{item:e},e.link)},c=e=>(0,E.jsxs)("div",{children:["link"in e?o(e):(0,E.jsx)("p",{className:"font-bold text-gray-400 my-1 not:first:border",children:e.text}),e.items.map(o)]});return(0,E.jsxs)("div",{className:"relative flex-center h-14",onMouseLeave:()=>a(!1),children:[(0,E.jsx)("button",{onMouseEnter:()=>a(!0),className:"rspress-nav-menu-group-button flex-center items-center font-medium text-sm text-text-1 hover:text-text-2 transition-colors duration-200",children:l?(0,E.jsx)(rp,e_(eM({},e),{rightIcon:(0,E.jsx)(tw,{icon:ec})})):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("span",{className:"text-sm font-medium flex",style:{marginRight:"2px"},children:[(0,E.jsx)(ny,{tag:e.tag}),e.text]}),(0,E.jsx)(tw,{icon:ec})]})}),(0,E.jsx)("div",{className:"rspress-nav-menu-group-content absolute mx-0.8 transition-opacity duration-300",style:{opacity:s?1:0,visibility:s?"visible":"hidden",right:0,top:"52px"},children:(0,E.jsx)("div",{className:"p-3 pr-2 w-full h-full max-h-100vh whitespace-nowrap",style:{boxShadow:"var(--rp-shadow-3)",zIndex:100,border:"1px solid var(--rp-c-divider-light)",borderRadius:"var(--rp-radius-large)",background:"var(--rp-c-bg)"},children:r.map(e=>(0,E.jsx)("div",{children:"items"in e?c(e):o(e)},e.text))})})]})}var rI=()=>{var e;let{siteData:t}=(0,S.Vi)(),r=ez(),{logo:n,logoText:l}=t,i=null!=(e=r.title)?e:t.title,s=(0,M.useMemo)(()=>n?"string"==typeof n?(0,E.jsx)("img",{src:(0,H.i6)(n),alt:"logo",id:"logo",className:"rspress-logo"}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("img",{src:(0,H.i6)(n.light),alt:"logo",id:"logo",className:"rspress-logo dark:hidden"}),(0,E.jsx)("img",{src:(0,H.i6)(n.dark),alt:"logo",id:"logo",className:"rspress-logo hidden dark:block"})]}):null,[n]);return(0,E.jsx)("div",{className:`${rf.navBarTitle}`,children:(0,E.jsxs)(rh,{href:r.langRoutePrefix,className:"flex items-center w-full h-full text-base font-semibold transition-opacity duration-300 hover:opacity-60",children:[s&&(0,E.jsx)("div",{className:"mr-1 min-w-8",children:s}),l&&(0,E.jsx)("span",{children:l}),!s&&!l&&(0,E.jsx)("span",{children:i})]})})};function rR(){let e=rM();return(0,E.jsx)("div",{className:`translation ${rf.menuItem} flex text-sm font-bold items-center px-3 py-2`,children:(0,E.jsx)("div",{children:(0,E.jsx)(rV,eM({},e))})})}function rZ(){let e=r_();return(0,E.jsx)("div",{className:`translation ${rf.menuItem} flex text-sm font-bold items-center px-3 py-2`,children:(0,E.jsx)("div",{children:(0,E.jsx)(rV,eM({},e))})})}function rO(e){var t;let{beforeNavTitle:r,afterNavTitle:n,beforeNav:l,afterNavMenu:i,navTitle:s}=e,{siteData:a}=(0,S.Vi)(),{base:o}=a,{pathname:c}=(0,L.TH)(),[d,u]=(0,M.useState)(!1),h=eZ(),m=Object.values(a.locales||a.themeConfig.locales||{}),x=m.length>1,f=a.multiVersion.versions.length>1,p=a.themeConfig.socialLinks||[],v=p.length>0,g=m.map(e=>e.lang||"")||[],j=()=>{u(to())};(0,M.useEffect)(()=>(window.addEventListener("resize",j),u(to()),()=>{window.removeEventListener("resize",j)}),[]);let w=({menuItems:e})=>(0,E.jsx)("div",{className:"rspress-nav-menu menu h-14",children:e.map(t=>"items"in t||Array.isArray(t)?(0,E.jsx)("div",{className:"mx-3 last:mr-0",children:(0,E.jsx)(rV,e_(eM({},t),{base:o,pathname:c,langs:g,items:"items"in t?t.items:t}))},t.text):(0,E.jsx)(rp,eM({pathname:c,langs:g,base:o,compact:e.length>5},t),t.link))}),b=rE(),y=e=>{var t;return null!=(t=e.position)?t:"right"},k=b.filter(e=>"left"===y(e)),N=b.filter(e=>"right"===y(e)),C=(null==(t=null==a?void 0:a.themeConfig)?void 0:t.search)!==!1,_=!1!==a.themeConfig.darkMode;return(0,E.jsxs)(E.Fragment,{children:[l,(0,E.jsx)("div",{className:`${rf.navContainer} rspress-nav px-6 ${h&&!d?rf.hidden:""}`,style:{position:d?"relative":"sticky"},children:(0,E.jsxs)("div",{className:`${rf.container} flex justify-between items-center h-full`,children:[r,s||(0,E.jsx)(rI,{}),n,(0,E.jsxs)("div",{className:"flex flex-1 justify-end items-center",children:[k.length>0?(0,E.jsx)("div",{className:rf.leftNav,children:(0,E.jsx)(w,{menuItems:k})}):null,(0,E.jsxs)("div",{className:rf.rightNav,children:[C&&(0,E.jsx)("div",{className:"flex sm:flex-1 items-center sm:pl-4 sm:pr-2",children:(0,E.jsx)(nc,{})}),(0,E.jsx)(w,{menuItems:N}),(0,E.jsxs)("div",{className:"flex-center flex-row",children:[x&&(0,E.jsx)(rR,{}),f&&(0,E.jsx)(rZ,{}),_&&(0,E.jsx)("div",{className:"mx-2",children:(0,E.jsx)(rj,{})}),v&&(0,E.jsx)(rC,{socialLinks:p})]})]}),i,(0,E.jsxs)("div",{className:rf.mobileNavMenu,children:[d&&C&&(0,E.jsx)(nc,{}),(0,E.jsx)(rz,{siteData:a,pathname:c})]})]})]})})]})}var rW={"header-anchor":"header-anchor_8f375",headerAnchor:"header-anchor_8f375","overview-groups":"overview-groups_8f375",overviewGroups:"overview-groups_8f375","overview-group-li":"overview-group-li_8f375",overviewGroupLi:"overview-group-li_8f375","level-2":"level-2_8f375",level2:"level-2_8f375","level-3":"level-3_8f375",level3:"level-3_8f375","level-4":"level-4_8f375",level4:"level-4_8f375","overview-group":"overview-group_8f375",overviewGroup:"overview-group_8f375",header:"header_8f375"},rD=e=>"dividerType"in e,rF=e=>"sectionHeaderText"in e,rU=e=>"link"in e&&(0,I.xf)(e.link),rJ=e=>e.toLowerCase().replace(/-/g," "),rG=(e,t)=>rJ(e).includes(rJ(t)),rY=({query:e,setQuery:t,searchRef:r,filterNameText:n,filterPlaceholderText:l})=>(0,E.jsxs)("div",{className:"flex items-center justify-start gap-4",children:[(0,E.jsx)("label",{htmlFor:"api-filter",children:n}),(0,E.jsx)("input",{ref:r,type:"search",placeholder:l,id:"api-filter",value:e,onChange:e=>t(e.target.value),className:"border border-gray-300 dark:border-gray-700 rounded-lg px-3 py-2 transition-shadow duration-250 ease-in-out focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-opacity-50"})]}),rK=({group:e,styles:t})=>(0,E.jsxs)("div",{className:"mb-16",children:[(0,E.jsx)("h2",{children:tx(e.name)}),(0,E.jsx)("div",{className:t.overviewGroups,children:e.items.map(e=>{var r;return(0,E.jsxs)("div",{className:t.overviewGroup,children:[(0,E.jsx)("div",{className:"flex",children:(0,E.jsx)("h3",{style:{marginBottom:8},children:(0,E.jsx)(rh,{href:(0,H.AP)(e.link),children:tx(e.text)})})}),(0,E.jsx)("ul",{className:"list-none",children:null==(r=e.headers)?void 0:r.map(r=>(0,E.jsx)("li",{className:`${t.overviewGroupLi} ${t[`level${r.depth}`]} first:mt-2`,children:(0,E.jsx)(rh,{href:`${(0,H.AP)(e.link)}#${r.id}`,children:tx(r.text)})},r.id))})]},e.link)})})]},e.name);function rq(e){var t;let{siteData:r,page:{routePath:n,title:l,frontmatter:i}}=(0,S.Vi)(),{content:s,groups:a,defaultGroupTitle:o="Others"}=e,[c,d]=(0,M.useState)(""),u=(0,M.useRef)(null);(0,M.useEffect)(()=>{var e;null==(e=u.current)||e.focus()},[]);let h=e=>(0,H.pJ)(e).startsWith(n.replace(/overview$/,""))&&!(0,H.pV)((0,H.pJ)(e),n),m=e=>"link"in e&&e.link?e.link:"items"in e?m(e.items[0]):"",{pages:x}=r,f=x.filter(e=>h(e.routePath)),{items:p}=eP(),{overview:{filterNameText:v="Filter",filterPlaceholderText:g="Enter keyword",filterNoResultText:j="No matching API found"}={}}=ez();function w(t,r,l){var i,s,a,o,c;if("dividerType"in t)return t;if((0,H.pJ)(t.link)===`${n}index`&&(null==l?void 0:l.overview)===!0)return!1;let d=null!=(o=null!=(a=null!=(s=null!=(i=null==e?void 0:e.overviewHeaders)?i:t.overviewHeaders)?s:null==l?void 0:l.overviewHeaders)?a:null==r?void 0:r.overviewHeaders)?o:[2],u=f.find(e=>(0,H.pV)(e.routePath,(0,H.pJ)(t.link||""))),h=m(t);return e_(eM({},t),{link:h,headers:(null==(c=null==u?void 0:u.toc)?void 0:c.filter(e=>d.some(t=>e.depth===t)))||[]})}(null==(t=p[0])?void 0:t.link)!==n&&(p=function e(t,r){let n,l=t.findIndex(e=>(function(e){var t;if(rD(e))return!1;let n=(0,H.pJ)(e.link);let l=(t=n).endsWith("/index")?t.slice(0,-5):t,i=r.replace(/\/$/,"");return n===r||l===r||n===i||l===i})(e));if(-1===l)return t.map(t=>"items"in t?e(t.items,r):[]).flat();let i=t[l];if("items"in i&&Array.isArray(n=i.items)&&n.length>=1)return i.items.every(e=>!("items"in e))?[i]:i.items.filter(e=>!rD(e));let s=[...t];return!("items"in i)&&s.splice(l,1),s.filter(e=>!rD(e))}(p,n));let b=e=>!("items"in e)&&"link"in e,y=null!=a?a:(0,M.useMemo)(()=>p.filter(e=>Array.isArray(null==e?void 0:e.items)?e.items.filter(e=>h(m(e))).length>0:!!(b(e)&&h(m(e)))||!1).map(e=>{var t;let r=[];return(null==e?void 0:e.items)?r=null==(t=null==e?void 0:e.items)?void 0:t.map(t=>w(t,e,i)).filter(Boolean):b(e)&&(r=[w({link:e.link,text:e.text||"",tag:e.tag,_fileKey:e._fileKey,overviewHeaders:e.overviewHeaders},void 0,i)]),{name:e.text||"",items:r}}),[p,n,i]),k=(0,M.useMemo)(()=>c?y.map(e=>{if(rG(e.name,c))return e;let t=e.items.map(e=>{var t;if(rG(e.text||"",c))return e;let r=null==(t=e.headers)?void 0:t.filter(({text:e})=>rG(e,c));return(null==r?void 0:r.length)?e_(eM({},e),{headers:r}):null}).filter(Boolean);return t.length?e_(eM({},e),{items:t}):null}).filter(Boolean):y,[y,c]);return(0,E.jsxs)("div",{className:"overview-index mx-auto px-8",children:[(0,E.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between mb-10",children:[(0,E.jsx)("h1",{className:"text-3xl leading-10 tracking-tight",children:l||"Overview"}),(0,E.jsx)(rY,{query:c,setQuery:d,searchRef:u,filterNameText:v,filterPlaceholderText:g})]}),s,k.length>0?k.map(e=>(0,E.jsx)(rK,{group:e,styles:rW},e.name)):(0,E.jsx)("div",{className:"text-lg text-gray-500 text-center mt-9 pt-9 border-t border-gray-200 dark:border-gray-800",children:`${j}: ${c}`})]})}function rX(e){return(0,E.jsxs)("svg",e_(eM({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256"},e),{children:[(0,E.jsx)("path",{fill:"#C12127",d:"M0 256V0h256v256z"}),(0,E.jsx)("path",{fill:"#FFF",d:"M48 48h160v160h-32V80h-48v128H48z"})]}))}function rQ(e){return(0,E.jsx)("svg",e_(eM({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 128 128"},e),{children:(0,E.jsxs)("g",{fill:"#2c8ebb",children:[(0,E.jsx)("path",{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"}),(0,E.jsx)("path",{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"})]})}))}function r0(e){return(0,E.jsxs)("svg",e_(eM({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 128 128"},e),{children:[(0,E.jsx)("path",{fill:"#f8ab00",d:"M0 .004V40h39.996V.004Zm43.996 0V40h40V.004Zm44.008 0V40H128V.004Zm0 43.996v39.996H128V44Z"}),(0,E.jsx)("path",{fill:"#4c4c4c",d:"M43.996 44v39.996h40V44ZM0 87.996v40h39.996v-40Zm43.996 0v40h40v-40Zm44.008 0v40H128v-40Z"})]}))}function r1(e){return(0,E.jsxs)("svg",e_(eM({id:"Bun",width:"1.2em",height:"1.2em",viewBox:"0 0 80 70"},e),{children:[(0,E.jsx)("path",{id:"Shadow",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"}),(0,E.jsxs)("g",{id:"Body",children:[(0,E.jsx)("path",{id:"Background",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",style:{fill:"#fbf0df"}}),(0,E.jsx)("path",{id:"Bottom_Shadow","data-name":"Bottom Shadow",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",style:{fill:"#f6dece"}}),(0,E.jsx)("path",{id:"Light_Shine","data-name":"Light Shine",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",style:{fill:"#fffefc"}}),(0,E.jsx)("path",{id:"Top",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",style:{fill:"#ccbea7",fillRule:"evenodd"}}),(0,E.jsx)("path",{id:"Outline",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"})]}),(0,E.jsxs)("g",{id:"Mouth",children:[(0,E.jsx)("g",{id:"Background-2","data-name":"Background",children:(0,E.jsx)("path",{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",style:{fill:"#b71422"}})}),(0,E.jsxs)("g",{id:"Tongue",children:[(0,E.jsx)("path",{id:"Background-3","data-name":"Background",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",style:{fill:"#ff6164"}}),(0,E.jsx)("path",{id:"Outline-2","data-name":"Outline",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"})]}),(0,E.jsx)("path",{id:"Outline-3","data-name":"Outline",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"})]}),(0,E.jsxs)("g",{id:"Face",children:[(0,E.jsx)("ellipse",{id:"Right_Blush","data-name":"Right Blush",cx:"53.22",cy:"40.18",rx:"5.85",ry:"3.44",style:{fill:"#febbd0"}}),(0,E.jsx)("ellipse",{id:"Left_Bluch","data-name":"Left Bluch",cx:"22.95",cy:"40.18",rx:"5.85",ry:"3.44",style:{fill:"#febbd0"}}),(0,E.jsx)("path",{id:"Eyes",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",style:{fillRule:"evenodd"}}),(0,E.jsx)("path",{id:"Iris",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",style:{fill:"#fff",fillRule:"evenodd"}})]})]}))}function r2(e){if(e.startsWith("yarn create"))return e.replace(/(yarn create [^\s]+)@latest/,"$1");if(!(null==e?void 0:e.includes("install")))return e;let t=e.split(" ").filter(e=>!e.startsWith("-")&&!e.startsWith("--")).join(" ");return"yarn install"===t||"bun install"===t?e:e.replace("install","add")}function r4({command:e,additionalTabs:t=[]}){let r;let n={npm:(0,E.jsx)(rX,{}),yarn:(0,E.jsx)(rQ,{}),pnpm:(0,E.jsx)(r0,{}),bun:(0,E.jsx)(r1,{})};return t.forEach(e=>{n[e.tool]=e.icon}),"string"==typeof e?(r={npm:`npm ${e}`,yarn:`yarn ${e}`,pnpm:`pnpm ${e}`,bun:`bun ${e}`},t.forEach(t=>{r[t.tool]=`${t.tool} ${e}`})):r=e,r.yarn&&(r.yarn=r2(r.yarn)),r.bun&&(r.bun=r2(r.bun)),(0,E.jsx)(nt,{groupId:"package.manager",values:Object.entries(r).map(([e])=>(0,E.jsxs)("div",{style:{display:"flex",alignItems:"center",fontSize:15},children:[n[e],(0,E.jsx)("span",{style:{marginLeft:6,marginBottom:2},children:e})]},e)),children:Object.entries(r).map(([e,t])=>(0,E.jsx)(nr,{children:(0,E.jsx)(t1,{children:(0,E.jsx)(t0,{className:"language-js",codeHighlighter:"prism",children:t})})},e))})}var r3={pagerLink:"pager-link_9b9a7",title:"title_9b9a7",next:"next_9b9a7",desc:"desc_9b9a7"};function r5(e){let{type:t,text:r,href:n}=e,{prevPageText:l="Previous Page",nextPageText:i="Next Page"}=ez(),s="prev"===t?r3.pagerLink:`${r3.pagerLink} ${r3.next}`;return(0,E.jsxs)(rh,{href:n,className:s,children:[(0,E.jsx)("span",{className:r3.desc,children:"prev"===t?l:i}),(0,E.jsx)("span",{className:r3.title,children:r})]})}var r6={scrollToTop:"scroll-to-top_1a167",entered:"entered_1a167"};function r7(){let[e,t]=(0,M.useState)(!1),r=()=>{t((window.scrollY||document.documentElement.scrollTop)>0)};return(0,M.useEffect)(()=>{window.addEventListener("scroll",r)},[]),(0,E.jsx)("button",{className:`${r6.scrollToTop} ${e?r6.entered:""}`,onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},children:(0,E.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"w-6 h-6",children:(0,E.jsx)("path",{fillRule:"evenodd",d:"M11.47 2.47a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06l-6.22-6.22V21a.75.75 0 0 1-1.5 0V4.81l-6.22 6.22a.75.75 0 1 1-1.06-1.06l7.5-7.5Z",clipRule:"evenodd"})})})}var r8={mask:"mask_6e282",modal:"modal_6e282",inputForm:"inputForm_6e282",input:"input_6e282",close:"close_6e282",searchHits:"searchHits_6e282",groupTitle:"groupTitle_6e282",navSearchButton:"navSearchButton_6e282",searchWord:"searchWord_6e282",suggestItem:"suggestItem_6e282",suggestItemContainer:"suggestItemContainer_6e282",contentWrapper:"contentWrapper_6e282",mark:"mark_6e282",titleForContent:"titleForContent_6e282",actionIcon:"actionIcon_6e282",current:"current_6e282",tabClassName:"tabClassName_6e282",mobileNavSearchButton:"mobileNavSearchButton_6e282"},r9={container:"container_fa768",tabList:"tab-list_fa768",tab:"tab_fa768",notSelected:"not-selected_fa768",selected:"selected_fa768",noScrollbar:"no-scrollbar_fa768"},ne=e=>{var t;return(t=e)&&"object"==typeof t&&"label"in t?e.label||e.value:e},nt=(0,M.forwardRef)((e,t)=>{let{values:r,defaultValue:n,onChange:l,children:i,groupId:s,tabPosition:a="left",tabContainerClassName:o}=e,c=M.Children.toArray(i).filter(e=>!("string"==typeof e&&""===e.trim())),d=r||[];0===d.length&&(d=M.Children.map(c,e=>{var t,r,n;return(0,M.isValidElement)(e)?{label:null==(t=e.props)?void 0:t.label,value:(null==(r=e.props)?void 0:r.value)||(null==(n=e.props)?void 0:n.label)}:{label:void 0,value:void 0}}));let{tabData:u,setTabData:h}=(0,M.useContext)(ty),[m,x]=(0,M.useState)(()=>void 0===n?0:d.findIndex(e=>"string"==typeof e?e===n:!!e&&"object"==typeof e&&"value"in e&&e.value===n)),[f,p]=tn(`rspress.tabs.${s}`,m),v=(0,M.useMemo)(()=>{if(s)return void 0!==u[s]?u[s]:Number.parseInt(f);return m},[u[s]]);(0,M.useEffect)(()=>{if(s){let e=Number.parseInt(f);v!==e&&h(e_(eM({},u),{[s]:e}))}},[f]);let g=s?v:m;return(0,E.jsxs)("div",{className:r9.container,ref:t,children:[(0,E.jsx)("div",{className:o,children:d.length?(0,E.jsx)("div",{className:`${r9.tabList} ${r9.noScrollbar}`,style:{justifyContent:"center"===a?"center":"flex-start"},children:d.map((e,t)=>(0,E.jsx)("div",{className:`${r9.tab} ${g===t?r9.selected:r9.notSelected}`,onClick:()=>{null==l||l(t),s?(h(e_(eM({},u),{[s]:t})),p(t)):x(t)},children:ne(e)},t))}):null}),(0,E.jsx)("div",{children:M.Children.toArray(c)[g]})]})});function nr(e){var{children:t}=e,r=e$(e,["children"]);return(0,E.jsx)("div",e_(eM({},r),{className:"rounded px-2",children:t}))}function nn({query:e}){let{searchNoResultsText:t="No results for",searchSuggestedQueryText:r="Please try again with a different keyword"}=ez();return(0,E.jsxs)("div",{className:"flex flex-col items-center pt-8 pb-2",children:[(0,E.jsx)(tw,{icon:ef,className:"mb-4 opacity-80"}),(0,E.jsxs)("p",{className:"mb-2",children:[t," ",(0,E.jsxs)("b",{children:['"',e,'"']})]}),(0,E.jsx)("p",{children:r})]})}var nl={title:e=>(0,E.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:(0,E.jsx)("path",{fill:"currentColor",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"})}),header:e=>(0,E.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 32 32",...e,children:(0,E.jsx)("path",{fill:"currentColor",d:"M28 12v-2h-6V4h-2v6h-8V4h-2v6H4v2h6v8H4v2h6v6h2v-6h8v6h2v-6h6v-2h-6v-8Zm-8 8h-8v-8h8Z"})}),content:e=>(0,E.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 32 32",...e,children:[(0,E.jsx)("circle",{cx:22,cy:24,r:2,fill:"currentColor"}),(0,E.jsx)("path",{fill:"none",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"}),(0,E.jsx)("path",{fill:"currentColor",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"}),(0,E.jsx)("path",{fill:"currentColor",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"})]})};function ni({suggestion:e,closeSearch:t,isCurrent:r,setCurrentSuggestionIndex:n,inCurrentDocIndex:l,scrollTo:i,onMouseMove:s}){var a,o;let c=nl[e.type],d=l&&!(0,I.yv)()?eq(e.link):e.link,u=(0,M.useRef)(null);r&&i(null==(a=null==u?void 0:u.current)?void 0:a.offsetTop,null==(o=null==u?void 0:u.current)?void 0:o.offsetHeight);let h=(e,t)=>{let r=[],n=0;for(let a of t){var l,i,s;let{start:t,length:o}=a,c=e.slice(n,t);let d=(l=e,i=t,s=o,function(e,t,r){let n="",l=0,i=e.length;for(let s=0;s<i&&!((l+=eX(e.charAt(s)))>0+r);s++){;l>t&&(n+=e.charAt(s))}return n}(l.slice(i),0,s));r.push(c),r.push((0,E.jsx)("span",{className:r8.mark,children:d},t)),n=t+d.length}return n<e.length&&r.push(e.slice(n)),r},m=null;switch(e.type){case"title":case"header":m=(()=>{if("header"===e.type||"title"===e.type){let{header:t,highlightInfoList:r}=e;return(0,E.jsx)("div",{className:"font-medium",children:h(t,r)})}return(0,E.jsx)("div",{className:"font-medium",children:e.header})})();break;case"content":m=(0,E.jsxs)(E.Fragment,{children:[(()=>{if("content"!==e.type)return(0,E.jsx)("div",{});let{statement:t,highlightInfoList:r}=e;return(0,E.jsx)("div",{className:"text-sm text-gray-light w-full",children:h(t,r)})})(),(0,E.jsx)("p",{className:r8.titleForContent,children:e.title})]})}return(0,E.jsx)("li",{className:`${r8.suggestItem} ${r?r8.current:""}`,onMouseEnter:n,onMouseMove:s,ref:u,children:(0,E.jsx)("a",{href:d,onClick:e=>{t(),e.stopPropagation()},target:l?"_self":"_blank",children:(0,E.jsxs)("div",{className:r8.suggestItemContainer,children:[(0,E.jsx)("div",{className:r8.hitIcon,children:(0,E.jsx)(tw,{icon:c})}),(0,E.jsx)("div",{className:r8.contentWrapper,children:(0,E.jsx)("span",{children:m})}),(0,E.jsx)("div",{className:r8.actionIcon,children:(0,E.jsx)(tw,{icon:ep})})]})})},e.link)}var ns={ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ENTER:"Enter",SEARCH:"KeyK",ESC:"Escape"},na=e=>{let t=(0,M.useRef)(e);return t.current=e,(0,M.useCallback)((0,eu.Z)((...e)=>t.current(...e),150),[])};function no({focused:e,setFocused:t}){var r,n,l,i;let[s,a]=(0,M.useState)(""),[o,c]=(0,M.useState)([]),d=(0,M.useRef)(null),[u,h]=(0,M.useState)(!0),[m,x]=(0,M.useState)(!1),[f,p]=(0,M.useState)(0),[v,g]=(0,M.useState)(0),j=(0,M.useRef)(null),w=(0,M.useRef)(null),b=(0,M.useRef)(null),y=(0,M.useRef)(null),k=(0,M.useRef)({pageX:null,pageY:null}),[N,C]=(0,M.useState)(!1),_=(e,t)=>{var r,n,l,i,s;if(N){let a=e+t-(null==(r=null==b?void 0:b.current)?void 0:r.offsetHeight)-(1===o.length?50:-10);a>(null==(n=null==b?void 0:b.current)?void 0:n.scrollTop)&&(null==(l=null==b?void 0:b.current)||l.scrollTo({top:a}));let c=1===o.length?e-70:e-10;c<(null==(i=null==b?void 0:b.current)?void 0:i.scrollTop)&&(null==(s=null==b?void 0:b.current)||s.scrollTo({top:c}))}},{siteData:$,page:{lang:L,version:T}}=(0,S.Vi)(),{sidebar:A,searchPlaceholderText:H="Search Docs"}=ez(),{search:z,title:B}=$,P=z&&"remote"!==z.mode&&z.versioned,V=[{group:B,result:[],renderType:"default"}],R=null!=(n=null==(r=o[f])?void 0:r.result)?n:[],Z=null!=(i=null==(l=o[f])?void 0:l.renderType)?i:"default",O=e=>eB(A,e).group;function W(){return eH(this,null,function*(){var e,t;if(!1===z)return;let r={currentLang:L,currentVersion:T,extractGroupName:O},n=new e8(eM(eM({indexName:B},z),r));j.current=n,w.current=r,yield j.current.init(),h(!1);let l=null==(e=d.current)?void 0:e.value;l&&(c((yield null==(t=j.current)?void 0:t.match(l))||V),x(!1))})}let D=()=>{t(!1),p(0),g(0)};(0,M.useEffect)(()=>{let r=r=>{switch(r.code){case ns.SEARCH:(r.ctrlKey||r.metaKey)&&(r.preventDefault(),t(!e));break;case ns.ARROW_DOWN:e&&(r.preventDefault(),R&&"default"===Z&&(C(!0),g((v+1)%R.length)));break;case ns.ARROW_UP:if(e&&(r.preventDefault(),"default"===Z)){let e=R.length;C(!0),g((v-1+e)%e)}break;case ns.ENTER:if(v>=0&&"default"===Z){let e=[].concat(...Object.values(U(R)))[v];0===f?window.location.href=(0,I.yv)()?e.link:eq(e.link):window.open(e.link),D()}break;case ns.ESC:D()}};return document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r)}},[g,t,e,f,R,v]),(0,M.useEffect)(()=>{e?(c(V),!j.current&&W()):a("")},[e]),(0,M.useEffect)(()=>{var e;let{currentLang:t,currentVersion:r}=null!=(e=w.current)?e:{},n=L!==t,l=P&&T!==r;!u&&(n||l)&&W()},[L,T,P]);let F=na(e=>eH(this,null,function*(){var t,r;let n=e;if(a(n),z&&"remote"===z.mode&&z.searchLoading&&x(!0),n){let e=[];if("beforeSearch"in eh){let e=yield eh.beforeSearch(n);e&&(n=e)}let l=yield null==(t=j.current)?void 0:t.match(n);if(l&&e.push(...l),"onSearch"in eh){let t=yield eh.onSearch(n,e);t&&e.push(...t.map(e=>eM({renderType:"custom"},e)))}"afterSearch"in eh&&(yield eh.afterSearch(n,e)),(null==(r=d.current)?void 0:r.value)===n&&(c(e||V),x(!1))}})),U=e=>e.reduce((e,t)=>{let r=t.group;return!e[r]&&(e[r]=[]),e[r].push(t),e},{}),J=(e,t,r)=>{if(r)return(0,E.jsx)("div",{className:"flex flex-col items-center",children:(0,E.jsx)(tw,{icon:ex,className:"m-8 opacity-80"})});if(0===e.length&&!u)return(0,E.jsx)(nn,{query:t});let n=U(e),l=-1;return(0,E.jsx)("ul",{className:r8.suggestList,children:Object.keys(n).map(e=>{let t=n[e]||[];return(0,E.jsx)("li",{children:(0,E.jsx)("ul",{className:"pb-2",children:t.map(e=>{let t=++l;return(0,E.jsx)(ni,{suggestion:e,isCurrent:t===v,setCurrentSuggestionIndex:e=>{if(k.current.pageX!==e.pageX||k.current.pageY!==e.pageY)C(!1),g(t)},onMouseMove:e=>{k.current={pageX:e.pageX,pageY:e.pageY}},closeSearch:()=>{D()},inCurrentDocIndex:0===f,scrollTo:_},`${e.title}-${t}`)})})},e)})})};return(0,E.jsx)(E.Fragment,{children:e&&(0,es.createPortal)((0,E.jsx)("div",{className:r8.mask,onClick:()=>{D()},children:(0,E.jsxs)("div",{className:`${r8.modal}`,onClick:e=>{t(!0),e.stopPropagation()},children:[(0,E.jsxs)("div",{className:"flex items-center",children:[(0,E.jsxs)("div",{className:r8.inputForm,children:[(0,E.jsx)("label",{children:(0,E.jsx)(tw,{icon:ed})}),(0,E.jsx)("input",{className:r8.input,ref:d,placeholder:H,"aria-label":"Search",autoComplete:"off",autoFocus:!0,onChange:e=>F(e.target.value)}),(0,E.jsx)("label",{children:(0,E.jsx)(tw,{icon:em,className:r8.close,onClick:e=>{d.current&&(e.stopPropagation(),s?(d.current.value="",a("")):D())}})})]}),(0,E.jsx)("h2",{className:"text-brand ml-2 sm:hidden cursor-pointer",onClick:e=>{e.stopPropagation(),D()},children:"Cancel"})]}),s&&!u?(0,E.jsx)("div",{className:`${r8.searchHits} rspress-scrollbar`,ref:b,children:((e,t,r)=>{if(1===e.length){let t=e[0].result;return 0!==t.length||r?(0,E.jsx)("div",{ref:y,children:J(t,s,r)}):(0,E.jsx)(nn,{query:s})}let n=e.map(e=>t&&"remote"===t.mode?eQ(t.searchIndexes||[]).find(t=>t.value===e.group).label:e.group);return(0,E.jsx)(nt,{values:n,tabContainerClassName:r8.tabClassName,onChange:e=>{p(e),g(0)},ref:y,children:e.map(e=>(0,E.jsxs)(nr,{children:["default"===e.renderType&&J(e.result,s,r),"custom"===e.renderType&&eh.render(e.result)]},e.group))})})(o,z,m)}):null]})}),document.getElementById("search-container"))})}function nc(){let[e,t]=(0,M.useState)(!1),[r,n]=(0,M.useState)(null),{searchPlaceholderText:l="Search Docs"}=ez();return(0,M.useEffect)(()=>{n(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?"⌘":"Ctrl")},[]),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:`rspress-nav-search-button ${r8.navSearchButton}`,onClick:()=>t(!0),children:(0,E.jsxs)("button",{children:[(0,E.jsx)(tw,{icon:ed,width:"18",height:"18"}),(0,E.jsx)("p",{className:r8.searchWord,children:l}),(0,E.jsxs)("div",{style:{opacity:r?1:0},children:[(0,E.jsx)("span",{children:r}),(0,E.jsx)("span",{children:"K"})]})]})}),(0,E.jsx)("div",{className:r8.mobileNavSearchButton,onClick:()=>t(!0),children:(0,E.jsx)(tw,{icon:ed})}),(0,E.jsx)(no,{focused:e,setFocused:t})]})}var nd={navTitleMask:"navTitleMask_71eca",sidebar:"sidebar_71eca",sidebarContent:"sidebarContent_71eca",open:"open_71eca",menuLink:"menuLink_71eca",menuItem:"menuItem_71eca",collapseContainer:"collapseContainer_71eca",menuItemActive:"menuItemActive_71eca"};function nu(e){let{depth:t,dividerType:r}=e;return(0,E.jsx)("div",{className:`${"dashed"===r?"border-dashed":"border-solid"} border-t border-divider-light my-3`,style:{marginLeft:0===t?0:"18px"}})}function nh(e){var t;let{item:r,depth:n=0,activeMatcher:l,id:i,setSidebarData:s}=e,a=(0,L.s0)(),o=(0,M.useRef)(null),c=(0,M.useRef)(null),d=(0,M.useRef)(null),u=(0,M.useRef)(!0),h=(0,M.useRef)(r.collapsed),m=r.link&&l(r.link),{collapsed:x,collapsible:f=!0}=r,p=(0,E.jsx)("div",{style:{cursor:"pointer",transition:"transform 0.2s ease-out",transform:x?"rotate(0deg)":"rotate(90deg)"},children:(0,E.jsx)(tw,{icon:F})});(0,M.useEffect)(()=>{if(u.current||!o.current||!d.current)return;c.current&&clearTimeout(c.current);let e=o.current,t=d.current,r=t.clientHeight+4;x?(e.style.maxHeight=`${r}px`,e.style.transitionDuration="0.5s",t.style.opacity="0",c.current=setTimeout(()=>{o.current&&(o.current.style.maxHeight="0px")},0)):(e.style.maxHeight=`${r}px`,e.style.transitionDuration="0.3s",t.style.opacity="1",c.current=setTimeout(()=>{o.current&&o.current.style.removeProperty("max-height")},300))},[x]),(0,M.useEffect)(()=>{u.current=!1},[]);let v=e=>{e.stopPropagation(),s(e=>{let t=[...e],r=i.split("-").map(Number),n=t[r.shift()];for(let e of r)n=n.items[e];return"items"in n&&(n.collapsed=!n.collapsed),t})};return(0,E.jsxs)("section",{className:"rspress-sidebar-section mt-0.5 block","data-context":r.context,style:{marginLeft:0===n?0:"18px"},children:[(0,E.jsxs)("div",{className:`rspress-sidebar-collapse flex justify-between items-center ${m?nd.menuItemActive:nd.menuItem}`,"data-context":r.context,onMouseEnter:()=>r.link&&e.preloadLink(r.link),onClick:e=>{r.link&&a((0,H.pJ)((0,H.AP)(r.link))),f&&v(e)},style:{borderRadius:0===n?"0 var(--rp-radius) var(--rp-radius) 0":void 0,cursor:f||r.link?"pointer":"normal"},children:[(0,E.jsxs)("h2",{className:"py-2 px-3 text-sm font-medium flex",style:eM({},0===n?nf:{}),children:[(0,E.jsx)(ny,{tag:r.tag}),(0,E.jsx)("span",{className:"flex-center",style:{fontSize:0===n?"14px":"13px"},children:tx(r.text)})]}),f&&(0,E.jsx)("div",{className:`${nd.collapseContainer} p-2 rounded-xl`,onClick:v,children:p})]}),(0,E.jsx)("div",{ref:o,className:"transition-all duration-300 ease-in-out",style:{overflow:"hidden",maxHeight:h.current?0:void 0},children:(0,E.jsx)("div",{ref:d,className:"rspress-sidebar-group transition-opacity duration-500 ease-in-out",style:{opacity:h.current?0:1,marginLeft:0===n?"12px":0},children:null==(t=null==r?void 0:r.items)?void 0:t.map((t,r)=>rD(t)?(0,E.jsx)(nu,{depth:n+1,dividerType:t.dividerType},r):(0,E.jsx)("div",{className:"rspress-sidebar-item","data-context":t.context,children:(0,E.jsx)(nm,e_(eM({},e),{item:t,depth:n+1,id:`${i}-${r}`,preloadLink:e.preloadLink}))},r))})})]},i)}function nm(e){let{item:t,depth:r=0,activeMatcher:n,id:l,setSidebarData:i}=e,s="link"in t&&t.link&&n(t.link),a=(0,M.useRef)(null);return((0,M.useEffect)(()=>{var e;s&&(null==(e=a.current)||e.scrollIntoView({block:"center"}))},[]),"items"in t)?(0,E.jsx)(nh,{id:l,item:t,depth:r,activeMatcher:n,collapsed:t.collapsed,setSidebarData:i,preloadLink:e.preloadLink},`${t.text}-${l}`):(0,E.jsx)(rh,{href:(0,H.AP)(t.link),className:nd.menuLink,children:(0,E.jsxs)("div",{ref:a,onMouseEnter:()=>e.preloadLink(t.link),className:`${s?nd.menuItemActive:nd.menuItem} mt-0.5 py-2 px-3 font-medium flex`,style:eM({fontSize:0===r?"14px":"13px",marginLeft:0===r?0:"18px",borderRadius:"0 var(--rp-radius) var(--rp-radius) 0"},0===r?nf:{}),children:[(0,E.jsx)(ny,{tag:t.tag}),(0,E.jsx)("span",{children:tx(t.text)})]})})}function nx({sectionHeaderText:e,tag:t}){return(0,E.jsxs)("div",{className:"rspress-sidebar-section-header",children:[(0,E.jsx)(ny,{tag:t}),(0,E.jsx)("span",{children:tx(e)})]})}var nf={fontSize:"14px",paddingLeft:"24px",fontWeight:"bold"},np=new WeakMap;function nv(e){let{isSidebarOpen:t,beforeSidebar:r,afterSidebar:n,uiSwitch:l,navTitle:i}=e,{pathname:s}=(0,L.TH)(),{items:a}=eP(),[o,c]=(0,M.useState)(()=>a.filter(Boolean).flat()),d=ez(),u=decodeURIComponent(s),h=(0,I.Kw)(d.langRoutePrefix||"");(0,M.useEffect)(()=>{I._f&&(t?(C=document.body.style.overflow,document.body.style.overflow="hidden"):document.body.style.overflow=C||"")},[t]),(0,M.useEffect)(()=>{if(a===o)return;np=new WeakMap;let e=t=>np.has(t)?np.get(t):"link"in t&&t.link&&x(t.link)||"items"in t&&t.items.some(t=>e(t))?(np.set(t,!0),!0):(np.set(t,!1),!1),t=r=>{"items"in r&&(r.items.forEach(t),e(r)&&(r.collapsed=!1))},r=a.filter(Boolean).flat();r.forEach(t),c(r)},[a,u]);let m=e=>e.replace(h,""),x=e=>ta((0,H.E9)(m(u)),m(e),!0),f=e=>{let t=(0,T.fp)(et.routes,e);if(null==t?void 0:t.length){let{route:e}=t[0];e.preload()}};return(0,E.jsxs)("aside",{className:`${nd.sidebar} rspress-sidebar ${t?nd.open:""}`,children:[l.showNavbar?(0,E.jsx)("div",{className:nd.navTitleMask,children:i||(0,E.jsx)(rI,{})}):null,(0,E.jsx)("div",{className:`rspress-scrollbar ${nd.sidebarContent}`,children:(0,E.jsxs)("nav",{className:"pb-2",children:[r,o.map((e,t)=>{var r,n;return rD(e)?(0,E.jsx)(nu,{depth:0,dividerType:e.dividerType},t):rF(e)?(0,E.jsx)(nx,{sectionHeaderText:e.sectionHeaderText,tag:e.tag},t):rU(e)?(0,E.jsx)("div",{className:"rspress-sidebar-item rspress-sidebar-custom-link","data-context":e.context,children:(0,E.jsx)(nm,{id:String(t),item:e,depth:0,activeMatcher:x,collapsed:null==(r=e.collapsed)||r,setSidebarData:c,preloadLink:f},t)},t):(0,E.jsx)(nm,{id:String(t),item:e,depth:0,activeMatcher:x,collapsed:null==(n=e.collapsed)||n,setSidebarData:c,preloadLink:f},t)}),n]})})]})}var ng="sourceCode_bf1b0";function nj(e){let{href:t,platform:r="github"}=e,{sourceCodeText:n="Source"}=ez();return(0,E.jsx)("div",{className:`inline-block rounded border border-solid border-gray-light-3 dark:border-divider text-gray-400 ${ng}`,children:(0,E.jsxs)("a",{href:t,target:"_blank",className:"flex items-center content-center transition-all duration-300 text-xs block px-2 py-1 ",children:[(0,E.jsx)("span",{className:"mr-2 inline-flex w-4 h-4",children:(0,E.jsx)(tw,{icon:"gitlab"===r?eg:ev})}),(0,E.jsx)("span",{children:n})]})})}var nw="rspressSteps_38f64";function nb({children:e}){return(0,E.jsx)("div",{className:`ml-4 mb-11 border-l pl-6 ${nw} [counter-reset:step]`,children:e})}var ny=({tag:e})=>e?e.trim().startsWith("<svg")?(0,E.jsx)("div",{dangerouslySetInnerHTML:{__html:e},style:{width:20,marginRight:4}}):(0,E.jsx)("img",{src:e}):null,nk=({header:e,onItemClick:t})=>(0,E.jsx)("li",{children:(0,E.jsx)("a",{href:`#${e.id}`,className:"rspress-toc-link sm:text-normal text-sm",style:{marginLeft:(e.depth-2)*12},onClick:r=>{r.preventDefault(),window.location.hash=e.id;let n=document.getElementById(e.id);n&&eW(n,!1),null==t||t(e)},children:(0,E.jsx)("span",{className:"rspress-toc-link-text block",children:tx(e.text)})})},e.id);function nN({onItemClick:e}){let{page:t}=(0,S.Vi)();return(0,E.jsx)("ul",{children:t.toc.map(t=>(0,E.jsx)(nk,{header:t,onItemClick:e},t.id))})}var nC={Layout:tz,NotFoundLayout:tB,HomeLayout:tA,setup:eF}}},t={};function r(n){var l=t[n];if(void 0!==l)return l.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.m=e,r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};r.t=function(n,l){if(1&l&&(n=this(n)),8&l||"object"==typeof n&&n&&(4&l&&n.__esModule||16&l&&"function"==typeof n.then))return n;var i=Object.create(null);r.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&l&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(function(e){s[e]=function(){return n[e]}});return s.default=function(){return n},r.d(i,s),i}})(),r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce(function(t,n){return r.f[n](e,t),t},[]))},r.u=function(e){return"static/js/async/"+e+"."+({194:"c0c628ad",599:"38f0373a",918:"192cbe22"})[e]+".js"},r.miniCssF=function(e){return""+e+".css"},r.h=function(){return"0125fddd18bf1636"},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},(()=>{var e={},t="rspress-doc-template:";r.l=function(n,l,i,s){if(e[n]){e[n].push(l);return}if(void 0!==i){for(var a,o,c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var u=c[d];if(u.getAttribute("src")==n||u.getAttribute("data-webpack")==t+i){a=u;break}}}!a&&(o=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",t+i),a.src=n),e[n]=[l];var h=function(t,r){a.onerror=a.onload=null,clearTimeout(m);var l=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),l&&l.forEach(function(e){return e(r)}),t)return t(r)},m=setTimeout(h.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=h.bind(null,a.onerror),a.onload=h.bind(null,a.onload),o&&document.head.appendChild(a)}})(),r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e=[];r.O=function(t,n,l,i){if(n){i=i||0;for(var s=e.length;s>0&&e[s-1][2]>i;s--)e[s]=e[s-1];e[s]=[n,l,i];return}for(var a=1/0,s=0;s<e.length;s++){for(var n=e[s][0],l=e[s][1],i=e[s][2],o=!0,c=0;c<n.length;c++)(!1&i||a>=i)&&Object.keys(r.O).every(function(e){return r.O[e](n[c])})?n.splice(c--,1):(o=!1,i<a&&(a=i));if(o){e.splice(s--,1);var d=l();void 0!==d&&(t=d)}}return t}})(),r.p="/",r.rv=function(){return"1.1.8"},(()=>{var e={980:0};r.f.j=function(t,n){var l=r.o(e,t)?e[t]:void 0;if(0!==l){if(l)n.push(l[2]);else{var i=new Promise(function(r,n){l=e[t]=[r,n]});n.push(l[2]=i);var s=r.p+r.u(t),a=Error();r.l(s,function(n){if(r.o(e,t)&&(0!==(l=e[t])&&(e[t]=void 0),l)){var i=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+s+")",a.name="ChunkLoadError",a.type=i,a.request=s,l[1](a)}},"chunk-"+t,t)}}},r.O.j=function(t){return 0===e[t]};var t=function(t,n){var l=n[0],i=n[1],s=n[2],a,o,c=0;if(l.some(function(t){return 0!==e[t]})){for(a in i)r.o(i,a)&&(r.m[a]=i[a]);if(s)var d=s(r)}for(t&&t(n);c<l.length;c++)o=l[c],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return r.O(d)},n=self.webpackChunkrspress_doc_template=self.webpackChunkrspress_doc_template||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),r.ruid="bundler=rspack@1.1.8";var n=r.O(void 0,["212","361","118","966"],function(){return r("375")});n=r.O(n)})();
|
package/template-basic/doc_build/static/js/{lib-router.243fc14a.js → lib-router.e17aa2e0.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see lib-router.
|
|
2
|
-
"use strict";(self.webpackChunkrspress_doc_template=self.webpackChunkrspress_doc_template||[]).push([["118"],{7570:function(e,t,n){var r,a,i,o;function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{J0:function(){return c},RQ:function(){return P},X3:function(){return E},Zn:function(){return w},aU:function(){return r},cP:function(){return v},cm:function(){return S},fp:function(){return m},lX:function(){return s},pC:function(){return x}}),(i=r||(r={})).Pop="POP",i.Push="PUSH",i.Replace="REPLACE";let u="popstate";function s(e){return void 0===e&&(e={}),function(e,t,n,a){void 0===a&&(a={});let{window:i=document.defaultView,v5Compat:o=!1}=a,s=i.history,h=r.Pop,v=null,m=g();function g(){return(s.state||{idx:null}).idx}function y(){h=r.Pop;let e=g(),t=null==e?null:e-m;m=e,v&&v({action:h,location:w.location,delta:t})}null==m&&(m=0,s.replaceState(l({},s.state,{idx:m}),""));function b(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"==typeof e?e:d(e);return c(t,"No window.location.(origin|href) available to create URL for href: "+(n=n.replace(/ $/,"%20"))),new URL(n,t)}let w={get action(){return h},get location(){return e(i,s)},listen(e){if(v)throw Error("A history only accepts one active listener");return i.addEventListener(u,y),v=e,()=>{i.removeEventListener(u,y),v=null}},createHref:e=>t(i,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h=r.Push;let a=f(w.location,e,t);n&&n(a,e);let l=p(a,m=g()+1),u=w.createHref(a);try{s.pushState(l,"",u)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;i.location.assign(u)}o&&v&&v({action:h,location:w.location,delta:1})},replace:function(e,t){h=r.Replace;let a=f(w.location,e,t);n&&n(a,e);let i=p(a,m=g()),l=w.createHref(a);s.replaceState(i,"",l),o&&v&&v({action:h,location:w.location,delta:0})},go:e=>s.go(e)};return w}(function(e,t){let{pathname:n,search:r,hash:a}=e.location;return f("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:d(t)},null,e)}function c(e,t){if(!1===e||null==e)throw Error(t)}function h(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function p(e,t){return{usr:e.state,key:e.key,idx:t}}function f(e,t,n,r){return void 0===n&&(n=null),l({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?v(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function d(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function v(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function m(e,t,n){return void 0===n&&(n="/"),function(e,t,n,r){let a=w(("string"==typeof t?v(t):t).pathname||"/",n);if(null==a)return null;let i=function e(t,n,r,a){void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===a&&(a="");let i=(t,i,o)=>{let l={relativePath:void 0===o?t.path||"":o,caseSensitive:!0===t.caseSensitive,childrenIndex:i,route:t};l.relativePath.startsWith("/")&&(c(l.relativePath.startsWith(a),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+a)+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),l.relativePath=l.relativePath.slice(a.length));let u=P([a,l.relativePath]),s=r.concat(l);if(t.children&&t.children.length>0&&(c(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+u+'".'),e(t.children,n,s,u)),null!=t.path||!!t.index)n.push({path:u,score:function(e,t){let n=e.split("/"),r=n.length;return n.some(y)&&(r+=-2),t&&(r+=2),n.filter(e=>!y(e)).reduce((e,t)=>e+(g.test(t)?3:""===t?1:10),r)}(u,t.index),routesMeta:s})};return t.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of function e(t){let n=t.split("/");if(0===n.length)return[];let[r,...a]=n,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===a.length)return i?[o,""]:[o];let l=e(a.join("/")),u=[];return u.push(...l.map(e=>""===e?o:[o,e].join("/"))),i&&u.push(...l),u.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))i(e,t,n);else i(e,t)}),n}(e);(function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))})(i);let o=null;for(let e=0;null==o&&e<i.length;++e){let t=function(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return h(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t)+")."),e}}(a);o=function(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,a={},i="/",o=[];for(let e=0;e<r.length;++e){let l=r[e],u=e===r.length-1,s="/"===i?t:t.slice(i.length)||"/",c=b({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},s),h=l.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=b({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},s)),!c)return null;Object.assign(a,c.params),o.push({params:a,pathname:P([i,c.pathname]),pathnameBase:_(P([i,c.pathnameBase])),route:h}),"/"!==c.pathnameBase&&(i=P([i,c.pathnameBase]))}return o}(i[e],t,r)}return o}(e,t,n,!1)}(o=a||(a={})).data="data",o.deferred="deferred",o.redirect="redirect",o.error="error";let g=/^:[\w-]+$/,y=e=>"*"===e;function b(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),h("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*"))+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, '+('please change the route path to "'+e.replace(/\*$/,"/*"))+'".');let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((e,t,n)=>{let{paramName:r,isOptional:a}=t;if("*"===r){let e=l[n]||"";o=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}let u=l[n];return a&&!u?e[r]=void 0:e[r]=(u||"").replace(/%2F/g,"/"),e},{}),pathname:i,pathnameBase:o,pattern:e}}function w(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function R(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r))+"]. Please separate it out to the "+("`to."+n)+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function S(e,t){let n=e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function x(e,t,n,r){let a,i;void 0===r&&(r=!1),"string"==typeof e?a=v(e):(c(!(a=l({},e)).pathname||!a.pathname.includes("?"),R("?","pathname","search",a)),c(!a.pathname||!a.pathname.includes("#"),R("#","pathname","hash",a)),c(!a.search||!a.search.includes("#"),R("#","search","hash",a)));let o=""===e||""===a.pathname,u=o?"/":a.pathname;if(null==u)i=n;else{let e=t.length-1;if(!r&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}i=e>=0?t[e]:"/"}let s=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"==typeof e?v(e):e;return{pathname:n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}(n,t):t,search:U(r),hash:C(a)}}(a,i),h=u&&"/"!==u&&u.endsWith("/"),p=(o||"."===u)&&n.endsWith("/");return!s.pathname.endsWith("/")&&(h||p)&&(s.pathname+="/"),s}let P=e=>e.join("/").replace(/\/\/+/g,"/"),_=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),U=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",C=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class E extends Error{}Symbol("deferred")},156:function(e,t,n){n.d(t,{VK:function(){return w}});var r,a,i,o,l,u,s=n(6945),c=n(3567),h=n(1340),p=n(7570);function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let d="application/x-www-form-urlencoded";function v(e){return null!=e&&"string"==typeof e.tagName}let m=null,g=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function y(e){return null==e||g.has(e)?e:null}try{window.__reactRouterVersion="6"}catch(e){}let b=(i||(i=n.t(s,2))).startTransition;(o||(o=n.t(c,2))).flushSync;(i||(i=n.t(s,2))).useId;function w(e){let{basename:t,children:n,future:r,window:a}=e,i=s.useRef();null==i.current&&(i.current=(0,p.lX)({window:a,v5Compat:!0}));let o=i.current,[l,u]=s.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},f=s.useCallback(e=>{c&&b?b(()=>u(e)):u(e)},[u,c]);return s.useLayoutEffect(()=>o.listen(f),[o,f]),s.useEffect(()=>(0,h.$A)(r),[r]),s.createElement(h.F0,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:r})}"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;function R(e){let t=React.useContext(UNSAFE_DataRouterContext);return t||UNSAFE_invariant(!1),t}(r=l||(l={})).UseScrollRestoration="useScrollRestoration",r.UseSubmit="useSubmit",r.UseSubmitFetcher="useSubmitFetcher",r.UseFetcher="useFetcher",r.useViewTransitionState="useViewTransitionState",(a=u||(u={})).UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration";let S=0,x=()=>"__"+String(++S)+"__"},1340:function(e,t,n){n.d(t,{$A:function(){return P},F0:function(){return _},TH:function(){return m},s0:function(){return y}});var r,a,i,o,l=n(6945),u=n(7570);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let c=l.createContext(null),h=l.createContext(null),p=l.createContext(null),f=l.createContext({outlet:null,matches:[],isDataRoute:!1}),d=l.createContext(null);function v(){return null!=l.useContext(p)}function m(){return v()||(0,u.J0)(!1),l.useContext(p).location}function g(e){!l.useContext(h).static&&l.useLayoutEffect(e)}function y(){let{isDataRoute:e}=l.useContext(f);return e?function(){var e;let t;let{router:n}=(e=b.UseNavigateStable,(t=l.useContext(c))||(0,u.J0)(!1),t),r=R(w.UseNavigateStable),a=l.useRef(!1);return g(()=>{a.current=!0}),l.useCallback(function(e,t){void 0===t&&(t={}),a.current&&("number"==typeof e?n.navigate(e):n.navigate(e,s({fromRouteId:r},t)))},[n,r])}():function(){v()||(0,u.J0)(!1);let e=l.useContext(c),{basename:t,future:n,navigator:r}=l.useContext(h),{matches:a}=l.useContext(f),{pathname:i}=m(),o=JSON.stringify((0,u.cm)(a,n.v7_relativeSplatPath)),s=l.useRef(!1);return g(()=>{s.current=!0}),l.useCallback(function(n,a){if(void 0===a&&(a={}),!s.current)return;if("number"==typeof n){r.go(n);return}let l=(0,u.pC)(n,JSON.parse(o),i,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:(0,u.RQ)([t,l.pathname])),(a.replace?r.replace:r.push)(l,a.state,a)},[t,r,o,i,e])}()}var b=((r=b||{}).UseBlocker="useBlocker",r.UseRevalidator="useRevalidator",r.UseNavigateStable="useNavigate",r);var w=((a=w||{}).UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a);function R(e){var t;let n;let r=(t=0,(n=l.useContext(f))||(0,u.J0)(!1),n),a=r.matches[r.matches.length-1];return a.route.id||(0,u.J0)(!1),a.route.id}let S={},x=(e,t,n)=>{var r,a;return r=0,void(!S[a="⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e)+"` future flag to opt-in early. "+("For more information, see "+n)+"."]&&(S[a]=!0,console.warn(a)))};function P(e,t){!(null!=e&&e.v7_startTransition)&&x("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(null!=e&&e.v7_relativeSplatPath)&&(!t||!t.v7_relativeSplatPath)&&x("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(!t.v7_fetcherPersist&&x("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),!t.v7_normalizeFormMethod&&x("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),!t.v7_partialHydration&&x("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),!t.v7_skipActionErrorRevalidation&&x("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function _(e){let{basename:t="/",children:n=null,location:r,navigationType:a=u.aU.Pop,navigator:i,static:o=!1,future:c}=e;v()&&(0,u.J0)(!1);let f=t.replace(/^\/*/,"/"),d=l.useMemo(()=>({basename:f,navigator:i,static:o,future:s({v7_relativeSplatPath:!1},c)}),[f,c,i,o]);"string"==typeof r&&(r=(0,u.cP)(r));let{pathname:m="/",search:g="",hash:y="",state:b=null,key:w="default"}=r,R=l.useMemo(()=>{let e=(0,u.Zn)(m,f);return null==e?null:{location:{pathname:e,search:g,hash:y,state:b,key:w},navigationType:a}},[f,m,g,y,b,w,a]);return null==R?null:l.createElement(h.Provider,{value:d},l.createElement(p.Provider,{children:n,value:R}))}(o||(o=n.t(l,2))).startTransition;var U=((i=U||{})[i.pending=0]="pending",i[i.success=1]="success",i[i.error=2]="error",i);new Promise(()=>{})}}]);
|
|
1
|
+
/*! For license information please see lib-router.e17aa2e0.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkrspress_doc_template=self.webpackChunkrspress_doc_template||[]).push([["118"],{7570:function(e,t,n){var r,a,i,o;function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{J0:function(){return c},RQ:function(){return P},X3:function(){return E},Zn:function(){return w},aU:function(){return r},cP:function(){return v},cm:function(){return S},fp:function(){return m},lX:function(){return s},pC:function(){return x}}),(i=r||(r={})).Pop="POP",i.Push="PUSH",i.Replace="REPLACE";let u="popstate";function s(e){return void 0===e&&(e={}),function(e,t,n,a){void 0===a&&(a={});let{window:i=document.defaultView,v5Compat:o=!1}=a,s=i.history,h=r.Pop,v=null,m=g();function g(){return(s.state||{idx:null}).idx}function y(){h=r.Pop;let e=g(),t=null==e?null:e-m;m=e,v&&v({action:h,location:w.location,delta:t})}null==m&&(m=0,s.replaceState(l({},s.state,{idx:m}),""));function b(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"==typeof e?e:d(e);return c(t,"No window.location.(origin|href) available to create URL for href: "+(n=n.replace(/ $/,"%20"))),new URL(n,t)}let w={get action(){return h},get location(){return e(i,s)},listen(e){if(v)throw Error("A history only accepts one active listener");return i.addEventListener(u,y),v=e,()=>{i.removeEventListener(u,y),v=null}},createHref:e=>t(i,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h=r.Push;let a=f(w.location,e,t);n&&n(a,e);let l=p(a,m=g()+1),u=w.createHref(a);try{s.pushState(l,"",u)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;i.location.assign(u)}o&&v&&v({action:h,location:w.location,delta:1})},replace:function(e,t){h=r.Replace;let a=f(w.location,e,t);n&&n(a,e);let i=p(a,m=g()),l=w.createHref(a);s.replaceState(i,"",l),o&&v&&v({action:h,location:w.location,delta:0})},go:e=>s.go(e)};return w}(function(e,t){let{pathname:n,search:r,hash:a}=e.location;return f("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:d(t)},null,e)}function c(e,t){if(!1===e||null==e)throw Error(t)}function h(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function p(e,t){return{usr:e.state,key:e.key,idx:t}}function f(e,t,n,r){return void 0===n&&(n=null),l({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?v(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function d(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function v(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function m(e,t,n){return void 0===n&&(n="/"),function(e,t,n,r){let a=w(("string"==typeof t?v(t):t).pathname||"/",n);if(null==a)return null;let i=function e(t,n,r,a){void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===a&&(a="");let i=(t,i,o)=>{let l={relativePath:void 0===o?t.path||"":o,caseSensitive:!0===t.caseSensitive,childrenIndex:i,route:t};l.relativePath.startsWith("/")&&(c(l.relativePath.startsWith(a),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+a)+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),l.relativePath=l.relativePath.slice(a.length));let u=P([a,l.relativePath]),s=r.concat(l);if(t.children&&t.children.length>0&&(c(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+u+'".'),e(t.children,n,s,u)),null!=t.path||!!t.index)n.push({path:u,score:function(e,t){let n=e.split("/"),r=n.length;return n.some(y)&&(r+=-2),t&&(r+=2),n.filter(e=>!y(e)).reduce((e,t)=>e+(g.test(t)?3:""===t?1:10),r)}(u,t.index),routesMeta:s})};return t.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of function e(t){let n=t.split("/");if(0===n.length)return[];let[r,...a]=n,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===a.length)return i?[o,""]:[o];let l=e(a.join("/")),u=[];return u.push(...l.map(e=>""===e?o:[o,e].join("/"))),i&&u.push(...l),u.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))i(e,t,n);else i(e,t)}),n}(e);(function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))})(i);let o=null;for(let e=0;null==o&&e<i.length;++e){let t=function(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return h(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t)+")."),e}}(a);o=function(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,a={},i="/",o=[];for(let e=0;e<r.length;++e){let l=r[e],u=e===r.length-1,s="/"===i?t:t.slice(i.length)||"/",c=b({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},s),h=l.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=b({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},s)),!c)return null;Object.assign(a,c.params),o.push({params:a,pathname:P([i,c.pathname]),pathnameBase:_(P([i,c.pathnameBase])),route:h}),"/"!==c.pathnameBase&&(i=P([i,c.pathnameBase]))}return o}(i[e],t,r)}return o}(e,t,n,!1)}(o=a||(a={})).data="data",o.deferred="deferred",o.redirect="redirect",o.error="error";let g=/^:[\w-]+$/,y=e=>"*"===e;function b(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),h("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*"))+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, '+('please change the route path to "'+e.replace(/\*$/,"/*"))+'".');let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((e,t,n)=>{let{paramName:r,isOptional:a}=t;if("*"===r){let e=l[n]||"";o=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}let u=l[n];return a&&!u?e[r]=void 0:e[r]=(u||"").replace(/%2F/g,"/"),e},{}),pathname:i,pathnameBase:o,pattern:e}}function w(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function R(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r))+"]. Please separate it out to the "+("`to."+n)+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function S(e,t){let n=e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function x(e,t,n,r){let a,i;void 0===r&&(r=!1),"string"==typeof e?a=v(e):(c(!(a=l({},e)).pathname||!a.pathname.includes("?"),R("?","pathname","search",a)),c(!a.pathname||!a.pathname.includes("#"),R("#","pathname","hash",a)),c(!a.search||!a.search.includes("#"),R("#","search","hash",a)));let o=""===e||""===a.pathname,u=o?"/":a.pathname;if(null==u)i=n;else{let e=t.length-1;if(!r&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}i=e>=0?t[e]:"/"}let s=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"==typeof e?v(e):e;return{pathname:n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}(n,t):t,search:U(r),hash:C(a)}}(a,i),h=u&&"/"!==u&&u.endsWith("/"),p=(o||"."===u)&&n.endsWith("/");return!s.pathname.endsWith("/")&&(h||p)&&(s.pathname+="/"),s}let P=e=>e.join("/").replace(/\/\/+/g,"/"),_=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),U=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",C=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class E extends Error{}Symbol("deferred")},6779:function(e,t,n){n.d(t,{VK:function(){return w}});var r,a,i,o,l,u,s=n(6945),c=n(3567),h=n(7314),p=n(7570);function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let d="application/x-www-form-urlencoded";function v(e){return null!=e&&"string"==typeof e.tagName}let m=null,g=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function y(e){return null==e||g.has(e)?e:null}try{window.__reactRouterVersion="6"}catch(e){}let b=(i||(i=n.t(s,2))).startTransition;(o||(o=n.t(c,2))).flushSync;(i||(i=n.t(s,2))).useId;function w(e){let{basename:t,children:n,future:r,window:a}=e,i=s.useRef();null==i.current&&(i.current=(0,p.lX)({window:a,v5Compat:!0}));let o=i.current,[l,u]=s.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},f=s.useCallback(e=>{c&&b?b(()=>u(e)):u(e)},[u,c]);return s.useLayoutEffect(()=>o.listen(f),[o,f]),s.useEffect(()=>(0,h.$A)(r),[r]),s.createElement(h.F0,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:r})}"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;function R(e){let t=React.useContext(UNSAFE_DataRouterContext);return t||UNSAFE_invariant(!1),t}(r=l||(l={})).UseScrollRestoration="useScrollRestoration",r.UseSubmit="useSubmit",r.UseSubmitFetcher="useSubmitFetcher",r.UseFetcher="useFetcher",r.useViewTransitionState="useViewTransitionState",(a=u||(u={})).UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration";let S=0,x=()=>"__"+String(++S)+"__"},7314:function(e,t,n){n.d(t,{$A:function(){return P},F0:function(){return _},TH:function(){return m},s0:function(){return y}});var r,a,i,o,l=n(6945),u=n(7570);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let c=l.createContext(null),h=l.createContext(null),p=l.createContext(null),f=l.createContext({outlet:null,matches:[],isDataRoute:!1}),d=l.createContext(null);function v(){return null!=l.useContext(p)}function m(){return v()||(0,u.J0)(!1),l.useContext(p).location}function g(e){!l.useContext(h).static&&l.useLayoutEffect(e)}function y(){let{isDataRoute:e}=l.useContext(f);return e?function(){var e;let t;let{router:n}=(e=b.UseNavigateStable,(t=l.useContext(c))||(0,u.J0)(!1),t),r=R(w.UseNavigateStable),a=l.useRef(!1);return g(()=>{a.current=!0}),l.useCallback(function(e,t){void 0===t&&(t={}),a.current&&("number"==typeof e?n.navigate(e):n.navigate(e,s({fromRouteId:r},t)))},[n,r])}():function(){v()||(0,u.J0)(!1);let e=l.useContext(c),{basename:t,future:n,navigator:r}=l.useContext(h),{matches:a}=l.useContext(f),{pathname:i}=m(),o=JSON.stringify((0,u.cm)(a,n.v7_relativeSplatPath)),s=l.useRef(!1);return g(()=>{s.current=!0}),l.useCallback(function(n,a){if(void 0===a&&(a={}),!s.current)return;if("number"==typeof n){r.go(n);return}let l=(0,u.pC)(n,JSON.parse(o),i,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:(0,u.RQ)([t,l.pathname])),(a.replace?r.replace:r.push)(l,a.state,a)},[t,r,o,i,e])}()}var b=((r=b||{}).UseBlocker="useBlocker",r.UseRevalidator="useRevalidator",r.UseNavigateStable="useNavigate",r);var w=((a=w||{}).UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a);function R(e){var t;let n;let r=(t=0,(n=l.useContext(f))||(0,u.J0)(!1),n),a=r.matches[r.matches.length-1];return a.route.id||(0,u.J0)(!1),a.route.id}let S={},x=(e,t,n)=>{var r,a;return r=0,void(!S[a="⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e)+"` future flag to opt-in early. "+("For more information, see "+n)+"."]&&(S[a]=!0,console.warn(a)))};function P(e,t){(null==e?void 0:e.v7_startTransition)===void 0&&x("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(null==e?void 0:e.v7_relativeSplatPath)===void 0&&(!t||!t.v7_relativeSplatPath)&&x("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(void 0===t.v7_fetcherPersist&&x("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===t.v7_normalizeFormMethod&&x("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),void 0===t.v7_partialHydration&&x("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===t.v7_skipActionErrorRevalidation&&x("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function _(e){let{basename:t="/",children:n=null,location:r,navigationType:a=u.aU.Pop,navigator:i,static:o=!1,future:c}=e;v()&&(0,u.J0)(!1);let f=t.replace(/^\/*/,"/"),d=l.useMemo(()=>({basename:f,navigator:i,static:o,future:s({v7_relativeSplatPath:!1},c)}),[f,c,i,o]);"string"==typeof r&&(r=(0,u.cP)(r));let{pathname:m="/",search:g="",hash:y="",state:b=null,key:w="default"}=r,R=l.useMemo(()=>{let e=(0,u.Zn)(m,f);return null==e?null:{location:{pathname:e,search:g,hash:y,state:b,key:w},navigationType:a}},[f,m,g,y,b,w,a]);return null==R?null:l.createElement(h.Provider,{value:d},l.createElement(p.Provider,{children:n,value:R}))}(o||(o=n.t(l,2))).startTransition;var U=((i=U||{})[i.pending=0]="pending",i[i.success=1]="success",i[i.error=2]="error",i);new Promise(()=>{})}}]);
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* React Router DOM v6.28.
|
|
13
|
+
* React Router DOM v6.28.1
|
|
14
14
|
*
|
|
15
15
|
* Copyright (c) Remix Software Inc.
|
|
16
16
|
*
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* React Router v6.28.
|
|
24
|
+
* React Router v6.28.1
|
|
25
25
|
*
|
|
26
26
|
* Copyright (c) Remix Software Inc.
|
|
27
27
|
*
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkrspress_doc_template=self.webpackChunkrspress_doc_template||[]).push([["212"],{3585:function(){},6069:function(){},4623:function(){},1536:function(){}}]);
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="/home/runner/work/rspress/rspress/packages/cli/bin/node_modules:/home/runner/work/rspress/rspress/packages/cli/node_modules:/home/runner/work/rspress/rspress/packages/node_modules:/home/runner/work/rspress/rspress/node_modules:/home/runner/work/rspress/node_modules:/home/runner/work/node_modules:/home/runner/node_modules:/home/node_modules:/node_modules:/home/runner/work/rspress/rspress/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../rspress/bin/rspress.js" "$@"
|
|
14
|
+
exec "$basedir/node" --experimental-fetch "$basedir/../rspress/bin/rspress.js" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../rspress/bin/rspress.js" "$@"
|
|
16
|
+
exec node --experimental-fetch "$basedir/../rspress/bin/rspress.js" "$@"
|
|
17
17
|
fi
|