@sinytra/wiki-previewer 0.1.119 → 0.1.120

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-build-manifest.json +101 -101
  3. package/.next/app-path-routes-manifest.json +3 -3
  4. package/.next/build-manifest.json +2 -2
  5. package/.next/prerender-manifest.json +15 -15
  6. package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route.js +1 -1
  7. package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route.js.nft.json +1 -1
  8. package/.next/server/app/(developers)/api/docs/[slug]/asset/[id]/route_client-reference-manifest.js +1 -1
  9. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page.js +2 -2
  10. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page.js.nft.json +1 -1
  11. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page_client-reference-manifest.js +1 -1
  12. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page.js +2 -2
  13. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page.js.nft.json +1 -1
  14. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/content/page_client-reference-manifest.js +1 -1
  15. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page.js +2 -2
  16. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page.js.nft.json +1 -1
  17. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page_client-reference-manifest.js +1 -1
  18. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page.js +2 -2
  19. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page.js.nft.json +1 -1
  20. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/docs/page_client-reference-manifest.js +1 -1
  21. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page.js +2 -2
  22. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page.js.nft.json +1 -1
  23. package/.next/server/app/[locale]/(main)/project/[slug]/[version]/page_client-reference-manifest.js +1 -1
  24. package/.next/server/app/[locale]/page.js +2 -2
  25. package/.next/server/app/[locale]/page.js.nft.json +1 -1
  26. package/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
  27. package/.next/server/app/_not-found/page.js +1 -1
  28. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  29. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  30. package/.next/server/app/_not-found.html +2 -2
  31. package/.next/server/app/_not-found.rsc +5 -5
  32. package/.next/server/app/opengraph-image/route_client-reference-manifest.js +1 -1
  33. package/.next/server/app/robots.txt/route.js.nft.json +1 -1
  34. package/.next/server/app/robots.txt/route_client-reference-manifest.js +1 -1
  35. package/.next/server/app/sitemap.xml/route_client-reference-manifest.js +1 -1
  36. package/.next/server/app-paths-manifest.json +3 -3
  37. package/.next/server/chunks/1163.js +159 -0
  38. package/.next/server/chunks/1874.js +1 -0
  39. package/.next/server/chunks/2313.js +2 -2
  40. package/.next/server/chunks/2337.js +1 -1
  41. package/.next/server/chunks/3800.js +1 -0
  42. package/.next/server/chunks/4278.js +1 -0
  43. package/.next/server/chunks/513.js +66 -0
  44. package/.next/server/chunks/5192.js +1 -0
  45. package/.next/server/chunks/5257.js +1 -0
  46. package/.next/server/chunks/6490.js +1 -0
  47. package/.next/server/chunks/689.js +10 -0
  48. package/.next/server/chunks/8256.js +1 -0
  49. package/.next/server/chunks/9358.js +1 -0
  50. package/.next/server/chunks/9418.js +70 -0
  51. package/.next/server/middleware-manifest.json +10 -10
  52. package/.next/server/pages/404.html +2 -2
  53. package/.next/server/pages/500.html +1 -1
  54. package/.next/server/server-reference-manifest.json +1 -1
  55. package/.next/server/src/middleware.js +2 -2
  56. package/.next/static/chunks/{103-16bbfc93b461c964.js → 103-068948c007641ef9.js} +1 -1
  57. package/.next/static/chunks/{8777-5c798bf88b394495.js → 1387-425b909529e8feeb.js} +1 -1
  58. package/.next/static/chunks/4254-920d1f51812b160f.js +1 -0
  59. package/.next/static/chunks/{9585-3cde5ba088a8ed62.js → 4283-b63fac6a595bdd16.js} +1 -1
  60. package/.next/static/chunks/{1470-9bb50d687fde2bce.js → 5307-313dba7e9f7ba575.js} +1 -1
  61. package/.next/static/chunks/595-d255f000314959c1.js +1 -0
  62. package/.next/static/chunks/6399-95a77df3ef986ee8.js +1 -0
  63. package/.next/static/chunks/{4551-55b613d55dccf238.js → 7580-d063082dd77b05a2.js} +1 -1
  64. package/.next/static/chunks/8616-7aec55a29c564489.js +1 -0
  65. package/.next/static/chunks/9355-413a0cdee2ddda08.js +1 -0
  66. package/.next/static/chunks/9400-5197b306237257a0.js +1 -0
  67. package/.next/static/chunks/{1966-d293add079f9adab.js → 9585-1b3d4db6576d361c.js} +1 -1
  68. package/.next/static/chunks/app/(developers)/api/docs/[slug]/asset/[id]/route-068507a6d4ac19c1.js +1 -0
  69. package/.next/static/chunks/app/[locale]/(main)/layout-09491164035426f5.js +1 -0
  70. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/error-877504c9c31c7f75.js +1 -0
  71. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/not-found-c1d28035aac9deaf.js +1 -0
  72. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page-5f54acec5d25f263.js +1 -0
  73. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/error-72ff02f5f9f6a2ed.js +1 -0
  74. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/not-found-c1d28035aac9deaf.js +1 -0
  75. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/page-c909527ca15c01a3.js +1 -0
  76. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/error-61881d0ee2499ef4.js +1 -0
  77. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/not-found-c1d28035aac9deaf.js +1 -0
  78. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page-518476885bfdaeee.js +1 -0
  79. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/error-6c609fb9dd26a410.js +1 -0
  80. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/not-found-c1d28035aac9deaf.js +1 -0
  81. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/page-609dc31954dd60ba.js +1 -0
  82. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/layout-dd7f75c9e0afc99c.js +1 -0
  83. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/page-a60bb4aaa88a1cff.js +1 -0
  84. package/.next/static/chunks/app/[locale]/layout-daac4cc9cfede500.js +1 -0
  85. package/.next/static/chunks/app/[locale]/not-found-1fe350d840356926.js +1 -0
  86. package/.next/static/chunks/app/[locale]/page-5f2b2237dd4149c0.js +1 -0
  87. package/.next/static/chunks/app/{error-2f744c8782ca90a5.js → error-49afa95803b0b2eb.js} +1 -1
  88. package/.next/static/chunks/app/{global-error-85d9c0922f1e3fce.js → global-error-ce091b1452efe213.js} +1 -1
  89. package/.next/static/chunks/app/not-found-f5d97a4ac6e12889.js +1 -0
  90. package/package.json +1 -1
  91. package/.next/server/chunks/105.js +0 -1
  92. package/.next/server/chunks/1476.js +0 -1
  93. package/.next/server/chunks/4159.js +0 -1
  94. package/.next/server/chunks/4302.js +0 -1
  95. package/.next/server/chunks/4530.js +0 -1
  96. package/.next/server/chunks/4988.js +0 -1
  97. package/.next/server/chunks/5611.js +0 -1
  98. package/.next/server/chunks/7065.js +0 -66
  99. package/.next/server/chunks/8616.js +0 -1
  100. package/.next/server/chunks/9173.js +0 -35
  101. package/.next/server/chunks/9425.js +0 -10
  102. package/.next/server/chunks/9686.js +0 -159
  103. package/.next/static/chunks/2186-5c7b12be1a995c1e.js +0 -1
  104. package/.next/static/chunks/2305-d9c0ebe361b73ca0.js +0 -1
  105. package/.next/static/chunks/595-8216ad2d62c67f74.js +0 -1
  106. package/.next/static/chunks/8413-8934ebbf72032aeb.js +0 -1
  107. package/.next/static/chunks/8616-f2548321574e7db4.js +0 -1
  108. package/.next/static/chunks/93-7ff435ae228f688a.js +0 -1
  109. package/.next/static/chunks/app/(developers)/api/docs/[slug]/asset/[id]/route-fad13a09af2c14d8.js +0 -1
  110. package/.next/static/chunks/app/[locale]/(main)/layout-ca292e50d803d7c9.js +0 -1
  111. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/error-abc8d80e856b51f7.js +0 -1
  112. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/not-found-80873a4f07e4c1fa.js +0 -1
  113. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/[id]/page-e1514b9458cdf8ba.js +0 -1
  114. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/error-749a31cba53c0392.js +0 -1
  115. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/not-found-80873a4f07e4c1fa.js +0 -1
  116. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/content/page-e67fce9a42cdcb17.js +0 -1
  117. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/error-3bedf7ae95a288ad.js +0 -1
  118. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/not-found-80873a4f07e4c1fa.js +0 -1
  119. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/[...path]/page-ce23f165e662fada.js +0 -1
  120. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/error-53aef187c3e0b916.js +0 -1
  121. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/not-found-80873a4f07e4c1fa.js +0 -1
  122. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/docs/page-1fec319e5fb8adda.js +0 -1
  123. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/layout-c12bb85e1f228d2c.js +0 -1
  124. package/.next/static/chunks/app/[locale]/(main)/project/[slug]/[version]/page-77a3009649d52713.js +0 -1
  125. package/.next/static/chunks/app/[locale]/layout-a0ae0615250dfb10.js +0 -1
  126. package/.next/static/chunks/app/[locale]/not-found-ef8f0d997a8d1958.js +0 -1
  127. package/.next/static/chunks/app/[locale]/page-d818d5faaaa65110.js +0 -1
  128. package/.next/static/chunks/app/not-found-23d4794ac0465772.js +0 -1
  129. /package/.next/static/{E3-bpyILB3XxG7SeC55HZ → 9P1kuXGxSOYyERA6P7Q0g}/_buildManifest.js +0 -0
  130. /package/.next/static/{E3-bpyILB3XxG7SeC55HZ → 9P1kuXGxSOYyERA6P7Q0g}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[103],{2938:(e,t,s)=>{s.d(t,{A:()=>n,o:()=>a});let a="minecraft";function r(e){if(0===e.length)return null;if(e.includes(":")){let t=e.split(":");return{namespace:t[0],path:t[1]}}return{namespace:"minecraft",path:e}}let n={toString:function(e){return"".concat(e.namespace,":").concat(e.path)},parse:r,extractPath:function(e){var t,s;return null!=(s=null==(t=r(e))?void 0:t.path)?s:e}}},7208:(e,t,s)=>{s.d(t,{AM:()=>o,Wv:()=>l,hl:()=>c});var a=s(7893),r=s(28081),n=s(63082),i=s(95745);let o=n.bL,l=n.l9,c=r.forwardRef((e,t)=>{let{className:s,align:r="center",sideOffset:o=4,...l}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsx)(n.UC,{ref:t,align:r,sideOffset:o,className:(0,i.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",s),...l})})});c.displayName=n.UC.displayName},18526:(e,t,s)=>{s.d(t,{default:()=>o});var a=s(7893),r=s(2938),n=s(87257);function i(e){if("string"==typeof e){let t=Number(e);if(!Number.isNaN(t))return t}return e}function o(e){var t;let{asset:s,width:o,height:l,alt:c,title:d,noTitle:u,...m}=e;return(0,a.jsx)(n.default,{width:i(o),height:i(l),src:s.src,alt:c||s.id,title:u?void 0:d||(null==(t=r.A.parse(s.id))?void 0:t.path),strokeWidth:1.5,wrapper:{className:"inline sharpRendering"},...m})}},20826:(e,t,s)=>{s.r(t),s.d(t,{Tooltip:()=>l,TooltipContent:()=>d,TooltipProvider:()=>o,TooltipTrigger:()=>c});var a=s(7893),r=s(28081),n=s(30981),i=s(95745);let o=n.Kq,l=n.bL,c=n.l9,d=r.forwardRef((e,t)=>{let{className:s,sideOffset:r=4,...o}=e;return(0,a.jsx)(n.UC,{ref:t,sideOffset:r,className:(0,i.cn)("border-tertiary bg-primary-alt text-primary-alt z-50 animate-in overflow-hidden overscroll-contain rounded-md border px-3 py-1.5 text-sm shadow-md fade-in-0 zoom-in-95 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",s),...o})});d.displayName=n.UC.displayName},28139:(e,t,s)=>{s.d(t,{CopyButton:()=>u});var a=s(7893),r=s(68929),n=s(12562),i=s(28081),o=s(95745),l=s(82601),c=s(43875),d=s(13870);function u(e){let{text:t,showToast:s,className:u}=e,[m,p]=(0,i.useState)(!1),h=(0,d.c)("CopyButton");return(0,a.jsx)(l.$,{variant:"ghost",size:"icon",className:(0,o.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",u),"aria-label":"Copy to clipboard",onClick:()=>{navigator.clipboard.writeText(t),p(!0),setTimeout(()=>p(!1),2e3),s&&c.oR.success(h("copied"))},children:m?(0,a.jsx)(r.A,{size:16}):(0,a.jsx)(n.A,{size:16})})}},28663:(e,t,s)=>{s.r(t),s.d(t,{default:()=>m});var a=s(7893),r=s(28081);class n extends r.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,a.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,a.jsx)("span",{className:"font-minecraft",children:this.props.children})})}constructor(...e){super(...e),this.state={xPosition:0,yPosition:0,mouseMoved:!1,listenerActive:!1},this.onMouseMove=e=>{let{clientX:t,clientY:s}=e;this.setState({xPosition:t,yPosition:s,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 i(e){let[t,s]=(0,r.useState)(!1);return(0,a.jsxs)("div",{onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[(0,a.jsxs)(n,{visible:t,offsetX:15,offsetY:-33,children:[e.id,e.tag&&(0,a.jsxs)("p",{className:"m-0! mt-1! text-xs text-secondary text-shadow-none",children:["#",e.tag]})]}),e.children]})}var o=s(95054),l=s(41736),c=s(80123),d=s(37040),u=s(95745);function m(e){let{noTooltip:t,noLink:s,src:n,count:m,ctx:p,tag:h,...f}=e,[x,v]=(0,r.useState)(0),b=(0,r.useMemo)(()=>n[x],[x,n]),g=(0,r.useContext)(l.M);if((0,r.useEffect)(()=>{n.forEach(e=>{new Image().src=e.asset.src})},[n]),(0,r.useEffect)(()=>{if(0===n.length)return;let e=setInterval(()=>{g&&g.hover||v(e=>(e+1)%n.length)},2e3);return()=>clearInterval(e)},[n,g]),n.length<1)return null;let y=()=>{var e;let t=p?(0,o.MZ)(p,b):(0,o.cT)(b.id),r=(0,a.jsxs)("div",{...f,className:(0,u.cn)("relative shrink-0",f.className),children:[(0,a.jsx)(c.default,{noTitle:!0,asset:b.asset,alt:null!=(e=b.name)?e:b.id,className:"sharpRendering"}),m&&m>1&&(0,a.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:m})]});return t&&!s?(0,a.jsx)(d.k,{href:t,rel:"noreferrer",children:r}):r};return t?(0,a.jsx)(y,{}):(0,a.jsx)(i,{id:b.name||b.id,tag:h,children:(0,a.jsx)(y,{})})}},37040:(e,t,s)=>{s.d(t,{k:()=>o});var a=s(7893),r=s(28081),n=s(19957),i=s.n(n);let o=(0,r.forwardRef)(function(e,t){let{prefetch:s=!1,...r}=e;return(0,a.jsx)(i(),{prefetch:s,...r,ref:t})})},39389:(e,t,s)=>{s.r(t),s.d(t,{Tabs:()=>o,TabsContent:()=>d,TabsList:()=>l,TabsTrigger:()=>c});var a=s(7893),r=s(28081),n=s(48731),i=s(95745);let o=n.bL,l=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.B8,{ref:t,className:(0,i.cn)("bg-primary-alt inline-flex h-10 items-center justify-center rounded-md p-1 text-secondary",s),...r})});l.displayName=n.B8.displayName;let c=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.l9,{ref:t,className:(0,i.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",s),...r})});c.displayName=n.l9.displayName;let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.UC,{ref:t,className:(0,i.cn)("mt-2 ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden",s),...r})});d.displayName=n.UC.displayName},41736:(e,t,s)=>{s.d(t,{M:()=>n,default:()=>i});var a=s(7893),r=s(28081);let n=(0,r.createContext)(null);function i(e){let{children:t}=e,[s,i]=(0,r.useState)(!1),o=r.Children.map(t,e=>(0,r.isValidElement)(e)?(0,r.cloneElement)(e,{onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),...e.props}):e);return(0,a.jsx)(n.Provider,{value:{hover:s,setHover:i},children:(0,a.jsx)(a.Fragment,{children:o})})}},44064:(e,t,s)=>{s.d(t,{default:()=>i});var a=s(7893),r=s(28081),n=s(13870);function i(e){let{limit:t,content:s}=e,i=(0,n.c)("UsageContentList"),[o,l]=(0,r.useState)(!1);return(0,a.jsxs)("ul",{className:"mt-0",children:[o?s:s.slice(0,Math.min(t,s.length)),!o&&s.length>t&&(0,a.jsx)("li",{className:"text-secondary",children:(0,a.jsx)("button",{className:"decoration-1 underline-offset-4 hover:underline",onClick:()=>l(!0),children:i("more")})})]})}},55242:(e,t,s)=>{s.d(t,{default:()=>l});var a=s(7893),r=s(28081),n=s(95745),i=s(60640),o=s(13870);function l(e){let{columns:t,rows:s,embedded:l,expandedBody:c}=e,[d,u]=(0,r.useState)(!1),m=(0,o.c)("ResponsiveTable");return(0,a.jsxs)("table",{className:(0,n.cn)("[&_td]:bg-primary-alt/50",l&&"mb-0"),children:[(0,a.jsx)("thead",{className:"hidden sm:table-header-group",children:(0,a.jsx)("tr",{children:t.map(e=>(0,a.jsx)("th",{className:"",children:e.label},e.key))})}),(0,a.jsxs)("tbody",{children:[s.map((e,s)=>(0,a.jsx)("tr",{className:"block border-0 sm:table-row",children:t.map(t=>(0,a.jsxs)("td",{className:(0,n.cn)("block border-b sm:table-cell sm:border",e[t.key].className),"data-label":t.label,children:[(0,a.jsx)("div",{className:"mb-1 font-semibold text-primary-alt sm:hidden",children:t.label}),(0,a.jsx)("div",{children:e[t.key].data})]},t.key))},s)),(0,a.jsx)("tr",{children:(0,a.jsx)("td",{colSpan:t.length,className:"no-table-bs group cursor-pointer bg-table-soft!",onClick:()=>u(!d),"data-open":d,children:(0,a.jsxs)("div",{className:"my-0.5 flex w-full flex-row items-center justify-end gap-4 text-secondary",children:[(0,a.jsx)("span",{className:"text-sm",children:m("expand")}),(0,a.jsx)("span",{children:(0,a.jsx)(i.A,{className:"size-4 group-data-[open=true]:rotate-180"})})]})})}),d&&(0,a.jsx)("tr",{children:(0,a.jsx)("td",{colSpan:t.length,className:"no-table-bs no-table-padding",children:c})})]})]})}},72103:(e,t,s)=>{s.r(t),s.d(t,{default:()=>i});var a=s(7893),r=s(4409),n=s(95745);function i(e){let t=e.id;return(0,a.jsxs)("h2",{...e,className:void 0,className:(0,n.cn)(e.className,"group"),children:[e.children,t&&(0,a.jsx)("a",{href:"#".concat(t),className:"inline-block pl-2 opacity-0 transition-opacity duration-200 group-hover:opacity-100 hover:opacity-100",children:(0,a.jsx)(r.A,{className:"h-5 w-5 text-primary"})})]})}},78890:(e,t,s)=>{s.r(t),s.d(t,{default:()=>o});var a=s(7893),r=s(20826),n=s(95745),i=s(7208);function o(e){let{hint:t,children:s}=e;return(0,a.jsxs)("span",{className:"inline-block",children:[(0,a.jsx)("span",{className:"sm:hidden",children:(0,a.jsxs)(i.AM,{children:[(0,a.jsx)(i.Wv,{className:(0,n.cn)("underline decoration-dotted decoration-2 underline-offset-2"),children:s}),(0,a.jsx)(i.hl,{side:"top",className:(0,n.cn)("slim-scrollbar max-h-56 max-w-[min(32rem,var(--radix-popper-available-width))]","animate-none! overflow-y-auto px-3 py-1.5 text-sm break-words whitespace-normal"),children:t})]})}),(0,a.jsx)("span",{className:"hidden sm:block",children:(0,a.jsx)(r.TooltipProvider,{delayDuration:200,children:(0,a.jsxs)(r.Tooltip,{children:[(0,a.jsx)(r.TooltipTrigger,{className:(0,n.cn)("cursor-help underline decoration-dotted decoration-2 underline-offset-2 select-text"),children:s}),(0,a.jsx)(r.TooltipContent,{side:"top",className:(0,n.cn)("slim-scrollbar max-h-56 max-w-[min(32rem,var(--radix-popper-available-width))] animate-none!","overflow-y-auto px-3 py-1.5 text-sm break-words whitespace-normal"),children:t})]})})})]})}},80123:(e,t,s)=>{s.r(t),s.d(t,{default:()=>o});var a=s(7893),r=s(28081),n=s(2938),i=s(95745);function o(e){var t;let{asset:s,width:o,height:l,alt:c,title:d,noTitle:u,...m}=e,p=(0,r.useRef)(null),[h,f]=(0,r.useState)(s.src);return(0,r.useEffect)(()=>{let e=p.current;if(!e)return;let t=()=>{f("/static/missing_item.png")};return e.addEventListener("error",t),e.complete&&0===e.naturalWidth&&t(),()=>{e.removeEventListener("error",t)}},[s.src]),(0,a.jsx)("div",{...m,className:(0,i.cn)("overflow-hidden",m.className),style:{width:"".concat(o||32,"px"),height:"".concat(l||32,"px")},children:(0,a.jsx)("img",{ref:p,width:o||32,height:l||32,src:h,alt:c||s.id,title:u?void 0:d||(null==(t=n.A.parse(s.id))?void 0:t.path),loading:"eager"})})}},82601:(e,t,s)=>{s.d(t,{$:()=>c});var a=s(7893),r=s(28081),n=s(85126),i=s(8295),o=s(95745);let l=(0,i.F)("inline-flex items-center justify-center rounded-sm text-sm font-medium whitespace-nowrap ring-offset-background transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"border border-primary bg-primary text-primary hover:bg-secondary/90",destructive:"border-destructive-secondary border bg-primary bg-secondary font-semibold text-destructive hover:bg-secondary/80 hover:text-destructive/90 data-[pending=true]:text-destructive/90",destructiveSecondary:"text-primary-alt hover:text-primary-alt/90 bg-destructive",outline:"border-quaternary hover:text-primary-alt border bg-primary hover:bg-secondary",secondary:"text-secondary-alt bg-secondary hover:bg-secondary/80",ghost:"hover:text-primary-alt hover:bg-secondary",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-sm px-3",lg:"h-11 rounded-sm px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=r.forwardRef((e,t)=>{let{className:s,variant:r,size:i,asChild:c=!1,...d}=e,u=c?n.DX:"button";return(0,a.jsx)(u,{className:(0,o.cn)(l({variant:r,size:i,className:s})),ref:t,...d})});c.displayName="Button"},83457:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});let a={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}},86373:(e,t,s)=>{s.d(t,{GL:()=>c,ww:()=>l,YE:()=>d,default:()=>u});var a=s(7893),r=s(28081);s(3317);var n=s(76089);s(82637);let i={userRequiresCookieConsent:function(){return!1}};var o=s(13870);let l=(0,r.createContext)(null),c="experience",d="yt_embeds";function u(e){let{children:t}=e,[s,u]=(0,r.useState)(!0),[m,p]=(0,r.useState)(!1),h=(0,o.c)("CookieConsent");function f(){p(n.tj(d,c))}return(0,r.useEffect)(()=>{let e=i.userRequiresCookieConsent();u(e),e&&n.eF({revision:1,guiOptions:{consentModal:{layout:"box inline"}},onFirstConsent:()=>{f()},onChange:()=>{f()},categories:{necessary:{enabled:!0,readOnly:!0},[c]:{services:{[d]:{label:h("sections.experience.services.embeds"),onAccept:()=>p(!0),onReject:()=>p(!1)}}}},language:{default:"en",translations:{en:{consentModal:{title:h("popup.title"),description:h("popup.description"),acceptAllBtn:h("actions.accept_all"),acceptNecessaryBtn:h("actions.reject_all"),showPreferencesBtn:h("popup.show_preferences")},preferencesModal:{title:h("modal.title"),acceptAllBtn:h("actions.accept_all"),acceptNecessaryBtn:h("actions.reject_all"),savePreferencesBtn:h("modal.save"),closeIconLabel:h("modal.close"),sections:[{title:h("sections.summary.title"),description:h("sections.summary.description")},{title:h("sections.necessary.title"),description:h("sections.necessary.description"),linkedCategory:"necessary"},{title:h("sections.experience.title"),description:h("sections.experience.description"),linkedCategory:"experience"},{title:h("sections.more_info.title"),description:h.raw("sections.more_info.description")}]}}}}})},[]),(0,a.jsx)(l.Provider,{value:{enableCookieManagement:s,hasConsentToEmbeddedVideos:m},children:t})}},87257:(e,t,s)=>{s.d(t,{default:()=>o});var a=s(7893),r=s(28081),n=s(50250),i=s(95745);function o(e){let{src:t,alt:s,width:o,height:l,fbWidth:c,fbHeight:d,className:u,title:m,strokeWidth:p=1,fixedSize:h,wrapper:f,fbIcon:x=n.A,fallback:v=(0,a.jsx)(x,{strokeWidth:p,className:(0,i.cn)(u,"text-secondary opacity-20"),width:c||o||32,height:d||l||32}),...b}=e,[g,y]=(0,r.useState)(!1);return(0,a.jsxs)("span",{title:m,style:h?{width:"".concat(o,"px"),height:"".concat(l,"px")}:void 0,...f,className:(0,i.cn)("shrink-0 overflow-hidden",null==f?void 0:f.className),children:[t&&!g&&(0,a.jsx)("img",{src:t,alt:s||"",width:o,height:l,className:u,onError:()=>y(!0),...b}),(!t||g)&&v]})}},92014:(e,t,s)=>{s.d(t,{default:()=>u});var a=s(7893),r=s(40914),n=s(82601),i=s(95745),o=s(28081),l=s(86373),c=s(76089),d=s(13870);function u(e){let{id:t,children:s}=e,u=(0,d.c)("VideoEmbedPlaceholder"),m=(0,o.useContext)(l.ww);if(!m||!m.enableCookieManagement||(null==m?void 0:m.hasConsentToEmbeddedVideos))return s;let p=t&&t.includes("?")?t.split("?")[0]:t,h="https://img.youtube.com/vi/".concat(t,"/maxresdefault.jpg");return(0,a.jsxs)("div",{className:(0,i.cn)("video-embed relative flex rounded-sm border border-tertiary bg-primary-alt text-center"),children:[(0,a.jsx)("img",{src:h,alt:"thumbnail",width:560}),(0,a.jsxs)("div",{className:"absolute-center flex h-full w-full flex-col items-center justify-center gap-5 bg-primary/80",children:[(0,a.jsx)(r.A,{className:"size-12 text-secondary-alt",strokeWidth:1.5}),(0,a.jsx)("div",{className:"text-xl",children:(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("span",{children:u("title")}),(0,a.jsx)("span",{className:"text-sm text-secondary",children:u("description")})]})}),(0,a.jsxs)("div",{className:"mt-2 flex flex-row flex-wrap justify-center gap-3",children:[(0,a.jsx)(n.$,{onClick:()=>void c.gB(l.YE,l.GL),children:u("accept")}),p&&(0,a.jsx)("a",{href:"https://www.youtube.com/watch?v=".concat(p),target:"_blank",rel:"noreferrer",children:(0,a.jsx)(n.$,{variant:"outline",children:u("watch")})})]})]})]})}},95054:(e,t,s)=>{s.d(t,{M$:()=>l,MZ:()=>r,cT:()=>o,gZ:()=>i,sw:()=>n});var a=s(2938);function r(e,t){var s;return null!=(s=o(t.id))?s:null!=t.page_ref?n(t.page_ref,e):null}function n(e,t){let s="slug"in t?t.slug:t.id;return"/".concat(t.locale,"/project/").concat(s,"/").concat(t.version,"/content/").concat(e)}function i(e,t){return"/".concat(e,"/project/").concat(t,"/latest")}function o(e){let t=a.A.parse(e);return(null==t?void 0:t.namespace)===a.o&&e.startsWith(a.o+":")?"https://minecraft.wiki/w/".concat(t.path):null}function l(e,t){return"/".concat(t.locale,"/project/").concat(t.id,"/").concat(t.version,"/docs/").concat(e)}},95745:(e,t,s)=>{s.d(t,{cn:()=>n});var a=s(3135),r=s(96915);function n(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,r.QP)((0,a.$)(t))}},96090:(e,t,s)=>{s.d(t,{default:()=>i});var a=s(7893),r=s(39851);s(28081);var n=s(95745);function i(e){let{className:t,active:s,animate:i=!0}=e;return(0,a.jsx)(r.A,{className:(0,n.cn)(t,"shrink-0 data-[rotate=true]:rotate-180",i&&"transition-transform duration-200"),"data-rotate":s?"true":"false"})}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[103],{2938:(e,t,s)=>{s.d(t,{A:()=>n,o:()=>a});let a="minecraft";function r(e){if(0===e.length)return null;if(e.includes(":")){let t=e.split(":");return{namespace:t[0],path:t[1]}}return{namespace:"minecraft",path:e}}let n={toString:function(e){return"".concat(e.namespace,":").concat(e.path)},parse:r,extractPath:function(e){var t,s;return null!=(s=null==(t=r(e))?void 0:t.path)?s:e}}},7208:(e,t,s)=>{s.d(t,{AM:()=>o,Wv:()=>l,hl:()=>c});var a=s(7893),r=s(28081),n=s(63082),i=s(95745);let o=n.bL,l=n.l9,c=r.forwardRef((e,t)=>{let{className:s,align:r="center",sideOffset:o=4,...l}=e;return(0,a.jsx)(n.ZL,{children:(0,a.jsx)(n.UC,{ref:t,align:r,sideOffset:o,className:(0,i.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",s),...l})})});c.displayName=n.UC.displayName},18526:(e,t,s)=>{s.d(t,{default:()=>o});var a=s(7893),r=s(2938),n=s(87257);function i(e){if("string"==typeof e){let t=Number(e);if(!Number.isNaN(t))return t}return e}function o(e){var t;let{asset:s,width:o,height:l,alt:c,title:d,noTitle:u,...m}=e;return(0,a.jsx)(n.default,{width:i(o),height:i(l),src:s.src,alt:c||s.id,title:u?void 0:d||(null==(t=r.A.parse(s.id))?void 0:t.path),strokeWidth:1.5,wrapper:{className:"inline sharpRendering"},...m})}},20826:(e,t,s)=>{s.r(t),s.d(t,{Tooltip:()=>l,TooltipContent:()=>d,TooltipProvider:()=>o,TooltipTrigger:()=>c});var a=s(7893),r=s(28081),n=s(30981),i=s(95745);let o=n.Kq,l=n.bL,c=n.l9,d=r.forwardRef((e,t)=>{let{className:s,sideOffset:r=4,...o}=e;return(0,a.jsx)(n.UC,{ref:t,sideOffset:r,className:(0,i.cn)("border-tertiary bg-primary-alt text-primary-alt z-50 animate-in overflow-hidden overscroll-contain rounded-md border px-3 py-1.5 text-sm shadow-md fade-in-0 zoom-in-95 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",s),...o})});d.displayName=n.UC.displayName},28139:(e,t,s)=>{s.d(t,{CopyButton:()=>u});var a=s(7893),r=s(27732),n=s(34925),i=s(28081),o=s(95745),l=s(82601),c=s(43875),d=s(27052);function u(e){let{text:t,showToast:s,className:u}=e,[m,p]=(0,i.useState)(!1),h=(0,d.c)("CopyButton");return(0,a.jsx)(l.$,{variant:"ghost",size:"icon",className:(0,o.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",u),"aria-label":"Copy to clipboard",onClick:()=>{navigator.clipboard.writeText(t),p(!0),setTimeout(()=>p(!1),2e3),s&&c.oR.success(h("copied"))},children:m?(0,a.jsx)(r.A,{size:16}):(0,a.jsx)(n.A,{size:16})})}},28663:(e,t,s)=>{s.r(t),s.d(t,{default:()=>m});var a=s(7893),r=s(28081);class n extends r.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,a.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,a.jsx)("span",{className:"font-minecraft",children:this.props.children})})}constructor(...e){super(...e),this.state={xPosition:0,yPosition:0,mouseMoved:!1,listenerActive:!1},this.onMouseMove=e=>{let{clientX:t,clientY:s}=e;this.setState({xPosition:t,yPosition:s,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 i(e){let[t,s]=(0,r.useState)(!1);return(0,a.jsxs)("div",{onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[(0,a.jsxs)(n,{visible:t,offsetX:15,offsetY:-33,children:[e.id,e.tag&&(0,a.jsxs)("p",{className:"m-0! mt-1! text-xs text-secondary text-shadow-none",children:["#",e.tag]})]}),e.children]})}var o=s(95054),l=s(41736),c=s(80123),d=s(37040),u=s(95745);function m(e){let{noTooltip:t,noLink:s,src:n,count:m,ctx:p,tag:h,...f}=e,[x,v]=(0,r.useState)(0),b=(0,r.useMemo)(()=>n[x],[x,n]),g=(0,r.useContext)(l.M);if((0,r.useEffect)(()=>{n.forEach(e=>{new Image().src=e.asset.src})},[n]),(0,r.useEffect)(()=>{if(0===n.length)return;let e=setInterval(()=>{g&&g.hover||v(e=>(e+1)%n.length)},2e3);return()=>clearInterval(e)},[n,g]),n.length<1)return null;let y=()=>{var e;let t=p?(0,o.MZ)(p,b):(0,o.cT)(b.id),r=(0,a.jsxs)("div",{...f,className:(0,u.cn)("relative shrink-0",f.className),children:[(0,a.jsx)(c.default,{noTitle:!0,asset:b.asset,alt:null!=(e=b.name)?e:b.id,className:"sharpRendering"}),m&&m>1&&(0,a.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:m})]});return t&&!s?(0,a.jsx)(d.k,{href:t,rel:"noreferrer",children:r}):r};return t?(0,a.jsx)(y,{}):(0,a.jsx)(i,{id:b.name||b.id,tag:h,children:(0,a.jsx)(y,{})})}},37040:(e,t,s)=>{s.d(t,{k:()=>o});var a=s(7893),r=s(28081),n=s(19957),i=s.n(n);let o=(0,r.forwardRef)(function(e,t){let{prefetch:s=!1,...r}=e;return(0,a.jsx)(i(),{prefetch:s,...r,ref:t})})},39389:(e,t,s)=>{s.r(t),s.d(t,{Tabs:()=>o,TabsContent:()=>d,TabsList:()=>l,TabsTrigger:()=>c});var a=s(7893),r=s(28081),n=s(48731),i=s(95745);let o=n.bL,l=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.B8,{ref:t,className:(0,i.cn)("bg-primary-alt inline-flex h-10 items-center justify-center rounded-md p-1 text-secondary",s),...r})});l.displayName=n.B8.displayName;let c=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.l9,{ref:t,className:(0,i.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",s),...r})});c.displayName=n.l9.displayName;let d=r.forwardRef((e,t)=>{let{className:s,...r}=e;return(0,a.jsx)(n.UC,{ref:t,className:(0,i.cn)("mt-2 ring-offset-background focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden",s),...r})});d.displayName=n.UC.displayName},41736:(e,t,s)=>{s.d(t,{M:()=>n,default:()=>i});var a=s(7893),r=s(28081);let n=(0,r.createContext)(null);function i(e){let{children:t}=e,[s,i]=(0,r.useState)(!1),o=r.Children.map(t,e=>(0,r.isValidElement)(e)?(0,r.cloneElement)(e,{onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),...e.props}):e);return(0,a.jsx)(n.Provider,{value:{hover:s,setHover:i},children:(0,a.jsx)(a.Fragment,{children:o})})}},44064:(e,t,s)=>{s.d(t,{default:()=>i});var a=s(7893),r=s(28081),n=s(27052);function i(e){let{limit:t,content:s}=e,i=(0,n.c)("UsageContentList"),[o,l]=(0,r.useState)(!1);return(0,a.jsxs)("ul",{className:"mt-0",children:[o?s:s.slice(0,Math.min(t,s.length)),!o&&s.length>t&&(0,a.jsx)("li",{className:"text-secondary",children:(0,a.jsx)("button",{className:"decoration-1 underline-offset-4 hover:underline",onClick:()=>l(!0),children:i("more")})})]})}},55242:(e,t,s)=>{s.d(t,{default:()=>l});var a=s(7893),r=s(28081),n=s(95745),i=s(48193),o=s(27052);function l(e){let{columns:t,rows:s,embedded:l,expandedBody:c}=e,[d,u]=(0,r.useState)(!1),m=(0,o.c)("ResponsiveTable");return(0,a.jsxs)("table",{className:(0,n.cn)("[&_td]:bg-primary-alt/50",l&&"mb-0"),children:[(0,a.jsx)("thead",{className:"hidden sm:table-header-group",children:(0,a.jsx)("tr",{children:t.map(e=>(0,a.jsx)("th",{className:"",children:e.label},e.key))})}),(0,a.jsxs)("tbody",{children:[s.map((e,s)=>(0,a.jsx)("tr",{className:"block border-0 sm:table-row",children:t.map(t=>(0,a.jsxs)("td",{className:(0,n.cn)("block border-b sm:table-cell sm:border",e[t.key].className),"data-label":t.label,children:[(0,a.jsx)("div",{className:"mb-1 font-semibold text-primary-alt sm:hidden",children:t.label}),(0,a.jsx)("div",{children:e[t.key].data})]},t.key))},s)),(0,a.jsx)("tr",{children:(0,a.jsx)("td",{colSpan:t.length,className:"no-table-bs group cursor-pointer bg-table-soft!",onClick:()=>u(!d),"data-open":d,children:(0,a.jsxs)("div",{className:"my-0.5 flex w-full flex-row items-center justify-end gap-4 text-secondary",children:[(0,a.jsx)("span",{className:"text-sm",children:m("expand")}),(0,a.jsx)("span",{children:(0,a.jsx)(i.A,{className:"size-4 group-data-[open=true]:rotate-180"})})]})})}),d&&(0,a.jsx)("tr",{children:(0,a.jsx)("td",{colSpan:t.length,className:"no-table-bs no-table-padding",children:c})})]})]})}},72103:(e,t,s)=>{s.r(t),s.d(t,{default:()=>i});var a=s(7893),r=s(4758),n=s(95745);function i(e){let t=e.id;return(0,a.jsxs)("h2",{...e,className:void 0,className:(0,n.cn)(e.className,"group"),children:[e.children,t&&(0,a.jsx)("a",{href:"#".concat(t),className:"inline-block pl-2 opacity-0 transition-opacity duration-200 group-hover:opacity-100 hover:opacity-100",children:(0,a.jsx)(r.A,{className:"h-5 w-5 text-primary"})})]})}},78890:(e,t,s)=>{s.r(t),s.d(t,{default:()=>o});var a=s(7893),r=s(20826),n=s(95745),i=s(7208);function o(e){let{hint:t,children:s}=e;return(0,a.jsxs)("span",{className:"inline-block",children:[(0,a.jsx)("span",{className:"sm:hidden",children:(0,a.jsxs)(i.AM,{children:[(0,a.jsx)(i.Wv,{className:(0,n.cn)("underline decoration-dotted decoration-2 underline-offset-2"),children:s}),(0,a.jsx)(i.hl,{side:"top",className:(0,n.cn)("slim-scrollbar max-h-56 max-w-[min(32rem,var(--radix-popper-available-width))]","animate-none! overflow-y-auto px-3 py-1.5 text-sm break-words whitespace-normal"),children:t})]})}),(0,a.jsx)("span",{className:"hidden sm:block",children:(0,a.jsx)(r.TooltipProvider,{delayDuration:200,children:(0,a.jsxs)(r.Tooltip,{children:[(0,a.jsx)(r.TooltipTrigger,{className:(0,n.cn)("cursor-help underline decoration-dotted decoration-2 underline-offset-2 select-text"),children:s}),(0,a.jsx)(r.TooltipContent,{side:"top",className:(0,n.cn)("slim-scrollbar max-h-56 max-w-[min(32rem,var(--radix-popper-available-width))] animate-none!","overflow-y-auto px-3 py-1.5 text-sm break-words whitespace-normal"),children:t})]})})})]})}},80123:(e,t,s)=>{s.r(t),s.d(t,{default:()=>o});var a=s(7893),r=s(28081),n=s(2938),i=s(95745);function o(e){var t;let{asset:s,width:o,height:l,alt:c,title:d,noTitle:u,...m}=e,p=(0,r.useRef)(null),[h,f]=(0,r.useState)(s.src);return(0,r.useEffect)(()=>{let e=p.current;if(!e)return;let t=()=>{f("/static/missing_item.png")};return e.addEventListener("error",t),e.complete&&0===e.naturalWidth&&t(),()=>{e.removeEventListener("error",t)}},[s.src]),(0,a.jsx)("div",{...m,className:(0,i.cn)("overflow-hidden",m.className),style:{width:"".concat(o||32,"px"),height:"".concat(l||32,"px")},children:(0,a.jsx)("img",{ref:p,width:o||32,height:l||32,src:h,alt:c||s.id,title:u?void 0:d||(null==(t=n.A.parse(s.id))?void 0:t.path),loading:"eager"})})}},82601:(e,t,s)=>{s.d(t,{$:()=>c});var a=s(7893),r=s(28081),n=s(85126),i=s(8295),o=s(95745);let l=(0,i.F)("inline-flex items-center justify-center rounded-sm text-sm font-medium whitespace-nowrap ring-offset-background transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"border border-primary bg-primary text-primary hover:bg-secondary/90",destructive:"border-destructive-secondary border bg-primary bg-secondary font-semibold text-destructive hover:bg-secondary/80 hover:text-destructive/90 data-[pending=true]:text-destructive/90",destructiveSecondary:"text-primary-alt hover:text-primary-alt/90 bg-destructive",outline:"border-quaternary hover:text-primary-alt border bg-primary hover:bg-secondary",secondary:"text-secondary-alt bg-secondary hover:bg-secondary/80",ghost:"hover:text-primary-alt hover:bg-secondary",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-sm px-3",lg:"h-11 rounded-sm px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=r.forwardRef((e,t)=>{let{className:s,variant:r,size:i,asChild:c=!1,...d}=e,u=c?n.DX:"button";return(0,a.jsx)(u,{className:(0,o.cn)(l({variant:r,size:i,className:s})),ref:t,...d})});c.displayName="Button"},83457:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});let a={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}},86373:(e,t,s)=>{s.d(t,{GL:()=>c,ww:()=>l,YE:()=>d,default:()=>u});var a=s(7893),r=s(28081);s(3317);var n=s(76089);s(82637);let i={userRequiresCookieConsent:function(){return!1}};var o=s(27052);let l=(0,r.createContext)(null),c="experience",d="yt_embeds";function u(e){let{children:t}=e,[s,u]=(0,r.useState)(!0),[m,p]=(0,r.useState)(!1),h=(0,o.c)("CookieConsent");function f(){p(n.tj(d,c))}return(0,r.useEffect)(()=>{let e=i.userRequiresCookieConsent();u(e),e&&n.eF({revision:1,guiOptions:{consentModal:{layout:"box inline"}},onFirstConsent:()=>{f()},onChange:()=>{f()},categories:{necessary:{enabled:!0,readOnly:!0},[c]:{services:{[d]:{label:h("sections.experience.services.embeds"),onAccept:()=>p(!0),onReject:()=>p(!1)}}}},language:{default:"en",translations:{en:{consentModal:{title:h("popup.title"),description:h("popup.description"),acceptAllBtn:h("actions.accept_all"),acceptNecessaryBtn:h("actions.reject_all"),showPreferencesBtn:h("popup.show_preferences")},preferencesModal:{title:h("modal.title"),acceptAllBtn:h("actions.accept_all"),acceptNecessaryBtn:h("actions.reject_all"),savePreferencesBtn:h("modal.save"),closeIconLabel:h("modal.close"),sections:[{title:h("sections.summary.title"),description:h("sections.summary.description")},{title:h("sections.necessary.title"),description:h("sections.necessary.description"),linkedCategory:"necessary"},{title:h("sections.experience.title"),description:h("sections.experience.description"),linkedCategory:"experience"},{title:h("sections.more_info.title"),description:h.raw("sections.more_info.description")}]}}}}})},[]),(0,a.jsx)(l.Provider,{value:{enableCookieManagement:s,hasConsentToEmbeddedVideos:m},children:t})}},87257:(e,t,s)=>{s.d(t,{default:()=>o});var a=s(7893),r=s(28081),n=s(28703),i=s(95745);function o(e){let{src:t,alt:s,width:o,height:l,fbWidth:c,fbHeight:d,className:u,title:m,strokeWidth:p=1,fixedSize:h,wrapper:f,fbIcon:x=n.A,fallback:v=(0,a.jsx)(x,{strokeWidth:p,className:(0,i.cn)(u,"text-secondary opacity-20"),width:c||o||32,height:d||l||32}),...b}=e,[g,y]=(0,r.useState)(!1);return(0,a.jsxs)("span",{title:m,style:h?{width:"".concat(o,"px"),height:"".concat(l,"px")}:void 0,...f,className:(0,i.cn)("shrink-0 overflow-hidden",null==f?void 0:f.className),children:[t&&!g&&(0,a.jsx)("img",{src:t,alt:s||"",width:o,height:l,className:u,onError:()=>y(!0),...b}),(!t||g)&&v]})}},92014:(e,t,s)=>{s.d(t,{default:()=>u});var a=s(7893),r=s(22235),n=s(82601),i=s(95745),o=s(28081),l=s(86373),c=s(76089),d=s(27052);function u(e){let{id:t,children:s}=e,u=(0,d.c)("VideoEmbedPlaceholder"),m=(0,o.useContext)(l.ww);if(!m||!m.enableCookieManagement||(null==m?void 0:m.hasConsentToEmbeddedVideos))return s;let p=t&&t.includes("?")?t.split("?")[0]:t,h="https://img.youtube.com/vi/".concat(t,"/maxresdefault.jpg");return(0,a.jsxs)("div",{className:(0,i.cn)("video-embed relative flex rounded-sm border border-tertiary bg-primary-alt text-center"),children:[(0,a.jsx)("img",{src:h,alt:"thumbnail",width:560}),(0,a.jsxs)("div",{className:"absolute-center flex h-full w-full flex-col items-center justify-center gap-5 bg-primary/80",children:[(0,a.jsx)(r.A,{className:"size-12 text-secondary-alt",strokeWidth:1.5}),(0,a.jsx)("div",{className:"text-xl",children:(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("span",{children:u("title")}),(0,a.jsx)("span",{className:"text-sm text-secondary",children:u("description")})]})}),(0,a.jsxs)("div",{className:"mt-2 flex flex-row flex-wrap justify-center gap-3",children:[(0,a.jsx)(n.$,{onClick:()=>void c.gB(l.YE,l.GL),children:u("accept")}),p&&(0,a.jsx)("a",{href:"https://www.youtube.com/watch?v=".concat(p),target:"_blank",rel:"noreferrer",children:(0,a.jsx)(n.$,{variant:"outline",children:u("watch")})})]})]})]})}},95054:(e,t,s)=>{s.d(t,{M$:()=>l,MZ:()=>r,cT:()=>o,gZ:()=>i,sw:()=>n});var a=s(2938);function r(e,t){var s;return null!=(s=o(t.id))?s:null!=t.page_ref?n(t.page_ref,e):null}function n(e,t){let s="slug"in t?t.slug:t.id;return"/".concat(t.locale,"/project/").concat(s,"/").concat(t.version,"/content/").concat(e)}function i(e,t){return"/".concat(e,"/project/").concat(t,"/latest")}function o(e){let t=a.A.parse(e);return(null==t?void 0:t.namespace)===a.o&&e.startsWith(a.o+":")?"https://minecraft.wiki/w/".concat(t.path):null}function l(e,t){return"/".concat(t.locale,"/project/").concat(t.id,"/").concat(t.version,"/docs/").concat(e)}},95745:(e,t,s)=>{s.d(t,{cn:()=>n});var a=s(3135),r=s(96915);function n(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,r.QP)((0,a.$)(t))}},96090:(e,t,s)=>{s.d(t,{default:()=>i});var a=s(7893),r=s(28736);s(28081);var n=s(95745);function i(e){let{className:t,active:s,animate:i=!0}=e;return(0,a.jsx)(r.A,{className:(0,n.cn)(t,"shrink-0 data-[rotate=true]:rotate-180",i&&"transition-transform duration-200"),"data-rotate":s?"true":"false"})}}}]);
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8777],{2008:(e,t,r)=>{r.d(t,{i:()=>o,l:()=>u,n:()=>y,o:()=>i,r:()=>d,t:()=>m});var l=r(95801),n=r(79254),s=r(28081);let u={method:"throttle",timeMs:function(){if("undefined"==typeof window||!window.GestureEvent)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}()};function i(e){return null===e||Array.isArray(e)&&0===e.length}function o(){let e=new Map;return{on(t,r){let l=e.get(t)||[];return l.push(r),e.set(t,l),()=>this.off(t,r)},off(t,r){let l=e.get(t);l&&e.set(t,l.filter(e=>e!==r))},emit(t,r){e.get(t)?.forEach(e=>e(r))}}}function a(e,t,r){let l=setTimeout(function(){e(),r.removeEventListener("abort",n)},t);function n(){clearTimeout(l),r.removeEventListener("abort",n)}r.addEventListener("abort",n)}function c(){let e=Promise;if(Promise.hasOwnProperty("withResolvers"))return Promise.withResolvers();let t=()=>{},r=()=>{};return{promise:new e((e,l)=>{t=e,r=l}),resolve:t,reject:r}}function h(){return new URLSearchParams(location.search)}var p=class{updateMap=new Map;options={history:"replace",scroll:!1,shallow:!0};timeMs=u.timeMs;transitions=new Set;resolvers=null;controller=null;lastFlushedAt=0;resetQueueOnNextPush=!1;push({key:e,query:t,options:r},n=u.timeMs){this.resetQueueOnNextPush&&(this.reset(),this.resetQueueOnNextPush=!1),(0,l.t)(7,e,t,r),this.updateMap.set(e,t),"push"===r.history&&(this.options.history="push"),r.scroll&&(this.options.scroll=!0),!1===r.shallow&&(this.options.shallow=!1),r.startTransition&&this.transitions.add(r.startTransition),(!Number.isFinite(this.timeMs)||n>this.timeMs)&&(this.timeMs=n)}getQueuedQuery(e){return this.updateMap.get(e)}getPendingPromise({getSearchParamsSnapshot:e=h}){return this.resolvers?.promise??Promise.resolve(e())}flush({getSearchParamsSnapshot:e=h,rateLimitFactor:t=1,...r},n){if(this.controller??=new AbortController,!Number.isFinite(this.timeMs))return(0,l.t)(8),Promise.resolve(e());if(this.resolvers)return this.resolvers.promise;this.resolvers=c();let s=()=>{this.lastFlushedAt=performance.now();let[t,l]=this.applyPendingUpdates({...r,autoResetQueueOnUpdate:r.autoResetQueueOnUpdate??!0,getSearchParamsSnapshot:e},n);null===l?(this.resolvers.resolve(t),this.resetQueueOnNextPush=!0):this.resolvers.reject(t),this.resolvers=null},u=()=>{let e=performance.now()-this.lastFlushedAt,r=this.timeMs,n=t*Math.max(0,r-e);(0,l.t)(9,n,r,t),0===n?s():a(s,n,this.controller.signal)};return a(u,0,this.controller.signal),this.resolvers.promise}abort(){return this.controller?.abort(),this.controller=new AbortController,this.resolvers?.resolve(new URLSearchParams),this.resolvers=null,this.reset()}reset(){let e=Array.from(this.updateMap.keys());return(0,l.t)(10,JSON.stringify(Object.fromEntries(this.updateMap))),this.updateMap.clear(),this.transitions.clear(),this.options={history:"replace",scroll:!1,shallow:!0},this.timeMs=u.timeMs,e}applyPendingUpdates(e,t){let{updateUrl:r,getSearchParamsSnapshot:s}=e,u=s();if((0,l.t)(11,this.updateMap.size,u.toString()),0===this.updateMap.size)return[u,null];let i=Array.from(this.updateMap.entries()),o={...this.options},a=Array.from(this.transitions);for(let[t,r]of(e.autoResetQueueOnUpdate&&this.reset(),(0,l.t)(12,i,o),i))null===r?u.delete(t):u=function(e,t,r){if("string"==typeof r)e.set(t,r);else{for(let l of(e.delete(t),r))e.append(t,l);e.has(t)||e.set(t,"")}return e}(u,t,r);if(t)try{u=t(u)}catch(e){return console.error((0,n.l)(502),i.map(([e])=>e).join(),e),this.resetQueueOnNextPush=!0,[u,e]}try{return!function(e,t){let r=t;for(let t=e.length-1;t>=0;t--){let l=e[t];if(!l)continue;let n=r;r=()=>l(n)}r()}(a,()=>r(u,o)),[u,null]}catch(e){return console.error((0,n.l)(429),i.map(([e])=>e).join(),e),[u,e]}}};let d=(0,n.o)("throttle-queue",()=>new p);var f=class{resolvers=c();controller=new AbortController;queuedValue=void 0;abort(){this.controller.abort(),this.queuedValue=void 0}push(e,t,r){return this.queuedValue=e,this.controller.abort(),this.controller=new AbortController,a(()=>{let t=this.resolvers;try{(0,l.t)(13,e);let n=r(e);(0,l.t)(14,this.queuedValue),this.queuedValue=void 0,this.resolvers=c(),n.then(e=>t.resolve(e)).catch(e=>t.reject(e))}catch(e){this.queuedValue=void 0,t.reject(e)}},t,this.controller.signal),this.resolvers.promise}},v=class{throttleQueue;queues=new Map;queuedQuerySync=o();constructor(e=new p){this.throttleQueue=e}push(e,t,r,n){if(!Number.isFinite(t))return Promise.resolve((r.getSearchParamsSnapshot??h)());let s=e.key,u=this.queues.get(s);u||((0,l.t)(15,s),u=new f,this.queues.set(s,u)),(0,l.t)(17,e);let i=()=>(this.throttleQueue.push(e),this.throttleQueue.flush(r,n).finally(()=>{this.queues.get(s)?.queuedValue===void 0&&((0,l.t)(16,s),this.queues.delete(s)),this.queuedQuerySync.emit(s)})),o=u.push(e,t,i);return this.queuedQuerySync.emit(s),o}abort(e){let t=this.queues.get(e);return t?((0,l.t)(18,e,t.queuedValue?.query),this.queues.delete(e),t.abort(),this.queuedQuerySync.emit(e),e=>(e.then(t.resolvers.resolve,t.resolvers.reject),e)):e=>e}abortAll(){for(let[e,t]of this.queues.entries())(0,l.t)(18,e,t.queuedValue?.query),t.abort(),t.resolvers.resolve(new URLSearchParams),this.queuedQuerySync.emit(e);this.queues.clear()}getQueuedQuery(e){let t=this.queues.get(e)?.queuedValue?.query;return void 0!==t?t:this.throttleQueue.getQueuedQuery(e)}};let m=(0,n.o)("debounce-controller",()=>new v(d));function y(e){return function(e,t,r){let l=(0,s.useCallback)(()=>{let t=Object.fromEntries(e.map(e=>[e,r(e)]));return[JSON.stringify(t),t]},[e.join(","),r]),n=(0,s.useRef)(null);return null===n.current&&(n.current=l()),(0,s.useSyncExternalStore)((0,s.useCallback)(r=>{let l=e.map(e=>t(e,r));return()=>l.forEach(e=>e())},[e.join(","),t]),()=>{let[e,t]=l();return n.current[0]===e?n.current[1]:(n.current=[e,t],t)},()=>n.current[1])}(e,(e,t)=>m.queuedQuerySync.on(e,t),e=>m.getQueuedQuery(e))}},27167:(e,t,r)=>{r.d(t,{A:()=>l});let l=(0,r(59717).A)("rotate-ccw-clock",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},37347:(e,t,r)=>{r.d(t,{ZA:()=>y});var l=r(2008),n=r(95801),s=r(79254),u=r(28081);function i(e,t){return Object.hasOwn(e,t)?e[t]:void 0}function o(e,t,r){try{return e(t)}catch(e){return r?(0,n.i)(25,t,e,r):(0,n.i)(24,t,e),null}}function a(e){function t(t){if(void 0===t)return null;let r=Array.isArray(t);return r&&void 0===t[0]?null:(t=r?t[0]:"string"==typeof t?t:"",o(e.parse,t))}return{type:"single",eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide(r){var l;return null!=(l=t(r))?l:e}}},withOptions(e){return{...this,...e}}}}function c(e,t){return e.valueOf()===t.valueOf()}a({parse:e=>e,serialize:String}),a({parse:e=>{let t=parseInt(e);return t==t?t:null},serialize:e=>""+Math.round(e)}),a({parse:e=>{let t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)}),a({parse:e=>{let t=parseInt(e,16);return t==t?t:null},serialize:e=>{let t=Math.round(e).toString(16);return t<"0"||!(1&t.length)?t:"0"+t}}),a({parse:e=>{let t=parseFloat(e);return t==t?t:null},serialize:String}),a({parse:e=>"true"===e.toLowerCase(),serialize:String}),a({parse:e=>{let t=new Date(parseInt(e));return+t==+t?t:null},serialize:e=>""+e.valueOf(),eq:c}),a({parse:e=>{let t=new Date(e);return+t==+t&&h.parse(e)?t:null},serialize:e=>e.toISOString(),eq:c});let h=a({parse:e=>{let t=new Date(e.slice(0,10));return+t==+t&&h.serialize(t)===e.slice(0,10)?t:null},serialize:e=>e.toISOString().slice(0,10),eq:c}),p=(0,s.o)("sync-emitter",()=>(0,l.i)()),d={},f=(e,t)=>"defaultValue"===e?void 0:t;function v(e,t,r,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=!1,c=Object.entries(e).reduce((e,c)=>{var h,p,d;let[f,v]=c,m=t[f],y=i(n,m),g="multi"===v.type?[]:null,b=void 0===y?"multi"===v.type?r.getAll(m):r.get(m):y,w=i(u,f);return void 0!==w&&((d=null!=(h=i(s,m))?h:g)===b||null!==d&&null!==b&&"string"!=typeof d&&"string"!=typeof b&&d.length===b.length&&d.every((e,t)=>e===b[t]))?e[f]=w:(a=!0,e[f]=null!=(p=(0,l.o)(b)?null:o(v.parse,b,m))?p:null,s[m]=b),e},{});return a||(a=Object.keys(c).length!==Object.keys(u).length),[a,c]}function m(e,t){return Object.fromEntries(Object.keys(e).map(r=>{var l,n,s;return[r,null!=(s=null!=(n=e[r])?n:null==(l=t[r])?void 0:l.defaultValue)?s:null]}))}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{parse:r=e=>e,type:o,serialize:a,eq:c,defaultValue:h,...y}=t,[{[e]:g},b]=function(e){var t,r,o,a,c;let h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},y=(0,u.useId)(),g=(0,s.i)(),b=(0,s.a)(),{history:w=null!=(t=null==g?void 0:g.history)?t:"replace",scroll:O=null!=(r=null==g?void 0:g.scroll)&&r,shallow:S=null==(o=null==g?void 0:g.shallow)||o,throttleMs:q=l.l.timeMs,limitUrlUpdates:M=null==g?void 0:g.limitUrlUpdates,clearOnDefault:j=null==(a=null==g?void 0:g.clearOnDefault)||a,startTransition:A,urlKeys:k=d}=h,P=Object.keys(e).join(","),Q=(0,u.useRef)(e),x=Q.current,C=JSON.stringify(Object.entries(x),f)===JSON.stringify(Object.entries(e),f)&&Object.entries(e).every(e=>{var t,r,l;let[n,s]=e;if((null==(t=x[n])?void 0:t.startTransition)!==s.startTransition)return!1;let u=null==(r=x[n])?void 0:r.defaultValue,i=s.defaultValue;return!!Object.is(u,i)||void 0!==u&&void 0!==i&&(null==(l=s.eq)?void 0:l.call(s,u,i))===!0})?x:e;Q.current=C;let U=(0,u.useMemo)(()=>Object.fromEntries(Object.keys(e).map(e=>{var t;return[e,null!=(t=i(k,e))?t:e]})),[P,JSON.stringify(k)]),E=Object.values(U),N=(0,s.r)(E),R=N.searchParams,V=(0,u.useRef)(null),z=(0,u.useRef)(null),L=(0,l.n)(E),[T]=(0,u.useState)(()=>{let t={},[,r]=v(e,U,R,L,t);return[r,t]}),F=(0,u.useRef)(T[1]),[_,D]=(0,u.useState)(T[0]),I=(0,u.useRef)(_),J=e=>JSON.stringify([E.map(t=>[t,e.getAll(t)]),L]),$=J(R),B=()=>{let[t,r]=v(e,U,R,L,F.current,I.current);return t&&((0,n.t)(1,y,P,r),I.current=r,D(r)),t},H=Object.keys(F.current).join("&")!==E.join("&"),G=null===z.current||z.current===(null!=(c=N.pathname)?c:location.pathname);if(H)V.current=$,B(),F.current=Object.fromEntries(Object.entries(U).map(t=>{var r;let[l,n]=t;return[n,(null==(r=e[l])?void 0:r.type)==="multi"?R.getAll(n):R.get(n)]}));else{let e=!1;G&&V.current!==$&&(V.current=$,e=B()),!e&&_!==I.current&&(G||void 0===N.pathname&&V.current===J(new URLSearchParams(location.search)))&&D(I.current)}(0,u.useEffect)(()=>{var e;z.current=null!=(e=N.pathname)?e:location.pathname,B()},[$,N.pathname]),(0,u.useEffect)(()=>{let t=[];for(let[r,l]of Object.entries(U)){let s=t=>{let{state:s,query:u}=t;D(t=>{var i,o,a;return Object.is(null!=(o=t[r])?o:null,s)?((0,n.t)(2,y,P,l,s,null==(a=e[r])?void 0:a.defaultValue,I.current),t):(I.current={...I.current,[r]:s},F.current[l]=u,(0,n.t)(3,y,P,l,s,null==(i=e[r])?void 0:i.defaultValue,I.current),I.current)})};(0,n.t)(4,y,l,P),p.on(l,s),t.push([l,s])}return()=>{for(let[e,r]of t)(0,n.t)(5,y,e,P),p.off(e,r)}},[P,U]);let W=(0,u.useCallback)(function(e){var t,r,s,u,o,a,c,h,d,f,v,g,k,Q,x,E,R,V,z;let L,T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},F=null!=(t="function"==typeof e?e(m(I.current,C)):e)?t:Object.fromEntries(Object.keys(C).map(e=>[e,null]));(0,n.t)(6,y,P,F);let _=0,D=[];for(let[e,t]of Object.entries(F)){let n=i(C,e),m=U[e];if(!n||void 0===m||void 0===t)continue;(null!=(s=null!=(r=T.clearOnDefault)?r:n.clearOnDefault)?s:j)&&null!==t&&void 0!==n.defaultValue&&(null!=(u=n.eq)?u:function(e,t){return e===t})(t,n.defaultValue)&&(t=null);let y=null===t?null:(null!=(o=n.serialize)?o:String)(t);p.emit(m,{state:t,query:y});let P={key:m,query:y,options:{history:null!=(c=null!=(a=T.history)?a:n.history)?c:w,shallow:null!=(d=null!=(h=T.shallow)?h:n.shallow)?d:S,scroll:null!=(v=null!=(f=T.scroll)?f:n.scroll)?v:O,startTransition:null!=(k=null!=(g=T.startTransition)?g:n.startTransition)?k:A}},F=null!=(x=null!=(Q=T.limitUrlUpdates)?Q:n.limitUrlUpdates)?x:M;if((null==F?void 0:F.method)==="debounce"){let e=null!=(E=F.timeMs)?E:l.l.timeMs,t=l.t.push(P,e,N,b);_<e&&(L=t,_=e)}else{let e=null!=(z=null!=(V=null!=(R=null==F?void 0:F.timeMs)?R:T.throttleMs)?V:n.throttleMs)?z:q;D.push(l.t.abort(m)),l.r.push(P,e)}}let J=D.length?l.r.flush(N,b):l.r.getPendingPromise(N);for(let e of D)J=e(J);return null!=L?L:J},[P,w,S,O,q,null==M?void 0:M.method,null==M?void 0:M.timeMs,A,j,C,U,N.updateUrl,N.getSearchParamsSnapshot,N.rateLimitFactor,b]);return[(0,u.useMemo)(()=>m(_,C),[_,C]),W]}({[e]:{parse:r,type:o,serialize:a,eq:c,defaultValue:h}},y);return[g,(0,u.useCallback)(function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b(r=>({[e]:"function"==typeof t?t(r[e]):t}),r)},[e,b])]}},49777:(e,t,r)=>{r.d(t,{A:()=>l});let l=(0,r(59717).A)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]])},79254:(e,t,r)=>{r.d(t,{a:()=>f,c:()=>u,i:()=>d,l:()=>s,n:()=>h,o:()=>a,r:()=>p,s:()=>i});var l=r(28081);let n={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?",502:"`processUrlSearchParams` threw while processing key(s) `%s`. %O"};function s(e){return`[nuqs] ${n[e]}
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1387],{2008:(e,t,r)=>{r.d(t,{i:()=>o,l:()=>u,n:()=>y,o:()=>i,r:()=>d,t:()=>m});var l=r(95801),n=r(79254),s=r(28081);let u={method:"throttle",timeMs:function(){if("undefined"==typeof window||!window.GestureEvent)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}()};function i(e){return null===e||Array.isArray(e)&&0===e.length}function o(){let e=new Map;return{on(t,r){let l=e.get(t)||[];return l.push(r),e.set(t,l),()=>this.off(t,r)},off(t,r){let l=e.get(t);l&&e.set(t,l.filter(e=>e!==r))},emit(t,r){e.get(t)?.forEach(e=>e(r))}}}function a(e,t,r){let l=setTimeout(function(){e(),r.removeEventListener("abort",n)},t);function n(){clearTimeout(l),r.removeEventListener("abort",n)}r.addEventListener("abort",n)}function c(){let e=Promise;if(Promise.hasOwnProperty("withResolvers"))return Promise.withResolvers();let t=()=>{},r=()=>{};return{promise:new e((e,l)=>{t=e,r=l}),resolve:t,reject:r}}function h(){return new URLSearchParams(location.search)}var p=class{updateMap=new Map;options={history:"replace",scroll:!1,shallow:!0};timeMs=u.timeMs;transitions=new Set;resolvers=null;controller=null;lastFlushedAt=0;resetQueueOnNextPush=!1;push({key:e,query:t,options:r},n=u.timeMs){this.resetQueueOnNextPush&&(this.reset(),this.resetQueueOnNextPush=!1),(0,l.t)(7,e,t,r),this.updateMap.set(e,t),"push"===r.history&&(this.options.history="push"),r.scroll&&(this.options.scroll=!0),!1===r.shallow&&(this.options.shallow=!1),r.startTransition&&this.transitions.add(r.startTransition),(!Number.isFinite(this.timeMs)||n>this.timeMs)&&(this.timeMs=n)}getQueuedQuery(e){return this.updateMap.get(e)}getPendingPromise({getSearchParamsSnapshot:e=h}){return this.resolvers?.promise??Promise.resolve(e())}flush({getSearchParamsSnapshot:e=h,rateLimitFactor:t=1,...r},n){if(this.controller??=new AbortController,!Number.isFinite(this.timeMs))return(0,l.t)(8),Promise.resolve(e());if(this.resolvers)return this.resolvers.promise;this.resolvers=c();let s=()=>{this.lastFlushedAt=performance.now();let[t,l]=this.applyPendingUpdates({...r,autoResetQueueOnUpdate:r.autoResetQueueOnUpdate??!0,getSearchParamsSnapshot:e},n);null===l?(this.resolvers.resolve(t),this.resetQueueOnNextPush=!0):this.resolvers.reject(t),this.resolvers=null},u=()=>{let e=performance.now()-this.lastFlushedAt,r=this.timeMs,n=t*Math.max(0,r-e);(0,l.t)(9,n,r,t),0===n?s():a(s,n,this.controller.signal)};return a(u,0,this.controller.signal),this.resolvers.promise}abort(){return this.controller?.abort(),this.controller=new AbortController,this.resolvers?.resolve(new URLSearchParams),this.resolvers=null,this.reset()}reset(){let e=Array.from(this.updateMap.keys());return(0,l.t)(10,JSON.stringify(Object.fromEntries(this.updateMap))),this.updateMap.clear(),this.transitions.clear(),this.options={history:"replace",scroll:!1,shallow:!0},this.timeMs=u.timeMs,e}applyPendingUpdates(e,t){let{updateUrl:r,getSearchParamsSnapshot:s}=e,u=s();if((0,l.t)(11,this.updateMap.size,u.toString()),0===this.updateMap.size)return[u,null];let i=Array.from(this.updateMap.entries()),o={...this.options},a=Array.from(this.transitions);for(let[t,r]of(e.autoResetQueueOnUpdate&&this.reset(),(0,l.t)(12,i,o),i))null===r?u.delete(t):u=function(e,t,r){if("string"==typeof r)e.set(t,r);else{for(let l of(e.delete(t),r))e.append(t,l);e.has(t)||e.set(t,"")}return e}(u,t,r);if(t)try{u=t(u)}catch(e){return console.error((0,n.l)(502),i.map(([e])=>e).join(),e),this.resetQueueOnNextPush=!0,[u,e]}try{return!function(e,t){let r=t;for(let t=e.length-1;t>=0;t--){let l=e[t];if(!l)continue;let n=r;r=()=>l(n)}r()}(a,()=>r(u,o)),[u,null]}catch(e){return console.error((0,n.l)(429),i.map(([e])=>e).join(),e),[u,e]}}};let d=(0,n.o)("throttle-queue",()=>new p);var f=class{resolvers=c();controller=new AbortController;queuedValue=void 0;abort(){this.controller.abort(),this.queuedValue=void 0}push(e,t,r){return this.queuedValue=e,this.controller.abort(),this.controller=new AbortController,a(()=>{let t=this.resolvers;try{(0,l.t)(13,e);let n=r(e);(0,l.t)(14,this.queuedValue),this.queuedValue=void 0,this.resolvers=c(),n.then(e=>t.resolve(e)).catch(e=>t.reject(e))}catch(e){this.queuedValue=void 0,t.reject(e)}},t,this.controller.signal),this.resolvers.promise}},v=class{throttleQueue;queues=new Map;queuedQuerySync=o();constructor(e=new p){this.throttleQueue=e}push(e,t,r,n){if(!Number.isFinite(t))return Promise.resolve((r.getSearchParamsSnapshot??h)());let s=e.key,u=this.queues.get(s);u||((0,l.t)(15,s),u=new f,this.queues.set(s,u)),(0,l.t)(17,e);let i=()=>(this.throttleQueue.push(e),this.throttleQueue.flush(r,n).finally(()=>{this.queues.get(s)?.queuedValue===void 0&&((0,l.t)(16,s),this.queues.delete(s)),this.queuedQuerySync.emit(s)})),o=u.push(e,t,i);return this.queuedQuerySync.emit(s),o}abort(e){let t=this.queues.get(e);return t?((0,l.t)(18,e,t.queuedValue?.query),this.queues.delete(e),t.abort(),this.queuedQuerySync.emit(e),e=>(e.then(t.resolvers.resolve,t.resolvers.reject),e)):e=>e}abortAll(){for(let[e,t]of this.queues.entries())(0,l.t)(18,e,t.queuedValue?.query),t.abort(),t.resolvers.resolve(new URLSearchParams),this.queuedQuerySync.emit(e);this.queues.clear()}getQueuedQuery(e){let t=this.queues.get(e)?.queuedValue?.query;return void 0!==t?t:this.throttleQueue.getQueuedQuery(e)}};let m=(0,n.o)("debounce-controller",()=>new v(d));function y(e){return function(e,t,r){let l=(0,s.useCallback)(()=>{let t=Object.fromEntries(e.map(e=>[e,r(e)]));return[JSON.stringify(t),t]},[e.join(","),r]),n=(0,s.useRef)(null);return null===n.current&&(n.current=l()),(0,s.useSyncExternalStore)((0,s.useCallback)(r=>{let l=e.map(e=>t(e,r));return()=>l.forEach(e=>e())},[e.join(","),t]),()=>{let[e,t]=l();return n.current[0]===e?n.current[1]:(n.current=[e,t],t)},()=>n.current[1])}(e,(e,t)=>m.queuedQuerySync.on(e,t),e=>m.getQueuedQuery(e))}},19244:(e,t,r)=>{r.d(t,{A:()=>l});let l=(0,r(99680).A)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]])},37347:(e,t,r)=>{r.d(t,{ZA:()=>y});var l=r(2008),n=r(95801),s=r(79254),u=r(28081);function i(e,t){return Object.hasOwn(e,t)?e[t]:void 0}function o(e,t,r){try{return e(t)}catch(e){return r?(0,n.i)(25,t,e,r):(0,n.i)(24,t,e),null}}function a(e){function t(t){if(void 0===t)return null;let r=Array.isArray(t);return r&&void 0===t[0]?null:(t=r?t[0]:"string"==typeof t?t:"",o(e.parse,t))}return{type:"single",eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide(r){var l;return null!=(l=t(r))?l:e}}},withOptions(e){return{...this,...e}}}}function c(e,t){return e.valueOf()===t.valueOf()}a({parse:e=>e,serialize:String}),a({parse:e=>{let t=parseInt(e);return t==t?t:null},serialize:e=>""+Math.round(e)}),a({parse:e=>{let t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)}),a({parse:e=>{let t=parseInt(e,16);return t==t?t:null},serialize:e=>{let t=Math.round(e).toString(16);return t<"0"||!(1&t.length)?t:"0"+t}}),a({parse:e=>{let t=parseFloat(e);return t==t?t:null},serialize:String}),a({parse:e=>"true"===e.toLowerCase(),serialize:String}),a({parse:e=>{let t=new Date(parseInt(e));return+t==+t?t:null},serialize:e=>""+e.valueOf(),eq:c}),a({parse:e=>{let t=new Date(e);return+t==+t&&h.parse(e)?t:null},serialize:e=>e.toISOString(),eq:c});let h=a({parse:e=>{let t=new Date(e.slice(0,10));return+t==+t&&h.serialize(t)===e.slice(0,10)?t:null},serialize:e=>e.toISOString().slice(0,10),eq:c}),p=(0,s.o)("sync-emitter",()=>(0,l.i)()),d={},f=(e,t)=>"defaultValue"===e?void 0:t;function v(e,t,r,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=!1,c=Object.entries(e).reduce((e,c)=>{var h,p,d;let[f,v]=c,m=t[f],y=i(n,m),g="multi"===v.type?[]:null,b=void 0===y?"multi"===v.type?r.getAll(m):r.get(m):y,w=i(u,f);return void 0!==w&&((d=null!=(h=i(s,m))?h:g)===b||null!==d&&null!==b&&"string"!=typeof d&&"string"!=typeof b&&d.length===b.length&&d.every((e,t)=>e===b[t]))?e[f]=w:(a=!0,e[f]=null!=(p=(0,l.o)(b)?null:o(v.parse,b,m))?p:null,s[m]=b),e},{});return a||(a=Object.keys(c).length!==Object.keys(u).length),[a,c]}function m(e,t){return Object.fromEntries(Object.keys(e).map(r=>{var l,n,s;return[r,null!=(s=null!=(n=e[r])?n:null==(l=t[r])?void 0:l.defaultValue)?s:null]}))}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{parse:r=e=>e,type:o,serialize:a,eq:c,defaultValue:h,...y}=t,[{[e]:g},b]=function(e){var t,r,o,a,c;let h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},y=(0,u.useId)(),g=(0,s.i)(),b=(0,s.a)(),{history:w=null!=(t=null==g?void 0:g.history)?t:"replace",scroll:O=null!=(r=null==g?void 0:g.scroll)&&r,shallow:S=null==(o=null==g?void 0:g.shallow)||o,throttleMs:q=l.l.timeMs,limitUrlUpdates:M=null==g?void 0:g.limitUrlUpdates,clearOnDefault:j=null==(a=null==g?void 0:g.clearOnDefault)||a,startTransition:A,urlKeys:k=d}=h,P=Object.keys(e).join(","),Q=(0,u.useRef)(e),x=Q.current,C=JSON.stringify(Object.entries(x),f)===JSON.stringify(Object.entries(e),f)&&Object.entries(e).every(e=>{var t,r,l;let[n,s]=e;if((null==(t=x[n])?void 0:t.startTransition)!==s.startTransition)return!1;let u=null==(r=x[n])?void 0:r.defaultValue,i=s.defaultValue;return!!Object.is(u,i)||void 0!==u&&void 0!==i&&(null==(l=s.eq)?void 0:l.call(s,u,i))===!0})?x:e;Q.current=C;let U=(0,u.useMemo)(()=>Object.fromEntries(Object.keys(e).map(e=>{var t;return[e,null!=(t=i(k,e))?t:e]})),[P,JSON.stringify(k)]),E=Object.values(U),N=(0,s.r)(E),R=N.searchParams,V=(0,u.useRef)(null),z=(0,u.useRef)(null),L=(0,l.n)(E),[T]=(0,u.useState)(()=>{let t={},[,r]=v(e,U,R,L,t);return[r,t]}),F=(0,u.useRef)(T[1]),[_,D]=(0,u.useState)(T[0]),I=(0,u.useRef)(_),J=e=>JSON.stringify([E.map(t=>[t,e.getAll(t)]),L]),$=J(R),B=()=>{let[t,r]=v(e,U,R,L,F.current,I.current);return t&&((0,n.t)(1,y,P,r),I.current=r,D(r)),t},H=Object.keys(F.current).join("&")!==E.join("&"),G=null===z.current||z.current===(null!=(c=N.pathname)?c:location.pathname);if(H)V.current=$,B(),F.current=Object.fromEntries(Object.entries(U).map(t=>{var r;let[l,n]=t;return[n,(null==(r=e[l])?void 0:r.type)==="multi"?R.getAll(n):R.get(n)]}));else{let e=!1;G&&V.current!==$&&(V.current=$,e=B()),!e&&_!==I.current&&(G||void 0===N.pathname&&V.current===J(new URLSearchParams(location.search)))&&D(I.current)}(0,u.useEffect)(()=>{var e;z.current=null!=(e=N.pathname)?e:location.pathname,B()},[$,N.pathname]),(0,u.useEffect)(()=>{let t=[];for(let[r,l]of Object.entries(U)){let s=t=>{let{state:s,query:u}=t;D(t=>{var i,o,a;return Object.is(null!=(o=t[r])?o:null,s)?((0,n.t)(2,y,P,l,s,null==(a=e[r])?void 0:a.defaultValue,I.current),t):(I.current={...I.current,[r]:s},F.current[l]=u,(0,n.t)(3,y,P,l,s,null==(i=e[r])?void 0:i.defaultValue,I.current),I.current)})};(0,n.t)(4,y,l,P),p.on(l,s),t.push([l,s])}return()=>{for(let[e,r]of t)(0,n.t)(5,y,e,P),p.off(e,r)}},[P,U]);let W=(0,u.useCallback)(function(e){var t,r,s,u,o,a,c,h,d,f,v,g,k,Q,x,E,R,V,z;let L,T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},F=null!=(t="function"==typeof e?e(m(I.current,C)):e)?t:Object.fromEntries(Object.keys(C).map(e=>[e,null]));(0,n.t)(6,y,P,F);let _=0,D=[];for(let[e,t]of Object.entries(F)){let n=i(C,e),m=U[e];if(!n||void 0===m||void 0===t)continue;(null!=(s=null!=(r=T.clearOnDefault)?r:n.clearOnDefault)?s:j)&&null!==t&&void 0!==n.defaultValue&&(null!=(u=n.eq)?u:function(e,t){return e===t})(t,n.defaultValue)&&(t=null);let y=null===t?null:(null!=(o=n.serialize)?o:String)(t);p.emit(m,{state:t,query:y});let P={key:m,query:y,options:{history:null!=(c=null!=(a=T.history)?a:n.history)?c:w,shallow:null!=(d=null!=(h=T.shallow)?h:n.shallow)?d:S,scroll:null!=(v=null!=(f=T.scroll)?f:n.scroll)?v:O,startTransition:null!=(k=null!=(g=T.startTransition)?g:n.startTransition)?k:A}},F=null!=(x=null!=(Q=T.limitUrlUpdates)?Q:n.limitUrlUpdates)?x:M;if((null==F?void 0:F.method)==="debounce"){let e=null!=(E=F.timeMs)?E:l.l.timeMs,t=l.t.push(P,e,N,b);_<e&&(L=t,_=e)}else{let e=null!=(z=null!=(V=null!=(R=null==F?void 0:F.timeMs)?R:T.throttleMs)?V:n.throttleMs)?z:q;D.push(l.t.abort(m)),l.r.push(P,e)}}let J=D.length?l.r.flush(N,b):l.r.getPendingPromise(N);for(let e of D)J=e(J);return null!=L?L:J},[P,w,S,O,q,null==M?void 0:M.method,null==M?void 0:M.timeMs,A,j,C,U,N.updateUrl,N.getSearchParamsSnapshot,N.rateLimitFactor,b]);return[(0,u.useMemo)(()=>m(_,C),[_,C]),W]}({[e]:{parse:r,type:o,serialize:a,eq:c,defaultValue:h}},y);return[g,(0,u.useCallback)(function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b(r=>({[e]:"function"==typeof t?t(r[e]):t}),r)},[e,b])]}},68032:(e,t,r)=>{r.d(t,{A:()=>l});let l=(0,r(99680).A)("rotate-ccw-clock",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},79254:(e,t,r)=>{r.d(t,{a:()=>f,c:()=>u,i:()=>d,l:()=>s,n:()=>h,o:()=>a,r:()=>p,s:()=>i});var l=r(28081);let n={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?",502:"`processUrlSearchParams` threw while processing key(s) `%s`. %O"};function s(e){return`[nuqs] ${n[e]}
2
2
  See https://nuqs.dev/NUQS-${e}`}function u(e){if(0===e.size)return"";let t=[];for(let[r,l]of e.entries()){let e=r.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${e}=${l.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/[\x00-\x1F]/g,e=>encodeURIComponent(e))}`)}return"?"+t.join("&")}let i="2.10.1",o={};function a(e,t){let r=Symbol.for(`nuqs.${i}.${e}`),l=globalThis;if(null!=l[r])return l[r];let n=Object.isExtensible(l)?l:o;return n[r]??=t()}let c=function(e,t,r){let l=a(e,()=>new WeakMap);return l.has(t)||l.set(t,r()),l.get(t)}("adapter-context",l.createContext,()=>{let e=(0,l.createContext)({useAdapter(){throw Error(s(404))}});return e.displayName="NuqsAdapterContext",e});function h(e){return({children:t,defaultOptions:r,processUrlSearchParams:n,...s})=>(0,l.createElement)(c.Provider,{...s,value:{useAdapter:e,defaultOptions:r,processUrlSearchParams:n}},t)}function p(e){let t=(0,l.useContext)(c);if(!("useAdapter"in t))throw Error(s(404));return t.useAdapter(e)}"undefined"!=typeof window&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==c&&console.error(s(303)),window.__NuqsAdapterContext=c);let d=()=>(0,l.useContext)(c).defaultOptions,f=()=>(0,l.useContext)(c).processUrlSearchParams},95801:(e,t,r)=>{function l(e){}function n(e){}r.d(t,{i:()=>n,t:()=>l}),r(16298)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4254],{1528:(e,t,n)=>{n.d(t,{A:()=>r});function r(e){return e}},5416:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(99680).A)("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]])},31639:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(41574),l=n(28081),o=n.t(l,2),a=n(67580),i=o["use".trim()],u=n(20369),c=n(9864),s=n(30330),d=n(7893),f=n(7794);function p(e){let{Link:t,config:n,getPathname:o,...p}=function(e,t){var n,o,a;let f={...n=t||{},localePrefix:"object"==typeof(a=n.localePrefix)?a:{mode:a||"always"},localeCookie:!!((o=n.localeCookie)??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof o&&o},localeDetection:n.localeDetection??!0,alternateLinks:n.alternateLinks??!0},p=f.pathnames,h=(0,l.forwardRef)(function({href:t,locale:n,...r},l){let o,a;"object"==typeof t?(o=t.pathname,a=t.params):o=t;let s=(0,u._x)(t),h=e(),m=(0,u.yL)(h)?i(h):h,g=s?v({locale:n||m,href:null==p?o:{pathname:o,params:a},forcePrefix:null!=n||void 0}):o;return(0,d.jsx)(c.default,{ref:l,href:"object"==typeof t?{...t,pathname:g}:g,locale:n,localeCookie:f.localeCookie,...r})});function v(e){let t,{forcePrefix:n,href:r,locale:l}=e;return null==p?"object"==typeof r?(t=r.pathname,r.query&&(t+=(0,s.Zn)(r.query))):t=r:t=(0,s.FP)({locale:l,...(0,s.TK)(r),pathnames:f.pathnames}),(0,s.x3)(t,l,f,n)}function m(e){return function(t,...n){return e(v(t),...n)}}return{config:f,Link:h,redirect:m(r.redirect),permanentRedirect:m(r.permanentRedirect),getPathname:v}}(a.Ym,e);return{...p,Link:t,usePathname:function(){let e=function(e){let t=(0,r.usePathname)(),n=(0,a.Ym)();return(0,l.useMemo)(()=>{if(!t)return t;let r=t,l=(0,u.XP)(n,e.localePrefix);if((0,u.wO)(l,t))r=(0,u.MY)(t,l);else if("never"!==e.localePrefix.mode&&e.localePrefix.prefixes){let e=(0,u.bL)(n);(0,u.wO)(e,t)&&(r=(0,u.MY)(t,e))}return r},[e.localePrefix,n,t])}(n),t=(0,a.Ym)();return(0,l.useMemo)(()=>e&&n.pathnames?(0,s.aM)(t,e,n.pathnames):e,[t,e])},useRouter:function(){let e=(0,r.useRouter)(),t=(0,a.Ym)(),i=(0,r.usePathname)();return(0,l.useMemo)(()=>{function r(e){return function(r,l){let{locale:a,...u}=l||{},c=[o({href:r,locale:a||t,forcePrefix:null!=a||void 0})];Object.keys(u).length>0&&c.push(u),(0,f.A)(n.localeCookie,i,t,a),e(...c)}}return{...e,push:r(e.push),replace:r(e.replace),prefetch:r(e.prefetch)}},[t,i,e])},getPathname:o}}},39591:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(99680).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},61660:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(99680).A)("book-marked",[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]])},97461:(e,t,n)=>{n.d(t,{UC:()=>Q,YJ:()=>ef,In:()=>z,q7:()=>eg,VF:()=>ey,p4:()=>ew,JU:()=>ep,ZL:()=>Z,bL:()=>U,wn:()=>ek,PP:()=>eb,wv:()=>ej,l9:()=>W,WT:()=>q,LM:()=>ec});var r=n(28081),l=n(63220);function o(e,[t,n]){return Math.min(n,Math.max(t,e))}(0,Object.defineProperty)(o,"name",{value:"clamp",configurable:!0});var a=n(51016),i=n(93992),u=n(46988),c=n(25020),s=n(42019),d=n(5721),f=n(89087),p=n(39734),h=n(68285),v=n(14182),m=n(15673),g=n(17312),x=n(21851),w=n(85126),y=n(66325),S=n(45415),b=n(58307);function C(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(0,Object.defineProperty)(C,"name",{value:"usePrevious",configurable:!0});var k=n(9389),P=n(69536),j=n(79923),T=n(7893),R=Object.defineProperty,I=(e,t)=>R(e,"name",{value:t,configurable:!0}),M=[" ","Enter","ArrowUp","ArrowDown"],E=[" ","Enter"],L="Select",[D,A,K]=(0,i.N)(L),[H,B]=(0,c.A)(L,[K,v.Bk]),_=(0,v.Bk)(),[N,O]=H(L),[V,F]=H(L);function G(e){let{__scopeSelect:t,children:n,open:l,defaultOpen:o,onOpenChange:a,value:i,defaultValue:u,onValueChange:c,dir:d,name:f,autoComplete:p,disabled:m,required:g,form:x,internal_do_not_use_render:w}=e,y=_(t),[b,C]=r.useState(null),[k,P]=r.useState(null),[j,R]=r.useState(!1),M=(0,s.jH)(d),[E,A]=(0,S.i)({prop:l,defaultProp:null!=o&&o,onChange:a,caller:L}),[K,H]=(0,S.i)({prop:i,defaultProp:u,onChange:c,caller:L}),B=r.useRef(null),O=r.useRef(K);r.useEffect(()=>{let e=x?null==b?void 0:b.ownerDocument.getElementById(x):null==b?void 0:b.form;if(e instanceof HTMLFormElement){let t=I(()=>H(O.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[x,b,H]);let F=!b||!!x||!!b.closest("form"),[G,U]=r.useState(new Set),W=(0,h.B)(),q=Array.from(G).map(e=>e.props.value).join(";"),z=r.useCallback(e=>{U(t=>new Set(t).add(e))},[]),Y=r.useCallback(e=>{U(t=>{let n=new Set(t);return n.delete(e),n})},[]),X={required:g,trigger:b,onTriggerChange:C,valueNode:k,onValueNodeChange:P,valueNodeHasChildren:j,onValueNodeHasChildrenChange:R,contentId:W,value:K,onValueChange:H,open:E,onOpenChange:A,dir:M,triggerPointerDownPosRef:B,disabled:m,name:f,autoComplete:p,form:x,nativeOptions:G,nativeSelectKey:q,isFormControl:F};return(0,T.jsx)(v.bL,{...y,children:(0,T.jsx)(N,{scope:t,...X,children:(0,T.jsx)(D.Provider,{scope:t,children:(0,T.jsx)(V,{scope:t,onNativeOptionAdd:z,onNativeOptionRemove:Y,children:eR(w)?w(X):n})})})})}I(G,"SelectProvider");var U=I(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,T.jsx)(G,{__scopeSelect:t,...r,internal_do_not_use_render:e=>{let{isFormControl:r}=e;return(0,T.jsxs)(T.Fragment,{children:[n,r?(0,T.jsx)(eT,{__scopeSelect:t}):null]})}})},"Select"),W=r.forwardRef(I(function(e,t){let{__scopeSelect:n,disabled:l=!1,...o}=e,i=_(n),c=O("SelectTrigger",n),s=c.disabled||l,d=(0,u.s)(t,c.onTriggerChange),f=A(n),p=r.useRef("touch"),[h,m,g]=eM(e=>{let t=f().filter(e=>!e.disabled),n=t.find(e=>e.value===c.value),r=eE(t,e,n);void 0!==r&&c.onValueChange(r.value)}),w=I(e=>{s||(c.onOpenChange(!0),g()),e&&(c.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},"handleOpen");return(0,T.jsx)(v.Mz,{asChild:!0,...i,children:(0,T.jsx)(x.sG.button,{type:"button",role:"combobox","aria-controls":c.open?c.contentId:void 0,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":eI(c.value)?"":void 0,...o,ref:d,onClick:(0,a.mK)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&w(e)}),onPointerDown:(0,a.mK)(o.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(w(e),e.preventDefault())}),onKeyDown:(0,a.mK)(o.onKeyDown,e=>{let t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&M.includes(e.key)&&(w(),e.preventDefault())})})})},"SelectTrigger")),q=r.forwardRef(I(function(e,t){let{__scopeSelect:n,className:l,style:o,children:a,placeholder:i="",...c}=e,s=O("SelectValue",n),{onValueNodeHasChildrenChange:d}=s,f=void 0!==a,p=(0,u.s)(t,s.onValueNodeChange);(0,b.N)(()=>{d(f)},[d,f]);let h=eI(s.value);return(0,T.jsx)(x.sG.span,{...c,asChild:!h&&c.asChild,ref:p,style:{pointerEvents:"none"},children:(0,T.jsx)(r.Fragment,{children:h?i:a},h?"placeholder":"value")})},"SelectValue")),z=r.forwardRef(I(function(e,t){let{__scopeSelect:n,children:r,...l}=e;return(0,T.jsx)(x.sG.span,{"aria-hidden":!0,...l,ref:t,children:r||"▼"})},"SelectIcon")),[Y,X]=H("SelectPortal",{forceMount:void 0}),Z=I(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,T.jsx)(Y,{scope:e.__scopeSelect,forceMount:n,children:(0,T.jsx)(m.Z,{asChild:!0,...r})})},"SelectPortal"),J="SelectContent",Q=r.forwardRef(I(function(e,t){let n=X(J,e.__scopeSelect),{forceMount:l=n.forceMount,...o}=e,a=O(J,e.__scopeSelect),[i,u]=r.useState();return(0,b.N)(()=>{u(new DocumentFragment)},[]),(0,T.jsx)(g.C,{present:l||a.open,children:e=>{let{present:n}=e;return n?(0,T.jsx)(er,{...o,ref:t}):(0,T.jsx)($,{...o,fragment:i})}})},"SelectContent")),$=r.forwardRef(I(function(e,t){let{__scopeSelect:n,children:r,fragment:o}=e;return o?l.createPortal((0,T.jsx)(ee,{scope:n,children:(0,T.jsx)(D.Slot,{scope:n,children:(0,T.jsx)("div",{ref:t,children:r})})}),o):null},"SelectContentFragment")),[ee,et]=H(J),en=(0,w.TL)("SelectContent.RemoveScroll"),er=r.forwardRef(I(function(e,t){let{__scopeSelect:n}=e,{position:l="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:c,side:s,sideOffset:h,align:v,alignOffset:m,arrowPadding:g,collisionBoundary:x,collisionPadding:w,sticky:y,hideWhenDetached:S,avoidCollisions:b,...C}=e,k=O(J,n),[R,M]=r.useState(null),[E,L]=r.useState(null),D=(0,u.s)(t,M),[K,H]=r.useState(null),[B,_]=r.useState(null),N=A(n),[V,F]=r.useState(!1),G=r.useRef(!1);r.useEffect(()=>{if(R)return(0,P.Eq)(R)},[R]),(0,f.Oh)();let U=r.useCallback(e=>{let[t,...n]=N().map(e=>e.ref.current),[r]=n.slice(-1),l=document.activeElement;for(let n of e)if(n===l||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&E&&(E.scrollTop=0),n===r&&E&&(E.scrollTop=E.scrollHeight),null==n||n.focus(),document.activeElement!==l))return},[N,E]),W=r.useCallback(()=>U([K,R]),[U,K,R]);r.useEffect(()=>{V&&W()},[V,W]);let{onOpenChange:q,triggerPointerDownPosRef:z}=k;r.useEffect(()=>{if(R){let e={x:0,y:0},t=I(t=>{var n,r,l,o;e={x:Math.abs(Math.round(t.pageX)-(null!=(l=null==(n=z.current)?void 0:n.x)?l:0)),y:Math.abs(Math.round(t.pageY)-(null!=(o=null==(r=z.current)?void 0:r.y)?o:0))}},"handlePointerMove"),n=I(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(R)||q(!1),document.removeEventListener("pointermove",t),z.current=null},"handlePointerUp");return null!==z.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[R,q,z]),r.useEffect(()=>{let e=I(()=>q(!1),"close");return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[q]);let[Y,X]=eM(e=>{let t=N().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=eE(t,e,n);r&&setTimeout(()=>{var e;return null==(e=r.ref.current)?void 0:e.focus()})}),Z=r.useCallback((e,t,n)=>{let r=!G.current&&!n;(void 0!==k.value&&k.value===t||r)&&(H(e),r&&(G.current=!0))},[k.value]),Q=r.useCallback(()=>null==R?void 0:R.focus(),[R]),$=r.useCallback((e,t,n)=>{let r=!G.current&&!n;(void 0!==k.value&&k.value===t||r)&&_(e)},[k.value]),et="popper"===l?eo:el;return(0,T.jsx)(ee,{scope:n,content:R,viewport:E,onViewportChange:L,itemRefCallback:Z,selectedItem:K,onItemLeave:Q,itemTextRefCallback:$,focusSelectedItem:W,selectedItemText:B,position:l,isPositioned:V,searchRef:Y,children:(0,T.jsx)(j.A,{as:en,allowPinchZoom:!0,children:(0,T.jsx)(p.n,{asChild:!0,trapped:k.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.mK)(o,e=>{var t;null==(t=k.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,T.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>k.onOpenChange(!1),children:(0,T.jsx)(et,{role:"listbox",id:k.contentId,"data-state":k.open?"open":"closed",dir:k.dir,onContextMenu:e=>e.preventDefault(),...C,...et===eo?{side:s,sideOffset:h,align:v,alignOffset:m,arrowPadding:g,collisionBoundary:x,collisionPadding:w,sticky:y,hideWhenDetached:S,avoidCollisions:b}:{},onPlaced:()=>F(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:(0,a.mK)(C.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||X(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=N().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>U(t)),e.preventDefault()}})})})})})})},"SelectContentImpl")),el=r.forwardRef(I(function(e,t){let{__scopeSelect:n,onPlaced:l,...a}=e,i=O(J,n),c=et(J,n),[s,d]=r.useState(null),[f,p]=r.useState(null),h=(0,u.s)(t,p),v=A(n),m=r.useRef(!1),g=r.useRef(!0),{viewport:w,selectedItem:y,selectedItemText:S,focusSelectedItem:C}=c,k=r.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&f&&w&&y&&S){let e=i.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),r=S.getBoundingClientRect();if("rtl"!==i.dir){let l=r.left-t.left,a=n.left-l,i=e.left-a,u=e.width+i,c=Math.max(u,t.width),d=o(a,[10,Math.max(10,window.innerWidth-10-c)]);s.style.minWidth=u+"px",s.style.left=d+"px"}else{let l=t.right-r.right,a=window.innerWidth-n.right-l,i=window.innerWidth-e.right-a,u=e.width+i,c=Math.max(u,t.width),d=o(a,[10,Math.max(10,window.innerWidth-10-c)]);s.style.minWidth=u+"px",s.style.right=d+"px"}let a=v(),u=window.innerHeight-20,c=w.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),x=p+h+c+parseInt(d.paddingBottom,10)+g,b=Math.min(5*y.offsetHeight,x),C=window.getComputedStyle(w),k=parseInt(C.paddingTop,10),P=parseInt(C.paddingBottom,10),j=e.top+e.height/2-10,T=y.offsetHeight/2,R=p+h+(y.offsetTop+T);if(R<=j){let e=a.length>0&&y===a[a.length-1].ref.current;s.style.bottom="0px";let t=Math.max(u-j,T+(e?P:0)+(f.clientHeight-w.offsetTop-w.offsetHeight)+g);s.style.height=R+t+"px"}else{let e=a.length>0&&y===a[0].ref.current;s.style.top="0px";let t=Math.max(j,p+w.offsetTop+(e?k:0)+T);s.style.height=t+(x-R)+"px",w.scrollTop=R-j+w.offsetTop}s.style.margin="".concat(10,"px 0"),s.style.minHeight=b+"px",s.style.maxHeight=u+"px",null==l||l(),requestAnimationFrame(()=>m.current=!0)}},[v,i.trigger,i.valueNode,s,f,w,y,S,i.dir,l]);(0,b.N)(()=>k(),[k]);let[P,j]=r.useState();(0,b.N)(()=>{f&&j(window.getComputedStyle(f).zIndex)},[f]);let R=r.useCallback(e=>{e&&!0===g.current&&(k(),null==C||C(),g.current=!1)},[k,C]);return(0,T.jsx)(ea,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:m,onScrollButtonChange:R,children:(0,T.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P},children:(0,T.jsx)(x.sG.div,{...a,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})},"SelectItemAlignedPosition")),eo=r.forwardRef(I(function(e,t){let{__scopeSelect:n,align:r="start",collisionPadding:l=10,...o}=e,a=_(n);return(0,T.jsx)(v.UC,{...a,...o,ref:t,align:r,collisionPadding:l,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[ea,ei]=H(J,{}),eu="SelectViewport",ec=r.forwardRef(I(function(e,t){let{__scopeSelect:n,nonce:l,...o}=e,i=et(eu,n),c=ei(eu,n),s=(0,u.s)(t,i.onViewportChange),d=r.useRef(0);return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),(0,T.jsx)(D.Slot,{scope:n,children:(0,T.jsx)(x.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,a.mK)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=c;if((null==r?void 0:r.current)&&n){let e=Math.abs(d.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,l=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(l<r){let o=l+e,a=Math.min(r,o),i=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=i>0?i:0,n.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})},"SelectViewport")),[es,ed]=H("SelectGroup"),ef=r.forwardRef(I(function(e,t){let{__scopeSelect:n,...r}=e,l=(0,h.B)();return(0,T.jsx)(es,{scope:n,id:l,children:(0,T.jsx)(x.sG.div,{role:"group","aria-labelledby":l,...r,ref:t})})},"SelectGroup")),ep=r.forwardRef(I(function(e,t){let{__scopeSelect:n,...r}=e,l=ed("SelectLabel",n);return(0,T.jsx)(x.sG.div,{id:l.id,...r,ref:t})},"SelectLabel")),eh="SelectItem",[ev,em]=H(eh),eg=r.forwardRef(I(function(e,t){let{__scopeSelect:n,value:l,disabled:o=!1,textValue:i,...c}=e,s=O(eh,n),d=et(eh,n),f=s.value===l,[p,v]=r.useState(null!=i?i:""),[m,g]=r.useState(!1),w=(0,y.c)(e=>{var t;return null==(t=d.itemRefCallback)?void 0:t.call(d,e,l,o)}),S=(0,u.s)(t,w),b=(0,h.B)(),C=r.useRef("touch"),k=I(()=>{o||(s.onValueChange(l),s.onOpenChange(!1))},"handleSelect");return(0,T.jsx)(ev,{scope:n,value:l,disabled:o,textId:b,isSelected:f,onItemTextChange:r.useCallback(e=>{v(t=>{var n;return t||(null!=(n=null==e?void 0:e.textContent)?n:"").trim()})},[]),children:(0,T.jsx)(D.ItemSlot,{scope:n,value:l,disabled:o,textValue:p,children:(0,T.jsx)(x.sG.div,{role:"option","aria-labelledby":b,"data-highlighted":m?"":void 0,"aria-selected":f&&m,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...c,ref:S,onFocus:(0,a.mK)(c.onFocus,()=>g(!0)),onBlur:(0,a.mK)(c.onBlur,()=>g(!1)),onClick:(0,a.mK)(c.onClick,()=>{"mouse"!==C.current&&k()}),onPointerUp:(0,a.mK)(c.onPointerUp,()=>{"mouse"===C.current&&k()}),onPointerDown:(0,a.mK)(c.onPointerDown,e=>{C.current=e.pointerType}),onPointerMove:(0,a.mK)(c.onPointerMove,e=>{if(C.current=e.pointerType,o){var t;null==(t=d.onItemLeave)||t.call(d)}else"mouse"===C.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,a.mK)(c.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=d.onItemLeave)||t.call(d)}}),onKeyDown:(0,a.mK)(c.onKeyDown,e=>{var t;o||e.target!==e.currentTarget||((null==(t=d.searchRef)?void 0:t.current)===""||" "!==e.key)&&(E.includes(e.key)&&k()," "===e.key&&e.preventDefault())})})})})},"SelectItem")),ex="SelectItemText",ew=r.forwardRef(I(function(e,t){let{__scopeSelect:n,className:o,style:a,...i}=e,c=O(ex,n),s=et(ex,n),d=em(ex,n),f=F(ex,n),[p,h]=r.useState(null),v=(0,y.c)(e=>{var t;return null==(t=s.itemTextRefCallback)?void 0:t.call(s,e,d.value,d.disabled)}),m=(0,u.s)(t,h,d.onItemTextChange,v),g=null==p?void 0:p.textContent,w=r.useMemo(()=>(0,T.jsx)("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:S,onNativeOptionRemove:C}=f;return(0,b.N)(()=>(S(w),()=>C(w)),[S,C,w]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(x.sG.span,{id:d.textId,...i,ref:m}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren&&!eI(c.value)?l.createPortal(i.children,c.valueNode):null]})},"SelectItemText")),ey=r.forwardRef(I(function(e,t){let{__scopeSelect:n,...r}=e;return em("SelectItemIndicator",n).isSelected?(0,T.jsx)(x.sG.span,{"aria-hidden":!0,...r,ref:t}):null},"SelectItemIndicator")),eS="SelectScrollUpButton",eb=r.forwardRef(I(function(e,t){let n=et(eS,e.__scopeSelect),l=ei(eS,e.__scopeSelect),[o,a]=r.useState(!1),i=(0,u.s)(t,l.onScrollButtonChange);return(0,b.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)};I(e,"handleScroll");let t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,T.jsx)(eP,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null},"SelectScrollUpButton")),eC="SelectScrollDownButton",ek=r.forwardRef(I(function(e,t){let n=et(eC,e.__scopeSelect),l=ei(eC,e.__scopeSelect),[o,a]=r.useState(!1),i=(0,u.s)(t,l.onScrollButtonChange);return(0,b.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)};I(e,"handleScroll");let t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,T.jsx)(eP,{...e,ref:i,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null},"SelectScrollDownButton")),eP=r.forwardRef(I(function(e,t){let{__scopeSelect:n,onAutoScroll:l,...o}=e,i=et("SelectScrollButton",n),u=r.useRef(null),c=A(n),s=r.useCallback(()=>{null!==u.current&&(window.clearInterval(u.current),u.current=null)},[]);return r.useEffect(()=>()=>s(),[s]),(0,b.N)(()=>{var e;let t=c().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[c]),(0,T.jsx)(x.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,a.mK)(o.onPointerDown,()=>{null===u.current&&(u.current=window.setInterval(l,50))}),onPointerMove:(0,a.mK)(o.onPointerMove,()=>{var e;null==(e=i.onItemLeave)||e.call(i),null===u.current&&(u.current=window.setInterval(l,50))}),onPointerLeave:(0,a.mK)(o.onPointerLeave,()=>{s()})})},"SelectScrollButtonImpl")),ej=r.forwardRef(I(function(e,t){let{__scopeSelect:n,...r}=e;return(0,T.jsx)(x.sG.div,{"aria-hidden":!0,...r,ref:t})},"SelectSeparator")),eT=r.forwardRef(I(function(e,t){let{__scopeSelect:n,...l}=e,o=O("SelectBubbleInput",n),{value:a,onValueChange:i,required:c,disabled:s,name:d,autoComplete:f,form:p}=o,{nativeOptions:h,nativeSelectKey:v}=o,m=r.useRef(null),g=(0,u.s)(t,m),w=null!=a?a:"",y=C(w),S=Array.from(h).some(e=>{var t;return(null!=(t=e.props.value)?t:"")===""});return r.useEffect(()=>{let e=m.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(y!==w&&t){let n=new Event("change",{bubbles:!0});t.call(e,w),e.dispatchEvent(n)}},[y,w]),(0,T.jsxs)(x.sG.select,{"aria-hidden":!0,required:c,tabIndex:-1,name:d,autoComplete:f,disabled:s,form:p,onChange:e=>i(e.target.value),...l,style:{...k.Qg,...l.style},ref:g,defaultValue:w,children:[eI(a)&&!S?(0,T.jsx)("option",{value:""}):null,Array.from(h)]},v)},"SelectBubbleInput"));function eR(e){return"function"==typeof e}function eI(e){return""===e||void 0===e}function eM(e){let t=(0,y.c)(e),n=r.useRef(""),l=r.useRef(0),o=r.useCallback(e=>{t(n.current+e)},[t]),a=r.useCallback(()=>{n.current="",window.clearTimeout(l.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(l.current),[]),[n,o,a]}function eE(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=n?e.indexOf(n):-1,o=eL(e,Math.max(l,0));1===r.length&&(o=o.filter(e=>e!==n));let a=o.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return a!==n?a:void 0}function eL(e,t){return e.map((n,r)=>e[(t+r)%e.length])}I(eR,"isFunction"),I(eI,"shouldShowPlaceholder"),I(eM,"useTypeaheadSearch"),I(eE,"findNextItem"),I(eL,"wrapArray")}}]);