1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[10420,83107,76210],{83107:function(e,a,t){t.r(a),t.d(a,{MenuItemCollapse:function(){return o}});var l=t(85893),r=t(22468),n=t(41664),s=t.n(n),i=t(67294);let o=e=>{var a;let{link:t}=e,[n,o]=(0,i.useState)(!1),d=(null==t?void 0:null===(a=t.subMenus)||void 0===a?void 0:a.length)>0,[c,u]=(0,i.useState)(!1);return t&&t.show?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"w-full px-8 py-3 text-left border-b dark:bg-hexo-black-gray dark:border-black",onClick:()=>{o(!n)},children:[!d&&(0,l.jsx)(s(),{href:null==t?void 0:t.href,target:null==t?void 0:t.target,className:"items-center flex justify-between pl-2 pr-4 dark:text-gray-200 no-underline tracking-widest pb-1",children:(0,l.jsxs)("span",{className:"text-blue-600 dark:text-blue-300 hover:text-red-400 transition-all items-center duration-200",children:[(null==t?void 0:t.icon)&&(0,l.jsx)("span",{className:"mr-2",children:(0,l.jsx)("i",{className:t.icon})}),null==t?void 0:t.name]})}),d&&(0,l.jsxs)("div",{onClick:d?()=>{u(!c)}:null,className:"items-center flex justify-between pl-2 pr-4 cursor-pointer dark:text-gray-200 no-underline tracking-widest pb-1",children:[(0,l.jsxs)("span",{className:"text-blue-600 dark:text-blue-300 hover:text-red-400 transition-all items-center duration-200",children:[(null==t?void 0:t.icon)&&(0,l.jsx)("span",{className:"mr-2",children:(0,l.jsx)("i",{className:t.icon})}),null==t?void 0:t.name]}),(0,l.jsx)("i",{className:"px-2 fa fa-plus transition-all duration-200 ".concat(c&&"rotate-45"," text-gray-400")})]})]}),d&&(0,l.jsx)(r.Z,{isOpen:c,onHeightChange:e.onHeightChange,children:t.subMenus.map((e,a)=>(0,l.jsx)("div",{className:"dark:bg-black text-left px-10 justify-start text-blue-600 dark:text-blue-300 bg-gray-50 hover:bg-gray-50 dark:hover:bg-gray-900 tracking-widest transition-all duration-200 border-b dark:border-gray-800 py-3 pr-6",children:(0,l.jsx)(s(),{href:e.href,target:null==t?void 0:t.target,children:(0,l.jsxs)("span",{className:"ml-4 text-sm",children:[(null==e?void 0:e.icon)&&(0,l.jsx)("span",{className:"mr-2 w-4",children:(0,l.jsx)("i",{className:e.icon})}),e.title]})})},a))})]}):null}},76210:function(e,a,t){t.r(a),t.d(a,{MenuItemDrop:function(){return i}});var l=t(85893),r=t(41664),n=t.n(r),s=t(67294);let i=e=>{var a;let{link:t}=e,[r,i]=(0,s.useState)(!1),o=(null==t?void 0:null===(a=t.subMenus)||void 0===a?void 0:a.length)>0;return t&&t.show?(0,l.jsxs)("div",{onMouseOver:()=>i(!0),onMouseOut:()=>i(!1),children:[!o&&(0,l.jsxs)(n(),{href:null==t?void 0:t.href,target:null==t?void 0:t.target,className:" menu-link pl-2 pr-4 text-gray-700 dark:text-gray-200 no-underline tracking-widest pb-1",children:[(null==t?void 0:t.icon)&&(0,l.jsx)("span",{className:"mr-2",children:(0,l.jsx)("i",{className:t.icon})}),null==t?void 0:t.name,o&&(0,l.jsx)("i",{className:"px-2 fa fa-angle-down"})]}),o&&(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"cursor-pointer menu-link pl-2 pr-4 text-gray-700 dark:text-gray-200 no-underline tracking-widest pb-1",children:[(null==t?void 0:t.icon)&&(0,l.jsx)("span",{className:"mr-2",children:(0,l.jsx)("i",{className:t.icon})})," ",null==t?void 0:t.name,(0,l.jsx)("i",{className:"px-2 fas fa-chevron-down duration-500 transition-all ".concat(r?" rotate-180":"")})]})}),o&&(0,l.jsx)("ul",{className:"".concat(r?"visible opacity-100 top-12":"invisible opacity-0 top-10"," border-gray-100 bg-white dark:bg-black dark:border-gray-800 transition-all duration-300 z-20 absolute block drop-shadow-lg "),children:t.subMenus.map((e,a)=>(0,l.jsx)("li",{className:"not:last-child:border-b-0 border-b text-blue-600 dark:text-blue-300 hover:bg-gray-50 dark:hover:bg-gray-900 tracking-widest transition-all duration-200 dark:border-gray-800 py-3 pr-6 pl-2",children:(0,l.jsx)(n(),{href:e.href,target:null==t?void 0:t.target,children:(0,l.jsxs)("span",{className:"text-sm text-nowrap",children:[(null==e?void 0:e.icon)&&(0,l.jsx)("i",{className:null==e?void 0:e.icon,children:" \xa0 "}),e.title]})})},a))})]}):null}},89364:function(e,a,t){t.r(a),t.d(a,{MenuList:function(){return h}});
1var l=t(85893),r=t(22468),n=t(69325),s=t(26964),i=t(11163),o=t(67294),d=t(74678),c=t(83107),u=t(76210);let h=e=>{let{customNav:a,customMenu:t}=e,{locale:h}=(0,s.O)(),[m,x]=(0,o.useState)(!1),f=e=>{x(!1)},p=(0,i.useRouter)(),g=(0,o.useRef)(null);(0,o.useEffect)(()=>{p.events.on("routeChangeStart",f)});let b=[{icon:"fas fa-search",name:h.NAV.SEARCH,href:"/search",show:(0,n.JA)("SIMPLE_MENU_SEARCH",null,d.default)},{icon:"fas fa-archive",name:h.NAV.ARCHIVE,href:"/archive",show:(0,n.JA)("SIMPLE_MENU_ARCHIVE",null,d.default)},{icon:"fas fa-folder",name:h.COMMON.CATEGORY,href:"/category",show:(0,n.JA)("SIMPLE_MENU_CATEGORY",null,d.default)},{icon:"fas fa-tag",name:h.COMMON.TAGS,href:"/tag",show:(0,n.JA)("SIMPLE_MENU_TAG",null,d.default)}];return(a&&(b=b.concat(a)),(0,n.JA)("CUSTOM_MENU")&&(b=t),b&&0!==b.length)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{id:"nav-menu-pc",className:"hidden md:flex my-auto",children:null==b?void 0:b.map((e,a)=>(0,l.jsx)(u.MenuItemDrop,{link:e},a))}),(0,l.jsxs)("div",{id:"nav-menu-mobile",className:"flex md:hidden my-auto justify-start",children:[(0,l.jsxs)("div",{onClick:()=>{x(!m)},className:"cursor-pointer hover:text-red-400 transition-all duration-200",children:[(0,l.jsx)("i",{className:"".concat(m&&"rotate-90"," transition-all duration-200 fa fa-bars mr-3")}),(0,l.jsx)("span",{children:m?"CLOSE":"MENU"})]}),(0,l.jsx)(r.Z,{collapseRef:g,className:"absolute w-full top-12 left-0",isOpen:m,children:(0,l.jsx)("div",{id:"menu-wrap",className:"bg-white dark:border-hexo-black-gray border",children:null==b?void 0:b.map((e,a)=>(0,l.jsx)(c.MenuItemCollapse,{link:e,onHeightChange:e=>{var a;return null===(a=g.current)||void 0===a?void 0:a.updateCollapseHeight(e)}},a))})})]})]}):null}},10420:function(e,a,t){t.r(a),t.d(a,{default:function(){return d}});var l=t(85893),r=t(69325),n=t(11163),s=t(67294),i=t(30844),o=t(89364);function d(e){let[a,t]=(0,s.useState)(!1),d=(0,n.useRouter)(),{searchModal:c}=(0,i.useSimpleGlobal)();return(0,l.jsx)("nav",{className:"w-full bg-white md:pt-0 relative z-20 shadow border-t border-gray-100 dark:border-hexo-black-gray dark:bg-black",children:(0,l.jsxs)("div",{id:"nav-bar-inner",className:"h-12 mx-auto max-w-9/10 justify-between items-center text-sm md:text-md md:justify-start",children:[(0,l.jsxs)("div",{className:"h-full w-full float-left text-center md:text-left flex flex-wrap items-stretch md:justify-start md:items-start space-x-4",children:[a&&(0,l.jsx)("input",{autoFocus:!0,id:"simple-search",onKeyUp:e=>{if(13===e.keyCode){let e=document.getElementById("simple-search").innerText;e&&d.push({pathname:"/search/"+e})}},className:"float-left w-full outline-none h-full px-4","aria-label":"Submit search",type:"search",name:"s",autoComplete:"off",placeholder:"Type then hit enter to search..."}),!a&&(0,l.jsx)(o.MenuList,{...e})]}),(0,l.jsx)("div",{className:"absolute right-12 h-full text-center px-2 flex items-center text-blue-400 cursor-pointer",children:(0,l.jsx)("i",{className:a?"fa-regular fa-circle-xmark":"fa-solid fa-magnifying-glass align-middle",onClick:()=>{(0,r.JA)("ALGOLIA_APP_ID")?c.current.openSearch():t(!a)}})})]})})}}}]);
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.