1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3572,33035],{3572:(e,t,r)=>{r.r(t),r.d(t,{MenuItemCollapse:()=>h});var a=r(37876),n=r(69181),l=r(33035),i=r(89099),s=r(14232);let h=e=>{var t,r;let{link:h}=e,[c,o]=(0,s.useState)(!1),u=(null==h||null==(t=h.subMenus)?void 0:t.length)>0,[d,f]=(0,s.useState)(!1),g=(0,i.useRouter)();if(!h||!h.show)return null;let x=(null==h?void 0:h.href)==="#"?"#".concat(h.name):h.href,p=g.pathname===h.href||g.asPath===h.href;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"text-black"+(p?"text-white hover:text-white":"hover:text-gray-600")+" px-7 w-full text-left duration-200 dark:border-black",onClick:()=>{o(!c)},children:[!u&&(0,a.jsx)(l.A,{href:x,target:null==h?void 0:h.target,className:"py-2 w-full my-auto items-center justify-between flex ",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"".concat(h.icon," text-center w-4 mr-4")}),h.name]})}),u&&(0,a.jsxs)("div",{onClick:u?()=>{f(!d)}:null,className:"py-2 flex justify-between cursor-pointer dark:text-gray-400 dark:hover:text-white font-bold no-underline tracking-widest",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"".concat(h.icon," text-center w-4 mr-2")}),h.name]}),(0,a.jsx)("div",{className:"inline-flex items-center ",children:(0,a.jsx)("i",{className:"px-2 fas fa-chevron-right transition-all duration-200 ".concat(d?"rotate-90":"")})})]})]}),u&&(0,a.jsx)(n.A,{isOpen:d,onHeightChange:e.onHeightChange,children:null==h||null==(r=h.subMenus)?void 0:r.map((e,t)=>{let r=(null==e?void 0:e.href)==="#"?"#".concat(e.name):e.href;return(0,a.jsx)("div",{className:" py-2 px-14 cursor-pointer hover:bg-gray-100 dark:text-gray-400 dark:hover:text-white font-bold dark:bg-black text-left justify-start text-gray-600 bg-gray-50 bg-opacity-20 dark:hover:bg-gray-600 tracking-widest transition-all duration-200",children:(0,a.jsx)(l.A,{href:r,target:"_self",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"".concat((null==e?void 0:e.icon)?null==e?void 0:e.icon:"fas fa-hashtag"," text-center w-3 mr-2 text-xs")}),e.title]})})},t)})})]})}},33035:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(37876),n=r(48230),l=r.n(n),i=r(22507);let s=e=>{let{href:t,children:r,...n}=e,s=(0,i.CQ)("LINK"),h="";"string"==typeof t?h=t:"object"==typeof t&&null!==t&&"string"==typeof t.pathname&&(h=t.pathname);let c=h.startsWith("http")&&!h.startsWith(s),o=()=>{var e;let t=new URLSearchParams((null==(e=window.location.search)?void 0:e.slice(1))||""),r={};for(let[e,a]of t.entries())""!==a&&(r[e]=a);return r};if(c){let e="string"==typeof t?t:new URL(t.pathname,s).toString();return(0,a.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",...(e=>{let{passHref:t,legacyBehavior:r,placeholderSrc:a,fallbackSrc:n,...l}=e;return l})(n),children:r})}let u="string"==typeof t?(e=>{if("string"!=typeof e||!e||e.startsWith("#"))return e;let t=o();if(0===Object.keys(t).length)return e;let r=e.startsWith("http://")||e.startsWith("https://"),a=new URL(e,s);return(Object.entries(t).forEach(e=>{let[t,r]=e;a.searchParams.has(t)||a.searchParams.set(t,r)}),r)?a.toString():"".concat(a.pathname).concat(a.search).concat(a.hash)})(t):(e=>{if(!e||"object"!=typeof e)return e;let t=o();return 0===Object.keys(t).length?e:{...e,query:{...t,...e.query||{}}}})(t);return(0,a.jsx)(l(),{href:u,...(e=>{let{placeholderSrc:t,fallbackSrc:r,src:a,alt:n,width:l,height:i,loading:s,decoding:h,onLoad:c,onError:o,...u}=e;return u})(n),children:r})}},69181:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(37876),n=r(14232);let l=e=>{let{type:t="vertical",isOpen:r=!1,children:l,onHeightChange:i,className:s,collapseRef:h}=e,c=(0,n.useRef)(null);return(0,n.useImperativeHandle)(h,()=>({updateCollapseHeight:e=>{let{height:t,increase:a}=e;r&&(c.current.style.height=c.current.scrollHeight,c.current.style.height="auto")}})),(0,n.useEffect)(()=>{r?(e=>{let r=e.scrollHeight,a=e.scrollWidth,n=0;switch(t){case"horizontal":e.style.width=a+"px",n=setTimeout(()=>{e.style.width="auto"},400);break;case"vertical":e.style.height=r+"px",n=setTimeout(()=>{e.style.height="auto"},400)}clearTimeout(n)})(c.current):(e=>{let r=e.scrollHeight,a=e.scrollWidth;requestAnimationFrame(function(){switch(t){case"horizontal":e.style.width=a+"px",requestAnimationFrame(function(){e.style.width="0px"});break;case"vertical":e.style.height=r+"px",requestAnimationFrame(function(){e.style.height="0px"})}})}
1)(c.current),i&&i({height:c.current.scrollHeight,increase:r})},[r]),(0,a.jsx)("div",{ref:c,style:"vertical"===t?{height:"0px",willChange:"height"}:{width:"0px",willChange:"width"},className:"".concat(s||""," overflow-hidden duration-300"),children:l})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.