@sinytra/wiki-previewer 0.1.95 → 0.1.96
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/.next/BUILD_ID +1 -1
- package/.next/app-build-manifest.json +72 -65
- package/.next/app-path-routes-manifest.json +3 -2
- package/.next/build-manifest.json +2 -2
- package/.next/prerender-manifest.json +11 -11
- package/.next/routes-manifest.json +9 -0
- package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route.js +1 -0
- package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route.js.nft.json +1 -0
- package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page.js +2 -2
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page.js +2 -2
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page.js +2 -2
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page.js +2 -2
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page.js +2 -2
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/[locale]/page.js +2 -2
- package/.next/server/app/[locale]/page.js.nft.json +1 -1
- package/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found/page.js +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +2 -2
- package/.next/server/app/_not-found.rsc +4 -4
- package/.next/server/app/favicon.ico/route.js +1 -1
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next/server/app/opengraph-image/route_client-reference-manifest.js +1 -1
- package/.next/server/app/robots.txt/route.js +2 -2
- package/.next/server/app/robots.txt/route.js.nft.json +1 -1
- package/.next/server/app/robots.txt/route_client-reference-manifest.js +1 -1
- package/.next/server/app/sitemap.xml/route.js +2 -2
- package/.next/server/app/sitemap.xml/route.js.nft.json +1 -1
- package/.next/server/app/sitemap.xml/route_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +3 -2
- package/.next/server/chunks/2423.js +1 -0
- package/.next/server/chunks/2574.js +66 -0
- package/.next/server/chunks/2967.js +1 -0
- package/.next/server/chunks/2998.js +3 -0
- package/.next/server/chunks/3040.js +1 -0
- package/.next/server/chunks/318.js +1 -0
- package/.next/server/chunks/4404.js +35 -0
- package/.next/server/chunks/4706.js +1 -0
- package/.next/server/chunks/5610.js +1 -0
- package/.next/server/chunks/6266.js +1 -1
- package/.next/server/chunks/{8958.js → 6746.js} +3 -3
- package/.next/server/chunks/7542.js +1 -1
- package/.next/server/chunks/7910.js +1 -0
- package/.next/server/chunks/825.js +1 -0
- package/.next/server/chunks/8350.js +1 -1
- package/.next/server/chunks/8584.js +10 -0
- package/.next/server/chunks/9190.js +1 -0
- package/.next/server/chunks/9656.js +157 -0
- package/.next/server/middleware-manifest.json +10 -10
- package/.next/server/pages/404.html +2 -2
- package/.next/server/pages/500.html +1 -1
- package/.next/server/pages/_error.js +2 -2
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/0XyegQr7BcJgQkm31qj5W/_buildManifest.js +1 -0
- package/.next/static/chunks/253-c6d12570ec51216b.js +1 -0
- package/.next/static/chunks/349-a9ebfa6bf85ef1c1.js +1 -0
- package/.next/static/chunks/{409-66d1c976bcaa8a00.js → 409-9c1f3189eaf6432e.js} +1 -1
- package/.next/static/chunks/621-71a2215be11ad54d.js +1 -0
- package/.next/static/chunks/67-a4d2761f9f80a28a.js +1 -0
- package/.next/static/chunks/714-a6b53baa6dfd91ba.js +2 -0
- package/.next/static/chunks/736-625b8ccdd7ba1d68.js +1 -0
- package/.next/static/chunks/77-934f1420d431b3bb.js +1 -0
- package/.next/static/chunks/835-b9d094e779a24ff8.js +1 -0
- package/.next/static/chunks/845-2a1323f13e03afc2.js +1 -0
- package/.next/static/chunks/942-229a422e32d81679.js +1 -0
- package/.next/static/chunks/app/(developers)/api/docs/[slug]/asset/[id]/route-bd2b0120995c30e8.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page-30c1e3debf5616c2.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/{page-55ea01f3cc9eb6b8.js → page-40db7d1c9d0c3b3b.js} +1 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/error-9816f5919e791e47.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/{page-8a46f0c33ecced03.js → page-7095f5e128078355.js} +1 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/page-c293908c29c1b6c4.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/layout-88b5d365db9a6e79.js +1 -0
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/{page-82b2a8ad63a75ded.js → page-719960307da0a24f.js} +1 -1
- package/.next/static/chunks/app/[locale]/layout-d95356d77407b3f8.js +1 -0
- package/.next/static/chunks/app/[locale]/page-9080aa492599c415.js +1 -0
- package/.next/static/chunks/app/error-3753bf093585c3f9.js +1 -0
- package/.next/static/chunks/app/not-found-60642b865d54ecf2.js +1 -0
- package/bin/entrypoint.mjs +16 -12
- package/package.json +1 -1
- package/.next/server/chunks/4011.js +0 -66
- package/.next/server/chunks/4179.js +0 -1
- package/.next/server/chunks/6181.js +0 -1
- package/.next/server/chunks/6248.js +0 -157
- package/.next/server/chunks/6911.js +0 -1
- package/.next/server/chunks/6967.js +0 -1
- package/.next/server/chunks/7141.js +0 -3
- package/.next/server/chunks/8002.js +0 -1
- package/.next/server/chunks/872.js +0 -1
- package/.next/server/chunks/8910.js +0 -1
- package/.next/server/chunks/9484.js +0 -44
- package/.next/server/chunks/9552.js +0 -1
- package/.next/static/67_qGrKTD0T0OBapSH_gJ/_buildManifest.js +0 -1
- package/.next/static/chunks/295-b342998dc214ccb0.js +0 -1
- package/.next/static/chunks/327-fe7bdb4bf8ea0a4d.js +0 -1
- package/.next/static/chunks/626-3143ad333aa4f3c8.js +0 -1
- package/.next/static/chunks/627-b7177d13fb973e65.js +0 -1
- package/.next/static/chunks/681-c11fad63db4540fd.js +0 -1
- package/.next/static/chunks/77-7b330a7b53601edb.js +0 -1
- package/.next/static/chunks/781-92f765649a36851e.js +0 -2
- package/.next/static/chunks/796-b632432c26fb683d.js +0 -1
- package/.next/static/chunks/802-8d29fee6a25f76d8.js +0 -1
- package/.next/static/chunks/832-e525de928ef20f83.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page-d07c641358e8e06b.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/error-96bebb2367f46c24.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/page-8630ead88225a0be.js +0 -1
- package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/layout-712771c8566a76d7.js +0 -1
- package/.next/static/chunks/app/[locale]/layout-69f07cdc70c4eec4.js +0 -1
- package/.next/static/chunks/app/[locale]/page-a94a8604962e3366.js +0 -1
- package/.next/static/chunks/app/error-0910a30db7ae99f9.js +0 -1
- package/.next/static/chunks/app/not-found-cea963ecd72d5a1e.js +0 -1
- /package/.next/static/{67_qGrKTD0T0OBapSH_gJ → 0XyegQr7BcJgQkm31qj5W}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
exports.id=3040,exports.ids=[3040],exports.modules={390:(a,b,c)=>{"use strict";c.d(b,{A:()=>f,o:()=>d});let d="minecraft";function e(a){if(0===a.length)return null;if(a.includes(":")){let b=a.split(":");return{namespace:b[0],path:b[1]}}return{namespace:"minecraft",path:a}}let f={toString:function(a){return`${a.namespace}:${a.path}`},parse:e,extractPath:function(a){return e(a)?.path??a}}},1165:(a,b,c)=>{"use strict";c.d(b,{default:()=>e});var d=c(3978);(0,d.registerClientReference)(function(){throw Error("Attempted to call CookieConsentContext() from the server but CookieConsentContext is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/cookies/CookieConsentContextProvider.tsx","CookieConsentContext"),(0,d.registerClientReference)(function(){throw Error("Attempted to call CATEGORY_EXPERIENCE() from the server but CATEGORY_EXPERIENCE is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/cookies/CookieConsentContextProvider.tsx","CATEGORY_EXPERIENCE"),(0,d.registerClientReference)(function(){throw Error("Attempted to call EMBED_SERVICE_COOKIES() from the server but EMBED_SERVICE_COOKIES is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/cookies/CookieConsentContextProvider.tsx","EMBED_SERVICE_COOKIES");let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/components/cookies/CookieConsentContextProvider.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/cookies/CookieConsentContextProvider.tsx","default")},3474:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(3978).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/components/navigation/header/HeaderBase.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/navigation/header/HeaderBase.tsx","default")},6612:(a,b,c)=>{"use strict";c.d(b,{default:()=>g});var d=c(792),e=c(70569),f=c(53147);function g({unfix:a,children:b}){let c=(0,e.useRef)(null),[g,h]=(0,e.useState)(!1);return(0,d.jsx)("header",{className:(0,f.cn)(!a&&"fixed left-0 w-[100vw]","z-50 border-b border-tertiary bg-primary-alt",!a&&g&&"motion-reduce:transition-none"),ref:c,children:b})}},7484:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(3978).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/components/navigation/search/MobileDocsSearch.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/navigation/search/MobileDocsSearch.tsx","default")},10112:(a,b,c)=>{"use strict";c.d(b,{Toaster:()=>d});let d=(0,c(3978).registerClientReference)(function(){throw Error("Attempted to call Toaster() from the server but Toaster is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/packages/ui/src/components/sonner.tsx","Toaster")},17018:(a,b,c)=>{"use strict";c.d(b,{M$:()=>i,MZ:()=>e,cT:()=>h,gZ:()=>g,sw:()=>f});var d=c(390);function e(a,b){return h(b.id)??(null!=b.page_ref?f(b.page_ref,a):null)}function f(a,b){let c="slug"in b?b.slug:b.id;return`/${b.locale}/project/${c}/${b.version}/content/${a}`}function g(a,b){return`/${a}/project/${b}/latest`}function h(a){let b=d.A.parse(a);return b?.namespace===d.o&&a.startsWith(d.o+":")?`https://minecraft.wiki/w/${b.path}`:null}function i(a,b){return`/${b.locale}/project/${b.id}/${b.version}/docs/${a}`}},17555:(a,b,c)=>{"use strict";c.d(b,{GL:()=>h,ww:()=>g,YE:()=>i,default:()=>j});var d=c(792),e=c(70569);c(16839),c(11965),c(84932);var f=c(37486);let g=(0,e.createContext)(null),h="experience",i="yt_embeds";function j({children:a}){let[b,c]=(0,e.useState)(!0),[h,i]=(0,e.useState)(!1);return(0,f.c)("CookieConsent"),(0,d.jsx)(g.Provider,{value:{enableCookieManagement:b,hasConsentToEmbeddedVideos:h},children:a})}},18511:(a,b,c)=>{"use strict";c.d(b,{default:()=>j});var d=c(792),e=c(76001),f=c(53147),g=c(4397),h=c(54935);function i({width:a,height:b,className:c}){return(0,d.jsx)("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",width:a||24,height:b||24,className:c,viewBox:"0 0 24 24",children:(0,d.jsx)("path",{fill:"currentColor",d:"M19.27 5.33C17.94 4.71 16.5 4.26 15 4a.1.1 0 0 0-.07.03c-.18.33-.39.76-.53 1.09a16.1 16.1 0 0 0-4.8 0c-.14-.34-.35-.76-.54-1.09c-.01-.02-.04-.03-.07-.03c-1.5.26-2.93.71-4.27 1.33c-.01 0-.02.01-.03.02c-2.72 4.07-3.47 8.03-3.1 11.95c0 .02.01.04.03.05c1.8 1.32 3.53 2.12 5.24 2.65c.03.01.06 0 .07-.02c.4-.55.76-1.13 1.07-1.74c.02-.04 0-.08-.04-.09c-.57-.22-1.11-.48-1.64-.78c-.04-.02-.04-.08-.01-.11c.11-.08.22-.17.33-.25c.02-.02.05-.02.07-.01c3.44 1.57 7.15 1.57 10.55 0c.02-.01.05-.01.07.01c.11.09.22.17.33.26c.04.03.04.09-.01.11c-.52.31-1.07.56-1.64.78c-.04.01-.05.06-.04.09c.32.61.68 1.19 1.07 1.74c.03.01.06.02.09.01c1.72-.53 3.45-1.33 5.25-2.65c.02-.01.03-.03.03-.05c.44-4.53-.73-8.46-3.1-11.95c-.01-.01-.02-.02-.04-.02M8.52 14.91c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.84 2.12-1.89 2.12m6.97 0c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.83 2.12-1.89 2.12"})})}function j({enableSharing:a,shareData:b,large:c}){let f="undefined"!=typeof navigator&&"function"==typeof navigator.share,j=c?"h-5 w-5":"h-4 w-4 sm:h-5 sm:w-5";return(0,d.jsxs)("div",{className:"flex flex-wrap gap-2 sm:gap-4",children:[(0,d.jsx)(k,{href:"https://github.com/Sinytra",large:c,icon:(0,d.jsx)(h.A,{className:j})}),(0,d.jsx)(k,{href:"https://discord.sinytra.org",large:c,icon:(0,d.jsx)(i,{className:j})}),a&&f&&(0,d.jsxs)(g.$,{onClick:()=>{navigator.share?navigator.share(b).catch(a=>{console.error("Error sharing:",a)}):alert("Sharing is not supported on this browser.")},size:"sm",className:"flex h-8 w-8 items-center justify-center gap-2 sm:h-10 sm:w-auto sm:justify-start sm:px-4",children:[(0,d.jsx)(e.A,{className:"h-5 w-5"}),(0,d.jsx)("span",{className:"hidden sm:inline",children:"Share"})]})]})}function k({href:a,icon:b,large:c,className:e}){return(0,d.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",children:(0,d.jsx)(g.$,{variant:"outline",size:"icon",className:(0,f.cn)(e,c?"h-10 w-10":"h-8 w-8 sm:h-10 sm:w-10"),children:b})})}},18994:(a,b,c)=>{"use strict";c.d(b,{default:()=>A});var d=c(792),e=c(37486),f=c(80127),g=c(96087),h=c(83753),i=c(99762),j=c(91132),k=c(30083),l=c(4397),m=c(70569),n=c(74021),o=c(12824),p=c(51164),q=c(95062),r=c(58446),s=c(83996),t=c(23692),u=c(53147),v=c(83417);function w({result:a}){let b=(0,e.c)("ProjectTypes"),c=(0,e.c)("SearchResultType");return(0,d.jsxs)(r.k,{href:a.href,className:"z-50 flex cursor-pointer flex-row gap-2 rounded-xs border border-neutral-700 bg-primary-alt px-1 py-1.5 text-primary",children:[(0,d.jsx)("div",{className:"size-[48px] shrink-0 overflow-hidden rounded-xs p-1",children:(0,d.jsx)(n.default,{src:a.icon_asset?.src,width:48,height:48,alt:a.project_id,fbIcon:f.A,fixedSize:!0})}),(0,d.jsxs)("div",{className:"flex w-full flex-col justify-between overflow-hidden py-0.5 text-ellipsis [&_span]:overflow-hidden [&_span]:text-ellipsis",children:[(0,d.jsx)("span",{children:a.title}),"project"==a.entry_type?(0,d.jsx)("span",{className:"text-secondary",children:(0,d.jsx)("span",{className:"text-secondary",children:b(a.project_type)})}):(0,d.jsx)("div",{className:"flex flex-col gap-1",children:(0,d.jsx)("span",{className:"text-secondary",children:a.project_name})})]}),(0,d.jsx)("div",{className:"mx-1",children:(0,d.jsx)(v.A,{variant:a.entry_type,children:c(a.entry_type)})})]})}function x(){let a=(0,e.c)("DocsSearchBar");return(0,d.jsxs)("div",{className:"z-50 flex h-16 flex-row items-center justify-center gap-2 rounded-xs border border-neutral-700 bg-primary-alt px-1 py-1.5 text-secondary",children:[(0,d.jsx)(g.A,{className:"mr-2 h-5 w-5 animate-spin"}),a("loading")]})}function y(){let a=(0,e.c)("DocsSearchBar");return(0,d.jsx)("div",{className:"z-50 flex h-16 flex-row items-center justify-center gap-2 rounded-xs border border-neutral-700 bg-primary-alt px-1 py-1.5 text-secondary",children:a("no_results")})}function z({locale:a,isOpen:b,setOpen:c}){let f=(0,e.c)("DocsSearchBar"),g=(0,m.useRef)(null),[k,l]=(0,m.useState)(""),[n,q]=(0,m.useState)(null),[r,v]=(0,m.useState)(!1),{project:z}=(0,m.useContext)(t.o),[A,B]=(0,m.useState)(null!=z),C=(0,o.YQ)(async b=>{let c=!0;setTimeout(()=>{k&&c&&v(!0)},500),q(await s.A.searchWiki(b,a,A&&z?z.id:null)),c=!1,v(!1)},200),D=A?h.A:i.A;return(0,d.jsx)(p.A,{nodeRef:g,in:b,timeout:200,classNames:"fade",unmountOnExit:!0,children:(0,d.jsx)("div",{ref:g,className:"fixed top-0 right-0 bottom-0 left-0 z-50 h-[100vh] w-full overflow-hidden bg-primary",children:(0,d.jsxs)("div",{className:"innerFadeContainer flex flex-col gap-4 p-4",children:[(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("button",{onClick:()=>c(!1),children:(0,d.jsx)(j.A,{className:"absolute top-1/2 left-2 h-5 w-5 -translate-y-1/2 text-secondary"})}),z&&(0,d.jsxs)("button",{className:(0,u.cn)("inset absolute top-1/2 right-2 -translate-y-1/2 rounded-sm","flex flex-row items-center gap-1","border border-secondary bg-secondary px-1.5 py-1"),onClick:()=>B(!A),children:[(0,d.jsx)(D,{className:"size-3.5 stroke-2 text-primary"}),(0,d.jsx)("span",{className:"text-xs",children:f(`scope.${A?"local":"global"}`)})]}),(0,d.jsx)("input",{type:"text",value:k,onChange:a=>(a=>{if(l(a),!a||0===a.length){q(null),v(!1);return}return C(a)})(a.target.value),className:"w-full cursor-pointer rounded-xs border border-neutral-700 bg-primary-alt p-2 px-8 text-center text-sm text-ellipsis placeholder:text-neutral-500 focus:cursor-text focus:outline-1 focus:outline-secondary",placeholder:f("placeholder"),autoFocus:!0})]}),r&&(0,d.jsx)(x,{}),!r&&n&&(n.hits.length>0?(0,d.jsxs)("div",{className:"slim-scrollbar flex h-[90vh] flex-col gap-2 overflow-y-auto",children:[...n.hits.map(a=>(0,d.jsx)(w,{result:a},a.id))]}):(0,d.jsx)(y,{}))]})})})}function A({locale:a}){let[b,c]=(0,m.useState)(!1);return(0,q.usePathname)(),(0,d.jsxs)("div",{className:"sm:hidden",children:[(0,d.jsx)(l.$,{variant:"ghost",size:"icon",onClick:()=>c(!b),children:(0,d.jsx)(k.A,{className:"h-4 w-4 text-[var(--vp-c-text-1)]"})}),(0,d.jsx)(z,{isOpen:b,setOpen:c,locale:a})]})}},21527:(a,b,c)=>{"use strict";c.d(b,{A:()=>i});var d=c(47730),e=c(26047),f=c(43129),g=c(54432),h=c.n(g);function i({keys:a,children:b}){let c=(0,e.A)();return(0,d.jsx)(f.A,{messages:h()(c,a),children:b})}},23692:(a,b,c)=>{"use strict";c.d(b,{default:()=>g,o:()=>f});var d=c(792),e=c(70569);let f=(0,e.createContext)(null);function g({children:a}){let[b,c]=(0,e.useState)(null);return(0,d.jsx)(f.Provider,{value:{project:b,setProject:c},children:a})}},24152:(a,b,c)=>{"use strict";c.d(b,{XO:()=>i,a8:()=>k});var d=c(3192),e=c(86337),f=c(47790),g=c(85140);let h=(0,d.A)({locales:f.A.getNextIntlLocales(),defaultLocale:g.Xn,localePrefix:{mode:"always",prefixes:f.A.getPathPrefixes()}}),{Link:i,redirect:j,usePathname:k,useRouter:l}=(0,e.A)(h)},25408:a=>{a.exports={menuLink:"style_menuLink__ooJPH",active:"style_active__WMh_I",socialLinks:"style_socialLinks__QqMWr"}},34133:(a,b,c)=>{Promise.resolve().then(c.bind(c,35528)),Promise.resolve().then(c.bind(c,34998)),Promise.resolve().then(c.bind(c,81696)),Promise.resolve().then(c.t.bind(c,82563,23)),Promise.resolve().then(c.bind(c,17555)),Promise.resolve().then(c.bind(c,62811)),Promise.resolve().then(c.bind(c,6612)),Promise.resolve().then(c.bind(c,48247)),Promise.resolve().then(c.bind(c,50246)),Promise.resolve().then(c.bind(c,86101)),Promise.resolve().then(c.bind(c,18994)),Promise.resolve().then(c.bind(c,23692)),Promise.resolve().then(c.bind(c,18511)),Promise.resolve().then(c.bind(c,79370))},34918:(a,b,c)=>{var d={"./cs_CZ.json":[24104,4104],"./de_DE.json":[36413,6413],"./en_US.json":[9882,9882],"./es_ES.json":[94915,4915],"./fr_FR.json":[84895,4895],"./hu_HU.json":[53765,3765],"./it_IT.json":[99785,9785],"./ja_JP.json":[96126,6126],"./ko_KR.json":[87388,7388],"./ms_Arab.json":[73383,3383],"./ms_MY.json":[40617,617],"./pl_PL.json":[68704,6323],"./ru_RU.json":[97045,7045],"./sv_SE.json":[60700,700],"./tr_TR.json":[42351,2351],"./uk_UA.json":[93721,3721],"./zh_CN.json":[77708,7708],"./zh_TW.json":[70140,140]};function e(a){if(!c.o(d,a))return Promise.resolve().then(()=>{var b=Error("Cannot find module '"+a+"'");throw b.code="MODULE_NOT_FOUND",b});var b=d[a],e=b[0];return c.e(b[1]).then(()=>c.t(e,19))}e.keys=()=>Object.keys(d),e.id=34918,a.exports=e},38560:a=>{a.exports={menuLink:"style_menuLink__ooJPH",active:"style_active__WMh_I",socialLinks:"style_socialLinks__QqMWr"}},46891:(a,b,c)=>{"use strict";c.d(b,{A:()=>h});var d=c(792),e=c(51164),f=c(70569),g=c(53147);function h({isVisible:a,className:b,children:c}){let h=(0,f.useRef)(null);return(0,d.jsx)("div",{children:(0,d.jsx)(e.A,{nodeRef:h,in:a,timeout:200,classNames:"fade",unmountOnExit:!0,onEnter:function(){document.querySelectorAll("html, body").forEach(a=>a.classList.add("navScrollLock"))},onExited:function(){document.querySelectorAll("html, body").forEach(a=>a.classList.remove("navScrollLock"))},children:(0,d.jsx)("div",{ref:h,className:(0,g.cn)("fixed right-0 bottom-0 left-0 w-full overflow-y-auto px-8 py-0",b),children:(0,d.jsx)("div",{className:"innerFadeContainer mx-auto my-0 max-w-72 pt-8 pb-24",children:c})})})})}},47790:(a,b,c)=>{"use strict";c.d(b,{A:()=>g});var d=c(17160);function e(){return{en:{name:"English",file:"en_US",icon:d.US},de:{name:"Deutsch",file:"de_DE",icon:d.DE},fr:{name:"Fran\xe7ais",file:"fr_FR",icon:d.FR},es:{name:"Espa\xf1ol",file:"es_ES",crowdin:"es-ES",icon:d.ES},it:{name:"Italiano",file:"it_IT",icon:d.IT},cs:{name:"Čeština",file:"cs_CZ",icon:d.CZ},hu:{name:"Magyar",file:"hu_HU",icon:d.HU},pl:{name:"Polski",file:"pl_PL",icon:d.PL},ms:{name:"Bahasa Melayu",file:"ms_MY",icon:d.MY},"ms-Arab":{name:"بهاس ملايو",file:"ms_Arab",prefix:"ms_Ar",icon:d.MY,rtl:!0},tr:{name:"T\xfcrk\xe7e",file:"tr_TR",icon:d.TR},sv:{name:"Svenska",file:"sv_SE",crowdin:"sv-SE",icon:d.SE},uk:{name:"Українська",file:"uk_UA",icon:d.UA},ru:{name:"Русский",file:"ru_RU",icon:d.RU},ja:{name:"日本語",file:"ja_JP",icon:d.JP},ko:{name:"한국어",file:"ko_KR",icon:d.KR},"zh-CN":{name:"简体中文",file:"zh_CN",prefix:"zh_cn",icon:d.CN},"zh-TW":{name:"繁體中文",file:"zh_TW",prefix:"zh_tw",icon:d.TW}}}function f(a){return Object.entries(e()).find(b=>b[0]===a||b[1].prefix===a)?.[1]}let g={getAvailableLocales:e,getLanguagePaths:function(){return Object.entries(e()).map(a=>a[1].prefix||a[0])},getNextIntlLocales:function(){return Object.keys(e())},getPathPrefixes:function(){return Object.entries(e()).filter(a=>void 0!==a[1].prefix).reduce((a,b)=>({...a,[b[0]]:"/"+b[1].prefix}),{})},getForUrlParam:f,getNextIntlInternal:function(a){return Object.entries(e()).find(b=>b[0]===a||b[1].prefix===a)?.[0]||a},getCrowdinLanguageId:function(a){let b=Object.entries(e()).find(b=>b[0]===a||b[1].prefix===a);return b?.[1].crowdin||b?.[0]},isRTL:function(a){return f(a)?.rtl||!1},actualLocale:function(a){if(!a||"en_us"===a)return null;let b=f(a);return b?.file.toLowerCase()??null}}},48247:(a,b,c)=>{"use strict";c.d(b,{default:()=>i});var d=c(792),e=c(89766),f=c(46891),g=c(70569),h=c(95062);function i({children:a}){let[b,c]=(0,g.useState)(!1);return(0,h.usePathname)(),(0,d.jsxs)("div",{className:"sm:hidden",children:[(0,d.jsx)(e.A,{active:b,setOpen:c}),(0,d.jsx)(f.A,{className:"top-nav-height bg-primary",isVisible:b,children:a})]})}},50246:(a,b,c)=>{"use strict";c.d(b,{default:()=>G});var d=c(792),e=c(25408),f=c.n(e),g=c(99762),h=c(85912),i=c(3301),j=c(47297),k=c(4397),l=c(24152),m=c(51087),n=c(70569),o=c(53147),p=c(78654),q=c(54349),r=c(30083),s=c(74030),t=c(78269);s.bL,s.l9;let u=s.ZL;s.bm;let v=n.forwardRef(({className:a,...b},c)=>(0,d.jsx)(s.hJ,{ref:c,className:(0,o.cn)("fixed inset-0 z-50 bg-black/80 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",a),...b}));v.displayName=s.hJ.displayName,n.forwardRef(({className:a,children:b,...c},e)=>(0,d.jsxs)(u,{children:[(0,d.jsx)(v,{}),(0,d.jsxs)(s.UC,{ref:e,className:(0,o.cn)("border-tertiary fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-primary p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:rounded-lg",a),...c,children:[b,(0,d.jsxs)(s.bm,{className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary data-[state=open]:text-secondary",children:[(0,d.jsx)(t.A,{className:"h-4 w-4"}),(0,d.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})).displayName=s.UC.displayName,n.forwardRef(({className:a,...b},c)=>(0,d.jsx)(s.hE,{ref:c,className:(0,o.cn)("text-lg leading-none font-semibold tracking-tight",a),...b})).displayName=s.hE.displayName,n.forwardRef(({className:a,...b},c)=>(0,d.jsx)(s.VY,{ref:c,className:(0,o.cn)("text-sm text-secondary",a),...b})).displayName=s.VY.displayName;let w=n.forwardRef(({className:a,...b},c)=>(0,d.jsx)(q.uB,{ref:c,className:(0,o.cn)("bg-primary-alt text-primary-alt flex h-full w-full flex-col overflow-hidden rounded-md",a),...b}));w.displayName=q.uB.displayName;let x=n.forwardRef(({className:a,...b},c)=>(0,d.jsxs)("div",{className:"border-tertiary flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,d.jsx)(r.A,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,d.jsx)(q.uB.Input,{ref:c,className:(0,o.cn)("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-secondary disabled:cursor-not-allowed disabled:opacity-50",a),...b})]}));x.displayName=q.uB.Input.displayName;let y=n.forwardRef(({className:a,...b},c)=>(0,d.jsx)(q.uB.List,{ref:c,className:(0,o.cn)("max-h-[300px] overflow-x-hidden overflow-y-auto",a),...b}));y.displayName=q.uB.List.displayName;let z=n.forwardRef((a,b)=>(0,d.jsx)(q.uB.Empty,{ref:b,className:"py-6 text-center text-sm",...a}));z.displayName=q.uB.Empty.displayName;let A=n.forwardRef(({className:a,...b},c)=>(0,d.jsx)(q.uB.Group,{ref:c,className:(0,o.cn)("overflow-hidden p-1 text-primary [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-secondary",a),...b}));A.displayName=q.uB.Group.displayName,n.forwardRef(({className:a,...b},c)=>(0,d.jsx)(q.uB.Separator,{ref:c,className:(0,o.cn)("-mx-1 h-px bg-border",a),...b})).displayName=q.uB.Separator.displayName;let B=n.forwardRef(({className:a,...b},c)=>(0,d.jsx)(q.uB.Item,{ref:c,className:(0,o.cn)("data-[selected=true]:text-primary-alt relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected='true']:bg-secondary",a),...b}));B.displayName=q.uB.Item.displayName;var C=c(37486),D=c(85140);function E({flag:a,className:b}){return(0,d.jsx)(a,{width:24,className:(0,o.cn)("rounded-[3px]",b)})}var F=c(47790);function G({locale:a,locales:b,mobile:c,minimal:e}){let q=(0,C.c)("LanguageSelect"),r=F.A.getAvailableLocales(),s=b?Object.entries(r).filter(([a,c])=>a==D.Xn||b.includes(a)||b.includes(`${a}_${a}`)||c.prefix&&b.includes(c.prefix)).reduce((a,[b,c])=>(a[b]=c,a),{}):r,t=Object.keys(s),u=(0,l.a8)(),v=(0,m.rd)(),G=F.A.getNextIntlInternal(a),H=t.includes(G),I=F.A.getForUrlParam(H?a:D.Xn),J=H?G:D.Xn,K=[J,...t.filter(a=>a!=J)],[L,M]=(0,n.useState)(J),[N,O]=(0,n.useState)(!1);return(0,d.jsx)("div",{className:(0,o.cn)(e&&"w-full",!c&&!e&&f().socialLinks),children:(0,d.jsx)("div",{className:(0,o.cn)(e&&"w-full"),children:(0,d.jsxs)(p.Popover,{open:N,onOpenChange:O,children:[(0,d.jsx)(p.PopoverTrigger,{asChild:!0,children:e?(0,d.jsxs)("button",{className:"test-center flex h-8 w-full items-center justify-start rounded-sm border-none bg-transparent px-2 py-0 text-sm whitespace-nowrap ring-offset-background placeholder:text-secondary hover:bg-secondary focus:outline-hidden sm:h-7 sm:w-fit sm:max-w-32 sm:min-w-24 [&>svg:last-child]:hidden",children:[(0,d.jsx)(g.A,{className:"mr-2.5 size-3.5 shrink-0"}),(0,d.jsxs)("div",{className:"mx-auto inline-flex gap-2 sm:hidden",children:[(0,d.jsx)(E,{className:"rounded-xs!",flag:I.icon}),(0,d.jsx)("span",{className:"line-clamp-1 text-sm text-ellipsis",children:I.name})]}),(0,d.jsx)("span",{className:"line-clamp-1 hidden text-sm text-ellipsis sm:block",children:I.name})]}):(0,d.jsxs)(k.$,{variant:"outline",role:"combobox","aria-expanded":N,className:"justify-between border-none bg-transparent px-2 py-1",children:[(0,d.jsx)(h.A,{className:"h-5 w-5"}),c&&(0,d.jsxs)("div",{className:"mr-2 ml-3 inline-flex gap-2",children:[(0,d.jsx)(E,{className:"rounded-xs!",flag:I.icon}),I.name]}),(0,d.jsx)(i.A,{"data-state":N?"open":"closed",className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 data-[state=open]:rotate-180","aria-hidden":"true"})]})}),(0,d.jsx)(p.PopoverContent,{align:c?"start":"end",onOpenAutoFocus:a=>a.preventDefault(),className:(0,o.cn)("pointer-events-auto! p-0",!c&&"w-48 sm:w-48",e&&"w-[var(--radix-popover-trigger-width)]"),children:(0,d.jsxs)(w,{value:L,defaultValue:L,children:[(0,d.jsx)(x,{placeholder:q("placeholder")}),(0,d.jsxs)(y,{className:"overscroll-contain [scrollbar-color:var(--background-color-inverse-secondary)_var(--background-color-primary)]",children:[(0,d.jsx)(z,{children:q("no_results")}),(0,d.jsxs)(A,{children:[...K.map(a=>{let{name:b,icon:c,prefix:e}=s[a],f=e||a;return(0,d.jsxs)(B,{value:f,className:(0,o.cn)("inline-flex w-full items-center justify-start gap-3 hover:bg-secondary hover:text-primary-alt",L==f&&"pointer-events-none"),onSelect:a=>{M(a===L?"":a),O(!1);let b=u.split("/");b[0]=a,v.replace("/"+b.join("/"))},children:[(0,d.jsx)(E,{flag:c})," ",b,(0,d.jsx)(j.A,{className:(0,o.cn)("ml-auto h-4 w-4",L===f?"opacity-100":"opacity-0")})]},a)})]})]})]})})]})})})}},54935:(a,b,c)=>{"use strict";c.d(b,{A:()=>e});var d=c(792);function e({width:a,height:b,className:c}){return(0,d.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:a,height:b,className:c,children:[(0,d.jsx)("title",{children:"GitHub"}),(0,d.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"})]})}},56060:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(3978).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/components/navigation/LanguageSelect.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/navigation/LanguageSelect.tsx","default")},56834:(a,b,c)=>{"use strict";c.d(b,{default:()=>e});var d=c(3978);let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/components/util/SocialButtons.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/util/SocialButtons.tsx","default");(0,d.registerClientReference)(function(){throw Error("Attempted to call SocialButton() from the server but SocialButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/util/SocialButtons.tsx","SocialButton")},57530:(a,b,c)=>{"use strict";c.d(b,{GE:()=>j,XO:()=>k});var d=c(67778),e=c(35577),f=c(16807),g=c(50148),h=c(57870);let i=(0,d.A)({locales:g.A.getNextIntlLocales(),defaultLocale:h.Xn,localePrefix:{mode:"always",prefixes:g.A.getPathPrefixes()}});function j(a){let b=g.A.getNextIntlInternal(a);(0,f.I)(b)}let{Link:k,redirect:l,usePathname:m,useRouter:n}=(0,e.A)(i)},57810:(a,b,c)=>{"use strict";c.d(b,{default:()=>e});var d=c(3978);(0,d.registerClientReference)(function(){throw Error("Attempted to call SearchContext() from the server but SearchContext is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/navigation/search/SearchContext.tsx","SearchContext");let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/components/navigation/search/SearchContext.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/navigation/search/SearchContext.tsx","default")},61835:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(3978).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/components/navigation/search/DocsSearchBar.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/navigation/search/DocsSearchBar.tsx","default")},62811:(a,b,c)=>{"use strict";c.d(b,{default:()=>h});var d=c(792),e=c(70569),f=c(17555),g=c(37486);function h(){let a=(0,g.c)("ManageCookiesButton"),b=(0,e.useContext)(f.ww);return b&&b.enableCookieManagement?(0,d.jsx)("button",{type:"button","data-cc":"show-preferencesModal",className:"text-sm",children:a("text")}):null}},66769:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(3978).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/components/cookies/ManageCookiesButton.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/cookies/ManageCookiesButton.tsx","default")},71378:(a,b,c)=>{"use strict";c.d(b,{E:()=>h});var d=c(47730);c(60907);var e=c(69219),f=c(27297);let g=(0,e.F)("inline-flex items-center rounded-sm border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden",{variants:{variant:{default:"text-inverse border-transparent bg-primary hover:bg-primary/80",secondary:"border-secondary-alt text-secondary-alt bg-secondary hover:bg-secondary/80",destructive:"text-primary-alt border-transparent bg-destructive hover:bg-destructive/80",outline:"text-primary"}},defaultVariants:{variant:"default"}});function h({className:a,variant:b,...c}){return(0,d.jsx)("div",{className:(0,f.cn)(g({variant:b}),a),...c})}},74021:(a,b,c)=>{"use strict";c.d(b,{default:()=>i});var d=c(792),e=c(70569),f=c(78222),g=c(53147),h=c(20127);function i({src:a,alt:b,width:c,height:i,fbWidth:j,fbHeight:k,className:l,title:m,strokeWidth:n=1,fixedSize:o,wrapper:p,fbIcon:q=f.A,fallback:r=(0,d.jsx)(q,{strokeWidth:n,className:(0,g.cn)(l,"text-secondary opacity-20"),width:j||c,height:k||i}),...s}){let[t,u]=(0,e.useState)(!1);return(0,d.jsxs)("span",{title:m,style:o?{width:`${c}px`,height:`${i}px`}:void 0,...p,className:(0,g.cn)("shrink-0 overflow-hidden",p?.className),children:[a&&!t&&(0,d.jsx)(h.default,{src:a,alt:b||"",width:c,height:i,className:l,unoptimized:!0,onError:()=>u(!0),...s}),(!a||t)&&r]})}},78654:(a,b,c)=>{"use strict";c.d(b,{Popover:()=>h,PopoverContent:()=>j,PopoverTrigger:()=>i});var d=c(792),e=c(70569),f=c(72381),g=c(53147);let h=f.bL,i=f.l9,j=e.forwardRef(({className:a,align:b="center",sideOffset:c=4,...e},h)=>(0,d.jsx)(f.ZL,{children:(0,d.jsx)(f.UC,{ref:h,align:b,sideOffset:c,className:(0,g.cn)("border-tertiary bg-primary-alt text-primary-alt z-50 w-72 rounded-sm border p-4 shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",a),...e})}));j.displayName=f.UC.displayName},79370:(a,b,c)=>{"use strict";c.d(b,{Toaster:()=>f});var d=c(792),e=c(18093);let f=({...a})=>(0,d.jsx)(e.l$,{theme:"dark",className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-primary group-[.toaster]:text-primary group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-secondary",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-inverse",cancelButton:"group-[.toast]:bg-primary-alt group-[.toast]:text-secondary"}},...a})},81313:(a,b,c)=>{"use strict";c.d(b,{A:()=>j});var d=c(3833),e=c(73735),f=c(50148),g=c(66092),h=c.n(g),i=c(57870);let j=(0,e.A)(async({requestLocale:a})=>{let b=await a??i.Xn,e=f.A.getForUrlParam(b);e||(console.error("Locale not found:",b),(0,d.notFound)());let g=(await c(34918)(`./${e.file}.json`)).default,j=(await c.e(9882).then(c.t.bind(c,9882,19))).default;return{locale:b,messages:h()(j,g)}})},82690:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>N,generateStaticParams:()=>M});var d=c(47730),e=c(38560),f=c.n(e),g=c(71378),h=c(56060),i=c(3474),j=c(97486),k=c(27297),l=c(72035),m=c(87119),n=c(61835),o=c(88845),p=c(56834),q=c(7484),r=c(21527),s=c(20804);function t({href:a,children:b}){return(0,d.jsx)(j.M,{href:a,className:`${f().menuLink} px-1 text-base font-medium text-primary first:pl-0 sm:px-1.5 lg:px-2.5`,children:b})}function u({href:a,children:b}){return(0,d.jsx)(j.M,{href:a,className:`${f().menuLink} border-b border-[var(--vp-c-divider)] py-3 text-base font-normal text-primary`,children:b})}function v({locale:a,minimal:b,unfix:c}){let e=s.A.isPreview(),f=(0,l.A)("NavigationHeader");return(0,d.jsx)(i.default,{unfix:c,children:(0,d.jsxs)("div",{className:(0,k.cn)("pointer-events-auto! z-50 mx-auto flex h-nav max-w-[88rem] flex-row items-center justify-between gap-1 px-4 py-1 sm:h-fit sm:flex-nowrap sm:px-8 sm:whitespace-nowrap",b&&"my-2"),children:[(0,d.jsxs)("div",{className:"mr-auto flex flex-row items-center gap-3 sm:gap-4",children:[(0,d.jsx)(j.M,{href:"/",children:(0,d.jsxs)("span",{className:"inline-flex items-center gap-1 align-bottom text-base font-medium text-primary",children:[(0,d.jsx)(m.A,{className:"mr-1 h-4 w-4"}),f("title")]})}),e&&(0,d.jsx)(g.E,{className:"hidden sm:block",variant:"secondary",children:f("badge.preview")}),!e&&(0,d.jsx)(g.E,{variant:"outline",className:"hidden border-neutral-600 font-normal text-secondary sm:block",children:f("badge.beta")})]}),!b&&!e&&(0,d.jsx)(r.A,{keys:["DocsSearchBar","ProjectTypes","SearchResultType"],children:(0,d.jsx)(n.default,{locale:a})}),(0,d.jsxs)("div",{className:"ml-auto hidden flex-row flex-wrap items-center justify-end sm:flex sm:flex-nowrap sm:justify-start",children:[(0,d.jsxs)("nav",{className:"flex flex-row",children:[(0,d.jsx)(t,{href:"/",children:f("link.home")}),!e&&!b&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(t,{href:"/browse",children:f("link.browse")}),(0,d.jsx)(t,{href:"/about",children:f("link.about")})]})]}),!b&&(0,d.jsx)(r.A,{keys:["LanguageSelect"],children:(0,d.jsx)(h.default,{locale:a})})]}),(0,d.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[!b&&!e&&(0,d.jsx)(r.A,{keys:["DocsSearchBar","ProjectTypes","SearchResultType"],children:(0,d.jsx)(q.default,{locale:a})}),(0,d.jsx)(o.default,{children:(0,d.jsxs)("nav",{className:"flex flex-col gap-2",children:[(0,d.jsx)(u,{href:"/",children:f("link.home")}),!e&&!b&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(u,{href:"/browse",children:f("link.browse")}),(0,d.jsx)(u,{href:"/about",children:f("link.about")})]}),!b&&(0,d.jsx)(r.A,{keys:["LanguageSelect"],children:(0,d.jsx)(h.default,{mobile:!0,locale:a})}),(0,d.jsx)("hr",{}),(0,d.jsx)("div",{className:"mx-auto mt-2",children:(0,d.jsx)(p.default,{large:!0})})]})})]})]})})}c(60907);var w=c(66769),x=c(23056);function y({center:a}){let b=(0,l.A)("NavigationFooter");return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)("div",{className:(0,k.cn)("flex flex-col items-center md:basis-96",!a&&"md:items-start"),children:[(0,d.jsxs)("span",{className:"inline-flex items-center font-medium text-primary",children:[(0,d.jsx)(m.A,{className:"mr-2 h-4 w-4"}),b("title")]}),(0,d.jsxs)("p",{className:"mt-6 text-sm",children:["\xa9 ",new Date().getFullYear()," The Sinytra Project."]}),(0,d.jsx)("div",{className:"mt-auto pt-3 font-normal! text-secondary",children:(0,d.jsx)(r.A,{keys:["ManageCookiesButton"],children:(0,d.jsx)(w.default,{})})})]})})}function z({title:a,href:b,component:c=j.M}){return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)("ul",{children:(0,d.jsx)("li",{children:(0,d.jsx)(c,{className:"rounded-md py-0.5 text-sm text-secondary outline-hidden transition-colors hover:text-secondary-alt",href:b,children:a})})})})}function A({title:a,className:b,children:c}){return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)("div",{className:`flex flex-col gap-4 ${b}`,children:[(0,d.jsx)("p",{className:"mb-2 text-sm font-medium text-primary",children:a}),c]})})}function B(){let a=(0,l.A)("NavigationFooter");return(0,d.jsxs)("div",{className:"ml-auto grid w-full grid-cols-4 gap-8 sm:px-8",children:[(0,d.jsxs)(A,{title:a("links.navigation.title"),children:[(0,d.jsx)(z,{title:a("links.navigation.home"),href:"/"}),(0,d.jsx)(z,{title:a("links.navigation.browse"),href:"/browse"}),(0,d.jsx)(z,{title:a("links.navigation.dev"),href:"/dev"})]}),(0,d.jsxs)(A,{title:a("links.links.title"),children:[(0,d.jsx)(z,{title:"Discord",href:"https://discord.sinytra.org"}),(0,d.jsx)(z,{title:"GitHub",href:"https://github.com/Sinytra"}),(0,d.jsx)(z,{title:"Donate",href:"https://opencollective.com/sinytra"})]}),(0,d.jsxs)(A,{title:a("links.resources.title"),children:[(0,d.jsx)(z,{title:a("links.resources.blog"),href:"/blog",component:x.k}),(0,d.jsx)(z,{title:a("links.resources.status"),href:"https://status.moddedmc.org"}),(0,d.jsx)(z,{title:a("links.resources.translate"),href:"https://crowdin.com/project/sinytra-wiki"})]}),(0,d.jsxs)(A,{title:a("links.about.title"),children:[(0,d.jsx)(z,{title:a("links.about.tos"),href:"/about/tos"}),(0,d.jsx)(z,{title:a("links.about.privacy"),href:"/about/privacy"}),(0,d.jsx)(z,{title:a("links.about.contact"),href:"/about/help"})]})]})}function C(){let a=s.A.isPreview();return(0,d.jsx)("footer",{className:"mx-auto flex w-full flex-col items-center justify-center border-t border-tertiary bg-primary-alt pt-10 pb-6 sm:pt-12",children:(0,d.jsxs)("div",{className:"flex w-full max-w-[90rem] flex-col gap-8 px-8 text-secondary",children:[(0,d.jsxs)("div",{className:(0,k.cn)("flex w-full flex-wrap justify-center gap-y-10 sm:gap-y-8 md:flex-row md:flex-nowrap",!a&&"md:justify-between"),children:[(0,d.jsx)(y,{center:a}),!a&&(0,d.jsx)(B,{})]}),(0,d.jsx)("div",{className:"text-center",children:(0,d.jsx)("span",{className:"text-xs text-secondary",children:"NOT AN OFFICIAL MINECRAFT WEBSITE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT."})})]})})}var D=c(57530),E=c(50148),F=c(43129),G=c(10112),H=c(1165),I=c(32418),J=c(54432),K=c.n(J),L=c(57810);async function M(){return E.A.getLanguagePaths().map(a=>({locale:a}))}async function N(a){let b=await a.params,{children:c}=a;(0,D.GE)(b.locale);let e=E.A.isRTL(b.locale),f=await (0,I.A)();return(0,d.jsx)(F.A,{locale:b.locale,messages:K()(f,"CookieConsent"),children:(0,d.jsx)(H.default,{children:(0,d.jsxs)(L.default,{children:[(0,d.jsxs)("div",{className:e?"rtl":"",dir:e?"rtl":"",children:[(0,d.jsx)(v,{locale:b.locale}),(0,d.jsx)("div",{children:c}),(0,d.jsx)(C,{})]}),(0,d.jsx)(G.Toaster,{toastOptions:{style:{background:"var(--background-color-primary-alt)",fontStyle:"var(--text-sm)"}}})]})})})}},83417:(a,b,c)=>{"use strict";c.d(b,{A:()=>h});var d=c(792),e=c(18329);c(70569);var f=c(53147);let g=(0,e.F)("inline-flex items-center rounded-sm border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden",{variants:{variant:{project:"border-info bg-secondary text-secondary-alt hover:bg-secondary/80",documentation:"border-secondary-alt bg-secondary text-secondary-alt hover:bg-secondary/80",content:"border-warning bg-secondary text-secondary-alt hover:bg-secondary/80"}}});function h({className:a,variant:b,...c}){return(0,d.jsx)("div",{className:(0,f.cn)(g({variant:b}),a),...c})}},83996:(a,b,c)=>{"use strict";c.d(b,{A:()=>t});var d=c(51477),e=c(54420),f=c(17018),g=c(85140),h=c(390),i=c(91045),j=c(84173);let k={getBuiltinAssetSource:function(){return process.env.NEXT_PUBLIC_BUILTIN_ASSET_SOURCES??null}},l={getAssetResource:function(a){let b=k.getBuiltinAssetSource();if(!b)return null;let c=new URL(b);c.pathname+="/.assets/"+a.namespace+"/"+a.path+(a.path.includes(".")?"":".png");let d=(0,i.A)(c.toString());return null===d?null:{id:h.A.toString(a),src:d}}};var m=c(47790);function n(a,b){return"locale"==a?m.A.actualLocale(b):"version"==a?function(a){return a==g.j4?null:a}(b):b}function o(a,b){let c=process.env.NEXT_PUBLIC_BACKEND_SERVICE_URL;if(!c)throw Error("Missing env variable NEXT_PUBLIC_BACKEND_SERVICE_URL");let d=(0,j.cT)(b,n);return`${c}/api/v1/${a}?${d}`}let p={constructApiUrl:o},q={getRemoteAsset:function(a,b){let c=h.A.parse(a);if(!c)return null;let d=function(a,b,c){if(!c||b.namespace===h.o){let b=a.includes("/")?a:function(a){let b=h.A.parse(a);return b?h.A.toString({namespace:b.namespace,path:"item/"+b.path}):a}(a),c=h.A.parse(b);return c?l.getAssetResource(c):null}return null}(a,c,b);return null!=d?d:function(a,{id:b,version:c}){let d=p.constructApiUrl(`docs/${b}/asset/${a}`,{version:c});return{id:a,src:d}}(a,b)}};async function r(a,b,c){let e=process.env.NEXT_PUBLIC_SEARCH_ENDPOINT,h=process.env.NEXT_PUBLIC_SEARCH_COLLECTION,i=process.env.NEXT_PUBLIC_SEARCH_API_KEY;if(!e||!h||!i)return{total:0,hits:[]};let j=new d._t({nodes:[{url:e}],apiKey:i,connectionTimeoutSeconds:2,timeoutSeconds:5,numRetries:3,retryIntervalSeconds:1,cacheSearchResultsForSeconds:120}),k={q:a,query_by:"title,item_ids,project_id,project_name,page_ref",filter_by:c?`project_id:=${c}`:void 0,per_page:8,page:1},l=await s(j,h,k);if(!l||0===l.found||!l.hits?.length)return null;let m=l.hits.map(a=>{var c,d;let e=a.document,h=(c=e,d=b,"project"===c.entry_type?(0,f.gZ)(d,c.project_id):"documentation"===c.entry_type?(0,f.M$)(c.page_ref,{id:c.project_id,locale:d,version:g.j4}):"content"===c.entry_type?(0,f.sw)(c.page_ref,{locale:d,version:g.j4,id:c.project_id}):(console.error("Unknown search result",c),"")),i=function(a,b){if("project"===a.entry_type&&null!=a.project_icon_url)return{src:a.project_icon_url,id:a.project_id};if(null==a.icon)return null;let c={id:a.project_id,locale:b,version:g.j4};return q.getRemoteAsset(a.icon,c)}(e,b);return{...e,href:h,icon_asset:i}});return{total:l.found,hits:m}}async function s(a,b,c){try{return await a.collections(b).documents().search(c,{})}catch(a){if(a instanceof e.RequestMalformed)console.error("Bad search params:",a.httpBody);else if(a instanceof e.RequestUnauthorized)console.error("Auth failed — check apiKey");else if(a instanceof e.ObjectNotFound)console.error("Collection does not exist");else if(a instanceof e.ServerError)console.error("Typesense server error",a.httpStatus);else if(a instanceof e.TypesenseError)console.error("Typesense error",a.httpStatus,a.httpBody);else throw a;return null}}let t={searchWiki:async function a(a,b,c){try{let d=await r(a,b,c);if(null!=d)return d}catch(a){console.error("Error running search",a)}return{total:0,hits:[]}}}},84173:(a,b,c)=>{"use strict";function d(a,b){if(null==b)throw Error(`Missing environment variable ${a}`);return b}function e(a,b){let c=new URLSearchParams;if(a){for(let d in a)if(null!=a[d]){let e=b?b(d,a[d]):a[d];e&&c.set(d,e)}}return c.toString()}c.d(b,{cT:()=>e,no:()=>d})},85140:(a,b,c)=>{"use strict";c.d(b,{Xn:()=>e,j4:()=>d});let d="latest",e="en"},86101:(a,b,c)=>{"use strict";c.d(b,{default:()=>x});var d=c(792),e=c(12824),f=c(70569),g=c(74021),h=c(80127),i=c(96087),j=c(83753),k=c(99762),l=c(30083),m=c(95062),n=c(53147),o=c(37486),p=c(58446),q=c(83996),r=c(23692),s=c(83417);function t({result:a}){let b=(0,o.c)("ProjectTypes"),c=(0,o.c)("SearchResultType");return(0,d.jsxs)(p.k,{href:a.href,className:(0,n.cn)("z-50 flex cursor-pointer flex-row gap-2 bg-primary-alt px-1 py-1.5 text-primary","first:rounded-t-sm last:rounded-b-sm hover:bg-tertiary"),children:[(0,d.jsx)("div",{className:"size-[48px] shrink-0 overflow-hidden rounded-xs p-1",children:(0,d.jsx)(g.default,{src:a.icon_asset?.src,width:48,height:48,alt:a.project_id,fbIcon:h.A,fixedSize:!0})}),(0,d.jsxs)("div",{className:"flex w-full flex-col justify-between overflow-hidden py-0.5 text-ellipsis [&_span]:overflow-hidden [&_span]:text-ellipsis",children:[(0,d.jsx)("span",{children:a.title}),"project"==a.entry_type?(0,d.jsx)("span",{className:"text-secondary",children:b(a.project_type)}):(0,d.jsx)("div",{className:"flex flex-row gap-2",children:(0,d.jsx)("span",{className:"text-secondary",children:a.project_name})})]}),(0,d.jsx)("div",{className:"mx-1",children:(0,d.jsx)(s.A,{variant:a.entry_type,children:c(a.entry_type)})})]})}function u(){let a=(0,o.c)("DocsSearchBar");return(0,d.jsx)("div",{className:"z-50 flex h-16 flex-row items-center justify-center gap-2 bg-primary-alt px-1 py-1.5 font-light text-secondary first:rounded-t-sm last:rounded-b-sm",children:a("no_results")})}function v(){let a=(0,o.c)("DocsSearchBar");return(0,d.jsxs)("div",{className:"z-50 flex h-16 flex-row items-center justify-center gap-2 bg-primary-alt px-1 py-1.5 font-light text-secondary first:rounded-t-sm last:rounded-b-sm",children:[(0,d.jsx)(i.A,{className:"mr-2 h-5 w-5 animate-spin"}),a("loading")]})}function w({canChangeScope:a,visible:b,total:c}){let e=(0,o.c)("DocsSearchBar");return(0,d.jsxs)("div",{className:(0,n.cn)("flex w-full flex-row items-center justify-between bg-primary-alt p-2 text-secondary",b>0?"rounded-b-sm":"rounded-sm"),children:[(0,d.jsx)("div",{className:"text-sm font-light",children:e.rich("results",{highlight:a=>(0,d.jsx)("span",{className:"font-normal",children:a}),count:b,total:c})}),(0,d.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[a&&(0,d.jsx)("span",{className:"text-sm",children:e.rich("switch",{kbd:a=>(0,d.jsx)("kbd",{children:a})})}),(0,d.jsx)("span",{className:"text-sm",children:e.rich("close",{kbd:a=>(0,d.jsx)("kbd",{children:a})})})]})]})}function x({locale:a}){let b=(0,o.c)("DocsSearchBar"),[c,g]=(0,f.useState)(""),[h,i]=(0,f.useState)(null),[p,s]=(0,f.useState)(!1),{project:x}=(0,f.useContext)(r.o),[y,z]=(0,f.useState)(null!=x),A=(0,e.YQ)(async b=>{let d=!0;setTimeout(()=>{c&&d&&s(!0)},500),i(await q.A.searchWiki(b,a,y&&x?x.id:null)),d=!1,s(!1)},200),[B,C]=(0,f.useState)(!1),D=(0,f.useRef)(null);(0,m.usePathname)();let[E,F]=(0,f.useState)(!0),G=y?j.A:k.A;return(0,d.jsxs)("div",{className:(0,n.cn)("relative mx-2 hidden w-full transition-none duration-200 ease-[cubic-bezier(.27,.17,.43,.98)]",E&&"md:focus-within:transition-[max-width] lg:transition-[max-width]","md:flex md:max-w-sm md:focus-within:fixed md:focus-within:left-1/2 md:focus-within:max-w-lg md:focus-within:-translate-x-1/2 md:focus-within:shadow-lg","lg:max-w-[40rem] lg:focus-within:static lg:focus-within:flex lg:focus-within:max-w-2xl lg:focus-within:translate-x-0"),children:[(0,d.jsxs)("div",{className:"relative w-full",children:[(0,d.jsx)(l.A,{className:"inset absolute top-1/2 left-2 h-4 w-4 -translate-y-1/2 text-neutral-500"}),x&&B&&(0,d.jsxs)("div",{className:(0,n.cn)("inset absolute top-1/2 left-8 -translate-y-1/2 rounded-sm","flex flex-row items-center gap-1","border border-secondary bg-secondary px-1 py-[1.5px]"),children:[(0,d.jsx)(G,{className:"size-3.5 stroke-2 text-primary"}),(0,d.jsx)("span",{className:"text-xs",children:b(`scope.${y?"local":"global"}`)})]}),(0,d.jsx)("input",{type:"text",value:c,ref:D,className:(0,n.cn)("w-full cursor-pointer rounded-sm border border-secondary bg-primary-alt px-8 py-[0.2rem]","text-center text-sm text-ellipsis placeholder:text-neutral-500","focus:cursor-text focus:border-secondary-alt focus:shadow-md focus:outline-none"),onChange:a=>(a=>{if(g(a),!a||0===a.length){i(null),s(!1);return}return A(a)})(a.target.value),placeholder:b("placeholder"),onFocus:()=>{C(!0),i(null),document.querySelectorAll("html, body").forEach(a=>a.classList.add("scrollLock"))},onBlur:()=>{C(!1),s(!1),g(""),document.querySelectorAll("html, body").forEach(a=>a.classList.remove("scrollLock"))},onKeyDown:a=>{null!=x&&"Tab"===a.key&&(a.preventDefault(),z(!y)),"Escape"===a.key&&a.target.blur()}})]}),B&&(0,d.jsxs)("div",{onMouseDown:a=>a.preventDefault(),className:(0,n.cn)("absolute top-8 flex w-full flex-col divide-y divide-tertiary rounded-sm border","border-secondary bg-primary-alt shadow-lg"),children:[p&&(0,d.jsx)(v,{}),!p&&h&&h.hits.map(a=>(0,d.jsx)(t,{result:a},a.id)),!p&&h&&0===h.hits.length&&(0,d.jsx)(u,{}),(0,d.jsx)(w,{canChangeScope:null!=x,visible:h?.hits?.length??0,total:h?.total??0})]})]})}},88845:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(3978).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/components/navigation/header/MobileNav.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/navigation/header/MobileNav.tsx","default")},89766:(a,b,c)=>{"use strict";c.d(b,{A:()=>h});var d=c(792),e=c(53147),f=c(97176),g=c.n(f);function h({active:a,setOpen:b}){return(0,d.jsx)("button",{type:"button",className:(0,e.cn)(g().MobileNavHamburger,a&&g().active),onClick:()=>b(!a),children:(0,d.jsxs)("span",{className:g().container,children:[(0,d.jsx)("span",{className:g().top}),(0,d.jsx)("span",{className:g().middle}),(0,d.jsx)("span",{className:g().bottom})]})})}},92277:(a,b,c)=>{Promise.resolve().then(c.bind(c,98671)),Promise.resolve().then(c.bind(c,42532)),Promise.resolve().then(c.bind(c,79882)),Promise.resolve().then(c.t.bind(c,12537,23)),Promise.resolve().then(c.bind(c,1165)),Promise.resolve().then(c.bind(c,66769)),Promise.resolve().then(c.bind(c,3474)),Promise.resolve().then(c.bind(c,88845)),Promise.resolve().then(c.bind(c,56060)),Promise.resolve().then(c.bind(c,61835)),Promise.resolve().then(c.bind(c,7484)),Promise.resolve().then(c.bind(c,57810)),Promise.resolve().then(c.bind(c,56834)),Promise.resolve().then(c.bind(c,10112))},97176:a=>{a.exports={container:"style_container__ie1qJ",MobileNavHamburger:"style_MobileNavHamburger__IuJku",top:"style_top__Bisv2",middle:"style_middle__87xDf",bottom:"style_bottom__Gyyoh",active:"style_active__7qQ7x"}},97486:(a,b,c)=>{"use strict";c.d(b,{M:()=>g});var d=c(47730),e=c(60907),f=c(57530);let g=(0,e.forwardRef)(function({prefetch:a=!1,...b},c){return(0,d.jsx)(f.XO,{prefetch:a,...b,ref:c})})}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
exports.id=318,exports.ids=[318],exports.modules={2066:(a,b,c)=>{Promise.resolve().then(c.bind(c,15064)),Promise.resolve().then(c.bind(c,16211)),Promise.resolve().then(c.bind(c,35528)),Promise.resolve().then(c.bind(c,34998)),Promise.resolve().then(c.bind(c,81696)),Promise.resolve().then(c.t.bind(c,82563,23)),Promise.resolve().then(c.t.bind(c,30910,23)),Promise.resolve().then(c.bind(c,89086)),Promise.resolve().then(c.bind(c,45384)),Promise.resolve().then(c.bind(c,77364)),Promise.resolve().then(c.bind(c,60013)),Promise.resolve().then(c.bind(c,62134)),Promise.resolve().then(c.bind(c,89763)),Promise.resolve().then(c.bind(c,6382)),Promise.resolve().then(c.bind(c,20218)),Promise.resolve().then(c.bind(c,10524)),Promise.resolve().then(c.bind(c,11921)),Promise.resolve().then(c.bind(c,72803)),Promise.resolve().then(c.bind(c,12589)),Promise.resolve().then(c.bind(c,89630)),Promise.resolve().then(c.bind(c,43290)),Promise.resolve().then(c.bind(c,71441)),Promise.resolve().then(c.bind(c,27497))},5307:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(3978).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/components/docs/LinkAwareHeading.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/docs/LinkAwareHeading.tsx","default")},6382:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>m});var d=c(792),e=c(70569);class f extends e.Component{componentDidMount(){this.addListener()}componentDidUpdate(){!this.state.listenerActive&&this.props.visible&&this.addListener(),this.state.listenerActive&&!this.props.visible&&this.removeListener()}componentWillUnmount(){this.removeListener()}render(){return(0,d.jsx)("div",{className:"minetip-tooltip",style:{display:this.props.visible&&this.state.mouseMoved?"block":"none",top:this.state.yPosition+this.props.offsetY,left:this.state.xPosition+this.props.offsetX},children:(0,d.jsx)("span",{className:"font-minecraft",children:this.props.children})})}constructor(...a){super(...a),this.state={xPosition:0,yPosition:0,mouseMoved:!1,listenerActive:!1},this.onMouseMove=({clientX:a,clientY:b})=>{this.setState({xPosition:a,yPosition:b,mouseMoved:!0})},this.addListener=()=>{document.addEventListener("mousemove",this.onMouseMove),this.setState({listenerActive:!0})},this.removeListener=()=>{document.removeEventListener("mousemove",this.onMouseMove),this.setState({xPosition:-100,yPosition:-100,listenerActive:!1})}}}function g(a){let[b,c]=(0,e.useState)(!1);return(0,d.jsxs)("div",{onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[(0,d.jsxs)(f,{visible:b,offsetX:15,offsetY:-33,children:[a.id,a.tag&&(0,d.jsxs)("p",{className:"m-0! mt-1! text-xs text-secondary text-shadow-none",children:["#",a.tag]})]}),a.children]})}var h=c(17018),i=c(89630),j=c(89763),k=c(58446),l=c(53147);function m({noTooltip:a,noLink:b,src:c,count:f,ctx:m,tag:n,...o}){let[p,q]=(0,e.useState)(0),r=(0,e.useMemo)(()=>c[p],[p,c]);if((0,e.useContext)(i.M),c.length<1)return null;let s=()=>{let a=m?(0,h.MZ)(m,r):(0,h.cT)(r.id),c=(0,d.jsxs)("div",{...o,className:(0,l.cn)("relative shrink-0",o.className),children:[(0,d.jsx)(j.default,{noTitle:!0,asset:r.asset,alt:r.name??r.id,className:"sharpRendering"}),f&&f>1&&(0,d.jsx)("span",{className:"sharpRendering absolute right-0 bottom-0 z-10 text-left font-minecraft text-base leading-1 text-white",style:{textShadow:"2px 2px 0 #3F3F3F"},children:f})]});return a&&!b?(0,d.jsx)(k.k,{href:a,rel:"noreferrer",children:c}):c};return a?(0,d.jsx)(s,{}):(0,d.jsx)(g,{id:r.name||r.id,tag:n,children:(0,d.jsx)(s,{})})}},8367:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(3978).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/components/navigation/search/LocalSearchSetter.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/navigation/search/LocalSearchSetter.tsx","default")},8955:(a,b,c)=>{Promise.resolve().then(c.bind(c,34998)),Promise.resolve().then(c.bind(c,39379))},10524:(a,b,c)=>{"use strict";c.d(b,{default:()=>l});var d=c(792),e=c(84498),f=c(4397),g=c(53147),h=c(70569),i=c(17555),j=c(11965),k=c(37486);function l({id:a,children:b}){let c=(0,k.c)("VideoEmbedPlaceholder"),l=(0,h.useContext)(i.ww);if(!l||!l.enableCookieManagement||l?.hasConsentToEmbeddedVideos)return b;let m=a&&a.includes("?")?a.split("?")[0]:a,n=`https://img.youtube.com/vi/${a}/maxresdefault.jpg`;return(0,d.jsxs)("div",{className:(0,g.cn)("video-embed relative flex rounded-sm border border-tertiary bg-primary-alt text-center"),children:[(0,d.jsx)("img",{src:n,alt:"thumbnail",width:560}),(0,d.jsxs)("div",{className:"absolute-center flex h-full w-full flex-col items-center justify-center gap-5 bg-primary/80",children:[(0,d.jsx)(e.A,{className:"size-12 text-secondary-alt",strokeWidth:1.5}),(0,d.jsx)("div",{className:"text-xl",children:(0,d.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,d.jsx)("span",{children:c("title")}),(0,d.jsx)("span",{className:"text-sm text-secondary",children:c("description")})]})}),(0,d.jsxs)("div",{className:"mt-2 flex flex-row flex-wrap justify-center gap-3",children:[(0,d.jsx)(f.$,{onClick:()=>void j.gB(i.YE,i.GL),children:c("accept")}),m&&(0,d.jsx)("a",{href:`https://www.youtube.com/watch?v=${m}`,target:"_blank",rel:"noreferrer",children:(0,d.jsx)(f.$,{variant:"outline",children:c("watch")})})]})]})]})}},10560:(a,b,c)=>{"use strict";c.r(b),c.d(b,{Tabs:()=>e,TabsContent:()=>h,TabsList:()=>f,TabsTrigger:()=>g});var d=c(3978);let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call Tabs() from the server but Tabs is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/packages/ui/src/components/tabs.tsx","Tabs"),f=(0,d.registerClientReference)(function(){throw Error("Attempted to call TabsList() from the server but TabsList is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/packages/ui/src/components/tabs.tsx","TabsList"),g=(0,d.registerClientReference)(function(){throw Error("Attempted to call TabsTrigger() from the server but TabsTrigger is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/packages/ui/src/components/tabs.tsx","TabsTrigger"),h=(0,d.registerClientReference)(function(){throw Error("Attempted to call TabsContent() from the server but TabsContent is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/packages/ui/src/components/tabs.tsx","TabsContent")},10611:(a,b,c)=>{"use strict";c.d(b,{A:()=>a0});var d=c(79710),e=c(27952),f=c(54473),g=c(57870);c(3460);let h={searchProjects:async function a(a){return f.A.resolveApiCall(()=>f.A.sendSimpleRequest("browse",{parameters:a,userAuth:!1,cache:{tags:["search-projects"],revalidate:15*g.kB.ONE_MINUTE}}))}};var i=c(87059),j=c(40162),k=c(23913);let l={getAssetResource:function(a){let b=k.A.getBuiltinAssetSource();if(!b)return null;let c=new URL(b);c.pathname+="/.assets/"+a.namespace+"/"+a.path+(a.path.includes(".")?"":j.h);let d=(0,i.A)(c.toString());return null===d?null:{id:e.A.toString(a),src:d}}};var m=c(76910);let n={getBuiltinAsset:function(a,b,c){if(!c||b.namespace===e.o){let b=a.includes("/")?a:function(a){let b=e.A.parse(a);return b?e.A.toString({namespace:b.namespace,path:"item/"+b.path}):a}(a),c=e.A.parse(b);return c?l.getAssetResource(c):null}return null},getRemoteAssetURL:function(a,{id:b,version:c}){let d=m.A.constructApiUrl(`docs/${b}/asset/${a}`,{version:c});return{id:a,src:d}},getRemoteItemAssetURL:function(a,{id:b,version:c}){let d=m.A.constructApiUrl(`docs/${b}/asset-item/${a}`,{version:c});return{id:a,src:d}}};async function o(a,b,c,d){return f.A.sendSimpleRequest(b,{parameters:c,cache:{tags:[`backend:${a}`]},...d})}async function p(a){let b=await f.A.resolveApiCall(a);return!b.success||null==b.data||"error"in b.data?null:b.data}let q={getBackendLayout:async function({id:a,version:b,locale:c}){return p(()=>o(a,`docs/${a}/tree`,{version:b,locale:c}))},getAsset:async function(a,b){return n.getRemoteAssetURL(e.A.toString(a),b)},getItemAsset:async function(a,b){return n.getRemoteItemAssetURL(e.A.toString(a),b)},getDocsPage:async function(a,b,{id:c,version:e,locale:f}){return await p(()=>o(c,`docs/${c}/page/${(0,d.U)(a)}`,{version:e,locale:f,optional:b?"true":null},{cache:!1}))},getDocsIndexPage:async function({id:a,version:b,locale:c}){return await p(()=>o(a,`docs/${a}/index`,{version:b,locale:c},{cache:!1}))},getProject:async function({id:a,version:b}){return p(()=>o(a,`docs/${a}`,{version:b}))},searchProjects:async function(a,b,c,d){let e=await h.searchProjects({query:a,page:b.toString(),types:c,sort:d});return e.success?e.data:null},getProjectRecipe:async function(a,{id:b,version:c,locale:d}){return p(()=>o(b,`content/${b}/recipe/${a}`,{version:c,locale:d}))},getProjectContents:async function({id:a,version:b,locale:c}){return p(()=>o(a,`content/${a}`,{version:b,locale:c},{cache:!1}))},getProjectContentPage:async function(a,{id:b,version:c,locale:d}){return p(()=>o(b,`content/${b}/page/${a}`,{version:c,locale:d},{cache:!1}))},getContentRecipeUsage:async function(a,{id:b,version:c,locale:d}){return p(()=>o(b,`content/${b}/page/${a}/usage`,{version:c,locale:d},{cache:!1}))},getContentRecipeObtaining:async function(a,{id:b,version:c,locale:d}){return p(()=>o(b,`content/${b}/page/${a}/recipes`,{version:c,locale:d},{cache:!1}))},getRecipeType:async function(a,{id:b,version:c,locale:d}){let f=e.A.parse(a)?.namespace==e.o?e.o:b;return p(()=>o(f,`content/${f}/recipe-type/${a}`,{version:c,locale:d}))}};var r=c(80372),s=c(72998),t=c(47730),u=c(5307),v=c(83370),w=c(38600),x=c(88162),y=c(25548),z=c(21527),A=c(87999),B=c(73505);async function C({location:a,...b}){return(0,t.jsx)(A.A,{display:({asset:a})=>(0,t.jsx)(B.default,{asset:a,...b}),location:a,item:!0,...b})}var D=c(20804),E=c(72035),F=c(86092);function G(){let a=(0,E.A)("InteractiveComponentPlaceholder");return(0,t.jsxs)("div",{className:"flex h-64 flex-col items-center justify-center gap-3 rounded-sm border border-tertiary bg-primary-dim",children:[(0,t.jsxs)("span",{className:"flex flex-row items-center gap-2 text-xl opacity-70",children:[(0,t.jsx)(F.A,{className:"size-6"}),a("title")]}),(0,t.jsx)("span",{className:"max-w-md text-center text-secondary opacity-70",children:a("desc")})]})}async function H(a,b){return I({...b,ctx:a})}async function I({id:a,ctx:b}){let c=await (0,v.A)("RecipeUsage");if(D.A.isPreview())return(0,t.jsx)(G,{});let d=await a0.getContentRecipeUsage(a,b);if(!d)return null;let e=d.sort((a,b)=>a.name&&b.name?a.name.localeCompare(b.name):0).map(a=>(0,t.jsx)("li",{className:"first:mt-0",children:(0,t.jsxs)(({children:c})=>null!=a.page_ref?(0,t.jsx)(x.A,{href:(0,y.MZ)(b,a),children:c}):(0,t.jsx)("div",{children:c}),{children:[(0,t.jsx)("div",{className:"inline-flex",children:(0,t.jsx)(C,{location:a.id,ctx:b,className:"mr-1.5!"})}),(0,t.jsx)("span",{children:a.name||a.id})]})},a.id));return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)("span",{children:c(e.length>0?"description":"empty")}),(0,t.jsx)("div",{className:"columns-[20em]",children:(0,t.jsx)(z.A,{keys:["UsageContentList"],children:(0,t.jsx)(w.default,{limit:12,content:e})})})]})}async function J(a){return K({ctx:a})}async function K({ctx:a}){let b=await (0,v.A)("PrefabUsage");return(0,t.jsxs)("div",{children:[(0,t.jsx)(u.default,{id:"usage",children:b("usage")}),D.A.isPreview()?(0,t.jsx)(G,{}):"contentId"in a&&(0,t.jsx)(I,{id:a.contentId,ctx:a})]})}var L=c(50449),M=c(58536);async function N(a,b){return O({...b,ctx:a})}async function O({ctx:a,slots:b,result:c,count:d}){let e=b.slice(0,Math.min(b.length,9)),f=await Promise.all(e.map(async b=>null===b?null:a0.getAsset(b,a))),g=await a0.getAsset(c,a);return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(L.default,{className:"sharpRendering",unoptimized:!0,priority:!0,src:M.default,alt:"background",width:260,height:136}),(0,t.jsx)("div",{className:"absolute top-4 left-4 grid grid-cols-3 gap-1",children:f.map((a,b)=>null!==a?(0,t.jsx)(B.default,{asset:a},b):(0,t.jsx)("div",{},b))}),g&&(0,t.jsx)("div",{className:"absolute top-[42px] left-[194px] flex h-[52px] w-[52px] items-center justify-center",children:(0,t.jsxs)("div",{className:"relative -m-0.5 flex h-[36px] w-[36px] items-center justify-center p-0.5",children:[(0,t.jsx)("div",{children:(0,t.jsx)(B.default,{asset:g})}),d&&d>1&&(0,t.jsx)("span",{className:"sharpRendering absolute right-0 bottom-0 z-10 text-left text-base leading-1 text-white",style:{fontFamily:"Minecraft, sans-serif",textShadow:"2px 2px 0 #3F3F3F"},children:d})]})})]})}var P=c(27527),Q=c(27297),R=c(23056);function S({tag:a,count:b,item:c,ctx:d}){let f=(0,y.MZ)(d,c),g=null!=f?R.k:"div";return(0,t.jsxs)("div",{className:"inline-flex items-center",children:[(0,t.jsxs)("span",{children:[b,"x"]}),(0,t.jsxs)(g,{href:f,className:"inline-flex items-center",children:[(0,t.jsx)("div",{className:"mx-1",children:(0,t.jsx)(P.default,{noTooltip:!0,noLink:!0,src:[c],tag:a})}),(0,t.jsx)("span",{className:(0,Q.cn)("font-medium text-ellipsis text-primary-alt",f&&"underline"),children:c.name||(0,t.jsx)("span",{className:"block max-w-[8rem] overflow-hidden text-ellipsis",children:e.A.extractPath(c.id)})})]})]})}var T=c(69812),U=c(31112);let V={getRecipeTypeName:async function(a){let b=e.A.parse(a);return b&&b.namespace==e.o?(await (0,v.A)("BuiltinRecipeTypes"))(b.path):null}};async function W(a){let b=await a0.getItemAsset(a.id,{id:a.project});return b?{...a,asset:b}:{...a,asset:{id:a.id,src:"nonexistent"}}}async function X(a){return Promise.all(a.map(W))}function Y(a,b,c,d){return`${a}-${b}-${c}-${d?"in":"out"}`}async function Z({recipe:a,type:b,ctx:c}){let d=await a0.getAsset(b.background,c);d||console.warn(`Missing background for recipe type ${b.id}: ${b.background}`);let e=(c,d)=>{let e=(d?b.input_slots:b.output_slots)[c];return e||console.error(`Missing recipe slot for recipe "${a.id}", key "${c}", input: ${d}`),e};return(0,t.jsx)(U.default,{children:(0,t.jsxs)("div",{className:"relative shrink-0",children:[(0,t.jsx)("img",{src:d?.src,alt:d?.id,className:"sharpRendering min-w-fit shrink-0"}),...a.inputs.map(async(b,d)=>{let f=e(b.slot,!0);if(!f)return null;let g=await X(b.items);return(0,t.jsx)(P.default,{src:g,className:"absolute flex shrink-0",ctx:c,style:{left:`${f.x}px`,top:`${f.y}px`},tag:b.tag},Y(a.id,b.slot,d,!0))}),...a.outputs.map(async(b,d)=>{let f=e(b.slot,!1);if(!f)return null;let g=await X(b.items);return(0,t.jsx)(P.default,{src:g,className:"absolute flex shrink-0",count:b.count,ctx:c,style:{left:`${f.x}px`,top:`${f.y}px`},tag:b.tag},Y(a.id,b.slot,d,!1))})]})})}async function $({workbenches:a,ctx:b}){let c=await (0,v.A)("ResolvedProjectRecipe");return(0,t.jsxs)("div",{className:"px-2 py-1",children:[(0,t.jsx)("span",{className:"text-xsm text-secondary",children:c("workbenches")}),(0,t.jsxs)("div",{className:"flex flex-row flex-wrap gap-2 p-2",children:[...a.map(async a=>{let c=await W(a);return(0,t.jsx)(P.default,{src:[c],ctx:b},a.id)})]})]})}async function _({recipe:a,embedded:b,ctx:c}){let d=await (0,v.A)("ResolvedProjectRecipe");if(D.A.isPreview())return(0,t.jsx)(G,{});let e=await a0.getRecipeType(a.type,c);if(!e)return null;let f=a.summary.inputs,g=a.summary.outputs,h=e.type.localized_name||await V.getRecipeTypeName(e.type.id);return(0,t.jsx)("div",{className:"space-y-2! [&>table]:mt-0",children:(0,t.jsx)(z.A,{keys:["ResponsiveTable"],children:(0,t.jsx)(T.default,{embedded:b,expandedBody:e.workbenches.length>0&&(0,t.jsx)("div",{children:(0,t.jsx)($,{workbenches:e.workbenches,ctx:c})}),columns:[{key:"type",label:d("type")},{key:"input",label:d("input")},{key:"output",label:d("output")},{key:"preview",label:d("preview")}],rows:[{type:{className:"align-middle whitespace-nowrap",data:(0,t.jsx)("div",{className:"p-1.5 text-center sm:p-0",children:h})},input:{className:"align-top",data:(0,t.jsx)("ul",{className:"w-max pl-4",children:f.sort((a,b)=>b.count-a.count).map(async({count:a,item:b,tag:d},e)=>(0,t.jsx)("li",{children:(0,t.jsx)(S,{tag:d,count:a,item:await W(b),ctx:c})},e))})},output:{className:"align-top",data:(0,t.jsx)("ul",{className:"w-max max-w-60 pl-4",children:g.sort((a,b)=>b.count-a.count).map(async({count:a,item:b,tag:d},e)=>(0,t.jsx)("li",{children:(0,t.jsx)(S,{tag:d,count:a,item:await W(b),ctx:c})},e))})},preview:{data:(0,t.jsx)("div",{className:"my-2 w-max p-2 sm:p-0",children:(0,t.jsx)(Z,{recipe:a,type:e.type,ctx:c})})}}]})})})}async function aa(a,b){return ab({...b,ctx:a})}async function ab({id:a,ctx:b}){let c=await a0.getProjectRecipe(a,b);return c?(0,t.jsx)(_,{recipe:c,ctx:b}):null}async function ac(a){return"contentId"in a?ad({ctx:a}):null}async function ad({ctx:a}){let b=await (0,v.A)("PrefabObtaining"),c=await a0.getContentRecipeObtaining(a.contentId,a);return(0,t.jsxs)("div",{children:[(0,t.jsx)(u.default,{id:"recipe",children:b("recipe")}),D.A.isPreview()?(0,t.jsx)(G,{}):c?.map(b=>(0,t.jsx)("div",{children:(0,t.jsx)(_,{recipe:b,ctx:a})},b.id))]})}var ae=c(53124);async function af(a,b){return ag({...b,ctx:a})}async function ag(a){return(0,t.jsx)(ae.A,{...a})}var ah=c(60907);let ai=(0,c(69219).F)("relative w-full rounded-lg border p-4 [&>svg]:absolute [&>svg]:top-4 [&>svg]:left-4 [&>svg]:text-primary [&>svg]:rtl:right-4 [&>svg+div]:translate-y-[-3px] [&>svg~*]:pl-7 [&>svg~*]:rtl:pr-7",{variants:{variant:{default:"bg-primary-alt border-[var(--callout-border)] text-primary",destructive:"border-destructive text-[var(--destructive-bright)] [&>svg]:text-destructive",warning:"border-warning text-warning [&>svg]:text-warning",info:"border-blue-400/50 text-blue-300/90 [&>svg]:text-blue-300"}},defaultVariants:{variant:"default"}}),aj=ah.forwardRef(({className:a,variant:b,...c},d)=>(0,t.jsx)("div",{ref:d,role:"alert",className:(0,Q.cn)(ai({variant:b}),a),...c}));aj.displayName="Alert";let ak=ah.forwardRef(({className:a,...b},c)=>(0,t.jsx)("h5",{ref:c,className:(0,Q.cn)("mb-1 leading-none font-medium tracking-tight",a),...b}));ak.displayName="AlertTitle";let al=ah.forwardRef(({className:a,...b},c)=>(0,t.jsx)("div",{ref:c,className:(0,Q.cn)("text-sm [&_p]:leading-relaxed",a),...b}));al.displayName="AlertDescription";var am=c(48613),an=c(26821),ao=c(46320),ap=c(32024);function aq({variant:a="default",title:b,children:c}){let d=(0,E.A)("Callout"),e={default:am.A,info:an.A,warning:ao.A,danger:ap.A},f=e[a]||e.default;return(0,t.jsxs)(aj,{className:"not-prose my-4 bg-primary-alt",variant:"danger"===a?"destructive":a||"default",children:[(0,t.jsx)(f,{className:"h-4 w-4"}),(0,t.jsx)(ak,{children:b||d(a)}),(0,t.jsx)(al,{className:"[&_a]:underline [&_a]:underline-offset-2",children:c})]})}var ar=c(72068),as=c(99372),at=c(31147);async function au({codeblock:a}){let b=await (0,ar.Z)(a,"github-dark"),c=function(a){if(a.length>0){let b=RegExp('title="(?<file>.*)"').exec(a);return b?.groups?.file??a}return null}(b.meta);return(0,t.jsxs)("div",{className:"group relative rounded-sm",children:[(0,t.jsx)("div",{className:(0,Q.cn)("absolute",null==c?"top-1.5 right-1.5 p-1.5":"top-8 right-1 p-1"),children:(0,t.jsx)(z.A,{keys:["CopyButton"],children:(0,t.jsx)(at.CopyButton,{text:b.code})})}),c&&(0,t.jsx)("div",{className:"bg-code-alt text-secondary-alt rounded-sm rounded-b-none px-2.5 py-1.5 font-mono text-sm",children:c}),(0,t.jsx)(as.A,{className:(0,Q.cn)("m-0! rounded-sm",null!==c&&"rounded-t-none"),code:b})]})}var av=c(72266),aw=c(23980),ax=c(10560),ay=c(8255);let az=av.eB.extend({tabs:aw.YO(av.NG)});async function aA(a){let{tabs:b}=(0,av.qX)(a,az);return(0,t.jsx)(aB,{tabs:b})}async function aB(a){let{tabs:b}=a,c=await Promise.all(b.map(a=>(0,ar.Z)(a,ay.A)));return(0,t.jsxs)(ax.Tabs,{defaultValue:b[0]?.meta,children:[(0,t.jsx)(ax.TabsList,{className:"bg-code-alt w-full justify-start rounded-b-none",children:b.map(a=>(0,t.jsx)(ax.TabsTrigger,{value:a.meta,className:"data-[state=active]:bg-code-tab-active px-2 py-1.5 text-sm",children:a.meta},a.meta))}),b.map((a,b)=>(0,t.jsx)(ax.TabsContent,{value:a.meta,className:"mt-0!",children:(0,t.jsx)(as.A,{code:c[b],className:"m-0! rounded-t-none"})},a.meta))]})}function aC(a,b){var c={...b,ctx:a};let{path:d,ctx:e}=c,f=(0,y.M$)(d,e);return(0,t.jsx)(x.A,{...c,href:f})}function aD(a,b){var c={...b,ctx:a};if(c.src&&"string"==typeof c.src&&c.src.startsWith("@")){let a=c.src.substring(1);return delete c.src,(0,t.jsx)(ae.A,{...c,ctx:c.ctx,location:a})}return(0,t.jsx)("img",{...c})}var aE=c(96278);function aF({id:a}){let b=`https://www.youtube-nocookie.com/embed/${a}`;return(0,t.jsx)(z.A,{keys:["VideoEmbedPlaceholder"],children:(0,t.jsx)(aE.default,{id:a,children:(0,t.jsx)("iframe",{className:"video-embed",src:b,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})})})}function aG(a,b,c){return function({ctx:a,links:b,...c}){let d=(0,E.A)("ExtendedLink"),e=null;return c.href&&"string"==typeof c.href&&!(e=(0,y.nm)(a,b,c.href))&&(c.href.startsWith("@")||c.href.startsWith("$")||c.href.startsWith("+"))?(0,t.jsx)("span",{className:"text-destructive",children:c.children??d("not_found")}):(0,t.jsx)(x.A,{...c,href:e?.url??c.href,children:c.children??e?.title??"(not found)"})}({...c,ctx:a,links:b})}async function aH(a,b){return aI({...b,ctx:a})}async function aI(a){let{ctx:b}=a,c=(0,y._s)({slug:b.id,version:b.version||g.j4,locale:b.locale||g.Xn},a.id);return(0,t.jsx)(x.A,{...a,href:c})}async function aJ(a,b){return aK({...b,ctx:a})}async function aK({src:a,ctx:b,...c}){let d=await a0.getAsset(a,b);return d?(0,t.jsx)("audio",{...c,src:d.src}):null}let aL=[s.Os,{isAvailable:()=>null!=process.env.NEXT_PUBLIC_BACKEND_SERVICE_URL,create:()=>q}];function aM(a){return(...b)=>aN(c=>a(c,...b))}async function aN(a){for(let b of aL.filter(a=>a.isAvailable()).map(a=>a.create())){let c=a(b),d=await c;if(d)return d}return null}let aO=aM((a,b)=>a.getProject(b)),aP=aM((a,b)=>a.getBackendLayout(b));async function aQ(a,b){let c=e.A.parse(a);if(!c)return null;let d=n.getBuiltinAsset(a,c,b);return null!=d?d:null==b?null:aN(a=>a.getAsset(c,b))}async function aR(a,b){let c=e.A.parse(a);if(!c)return null;let d=n.getBuiltinAsset(a,c,b);return null!=d?d:null==b?null:aN(a=>a.getItemAsset(c,b))}let aS=aM((a,b,c,d)=>a.getDocsPage(b,c||!1,d)),aT=aM((a,b)=>a.getDocsIndexPage(b));async function aU(a,b,c,d){return a_(await aS(a,b,c)||null,c,d)}async function aV(a,b){return a_(await aT(a)||null,a,b)}let aW=aM((a,b,c,d,e)=>a.searchProjects(b,c,d,e)),aX=aM((a,b)=>a.getProjectContents(b)),aY=aM((a,b,c)=>a.getProjectContentPage(b,c)),aZ=aM((a,b,c)=>a.getContentRecipeObtaining(b,c)),a$=aM((a,b,c)=>a.getContentRecipeUsage(b,c));async function a_(a,b,c){if(a){let d={Asset:ae.u.bind(null,b),Audio:aJ.bind(null,b),CraftingRecipe:N.bind(null,b),ProjectRecipe:aa.bind(null,b),RecipeUsage:H.bind(null,b),h2:u.default,a:aG.bind(null,b,a.links),img:aD.bind(null,b),Callout:aq,CodeHikeCode:au,CodeTabs:aA,VideoEmbed:aF,ModAsset:af.bind(null,b),ContentLink:aH.bind(null,b),DocsLink:aC.bind(null,b)},e=await r.A.renderDocumentationMarkdown(a.content,d,c);return{frontmatter:a.frontmatter,content:e,edit_url:a.edit_url,properties:a.properties,links:a.links}}return null}let a0={getProject:aO,getBackendLayout:aP,getAsset:aQ,getItemAsset:aR,getDocsPage:aS,renderDocsPage:aU,renderDocsIndexPage:aV,searchProjects:aW,getProjectContents:aX,getProjectRecipe:aM((a,b,c)=>a.getProjectRecipe(b,c)),renderProjectContentPage:async function(a,b){return a_(await aY(a,b),b,a=>({PrefabUsage:J.bind(null,b),PrefabObtaining:ac.bind(null,b),...a}))},getContentRecipeUsage:a$,getProjectContentPage:aY,getContentRecipeObtaining:aZ,getRecipeType:aM((a,b,c)=>a.getRecipeType(b,c))}},11921:(a,b,c)=>{"use strict";c.d(b,{default:()=>h,p:()=>g});var d=c(792),e=c(70569),f=c(24152);let g=(0,e.createContext)(null);function h({children:a}){(0,f.a8)();let[b,c]=(0,e.useState)("none");return(0,d.jsx)(g.Provider,{value:{open:b,setOpen:c},children:a})}},12589:(a,b,c)=>{"use strict";c.d(b,{default:()=>f});var d=c(70569),e=c(23692);function f({project:a,children:b}){let{setProject:c}=(0,d.useContext)(e.o);return b}},14535:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>r,fetchCache:()=>p,generateMetadata:()=>q});var d=c(47730),e=c(57530),f=c(10611),g=c(45823),h=c(3833),i=c(63649),j=c(42116),k=c(26631),l=c(90866),m=c(51628),n=c(21527),o=c(8367);let p="default-cache";async function q(a,b){let{slug:c,version:d,locale:e}=await a.params,g=await f.A.getProject({id:c,version:d,locale:e});if(!g)return{title:(await b).title?.absolute};let h=await m.A.getPlatformProject(g);return{title:`${h.name} - ${(await b).title?.absolute}`,openGraph:{images:[`/api/og?slug=${c}&locale=${e}`]}}}async function r(a){let{slug:b,version:c,locale:p}=await a.params,{children:q}=a;(0,e.GE)(p);let r=await f.A.getProject({id:b,version:c,locale:p});if(!r)return(0,h.notFound)();let s=await m.A.getPlatformProject(r);return(0,d.jsx)(j.ErrorBoundary,{fallback:(0,d.jsx)(l.A,{project:r}),children:(0,d.jsx)(i.default,{children:(0,d.jsx)(k.default,{children:(0,d.jsx)(o.default,{project:r,children:(0,d.jsx)(n.A,{keys:["DocsPageNotFoundError","ProjectTypes","ProjectCategories","PageEditControls","DocsVersionSelector","LanguageSelect","ModVersionRange"],children:(0,d.jsx)(g.default,{project:r,locale:p,version:c,platformProject:s,children:q})})})})})})}},18661:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(3978).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/app/[locale]/(main)/LocalWatcher.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/app/[locale]/(main)/LocalWatcher.tsx","default")},20218:(a,b,c)=>{"use strict";c.d(b,{default:()=>g});var d=c(792),e=c(70569),f=c(37486);function g({limit:a,content:b}){let c=(0,f.c)("UsageContentList"),[g,h]=(0,e.useState)(!1);return(0,d.jsxs)("ul",{className:"mt-0",children:[g?b:b.slice(0,Math.min(a,b.length)),!g&&b.length>a&&(0,d.jsx)("li",{className:"text-secondary",children:(0,d.jsx)("button",{className:"decoration-1 underline-offset-4 hover:underline",onClick:()=>h(!0),children:c("more")})})]})}},23913:(a,b,c)=>{"use strict";c.d(b,{A:()=>e});var d=c(51603);let e={getBackendEndpointUrl:function(){let a=process.env.NEXT_PUBLIC_BACKEND_SERVICE_URL;return(0,d.no)("NEXT_PUBLIC_BACKEND_SERVICE_URL",a)},getDocsUrl:function(){return process.env.NEXT_PUBLIC_DOCS_URL??null},getBuiltinAssetSource:function(){return process.env.NEXT_PUBLIC_BUILTIN_ASSET_SOURCES??null}}},25548:(a,b,c)=>{"use strict";c.d(b,{CJ:()=>j,M$:()=>k,MZ:()=>f,_s:()=>g,nm:()=>e,sw:()=>h});var d=c(27952);function e(a,b,c){let d=b[c];if(d){if("vanilla"==d.type)return{title:d.title,url:j(d.ref)};if("docs"==d.type)return{title:d.title,url:k(d.ref,a)};if("content"==d.type)return{title:d.title,url:h(d.ref,a)}}return null}function f(a,b){return i(b.id)??(null!=b.page_ref?h(b.page_ref,a):null)}function g(a,b){let c="slug"in a?a.slug:a.id;return i(b)??`/${a.locale}/project/${c}/${a.version}/content/${b.includes("/")?encodeURIComponent(b):b}`}function h(a,b){let c="slug"in b?b.slug:b.id;return`/${b.locale}/project/${c}/${b.version}/content/${a}`}function i(a){let b=d.A.parse(a);return b?.namespace===d.o&&a.startsWith(d.o+":")?`https://minecraft.wiki/w/${b.path}`:null}function j(a){return`https://minecraft.wiki/w/${a}`}function k(a,b){return`/${b.locale}/project/${b.id}/${b.version}/docs/${a}`}},26631:(a,b,c)=>{"use strict";c.d(b,{default:()=>e});var d=c(3978);(0,d.registerClientReference)(function(){throw Error("Attempted to call DocsSidebarContext() from the server but DocsSidebarContext is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/docs/side/DocsSidebarContext.tsx","DocsSidebarContext");let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/components/docs/side/DocsSidebarContext.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/docs/side/DocsSidebarContext.tsx","default")},27497:(a,b,c)=>{"use strict";c.r(b),c.d(b,{Tabs:()=>h,TabsContent:()=>k,TabsList:()=>i,TabsTrigger:()=>j});var d=c(792),e=c(70569),f=c(72415),g=c(53147);let h=f.bL,i=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(f.B8,{ref:c,className:(0,g.cn)("bg-primary-alt inline-flex h-10 items-center justify-center rounded-md p-1 text-secondary",a),...b}));i.displayName=f.B8.displayName;let j=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(f.l9,{ref:c,className:(0,g.cn)("inline-flex items-center justify-center rounded-xs px-3 py-1.5 text-sm font-medium whitespace-nowrap ring-offset-background transition-all focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary data-[state=active]:text-primary data-[state=active]:shadow-xs",a),...b}));j.displayName=f.l9.displayName;let k=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(f.UC,{ref:c,className:(0,g.cn)("mt-2 ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden",a),...b}));k.displayName=f.UC.displayName},27527:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(3978).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/components/docs/shared/game/RotatingItemDisplaySlot.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/docs/shared/game/RotatingItemDisplaySlot.tsx","default")},31112:(a,b,c)=>{"use strict";c.d(b,{default:()=>e});var d=c(3978);(0,d.registerClientReference)(function(){throw Error("Attempted to call HoverContext() from the server but HoverContext is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/util/HoverContextProvider.tsx","HoverContext");let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/components/util/HoverContextProvider.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/util/HoverContextProvider.tsx","default")},31147:(a,b,c)=>{"use strict";c.d(b,{CopyButton:()=>d});let d=(0,c(3978).registerClientReference)(function(){throw Error("Attempted to call CopyButton() from the server but CopyButton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/packages/ui/src/components/button/CopyButton.tsx","CopyButton")},38600:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(3978).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/components/docs/shared/game/UsageContentList.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/docs/shared/game/UsageContentList.tsx","default")},39018:(a,b,c)=>{Promise.resolve().then(c.bind(c,26291)),Promise.resolve().then(c.bind(c,86585)),Promise.resolve().then(c.bind(c,98671)),Promise.resolve().then(c.bind(c,42532)),Promise.resolve().then(c.bind(c,79882)),Promise.resolve().then(c.t.bind(c,12537,23)),Promise.resolve().then(c.t.bind(c,91664,23)),Promise.resolve().then(c.bind(c,42116)),Promise.resolve().then(c.bind(c,58536)),Promise.resolve().then(c.bind(c,45823)),Promise.resolve().then(c.bind(c,5307)),Promise.resolve().then(c.bind(c,39956)),Promise.resolve().then(c.bind(c,73505)),Promise.resolve().then(c.bind(c,27527)),Promise.resolve().then(c.bind(c,38600)),Promise.resolve().then(c.bind(c,96278)),Promise.resolve().then(c.bind(c,26631)),Promise.resolve().then(c.bind(c,63649)),Promise.resolve().then(c.bind(c,8367)),Promise.resolve().then(c.bind(c,31112)),Promise.resolve().then(c.bind(c,69812)),Promise.resolve().then(c.bind(c,31147)),Promise.resolve().then(c.bind(c,10560))},39379:(a,b,c)=>{"use strict";c.d(b,{default:()=>e}),c(70569);var d=c(95062);function e(){return(0,d.useRouter)(),null}},39956:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(3978).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/components/docs/shared/asset/AssetDisplay.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/docs/shared/asset/AssetDisplay.tsx","default")},41641:(a,b,c)=>{"use strict";c.d(b,{A:()=>e});var d=c(47730);function e({width:a,height:b,className:c}){return(0,d.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:a,height:b,className:c,children:[(0,d.jsx)("title",{children:"GitHub"}),(0,d.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"})]})}},43290:(a,b,c)=>{"use strict";c.d(b,{default:()=>i});var d=c(792),e=c(70569),f=c(53147),g=c(36428),h=c(37486);function i({columns:a,rows:b,embedded:c,expandedBody:i}){let[j,k]=(0,e.useState)(!1),l=(0,h.c)("ResponsiveTable");return(0,d.jsxs)("table",{className:(0,f.cn)("[&_td]:bg-primary-alt/50",c&&"mb-0"),children:[(0,d.jsx)("thead",{className:"hidden sm:table-header-group",children:(0,d.jsx)("tr",{children:a.map(a=>(0,d.jsx)("th",{className:"",children:a.label},a.key))})}),(0,d.jsxs)("tbody",{children:[b.map((b,c)=>(0,d.jsx)("tr",{className:"block border-0 sm:table-row",children:a.map(a=>(0,d.jsxs)("td",{className:(0,f.cn)("block border-b sm:table-cell sm:border",b[a.key].className),"data-label":a.label,children:[(0,d.jsx)("div",{className:"mb-1 font-semibold text-primary-alt sm:hidden",children:a.label}),(0,d.jsx)("div",{children:b[a.key].data})]},a.key))},c)),(0,d.jsx)("tr",{children:(0,d.jsx)("td",{colSpan:a.length,className:"no-table-bs group cursor-pointer bg-table-soft!",onClick:()=>k(!j),"data-open":j,children:(0,d.jsxs)("div",{className:"my-0.5 flex w-full flex-row items-center justify-end gap-4 text-secondary",children:[(0,d.jsx)("span",{className:"text-sm",children:l("expand")}),(0,d.jsx)("span",{children:(0,d.jsx)(g.A,{className:"size-4 group-data-[open=true]:rotate-180"})})]})})}),j&&(0,d.jsx)("tr",{children:(0,d.jsx)("td",{colSpan:a.length,className:"no-table-bs no-table-padding",children:i})})]})]})}},43299:(a,b,c)=>{Promise.resolve().then(c.bind(c,42532)),Promise.resolve().then(c.bind(c,18661))},45384:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d={src:"/_next/static/media/crafting_background.158942b1.png",height:136,width:260,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAGFBMVEWampqnp6eioqLKysqLi4uSkpK+vr64uLgHQ3rrAAAAA3RSTlP+/v6VFoksAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAJElEQVR4nCXGsQEAMAzCMBNI+P/jDtUkBmRbkIy7+TkBu9MeDwXFAF/HY1pFAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},45823:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(3978).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/components/docs/layout/DocsLayoutClient.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/docs/layout/DocsLayoutClient.tsx","default")},53124:(a,b,c)=>{"use strict";c.d(b,{A:()=>h,u:()=>g});var d=c(47730),e=c(87999),f=c(39956);async function g(a,b){return h({...b,ctx:a})}async function h({location:a,item:b,...c}){let g={...c,ctx:void 0};return(0,d.jsx)(e.A,{display:({asset:a})=>(0,d.jsx)(f.default,{asset:a,...g}),location:a,item:b,...c})}},58536:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d={src:"/_next/static/media/crafting_background.158942b1.png",height:136,width:260,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAGFBMVEWampqnp6eioqLKysqLi4uSkpK+vr64uLgHQ3rrAAAAA3RSTlP+/v6VFoksAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAJElEQVR4nCXGsQEAMAzCMBNI+P/jDtUkBmRbkIy7+TkBu9MeDwXFAF/HY1pFAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:4}},58780:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>h});var d=c(47730),e=c(60907),f=c(57530),g=c(18661);function h(a){let b=(0,e.use)(a.params),{children:c}=a;return(0,f.GE)(b.locale),(0,d.jsxs)("div",{className:"page-wrapper-base mx-4 flex min-h-screen flex-col sm:mx-2",children:[(0,d.jsx)(g.default,{}),c]})}},60013:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>g});var d=c(792),e=c(86639),f=c(53147);function g(a){let b=a.id;return(0,d.jsxs)("h2",{...a,className:void 0,className:(0,f.cn)(a.className,"group"),children:[a.children,b&&(0,d.jsx)("a",{href:`#${b}`,className:"inline-block pl-2 opacity-0 transition-opacity duration-200 group-hover:opacity-100 hover:opacity-100",children:(0,d.jsx)(e.A,{className:"h-5 w-5 text-primary"})})]})}},62134:(a,b,c)=>{"use strict";c.d(b,{default:()=>h});var d=c(792),e=c(390),f=c(74021);function g(a){if("string"==typeof a){let b=Number(a);return Number.isNaN(b)?void 0:b}return a}function h({asset:a,width:b,height:c,alt:h,title:i,noTitle:j,...k}){return(0,d.jsx)(f.default,{width:g(b)||32,height:g(c)||32,src:a.src,alt:h||a.id,title:j?void 0:i||e.A.parse(a.id)?.path,strokeWidth:1.5,wrapper:{className:"inline sharpRendering"},...k})}},63649:(a,b,c)=>{"use strict";c.d(b,{default:()=>e});var d=c(3978);(0,d.registerClientReference)(function(){throw Error("Attempted to call LeftSidebarContext() from the server but LeftSidebarContext is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/docs/side/LeftSidebarContext.tsx","LeftSidebarContext");let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/components/docs/side/LeftSidebarContext.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/docs/side/LeftSidebarContext.tsx","default")},65757:(a,b,c)=>{"use strict";c.d(b,{A:()=>g});var d=c(47730),e=c(72035),f=c(71378);function g(){let a=(0,e.A)("Badges");return(0,d.jsx)(f.E,{variant:"destructive",children:a("local")})}},69812:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(3978).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/components/util/ResponsiveTable.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/util/ResponsiveTable.tsx","default")},71441:(a,b,c)=>{"use strict";c.d(b,{CopyButton:()=>l});var d=c(792),e=c(47297),f=c(10992),g=c(70569),h=c(53147),i=c(4397),j=c(18093),k=c(37486);function l({text:a,showToast:b,className:c}){let[l,m]=(0,g.useState)(!1),n=(0,k.c)("CopyButton");return(0,d.jsx)(i.$,{variant:"ghost",size:"icon",className:(0,h.cn)("text-secondary-alt opacity-0 transition-opacity duration-200 ease-in-out group-hover:opacity-100 hover:bg-gray-400/10 [&>svg]:animate-in [&>svg]:fade-in [&>svg]:fade-out",c),"aria-label":"Copy to clipboard",onClick:()=>{navigator.clipboard.writeText(a),m(!0),setTimeout(()=>m(!1),2e3),b&&j.oR.success(n("copied"))},children:l?(0,d.jsx)(e.A,{size:16}):(0,d.jsx)(f.A,{size:16})})}},72803:(a,b,c)=>{"use strict";c.d(b,{$:()=>f,default:()=>g});var d=c(792),e=c(70569);let f=(0,e.createContext)(null);function g({children:a}){let[b,c]=(0,e.useState)(!1),[g,h]=(0,e.useState)({}),[i,j]=(0,e.useState)(0);return(0,d.jsx)(f.Provider,{value:{open:b,setOpen:c,folderStates:g,setFolderStates:h,scrollPos:i,setScrollPos:j},children:a})}},73505:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(3978).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/components/docs/shared/asset/ItemAssetDisplay.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/docs/shared/asset/ItemAssetDisplay.tsx","default")},77364:(a,b,c)=>{"use strict";c.d(b,{default:()=>N});var d=c(792),e=c(4397),f=c(83753),g=c(31961),h=c(78222),i=c(24152),j=c(53147),k=c(95062),l=c(85140),m=c(70569),n=c(87251),o=c(3301),p=c(62262),q=c(47297);let r=n.bL;n.YJ;let s=m.forwardRef(({placeholder:a,children:b,...c},e)=>(0,d.jsx)(n.WT,{ref:e,placeholder:(0,d.jsx)("span",{className:"text-secondary",children:a}),...c,children:b}));s.displayName=n.WT.displayName;let t=m.forwardRef(({className:a,children:b,...c},e)=>(0,d.jsxs)(n.l9,{ref:e,className:(0,j.cn)("border-quaternary bg-primary-dim flex h-10 w-full items-center justify-between rounded-sm border px-3 py-2 text-left text-sm ring-offset-background placeholder:text-secondary focus:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...c,children:[b,(0,d.jsx)(n.In,{asChild:!0,children:(0,d.jsx)(o.A,{className:"h-4 w-4 opacity-50"})})]}));t.displayName=n.l9.displayName;let u=m.forwardRef(({className:a,...b},c)=>(0,d.jsx)(n.PP,{ref:c,className:(0,j.cn)("flex cursor-default items-center justify-center py-1",a),...b,children:(0,d.jsx)(p.A,{className:"h-4 w-4"})}));u.displayName=n.PP.displayName;let v=m.forwardRef(({className:a,...b},c)=>(0,d.jsx)(n.wn,{ref:c,className:(0,j.cn)("flex cursor-default items-center justify-center py-1",a),...b,children:(0,d.jsx)(o.A,{className:"h-4 w-4"})}));v.displayName=n.wn.displayName;let w=m.forwardRef(({className:a,children:b,position:c="popper",...e},f)=>(0,d.jsx)(n.ZL,{children:(0,d.jsxs)(n.UC,{ref:f,className:(0,j.cn)("border-tertiary bg-primary-alt text-primary-alt relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95","popper"===c&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:c,...e,children:[(0,d.jsx)(u,{}),(0,d.jsx)(n.LM,{className:(0,j.cn)("p-1","popper"===c&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:b}),(0,d.jsx)(v,{})]})}));w.displayName=n.UC.displayName,m.forwardRef(({className:a,...b},c)=>(0,d.jsx)(n.JU,{ref:c,className:(0,j.cn)("py-1.5 pr-2 pl-8 text-sm font-semibold",a),...b})).displayName=n.JU.displayName;let x=m.forwardRef(({className:a,children:b,...c},e)=>(0,d.jsxs)(n.q7,{ref:e,className:(0,j.cn)("focus:text-primary-alt relative flex w-full cursor-default items-center rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-secondary data-disabled:pointer-events-none data-disabled:opacity-50",a),...c,children:[(0,d.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,d.jsx)(n.VF,{children:(0,d.jsx)(q.A,{className:"h-4 w-4"})})}),(0,d.jsx)(n.p4,{children:b})]}));x.displayName=n.q7.displayName,m.forwardRef(({className:a,...b},c)=>(0,d.jsx)(n.wv,{ref:c,className:(0,j.cn)("bg-primary-alt -mx-1 my-1 h-px",a),...b})).displayName=n.wv.displayName;var y=c(91085),z=c(51087);function A({value:a,defaultValue:b,children:c}){let e=(0,z.rd)(),f=(0,k.usePathname)();return(0,d.jsx)(r,{value:a,defaultValue:b,onValueChange:a=>{let b=f.split("/");b[4]=a,e.replace("/"+b.filter(a=>a.length>0).join("/"))},children:c})}var B=c(37486);function C({version:a,versions:b}){let c=(0,B.c)("DocsVersionSelector");return(0,d.jsxs)(A,{value:a,defaultValue:l.j4,children:[(0,d.jsxs)(t,{className:"h-8 w-full justify-start rounded-sm border-none bg-transparent py-0 whitespace-nowrap hover:bg-secondary sm:h-7 sm:w-fit sm:max-w-32 sm:min-w-24 [&>span]:mr-auto [&>span]:block [&>span]:text-sm [&>span]:text-ellipsis [&>span]:sm:mr-0 [&>svg:last-child]:hidden",children:[(0,d.jsx)(y.A,{className:"mr-auto size-3.5 shrink-0 sm:mr-2.5"}),(0,d.jsx)(s,{placeholder:c("placeholder")})]}),(0,d.jsxs)(w,{children:[(0,d.jsx)(x,{value:l.j4,className:"py-1 [&>span]:text-sm",children:c("latest")}),b.map(a=>(0,d.jsx)(x,{value:a,className:"py-1 [&>span]:text-sm",children:a},a))]})]})}var D=c(50246),E=c(89766),F=c(46891);function G({children:a}){let[b,c]=(0,m.useState)(!1);return(0,k.usePathname)(),(0,d.jsxs)("div",{className:"pointer-events-auto! sm:hidden",children:[(0,d.jsx)(E.A,{active:b,setOpen:c}),(0,d.jsx)(F.A,{className:"top-nav-height-ext bg-primary-dim",isVisible:b,children:a})]})}var H=c(74021);function I({title:a,icon:b,path:c,disabled:f}){let g=(0,i.a8)(),h=(0,k.useParams)(),l=g.split("/"),m=4==l.length&&0==c.length||l.length>=5&&l[4]==c;return(0,d.jsx)(i.XO,{href:`/project/${h.slug}/${h.version}/${c}`,className:(0,j.cn)("w-full sm:w-fit",f&&"pointer-events-none"),children:(0,d.jsxs)(e.$,{variant:"ghost",size:"sm",className:(0,j.cn)("h-8! w-full rounded-sm px-2! sm:h-7! sm:w-fit",m&&"bg-secondary"),disabled:f,children:[(0,d.jsx)(b,{className:"mr-auto h-4 w-4 sm:mr-2"}),(0,d.jsx)("span",{className:"mr-auto text-sm sm:mr-0",children:a})]})})}function J({project:a,platformProject:b}){return(0,d.jsxs)("div",{className:"flex flex-row items-center gap-2 overflow-hidden",children:[(0,d.jsx)(H.default,{src:b.icon_url,alt:"Logo",className:"h-6 rounded-sm",width:24,height:24}),(0,d.jsx)("span",{className:"overflow-hidden text-base font-medium text-ellipsis whitespace-nowrap text-primary",children:a.name})]})}function K({project:a,platformProject:b}){return(0,d.jsxs)("div",{className:"flex flex-col items-center gap-2 overflow-hidden",children:[(0,d.jsx)("img",{src:b.icon_url,alt:"Logo",className:"mb-2 size-12 rounded-sm"}),(0,d.jsx)("span",{className:"overflow-hidden text-base font-medium text-ellipsis whitespace-nowrap text-primary",children:a.name}),(0,d.jsx)("blockquote",{className:"line-clamp-2 text-sm text-secondary",children:b.summary})]})}function L({project:a,locale:b,version:c}){let e=a.versions&&a.versions.length>0,i=a.locales&&a.locales.length>0;return(0,d.jsxs)("div",{className:"flex flex-col items-center gap-4 sm:flex-row sm:gap-2",children:[(0,d.jsx)(I,{title:"Home",icon:f.A,path:""}),(0,d.jsx)(I,{title:"Documentation",icon:g.A,path:"docs"}),a.info.content_count>0&&(0,d.jsx)(I,{title:"Content",icon:h.A,path:"content"}),(e||i)&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"verticalSeparator hidden! sm:inline-flex!"}),(0,d.jsx)("hr",{className:"w-full border-tertiary sm:hidden"})]}),e&&(0,d.jsx)(C,{version:c,versions:a.versions}),i&&(0,d.jsx)(D.default,{locale:b,locales:a.locales,minimal:!0})]})}function M({project:a,platformProject:b,locale:c,version:e}){return(0,d.jsx)("div",{className:"fixed left-0 z-40 w-full border-y border-tertiary border-t-tertiary-dim bg-primary-dim",children:(0,d.jsxs)("div",{className:"mx-auto flex w-full max-w-[120rem] flex-row items-center justify-between px-4 py-2 sm:py-1.5",children:[(0,d.jsx)(J,{project:a,platformProject:b}),(0,d.jsx)("div",{className:"hidden sm:block",children:(0,d.jsx)(L,{project:a,locale:c,version:e})}),(0,d.jsx)(G,{children:(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsx)(K,{project:a,platformProject:b}),(0,d.jsx)(L,{project:a,locale:c,version:e})]})})]})})}function N({project:a,platformProject:b,locale:c,version:e,children:f}){return(0,d.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,d.jsx)("div",{className:"h-subnav",children:(0,d.jsx)(M,{project:a,platformProject:b,locale:c,version:e})}),(0,d.jsx)("div",{className:"flex flex-1 flex-col items-center bg-primary text-primary",children:f})]})}},79710:(a,b,c)=>{"use strict";function d(a){return a.join("/")}c.d(b,{U:()=>d}),c(6266),c(3833),c(23913),c(20804)},87999:(a,b,c)=>{"use strict";c.d(b,{A:()=>f});var d=c(47730),e=c(10611);async function f({location:a,ctx:b,item:c,display:f,...g}){let h=c?await e.A.getItemAsset(a,b):await e.A.getAsset(a,b);return h?(0,d.jsx)(f,{asset:h,...g}):(0,d.jsx)("span",{className:"bg-secondary p-0.5",children:a})}},88162:(a,b,c)=>{"use strict";c.d(b,{A:()=>h});var d=c(47730),e=c(27297),f=c(23056),g=c(97486);function h({href:a,target:b,local:c,className:h,children:i}){if(!a)return(0,d.jsx)("span",{className:h,children:i});let j=c?g.M:f.k;return(0,d.jsx)(j,{href:a,target:b,className:(0,e.cn)(h,"text-link decoration-1 underline-offset-4 hover:text-blue-400/80 hover:underline"),children:i})}},89630:(a,b,c)=>{"use strict";c.d(b,{M:()=>f,default:()=>g});var d=c(792),e=c(70569);let f=(0,e.createContext)(null);function g({children:a}){let[b,c]=(0,e.useState)(!1),g=e.Children.map(a,a=>(0,e.isValidElement)(a)?(0,e.cloneElement)(a,{onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),...a.props}):a);return(0,d.jsx)(f.Provider,{value:{hover:b,setHover:c},children:(0,d.jsx)(d.Fragment,{children:g})})}},89763:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>h});var d=c(792),e=c(70569),f=c(390),g=c(53147);function h({asset:a,width:b,height:c,alt:h,title:i,noTitle:j,...k}){let l=(0,e.useRef)(null),[m,n]=(0,e.useState)(a.src);return(0,d.jsx)("div",{...k,className:(0,g.cn)("overflow-hidden",k.className),style:{width:`${b||32}px`,height:`${c||32}px`},children:(0,d.jsx)("img",{ref:l,width:b||32,height:c||32,src:m,alt:h||a.id,title:j?void 0:i||f.A.parse(a.id)?.path,loading:"eager"})})}},90866:(a,b,c)=>{"use strict";c.d(b,{A:()=>k});var d=c(47730),e=c(72035),f=c(87742),g=c(83063),h=c(35811),i=c(41641),j=c(23056);function k({project:a}){let b=(0,e.A)("DocsPageNotFoundError");return(0,d.jsxs)("div",{className:"m-auto flex flex-col items-center justify-center gap-4 p-4",children:[(0,d.jsx)(f.A,{className:"h-32 w-32 sm:h-48 sm:w-48",strokeWidth:1.5}),(0,d.jsx)("h1",{className:"my-2 text-3xl text-primary sm:text-5xl",children:b("title")}),(0,d.jsx)("p",{className:"w-3/4 text-center text-secondary sm:w-full",children:b("desc")}),(0,d.jsx)("p",{className:"w-3/4 text-center text-secondary sm:w-full",children:b("suggestion")}),(0,d.jsxs)("div",{className:"mt-4 inline-flex gap-4",children:[a?.source_repo&&(0,d.jsx)(h.$,{variant:"secondary",asChild:!0,children:(0,d.jsxs)(j.k,{href:a.source_repo,target:"_blank",children:[(0,d.jsx)(i.A,{className:"mr-2 h-4 w-4"}),b("submit")]})}),(0,d.jsx)(h.$,{asChild:!0,children:(0,d.jsxs)(j.k,{href:"/",children:[(0,d.jsx)(g.A,{className:"mr-2 h-4 w-4",strokeWidth:2.5}),b("return")]})})]})]})}},96278:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(3978).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/Wiki/Wiki/build/previewer/src/components/docs/shared/VideoEmbedPlaceholder.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/Wiki/Wiki/build/previewer/src/components/docs/shared/VideoEmbedPlaceholder.tsx","default")}};
|