1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1619],{8329:(e,t,r)=>{"use strict";r.d(t,{PostFilters:()=>a});var l=r(28262),n=r(32157),s=r(48630);r(52774);let a=e=>{var t;let{categories:r}=e,a=(0,n.useRouter)(),i=(0,n.usePathname)(),c=(null==(t=(0,n.useSearchParams)().get("categories"))?void 0:t.split(",").filter(Boolean))||[],o=c.length>0,u=()=>{a.push(i)},d="inline-flex items-center gap-1.5 uppercase pl-3 pr-3 py-1.5 rounded-full text-sm transition-colors duration-200";return(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,l.jsx)("button",{type:"button",onClick:u,"aria-pressed":!o,className:d+" "+(o?"bg-gray-100 text-gray-700 hover:bg-gray-200":"bg-black text-[#FDEAC2]"),children:"All"}),r.map(e=>{let t=c.includes(e.id);return(0,l.jsxs)("button",{type:"button",onClick:()=>(e=>{let t=c.includes(e)?c.filter(t=>t!==e):[...c,e],r=new URLSearchParams;t.length&&r.set("categories",t.join(",")),a.push("".concat(i).concat(r.toString()?"?".concat(r.toString()):""))})(e.id),"aria-pressed":t,className:d+" "+(t?"bg-black text-[#FDEAC2]":"bg-gray-100 text-gray-700 hover:bg-gray-200"),children:[e.title,t&&(0,l.jsx)(s.A,{size:14,strokeWidth:2.5,"aria-hidden":"true",className:"-mr-0.5 opacity-80"})]},e.id)}),o&&(0,l.jsxs)("button",{type:"button",onClick:u,"aria-label":"Clear all filters",className:"inline-flex items-center gap-1 px-2.5 py-1.5 text-sm text-gray-500 hover:text-black transition-colors duration-200",children:[(0,l.jsx)(s.A,{size:14,strokeWidth:2.5,"aria-hidden":"true"}),"Clear"]})]})}},8596:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var l=r(52774);let n=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&r.indexOf(e)===t).join(" ")};var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,l.forwardRef)((e,t)=>{let{color:r="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:c,className:o="",children:u,iconNode:d,...p}=e;return(0,l.createElement)("svg",{ref:t,...s,width:a,height:a,stroke:r,strokeWidth:c?24*Number(i)/Number(a):i,className:n("lucide",o),...p},[...d.map(e=>{let[t,r]=e;return(0,l.createElement)(t,r)}),...Array.isArray(u)?u:[u]])}),i=(e,t)=>{let r=(0,l.forwardRef)((r,s)=>{let{className:i,...c}=r;return(0,l.createElement)(a,{ref:s,iconNode:t,className:n("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),i),...c})});return r.displayName="".concat(e),r}},26524:()=>{},40746:(e,t,r)=>{"use strict";r.d(t,{PageRange:()=>i});var l=r(28262);r(52774);var n=r(70379);let s={plural:"Docs",singular:"Doc"},a={posts:{plural:"Articles",singular:"Article"}},i=e=>{let{className:t,collection:r,collectionLabels:i,currentPage:c,limit:o,totalDocs:u}=e,d=(c?c-1:1)*(o||1)+1;u&&d>u&&(d=0);let p=(c||1)*(o||1);u&&p>u&&(p=u);let h={...s,...r?a[r]:{},...i};return(0,l.jsxs)("div",{className:(0,n.cn)("text-sm font-normal",t),children:[(void 0===u||0===u)&&"No results found",void 0!==u&&u>0&&"Showing ".concat(d).concat(d>0?" - ".concat(p):""," of ").concat(u," ").concat(u>1?h.plural.toLowerCase():h.singular.toLowerCase())]})}},48630:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});let l=(0,r(8596).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},62910:(e,t,r)=>{"use strict";r.d(t,{DX:()=>i,TL:()=>a});var l=r(52774),n=r(90273),s=r(28262);function a(e){let t=function(e){let t=l.forwardRef((e,t)=>{let{children:r,...s}=e;if(l.isValidElement(r)){var a;let e,i,c=(a=r,(i=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(i=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),o=function(e,t){let r={...t};for(let l in t){let n=e[l],s=t[l];/^on[A-Z]/.test(l)?n&&s?r[l]=(...e)=>{s(...e),n(...e)}:n&&(r[l]=n):"style"===l?r[l]={...n,...s}:"className"===l&&(r[l]=[n,s].filter(Boolean).join(" "))}return{...e,...r}}(s,r.props);return r.type!==l.Fragment&&(o.ref=t?(0,n.t)(t,c):c),l.cloneElement(r,o)}return l.Children.count(r)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=l.forwardRef((e,r)=>{let{children:n,...a}=e,i=l.Children.toArray(n),c=i.find(o);if(c){let e=c.props.children,n=i.map(t=>t!==c?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,s.jsx)(t,{...a,ref:r,children:l.isValidElement(e)?l.cloneElement(e,void 0,n):null})}return(0,s.jsx)(t,{...a,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}var i=a("Slot"),c=Symbol("radix.slottable");function o(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}},71468:(e,t,r)=>{"use strict";r.d(t,{Pagination:()=>y});var l=r(28262),n=r(9826),s=r(70379),a=r(8596);let i=(0,a.A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),c=(0,a.A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),o=(0,a.A)("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);r(52774);let u=e=>{let{className:t,...r}=e;return(0,l.jsx)("nav",{"aria-label":"pagination",className:(0,s.cn)("mx-auto flex w-full justify-center",t),role:"navigation",...r})},d=e=>{let{className:t,ref:r,...n}=e;return(0,l.jsx)("ul",{className:(0,s.cn)("flex flex-row items-center gap-1",t),ref:r,...n})},p=e=>{let{className:t,ref:r,...n}=e;return(0,l.jsx)("li",{className:(0,s.cn)("",t),ref:r,...n})},h=e=>{let{className:t,isActive:r,size:a="icon",...i}=e;return(0,l.jsx)("button",{"aria-current":r?"page":void 0,className:(0,s.cn)((0,n.r)({size:a,variant:r?"outline":"ghost"}),t),...i})},f=e=>{let{className:t,...r}=e;return(0,l.jsxs)(h,{"aria-label":"Go to previous page",className:(0,s.cn)("gap-1 pl-2.5",t),size:"default",...r,children:[(0,l.jsx)(i,{className:"h-4 w-4"}),(0,l.jsx)("span",{children:"Previous"})]})},x=e=>{let{className:t,...r}=e;return(0,l.jsxs)(h,{"aria-label":"Go to next page",className:(0,s.cn)("gap-1 pr-2.5",t),size:"default",...r,children:[(0,l.jsx)("span",{children:"Next"}),(0,l.jsx)(c,{className:"h-4 w-4"})]})},m=e=>{let{className:t,...r}=e;
1return(0,l.jsxs)("span",{"aria-hidden":!0,className:(0,s.cn)("flex h-9 w-9 items-center justify-center",t),...r,children:[(0,l.jsx)(o,{className:"h-4 w-4"}),(0,l.jsx)("span",{className:"sr-only",children:"More pages"})]})};var g=r(32157);let y=e=>{let t=(0,g.useRouter)(),{className:r,page:n,totalPages:a}=e,i=n<a,c=n>1;return(0,l.jsx)("div",{className:(0,s.cn)("my-12",r),children:(0,l.jsx)(u,{children:(0,l.jsxs)(d,{children:[(0,l.jsx)(p,{children:(0,l.jsx)(f,{disabled:!c,onClick:()=>{t.push("/posts/page/".concat(n-1))}})}),n-1>1&&(0,l.jsx)(p,{children:(0,l.jsx)(m,{})}),c&&(0,l.jsx)(p,{children:(0,l.jsx)(h,{onClick:()=>{t.push("/posts/page/".concat(n-1))},children:n-1})}),(0,l.jsx)(p,{children:(0,l.jsx)(h,{isActive:!0,onClick:()=>{t.push("/posts/page/".concat(n))},children:n})}),i&&(0,l.jsx)(p,{children:(0,l.jsx)(h,{onClick:()=>{t.push("/posts/page/".concat(n+1))},children:n+1})}),n+1<a&&(0,l.jsx)(p,{children:(0,l.jsx)(m,{})}),(0,l.jsx)(p,{children:(0,l.jsx)(x,{disabled:!i,onClick:()=>{t.push("/posts/page/".concat(n+1))}})})]})})})}},90273:(e,t,r)=>{"use strict";r.d(t,{s:()=>a,t:()=>s});var l=r(52774);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function s(...e){return t=>{let r=!1,l=e.map(e=>{let l=n(e,t);return r||"function"!=typeof l||(r=!0),l});if(r)return()=>{for(let t=0;t<l.length;t++){let r=l[t];"function"==typeof r?r():n(e[t],null)}}}}function a(...e){return l.useCallback(s(...e),e)}},98771:(e,t,r)=>{"use strict";r.d(t,{F:()=>a});var l=r(10843);let n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s=l.$,a=(e,t)=>r=>{var l;if((null==t?void 0:t.variants)==null)return s(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:i}=t,c=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],l=null==i?void 0:i[e];if(null===t)return null;let s=n(t)||n(l);return a[e][s]}),o=r&&Object.entries(r).reduce((e,t)=>{let[r,l]=t;return void 0===l||(e[r]=l),e},{});return s(e,c,null==t||null==(l=t.compoundVariants)?void 0:l.reduce((e,t)=>{let{class:r,className:l,...n}=t;return Object.entries(n).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...o}[t]):({...i,...o})[t]===r})?[...e,r,l]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}}]);
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.