1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5187],{82247:function(e,t,n){"use strict";n.d(t,{Z:function(){return components_ArticleComponentList}});var r=n(85893),a=n(67294),s=n(39962),l=n(7870),o=n(94184),c=n.n(o),d=n(51325),m=n(88863),u=n.n(m),p={types:{block:e=>{let{style:t="normal"}=e.node;return"normal"===t?(0,r.jsx)("p",{className:"rich-text--normal",children:e.children}):"strong"===t?(0,r.jsx)("p",{className:"rich-text--bold",children:(0,r.jsx)("strong",{children:e.children})}):m.defaultSerializers.types.block(e)}},marks:{link:n(32256).Z,sans:e=>{let{children:t}=e;return(0,r.jsx)("span",{className:"font-sans",children:t})}}},f=n(40346),g=n(36988),v=n(93637),Z=n(54823);let SponsorTile=e=>{let{title:t,description:n,logo:a}=e;return(0,r.jsxs)(s.m.div,{variants:d.HO,transition:d.yz,className:"p-20 1000:px-48 rounded-10 sponsor-tile flex flex-col 1000:flex-row items-start 1000:items-center gap-40",children:[a&&(0,r.jsx)(f.Z,{id:a._id,alt:a.alt,preview:a.lqip,width:300,sizes:"(max-width: 1000px) 33vw, 150px",className:"w-1/3 h-fit 1000:w-1/4 1000:max-w-150 block"}),(0,r.jsxs)("div",{className:"flex flex-col gap-10",children:[t&&(0,r.jsx)("p",{className:"headline-medium-bold--mobile",children:t}),n&&(0,r.jsx)("div",{className:"rich-text line-break body-article--mobile 1000:text-17 1000:leading-25",children:(0,r.jsx)(u(),{blocks:n,serializers:Z.Z})})]})]})},C={pullQuote:e=>{let{index:t,quote:n}=e,o=(0,a.useRef)(null),m=(0,l.Z)(o,{threshold:.1,once:!0});return(0,r.jsx)(s.m.p,{ref:o,variants:d.Jx,initial:"hidden",animate:m?"show":"hidden",className:c()("my-50 1000:my-86 body-oversize-condensed--mobile 1000:body-medium-condensed--desktop text-red",{"mt-0 1000:mt-0":0===t}),children:(0,r.jsxs)(s.m.span,{variants:d.HO,transition:d.yz,children:["â",n,"â"]})})},bodyRichText:e=>{let{index:t,last:n,description:o}=e,m=(0,a.useRef)(null),f=(0,l.Z)(m,{threshold:0,rootMargin:"0px 0px -100px 0px",once:!0});return(0,r.jsx)(s.m.div,{ref:m,variants:d.Jx,initial:"hidden",animate:f?"show":"hidden",className:c()("my-50 1000:my-86",{"mt-0 1000:mt-0":0===t,"mb-0 1000:mb-0":n}),children:(0,r.jsx)(s.m.div,{className:"rich-text line-break body-article--mobile 1000:body-article--desktop break-words",variants:d.HO,transition:d.yz,children:(0,r.jsx)(u(),{blocks:o,serializers:p})})})},imageAlt:e=>{let{index:t,_id:n,alt:o,url:m,lqip:u,caption:p,credit:v,dimensions:Z}=e,C=(0,a.useRef)(null),M=(0,l.Z)(C,{threshold:.1,once:!0});return(0,r.jsxs)(s.m.div,{ref:C,variants:d.Jx,initial:"hidden",animate:M?"show":"hidden",className:c()("my-50 1000:my-86",{"mt-0 1000:mt-0":0===t,"flex flex-col gap-y-18 1000:gap-y-15":p||v}),children:[(0,r.jsx)(s.m.div,{variants:d.HO,transition:d.yz,className:"w-full relative",style:(0,g.Z)(Z.aspectRatio),children:(0,r.jsx)(f.Z,{id:n,alt:o,preview:u,width:1600,sizes:"(max-width: 768px) 100vw, 800px",className:"absolute inset-0 h-full w-full object-cover rounded-10"})}),v&&(0,r.jsx)(s.m.p,{variants:d.HO,transition:d.yz,className:"text-brown-40 text-right body-tiny--desktop",children:v}),p&&(0,r.jsx)(s.m.p,{variants:d.HO,transition:d.yz,className:"body-tiny--desktop italic",children:p})]})},articleVideo:e=>{let{index:t,videoId:n,title:o}=e,m=(0,a.useRef)(null),u=(0,l.Z)(m,{threshold:.1,once:!0});return(0,r.jsx)(s.m.div,{ref:m,variants:d.Jx,initial:"hidden",animate:u?"show":"hidden",className:c()("my-50 1000:my-86",{"mt-0 1000:mt-0":0===t}),children:(0,r.jsx)(s.m.div,{variants:d.HO,transition:d.yz,className:"rounded-20 overflow-hidden",children:(0,r.jsx)(v.Z,{id:n,className:"rounded-20 overflow-hidden"})})})},externalVideo:e=>{let{index:t,type:o,youtubeID:m,vimeoID:u}=e,p=(0,a.useRef)(null),f=(0,l.Z)(p,{threshold:.1,once:!0}),g=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e;if(g.current)return loadPlyr(),()=>{e&&(null==e||e.destroy())};async function loadPlyr(){let{default:t}=await n.e(1443).then(n.t.bind(n,21443,23));e=new t(g.current,{controls:["play-large","play","progress","volume","mute","airplay","fullscreen"]})}},[g]),(0,r.jsx)(s.m.div,{ref:p,variants:d.Jx,initial:"hidden",animate:f?"show":"hidden",className:c()("my-50 1000:my-86",{"mt-0 1000:mt-0":0===t}),children:(0,r.jsx)(s.m.div,{variants:d.HO,transition:d.yz,className:"rounded-20 overflow-hidden",children:(0,r.jsxs)("div",{ref:g,className:"block w-full video",children:["youtube"===o&&(0,r.jsx)("iframe",{src:"https://www.youtube.com/embed/".concat(m,"?origin=https://plyr.io&iv_load_policy=3&modestbranding=1&playsinline=1&showinfo=0&rel=0&enablejsapi=1"),allowFullScreen:!0,allowTransparency:!0,allow:"autoplay"}),"vimeo"===o&&(0,r.jsx)("iframe",{src:"https://player.vimeo.com/video/".concat(u,"?loop=false&byline=false&portrait=false&title=false&speed=true&transparent=0&gesture=media"),allowFullScreen:!0,allowTransparency:!0,allow:"autoplay"})]})})})},externalEmbed:e=>{let{index:t,code:n}=e,o=(0,a.useRef)(null),m=(0,l.Z)(o,{threshold:.1,once:!0});return(0,r.jsx)(s.m.div,{ref:o,variants:d.Jx,initial:"hidden",animate:m?"show":"hidden",className:c()("my-50 1000:my-86",{"mt-0 1000:mt-0":0===t}),children:(0,r.jsx)(s.m.div,{className:"embed-container",variants:d.HO,transition:d.yz,children:(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:n}})})})},podcastSponsors:e=>{let{label:t,description:n,sponsors:o}=e,c=(0,a.useRef)(null),m=(0,l.Z)(c,{threshold:0,rootMargin:"0px 0px -100px 0px",once:!0}),p=n&&(0,r.jsxs)("div",{className:"flex flex-col gap-30",children:[(0,r.jsx)(s.m.p,{variants:d.HO,transition:d.yz,className:"headline-medium--mobile",children:t||"Supp
1ort the Podcast"}),(0,r.jsx)(s.m.div,{variants:d.HO,transition:d.yz,className:"rich-text line-break body-article--mobile 1000:body-article--desktop",children:(0,r.jsx)(u(),{blocks:n,serializers:Z.Z})})]}),f=(0,r.jsxs)("div",{className:"flex flex-col gap-28",children:[(0,r.jsx)(s.m.p,{variants:d.HO,transition:d.yz,className:"headline-medium--mobile",children:"Support The Sponsor"}),(0,r.jsx)("ul",{className:"flex flex-col gap-32",children:null==o?void 0:o.map(e=>{let{_key:t,...n}=e;return(0,r.jsx)(SponsorTile,{...n},t)})})]});return(0,r.jsxs)(s.m.div,{ref:c,variants:d.Jx,initial:"hidden",animate:m?"show":"hidden",children:[p,f]})}};var components_ArticleComponentList=e=>{let{components:t=[]}=e,n=null==t?void 0:t.map((e,n)=>{let a=C[e._type];return a?(0,r.jsx)(a,{index:n,last:n===t.length-1,...e},e._key):(0,r.jsxs)("div",{className:"p-40 border-t border-solid bg-white text-black",children:["missing - ",e._type]},e._key)});return(0,r.jsx)(a.Fragment,{children:n})}},46875:function(e,t,n){"use strict";var r=n(85893);n(67294);var a=n(37939),s=n(13604),l=n(1057),o=n(79750),c=n(40346),d=n(39962),m=n(51325);t.Z=e=>{let{title:t,image:n,description:u,instagram:p,twitter:f,tiktok:g}=e;return(0,r.jsxs)(d.m.div,{variants:m.HO,transition:m.yz,className:"bg-brown text-white p-30 rounded-16 col-span-12 1000:col-span-6 1000:col-start-3 flex flex-col 1000:flex-row gap-26 mt-70 order-last",children:[n&&(0,r.jsx)("div",{className:"w-1/2 1000:w-140 h-fit",children:(0,r.jsx)("div",{className:"w-full h-0 pt-[100%] relative 1000:max-w-140",children:(0,r.jsx)(c.Z,{id:n._id,className:"rounded-full absolute inset-0 w-full h-full object-cover",...n,width:300,sizes:"(min-width: 1000px) 140px, 50vw"})})}),(0,r.jsxs)("div",{className:"flex flex-col gap-10 flex-grow 1000:w-3/4",children:[(0,r.jsx)("p",{className:"headline-small-bold--mobile 1000:headline-small-bold--desktop",children:t}),u&&(0,r.jsx)("p",{className:"font-serif text-18 leading-22 1000:text-17 1000:leading-25",children:u}),(0,r.jsx)("div",{className:"mt-20",children:(0,r.jsxs)(a.Z,{url:"/search?query=".concat(t),className:"button--primary button--primary--desktop block",children:["More by ",t]})}),(p||f||g)&&(0,r.jsxs)("div",{className:"mt-20 flex flex-row gap-32 flex-wrap",children:[p&&(0,r.jsx)(a.Z,{url:p,openInNewWindow:!0,children:(0,r.jsx)(s.Z,{className:"transition-colors duration-300 hover:text-red h-18 w-18 object-contain"})}),f&&(0,r.jsx)(a.Z,{url:f,openInNewWindow:!0,children:(0,r.jsx)(l.Z,{className:"transition-colors duration-300 hover:text-red h-18 w-18 object-contain"})}),g&&(0,r.jsx)(a.Z,{url:g,openInNewWindow:!0,children:(0,r.jsx)(o.Z,{className:"transition-colors duration-300 hover:text-red h-18 w-18 object-contain"})})]})]})]})}},32256:function(e,t,n){"use strict";var r=n(85893);n(67294);var a=n(37939),s=n(44337);t.Z=e=>{let{mark:t,children:n}=e,onClick=e=>{let n=t.href?t.href.split("#")[1]:null;n&&(0,s.Z)({id:n})};return"/"===t.href[0]?(0,r.jsx)(a.Z,{onClick:onClick,title:t.title,target:t.openInNewWindow?"_blank":"",url:t.href,children:n}):(0,r.jsx)("a",{onClick:onClick,title:t.title,target:t.openInNewWindow?"_blank":"",href:t.href,children:n})}},66348:function(e,t,n){"use strict";var r=n(85893),a=n(67294),s=n(37939);t.Z=e=>{let{children:t}=e;return(0,r.jsxs)(a.Fragment,{children:[t,(0,r.jsx)(s.Z,{className:"bg-red p-20 text-white font-adieu fixed bottom-0 right-0 uppercase z-[99] hover:opacity-75",url:"/api/exit-preview",children:"Exit Preview"})]})}},40346:function(e,t,n){"use strict";var r=n(85893);n(67294);var a=n(44008);let s="".concat("https://media.citiusmag.com","/images/").concat("bpfwm1du","/").concat("production","/");t.Z=e=>{let{id:t,alt:n,hotspot:l,crop:o,className:c,preview:d,width:m=1200,height:u,mode:p,sizes:f,quality:g=85,loading:v,...Z}=e;return(0,r.jsx)(a.dJ,{id:t,baseUrl:s,alt:n||"CITIUS Mag",hotspot:l,crop:o,className:c,preview:d,width:m,height:u,mode:p,sizes:f,loading:v,queryParams:{q:g},...Z})}},53569:function(e,t,n){"use strict";var r=n(85893);n(67294);var a=n(9008),s=n.n(a),l=n(11163),o=n(69054);t.Z=e=>{let{metaTitle:t="CITIUS MAG",metaDescription:n,metaKeywords:a,openGraphTitle:c="CITIUS MAG",openGraphDescription:d,openGraphImage:m,twitterUser:u="@citiusmag",twitterTitle:p="CITIUS MAG",twitterDescription:f,twitterImage:g,siteName:v="CITIUS MAG",siteUrl:Z="https://www.citiusmag/",disallowRobots:C}=e,{asPath:M}=(0,l.useRouter)();return(0,r.jsxs)(s(),{children:[t&&(0,r.jsx)("title",{children:t}),n&&(0,r.jsx)("meta",{name:"description",content:n}),(0,r.jsx)("meta",{name:"keywords",content:a}),(0,r.jsx)("meta",{property:"og:url",content:"".concat(Z).concat(M)}),(0,r.jsx)("meta",{property:"og:title",content:c}),(0,r.jsx)("meta",{property:"og:site_name",content:v}),(0,r.jsx)("meta",{property:"og:description",content:d}),m&&(0,r.jsx)("meta",{property:"og:image",content:(0,o.Z)(m.url,{w:1200})}),(0,r.jsx)("meta",{name:"twitter:site",content:u}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,r.jsx)("meta",{name:"twitter:title",content:p}),(0,r.jsx)("meta",{name:"twitter:description",content:f}),(0,r.jsx)("meta",{name:"twitter:url",content:"".concat(Z).concat(M)}
1),g&&(0,r.jsx)("meta",{name:"twitter:image:src",content:(0,o.Z)(g.url,{w:1200})}),C&&(0,r.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]})}},77539:function(e,t,n){"use strict";n.d(t,{Z:function(){return components_ShareButtons}});var r=n(85893),a=n(67294),s=n(37939),l=n(1057),IconMail=e=>(0,r.jsxs)("svg",{...e,width:"26",height:"25",viewBox:"0 0 26 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M5.13077 4.13867H21.6848C22.8229 4.13867 23.754 5.06983 23.754 6.20792V18.6234C23.754 19.7615 22.8229 20.6927 21.6848 20.6927H5.13077C3.99269 20.6927 3.06152 19.7615 3.06152 18.6234V6.20792C3.06152 5.06983 3.99269 4.13867 5.13077 4.13867Z",fill:"#3B0304",stroke:"white",strokeWidth:"2.06925",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M23.754 6.20776L13.4078 13.4501L3.06152 6.20776",fill:"#3B0304"}),(0,r.jsx)("path",{d:"M23.754 6.20776L13.4078 13.4501L3.06152 6.20776",stroke:"white",strokeWidth:"2.06925",strokeLinecap:"round",strokeLinejoin:"round"})]}),IconLink=e=>(0,r.jsxs)("svg",{...e,width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M9.1228 11.2452C9.47914 11.7216 9.93377 12.1158 10.4558 12.401C10.9779 12.6863 11.5552 12.8559 12.1486 12.8984C12.742 12.9409 13.3376 12.8553 13.895 12.6473C14.4524 12.4394 14.9585 12.114 15.3791 11.6933L17.8684 9.20405C18.6241 8.42158 19.0423 7.37359 19.0328 6.2858C19.0234 5.19801 18.5871 4.15745 17.8178 3.38824C17.0486 2.61903 16.0081 2.18271 14.9203 2.17325C13.8325 2.1638 12.7845 2.58197 12.002 3.3377L10.5749 4.75658",stroke:"#3B0304",strokeWidth:"1.6595",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M12.4429 9.58586C12.0866 9.10948 11.6319 8.7153 11.1099 8.43007C10.5878 8.14483 10.0105 7.97522 9.41709 7.93272C8.8237 7.89022 8.22811 7.97584 7.67071 8.18376C7.11332 8.39169 6.60716 8.71705 6.18657 9.13779L3.69732 11.627C2.94159 12.4095 2.52342 13.4575 2.53287 14.5453C2.54232 15.6331 2.97864 16.6736 3.74786 17.4429C4.51707 18.2121 5.55763 18.6484 6.64542 18.6578C7.73321 18.6673 8.7812 18.2491 9.56366 17.4934L10.9825 16.0745",stroke:"#3B0304",strokeWidth:"1.6595",strokeLinecap:"round",strokeLinejoin:"round"})]}),o=n(51526),c=n(39962),d=n(11163),m=n(94184),u=n.n(m),copyToClipboard=async e=>{try{return window.navigator.clipboard.writeText(e),!0}catch(e){return console.log(e),!1}},components_ShareButtons=e=>{let{className:t}=e,[n,m]=(0,a.useState)(!1),{asPath:p}=(0,d.useRouter)();return(0,r.jsxs)("div",{className:u()("col-span-12 1000:col-span-2 1000:col-start-1 flex flex-col gap-y-26 1000:gap-y-20 mt-60 1000:mt-46 h-max",t),children:[(0,r.jsx)("p",{className:"font-adieu uppercase text-14 leading-16 tracking-6",children:"Share"}),(0,r.jsxs)("div",{className:"flex gap-26",children:[(0,r.jsx)(s.Z,{url:"https://twitter.com/intent/tweet?text=https://citiusmag.com".concat(p),openInNewWindow:!0,children:(0,r.jsx)(l.Z,{className:"h-24 w-24 object-contain"})}),(0,r.jsx)(s.Z,{url:"mailto:?body=https://citiusmag.com".concat(p),openInNewWindow:!0,children:(0,r.jsx)(IconMail,{className:"h-24 w-24 object-contain"})}),(0,r.jsxs)("button",{onClick:()=>{copyToClipboard(window.location.href),m(!0),setTimeout(()=>{m(!1)},2e3)},title:"Copy Link",className:"relative",children:[(0,r.jsx)(o.M,{mode:"wait",children:n&&(0,r.jsx)(c.m.div,{initial:{opacity:0,y:10,x:"-50%"},animate:{opacity:1,y:0,x:"-50%"},exit:{opacity:0,y:10,x:"-50%"},transition:{duration:.2},className:"absolute rounded-8 bg-white text-red font-mono w-50 bottom-30 left-1/2 -translate-x-1/2",children:"Copied!"})}),(0,r.jsx)(IconLink,{className:"h-24 w-24 object-contain"})]})]})]})}},75645:function(e,t,n){"use strict";var r=n(85893),a=n(67294),s=n(37939),l=n(94184),o=n.n(l);t.Z=e=>{let{className:t,tags:n}=e,[l,c]=(0,a.useState)(!1);return(0,r.jsxs)("div",{className:o()("flex flex-wrap gap-10",t),children:[n.slice(0,2).map(e=>{let{_key:t,title:n}=e;return(0,r.jsx)(s.Z,{url:"/search?query=".concat(n),title:"Search more about ".concat(n),className:"button--tab w-min",children:n},t)}),!l&&n.length>2&&(0,r.jsx)("button",{title:"Show more tags",onClick:()=>c(!0),className:"button--tab button--tab--ellipses w-min",children:"..."}),l&&(0,r.jsx)(a.Fragment,{children:n.slice(2,n.length).map(e=>
1{let{_key:t,title:n}=e;return(0,r.jsx)(s.Z,{url:"/search?query=".concat(n),title:"Search more about ".concat(n),className:"button--tab w-min",children:n},t)})})]})}},93637:function(e,t,n){"use strict";var r=n(85893);n(63997);var a=n(67294),s=n(94184),l=n.n(s);t.Z=e=>{let{id:t,autoplay:s=!1,className:o,controls:c=["play-large","play","progress","volume","mute","airplay","fullscreen"]}=e,d=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e;if(d.current)return loadPlyr(),()=>{e&&(null==e||e.destroy())};async function loadPlyr(){let{default:t}=await n.e(1443).then(n.t.bind(n,21443,23));e=new t(d.current,{controls:c}),s&&e&&setTimeout(()=>{e.volume=1,e.play()},1e3)}},[d]),(0,r.jsx)("div",{ref:d,className:l()("block w-full video",o),children:(0,r.jsx)("iframe",{src:"https://www.youtube.com/embed/".concat(t,"?origin=https://plyr.io&iv_load_policy=3&modestbranding=1&playsinline=1&showinfo=0&rel=0&enablejsapi=1"),allowFullScreen:!0,allowTransparency:!0,allow:"autoplay"})})}},54823:function(e,t,n){"use strict";var r=n(85893);n(67294);var a=n(88863),s=n(32256);t.Z={types:{block:e=>{let{style:t="normal"}=e.node;return"normal"===t?(0,r.jsx)("p",{children:e.children}):"strong"===t?(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:e.children})}):a.defaultSerializers.types.block(e)}},marks:{link:s.Z,sans:e=>{let{children:t}=e;return(0,r.jsx)("span",{className:"font-sans",children:t})}}}},40612:function(e,t,n){"use strict";n.d(t,{p:function(){return decodeHTML}});let decodeHTML=e=>e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(t)})},5709:function(e,t,n){"use strict";var r=n(23855),a=n(9997);t.Z=e=>{let{publishedAt:t,archivePublishedAt:n}=e,s=t?(0,r.Z)(t):n?(0,r.Z)(n):null;return s?(0,a.Z)(s,"MMMM d, yyyy"):""}},36988:function(e,t){"use strict";t.Z=e=>({height:0,paddingBottom:"".concat(1/e*100,"%")})},69054:function(e,t,n){"use strict";var r=n(35161),a=n.n(r);let s={auto:"format",q:"85"},l="https://media.citiusmag.com";t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=l?e.replace("https://cdn.sanity.io",l):e,r={...s,...t},o=a()(r,(e,t)=>"".concat(t,"=").concat(e));return"".concat(n,"?").concat(o.join("&"))}},44337:function(e,t){"use strict";t.Z=e=>{let{id:t,aboutPage:n}=e,r=document.getElementById(t);if(!r)return;let a=r.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:a-(n?150:125),behavior:"smooth"})}},63997:function(){},74356:function(e,t,n){"use strict";n.d(t,{Dz:function(){return PreviewSuspense}});var r=n(67294),a=n(85893);function PreviewSuspense(e){let{children:t,fallback:n}=e,[s,l]=(0,r.useReducer)(()=>!0,!1);return(0,r.useEffect)(l,[l]),(0,a.jsx)(r.Suspense,{fallback:n,children:s?t:n})}},44008:function(e,t,n){"use strict";n.d(t,{dJ:function(){return k}});var r=n(67294),a=/^image-([\da-f]+)-(\d+x\d+)-(\w+)$/,y=e=>{let t=a.exec(e),[,n,r,s]=null!=t?t:[];if(!t||!n||!r||!s)throw Error(`Could not parse image ID "${e}"`);let[l,o]=r.split("x").map(e=>Number.parseInt(e,10));if(Number.isNaN(l)||Number.isNaN(o)||!l||!o)throw Error(`Invalid dimensions "${r}"`);return{assetId:n,dimensions:{height:o,width:l,aspectRatio:l/o},format:s}},h=e=>{let t=e.lastIndexOf("-");return e.slice(6,t)+"."+e.slice(t+1)},S=({baseUrl:e,...t})=>{let{metadata:n,...r}=x({...t,options:{includeMetadata:!0}});if(!n)throw Error("Missing image output metadata");return{src:`${e}${h(t.id)}?${A(r)}`,width:n.outputDimensions.width,height:n.outputDimensions.height}},b=({id:e,mode:t="contain",width:n,height:r,hotspot:a,crop:s,baseUrl:l,...o})=>{let{w:c,h:d}=x({id:e,mode:t,width:n,height:r,hotspot:a,crop:s}),m=`${l}${h(e)}`,u=O(c).map(n=>{let r=Math.round(c*n),l=d&&Math.round(d*n);if(n<1&&r<50)return null;let u=x({id:e,mode:t,width:r,height:l,hotspot:a,crop:s,...o});return`${m}?${A(u)} ${u.w}w`}).filter(e=>!!e);return Array.from(new Set(u))},R=({id:e,baseUrl:t})=>{let{assetId:n,dimensions:r,format:a}=y(e);return{src:`${t}${n}-${r.width}x${r.height}.${a}`,width:r.width,height:r.height}},O=e=>e<160?[.5,1,2]:e<750?[.5,1,1.5,2]:e<1400?[.25,.5,.75,1,1.5,2]:[.25,.5,.75,1,1.25,1.5,1.75,2],x=({id:e,mode:t="contain",width:n,height:r,hotspot:a,crop:s,queryParams:l,options:{includeMetadata:o=!1}={}})=>{let c=y(e).dimensions,{width:d,height:m,aspectRatio:u}=s?T(c,s):c;if(n||(r?(n=Math.round(r*u),r=void 0):n=Math.round(d/2)),"cover"!==t||n&&r&&n/r!==u?"contain"===t&&r&&(n=Math.min(n,Math.round(r*u)),r=void 0):t="contain",n>d||r&&r>m){let e=r?n/r:u;e>=u?(n=d,r=r&&Math.round(n/e)):n=Math.round((r=m)*e)}let p={w:n,q:75,...l};if(p.fm||(p.auto="format"),s&&(p.rect=j(c,s)),"cover"===t){if(p.fit="crop",r&&(p.h=r),a){let e=s?a.x/(1-s.left-s.right):a.x,t=s?a.y/(1-s.top-s.bottom):a.y;p["fp-x"]=Q(N(e,0,1),3),p["fp-y"]=Q(N(t,0,1),3)}else p.crop="entropy"}else p.fit="max";if(o){let e=r||Math.round(n/u);p.metadata={sourceDimensions:c,outputDimensions:{width:n,height:e,aspectRatio:n/e}}}return p},N=(e,t,n)=>Math.max(t,Math.min(n,e)),Q=(e,t)=>Math.round(e*Math.pow(10,t))/Math.pow(10,t),T=(e,t)=>
1{if(t.left+t.right>=1||t.top+t.bottom>=1)throw Error(`Invalid crop: ${JSON.stringify(t)}; crop values must be less than 1`);let n=Math.round(e.width*(1-t.left-t.right)),r=Math.round(e.height*(1-t.top-t.bottom));return{width:n,height:r,aspectRatio:n/r}},j=(e,t)=>{let{width:n,height:r}=T(e,t);return[Math.round(t.left*e.width),Math.round(t.top*e.height),n,r].join(",")},A=e=>new URLSearchParams(Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>[e,String(t)])).toString().replace(/%2C/g,","),w=({as:e,preview:t,...n})=>{let[a,s]=(0,r.useState)(!1),l=(0,r.useRef)(null),i=()=>{s(!0)};(0,r.useEffect)(()=>{var e;null!=(e=l.current)&&e.complete&&i()});let o=e||"img";return r.createElement(r.Fragment,null,!a&&r.createElement(o,{alt:n.alt,className:n.className,"data-lqip":!0,height:n.height,id:n.id,src:t,style:n.style,width:n.width}),r.createElement(o,{"data-loading":!a||null,onLoad:i,ref:l,style:a?void 0:{height:"10px !important",opacity:0,pointerEvents:"none",position:"absolute",userSelect:"none",width:"10px !important",zIndex:-10},...n}))},k=({as:e,baseUrl:t,projectId:n,dataset:a,id:s,hotspot:l,crop:o,width:c,height:d,mode:m="contain",preview:u,htmlWidth:p,htmlHeight:f,htmlId:g,queryParams:v,...Z})=>{var C,M;if(!s)throw Error("Missing required `id` prop for <SanityImage>.");if(!t&&(!n||!a))throw Error("Missing required `baseUrl` or `projectId` and `dataset` props for <SanityImage>.");t=null!=t?t:`https://cdn.sanity.io/images/${n}/${a}/`;let I=s.endsWith("-svg"),z=u&&!I?w:null!=e?e:"img",L={alt:null!=(C=Z.alt)?C:"",loading:null!=(M=Z.loading)?M:"lazy",id:g,...Z};if(I)return r.createElement(z,{...R({id:s,baseUrl:t}),...L});let _={baseUrl:t,id:s,crop:o,hotspot:l,width:c,height:d,mode:m,queryParams:v},{src:E,...H}=S(_);return L.srcSet=b(_).join(", "),L.src=E,L.width=null!=p?p:H.width,L.height=null!=f?f:H.height,u&&(L.as=null!=e?e:"img",L.preview=u),r.createElement(z,{...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.