PageSourceSearch

https://yogeshhadiya.in/_next/static/chunks/140e3st7_i.iz.js

js yogeshhadiya.in collected 2026-10-08 16:50:18 UTC 32,271 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return a},searchParamsToUrlQuery:function(){return s},urlQueryToSearchParams:function(){return l}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});function s(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function l(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,i(e));else t.set(r,i(n));return t}function a(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return x},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return y},NormalizeError:function(){return b},PageNotFoundError:function(){return v},SP:function(){return p},ST:function(){return g},WEB_VITALS:function(){return s},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return a},isResSent:function(){return f},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return j}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let s=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let l=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=e=>l.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let p="u">typeof performance,g=p&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class x extends Error{}class b extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class y extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function j(e){return JSON.stringify({message:e.message,stack:e.stack})}},33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return l},formatWithValidation:function(){return c},urlObjectKeys:function(){return a}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let s=e.r(90809)._(e.r(98183)),i=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",l=e.hash||"",a=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),a&&"object"==typeof a&&(a=String(s.urlQueryToSearchParams(a)));let u=e.search||a&&`?${a}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==c?(c="//"+(c||""),o&&"/"!==o[0]&&(o="/"+o)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),u&&"?"!==u[0]&&(u="?"+u),o=o.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${o}${u}${l}`}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return l(e)}},18581,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(71645);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=s(e,n)),t&&(o.current=s(t,n))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=e.r(18967),o=e.r(52817);function s(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return x},useLinkStatus:function(){return v}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let s=e.r(90809),i=e.r(43476),l=s._(e.r(71645)),a=e.r(95057),c=e.r(8372),u=e.r(18581),d=e.r(18967),f=e.r(5550);e.r(33525);let h=e.r(88540),m=e.r(91949),p=e.r(73668),g=e.r(9396);function x(t){var r,n;let o,s,x,[v,y]=(0,l.useOptimistic)(m.IDLE_LINK_STATUS),w=(0,l.useRef)(null),{href:j,as:N,children:k,prefetch:E=null,passHref:S,replace:C,shallow:P,scroll:T,onClick:L,onMouseEnter:M,onTouchStart:A,legacyBehavior:_=!1,onNavigate:O,transitionTypes:I,ref:$,unstable_dynamicOnHover:R,...D}=t;o=k,_&&("string"==typeof o||"number"==typeof o)&&(o=(0,i.jsx)("a",{children:o}));let B=l.default.useContext(c.AppRouterContext),K=!1!==E,z=!1!==E?null===(n=E)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,F="string"==typeof(r=N||j)?r:(0,a.formatUrl)(r);if(_){if(o?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=l.default.Children.only(o)}let U=_?s&&"object"==typeof s&&s.ref:$,H=l.default.useCallback(e=>(null!==B&&(w.current=(0,m.mountLinkInstance)(e,F,B,z,K,y)),()=>{w.current&&((0,m.unmountLinkForCurrentNavigation)(w.current),w.current=null),(0,m.unmountPrefetchableInstance)(e)}),[K,F,B,z,y]),V={ref:(0,u.useMergedRef)(H,U),onClick(t){_||"function"!=typeof L||L(t),_&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!B||t.defaultPrevented||function(t,r,n,o,s,i,a){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,p.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);l.default.startTransition(()=>{d(r,o?"replace":"push",!1===s?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,a)})}}(t,F,w,C,T,O,I)},onMouseEnter(e){_||"function"!=typeof M||M(e),_&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),B&&K&&(0,m.onNavigationIntent)(e.currentTarget,!0===R)},onTouchStart:function(e){_||"function"!=typeof A||A(e),_&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),B&&K&&(0,m.onNavigationIntent)(e.currentTarget,!0===R)}};return(0,d.isAbsoluteUrl)(F)?V.href=F:_&&!S&&("a"!==s.type||"href"in s.props)||(V.href=(0,f.addBasePath)(F)),x=_?l.default.cloneElement(s,V):(0,i.jsx)("a",{...D,...V,children:o}),(0,i.jsx)(b.Provider,{value:v,children:x})}e.r(84508);let b=(0,l.createContext)(m.IDLE_LINK_STATUS),v=()=>(0,l.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},75989,e=>{"use strict";let t=[],r=null,n=new Set,o=new Set;e.s(["EMPTY_ARTICLE_TOC",0,[],"getActiveArticleTocId",0,function(){return r},"getArticleToc",0,function(){return t},"setActiveArticleTocId",0,function(e){if(r!==e)for(let t of(r=e,o))t()},"setArticleToc",0,function(e){if(t=e,0===e.length)for(let e of(r=null,o))e();for(let e of n)e()},"subscribeActiveArticleTocId",0,function(e){return o.add(e),()=>{o.delete(e)}},"subscribeArticleToc",0,function(e){return n.add(e),()=>{n.delete(e)}}])},29654,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(75989);e.s(["ArticleTocLink",0,function({id:e,children:o}){let s=(0,r.useSyncExternalStore)(n.subscribeActiveArticleTocId,n.getActiveArticleTocId,()=>null)===e;return(0,t.jsx)("button",{type:"button",onClick:function(){let t=document.getElementById(e);t&&((0,n.setActiveArticleTocId)(e),t.scrollIntoView({behavior:"smooth",block:"start"}))},"aria-current":s?"location":void 0,className:`block w-full cursor-pointer rounded-md px-2 py-1 text-left transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${s?"bg-surface-elevated text-foreground ring-1 ring-border":"text-muted-foreground hover:bg-surface-elevated hover:text-foreground"}`,children:o})}])},18566,(e,t,r)=>{t.exports=e.r(76562)},9996,e=>{"use strict";var t=e.i(43476),r=e.i(18566),n=e.i(71645);e.s(["NavigationProgress",0,function(){let e=(0,r.usePathname)(),o=(0,r.useSearchParams)(),[s,i]=(0,n.useState)(!1),[l,a]=(0,n.useState)(0),c=(0,n.useRef)(null),u=(0,n.useRef)(null),d=(0,n.useRef)(!1),f=`${e}?${o.toString()}`;function h(){c.current&&(window.clearInterval(c.current),c.current=null),u.current&&(window.clearTimeout(u.current),u.current=null)}function m(){d.current||(d.current=!0,i(!0),a(12),c.current=window.setInterval(()=>{a(e=>{if(e>=88)return e;let t=Math.max(1,.18*(90-e));return Math.min(88,e+t)})},160))}return(0,n.useEffect)(()=>{let e=e=>{if(e.defaultPrevented||0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=e.target,r=t?.closest("a");r instanceof HTMLAnchorElement&&function(e){if(e.target&&"_self"!==e.target||e.hasAttribute("download"))return!1;let t=e.getAttribute("href");if(!t||t.startsWith("#"))return!1;let r=new URL(e.href,window.location.href);return r.origin===window.location.origin&&(r.pathname!==window.location.pathname||r.search!==window.location.search||r.hash!==window.location.hash)}(r)&&m()},t=()=>{m()};return document.addEventListener("click",e,!0),window.addEventListener("popstate",t),()=>{document.removeEventListener("click",e,!0),window.removeEventListener("popstate",t),h()}},[]),(0,n.useEffect)(()=>{d.current&&(d.current=!1,h(),a(100),u.current=window.setTimeout(()=>{i(!1),a(0)},180))},[f]),(0,t.jsx)("div",{"aria-hidden":"true",className:`pointer-events-none fixed inset-x-0 top-0 z-[70] h-0.5 origin-left transition-opacity duration-200 ${s?"opacity-100":"opacity-0"}`,children:(0,t.jsx)("div",{className:"h-full bg-accent shadow-[0_0_12px_rgba(var(--shadow-color),0.32)] transition-[width] duration-150 ease-out",style:{width:`${l}%`}})})}])},89036,e=>{"use strict";e.s(["SearchProvider",()=>c,"useSearch",()=>u],89036);var t=e.i(43476),r=e.i(71645),n=e.i(18566);function o(e,t){if(!t)return e;let r=e.includes("?")?"&":"?";return`${e}${r}preview=1`}let s="cursor-pointer text-left transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring";function i({result:e,originHref:r}){let{navigateTo:l}=u(),a=["1","true","yes","on"].includes(String((0,n.useSearchParams)().get("preview")??"").trim().toLowerCase()),c=o(`/blog/${e.slug}`,a);function d(e,t){e.preventDefault(),e.stopPropagation(),l(t)}return(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"rounded-xl bg-surface/80 p-3 ring-1 ring-border/60 transition-colors hover:bg-surface-elevated/80",children:[(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-2 text-xs text-muted-foreground",children:e.categories.map((r,n)=>(0,t.jsx)("button",{type:"button",onMouseDown:t=>d(t,o(`/category/${e.categorySlugs[n]}`,a)),className:`rounded-full bg-surface-elevated px-2.5 py-1 font-medium text-foreground hover:text-accent ${s}`,children:r},`${e.slug}-${r}`))}),(0,t.jsxs)("div",{role:"button",tabIndex:0,onMouseDown:function(e){e.preventDefault(),e.stopPropagation(),l(c)},onKeyDown:e=>
1{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),l(c))},className:`mt-2 block w-full rounded-lg ${s}`,children:[(0,t.jsx)("h3",{className:"text-base font-semibold leading-snug hover:text-accent",children:e.title}),(0,t.jsx)("p",{className:"mt-1 line-clamp-2 text-sm leading-6 text-muted-foreground",children:e.excerpt})]}),e.tags.length>0?(0,t.jsx)("ul",{className:"mt-2 flex flex-wrap gap-2",children:e.tags.map((r,n)=>(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onMouseDown:t=>d(t,o(`/tag/${e.tagSlugs[n]}`,a)),className:`rounded-full border border-border bg-surface-elevated px-2 py-1 text-xs text-foreground hover:text-accent ${s}`,children:["#",r]})},`${e.slug}-${r}`))}):null]})})}function l(){let{open:e,query:o,setQuery:s,setOpen:l,results:a}=u(),c=(0,n.usePathname)(),d=(0,r.useId)(),f=(0,r.useRef)(null),h=(0,r.useRef)(null);function m(){l(!1),s("")}if((0,r.useEffect)(()=>{if(!e)return;let t=window.requestAnimationFrame(()=>{h.current?.focus()});return()=>{window.cancelAnimationFrame(t)}},[e]),!e)return null;let p=o.trim().length>0,g=p&&0===a.length;return(0,t.jsx)("div",{className:"fixed inset-0 z-[60] flex items-start justify-center bg-background/70 p-4 pt-[max(1rem,10vh)] backdrop-blur-sm sm:p-6",onPointerDown:m,role:"presentation",children:(0,t.jsxs)("div",{ref:f,role:"dialog","aria-modal":"true","aria-labelledby":d,className:"relative z-10 w-full max-w-2xl rounded-2xl border border-border bg-surface shadow-soft ring-1 ring-border/60",onPointerDown:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"border-b border-border/80 p-4",children:[(0,t.jsx)("label",{htmlFor:d,className:"sr-only",children:"Search articles"}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)("svg",{viewBox:"0 0 24 24",className:"h-5 w-5 shrink-0 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,t.jsx)("path",{d:"M20 20l-3.5-3.5"})]}),(0,t.jsx)("input",{ref:h,id:d,type:"search",value:o,onChange:e=>s(e.target.value),placeholder:"Search by title or tag...","aria-label":"Search articles",autoComplete:"off",className:"min-w-0 flex-1 bg-transparent text-base text-foreground outline-none placeholder:text-muted-foreground"}),(0,t.jsx)("button",{type:"button",onPointerDown:e=>{e.stopPropagation(),m()},className:"rounded-full border border-border px-2.5 py-1 text-xs text-muted-foreground transition-colors hover:bg-surface-elevated hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":"Close search",children:"Esc"})]})]}),(0,t.jsxs)("div",{className:"max-h-[min(60vh,28rem)] overflow-y-auto p-4",children:[p?null:(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"Type to search article titles and tags."}),g?(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:"No articles found"}):null,a.length>0?(0,t.jsx)("ul",{"aria-label":"Search results",className:"space-y-3",children:a.map(e=>(0,t.jsx)(i,{result:e,originHref:c},e.slug))}):null]})]})})}let a=(0,r.createContext)(null);function c({index:e,children:o}){let s=(0,n.useRouter)(),i=(0,n.usePathname)(),[u,d]=(0,r.useState)(!1),[f,h]=(0,r.useState)(""),m=(0,r.useRef)(null),p=(0,r.useRef)(i),g=(0,r.useMemo)(()=>{var t;let r;return t=e,(r=f.trim().replace(/\s+/g," ").toLowerCase())?t.filter(e=>!!e.title.toLowerCase().includes(r)||e.tags.some((t,n)=>t.toLowerCase().includes(r)||e.tagSlugs[n]?.includes(r))):[]},[e,f]),x=(0,r.useCallback)(e=>{d(!1),h(""),s.push(e)},[s]);(0,r.useEffect)(()=>{p.current!==i&&(p.current=i,d(!1),h(""))},[i]),(0,r.useEffect)(()=>{if(!u)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[u]),(0,r.useEffect)(()=>{function e(e){if((e.metaKey||e.ctrlKey)&&"k"===e.key.toLowerCase()){e.preventDefault(),d(e=>!e),u&&h("");return}"Escape"===e.key&&u&&(e.preventDefault(),d(!1),h(""),m.current?.focus())}return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[u]);let b=(0,r.useMemo)(()=>({open:u,setOpen:d,query:f,setQuery:h,results:g,navigateTo:x,searchTriggerRef:m}),[x,u,f,g]);return(0,t.jsxs)(a.Provider,{value:b,children:[o,(0,t.jsx)(l,{})]})}function u(){let e=(0,r.useContext)(a);if(!e)throw Error("useSearch must be used within SearchProvider");return e}},89554,e=>{"use strict";var t=e.i(43476),r=e.i(71645);let n=r.createContext(null);function o(e){let t=window.localStorage.getItem("theme");return"light"===t||"dark"===t||"system"===t?t:e}e.s(["ThemeProvider",0,function({children:e,attribute:s="class",defaultTheme:i="light",enableSystem:l=!0}){let[a,c]=r.useState(void 0),u=function(e,t){if(e)return"system"!==e?e:t&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
1k":"light"}(a,l);r.useEffect(()=>{let e=window.requestAnimationFrame(()=>{c(o(i))});return()=>window.cancelAnimationFrame(e)},[i]),r.useEffect(()=>{if(!u||"class"!==s)return;let e=document.documentElement;e.classList.remove("light","dark"),e.classList.add(u),e.style.colorScheme=u},[s,u]),r.useEffect(()=>{let e=e=>{"theme"===e.key&&c(o(i))},t=()=>{"system"===a&&c("system")};if(window.addEventListener("storage",e),l){let r=window.matchMedia("(prefers-color-scheme: dark)");return r.addEventListener("change",t),()=>{window.removeEventListener("storage",e),r.removeEventListener("change",t)}}return()=>{window.removeEventListener("storage",e)}},[i,l,a]);let d=r.useCallback(e=>{window.localStorage.setItem("theme",e),c(e)},[]),f=r.useMemo(()=>({theme:a,resolvedTheme:u,setTheme:d}),[a,u,d]);return(0,t.jsx)(n.Provider,{value:f,children:e})},"useTheme",0,function(){let e=r.useContext(n);if(!e)throw Error("useTheme must be used within ThemeProvider");return e}])},64996,e=>{"use strict";e.s(["NAV_ITEMS",0,[{label:"Home",href:"/"},{label:"Blog",href:"/blog"},{label:".NET",href:"/category/dotnet"},{label:"C#",href:"/category/csharp"},{label:"SQL Server",href:"/category/sqlserver"},{label:"Azure",href:"/category/azure"},{label:"MongoDB",href:"/category/mongodb"},{label:"D3 DevTools",href:"https://d3devtools.azurewebsites.net/",external:!0}],"SOCIAL_LINKS",0,[{label:"Twitter",href:"https://www.twitter.com/YogeshHadiya33"},{label:"LinkedIn",href:"https://www.linkedin.com/in/YogeshHadiya33"},{label:"Instagram",href:"https://www.instagram.com/YogeshHadiya33"},{label:"C# Corner",href:"https://www.c-sharpcorner.com/members/YogeshHadiya33"},{label:"Medium",href:"https://yogeshhadiya33.medium.com"}]])},63780,e=>{"use strict";var t=e.i(43476),r=e.i(22016),n=e.i(18566),o=e.i(71645);function s({open:e,onClose:n,currentPath:o,items:i,activeHref:l}){return e?(0,t.jsx)("div",{className:"md:hidden",children:(0,t.jsx)("div",{className:"mt-3 rounded-2xl border border-border bg-surface p-3 shadow-soft",children:(0,t.jsx)("ul",{className:"space-y-1",children:i.map(e=>{var s;let i=(s=e.href,"/"===s?"/"===o:o.startsWith(s));return(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:e.href,target:e.external?"_blank":void 0,rel:e.external?"noopener noreferrer":void 0,onClick:n,"aria-current":i?"page":void 0,className:`block rounded-xl px-3 py-2 text-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${i||l===e.href?"bg-accent !text-white":"text-muted-foreground hover:bg-surface-elevated hover:text-foreground"}`,children:e.label})},e.href)})})})}):null}var i=e.i(89036),l=e.i(89554);function a(){let{resolvedTheme:e,setTheme:r}=(0,l.useTheme)(),[n,s]=(0,o.useState)(!1),i="dark"===e;return(0,o.useEffect)(()=>{let e=window.requestAnimationFrame(()=>{s(!0)});return()=>window.cancelAnimationFrame(e)},[]),(0,t.jsx)("button",{type:"button","aria-label":"Toggle theme",onClick:()=>r(i?"light":"dark"),className:"inline-flex h-10 w-10 items-center justify-center rounded-full border border-border bg-surface transition-colors hover:bg-surface-elevated focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring cursor-pointer",children:n&&e?i?(0,t.jsxs)("svg",{"aria-hidden":!0,viewBox:"0 0 24 24",className:"h-5 w-5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,t.jsx)("path",{d:"M12 2v2"}),(0,t.jsx)("path",{d:"M12 20v2"}),(0,t.jsx)("path",{d:"M4.9 4.9l1.4 1.4"}),(0,t.jsx)("path",{d:"M17.7 17.7l1.4 1.4"}),(0,t.jsx)("path",{d:"M2 12h2"}),(0,t.jsx)("path",{d:"M20 12h2"}),(0,t.jsx)("path",{d:"M4.9 19.1l1.4-1.4"}),(0,t.jsx)("path",{d:"M17.7 6.3l1.4-1.4"})]}):(0,t.jsx)("svg",{"aria-hidden":!0,viewBox:"0 0 24 24",className:"h-5 w-5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M21 12.8A9 9 0 1 1 11.2 3 7 7 0 0 0 21 12.8z"})}):(0,t.jsx)("span",{className:"sr-only",children:"Toggle theme"})})}var c=e.i(64996);e.s(["Navbar",0,function(){let e=(0,n.usePathname)(),{setOpen:l,searchTriggerRef:u}=(0,i.useSearch)(),[d,f]=(0,o.useState)(!1),[h,m]=(0,o.useState)(""),[p,g]=(0,o.useState)(!1),x=(0,o.useRef)(0),b=(0,o.useRef)(0),{full:v,compact:y}={full:"/logo-full.svg",compact:"/logo-compact.svg"};(0,o.useEffect)(()=>{let e=e=>{m(e.detail?.categorySlug??"")};return window.addEventListener("d3blog:article-category",e),()=>{window.removeEventListener("d3blog:article-category",e)}},[]);let w=(()=>
1{if(!e.startsWith("/blog/"))return null;if(h){let e=h.trim().toLowerCase().replace(/asp\.?net\s*core/g,"aspnetcore").replace(/sql\s*server/g,"sqlserver").replace(/c#/g,"csharp").replace(/\.net/g,"dotnet").replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),t=c.NAV_ITEMS.find(t=>t.href===`/category/${e}`);return t?t.href:null}return null})();function j(e){let t=Date.now();return t-e.current<350||(e.current=t,!1)}function N(){j(x)||l(!0)}function k(){j(b)||f(e=>!e)}return(0,t.jsx)("header",{className:"sticky top-0 z-50 isolate border-b border-border/80 bg-background md:bg-background/80 md:backdrop-blur-lg",style:{paddingTop:"env(safe-area-inset-top)"},children:(0,t.jsxs)("div",{className:"navbar-container",children:[(0,t.jsxs)("div",{className:"flex h-16 items-center justify-between gap-3",children:[(0,t.jsxs)(r.default,{href:"/",className:"inline-flex items-center gap-2 rounded-full px-2 py-1 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":"Go to homepage",children:[(0,t.jsxs)("span",{className:"hidden sm:inline-flex items-center gap-2",children:[(0,t.jsx)("span",{className:"grid h-8 w-8 place-items-center rounded-full bg-accent font-mono text-sm font-semibold text-white",children:"YH"}),(0,t.jsx)("span",{className:"text-sm font-semibold tracking-[0.08em] text-foreground sm:text-base",children:"Yogeshkumar Hadiya"})]}),(0,t.jsx)("span",{className:"inline-flex sm:hidden items-center justify-center rounded-full bg-accent px-2.5 py-1 font-mono text-sm font-semibold text-white",children:"YH"})]}),(0,t.jsx)("nav",{"aria-label":"Primary",className:"hidden md:block",children:(0,t.jsx)("ul",{className:"flex items-center gap-1",children:c.NAV_ITEMS.map(n=>{let o=function(t){return w?w===t:"/"===t?"/"===e:e.startsWith(t)}(n.href);return(0,t.jsx)("li",{children:(0,t.jsx)(r.default,{href:n.href,target:n.external?"_blank":void 0,rel:n.external?"noopener noreferrer":void 0,"aria-current":o?"page":void 0,className:`rounded-full px-3 py-2 text-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${o?"bg-accent !text-white":"text-muted-foreground hover:text-foreground"}`,children:n.label})},n.href)})})}),(0,t.jsxs)("div",{className:"ml-auto flex shrink-0 items-center gap-2 sm:gap-2",children:[(0,t.jsxs)("button",{ref:u,type:"button",className:"inline-flex h-11 w-11 items-center justify-center overflow-hidden rounded-lg border border-border bg-surface text-muted-foreground transition-colors hover:bg-surface-elevated focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring cursor-pointer sm:w-auto sm:min-w-[12rem] sm:justify-start sm:gap-3 sm:px-3","aria-label":"Open search (Ctrl+K)",title:"Search (Ctrl+K)",onTouchEnd:e=>{e.preventDefault(),N()},onClick:N,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),N())},children:[(0,t.jsxs)("svg",{viewBox:"0 0 24 24",className:"h-5 w-5 text-muted-foreground",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,t.jsx)("path",{d:"M20 20l-3.5-3.5"})]}),(0,t.jsx)("span",{className:"hidden text-sm text-muted-foreground sm:inline-flex",children:"Search"}),(0,t.jsx)("span",{className:"ml-auto hidden items-center gap-1 rounded-md border border-border bg-surface-elevated px-2 py-0.5 text-xs text-muted-foreground sm:inline-flex",children:"Ctrl+K"})]}),(0,t.jsx)(a,{}),(0,t.jsx)("button",{type:"button",className:"inline-flex h-11 w-11 items-center justify-center rounded-full border border-border bg-surface text-lg transition-colors hover:bg-surface-elevated focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring md:hidden cursor-pointer","aria-expanded":d,"aria-controls":"mobile-nav","aria-label":"Toggle mobile menu",onPointerUp:k,onTouchEnd:k,onClick:k,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),k())},children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"h-5 w-5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M6 6l12 12"}),(0,t.jsx)("path",{d:"M18 6L6 18"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})})})]})]}),(0,t.jsx)("div",{id:"mobile-nav",children:(0,t.jsx)(s,{open:d,onClose:()=>f(!1),currentPath:e,activeHref:w,items:c.NAV_ITEMS})})]})})}],63780)},58025,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(22016),o=e.i(18566),s=e.i(29654),i=e.i(64996);function l({className:e="h-4 w-4"}
1){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:e,fill:"currentColor","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M18.24 2H21l-6.6 7.54L22 22h-6l-4.7-6.6L5.5 22H2.7l7.05-8.05L2 2h6.14l4.26 6.02L18.24 2z"})})}var a=e.i(75989);let c={GitHub:function({className:e="h-4 w-4"}){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:e,fill:"currentColor","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M12 2a10 10 0 0 0-3.16 19.49c.5.09.68-.22.68-.48v-1.69c-2.78.6-3.37-1.34-3.37-1.34a2.65 2.65 0 0 0-1.11-1.46c-.9-.62.07-.61.07-.61a2.1 2.1 0 0 1 1.54 1.03 2.13 2.13 0 0 0 2.9.83 2.14 2.14 0 0 1 .64-1.34c-2.22-.25-4.55-1.11-4.55-4.95a3.86 3.86 0 0 1 1.03-2.68 3.6 3.6 0 0 1 .1-2.64s.84-.27 2.75 1.02a9.57 9.57 0 0 1 5.01 0c1.91-1.29 2.75-1.02 2.75-1.02a3.6 3.6 0 0 1 .1 2.64 3.86 3.86 0 0 1 1.03 2.68c0 3.85-2.34 4.69-4.57 4.94a2.4 2.4 0 0 1 .68 1.86v2.75c0 .27.18.58.69.48A10 10 0 0 0 12 2z"})})},LinkedIn:function({className:e="h-4 w-4"}){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:e,fill:"currentColor","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M6.94 8.5H3.56V20h3.38V8.5zM5.25 3A1.96 1.96 0 1 0 5.3 6.9 1.96 1.96 0 0 0 5.25 3zM20.44 13.32c0-3.42-1.82-5.01-4.25-5.01a3.67 3.67 0 0 0-3.31 1.82V8.5H9.5V20h3.38v-6.01c0-1.58.3-3.1 2.26-3.1 1.93 0 1.96 1.8 1.96 3.2V20h3.34v-6.68z"})})},Medium:function({className:e="h-4 w-4"}
1){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:e,fill:"currentColor","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M4 7.5c.04-.4-.12-.8-.42-1.06L2 4.5V4h6.1l4.72 10.35L16.98 4H22v.5l-1.33 1.27a.62.62 0 0 0-.24.6V17.6a.62.62 0 0 0 .24.6L22 19.5v.5h-6.7v-.5l1.38-1.34c.14-.14.14-.18.14-.39V8.66l-3.83 11.3h-.52L8 8.66v7.69c-.04.28.06.56.26.76L10 19.5v.5H5v-.5l1.74-2.4a1 1 0 0 0 .26-.76V7.5z"})})},Instagram:function({className:e="h-4 w-4"}){return(0,t.jsxs)("svg",{viewBox:"0 0 24 24",className:e,fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":!0,children:[(0,t.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"5",ry:"5"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,t.jsx)("circle",{cx:"17.5",cy:"6.5",r:"1",fill:"currentColor",stroke:"none"})]})},"Twitter/X":l};function u({label:e}){if("C# Corner"===e)return(0,t.jsx)("span",{className:"text-xs font-semibold",children:"C#"});let r=c[e];return r?(0,t.jsx)(r,{}):(0,t.jsx)(l,{})}function d({categories:e}){let l=(0,o.usePathname)(),c=(0,r.useSyncExternalStore)(a.subscribeArticleToc,a.getArticleToc,()=>a.EMPTY_ARTICLE_TOC);return(0,t.jsx)("aside",{className:"lg:sticky lg:top-24",children:(0,t.jsxs)("div",{className:"space-y-4",children:[c.length>0?(0,t.jsxs)("section",{className:"hidden rounded-2xl border border-border bg-surface p-4 shadow-soft sm:p-5 lg:block",children:[(0,t.jsx)("h2",{className:"mb-3 text-sm font-semibold uppercase tracking-[0.14em] text-muted-foreground",children:"On this page"}),(0,t.jsx)("nav",{"aria-label":"Table of contents",children:(0,t.jsx)("ol",{className:"space-y-1.5 text-sm",children:c.map(e=>(0,t.jsx)("li",{className:3===e.level?"pl-4":void 0,children:(0,t.jsx)(s.ArticleTocLink,{id:e.id,children:e.title})},e.id))})})]}):null,(0,t.jsxs)("section",{className:"rounded-2xl border border-border bg-surface p-4 shadow-soft sm:p-5",children:[(0,t.jsx)("h2",{className:"mb-3 text-sm font-semibold uppercase tracking-[0.14em] text-muted-foreground",children:"Social"}),(0,t.jsx)("ul",{className:"flex items-center gap-2",children:i.SOCIAL_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:e.href,target:"_blank",rel:"noopener noreferrer","aria-label":e.label,title:e.label,className:"inline-flex h-9 w-9 items-center justify-center rounded-full border border-border bg-surface-elevated text-xs font-semibold text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,t.jsx)(u,{label:e.label})})},e.label))})]}),(0,t.jsxs)("section",{className:"rounded-2xl border border-border bg-surface p-4 shadow-soft sm:p-5",children:[(0,t.jsx)("h2",{className:"mb-3 text-sm font-semibold uppercase tracking-[0.14em] text-muted-foreground",children:"Categories"}),(0,t.jsx)("hr",{className:"my-3"}),(0,t.jsx)("ul",{className:"space-y-2",children:e.map(e=>{var r;let o,s="/"===(o=(r=e.href).split("?")[0]??r)?"/"===l:l?.startsWith(o);return(0,t.jsx)("li",{children:(0,t.jsxs)(n.default,{href:e.href,"aria-current":s?"page":void 0,className:`inline-flex items-center justify-between w-full rounded-md text-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${s?"font-medium text-foreground":"text-muted-foreground hover:text-foreground"}`,children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsxs)("span",{className:"ml-2 text-xs text-muted-foreground",children:["(",e.count,")"]})]})},e.href)})})]})]})})}e.s(["SidebarClient",0,d,"default",0,d],58025)}]);

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.