1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5297],{197:()=>{},5456:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(95155),l=r(3998),o=r(61055),s=r(52619),i=r.n(s);r(12115);let n=e=>{let{type:t,appearance:r="inline",children:s,className:n,label:c,newTab:d,reference:m,size:u,url:f}=e,p="reference"===t&&"object"==typeof(null==m?void 0:m.value)&&m.value.slug?"".concat((null==m?void 0:m.relationTo)!=="pages"?"/".concat(null==m?void 0:m.relationTo):"","/").concat(m.value.slug):f;if(!p)return null;let h=d?{rel:"noopener noreferrer",target:"_blank"}:{};return"inline"===r?(0,a.jsxs)(i(),{className:(0,o.cn)(n),href:p||f||"",...h,children:[c&&c,s&&s]}):(0,a.jsx)(l.$,{asChild:!0,className:n,size:"link"===r?"clear":u,variant:r,children:(0,a.jsxs)(i(),{className:(0,o.cn)(n),href:p||f||"",...h,children:[c&&c,s&&s]})})}},19977:()=>{},21866:()=>{},49746:()=>{},52758:(e,t,r)=>{"use strict";r.d(t,{A:()=>S});var a=r(95155),l=r(61055);r(12115);var o=r(34294);let s=e=>{let t,{captionClassName:r,className:s,enableGutter:i=!0,imgClassName:n,media:c,staticImage:d,disableInnerContainer:m}=e;return c&&"object"==typeof c&&(t=c.caption),(0,a.jsxs)("div",{className:(0,l.cn)("",{container:i},s),children:[(c||d)&&(0,a.jsx)(o.$,{imgClassName:(0,l.cn)("border border-border rounded-[0.8rem]",n),resource:c,src:d}),t&&(0,a.jsx)("div",{className:(0,l.cn)("mt-6",{container:!m},r),children:(0,a.jsx)(S,{data:t,enableGutter:!1})})]})};var i=r(4926),n=r(24507),c=r(73677);let d=e=>{let{className:t,code:r,language:l}=e;return(0,a.jsx)("div",{className:[t,"not-prose"].filter(Boolean).join(" "),children:(0,a.jsx)(c.Code,{code:r,language:l})})};var m=r(54237),u=r(95644),f=r.n(u);let p=["youtube.com","www.youtube.com","youtube-nocookie.com","www.youtube-nocookie.com","player.vimeo.com","vimeo.com","platform.twitter.com","twitter.com","x.com","instagram.com","www.instagram.com","tiktok.com","www.tiktok.com","facebook.com","www.facebook.com","open.spotify.com","spotify.com","w.soundcloud.com","soundcloud.com","bbc.com","bbc.co.uk","embed.bbc.com","datawrapper.dwcdn.net","flo.uri.sh","public.flourish.studio","issuu.com","e.issuu.com"],h=["platform.twitter.com","platform.x.com","www.instagram.com","instagram.com","www.tiktok.com","connect.facebook.net","e.issuu.com"];[...p].sort(),[...h].sort();let w=new Set(p),b=new Set(h);function x(e,t){if(!e)return!1;try{let r=new URL(e,"https://placeholder.local");if("https:"!==r.protocol&&"http:"!==r.protocol)return!1;let a=r.hostname.toLowerCase();if(t.has(a))return!0;for(let e of t)if(a.endsWith("."+e))return!0;return!1}catch(e){return!1}}let g=["class","lang","dir"],v=/^-?\d+(\.\d+)?(%|px|em|rem|vw|vh)?$/,j=/^(-?\d+(\.\d+)?(%|px|em|rem|vw|vh)?|max\([^)]+\)|min\([^)]+\)|calc\([^)]+\)|0)$/,y=/^(-?\d+(\.\d+)?(%|px|em|rem)?|auto|0)$/,k={allowedTags:[...f().defaults.allowedTags,"iframe","script","blockquote","img","figure","figcaption","section"],allowedStyles:{"*":{position:[/^(relative|absolute|static|fixed|sticky)$/i],display:[/^(block|inline|inline-block|flex|inline-flex|grid|none)$/i],overflow:[/^(hidden|auto|visible|scroll)$/i],width:[j],height:[j],"max-width":[j],"min-height":[j],"padding-top":[j],"padding-bottom":[j],"aspect-ratio":[/^[\d.]+\s*(\/\s*[\d.]+)?$/],top:[v,/^auto$/i,/^0$/],bottom:[v,/^auto$/i,/^0$/],left:[v,/^auto$/i,/^0$/],right:[v,/^auto$/i,/^0$/],inset:[v,/^auto$/i,/^0$/],margin:[/^((-?\d+(\.\d+)?(%|px|em|rem)?|auto)\s*){1,4}$/],"margin-top":[y],"margin-bottom":[y],"margin-left":[y],"margin-right":[y],border:[/^none$/i,/^\d+px(\s+\w+){0,2}$/i],"border-width":[v],"border-style":[/^(none|solid|dashed|dotted)$/i]}},allowedAttributes:{"*":g,a:["href","name","target","rel",...g],img:["src","alt","width","height","loading","style",...g],div:["style","data-configid","data-isuu-embed",...g],section:["style",...g],figure:["style",...g],iframe:["src","width","height","allow","allowfullscreen","allowtransparency","frameborder","scrolling","sandbox","loading","referrerpolicy","title","style",...g],script:["src","async","defer","charset","type",...g],blockquote:["cite","style","data-instgrm-permalink","data-instgrm-version","data-instgrm-captioned","data-tiktok-id","data-href","data-lang","data-cards","data-conversation","data-theme","data-width","data-align","data-vi
1deo-id",...g]},allowedSchemes:["http","https","mailto"],allowedSchemesByTag:{iframe:["http","https"],script:["http","https"],img:["http","https","data"]},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,disallowedTagsMode:"discard",nonTextTags:["style","script","textarea","option","noscript"],exclusiveFilter:e=>{var t,r,a;if("iframe"===e.tag)return!x(null!=(t=e.attribs.src)?t:"",w);if("script"===e.tag){let t=null!=(r=e.attribs.src)?r:"";if(!t||!x(t,b)||(null!=(a=e.text)?a:"").trim().length>0)return!0}return!1}},N={"16-9":"aspect-video","4-3":"aspect-[4/3]","9-16":"aspect-[9/16] max-w-sm mx-auto","1-1":"aspect-square"};function $(e){let{html:t,caption:r,aspectRatio:l,className:o}=e;if(!t)return null;let s=t&&"string"==typeof t?f()(t,k):"";if(!s.trim())return null;let i=l&&"auto"!==l?N[l]:null;return(0,a.jsxs)("figure",{className:["cnw-embed","col-start-1 col-span-3","my-6",null!=o?o:""].filter(Boolean).join(" "),children:[(0,a.jsx)(m.EmbedBlockClient,{html:s,aspectClass:i}),r?(0,a.jsx)("figcaption",{className:"mt-2 text-center text-sm text-muted-foreground italic",children:r}):null]})}let C=e=>{let{className:t,content:r,style:o}=e;return(0,a.jsx)("div",{className:(0,l.cn)("mx-auto my-8 w-full",t),children:(0,a.jsx)("div",{className:(0,l.cn)("border py-3 px-6 flex items-center rounded",{"border-border bg-card":"info"===o,"border-error bg-error/30":"error"===o,"border-success bg-success/30":"success"===o,"border-warning bg-warning/30":"warning"===o}),children:(0,a.jsx)(S,{data:r,enableGutter:!1,enableProse:!1})})})};var _=r(5456);let T=e=>{let{links:t,richText:r}=e;return(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,a.jsx)("div",{className:"max-w-[48rem] flex items-center",children:r&&(0,a.jsx)(S,{className:"mb-0",data:r,enableGutter:!1})}),(0,a.jsx)("div",{className:"flex flex-col gap-8",children:(t||[]).map((e,t)=>{let{link:r}=e;return(0,a.jsx)(_.A,{size:"lg",...r},t)})})]})})},E=e=>{let{linkNode:t}=e,{value:r,relationTo:a}=t.fields.doc;if("object"!=typeof r)throw Error("Expected value to be an object");let l=r.slug;return"posts"===a?"/posts/".concat(l):"/".concat(l)},A=e=>{let{defaultConverters:t}=e;return{...t,...(0,i.A)({internalDocToHref:E}),blocks:{banner:e=>{let{node:t}=e;return(0,a.jsx)(C,{className:"col-start-2 mb-4",...t.fields})},mediaBlock:e=>{let{node:t}=e;return(0,a.jsx)(s,{className:"col-start-1 col-span-3",imgClassName:"m-0",...t.fields,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0})},code:e=>{let{node:t}=e;return(0,a.jsx)(d,{className:"col-start-2",...t.fields})},cta:e=>{let{node:t}=e;return(0,a.jsx)(T,{...t.fields})},embed:e=>{let{node:t}=e;return(0,a.jsx)($,{...t.fields})}}}};function S(e){let{className:t,enableProse:r=!0,enableGutter:o=!0,...s}=e;return(0,a.jsx)(n.s,{converters:A,className:(0,l.cn)("payload-richtext",{container:o,"max-w-none":!o,"mx-auto prose md:prose-md dark:prose-invert":r},t),...s})}},54237:(e,t,r)=>{"use strict";r.d(t,{EmbedBlockClient:()=>s});var a=r(95155),l=r(12115);let o=[{host:"twitter",trigger:()=>{var e,t,r;null==(r=window.twttr)||null==(t=r.widgets)||null==(e=t.load)||e.call(t)}},{host:"instagram",trigger:()=>{var e,t,r;null==(r=window.instgrm)||null==(t=r.Embeds)||null==(e=t.process)||e.call(t)}},{host:"facebook",trigger:()=>{var e,t,r;null==(r=window.FB)||null==(t=r.XFBML)||null==(e=t.parse)||e.call(t)}}],s=e=>{let{html:t,aspectClass:r}=e,s=(0,l.useRef)(null);return(0,l.useEffect)(()=>{let e=s.current;if(!e)return;
1Array.from(e.querySelectorAll("script")).forEach(e=>{var t;let r=document.createElement("script");Array.from(e.attributes).forEach(e=>{r.setAttribute(e.name,e.value)}),e.textContent&&(r.textContent=e.textContent),null==(t=e.parentNode)||t.replaceChild(r,e)});let t=window.setTimeout(()=>{o.forEach(e=>{try{e.trigger()}catch(e){}})},600);return()=>{window.clearTimeout(t)}},[t]),(0,a.jsx)("div",{ref:s,className:r?"cnw-embed__frame ".concat(r," relative w-full overflow-hidden rounded-md [&_iframe]:absolute [&_iframe]:inset-0 [&_iframe]:w-full [&_iframe]:h-full [&_iframe]:border-0"):"cnw-embed__frame w-full flex justify-center [&_iframe]:max-w-full [&_blockquote]:mx-auto",dangerouslySetInnerHTML:{__html:t}})}},62908:(e,t,r)=>{"use strict";r.d(t,{LivePreviewListener:()=>i});var a=r(95155),l=r(45116),o=r(45222),s=r(20063);r(12115);let i=()=>{let e=(0,s.useRouter)();return(0,a.jsx)(o.p,{refresh:e.refresh,serverURL:(0,l.y)()})}},73677:(e,t,r)=>{"use strict";r.d(t,{Code:()=>c});var a=r(95155),l=r(24212),o=r(12115),s=r(3998),i=r(40839);function n(e){let{code:t}=e,[r,l]=(0,o.useState)("Copy");return(0,a.jsx)("div",{className:"flex justify-end align-middle",children:(0,a.jsxs)(s.$,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(t),"Copy"===r&&(l(()=>"Copied!"),setTimeout(()=>{l(()=>"Copy")},1e3))},children:[(0,a.jsx)("p",{children:r}),(0,a.jsx)(i.T,{})]})})}let c=e=>{let{code:t,language:r=""}=e;return t?(0,a.jsx)(l.f4,{code:t,language:r,theme:l.Zj.vsDark,children:e=>{let{getLineProps:r,getTokenProps:l,tokens:o}=e;return(0,a.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[o.map((e,t)=>(0,a.jsxs)("div",{...r({className:"table-row",line:e}),children:[(0,a.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:t+1}),(0,a.jsx)("span",{className:"table-cell pl-4",children:e.map((e,t)=>(0,a.jsx)("span",{...l({token:e})},t))})]},t)),(0,a.jsx)(n,{code:t})]})}}):null}}}]);
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.