PageSourceSearch

https://www.barnman.cc/_next/static/chunks/1693.791cfe8d858efadf.js

js barnman.cc collected 2026-09-25 22:27:58 UTC 30,899 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1693,26083,94036,29839,15990,82563,45803,19819,80790,96039,44228,98141,21879,22405,41311,26595,13224,6569],{26083:function(e,t,a){a.r(t),a.d(t,{ArticleFooter:function(){return i}});var r=a(85893),l=a(11163),n=a(26964),s=a(69325);let i=e=>{let t=(0,l.useRouter)(),{locale:a}=(0,n.O)();return(0,r.jsxs)("div",{className:"flex justify-between font-medium text-gray-500 dark:text-gray-400",children:[(0,r.jsx)("a",{children:(0,r.jsxs)("button",{onClick:()=>t.push((0,s.JA)("path")||"/"),className:"mt-2 cursor-pointer hover:text-black dark:hover:text-gray-100",children:["← ",a.POST.BACK]})}),(0,r.jsx)("a",{children:(0,r.jsxs)("button",{onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),className:"mt-2 cursor-pointer hover:text-black dark:hover:text-gray-100",children:["↑ ",a.POST.TOP]})})]})}},94036:function(e,t,a){a.r(t),a.d(t,{ArticleInfo:function(){return u}});var r=a(85893),l=a(25675),n=a.n(l),s=a(9128),i=a(88495),o=a.n(i),c=a(69325),d=a(67968);let u=e=>{let{post:t}=e,a=o()((0,c.JA)("CONTACT_EMAIL","#"));return(0,r.jsx)("section",{className:"flex-wrap flex mt-2 text-gray--600 dark:text-gray-400 font-light leading-8",children:(0,r.jsxs)("div",{children:[(0,r.jsxs)("h1",{className:"font-bold text-3xl text-black dark:text-white",children:[(0,c.JA)("POST_TITLE_ICON")&&(0,r.jsx)(d.Z,{icon:null==t?void 0:t.pageIcon}),null==t?void 0:t.title]}),(null==t?void 0:t.type)!=="Page"&&(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("nav",{className:"flex mt-7 items-start text-gray-500 dark:text-gray-400",children:[(0,r.jsxs)("div",{className:"flex mb-4",children:[(0,r.jsxs)("a",{href:(0,c.JA)("CONTACT_GITHUB")||"#",className:"flex",children:[(0,r.jsx)(n(),{alt:(0,c.JA)("AUTHOR"),width:24,height:24,src:"https://gravatar.com/avatar/".concat(a),className:"rounded-full"}),(0,r.jsx)("p",{className:"ml-2 md:block",children:(0,c.JA)("AUTHOR")})]}),(0,r.jsx)("span",{className:"block",children:"\xa0/\xa0"})]}),(0,r.jsx)("div",{className:"mr-2 mb-4 md:ml-0",children:null==t?void 0:t.publishDay}),(null==t?void 0:t.tags)&&(0,r.jsx)("div",{className:"flex flex-nowrap max-w-full overflow-x-auto article-tags",children:null==t?void 0:t.tags.map(e=>(0,r.jsx)(s.default,{tag:e},e))}),(0,r.jsxs)("span",{className:"hidden busuanzi_container_page_pv mr-2",children:[(0,r.jsx)("i",{className:"mr-1 fas fa-eye"}),"\xa0",(0,r.jsx)("span",{className:"mr-2 busuanzi_value_page_pv"})]})]})})]})})}},29839:function(e,t,a){a.r(t),a.d(t,{ArticleLock:function(){return s}});var r=a(85893),l=a(26964),n=a(67294);let s=e=>{let{validPassword:t}=e,{locale:a}=(0,l.O)(),s=()=>{let e=document.getElementById("password");if(!t(null==e?void 0:e.value)){let e=document.getElementById("tips");e&&(e.innerHTML="",e.innerHTML="<div class='text-red-500 animate__shakeX animate__animated'>".concat(a.COMMON.PASSWORD_ERROR,"</div>"))}},i=(0,n.useRef)(null);return(0,n.useEffect)(()=>{i.current.focus()},[]),(0,r.jsx)("div",{id:"container",className:"w-full flex justify-center items-center h-96 ",children:(0,r.jsxs)("div",{className:"text-center space-y-3",children:[(0,r.jsx)("div",{className:"font-bold",children:a.COMMON.ARTICLE_LOCK_TIPS}),(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)("input",{id:"password",type:"password",onKeyDown:e=>{"Enter"===e.key&&s()},ref:i,className:"outline-none w-full text-sm pl-5 rounded-l transition focus:shadow-lg font-light leading-10 text-black dark:bg-gray-500 bg-gray-50"}),(0,r.jsx)("div",{onClick:s,className:"px-3 whitespace-nowrap cursor-pointer items-center justify-center py-2 rounded-r duration-300 bg-gray-300",children:(0,r.jsxs)("i",{className:"duration-200 cursor-pointer fas fa-key dark:text-black",children:["\xa0",a.COMMON.SUBMIT]})})]}),(0,r.jsx)("div",{id:"tips"})]})})}},15990:function(e,t,a){a.r(t),a.d(t,{default:function(){return s}});var r=a(85893),l=a(41664),n=a.n(l);function s(e){let{archiveTitle:t,archivePosts:a}=e;return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{id:t,className:"pt-16 pb-4 text-3xl dark:text-gray-300",children:t}),(0,r.jsx)("ul",{children:a[t].map(e=>{var t;return(0,r.jsx)("li",{className:"border-l-2 p-1 text-xs md:text-base items-center  hover:scale-x-105 hover:border-gray-500 dark:hover:border-gray-300 dark:border-gray-400 transform duration-500",children:(0,r.jsxs)("div",{id:null==e?void 0:e.publishDay,children:[(0,r.jsx)("span",{className:"text-gray-400",children:null===(t=e.date)||void 0===t?void 0:t.start_date})," ","\xa0",(0,r.jsx)(n(),{href:null==e?void 0:e.href,passHref:!0,className:"dark:text-gray-400  dark:hover:text-gray-300 overflow-x-hidden hover:underline cursor-pointer text-gray-600",children:e.title})]})},e.id)})})]},t)}},90859:function(e,t,a){a.r(t),a.d(t,{BlogListPage:function(){return u}});var r=a(85893),l=a(69325),n=a(26964),s=a(41664),i=a.n(s),o=a(11163),c=a(67294),d=a(10557);let u=e=>{let{page:t=1,posts:a,postCount:s}=e,{locale:u}=(0,n.O)(),x=(0,o.useRouter)(),{NOTION_CONFIG:h}=(0,n.O)(),m=(0,l.JA)("POSTS_PER_PAGE",null,h),f=+t,p=x.asPath.split("?")[0].replace(/\/page\/[1-9]\d*/,"").replace(/\/$/,"").replace(".html",""),g=(0,c.useRef)([]);return(0,c.useEffect)(()=>{let e=new IntersectionObserver(e=>
1{e.forEach(e=>{e.isIntersecting&&e.target.classList.toggle("visible")})},{threshold:.1});return g.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect()}},[]),(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)("div",{id:"posts-wrapper",className:"grid lg:grid-cols-3 grid-cols-1 md:grid-cols-2",children:null==a?void 0:a.map((t,a)=>(0,r.jsx)(d.default,{index:a,className:"blog-post",post:t,...e,ref:e=>g.current.push(e)},t.id))}),(0,r.jsxs)("div",{className:"flex justify-between text-xs",children:[(0,r.jsx)(i(),{href:{pathname:f-1==1?"".concat(p,"/"):"".concat(p,"/page/").concat(f-1),query:x.query.s?{s:x.query.s}:{}},className:"".concat(f>1?"  ":" invisible block pointer-events-none ","no-underline py-2 px-3 rounded"),children:(0,r.jsxs)("button",{rel:"prev",className:"block cursor-pointer",children:["← ",u.PAGINATION.PREV]})}),(0,r.jsx)(i(),{href:{pathname:"".concat(p,"/page/").concat(f+1),query:x.query.s?{s:x.query.s}:{}},className:"".concat(t<Math.ceil(s/m)?"  ":"invisible pointer-events-none ","  no-underline py-2 px-3 rounded"),children:(0,r.jsxs)("button",{rel:"next",className:"block cursor-pointer",children:[u.PAGINATION.NEXT," →"]})})]})]})}},82563:function(e,t,a){a.r(t),a.d(t,{BlogListScroll:function(){return u}});var r=a(85893),l=a(69325),n=a(26964),s=a(93096),i=a.n(s),o=a(41664),c=a.n(o),d=a(67294);let u=e=>{let{posts:t}=e,{locale:a}=(0,n.O)(),[s,o]=(0,d.useState)(1),u=!1,x=t?Object.assign(t).slice(0,parseInt((0,l.JA)("POSTS_PER_PAGE",12,null==e?void 0:e.NOTION_CONFIG))*s):[];if(t){let a=t.length;u=s*parseInt((0,l.JA)("POSTS_PER_PAGE",12,null==e?void 0:e.NOTION_CONFIG))<a}let h=()=>{u&&o(s+1)},m=(0,d.useRef)(null),f=(0,d.useCallback)(i()(()=>{window.scrollY+window.outerHeight>(m&&m.current?m.current.clientHeight:0)+100&&h()},500));return(0,d.useEffect)(()=>(window.addEventListener("scroll",f),()=>{window.removeEventListener("scroll",f)})),(0,r.jsxs)("div",{id:"posts-wrapper",className:"w-full md:pr-12 mb-12",ref:m,children:[x.map(e=>{var t;return(0,r.jsxs)("article",{className:"mb-12",children:[(0,r.jsx)("h2",{className:"mb-4",children:(0,r.jsx)(c(),{href:"/".concat(e.slug),className:"text-black text-xl md:text-2xl no-underline hover:underline",children:e.title})}),(0,r.jsxs)("div",{className:"mb-4 text-sm text-gray-700",children:["by"," ",(0,r.jsx)("a",{href:"#",className:"text-gray-700",children:(0,l.JA)("AUTHOR")})," ","on ",(null===(t=e.date)||void 0===t?void 0:t.start_date)||e.createdTime,(0,r.jsx)("span",{className:"font-bold mx-1",children:" | "}),(0,r.jsx)("a",{href:"#",className:"text-gray-700",children:e.category}),(0,r.jsx)("span",{className:"font-bold mx-1",children:" | "})]}),(0,r.jsx)("p",{className:"text-gray-700 leading-normal",children:e.summary})]},e.id)}),(0,r.jsxs)("div",{onClick:h,className:"w-full my-4 py-4 text-center cursor-pointer ",children:[" ",u?a.COMMON.MORE:"".concat(a.COMMON.NO_MORE," \uD83D\uDE30")," "]})]})}},10557:function(e,t,a){a.r(t);var r=a(85893),l=a(43838),n=a(41664),s=a.n(n),i=a(1693),o=a(78174),c=a(27134),d=a(67968),u=a(69325);t.default=e=>{let{post:t,index:a,siteInfo:n}=e,x=(0,l.h)((null==t?void 0:t.pageCoverThumbnail)||(null==n?void 0:n.pageCover)),{setModalContent:h,setShowModal:m}=(0,i.usePlogGlobal)(),f=100*a;return(0,o.isMobile)()&&(f=0),(0,r.jsxs)("article",{onClick:()=>{m(!0),h(t)},"data-aos-delay":"".concat(f),"data-aos":"fade-up","data-aos-duration":"500","data-aos-once":"true","data-aos-anchor-placement":"top-bottom",className:"cursor-pointer relative",children:[(0,r.jsx)(c.Z,{src:x,className:"aspect-[16/9] w-full h-full object-cover filter contrast-120"}),(0,r.jsxs)("h2",{className:"text-md absolute left-0 bottom-0 m-4 text-gray-100 shadow-text",children:[(0,u.JA)("POST_TITLE_ICON")&&(0,r.jsx)(d.Z,{icon:t.pageIcon})," ",null==t?void 0:t.title]}),(null==t?void 0:t.category)&&(0,r.jsx)("div",{className:"text-xs rounded-lg absolute left-0 top-0 m-4 px-2 py-1 bg-gray-200 dark:bg-black dark:bg-opacity-25 hover:bg-blue-700 hover:text-white duration-200",children:(0,r.jsx)(s(),{href:"/category/".concat(null==t?void 0:t.category),children:null==t?void 0:t.category})})]},null==t?void 0:t.id)}},45803:function(e,t,a){a.r(t),a.d(t,{default:function(){return m}});var r=a(85893),l=a(78174),n=a(67294),s=()=>
1{let[e,t]=(0,n.useState)(!1);return(0,r.jsx)("button",{onClick:()=>{if(!l.isBrowser)return;let a=document.documentElement;e?(document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),t(!1)):(a.requestFullscreen?a.requestFullscreen():a.webkitRequestFullscreen?a.webkitRequestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.msRequestFullscreen&&a.msRequestFullscreen(),t(!0))},className:"dark:text-gray-300",children:e?"退出全屏":(0,r.jsx)("i",{className:"fa-solid fa-expand"})})},i=a(69325),o=a(26964),c=a(13224),d=a(24189),u=a(19819),x=a(96039);let h=e=>{let{customMenu:t,customNav:a}=e,{locale:l}=(0,o.O)(),n=[{id:2,name:l.NAV.RSS,href:"/feed",show:(0,i.JA)("ENABLE_RSS")&&(0,i.JA)("NOBELIUM_MENU_RSS",null,c.default),target:"_blank"},{icon:"fas fa-search",name:l.NAV.SEARCH,href:"/search",show:(0,i.JA)("NOBELIUM_MENU_SEARCH",null,c.default)},{icon:"fas fa-archive",name:l.NAV.ARCHIVE,href:"/archive",show:(0,i.JA)("NOBELIUM_MENU_ARCHIVE",null,c.default)},{icon:"fas fa-folder",name:l.COMMON.CATEGORY,href:"/category",show:(0,i.JA)("NOBELIUM_MENU_CATEGORY",null,c.default)},{icon:"fas fa-tag",name:l.COMMON.TAGS,href:"/tag",show:(0,i.JA)("NOBELIUM_MENU_TAG",null,c.default)}];return(a&&(n=n.concat(a)),(0,i.JA)("CUSTOM_MENU")&&(n=t),n&&0!==n.length)?(0,r.jsx)("div",{className:"flex-shrink-0",children:(0,r.jsxs)("ul",{className:"hidden md:flex flex-row",children:[null==n?void 0:n.map((e,t)=>(0,r.jsx)(x.MenuItemDrop,{link:e},t)),(0,r.jsx)("li",{className:"my-auto px-2",children:(0,r.jsx)(s,{})}),(0,r.jsx)("li",{className:"my-auto px-2",children:(0,r.jsx)(d.default,{})})]})}):null};var m=e=>(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{id:"bottom-nav",className:"dark:bg-black dark:bg-opacity-50z-20 px-4 hidden glassmorphism md:fixed bottom-0 w-screen py-4 md:flex flex-row justify-between items-center",children:[(0,r.jsx)(u.default,{...e}),(0,r.jsx)(h,{...e})]})})},19819:function(e,t,a){a.r(t),a.d(t,{default:function(){return d}});var r=a(85893),l=a(27134),n=a(41664),s=a.n(n),i=a(13224),o=a(22405),c=a(69325);function d(e){let{navBarTitle:t,siteInfo:a}=e;return(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(s(),{href:"/","aria-label":(0,c.JA)("title"),children:(0,r.jsx)("div",{className:"h-6 w-6",children:(0,c.JA)("NOBELIUM_NAV_NOTION_ICON",null,i.default)?(0,r.jsx)(l.Z,{src:null==a?void 0:a.icon,className:"rounded-full",width:24,height:24,alt:(0,c.JA)("AUTHOR")}):(0,r.jsx)(o.SvgIcon,{})})}),t?(0,r.jsx)(s(),{href:"/","aria-label":(0,c.JA)("title"),children:(0,r.jsx)("p",{className:"ml-2 font-medium text-gray-800 dark:text-gray-300 header-name",children:t})}):(0,r.jsxs)("p",{className:"ml-2 font-medium text-gray-800 dark:text-gray-300 header-name",children:[(0,r.jsxs)(s(),{href:"/","aria-label":(0,c.JA)("TITLE"),children:[" ",(0,c.JA)("TITLE")]})," ",(0,r.jsx)("span",{className:"font-normal text-sm text-gray-00 dark:text-gray-400",children:(0,c.JA)("DESCRIPTION")})]})]})}},80790:function(e,t,a){a.r(t),a.d(t,{MenuItemCollapse:function(){return o}});var r=a(85893),l=a(22468),n=a(41664),s=a.n(n),i=a(67294);let o=e=>{var t;let{link:a}=e,[n,o]=(0,i.useState)(!1),c=(null==a?void 0:null===(t=a.subMenus)||void 0===t?void 0:t.length)>0,[d,u]=(0,i.useState)(!1);return a&&a.show?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"w-full px-4 py-2 text-left dark:bg-hexo-black-gray dark:border-black",onClick:()=>{o(!n)},children:[!c&&(0,r.jsx)(s(),{href:null==a?void 0:a.href,target:null==a?void 0:a.target,className:"font-extralight  flex justify-between pl-2 pr-4 dark:text-gray-200 no-underline tracking-widest pb-1",children:(0,r.jsxs)("span",{className:" hover:text-red-400 transition-all items-center duration-200",children:[(null==a?void 0:a.icon)&&(0,r.jsx)("span",{className:"mr-2",children:(0,r.jsx)("i",{className:a.icon})}),null==a?void 0:a.name]})}),c&&(0,r.jsxs)("div",{onClick:c?()=>{u(!d)}:null,className:"font-extralight flex justify-between pl-2 pr-4 cursor-pointer  dark:text-gray-200 no-underline tracking-widest pb-1",children:[(0,r.jsxs)("span",{className:" hover:text-red-400 transition-all items-center duration-200",children:[(null==a?void 0:a.icon)&&(0,r.jsx)("span",{className:"mr-2",children:(0,r.jsx)("i",{className:a.icon})}),null==a?void 0:a.name]}),(0,r.jsx)("i",{className:"px-2 fa fa-plus text-gray-400"})]})]}),c&&(0,r.jsx)(l.Z,{isOpen:d,onHeightChange:e.onHeightChange,children:a.subMenus.map((e,t)=>(0,r.jsx)("div",{className:"font-extralight dark:bg-black text-left px-10 justify-start  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,r.jsx)(s(),{href:e.href,target:null==a?void 0:a.target,children:(0,r.jsx)("span",{className:"text-xs",children:e.title})})},t))})]}):null}},96039:function(e,t,a){a.r(t),a.d(t,{MenuItemDrop:function(){return i}});var r=a(85893),l=a(41664),n=a.n(l),s=a(67294);let i=e=>{var t;let{link:a}
1=e,[l,i]=(0,s.useState)(!1);if(!a||!a.show)return null;let o=(null==a?void 0:null===(t=a.subMenus)||void 0===t?void 0:t.length)>0;return(0,r.jsxs)("li",{className:"cursor-pointer py-2 px-3",onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:[!o&&(0,r.jsx)("div",{className:"block text-black dark:text-gray-50 nav",children:(0,r.jsxs)(n(),{href:null==a?void 0:a.href,target:null==a?void 0:a.target,children:[(null==a?void 0:a.icon)&&(0,r.jsx)("i",{className:null==a?void 0:a.icon})," ",null==a?void 0:a.name]})}),o&&(0,r.jsxs)("div",{className:"block text-black dark:text-gray-50 nav",children:[(null==a?void 0:a.icon)&&(0,r.jsx)("i",{className:null==a?void 0:a.icon})," ",null==a?void 0:a.name,(0,r.jsx)("i",{className:"px-2 fas fa-chevron-down duration-500 transition-all ".concat(l?" rotate-180":"")})]}),o&&(0,r.jsx)("ul",{className:"".concat(l?"visible opacity-100 bottom-16 ":"invisible opacity-0 bottom-14"," border-gray-100  bg-white rounded-lg overflow-hidden  dark:bg-black dark:border-gray-800 bg-opacity-60 transition-all duration-300 z-20 absolute block drop-shadow-lg "),children:a.subMenus.map((e,t)=>(0,r.jsx)("li",{className:"text-gray-700 dark:text-gray-200  hover:bg-gray-50 dark:hover:bg-gray-900 tracking-widest transition-all duration-200  dark:border-gray-800 py-3 pr-6 pl-3",children:(0,r.jsx)(n(),{href:e.href,target:null==a?void 0:a.target,children:(0,r.jsxs)("span",{className:"text-sm text-nowrap font-extralight",children:[(null==a?void 0:a.icon)&&(0,r.jsx)("i",{className:null==e?void 0:e.icon,children:" \xa0 "}),e.title]})})},t))})]})}},63203:function(e,t,a){a.r(t),a.d(t,{default:function(){return h}});var r=a(85893),l=a(73214),n=a(27134),s=a(43838),i=a(45007),o=a(65720),c=a(41664),d=a.n(c),u=a(67294),x=a(1693);function h(e){let{showModal:t,setShowModal:a,modalContent:c,setModalContent:h}=(0,x.usePlogGlobal)(),{siteInfo:m,posts:f}=e,p=(0,u.useRef)(null),g=(null==c?void 0:c.pageCoverThumbnail)||(null==m?void 0:m.pageCoverThumbnail),v=(0,s.h)((null==c?void 0:c.pageCover)||(null==m?void 0:m.pageCover),1200,85,"webp"),j=(0,u.useRef)(null),[N,y]=(0,u.useState)(!0);return(0,r.jsx)(i.u.Root,{show:t,as:u.Fragment,children:(0,r.jsxs)(o.V,{as:"div",className:"relative z-20",initialFocus:p,onClose:function(){a(!1),y(!0)},children:[(0,r.jsx)(i.u.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,r.jsx)("div",{style:{backgroundColor:"rgba(0, 0, 0, 0.5)"},className:"fixed inset-0 glassmorphism transition-opacity"})}),(0,r.jsx)("div",{className:"fixed inset-0 z-30 overflow-y-auto",children:(0,r.jsx)("div",{className:"flex min-h-full justify-center p-4 text-center items-center",children:(0,r.jsx)(i.u.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 scale-50 w-0",enterTo:"opacity-100 translate-y-0 max-w-screen",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 scale-100  max-w-screen",leaveTo:"opacity-0 translate-y-4 scale-50 w-0",children:(0,r.jsxs)(o.V.Panel,{className:"group relative transform overflow-hidden rounded-xl text-left shadow-xl transition-all ",children:[(0,r.jsx)("div",{className:"absolute right-0 bottom-0 m-4 ".concat(N?"":"hidden"),children:(0,r.jsx)(l.pL,{className:"w-10 h-10 animate-spin text-gray-200"})}),(0,r.jsx)(d(),{href:null==c?void 0:c.href,children:(0,r.jsx)(n.Z,{onLoad:function(){y(!1)},placeholderSrc:g,src:v,ref:j,className:"w-full select-none max-w-7xl max-h-[90vh] shadow-xl  animate__animated animate__fadeIn'"})}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"absolute bottom-0 left-0 m-4 z-20",children:[(0,r.jsx)("div",{className:"flex",children:(0,r.jsx)("h2",{style:{textShadow:"0.1em 0.1em 0.2em black"},className:"text-2xl md:text-5xl text-white mb-4 px-2 py-1 rounded-lg",children:null==c?void 0:c.title})}),(0,r.jsx)("div",{style:{textShadow:"0.1em 0.1em 0.2em black"},className:"line-clamp-3 md:line-clamp-none overflow-hidden cursor-pointer text-gray-50 rounded-lg m-2",children:null==c?void 0:c.summary}),(null==c?void 0:c.category)&&(0,r.jsx)("div",{className:"flex",children:(0,r.jsx)(d(),{href:"/category/".concat(null==c?void 0:c.category),className:"text-xs rounded-lg mt-3 px-2 py-1 bg-black bg-opacity-20 text-white hover:bg-blue-700 hover:text-white duration-200",children:null==c?void 0:c.category})})]}),(0,r.jsx)("div",{className:"h-1/2 w-full absolute left-0 bottom-0",children:(0,r.jsx)("div",{className:"h-full w-full absolute opacity-80 group-hover:opacity-100 transition-all duration-1000 bg-gradient-to-b from-transparent to-black"})}),(0,r.jsx)("div",{onClick:function(){y(!0);let e=null==f?void 0:f.findIndex(e=>e.slug===c.slug);0===e?h(f[f.length-1]):h(f[e-1])},className:"z-10 absolute left-0 top-1/2 -mt-12 group-hover:opacity-50 opacity-0 duration-200 transition-opacity",children:(0,r.jsx)(l.s$,{className:"cursor-pointer w-24 h-32 hover:opacity-100 stroke-white stroke-1 scale-y-150"})}),(0,r.jsx)("div",{onClick:()=>{y(!0);let e=f.findIndex(e=>e.slug===c.slug);e===f.length-1?h(f[0]):h(f[e+1])},className:"z-10 absolute right-0 top-1/2 -mt-12 group-hover:opacity-50 opacity-0 duration-200 transition-opacity",children:(0,r.jsx)(l._Q,{className:"cursor-pointer w-24 h-32 hover:opacity-100 stroke-white stroke-1 scale-y-150"})})]})]})})})})]})})}},44228:function(e,t,a){a.r(t);var r=a(85893),l=a(22468),n=a(27134),s=a(69325),i=a(26964),o=a(41664),c=a.n(o),d=a(67294),u=a(13224),x=a(80790),h=a(96039),m=a(22405);let f=e=>{let{customMenu:t,customNav:a}=e,[n,o]=(0,d.useState)(!1),c=(0,d.useRef)(null),{locale:m}=(0,i.O)(),f=[{id:2,name:m.NAV.RSS,href:"/feed",show:(0,s.JA)("ENABLE_RSS")&&(0,s.JA)("NOBELIUM_MENU_RSS",null,u.default),target:"_blank"},{icon:"fas fa-search",name:m.NAV.SEARCH,href:"/search",show:(0,s.JA)("NOBELIUM_MENU_SEARCH",null,u.default)},{icon:"fas fa-archive",name:m.NAV.ARCHIVE,href:"/archive",show:(0,s.JA)("NOBELIUM_MENU_ARCHIVE",null,u.default)},{icon:"fas fa-folder",name:m.COMMON.CATEGORY,href:"/category",show:(0,s.JA)("NOBELIUM_MENU_CATEGORY",null,u.default)},{icon:"fas fa-tag",name:m.COMMON.TAGS,href:"/tag",show:(0,s.JA)("NOBELIUM_MENU_TAG",null,u.default)}];return(a&&(f=f.concat(a)),(0,s.JA)("CUSTOM_MENU")&&(f=t),f&&0!==f.length)?(0,r.jsxs)("div",{className:"flex-shrink-0",children:[(0,r.jsx)("ul",{className:" hidden md:flex flex-row",children:null==f?void 0:f.map((e,t)=>(0,r.jsx)(h.MenuItemDrop,{link:e},t))}),(0,r.jsxs)("div",{className:"md:hidden",children:[(0,r.jsx)("i",{onClick:()=>{o(!n)},className:"fas fa-bars cursor-pointer px-5 block md:hidden"}),(0,r.jsx)(l.Z,{collapseRef:c,isOpen:n,type:"vertical",className:"fixed top-16 right-6",children:(0,r.jsx)("div",{className:"dark:border-black bg-white dark:bg-black rounded border p-2 text-sm",children:null==f?void 0:f.map((e,t)=>(0,r.jsx)(x.MenuItemCollapse,{link:e,onHeightChange:e=>{var t;return null===(t=c.current)||void 0===t?void 0:t.updateCollapseHeight(e)}},t))})})]})]}):null};t.default=e=>{let{fullWidth:t,siteInfo:a}=e,l=(0,s.JA)("TITLE");return(0,r.jsx)("div",{className:"md:hidden fixed top-0 w-full z-20",children:(0,r.jsxs)("div",{id:"sticky-nav",className:"sticky-nav m-auto w-full h-6 flex flex-row justify-between items-center mb-2 md:mb-12 py-8  glassmorphism ".concat(t?"px-4 md:px-24":"max-w-3xl px-4"),children:[(0,r.jsx)(c(),{href:"/","aria-label":(0,s.JA)("title"),className:"flex items-center",children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"h-6 w-6",children:(0,s.JA)("NOBELIUM_NAV_NOTION_ICON",null,u.default)?(0,r.jsx)(n.Z,{src:null==a?void 0:a.icon,width:24,height:24,alt:(0,s.JA)("AUTHOR")}):(0,r.jsx)(m.SvgIcon,{})}),(0,r.jsxs)("p",{className:"ml-2 font-medium text-gray-800 dark:text-gray-300 header-name",children:[l," "]})]})}),(0,r.jsx)(f,{...e})]})})}},98141:function(e,t,a){a.r(t);var r=a(85893),l=a(11163),n=a(26964),s=a(67294);let i=!1;t.default=e=>{let{currentTag:t,currentSearch:a,cRef:o}=e,{locale:c}=(0,n.O)(),d=(0,l.useRouter)(),u=(0,s.useRef)(null);(0,s.useImperativeHandle)(o,()=>({focus:()=>{var e;null==u||null===(e=u.current)||void 0===e||e.focus()}}));let x=()=>{let e=u.current.value;e&&""!==e?d.push({pathname:"/search/"+e}).then(e=>{}):d.push({pathname:"/"}).then(e=>{})},h=()=>{u.current.value="",p(!1)};function m(){i=!0}
1let[f,p]=(0,s.useState)(!1),g=e=>{i||(u.current.value=e,e?p(!0):p(!1))};return(0,r.jsxs)("section",{className:"flex w-full bg-gray-100",children:[(0,r.jsx)("input",{ref:u,type:"text",placeholder:t?"".concat(c.SEARCH.TAGS," #").concat(t):"".concat(c.SEARCH.ARTICLES),className:"outline-none w-full text-sm pl-4 transition focus:shadow-lg font-light leading-10 text-black bg-gray-100 dark:bg-gray-900 dark:text-white",onKeyUp:e=>{13===e.keyCode?x(u.current.value):27===e.keyCode&&h()},onCompositionStart:m,onCompositionUpdate:m,onCompositionEnd:function(){i=!1},onChange:e=>g(e.target.value),defaultValue:a||""}),(0,r.jsx)("div",{className:"-ml-8 cursor-pointer float-right items-center justify-center py-2",onClick:x,children:(0,r.jsx)("i",{className:"hover:text-black transform duration-200  text-gray-500 cursor-pointer fas fa-search"})}),f&&(0,r.jsx)("div",{className:"-ml-12 cursor-pointer dark:bg-gray-600 dark:hover:bg-gray-800 float-right items-center justify-center py-2",children:(0,r.jsx)("i",{className:"hover:text-black transform duration-200 text-gray-400 cursor-pointer fas fa-times",onClick:h})})]})}},21879:function(e,t,a){a.r(t),a.d(t,{default:function(){return s}});var r=a(85893),l=a(98141),n=a(26595);function s(e){return(0,r.jsxs)("div",{className:"max-w-7xl w-full mx-auto",children:[(0,r.jsx)("div",{className:"py-12",children:(0,r.jsx)(l.default,{...e})}),(0,r.jsx)(n.default,{...e})]})}},22405:function(e,t,a){a.r(t),a.d(t,{SvgIcon:function(){return l}});var r=a(85893);let l=()=>(0,r.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("rect",{width:"24",height:"24",className:"fill-current text-black dark:text-white"}),(0,r.jsx)("rect",{width:"24",height:"24",fill:"url(#paint0_radial)"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("radialGradient",{id:"paint0_radial",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(45) scale(39.598)",children:[(0,r.jsx)("stop",{stopColor:"#CFCFCF",stopOpacity:"0.6"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#E9E9E9",stopOpacity:"0"})]})})]})},9128:function(e,t,a){a.r(t);var r=a(85893),l=a(41664),n=a.n(l);t.default=e=>{let{tag:t}=e;return(0,r.jsx)(n(),{href:"/tag/".concat(encodeURIComponent(t)),children:(0,r.jsx)("p",{className:"mr-1 rounded-full px-2 py-1 border leading-none text-sm dark:border-gray-600",children:t})})}},26595:function(e,t,a){a.r(t);var r=a(85893),l=a(41664),n=a.n(l);t.default=e=>{let{tagOptions:t,tag:a}=e;return t?(0,r.jsx)("div",{className:"tag-container",children:(0,r.jsx)("ul",{className:"flex max-w-full mt-4 overflow-x-auto",children:Object.keys(t).map(e=>{let l=t[e],s=l.name===a;return(0,r.jsx)("li",{className:"mr-3 font-medium border whitespace-nowrap dark:text-gray-300 ".concat(s?"text-white bg-black border-black dark:bg-gray-600 dark:border-gray-600":"bg-gray-100 border-gray-100 text-gray-400 dark:bg-night dark:border-gray-800"),children:(0,r.jsx)(n(),{href:s?"/search":"/tag/".concat(encodeURIComponent(l.name)),className:"px-4 py-2 block",children:"".concat(l.name," (").concat(l.count,")")},l.id)},l.id)})})}):null}},13224:function(e,t,a){a.r(t),t.default={NOBELIUM_MENU_CATEGORY:!1,NOBELIUM_MENU_TAG:!0,NOBELIUM_MENU_ARCHIVE:!1,NOBELIUM_MENU_SEARCH:!0,NOBELIUM_MENU_RSS:!1,NOBELIUM_NAV_NOTION_ICON:!0}},1693:function(e,t,a){a.r(t),a.d(t,{Layout404:function(){return U},LayoutArchive:function(){return R},LayoutBase:function(){return I},LayoutCategoryIndex:function(){return F},LayoutIndex:function(){return T},LayoutPostList:function(){return M},LayoutSearch:function(){return S},LayoutSlug:function(){return L},LayoutTagIndex:function(){return J},THEME_CONFIG:function(){return O.default},usePlogGlobal:function(){return _}});var r=a(85893),l=a(86429),n=a(84588),s=a(31933),i=a(68020),o=a(69325),c=a(26964),d=a(78174),u=a(45007),x=a(41664),h=a.n(x),m=a(11163),f=a(67294),p=a(26083),g=a(94036),v=a(29839),j=a(15990),N=a(90859),y=a(82563),b=a(45803),k=a(63203),w=a(44228),E=a(21879),O=a(13224),A=a(6569);let C=(0,f.createContext)(),_=()=>(0,f.useContext)(C),I=e=>{let{children:t,topSlot:a}=e,{onLoading:l}=(0,c.O)(),[n,s]=(0,f.useState)(!1),[i,d]=(0,f.useState)(null),x=(0,m.useRouter)(),h=()=>{s(!1)};return(0,f.useEffect)(()=>(x.events.on("routeChangeComplete",h),()=>{x.events.off("routeChangeComplete",h)}),[x.events]),(0,r.jsx)(C.Provider,{value:{showModal:n,setShowModal:s,modalContent:i,setModalContent:d},children:(0,r.jsxs)("div",{id:"theme-plog",className:"".concat((0,o.JA)("FONT_STYLE")," plog relative dark:text-gray-300 w-full dark:bg-black min-h-screen scroll-smooth"),children:[(0,r.jsx)(A.Style,{}),(0,r.jsx)(w.default,{...e}),(0,r.jsx)("main",{id:"out-wrapper",className:"relative m-auto flex-grow w-full transition-all pb-16 pt-16 md:pt-0",children:(0,r.jsxs)(u.u,{show:!l,appear:!0,enter
1:"transition ease-in-out duration-700 transform order-first",enterFrom:"opacity-0 translate-y-16",enterTo:"opacity-100",leave:"transition ease-in-out duration-300 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-16",unmount:!1,children:[a,t]})}),(0,r.jsx)(k.default,{...e}),(0,r.jsx)(b.default,{...e})]})})},T=e=>(0,r.jsx)(M,{...e}),M=e=>(0,r.jsx)(r.Fragment,{children:"page"===(0,o.JA)("POST_LIST_STYLE")?(0,r.jsx)(N.BlogListPage,{...e}):(0,r.jsx)(y.BlogListScroll,{...e})}),S=e=>{let{keyword:t}=e;return(0,f.useEffect)(()=>{d.isBrowser&&(0,n.Z)({doms:document.getElementById("posts-wrapper"),search:t,target:{element:"span",className:"text-red-500 border-b border-dashed"}})},[]),(0,r.jsx)(M,{...e,topSlot:(0,r.jsx)(E.default,{...e})})},R=e=>{let{archivePosts:t}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"mb-10 pb-20 md:py-12 p-3  min-h-screen w-full",children:Object.keys(t).map(e=>(0,r.jsx)(j.default,{archiveTitle:e,archivePosts:t},e))})})},L=e=>{let{post:t,lock:a,validPassword:n}=e,c=(0,m.useRouter)(),u=1e3*(0,o.JA)("POST_WAITING_TIME_FOR_404");return(0,f.useEffect)(()=>{t||setTimeout(()=>{d.isBrowser&&!document.querySelector("#article-wrapper #notion-article")&&c.push("/404").then(()=>{console.warn("找不到页面",c.asPath)})},u)},[t]),(0,r.jsxs)(r.Fragment,{children:[a&&(0,r.jsx)(v.ArticleLock,{validPassword:n}),!a&&t&&(0,r.jsx)("div",{className:"px-2 my-16 max-w-6xl mx-auto",children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g.ArticleInfo,{post:t}),(0,r.jsx)("div",{id:"article-wrapper",children:(0,r.jsx)(s.default,{post:t})}),(0,r.jsx)(i.default,{post:t}),(0,r.jsx)(l.default,{frontMatter:t}),(0,r.jsx)(p.ArticleFooter,{})]})})]})},U=e=>(0,r.jsx)(r.Fragment,{children:"404 Not found."}),F=e=>{let{categoryOptions:t}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{id:"category-list",className:"duration-200 flex flex-wrap",children:null==t?void 0:t.map(e=>(0,r.jsx)(h(),{href:"/category/".concat(e.name),passHref:!0,legacyBehavior:!0,children:(0,r.jsxs)("div",{className:"hover:text-black dark:hover:text-white dark:text-gray-300 dark:hover:bg-gray-600 px-5 cursor-pointer py-2 hover:bg-gray-100",children:[(0,r.jsx)("i",{className:"mr-4 fas fa-folder"}),e.name,"(",e.count,")"]})},e.name))})})},J=e=>{let{tagOptions:t}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{children:(0,r.jsx)("div",{id:"tags-list",className:"duration-200 flex flex-wrap",children:t.map(e=>(0,r.jsx)("div",{className:"p-2",children:(0,r.jsx)(h(),{href:"/tag/".concat(encodeURIComponent(e.name)),passHref:!0,className:"cursor-pointer inline-block rounded hover:bg-gray-500 hover:text-white duration-200 mr-2 py-1 px-2 text-xs whitespace-nowrap dark:hover:text-white text-gray-600 hover:shadow-xl dark:border-gray-400 notion-".concat(e.color,"_background dark:bg-gray-800"),children:(0,r.jsxs)("div",{className:"font-light dark:text-gray-400",children:[(0,r.jsx)("i",{className:"mr-1 fas fa-tag"})," ",e.name+(e.count?"(".concat(e.count,")"):"")," "]})},e)},e.name))})})})}},6569:function(e,t,a){a.r(t),a.d(t,{Style:function(){return s}});var r=a(85893),l=a(1822),n=a.n(l);let s=()=>(0,r.jsx)(n(),{id:"9a58928111f66c59",children:".dark body{background-color:black}"})}}]);

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.