1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e69b691f-e111-47e2-a507-7ada46900a1d",e._sentryDebugIdIdentifier="sentry-dbid-e69b691f-e111-47e2-a507-7ada46900a1d")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1253],{1199:()=>{},5615:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return l}}),r(8842);let i=r(84589),n=r(81944),s=r(59012),a=["-moz-initial","fill","none","scale-down",void 0];function o(e){return void 0!==e.default}function u(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function l({src:e,sizes:t,unoptimized:r=!1,priority:c=!1,preload:d=!1,loading:h,className:p,quality:f,width:g,height:m,fill:y=!1,style:b,overrideSrc:v,onLoad:w,onLoadingComplete:j,placeholder:$="empty",blurDataURL:x,fetchPriority:R,decoding:E="async",layout:q,objectFit:I,objectPosition:S,lazyBoundary:_,lazyRoot:C,...P},O){var A;let T,D,M,{imgConf:k,showAltText:z,blurComplete:V,defaultLoader:N}=O,U=k||s.imageConfigDefault;if("allSizes"in U)T=U;else{let e=[...U.deviceSizes,...U.imageSizes].sort((e,t)=>e-t),t=U.deviceSizes.sort((e,t)=>e-t),r=U.qualities?.sort((e,t)=>e-t);T={...U,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===N)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let L=P.loader||N;delete P.loader,delete P.srcSet;let F="__next_img_default"in L;if(F){if("custom"===T.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop. 2Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=L;L=t=>{let{config:r,...i}=t;return e(i)}}if(q){"fill"===q&&(y=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[q];e&&(b={...b,...e});let r={responsive:"100vw",fill:"100vw"}[q];r&&!t&&(t=r)}let W="",G=u(g),H=u(m);if((A=e)&&"object"==typeof A&&(o(A)||void 0!==A.src)){let t=o(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(D=t.blurWidth,M=t.blurHeight,x=x||t.blurDataURL,W=t.src,!y)if(G||H){if(G&&!H){let e=G/t.width;H=Math.round(t.height*e)}else if(!G&&H){let e=H/t.height;G=Math.round(t.width*e)}}else G=t.width,H=t.height}let B=!c&&!d&&("lazy"===h||void 0===h);(!(e="string"==typeof e?e:W)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,B=!1),T.unoptimized&&(r=!0),F&&!T.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let K=u(f),Q=Object.assign(y?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:I,objectPosition:S}:{},z?{}:{color:"transparent"},b),J=V||"empty"===$?null:"blur"===$?`url("data:image/svg+xml;charset=utf-8,${(0,n.getImageBlurSvg)({widthInt:G,heightInt:H,blurWidth:D,blurHeight:M,blurDataURL:x||"",objectFit:Q.objectFit})}")`:`url("${$}")`,Z=a.includes(Q.objectFit)?"fill"===Q.objectFit?"100% 100%":"cover":Q.objectFit,X=J?{backgroundSize:Z,backgroundPosition:Q.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:J}:{},Y=function({config:e,src:t,unoptimized:r,width:n,quality:s,sizes:a,loader:o}){if(r){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,i.getDeploymentId)();if(e){let r=t.indexOf("?");if(-1!==r){let i=new URLSearchParams(t.slice(r+1));i.get("dpl")||(i.append("dpl",e),t=t.slice(0,r)+"?"+i.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:u,kind:l}=function({deviceSizes:e,allSizes:t},r,i){if(i){let r=/(^|\s)(1?\d?\d)vw/g,n=[];for(let e;e=r.exec(i);)n.push(parseInt(e[2]));if(n.length){let r=.01*Math.min(...n);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,n,a),c=u.length-1;return{sizes:a||"w"!==l?a:"100vw",srcSet:u.map((r,i)=>`${o({config:e,src:t,quality:s,width:r})} ${"w"===l?r:i+1}${l}`).join(", "),src:o({config:e,src:t,quality:s,width:u[c]})}}({config:T,src:e,unoptimized:r,width:G,quality:K,sizes:t,loader:L}),ee=B?"lazy":h;return{props:{...P,loading:ee,fetchPriority:R,width:G,height:H,decoding:E,className:p,style:{...Q,...X}
2,sizes:Y.sizes,srcSet:Y.srcSet,src:v||Y.src},meta:{unoptimized:r,preload:d||c,placeholder:$,fill:y}}}},6686:()=>{},9147:(e,t)=>{"use strict";function r(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,t.qualities[0]):r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findClosestQuality",{enumerable:!0,get:function(){return r}})},9308:()=>{},9697:(e,t,r)=>{"use strict";function i(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}r.d(t,{Q:()=>d,u4:()=>i,y:()=>u});var n={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},s={0:8203,1:8204,2:8205,3:65279},a={0:String.fromCodePoint(s[0]),1:String.fromCodePoint(s[1]),2:String.fromCodePoint(s[2]),3:String.fromCodePoint(s[3])},o=[,,,,].fill(String.fromCodePoint(s[0])).join("");function u(e,t,r="auto"){return!0===r||"auto"===r&&(!(!Number.isNaN(Number(e))||/[a-z]/i.test(e)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e))&&Date.parse(e)||function(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(e))?e:`${e}${function(e){let t=JSON.stringify(e),r=new TextEncoder().encode(t),i="";for(let e=0;e<r.length;e++){let t=r[e];i+=a[t>>6&3]+a[t>>4&3]+a[t>>2&3]+a[3&t]}return o+i}(t)}`}Object.fromEntries(Object.entries(a).map(e=>[e[1],+e[0]])),Object.fromEntries(Object.entries(n).map(e=>e.reverse()));var l=`${Object.values(n).map(e=>`\\u{${e.toString(16)}}`).join("")}`,c=RegExp(`[${l}]{4,}`,"gu");function d(e){var t,r;return e&&JSON.parse({cleaned:(t=JSON.stringify(e)).replace(c,""),encoded:(null==(r=t.match(c))?void 0:r[0])||""}.cleaned)}},11230:()=>{},13380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let i=r(59078)._(r(7620)),n=r(59012),s=i.default.createContext(n.imageConfigDefault)},15622:(e,t,r)=>{"use strict";r.d(t,{z:()=>d});var i=r(7620),n=r(51165),s=r(46536),a=r(61498),o=r(93687),u=r(5742),l=r(90590);function c(e){return"number"==typeof e?e:parseFloat(e)}function d(e,t={}){let{isStatic:r}=(0,i.useContext)(s.Q),h=(0,i.useRef)(null),p=(0,o.d)((0,u.S)(e)?c(e.get()):e),f=(0,i.useRef)(p.get()),g=(0,i.useRef)(()=>{}),m=()=>{let e=h.current;e&&0===e.time&&e.sample(l.uv.delta),y(),h.current=(0,n.L)({keyframes:[p.get(),f.current],velocity:p.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...t,onUpdate:g.current})},y=()=>{h.current&&h.current.stop()};return(0,i.useInsertionEffect)(()=>p.attach((e,t)=>r?t(e):(f.current=e,g.current=t,l.Gt.update(m),p.get()),y),[JSON.stringify(t)]),(0,a.E)(()=>{if((0,u.S)(e))return e.on("change",e=>p.set(c(e)))},[p]),p}},16176:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={default:function(){return g},defaultHead:function(){return d}};for(var n in i)Object.defineProperty(t,n,{enumerable:!0,get:i[n]});let s=r(59078),a=r(5727),o=r(54568),u=a._(r(7620)),l=s._(r(93793)),c=r(88714);function d(){return[(0,o.jsx)("meta",{charSet:"utf-8"},"charset"),(0,o.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function h(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===u.default.Fragment?e.concat(u.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(8842);let p=["name","httpEquiv","charSet","itemProp"];function f(e){let t,r,i,n;return e.reduce(h,[]).reverse().concat(d().reverse()).filter((t=new Set,r=new Set,i=new Set,n={},e=>{let s=!0,a=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){a=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?s=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?s=!1:r.add(e.type);break;case"meta":for(let t=0,r=p.length;t<r;t++){let r=p[t];if(e.props.hasOwnProperty(r))if("charSet"===r)i.has(r)?s=!1:i.add(r);else{let t=e.props[r],i=n[r]||new Set;
2("name"!==r||!a)&&i.has(t)?s=!1:(i.add(t),n[r]=i)}}}return s})).reverse().map((e,t)=>{let r=e.key||t;return u.default.cloneElement(e,{key:r})})}let g=function({children:e}){let t=(0,u.useContext)(c.HeadManagerContext);return(0,o.jsx)(l.default,{reduceComponentsToState:f,headManager:t,children:e})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19976:(e,t,r)=>{"use strict";r.d(t,{S:()=>g,U:()=>y});var i=r(14254),n=r(22501),s=r(52308),a=r(60958),o=r(92786),u=r(76678),l=r(17737),c=r(81638),d=r(19625),h=r(60128),p=r(72827),f=r(53344);function g(e={}){return{AccordionSection:e?.[i.g.AccordionSection]??n.A,CardsSection:e?.[i.g.CardsSection]??s.T,DecorativeVideoSection:e?.[i.g.DecorativeVideoSection]??a.x,DefinitionSection:e?.[i.g.DefinitionSection]??o.r,FrameSection:e?.[i.g.FrameSection]??u.T,HeroSection:e?.[i.g.HeroSection]??l.s,ImageSection:e?.[i.g.ImageSection]??c.P,InfoSection:e?.[i.g.InfoSection]??d.E,MarkdownSection:e?.[i.g.MarkdownSection]??h.X,QuoteSection:e?.[i.g.QuoteSection]??p._,VideoSection:e?.[i.g.VideoSection]??f.Z,...e}}var m=r(36345);function y(e={}){return{AccordionSection:e?.[i.g.AccordionSection]??m.K_,CardsSection:e?.[i.g.CardsSection]??m.nk,DecorativeVideoSection:e?.[i.g.DecorativeVideoSection]??m.Tb,DefinitionSection:e?.[i.g.DefinitionSection]??m.LG,FrameSection:e?.[i.g.FrameSection]??m.d0,HeroSection:e?.[i.g.HeroSection]??m.KE,ImageSection:e?.[i.g.ImageSection]??m.NK,InfoSection:e?.[i.g.InfoSection]??m.K4,MarkdownSection:e?.[i.g.MarkdownSection]??m.d9,QuoteSection:e?.[i.g.QuoteSection]??m.On,VideoSection:e?.[i.g.VideoSection]??m.T_,...e}}},23269:(e,t,r)=>{"use strict";r.d(t,{T:()=>g});var i=r(54568),n=r(90524),s=r(89946),a=r(51572),o=r(62076),u=r(7620),l=r(72383),c=r(90188),d=r(31248),h=r(77487),p=r(6613),f=r(5833);function g({children:e,perspective:t,perspectiveOrigin:r,transition:s,stagger:a,leading:o=0,trailing:l=e.length-1,animate:c=(e,t)=>({transform:`translateZ(${-100*e}px)`,opacity:1-Math.sqrt(e/t)}),enter:d=e=>({...v(c,l+1,e),opacity:0}),exit:h=e=>({...v(c,-o-1,e),opacity:0,zIndex:1,pointerEvents:"none"}),Controls:p=w,cursor:f,onChange:y,...j}){let{entries:$,cursor:x,setCursor:R,delta:E}=function({children:e,leading:t=0,trailing:r=e.length-1}){let[i,s]=(0,u.useState)(0),[a,o]=(0,u.useState)(0);(0,u.useEffect)(()=>{if(0!==a){s(e=>e+a);let e=setTimeout(()=>{o(0)},1);return()=>clearTimeout(e)}},[a]);let l=(0,n.xP)(i,e.length),c=Math.floor(i/e.length);return{entries:(0,u.useMemo)(()=>(0,n.K2)(l-t,l+r).map(t=>{let r=t<0?c-1:t>=e.length?c+1:c,i=(0,n.xP)(t,e.length),s=e[i];return(0,u.cloneElement)(s,{key:`${r}.${s.key??i}`})}).reverse(),[l,t,r]),index:l,cycle:c,cursor:i,setCursor:function(e){o(e-i)},delta:a}}({children:e,leading:o,trailing:l});return(0,u.useEffect)(()=>{"number"==typeof f&&R(f)},[f]),y=y??R,(0,i.jsxs)(m,{...j,onPanEnd:(e,t)=>{y(x-function(e,{velocityThreshold:t=100,distanceThreshold:r=32}={}){return e.velocity.x<-t&&e.offset.x<-r?n.OP.left:e.velocity.x>t&&e.offset.x>r?n.OP.right:n.I9.zero}(t).x)},style:{touchAction:"none",...j.style},children:[(0,i.jsx)(b,{perspective:t,perspectiveOrigin:r,transition:s,stagger:a,animate:"function"==typeof c?e=>c(e-o,1+l):c,enter:E>0?d:E<0?h:{opacity:0},exit:E>0?h:E<0?d:{opacity:0},children:$}),p&&(0,i.jsx)(p,{count:e.length,cursor:x,onChange:y})]})}let m=a.P.create(f.B),y=a.P.create(d.a);function b({perspective:e=1e3,perspectiveOrigin:t="50% -50%",children:r,transition:n=c.aN,stagger:s=.1,animate:a,enter:u,exit:l,...h}){return(0,i.jsx)(d.a,{position:"relative",...h,style:{perspective:e,perspectiveOrigin:t},children:(0,i.jsx)(o.N,{initial:!1,children:r.map((e,t)=>{var o,c,d,h;let p=r.length-1-t;return(0,i.jsx)(y,{position:"absolute",size:"stretch",animate:{opacity:1,...v(a,p,r.length)},initial:(o=u,c=r.length,"function"==typeof o?o(c):o),exit:(d=l,h=r.length,"function"==typeof d?d(h):d),transition:{...n,delay:n.delay??0+Math.abs(p)*s},children:e},e.key)})})})}function v(e,t,r){return"function"==typeof e?e(t,r):e}
2function w({cursor:e,onChange:t,...r}){let{IconButton:n,Icon:a}=(0,l.k)(),o=(0,s.K_)();return(0,i.jsx)(h.V,{padding:"500",justify:"center",...r,children:(0,i.jsxs)(p.f,{justify:"between",align:"center",children:[(0,i.jsx)(n,{variant:"tertiary",icon:a.ArrowLeft,onClick:()=>t(e-1),"aria-label":o.get("previous")}),(0,i.jsx)(n,{variant:"tertiary",icon:a.ArrowRight,onClick:()=>t(e+1),"aria-label":o.get("next")})]})})}},24723:()=>{},26573:(e,t,r)=>{"use strict";r.d(t,{Page:()=>c,b:()=>v});var i=r(54568),n=r(83863),s=r(7620),a=r(90188),o=r(82671),u=r(31248),l=r(77487);r(24723);let c=(0,s.forwardRef)(function({header:e,headerBehavior:t={position:"static"},footer:r,footerBehavior:a={position:"static"},children:o,...u},c){let[h,f]=(0,s.useState)(null),{height:m}=(0,n.XX)({ref:h})??{},[y,v]=(0,s.useState)(!0),[w,j]=(0,s.useState)(null),{height:$}=(0,n.XX)({ref:w})??{},x=(0,s.useCallback)(()=>window.requestAnimationFrame(()=>v(!0)),[]),R=(0,s.useCallback)(()=>window.requestAnimationFrame(()=>v(!1)),[]),E=(0,s.useMemo)(()=>({header:{behavior:t,height:m,isOpen:y,open:x,close:R},footer:{behavior:a,height:$}}),[t,m,y,x,R,a,$]);return(0,i.jsx)(b,{value:E,children:(0,i.jsxs)(l.V,{ref:c,size:"stretch",...u,children:[(0,i.jsx)(d,{containerRef:f,behavior:t,children:e}),(0,i.jsx)(p,{headerBehavior:t,children:o}),(0,i.jsx)(g,{containerRef:j,behavior:a,children:r})]})})}),d=(0,s.memo)(function({behavior:{position:e,hide:t},children:r,containerRef:n}){let s=(0,i.jsx)("div",{ref:n,children:r});return(0,i.jsx)("div",{style:{flexGrow:0,flexShrink:0},children:"fixed"===e?(0,i.jsx)("div",{className:"_10t1opx0",children:t?(0,i.jsx)(h,{..."object"==typeof t?t:{},children:s}):s}):s})});function h({threshold:e=0,factor:t=1,transition:r=a.dv,children:u}){let{useProgress:l}=(0,n.Ll)(),{position:{y:c}}=l(),{height:d=0,isOpen:p}=v(),f=(0,n.KB)(c)??0,[g,m]=(0,s.useState)(0);return(0,s.useEffect)(()=>{f>0?c>e&&g>-d&&m(e=>Math.max(-d,e-f*("number"==typeof t?t:t.hide??1))):g<0&&m(e=>Math.min(0,e-f*("number"==typeof t?t:t.show??1)))},[t,d,g,f,c,e]),(0,i.jsx)(o.Z,{motion:{animate:{y:p?g:-d}},transition:r,children:u})}let p=(0,s.memo)(function({headerBehavior:e,children:t}){let r="fixed"===e.position&&(e.reserveSpace??!0);return(0,i.jsxs)(l.V,{grow:1,children:[r&&(0,i.jsx)(f,{initialHeight:e.initialHeight}),(0,i.jsx)(l.V,{grow:1,children:t})]})});function f({initialHeight:e}){let{height:t}=v();return(0,i.jsx)("div",{style:{height:t?`${t}px`:e}})}let g=(0,s.memo)(function({containerRef:e,behavior:t,children:r}){return(0,i.jsxs)(i.Fragment,{children:["fixed"===t.position&&(0,i.jsx)(m,{}),(0,i.jsx)("div",{ref:e,style:"fixed"===t.position?{position:"fixed",left:0,right:0,bottom:0,zIndex:1}:{flexGrow:0,flexShrink:0,zIndex:1},children:r})]})});function m({initialHeight:e}){let{height:t}=function(){let{footer:e}=(0,s.useContext)(y);return e}();return(0,i.jsx)(u.a,{style:{height:t?`${t}px`:e,pointerEvents:"none",flexShrink:0}})}let y=(0,s.createContext)({header:{height:void 0,behavior:void 0,isOpen:!0,open:()=>{console.warn("Failed to open header, because no PageContext was found.")},close:()=>{console.warn("Failed to close header, because no PageContext was found.")}},footer:{height:void 0,behavior:void 0}}),b=y.Provider;function v(){let{header:e}=(0,s.useContext)(y);return e}},28766:()=>{},30186:(e,t,r)=>{"use strict";r.d(t,{default:()=>n.a});var i=r(62681),n=r.n(i)},30525:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let i=r(9147),n=r(84589);function s({config:e,src:t,width:r,quality:a}){let o=(0,n.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//")){let e=t.indexOf("?");if(-1!==e){let r=new URLSearchParams(t.slice(e+1)),i=r.get("dpl");if(i){o=i,r.delete("dpl");let n=r.toString();t=t.slice(0,e)+(n?"?"+n:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns. 3Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,
3configurable:!0});let u=(0,i.findClosestQuality)(a,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${u}${t.startsWith("/")&&o?`&dpl=${o}`:""}`}s.__next_img_default=!0;let a=s},31189:()=>{},31280:()=>{},31310:(e,t,r)=>{"use strict";r.d(t,{d:()=>d});var i=r(54568),n=r(89946),s=r(7620),a=r(90524),o=r(72383),u=r(17616),l=r(6613),c=r(60046);let d=(0,s.forwardRef)(function({count:e,value:t,onChange:r,siblingCount:d=1,boundaryCount:h=1,showSiblingControls:p=!0,showBoundaryControls:f=!1,disabled:g=!1,...m},y){let b=(0,n.K_)(),{Icon:v}=(0,o.k)(),{page:w,pages:j,range:$,setPage:x}=function(e){(0,a.vA)(e.boundaries>=0,"Boundaries must be a positive number"),(0,a.vA)(e.siblings>=0,"Siblings must be a positive number"),e.gapSize&&(0,a.vA)(e.gapSize>=0,"Gap size must be a positive number"),e.initialPage&&(0,a.vA)(e.initialPage>0,"Initial page must be a positive number");let{items:t,itemsPerPage:r,hasItems:i}="pages"in e?{items:(0,a.K2)(1,e.pages),itemsPerPage:1,hasItems:!1}:{...e,hasItems:!0},n=(0,s.useMemo)(()=>Math.ceil(t.length/r),[r,t]),o=(0,s.useCallback)(e=>(0,a.qE)(e,1,Math.max(1,n)),[n]),[u,l]=(0,s.useState)(o(e.initialPage??1)),c=(0,s.useCallback)((e,t)=>(0,a.K2)(o(e),o(t)),[o]),{boundaries:d=1,siblings:h=1,gapSize:p=1}=e,f=(0,s.useMemo)(()=>(function(e,t,r,i,n=1){var s,o,u,l;let c,d,h,p,f,g,m;return function(e,t=1){return e.reduce((e,r)=>{let i=e[e.length-1],n=i[0],s=i[i.length-1],o=r[0],u=r[r.length-1];return o-s<=t+1?(e.pop(),e.push((0,a.K2)(n,u))):e.push(r),e},[e.shift()])}((u=(s=e,c=t+1-(o=i+n+1+2*r),h=(d=s[1])[0],(p=d[d.length-1])<o&&(d=(0,a.K2)(h,o)),h>c&&(d=(0,a.K2)(c,p)),[s[0],d,s[2]]),l=t,g=(f=u[1])[0],m=f[f.length-1],u.filter((e,t)=>{if(0===e.length){if(0===t)return 1!==g;else if(t===u.length-1)return m!==l}return!0})),n)})([d?c(1,d):[],c(u-h,u+h),d?c(n+1-d,n):[]],n,h,d,p),[u,d,h,c,n,p]),g=(0,s.useMemo)(()=>t.slice((u-1)*r,(u-1)*r+r),[r,t,u]),m=e=>l(()=>o(e));return{page:u,setPage:m,next:()=>m(u+1),previous:()=>m(u-1),pages:n,range:f,...i?{items:g}:{}}}({pages:e,initialPage:t,siblings:d,boundaries:h});return(0,s.useEffect)(()=>{x(t)},[t]),(0,i.jsxs)(l.f,{ref:y,justify:"center",align:"center",gap:"200",...m,children:[f&&(0,i.jsx)(u.K,{variant:"tertiary",icon:v.FirstPage,onClick:()=>r(1),disabled:g||1===w,title:b.get("first")}),p&&(0,i.jsx)(u.K,{variant:"tertiary",icon:v.ChevronLeft,onClick:()=>r(w-1),disabled:g||1===w,title:b.get("previous")}),$.map((e,t)=>(0,i.jsxs)(i.Fragment,{children:[t>0&&(0,i.jsx)(u.K,{variant:"tertiary",icon:v.MoreHoriz,disabled:!0}),e.map(e=>(0,i.jsx)(c.P,{variant:e===w?"primary":"tertiary",onClick:()=>r(e),disabled:g,children:e},e))]})),p&&(0,i.jsx)(u.K,{variant:"tertiary",icon:v.ChevronRight,onClick:()=>r(w+1),disabled:g||w===j,title:b.get("next")}),f&&(0,i.jsx)(u.K,{variant:"tertiary",icon:v.LastPage,onClick:()=>r(j),disabled:g||w===j,title:b.get("last")})]})})},33003:(e,t,r)=>{"use strict";r.d(t,{c:()=>c});var i=r(54568),n=r(82226),s=r(84333),a=r.n(s),o=r(29916),u=r(10571),l=r(17481);function c({client:e,sections:t={},adapters:r={},components:{Separator:s,...d}={},children:h,...p}){let f=(0,u.g)();return(0,i.jsx)(n.c,{...p,components:d,children:(0,i.jsx)(o.fusionContext.Provider,{value:{client:e,sections:a()(f.sections,t),adapters:a()(f.adapters,r),components:{Separator:s,PortableText:l.R}},children:h})})}},35720:(e,t,r)=>{"use strict";r.d(t,{V:()=>a});var i=r(69668),n=r(93687),s=r(90590);function a(e){let t=(0,n.d)(e.getVelocity()),r=()=>{let i=e.getVelocity();t.set(i),i&&s.Gt.update(r)};return(0,i.L)(e,"change",()=>{s.Gt.update(r,!1,!0)}),t}},37731:()=>{},40713:()=>{},41184:(e,t,r)=>{"use strict";r.d(t,{I:()=>a});var i=r(7620),n=r(98351),s=r(54444);function a(){s.r.current||(0,n.U)();let[e]=(0,i.useState)(s.O.current);return e}},46699:(e,t,r)=>{"use strict";r.d(t,{N:()=>a});var i=r(7620),n=r(46536),s=r(90590);function a(e){let t=(0,i.useRef)(0),{isStatic:r}=(0,i.useContext)(n.Q);(0,i.useEffect)(()=>{if(r)return;let i=({timestamp:r,delta:i})=>{t.current||(t.current=r),e(r-t.current,i)};return s.Gt.update(i,!0),()=>(0,s.WG)(i)},[e])}},48306:()=>{},53282:(e,t,r)=>{"use strict";r.d(t,{A_:()=>m,C:()=>h,IM:()=>w,R8:()=>g,T4:()=>y,_S:()=>v,ct:()=>b,iz:()=>j});let i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/_key\s*==\s*['"](.*)['"]/,s=/^\d*:\d*$/;function a(e){return"number"==typeof e||"string"==typeof e&&/^\[\d+\]$/.test(e)}function o(e){return"string"==typeof e?n.test(e.trim()):"object"==typeof e&&"_key"in e}function u(e){if("string"==typeof e&&s.test(e))return!0;
3if(!Array.isArray(e)||2!==e.length)return!1;let[t,r]=e;return("number"==typeof t||""===t)&&("number"==typeof r||""===r)}function l(e){if(!Array.isArray(e))throw Error("Path is not an array");return e.reduce((e,t,r)=>{let i=typeof t;if("number"===i)return`${e}[${t}]`;if("string"===i)return`${e}${0===r?"":"."}${t}`;if(o(t)&&t._key)return`${e}[_key=="${t._key}"]`;if(Array.isArray(t)){let[r,i]=t;return`${e}[${r}:${i}]`}throw Error(`Unsupported path segment \`${JSON.stringify(t)}\``)},"")}function c(e){if("string"!=typeof e)throw Error("Path is not a string");let t=e.match(i);if(!t)throw Error("Invalid path string");return t.map(d)}function d(e){return a(e)?Number(e.replace(/[^\d]/g,"")):o(e)?{_key:e.match(n)[1]}:u(e)?function(e){let[t,r]=e.split(":").map(e=>""===e?e:Number(e));return[t,r]}(e):e}var h=Object.freeze({__proto__:null,fromString:c,get:function(e,t,r){let i="string"==typeof t?c(t):t;if(!Array.isArray(i))throw Error("Path must be an array or a string");let n=e;for(let e=0;e<i.length;e++){let t=i[e];if(a(t)){if(!Array.isArray(n))return r;n=n[t]}if(o(t)){if(!Array.isArray(n))return r;n=n.find(e=>e._key===t._key)}if("string"==typeof t&&(n="object"==typeof n&&null!==n?n[t]:void 0),typeof n>"u")return r}return n},isIndexSegment:a,isIndexTuple:u,isKeySegment:o,reKeySegment:n,toString:l});let p="drafts.",f="versions.";function g(e){return e.startsWith(p)}function m(e){return e.startsWith(f)}function y(e){return m(e)?p+w(e):g(e)?e:p+e}function b(e,t){if("drafts"===t||"published"===t)throw Error('Version can not be "published" or "drafts"');return`${f}${t}.${w(e)}`}function v(e){if(!m(e))return;let[t,r]=e.split(".");return r}function w(e){return m(e)?e.split(".").slice(2).join("."):g(e)?e.slice(p.length):e}function j(e){let{baseUrl:t,workspace:r="default",tool:i="default",id:n,type:s,path:a,projectId:o,dataset:u}=e;if(!t)throw Error("baseUrl is required");if(!a)throw Error("path is required");if(!n)throw Error("id is required");if("/"!==t&&t.endsWith("/"))throw Error("baseUrl must not end with a slash");let c="default"===r?void 0:r,d="default"===i?void 0:i,h=w(n),p=Array.isArray(a)?l(a.map(e=>{if("string"==typeof e||"number"==typeof e)return e;if(""!==e._key)return{_key:e._key};if(-1!==e._index)return e._index;throw Error(`invalid segment:${JSON.stringify(e)}`)})):a,f=new URLSearchParams({baseUrl:t,id:h,type:s,path:p});if(c&&f.set("workspace",c),d&&f.set("tool",d),o&&f.set("projectId",o),u&&f.set("dataset",u),g(n)||m(n)){if(m(n)){let e=v(n);f.set("perspective",e)}}else f.set("perspective","published");let y=["/"===t?"":t];c&&y.push(c);let b=["mode=presentation",`id=${h}`,`type=${s}`,`path=${encodeURIComponent(p)}`];return d&&b.push(`tool=${d}`),y.push("intent","edit",`${b.join(";")}?${f}`),y.join("/")}},54283:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return w}});let i=r(59078),n=r(5727),s=r(54568),a=n._(r(7620)),o=i._(r(97509)),u=i._(r(16176)),l=r(5615),c=r(59012),d=r(13380);r(8842);let h=r(57753),p=i._(r(30525)),f=r(83482),g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function m(e,t,r,i,n,s,a){let o=e?.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&n(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let i=!1,n=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>i,isPropagationStopped:()=>n,persist:()=>{},preventDefault:()=>{i=!0,t.preventDefault()},stopPropagation:()=>{n=!0,t.stopPropagation()}})}i?.current&&i.current(e)}}))}function y(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}let b=(0,a.forwardRef)(({src:e,srcSet:t,sizes:r,height:i,width:n,decoding:o,className:u,style:l,fetchPriority:c,placeholder:d,loading:h,unoptimized:p,fill:g,onLoadRef:b,onLoadingCompleteRef:v,setBlurComplete:w,setShowAltText:j,sizesInput:$,onLoad:x,onError:R,...E},q)=>{let I=(0,a.useCallback)(e=>{e&&(R&&(e.src=e.src),e.complete&&m(e,d,b,v,w,p,$))},[e,d,b,v,w,R,p,$]),S=(0,f.useMergedRef)(q,I);return(0,s.jsx)("img",{...E,...y(c),loading:h,width:n,height:i,decoding:o,"data-nimg":g?"fill":"1",className:u,style:l,sizes:r,srcSet:t,src:e,ref:S,onLoad:e=>{m(e.currentTarget,d,b,v,w,p,$)},onError:e=>{j(!0),"empty"!==d&&w(!0),R&&R(e)}})});function v({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...y(t.fetchPriority)};return e&&o.default.preload?(o.default.preload(t.src,r),null):(0,s.jsx)(u.default,{children:(0,s.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let w=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(h.RouterContext),i=(0,a.useContext)(d.ImageConfigContext),n=(0,a.useMemo)(()=>{let e=g||i||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>
3e-t),r=e.deviceSizes.sort((e,t)=>e-t),n=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:n,localPatterns:e.localPatterns}},[i]),{onLoad:o,onLoadingComplete:u}=e,f=(0,a.useRef)(o);(0,a.useEffect)(()=>{f.current=o},[o]);let m=(0,a.useRef)(u);(0,a.useEffect)(()=>{m.current=u},[u]);let[y,w]=(0,a.useState)(!1),[j,$]=(0,a.useState)(!1),{props:x,meta:R}=(0,l.getImgProps)(e,{defaultLoader:p.default,imgConf:n,blurComplete:y,showAltText:j});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(b,{...x,unoptimized:R.unoptimized,placeholder:R.placeholder,fill:R.fill,onLoadRef:f,onLoadingCompleteRef:m,setBlurComplete:w,setShowAltText:$,sizesInput:e.sizes,ref:t}),R.preload?(0,s.jsx)(v,{isAppRouter:!r,imgAttributes:x}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55688:()=>{},59012:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={VALID_LOADERS:function(){return n},imageConfigDefault:function(){return s}};for(var i in r)Object.defineProperty(t,i,{enumerable:!0,get:r[i]});let n=["default","imgix","cloudinary","akamai","custom"],s={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},60954:()=>{},62629:(e,t,r)=>{"use strict";r.d(t,{Q:()=>o});var i={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},n={0:8203,1:8204,2:8205,3:65279};[,,,,].fill(String.fromCodePoint(n[0])).join(""),Object.fromEntries(Object.entries(n).map(e=>e.reverse())),Object.fromEntries(Object.entries(i).map(e=>e.reverse()));var s=`${Object.values(i).map(e=>`\\u{${e.toString(16)}}`).join("")}`,a=RegExp(`[${s}]{4,}`,"gu");function o(e){var t,r;return e&&JSON.parse({cleaned:(t=JSON.stringify(e)).replace(a,""),encoded:(null==(r=t.match(a))?void 0:r[0])||""}.cleaned)}},62681:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={default:function(){return c},getImageProps:function(){return l}};for(var n in i)Object.defineProperty(t,n,{enumerable:!0,get:i[n]});let s=r(59078),a=r(5615),o=r(54283),u=s._(r(30525));function l(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:u.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let c=o.Image},64677:()=>{},68259:()=>{},73473:(e,t,r)=>{"use strict";r.d(t,{z:()=>p});var i=r(54568),n=r(7620),s=r(72383),a=r(77487),o=r(6613);r(31280);var u=r(81993),l=(0,u.c)({defaultClassName:"_4ubqa05",variantClassNames:{disabled:{true:"_4ubqa06"}},defaultVariants:{},compoundVariants:[]}),c=(0,u.c)({defaultClassName:"_4ubqa07",variantClassNames:{disabled:{true:"_4ubqa08"}},defaultVariants:{},compoundVariants:[]}),d=(0,u.c)({defaultClassName:"_4ubqa03",variantClassNames:{disabled:{true:"_4ubqa04"}},defaultVariants:{},compoundVariants:[]}),h=(0,u.c)({defaultClassName:"_4ubqa01",variantClassNames:{disabled:{true:"_4ubqa02"}},defaultVariants:{},compoundVariants:[]});let p=(0,n.forwardRef)(function({gap:e="300",label:t,indicator:r,hint:n,error:u,disabled:p,children:f,className:g,...m},y){let{Text:b}=(0,s.k)(),v=u?(0,i.jsx)(b,{variant:"body3",role:"alert",className:l({disabled:p}),children:u}):n?(0,i.jsx)(b,{variant:"body3",className:c({disabled:p}),children:n}):null;return(0,i.jsxs)(a.V,{as:"label",ref:y,...m,gap:e,className:["_4ubqa00",g],children:[(t||r)&&(0,i.jsxs)(o.f,{justify:"between",align:"baseline",children:[t&&(0,i.jsx)(b,{variant:"label2",className:h({disabled:p}),children:t}),r&&(0,i.jsx)(b,{variant:"label3",className:d({disabled:p}),children:r})]}),f,v]})})},78859:()=>{},81944:(e,t)=>{"use strict";function r({widthInt:e,heightInt:t,blurWidth:i,blurHeight:n,blurDataURL:s,objectFit:a}
3){let o=i?40*i:e,u=n?40*n:t,l=o&&u?`viewBox='0 0 ${o} ${u}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${l}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${l?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${s}'/%3E%3C/svg%3E`}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},82721:(e,t,r)=>{"use strict";r.d(t,{p:()=>u});var i=r(54568),n=r(7620),s=r(6613);r(1199);var a=(0,r(81993).c)({defaultClassName:"_1gxo1gb0",variantClassNames:{error:{true:"_1gxo1gb1"},disabled:{true:"_1gxo1gb2"}},defaultVariants:{},compoundVariants:[]}),o=r(31248);let u=(0,n.forwardRef)(function({overflow:e="hidden",type:t="text",inputMode:r,value:n,onChange:o,disabled:u,placeholder:c,error:d,leading:h,trailing:p,className:f,input:g,...m},y){return(0,i.jsxs)(s.f,{as:"label",position:"relative",display:"inline-flex",justify:"between",align:"center",...m,overflow:e,className:[a({error:d,disabled:u}),f],children:[h,(0,i.jsx)(l,{ref:y,type:t,inputMode:r,value:n,onChange:o,disabled:u,placeholder:c,...g}),p]})}),l=(0,n.forwardRef)(function({type:e,...t},r){return(0,i.jsx)(o.a,{ref:r,as:"input",type:e,...t,className:["_1gxo1gb3",t.className]})})},84333:e=>{"use strict";var t=function(e){var t,i,n;return!!(t=e)&&"object"==typeof t&&(i=e,"[object RegExp]"!==(n=Object.prototype.toString.call(i))&&"[object Date]"!==n&&i.$$typeof!==r)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?o(Array.isArray(e)?[]:{},e,t):e}function n(e,t,r){return e.concat(t).map(function(e){return i(e,r)})}function s(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function a(e,t){try{return t in e}catch(e){return!1}}function o(e,r,u){(u=u||{}).arrayMerge=u.arrayMerge||n,u.isMergeableObject=u.isMergeableObject||t,u.cloneUnlessOtherwiseSpecified=i;var l,c,d=Array.isArray(r);return d!==Array.isArray(e)?i(r,u):d?u.arrayMerge(e,r,u):(c={},(l=u).isMergeableObject(e)&&s(e).forEach(function(t){c[t]=i(e[t],l)}),s(r).forEach(function(t){a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))||(a(e,t)&&l.isMergeableObject(r[t])?c[t]=(function(e,t){if(!t.customMerge)return o;var r=t.customMerge(e);return"function"==typeof r?r:o})(t,l)(e[t],r[t],l):c[t]=i(r[t],l))}),c)}o.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return o(e,r,t)},{})},e.exports=o},88514:()=>{},92699:()=>{},92721:(e,t,r)=>{"use strict";r.d(t,{c:()=>a});var i=r(54568),n=r(22856),s=r(39072);function a({components:e={},children:t}){let{components:r}=(0,s.g)();return(0,i.jsx)(n.fusionContext.Provider,{value:{components:{...r,...e}},children:t})}},92953:()=>{},93793:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let i=r(7620),n=i.useLayoutEffect,s=i.useEffect;function a(e){let{headManager:t,reduceComponentsToState:r}=e;function a(){if(t&&t.mountedInstances){let e=i.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return n(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),n(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),s(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},95528:(e,t,r)=>{"use strict";r.d(t,{UU:()=>tC});var i,n=r(52553),s=r(64195),a=r(69974),o=r(54801),u=r(6949),l=r(94614),c=r(117),d=r(64777),h=r(83492),p=r(57147),f=r(93602),g=r(70705),m=r(55669),y=r(34653),b=r(22286),v=r(9071),w=r(33312),j=r(91045),$=r(15709),x=r(35301),R=r(48194);function E(e,t){var r="object"==typeof t;return new Promise(function(i,n){var s=new R.Ms({next:function(e){i(e),s.unsubscribe()},error:n,complete:function(){r?i(t.defaultValue):n(new x.G)}});e.subscribe(s)})}var q=r(9697),I=r(49487),S=r(3475),_=r(53282);let C=e=>crypto.getRandomValues(new Uint8Array(e)),P=/\r\n|[\n\r\u2028\u2029]/;function O(e,t){let r=0;for(let i=0;i<t.length;i++){let n=t[i].length+1;if(r+n>e)return{line:i+1,column:e-r};r+=n}return{line:t.length,column:t[t.length-1]?.length??0}}
3class A extends Error{response;statusCode=400;responseBody;details;constructor(e,t){const r=D(e,t);super(r.message),Object.assign(this,r)}}class T extends Error{response;statusCode=500;responseBody;details;constructor(e){const t=D(e);super(t.message),Object.assign(this,t)}}function D(e,t){var r,i,n;let s=e.body,a={response:e,statusCode:e.statusCode,responseBody:(r=s,-1!==(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(r,null,2):r),message:"",details:void 0};if(!(0,q.u4)(s))return a.message=z(e,s),a;let o=s.error;if("string"==typeof o&&"string"==typeof s.message)return a.message=`${o} - ${s.message}`,a;if("object"!=typeof o||null===o)return"string"==typeof o?a.message=o:"string"==typeof s.message?a.message=s.message:a.message=z(e,s),a;if("type"in(i=o)&&"mutationError"===i.type&&"description"in i&&"string"==typeof i.description||"type"in(n=o)&&"actionError"===n.type&&"description"in n&&"string"==typeof n.description){let e=o.items||[],t=e.slice(0,5).map(e=>e.error?.description).filter(Boolean),r=t.length?`: 4- ${t.join(` 5- `)}`:"";return e.length>5&&(r+=` 6...and ${e.length-5} more`),a.message=`${o.description}${r}`,a.details=s.error,a}return M(o)?(a.message=k(o,t?.options?.query?.tag),a.details=s.error):"description"in o&&"string"==typeof o.description?(a.message=o.description,a.details=o):a.message=z(e,s),a}function M(e){return(0,q.u4)(e)&&"queryParseError"===e.type&&"string"==typeof e.query&&"number"==typeof e.start&&"number"==typeof e.end}function k(e,t){let{query:r,start:i,end:n,description:s}=e;if(!r||typeof i>"u")return`GROQ query parse error: ${s}`;let a=t?` 7 8Tag: ${t}`:"";return`GROQ query parse error: 9${function(e,t,r){let i=e.split(P),{start:n,end:s,markerLines:a}=function(e,t){let r={...e.start},i={...r,...e.end},n=r.line??-1,s=r.column??0,a=i.line,o=i.column,u=Math.max(n-3,0),l=Math.min(t.length,a+3);-1===n&&(u=0),-1===a&&(l=t.length);let c=a-n,d={};if(c)for(let e=0;e<=c;e++){let r=e+n;if(s)if(0===e){let e=t[r-1].length;d[r]=[s,e-s+1]}else if(e===c)d[r]=[0,o];else{let i=t[r-e].length;d[r]=[0,i]}else d[r]=!0}else s===o?s?d[n]=[s,0]:d[n]=!0:d[n]=[s,o-s];return{start:u,end:l,markerLines:d}}({start:O(t.start,i),end:t.end?O(t.end,i):void 0},i),o=`${s}`.length;return e.split(P,s).slice(n,s).map((e,t)=>{let i=n+1+t,s=` ${` ${i}`.slice(-o)} |`,u=a[i],l=!a[i+1];if(!u)return` ${s}${e.length>0?` ${e}`:""}`;let c="";if(Array.isArray(u)){let t=e.slice(0,Math.max(u[0]-1,0)).replace(/[^\t]/g," "),i=u[1]||1;c=` 10 `+s.replace(/\d/g," ")+" "+t+"^".repeat(i),l&&r&&(c+=" "+r)}return">"+s+(e.length>0?` ${e}`:"")+c}).join(` 11`)}(r,{start:i,end:n},s)}${a}`}function z(e,t){var r;let i="string"==typeof t?` (${(r=t).length>100?`${r.slice(0,100)}\u2026`:r})`:"",n=e.statusMessage?` ${e.statusMessage}`:"";return`${e.method}-request to ${e.url} resulted in HTTP ${e.statusCode}${n}${i}`}class V extends Error{projectId;addOriginUrl;constructor({projectId:e}){super("CorsOriginError"),this.name="CorsOriginError",this.projectId=e;const t=new URL(`https://sanity.io/manage/project/${e}/api`);if("u">typeof location){const{origin:e}=location;t.searchParams.set("cors","add"),t.searchParams.set("origin",e),this.addOriginUrl=t,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${t}`}else this.message=`The current origin is not allowed to connect to the Live Content API. Change your configuration here: ${t}`}}let N={onResponse:(e,t)=>{if(e.statusCode>=500)throw new T(e);
11if(e.statusCode>=400)throw new A(e,t);return e}};function U(e,t={}){return(0,n.af)([(0,s.L5)({shouldRetry:L}),...e,function(e={}){let t={},r=t=>void 0!==e.ignoreWarnings&&(Array.isArray(e.ignoreWarnings)?e.ignoreWarnings:[e.ignoreWarnings]).some(e=>"string"==typeof e?t.includes(e):e instanceof RegExp&&e.test(t));return{onResponse:e=>{let i=e.headers["x-sanity-warning"];for(let e of Array.isArray(i)?i:[i])!e||t[e]||r(e)||(t[e]=!0,console.warn(e));return e}}}(t),(0,s.UX)(),(0,s.Yf)(),(0,s.qB)(),N,(0,s.sH)({implementation:a.c})])}function L(e,t,r){if(0===r.maxRetries)return!1;let i="GET"===r.method||"HEAD"===r.method,n=(r.uri||r.url).startsWith("/data/query"),a=e.response&&(429===e.response.statusCode||502===e.response.statusCode||503===e.response.statusCode);return(!!i||!!n)&&!!a||s.L5.shouldRetry(e,t,r)}function F(e){return"https://www.sanity.io/help/"+e}let W=["image","file"],G=["before","after","replace"],H=e=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(e))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},B=(e,t)=>{if(null===t||"object"!=typeof t||Array.isArray(t))throw Error(`${e}() takes an object of properties`)},K=(e,t)=>{if("string"!=typeof t||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(t)||t.includes(".."))throw Error(`${e}(): "${t}" is not a valid document ID`)},Q=(e,t)=>{if(!t._id)throw Error(`${e}() requires that the document contains an ID ("_id" property)`);K(e,t._id)},J=(e,t)=>{if(!t._type)throw Error(`\`${e}()\` requires that the document contains a type (\`_type\` property)`);var r=t._type;if("string"!=typeof r)throw Error(`\`${e}()\`: \`${r}\` is not a valid document type`)},Z=e=>{if(e.dataset)return e.dataset;let t=e.resource;if(t&&"dataset"===t.type){let e=t.id.split(".");if(2!==e.length)throw Error('Dataset resource ID must be in the format "project.dataset"');return e[1]}throw Error("`dataset` must be provided to perform queries")},X=e=>{if("string"!=typeof e||!/^[a-z0-9._-]{1,75}$/i.test(e))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return e},Y=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:r,id:i}=t;switch(r){case"dataset":if(2!==i.split(".").length)throw Error('Dataset resource ID must be in the format "project.dataset"');return;case"dashboard":case"media-library":case"canvas":return;default:throw Error(`Unsupported resource type: ${r.toString()}`)}},ee=(e,t)=>{if(t.resource)throw Error(`\`${e}\` does not support resource-based operations`)},et=e=>{var t;let r,i;return t=(...t)=>console.warn(e.join(" "),...t),r=!1,(...e)=>(r||(i=t(...e),r=!0),i)},er=et(["Because you set `withCredentials` to true, we will override your `useCdn`","setting to be false since (cookie-based) credentials are never set on the CDN"]),ei=et(["Since you haven't set a value for `useCdn`, we will deliver content using our","global, edge-cached API-CDN. If you wish to have content delivered faster, set","`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),en=et(["The Sanity client is configured with the `perspective` set to `drafts` or `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),es=et(["The `previewDrafts` perspective has been renamed to `drafts` and will be removed in a future API version"]),ea=et(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${F("js-client-browser-token")} for more information and how to hide this warning.`]),eo=et(["You have configured Sanity client to use a token, but also provided `withCredentials: true`.","This is no longer supported - only token will be used - remove `withCredentials: true`."]),eu=et(["Using the Sanity client without specifying an API version is deprecated.",`See ${F("js-client-api-version")}`]),el=(et(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),et(["You have called `createVersion()` with a defined `document`. The recommended approach is to provide a `baseId` and `releaseId` instead."])),ec=et(["The `~experimental_resource` configuration property has been renamed to `resource`.","Please update your client configuration to use `resource` instead. Support for `~experimental_resource` will be removed in a future version."]),ed={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},eh=["localhost","127.0.0.1","0.0.0.0"];function ep(e){if(Array.isArray(e)&&e.length>1&&e.includes("raw"))throw TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}let ef=(e,t)=>{let r,i={...t,...e,stega:{..."boolean"==typeof t.stega?{enabled:t.stega}:t.stega||ed.stega,..."boolean"==typeof e.stega?{enabled:e.stega}:e.stega||{}}};i.apiVersion||eu();let n={...ed,...i};n["~experimental_resource"]&&!n.resource&&(ec(),n.resource=n["~experimental_resource"]);let s=n.resource,a=n.useProjectHostname&&!s;if(typeof Promise>"u"){let e=F("js-client-promise-polyfill");throw Error(`No native Promise-implementation found, polyfill needed - see ${e}`)}if(a&&!n.projectId)throw Error("Configuration must contain `projectId`");if(s&&Y(n),"u">typeof n.perspective&&ep(n.perspective),"encodeSourceMap"in n)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?");if("encodeSourceMapAtPath"in n)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?");
11if("boolean"!=typeof n.stega.enabled)throw Error(`stega.enabled must be a boolean, received ${n.stega.enabled}`);if(n.stega.enabled&&void 0===n.stega.studioUrl)throw Error("stega.studioUrl must be defined when stega.enabled is true");if(n.stega.enabled&&"string"!=typeof n.stega.studioUrl&&"function"!=typeof n.stega.studioUrl)throw Error(`stega.studioUrl must be a string or a function, received ${n.stega.studioUrl}`);let o="u">typeof window&&window.location&&window.location.hostname,u=o&&(r=window.location.hostname,-1!==eh.indexOf(r)),l=!!n.token;n.withCredentials&&l&&(eo(),n.withCredentials=!1),o&&u&&l&&!0!==n.ignoreBrowserTokenWarning?ea():typeof n.useCdn>"u"&&ei(),a&&(e=>{if(!/^[-a-z0-9]+$/i.test(e))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")})(n.projectId),n.dataset&&H(n.dataset),"requestTagPrefix"in n&&(n.requestTagPrefix=n.requestTagPrefix?X(n.requestTagPrefix).replace(/\.+$/,""):void 0),n.apiVersion=`${n.apiVersion}`.replace(/^v/,""),n.isDefaultApi=n.apiHost===ed.apiHost,!0===n.useCdn&&n.withCredentials&&er(),n.useCdn=!1!==n.useCdn&&!n.withCredentials,function(e){if("1"===e||"X"===e)return;let t=new Date(e);if(!(/^\d{4}-\d{2}-\d{2}$/.test(e)&&t instanceof Date&&t.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}(n.apiVersion);let c=n.apiHost.split("://",2),d=c[0],h=c[1],p=n.isDefaultApi?"apicdn.sanity.io":h;return a?(n.url=`${d}://${n.projectId}.${h}/v${n.apiVersion}`,n.cdnUrl=`${d}://${n.projectId}.${p}/v${n.apiVersion}`):(n.url=`${n.apiHost}/v${n.apiVersion}`,n.cdnUrl=n.url),n};class eg extends Error{name="ConnectionFailedError"}class em extends Error{name="DisconnectError";reason;constructor(e,t,r={}){super(e,r),this.reason=t}}class ey extends Error{name="ChannelError";data;constructor(e,t){super(e),this.data=t}}class eb extends Error{name="MessageError";data;constructor(e,t,r={}){super(e,r),this.data=t}}class ev extends Error{name="MessageParseError"}let ew=["channelError","disconnect"];function ej(e,t){return(0,o.v)(()=>{let t=e();return(0,u.A)(t)?t:(0,l.of)(t)}).pipe((0,c.Z)(e=>{var r,i;return r=e,i=t,new a.c(e=>{let t=i.includes("open"),n=i.includes("reconnect");function s(t){if("data"in t){let[r,i]=e$(t);e.error(r?new ev("Unable to parse EventSource error message",{cause:i}):new eb((i?.data).message,i));return}r.readyState===r.CLOSED?e.error(new eg("EventSource connection failed")):n&&e.next({type:"reconnect"})}function a(){e.next({type:"open"})}function o(t){let[i,n]=e$(t);if(i)return void e.error(new ev("Unable to parse EventSource message",{cause:i}));if("channelError"===t.type){var s,a;let t,i=new URL(r.url).searchParams.get("tag");e.error(new ey((s=n?.data,a=i,(t=s.error)?M(t)?k(t,a):t.description?t.description:"string"==typeof t?t:JSON.stringify(t,null,2):s.message||"Unknown listener error"),n.data));return}"disconnect"===t.type?e.error(new em(`Server disconnected client: ${n.data?.reason||"unknown error"}`)):e.next({type:t.type,id:t.lastEventId,...n.data?{data:n.data}:{}})}r.addEventListener("error",s),t&&r.addEventListener("open",a);let u=[...new Set([...ew,...i])].filter(e=>"error"!==e&&"open"!==e&&"reconnect"!==e);return u.forEach(e=>r.addEventListener(e,o)),()=>{r.removeEventListener("error",s),t&&r.removeEventListener("open",a),u.forEach(e=>r.removeEventListener(e,o)),r.close()}})}))}function e$(e){try{let t="string"==typeof e.data&&JSON.parse(e.data);return[null,{type:e.type,id:e.lastEventId,...!function(e){for(let t in e)return!1;return!0}(t)?{data:t}:{}}]}catch(e){return[e,null]}}function ex(e){if("string"==typeof e)return{id:e};if(Array.isArray(e))return{query:"*[_id in $ids]",params:{ids:e}};if("object"==typeof e&&null!==e&&"query"in e&&"string"==typeof e.query)return"params"in e&&"object"==typeof e.params&&null!==e.params?{query:e.query,params:e.params}:{query:e.query};let t=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join(` 12`);throw Error(`Unknown selection - must be one of: 13 14${t}`)}class eR{selection;operations;constructor(e,t={}){this.selection=e,this.operations=t}set(e){return this._assign("set",e)}setIfMissing(e){return this._assign("setIfMissing",e)}diffMatchPatch(e){return B("diffMatchPatch",e),this._assign("diffMatchPatch",e)}unset(e){if(!Array.isArray(e))throw Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:e}),this}inc(e){return this._assign("inc",e)}dec(e){return this._assign("dec",e)}insert(e,t,r){return((e,t,r)=>{let i="insert(at, selector, items)";if(-1===G.indexOf(e)){let e=G.map(e=>`"${e}"`).join(", ");throw Error(`${i} takes an "at"-argument which is one of: ${e}`)}if("string"!=typeof t)throw Error(`${i} takes a "selector"-argument which must be a string`);if(!Array.isArray(r))throw Error(`${i} takes an "items"-argument which must be an array`)})(e,t,r),this._assign("insert",{[e]:t,items:r})}append(e,t){return this.insert("after",`${e}[-1]`,t)}prepend(e,t){return this.insert("before",`${e}[0]`,t)}
14splice(e,t,r,i){let n=t<0?t-1:t,s=typeof r>"u"||-1===r?-1:Math.max(0,t+r),a=`${e}[${n}:${n<0&&s>=0?"":s}]`;return this.insert("replace",a,i||[])}ifRevisionId(e){return this.operations.ifRevisionID=e,this}serialize(){return{...ex(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(e,t,r=!0){return B(e,t),this.operations=Object.assign({},this.operations,{[e]:Object.assign({},r&&this.operations[e]||{},t)}),this}_set(e,t){return this._assign(e,t,!1)}}class eE extends eR{#e;constructor(e,t,r){super(e,t),this.#e=r}clone(){return new eE(this.selection,{...this.operations},this.#e)}commit(e){if(!this.#e)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},e);return this.#e.mutate({patch:this.serialize()},t)}}class eq extends eR{#e;constructor(e,t,r){super(e,t),this.#e=r}clone(){return new eq(this.selection,{...this.operations},this.#e)}commit(e){if(!this.#e)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},e);return this.#e.mutate({patch:this.serialize()},t)}}let eI={returnDocuments:!1};class eS{operations;trxId;constructor(e=[],t){this.operations=e,this.trxId=t}create(e){return B("create",e),this._add({create:e})}createIfNotExists(e){let t="createIfNotExists";return B(t,e),Q(t,e),this._add({[t]:e})}createOrReplace(e){let t="createOrReplace";return B(t,e),Q(t,e),this._add({[t]:e})}delete(e){return K("delete",e),this._add({delete:{id:e}})}transactionId(e){return e?(this.trxId=e,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(e){return this.operations.push(e),this}}class e_ extends eS{#e;constructor(e,t,r){super(e,r),this.#e=t}clone(){return new e_([...this.operations],this.#e,this.trxId)}commit(e){if(!this.#e)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#e.mutate(this.serialize(),Object.assign({transactionId:this.trxId},eI,e||{}))}patch(e,t){let r="function"==typeof t,i="string"!=typeof e&&e instanceof eq,n="object"==typeof e&&("query"in e||"id"in e);if(i)return this._add({patch:e.serialize()});if(r){let r=t(new eq(e,{},this.#e));if(!(r instanceof eq))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}if(n){let r=new eq(e,t||{},this.#e);return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}class eC extends eS{#e;constructor(e,t,r){super(e,r),this.#e=t}clone(){return new eC([...this.operations],this.#e,this.trxId)}commit(e){if(!this.#e)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#e.mutate(this.serialize(),Object.assign({transactionId:this.trxId},eI,e||{}))}patch(e,t){let r="function"==typeof t;if("string"!=typeof e&&e instanceof eE)return this._add({patch:e.serialize()});if(r){let r=t(new eE(e,{},this.#e));if(!(r instanceof eE))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}let eP=({query:e,params:t={},options:r={}})=>{let i=new URLSearchParams,{tag:n,includeMutations:s,returnQuery:a,...o}=r;for(let[r,s]of(n&&i.append("tag",n),i.append("query",e),Object.entries(t)))void 0!==s&&i.append(`$${r}`,JSON.stringify(s));for(let[e,t]of Object.entries(o))t&&i.append(e,`${t}`);return!1===a&&i.append("returnQuery","false"),!1===s&&i.append("includeMutations","false"),`?${i}`},eO=e=>"response"===e.type,eA=e=>e.body;function eT(e,t,i,n,s={},a={}){let o="stega"in a?{...i||{},..."boolean"==typeof a.stega?{enabled:a.stega}:a.stega||{}}:i,u=o.enabled?(0,q.Q)(s):s,l=!1===a.filterResponse?e=>e:e=>e.result,{cache:c,next:h,...p}={useAbortSignal:"u">typeof a.signal,resultSourceMap:o.enabled?"withKeyArraySelector":a.resultSourceMap,...a,returnQuery:!1===a.filterResponse&&!1!==a.returnQuery}
14,f=eK(e,t,"query",{query:n,params:u},"u">typeof c||"u">typeof h?{...p,fetch:{cache:c,next:h}}:p);return o.enabled?f.pipe((0,I.v)((0,d.H)(r.e(1879).then(r.bind(r,51879)).then(function(e){return e.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:e})=>e))),(0,$.T)(([e,t])=>{let r=t(e.result,e.resultSourceMap,o);return l({...e,result:r})})):f.pipe((0,$.T)(l))}function eD(e,t,r,i={}){let n={uri:e0(e,"doc",(()=>{if(!i.releaseId)return r;let e=(0,_._S)(r);if(!e){if((0,_.R8)(r))throw Error(`The document ID (\`${r}\`) is a draft, but \`options.releaseId\` is set as \`${i.releaseId}\``);return(0,_.ct)(r,i.releaseId)}if(e!==i.releaseId)throw Error(`The document ID (\`${r}\`) is already a version of \`${e}\` release, but this does not match the provided \`options.releaseId\` (\`${i.releaseId}\`)`);return r})()),json:!0,tag:i.tag,signal:i.signal,query:void 0!==i.includeAllVersions?{includeAllVersions:i.includeAllVersions}:void 0};return eX(e,t,n).pipe((0,S.p)(eO),(0,$.T)(e=>{let t=e.body.documents;return t?i.includeAllVersions?t:t[0]:i.includeAllVersions?[]:void 0}))}function eM(e,t,r,i={}){let n={uri:e0(e,"doc",r.join(",")),json:!0,tag:i.tag,signal:i.signal};return eX(e,t,n).pipe((0,S.p)(eO),(0,$.T)(e=>{let t,i,n=(t=e.body.documents||[],i=e=>e._id,t.reduce((e,t)=>(e[i(t)]=t,e),Object.create(null)));return r.map(e=>n[e]||null)}))}function ek(e,t,r,i={}){return eK(e,t,"query",{query:"*[sanity::partOfRelease($releaseId)]",params:{releaseId:r}},i)}function ez(e,t,r,i){return Q("createIfNotExists",r),eQ(e,t,r,"createIfNotExists",i)}function eV(e,t,r,i){return Q("createOrReplace",r),eQ(e,t,r,"createOrReplace",i)}function eN(e,t,r,i,n){return Q("createVersion",r),J("createVersion",r),el(),eB(e,t,{actionType:"sanity.action.document.version.create",publishedId:i,document:r},n)}function eU(e,t,r,i,n,s,a){if(!i)throw Error("`createVersion()` requires `baseId` when no `document` is provided");if(!r)throw Error("`createVersion()` requires `publishedId` when `baseId` is provided");return K("createVersion",i),K("createVersion",r),eB(e,t,{actionType:"sanity.action.document.version.create",publishedId:r,baseId:i,versionId:n?(0,_.ct)(r,n):(0,_.T4)(r),ifBaseRevisionId:s},a)}function eL(e,t,r,i){return eK(e,t,"mutate",{mutations:[{delete:ex(r)}]},i)}function eF(e,t,r,i=!1,n){return eB(e,t,{actionType:"sanity.action.document.version.discard",versionId:r,purge:i},n)}function eW(e,t,r,i){return Q("replaceVersion",r),J("replaceVersion",r),eB(e,t,{actionType:"sanity.action.document.version.replace",document:r},i)}function eG(e,t,r,i,n){return eB(e,t,{actionType:"sanity.action.document.version.unpublish",versionId:r,publishedId:i},n)}function eH(e,t,r,i){let n;return eK(e,t,"mutate",{mutations:Array.isArray(n=r instanceof eq||r instanceof eE?{patch:r.serialize()}:r instanceof e_||r instanceof eC?r.serialize():r)?n:[n],transactionId:i&&i.transactionId||void 0},i)}function eB(e,t,r,i){let n=Array.isArray(r)?r:[r],s=i&&i.transactionId||void 0;return eK(e,t,"actions",{actions:n,transactionId:s,skipCrossDatasetReferenceValidation:i&&i.skipCrossDatasetReferenceValidation||void 0,dryRun:i&&i.dryRun||void 0},i)}function eK(e,t,r,i,n={}){let s="mutate"===r,a="actions"===r,o=s||a?"":eP(i),u=!s&&!a&&o.length<11264,l=u?o:"",c=n.returnFirst,{timeout:d,token:h,tag:p,headers:f,returnQuery:g,lastLiveEventId:m,cacheMode:y}=n,b={method:u?"GET":"POST",uri:e0(e,r,l),json:!0,body:u?void 0:i,query:s&&((e={})=>{let t;return{dryRun:e.dryRun,returnIds:!0,returnDocuments:(t=e.returnDocuments,!1===t?void 0:!!(typeof t>"u")||t),visibility:e.visibility||"sync",autoGenerateArrayKeys:e.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:e.skipCrossDatasetReferenceValidation}})(n),timeout:d,headers:f,token:h,tag:p,returnQuery:g,perspective:n.perspective,resultSourceMap:n.resultSourceMap,lastLiveEventId:Array.isArray(m)?m[0]:m,cacheMode:y,canUseCdn:"query"===r,signal:n.signal,fetch:n.fetch,useAbortSignal:n.useAbortSignal,useCdn:n.useCdn};return eX(e,t,b).pipe((0,S.p)(eO),(0,$.T)(eA),(0,$.T)(e=>{if(!s)return e;let t=e.results||[];if(n.returnDocuments)return c?t[0]&&t[0].document:t.map(e=>e.document);let r=c?t[0]&&t[0].id:t.map(e=>e.id);return{transactionId:e.transactionId,results:t,[c?"documentId":"documentIds"]:r}}))}function eQ(e,t,r,i,n={}){return eK(e,t,"mutate",{mutations:[{[i]:r}]},Object.assign({returnFirst:!0,returnDocuments:!0},n))}let eJ=e=>{let t=e.config();return void 0!==t.dataset&&void 0!==t.projectId||void 0!==t.resource},eZ=(e,t)=>eJ(e)&&t.startsWith(e0(e,"query"));function eX(e,t,r){var i;let n=r.url||r.uri,s=e.config(),o=typeof r.canUseCdn>"u"?["GET","HEAD"].indexOf(r.method||"GET")>=0&&(n.startsWith("/data/")||eZ(e,n)||eJ(e)&&n.startsWith(e0(e,"mutate"))||eJ(e)&&n.startsWith(e0(e,"doc",""))||eJ(e)&&n.startsWith(e0(e,"listen"))||eJ(e)&&n.startsWith(e0(e,"history",""))):r.canUseCdn,u=(r.useCdn??s.useCdn)&&o,l=r.tag&&s.requestTagPrefix?[s.requestTagPrefix,r.tag].join("."):r.tag||s.requestTagPrefix;if(l&&null!==r.tag&&(r.query={tag:X(l),...r.query}),["GET","HEAD","POST"].indexOf(r.method||"GET")>=0&&eZ(e,n)){let e=r.resultSourceMap??s.resultSourceMap;void 0!==e&&!1!==e&&(r.query={resultSourceMap:e,...r.query});let t=r.perspective||s.perspective;"u">typeof t&&("previewDrafts"===t&&es(),ep(t),r.query={perspective:Array.isArray(t)?t.join(","):t,...r.query},(Array.isArray(t)&&t.length>
140||"previewDrafts"===t||"drafts"===t)&&u&&(u=!1,en())),r.lastLiveEventId&&(r.query={...r.query,lastLiveEventId:r.lastLiveEventId}),!1===r.returnQuery&&(r.query={returnQuery:"false",...r.query}),u&&"noStale"==r.cacheMode&&(r.query={cacheMode:"noStale",...r.query})}let c=function(e,t={}){let r={};e.headers&&Object.assign(r,e.headers);let i=t.token||e.token;i&&(r.Authorization=`Bearer ${i}`),t.useGlobalApi||e.useProjectHostname||!e.projectId||(r["X-Sanity-Project-ID"]=e.projectId);let n=!!(typeof t.withCredentials>"u"?e.withCredentials:t.withCredentials),s=typeof t.timeout>"u"?e.timeout:t.timeout;return Object.assign({},t,{headers:Object.assign({},r,t.headers||{}),timeout:typeof s>"u"?3e5:s,proxy:t.proxy||e.proxy,json:!0,withCredentials:n,fetch:"object"==typeof t.fetch&&"object"==typeof e.fetch?{...e.fetch,...t.fetch}:t.fetch||e.fetch})}(s,Object.assign({},r,{url:e1(e,n,u)})),d=new a.c(e=>t(c,s.requester).subscribe(e));return r.signal?d.pipe((i=r.signal,e=>new a.c(t=>{let r=()=>t.error(function(e){if(e2)return new DOMException(e?.reason??"The operation was aborted.","AbortError");let t=Error(e?.reason??"The operation was aborted.");return t.name="AbortError",t}(i));if(i&&i.aborted)return void r();let n=e.subscribe(t);return i.addEventListener("abort",r),()=>{i.removeEventListener("abort",r),n.unsubscribe()}}))):d}function eY(e,t,r){return eX(e,t,r).pipe((0,S.p)(e=>"response"===e.type),(0,$.T)(e=>e.body))}function e0(e,t,r){let i=e.config();if(i.resource){Y(i);let e=e9(i),n=void 0!==r?`${t}/${r}`:t;return`${e}/${n}`.replace(/\/($|\?)/,"$1")}let n=Z(i),s=`/${t}/${n}`;return`/data${void 0!==r?`${s}/${r}`:s}`.replace(/\/($|\?)/,"$1")}function e1(e,t,r=!1){let{url:i,cdnUrl:n}=e.config();return`${r?n:i}/${t.replace(/^\//,"")}`}let e2=!!globalThis.DOMException,e9=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:r,id:i}=t;switch(r){case"dataset":{let e=i.split(".");if(2!==e.length)throw Error('Dataset ID must be in the format "project.dataset"');return`/projects/${e[0]}/datasets/${e[1]}`}case"canvas":return`/canvases/${i}`;case"media-library":return`/media-libraries/${i}`;case"dashboard":return`/dashboards/${i}`;default:throw Error(`Unsupported resource type: ${r.toString()}`)}};function e8(e,t,r){let i=Z(e.config());return eY(e,t,{method:"POST",uri:`/agent/action/generate/${i}`,body:r})}function e5(e,t,r){let i=Z(e.config());return eY(e,t,{method:"POST",uri:`/agent/action/transform/${i}`,body:r})}function e3(e,t,r){let i=Z(e.config());return eY(e,t,{method:"POST",uri:`/agent/action/translate/${i}`,body:r})}class e4{#e;#t;constructor(e,t){this.#e=e,this.#t=t}generate(e){return e8(this.#e,this.#t,e)}transform(e){return e5(this.#e,this.#t,e)}translate(e){return e3(this.#e,this.#t,e)}}class e6{#e;#t;constructor(e,t){this.#e=e,this.#t=t}generate(e){return(0,h.s)(e8(this.#e,this.#t,e))}transform(e){return(0,h.s)(e5(this.#e,this.#t,e))}translate(e){return(0,h.s)(e3(this.#e,this.#t,e))}prompt(e){var t,r;let i;return(0,h.s)((t=this.#e,r=this.#t,i=Z(t.config()),eY(t,r,{method:"POST",uri:`/agent/action/prompt/${i}`,body:e})))}patch(e){var t,r;let i;return(0,h.s)((t=this.#e,r=this.#t,i=Z(t.config()),eY(t,r,{method:"POST",uri:`/agent/action/patch/${i}`,body:e})))}}class e7{#e;#t;constructor(e,t){this.#e=e,this.#t=t}upload(e,t,r){return tt(this.#e,this.#t,e,t,r)}}class te{#e;#t;constructor(e,t){this.#e=e,this.#t=t}upload(e,t,r){let i=tt(this.#e,this.#t,e,t,r);return(0,h.s)(i.pipe((0,S.p)(e=>"response"===e.type),(0,$.T)(e=>e.body.document)))}}function tt(e,t,r,i,n={}){var s,a;if(-1===W.indexOf(r))throw Error(`Invalid asset type: ${r}. Must be one of ${W.join(", ")}`);let o=n.extract||void 0;o&&!o.length&&(o=["none"]);let u=e.config(),l=(s=n,a=i,!(typeof File>"u")&&a instanceof File?Object.assign({filename:!1===s.preserveFilename?void 0:a.name,contentType:a.type},s):s),{tag:c,label:d,title:h,description:p,creditLine:f,filename:g,source:m}=l,y=u.resource?.type==="media-library",b=y?{title:h,filename:g}:{label:d,title:h,description:p,filename:g,meta:o,creditLine:f};return m&&!y&&(b.sourceId=m.id,b.sourceName=m.name,b.sourceUrl=m.url),eX(e,t,{tag:c,method:"POST",timeout:l.timeout||0,uri:function(e,t){let r="image"===t?"images":"files",i=e.resource;if(i){let{type:e,id:t}=i;
14switch(e){case"dataset":throw Error("Assets are not supported for dataset resources, yet. Configure the client with `{projectId: <projectId>, dataset: <datasetId>}` instead.");case"canvas":return`/canvases/${t}/assets/${r}`;case"media-library":return`/media-libraries/${t}/upload`;case"dashboard":return`/dashboards/${t}/assets/${r}`;default:throw Error(`Unsupported resource type: ${e.toString()}`)}}let n=Z(e);return`assets/${r}/${n}`}(u,r),headers:l.contentType?{"Content-Type":l.contentType}:{},query:b,body:i})}let tr=(0,o.v)(()=>r.e(3925).then(r.bind(r,93925))).pipe((0,$.T)(({default:e})=>e),(0,p.t)(1));function ti(){return function(e){return e.pipe((0,f.W)((e,t)=>e instanceof eg?(0,g.x)((0,l.of)({type:"reconnect"}),(0,m.O)(1e3).pipe((0,c.Z)(()=>t))):(0,y.$)(()=>e)))}}let tn=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","enableResume","tag"],ts={includeResult:!0};function ta(e,t,r={}){let{url:i,token:n,withCredentials:s,requestTagPrefix:a,headers:o}=this.config(),u=r.tag&&a?[a,r.tag].join("."):r.tag,c={...Object.keys(ts).concat(Object.keys(r)).reduce((e,t)=>(e[t]=typeof r[t]>"u"?ts[t]:r[t],e),{}),tag:u},d=eP({query:e,params:t,options:{tag:u,...tn.reduce((e,t)=>(typeof c[t]>"u"||(e[t]=c[t]),e),{})}}),h=`${i}${e0(this,"listen",d)}`;if(h.length>14800)return(0,y.$)(()=>Error("Query too large for listener"));let p=c.events?c.events:["mutation"],f={};return s&&(f.withCredentials=!0),(n||o)&&(f.headers={},n&&(f.headers.Authorization=`Bearer ${n}`),o&&Object.assign(f.headers,o)),ej(()=>(typeof EventSource>"u"||f.headers?tr:(0,l.of)(EventSource)).pipe((0,$.T)(e=>
14new e(h,f))),p).pipe(ti(),(0,S.p)(e=>p.includes(e.type)),(0,$.T)(e=>({type:e.type,..."data"in e?e.data:{}})))}let to="2021-03-25";class tu{#e;constructor(e){this.#e=e}events({includeDrafts:e=!1,tag:t}={}){var r,i,n,s;let{projectId:o,apiVersion:u,token:d,withCredentials:h,requestTagPrefix:p,headers:g}=this.#e.config(),m=u.replace(/^v/,"");if("X"!==m&&m<to)throw Error(`The live events API requires API version ${to} or later. The current API version is ${m}. Please update your API version to use this feature.`);if(e&&!d&&!h)throw Error("The live events API requires a token or withCredentials when 'includeDrafts: true'. Please update your client configuration. The token should have the lowest possible access role.");let y=e0(this.#e,"live/events"),x=new URL(this.#e.getUrl(y,!1)),R=t&&p?[p,t].join("."):t;R&&x.searchParams.set("tag",R),e&&x.searchParams.set("includeDrafts","true");let E={};e&&h&&(E.withCredentials=!0),(e&&d||g)&&(E.headers={},e&&d&&(E.headers.Authorization=`Bearer ${d}`),g&&Object.assign(E.headers,g));let q=`${x.href}::${JSON.stringify(E)}`,I=tl.get(q);if(I)return I;let S=ej(()=>(typeof EventSource>"u"||E.headers?tr:(0,l.of)(EventSource)).pipe((0,$.T)(e=>
14new e(x.href,E))),["message","restart","welcome","reconnect","goaway"]),_=(i=x,n={method:"OPTIONS",mode:"cors",credentials:E.withCredentials?"include":"omit",headers:E.headers},new a.c(e=>{let t=new AbortController,r=t.signal;return fetch(i,{...n,signal:t.signal}).then(t=>{e.next(t),e.complete()},t=>{r.aborted||e.error(t)}),()=>t.abort()})).pipe((0,f.W)(()=>{throw new V({projectId:o})})),C=S.pipe(ti(),(0,c.Z)(e=>"reconnect"===e.type?_.pipe((0,c.Z)(()=>(0,l.of)(e))):(0,l.of)(e)),(0,f.W)(e=>_.pipe((0,c.Z)(()=>{throw e}))),(0,$.T)(e=>{if("message"===e.type){let{data:t,...r}=e;return{...r,tags:t.tags}}return e})).pipe((0,v.j)(()=>tl.delete(q)),(s="function"==typeof(r={predicate:e=>"welcome"===e.type})?{predicate:r,...void 0}:r,e=>{let t,r=!1,{predicate:i,...n}=s,o=e.pipe((0,b.M)(e=>{s.predicate(e)&&(r=!0,t=e)}),(0,v.j)(()=>{r=!1,t=void 0}),(0,w.u)(n)),u=new a.c(e=>{r&&e.next(t),e.complete()});return(0,j.h)(o,u)}));return tl.set(q,C),C}}let tl=new Map;class tc{#e;#t;constructor(e,t){this.#e=e,this.#t=t}create(e,t){return tp(this.#e,this.#t,"PUT",e,t)}edit(e,t){return tp(this.#e,this.#t,"PATCH",e,t)}delete(e){return tp(this.#e,this.#t,"DELETE",e)}list(){ee("dataset",this.#e.config());let e=this.#e.config(),t=e.projectId,r="/datasets";return!1===e.useProjectHostname&&(r=`/projects/${t}/datasets`),eY(this.#e,this.#t,{uri:r,tag:null})}getEmbeddingsSettings(e){return ee("dataset",this.#e.config()),H(e),eY(this.#e,this.#t,{uri:th(this.#e,e),tag:null})}editEmbeddingsSettings(e,t){return ee("dataset",this.#e.config()),H(e),eY(this.#e,this.#t,{method:"PUT",uri:th(this.#e,e),body:t,tag:null})}}class td{#e;#t;constructor(e,t){this.#e=e,this.#t=t}create(e,t){return ee("dataset",this.#e.config()),(0,h.s)(tp(this.#e,this.#t,"PUT",e,t))}edit(e,t){return ee("dataset",this.#e.config()),(0,h.s)(tp(this.#e,this.#t,"PATCH",e,t))}delete(e){return ee("dataset",this.#e.config()),(0,h.s)(tp(this.#e,this.#t,"DELETE",e))}list(){ee("dataset",this.#e.config());let e=this.#e.config(),t=e.projectId,r="/datasets";return!1===e.useProjectHostname&&(r=`/projects/${t}/datasets`),(0,h.s)(eY(this.#e,this.#t,{uri:r,tag:null}))}getEmbeddingsSettings(e){return ee("dataset",this.#e.config()),H(e),(0,h.s)(eY(this.#e,this.#t,{uri:th(this.#e,e),tag:null}))}editEmbeddingsSettings(e,t){return ee("dataset",this.#e.config()),H(e),(0,h.s)(eY(this.#e,this.#t,{method:"PUT",uri:th(this.#e,e),body:t,tag:null}))}}function th(e,t){let r=e.config();return!1===r.useProjectHostname?`/projects/${r.projectId}/datasets/${t}/settings/embeddings`:`/datasets/${t}/settings/embeddings`}function tp(e,t,r,i,n){return ee("dataset",e.config()),H(i),eY(e,t,{method:r,uri:`/datasets/${i}`,body:n,tag:null})}class tf{#e;#t;constructor(e,t){this.#e=e,this.#t=t}getPlaybackInfo(e,t={}){var r,i;let n=this.#e.config(),s=(n.resource||n["~experimental_resource"])?.id,{instanceId:a,libraryId:o}=function(e){let t="object"==typeof e&&"_ref"in e?e._ref:e,r=tm.exec(t);if(r){let[,e,t]=r;return{libraryId:e,instanceId:t}}if("string"==typeof e&&e.startsWith("video-"))return{instanceId:e};throw Error(`Invalid video asset instance identifier "${t}": must be a valid video instance id or a Global Dataset Reference (GDR) to the video asset in the Media Library`)}(e),u=o||s;if(!u)throw Error("Could not determine Media Library ID - you need to provide a valid Media Library ID in the client config or a Media Library GDR");let l=(r=a,i=u,`/media-libraries/${i}/video/${r}/playback-info`),c=function(e){let t={};if(e.transformations){let{thumbnail:r,animated:i,storyboard:n}=e.transformations;r&&(r.width&&(t.thumbnailWidth=r.width),r.height&&(t.thumbnailHeight=r.height),void 0!==r.time&&(t.thumbnailTime=r.time),r.fit&&(t.thumbnailFit=r.fit),r.format&&(t.thumbnailFormat=r.format)),i&&(i.width&&(t.animatedWidth=i.width),i.height&&(t.animatedHeight=i.height),void 0!==i.start&&(t.animatedStart=i.start),void 0!==i.end&&(t.animatedEnd=i.end),i.fps&&(t.animatedFps=i.fps),i.format&&(t.animatedFormat=i.format)),n&&n.format&&(t.storyboardFormat=n.format)}return e.expiration&&(t.expiration=e.expiration),t}(t);return eY(this.#e,this.#t,{method:"GET",uri:l,query:c})}}class tg{#e;#t;constructor(e,t){this.#e=e,this.#t=t}getPlaybackInfo(e,t={}){return(0,h.s)(new tf(this.#e.observable,this.#t).getPlaybackInfo(e,t))}}let tm=/^media-library:(ml[^:]+):([^:]+)$/;class ty{#e;#t;constructor(e,t){this.#e=e,this.#t=t}list(e){let t={};return e?.includeMembers===!1&&(t.includeMembers="false"),e?.includeFeatures===!1&&(t.includeFeatures="false"),e?.organizationId&&(t.organizationId=e.organizationId),e?.onlyExplicitMembership&&(t.onlyExplicitMembership="true"),eY(this.#e,this.#t,{uri:"/projects",query:t})}getById(e){return eY(this.#e,this.#t,{uri:`/projects/${e}`})}}class tb{#e;#t;constructor(e,t){this.#e=e,this.#t=t}list(e){let t={};return e?.includeMembers===!1&&(t.includeMembers="false"),e?.includeFeatures===!1&&(t.includeFeatures="false"),e?.organizationId&&(t.organizationId=e.organizationId),e?.onlyExplicitMembership&&(t.onlyExplicitMembership="true"),(0,h.s)(eY(this.#e,this.#t,{uri:"/projects",query:t}))}getById(e){return(0,h.s)(eY(this.#e,this.#t,{uri:`/projects/${e}`}))}}let tv=((e,t=21)=>{var r;let i,n;return r=t,n=-~(1.6*(i=(2<<Math.log(e.length-1)/Math.LN2)-1)*r/e.length),(t=r)=>{if(t<=0)return"";let s="";for(;;){let r=C(n),a=0|n;for(;a--;)if((s+=e[r[a]&i]||"").length===t)return s}}})("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",8),tw=(e,t)=>t?(0,_.ct)(e,t):(0,_.T4)(e);function tj(e,{releaseId:t,publishedId:r,document:i}){if(r&&i._id){let e=tw(r,t);return((e,t)=>{if(t._id&&t._id!==e)throw Error(`The provided document ID (\`${t._id}
14\`) does not match the generated version ID (\`${e}\`)`)})(e,i),e}if(i._id){let r=(0,_.R8)(i._id),n=(0,_.A_)(i._id);if(!r&&!n)throw Error(`\`${e}()\` requires a document with an \`_id\` that is a version or draft ID`);if(t){if(r)throw Error(`\`${e}()\` was called with a document ID (\`${i._id}\`) that is a draft ID, but a release ID (\`${t}\`) was also provided.`);let n=(0,_._S)(i._id);if(n!==t)throw Error(`\`${e}()\` was called with a document ID (\`${i._id}\`) that is a version ID, but the release ID (\`${t}\`) does not match the document's version ID (\`${n}\`).`)}return i._id}if(r)return tw(r,t);throw Error(`\`${e}()\` requires either a publishedId or a document with an \`_id\``)}let t$=(e,t)=>{let[r,i,n]=((e,t)=>{if("object"==typeof e&&null!==e&&("releaseId"in e||"metadata"in e)){let{releaseId:r=tv(),metadata:i={}}=e;return[r,i,t]}return[tv(),{},e]})(e,t);return{action:{actionType:"sanity.action.release.create",releaseId:r,metadata:{...i,releaseType:i.releaseType||"undecided"}},options:n}};class tx{#e;#t;constructor(e,t){this.#e=e,this.#t=t}get({releaseId:e},t){return eD(this.#e,this.#t,`_.releases.${e}`,t)}create(e,t){let{action:r,options:i}=t$(e,t),{releaseId:n,metadata:s}=r;return eB(this.#e,this.#t,r,i).pipe((0,$.T)(e=>({...e,releaseId:n,metadata:s})))}edit({releaseId:e,patch:t},r){return eB(this.#e,this.#t,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},r)}publish({releaseId:e},t){return eB(this.#e,this.#t,{actionType:"sanity.action.release.publish",releaseId:e},t)}archive({releaseId:e},t){return eB(this.#e,this.#t,{actionType:"sanity.action.release.archive",releaseId:e},t)}unarchive({releaseId:e},t){return eB(this.#e,this.#t,{actionType:"sanity.action.release.unarchive",releaseId:e},t)}schedule({releaseId:e,publishAt:t},r){return eB(this.#e,this.#t,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},r)}unschedule({releaseId:e},t){return eB(this.#e,this.#t,{actionType:"sanity.action.release.unschedule",releaseId:e},t)}delete({releaseId:e},t){return eB(this.#e,this.#t,{actionType:"sanity.action.release.delete",releaseId:e},t)}fetchDocuments({releaseId:e},t){return ek(this.#e,this.#t,e,t)}}class tR{#e;#t;constructor(e,t){this.#e=e,this.#t=t}get({releaseId:e},t){return(0,h.s)(eD(this.#e,this.#t,`_.releases.${e}`,t))}async create(e,t){let{action:r,options:i}=t$(e,t),{releaseId:n,metadata:s}=r;return{...await (0,h.s)(eB(this.#e,this.#t,r,i)),releaseId:n,metadata:s}}edit({releaseId:e,patch:t},r){return(0,h.s)(eB(this.#e,this.#t,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},r))}publish({releaseId:e},t){return(0,h.s)(eB(this.#e,this.#t,{actionType:"sanity.action.release.publish",releaseId:e},t))}archive({releaseId:e},t){return(0,h.s)(eB(this.#e,this.#t,{actionType:"sanity.action.release.archive",releaseId:e},t))}unarchive({releaseId:e},t){return(0,h.s)(eB(this.#e,this.#t,{actionType:"sanity.action.release.unarchive",releaseId:e},t))}schedule({releaseId:e,publishAt:t},r){return(0,h.s)(eB(this.#e,this.#t,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},r))}unschedule({releaseId:e},t){return(0,h.s)(eB(this.#e,this.#t,{actionType:"sanity.action.release.unschedule",releaseId:e},t))}delete({releaseId:e},t){return(0,h.s)(eB(this.#e,this.#t,{actionType:"sanity.action.release.delete",releaseId:e},t))}fetchDocuments({releaseId:e},t){return(0,h.s)(ek(this.#e,this.#t,e,t))}}class tE{#e;#t;constructor(e,t){this.#e=e,this.#t=t}getById(e){return eY(this.#e,this.#t,{uri:`/users/${e}`})}}class tq{#e;#t;constructor(e,t){this.#e=e,this.#t=t}getById(e){return(0,h.s)(eY(this.#e,this.#t,{uri:`/users/${e}`}))}}class tI{assets;datasets;live;mediaLibrary;projects;users;agent;releases;#r;#t;listen=ta;constructor(e,t=ed){this.config(t),this.#t=e,this.assets=new e7(this,this.#t),this.datasets=new tc(this,this.#t),this.live=new tu(this),this.mediaLibrary={video:new tf(this,this.#t)},this.projects=new ty(this,this.#t),this.users=new tE(this,this.#t),this.agent={action:new e4(this,this.#t)},this.releases=new tx(this,this.#t)}clone(){return new tI(this.#t,this.config())}config(e){if(void 0===e)return{...this.#r};if(this.#r&&!1===this.#r.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.#r=ef(e,this.#r||{}),this}withConfig(e){let t=this.config();return new tI(this.#t,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return eT(this,this.#t,this.#r.stega,e,t,r)}getDocument(e,t){if(t?.includeAllVersions===!0)return eD(this,this.#t,e,{...t,includeAllVersions:!0});let r={signal:t?.signal,tag:t?.tag,releaseId:t?.releaseId,...t&&"includeAllVersions"in t?{includeAllVersions:!1}:{}};return eD(this,this.#t,e,r)}getDocuments(e,t){return eM(this,this.#t,e,t)}create(e,t){return eQ(this,this.#t,e,"create",t)}createIfNotExists(e,t){return ez(this,this.#t,e,t)}createOrReplace(e,t){return eV(this,this.#t,e,t)}createVersion({document:e,publishedId:t,releaseId:r,baseId:i,ifBaseRevisionId:n},s){if(!e)return eU(this,this.#t,t,i,r,n,s);let a=tj("createVersion",{document:e,publishedId:t,releaseId:r}),o={...e,_id:a},u=t||(0,_.IM)(e._id);return eN(this,this.#t,o,u,s)}delete(e,t){return eL(this,this.#t,e,t)}discardVersion({releaseId:e,publishedId:t},r,i){let n=tw(t,e);return eF(this,this.#t,n,r,i)}replaceVersion({document:e,publishedId:t,releaseId:r},i){let n=tj("replaceVersion",{document:e,publishedId:t,releaseId:r}),s={...e,_id:n};return eW(this,this.#t,s,i)}unpublishVersion({releaseId:e,publishedId:t},r){let i=(0,_.ct)(t,e);return eG(this,this.#t,i,t,r)}mutate(e,t){return eH(this,this.#t,e,t)}patch(e,t){return new eE(e,t,this)}transaction(e){return new eC(e,this)}action(e,t){return eB(this,this.#t,e,t)}request(e){return eY(this,this.#t,e)}getUrl(e,t){return e1(this,e,t)}getDataUrl(e,t){return e0(this,e,t)}}class tS{assets;datasets;live;mediaLibrary;projects;users;agent;releases;observable;#r;#t;listen=ta;constructor(e,t=ed){this.config(t),this.#t=e,this.assets=new te(this,this.#t),this.datasets=new td(this,this.#t),this.live=new tu(this),this.mediaLibrary={video:new tg(this,this.#t)},this.projects=new tb(this,this.#t),this.users=new tq(this,this.#t),this.agent={action:new e6(this,this.#t)},this.releases=new tR(this,this.#t),this.observable=new tI(e,t)}clone(){return new tS(this.#t,this.config())}config(e){if(void 0===e)return{...this.#r};if(this.#r&&!1===this.#r.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(e),this.#r=ef(e,this.#r||{}),this}withConfig(e){let t=this.config();return new tS(this.#t,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return(0,h.s)(eT(this,this.#t,this.#r.stega,e,t,r))}getDocument(e,t){if(t?.includeAllVersions===!0)return(0,h.s)(eD(this,this.#t,e,{...t,includeAllVersions:!0}));let r={signal:t?.signal,tag:t?.tag,releaseId:t?.releaseId,...t&&"includeAllVersions"in t?{includeAllVersions:!1}:{}};return(0,h.s)(eD(this,this.#t,e,r))}getDocuments(e,t){return(0,h.s)(eM(this,this.#t,e,t))}create(e,t){return(0,h.s)(eQ(this,this.#t,e,"create",t))}createIfNotExists(e,t){return(0,h.s)(ez(this,this.#t,e,t))}createOrReplace(e,t){return(0,h.s)(eV(this,this.#t,e,t))}createVersion({document:e,publishedId:t,releaseId:r,baseId:i,ifBaseRevisionId:n},s){if(!e)return E(eU(this,this.#t,t,i,r,n,s));let a=tj("createVersion",{document:e,publishedId:t,releaseId:r}),o={...e,_id:a},u=t||(0,_.IM)(e._id);return E(eN(this,this.#t,o,u,s))}delete(e,t){return(0,h.s)(eL(this,this.#t,e,t))}discardVersion({releaseId:e,publishedId:t},r,i){let n=tw(t,e);return(0,h.s)(eF(this,this.#t,n,r,i))}replaceVersion({document:e,publishedId:t,releaseId:r},i){let n=tj("replaceVersion",{document:e,publishedId:t,releaseId:r}),s={...e,_id:n};return E(eW(this,this.#t,s,i))}unpublishVersion({releaseId:e,publishedId:t},r){let i=(0,_.ct)(t,e);return(0,h.s)(eG(this,this.#t,i,t,r))}mutate(e,t){return(0,h.s)(eH(this,this.#t,e,t))}patch(e,t){return new eq(e,t,this)}transaction(e){return new e_(e,this)}action(e,t){return(0,h.s)(eB(this,this.#t,e,t))}request(e){return(0,h.s)(eY(this,this.#t,e))}dataRequest(e,t,r){return(0,h.s)(eK(this,this.#t,e,t,r))}getUrl(e,t){return e1(this,e,t)}getDataUrl(e,t){return e0(this,e,t)}}let t_={requester:U(i=[]),createClient:e=>{let t=U(i,{ignoreWarnings:e.ignoreWarnings});return new tS((r,i)=>(i||t)({maxRedirects:0,maxRetries:e.maxRetries,retryDelay:e.retryDelay,lineage:e.lineage,...r}),e)}},tC=(t_.requester,t_.createClient)},98784:(e,t,r)=>{"use strict";r.d(t,{ly:()=>M});let i="https://cdn.sanity.io",n=/^https:\/\/cdn\.sanity\./,s=/^https:\/\/cdn\.[^/]+\/(images|files)\/[^/]+\/.*?[a-zA-Z0-9_]{24,40}.*$/,a=/^([a-zA-Z0-9_]{24,40}|[a-f0-9]{40})+\.[a-z0-9]+$/,o=/^file-([a-zA-Z0-9_]{24,40}|[a-f0-9]{40})+-[a-z0-9]+$/,u=/^([a-zA-Z0-9_]{24,40}|[a-f0-9]{40})-\d+x\d+\.[a-z0-9]+$/,l=/^(images|files)\/([a-z0-9]+)\/([a-z0-9][-\w]*)\//,c=/^(?:image-(?:[a-zA-Z0-9_]{24,40}|[a-f0-9]{40})+-\d+x\d+-[a-z0-9]+|file-(?:[a-zA-Z0-9_]{24,40}|[a-f0-9]{40})+-[a-z0-9]+)$/,d="sanity.fileAsset",h={projectId:"a",dataset:"b"},p="upload-in-progress-placeholder",f="upload-in-progress";
14class g extends Error{constructor(e,t="Failed to resolve asset ID from source"){super(t),this.unresolvable=!0,this.input=e}}function m(e){return(...t)=>{try{return e(...t)}catch(e){if(e.unresolvable&&"input"in e)return;throw e}}}function y(e){return null!==e&&!Array.isArray(e)&&"object"==typeof e}function b(e){return y(e)&&"string"==typeof e._ref}function v(e){return y(e)&&"string"==typeof e.path}function w(e){return y(e)&&"string"==typeof e.url}function j(e){return y(e)&&!!e.asset&&"object"==typeof e.asset}function $(e){return y(e)&&!!e._upload&&!("asset"in e)}function x(e){return n.test(e)||s.test(e)}let R=Object.freeze({left:0,top:0,bottom:0,right:0}),E=Object.freeze({x:.5,y:.5,height:1,width:1}),q=()=>({...R}),I=()=>({...E});function S(e,t){let r=t?.projectId||e.projectId,i=t?.dataset||e.dataset;if(!r||!i)throw Error("Project details (projectId and dataset) required to resolve path for image");let n="metadata"in e?e.metadata.dimensions:{width:e.width,height:e.height},s="originalFilename"in e?e.originalFilename:void 0,{assetId:a,extension:o,vanityFilename:u}=e,{width:l,height:c}=n,d=O(s,u,t);return`images/${r}/${i}/${a}-${l}x${c}.${o}${d}`}function _(e,t){let r=t?.projectId||e.projectId,i=t?.dataset||e.dataset;if(!r||!i)throw Error("Project details (projectId and dataset) required to resolve path for file");let n="originalFilename"in e?e.originalFilename:void 0,{assetId:s,extension:a,vanityFilename:o}=e,u=O(n,o,t);return`files/${r}/${i}/${s}.${a}${u}`}function C(e){if(l.test(e))return e;if(!x(e))throw new g(`Failed to resolve path from URL "${e}"`);return new URL(e).pathname.replace(/^\/+/,"")}let P=m(C);function O(e,t,r){let i=t||e;return r?.useVanityName!==!1&&i?`/${i}`:""}function A(e){let[,t,r,i]=e.split("-"),[n,s]=(r||"").split("x").map(Number);if(!t||!r||!i||!(n>0)||!(s>0))throw Error(`Malformed asset ID '${e}'. Expected an id like "image-027401f31c3ac1e6d78c5d539ccd1beff72b9b11-2000x3000-jpg".`);return{type:"image",assetId:t,width:n,height:s,extension:i}}function T(e,t){if($(e))return{asset:{_id:p,_type:"sanity.imageAsset",assetId:f,extension:"tmp",url:"",path:"",metadata:{dimensions:{width:1,height:1,aspectRatio:1}}},crop:q(),hotspot:I()};let r=t||F(e);return{asset:D(e,r),crop:e.crop||q(),hotspot:e.hotspot||I()}}function D(e,t){let r={...t||L(e),useVanityName:!1},n=z(e),s=(e.asset||e).metadata||{},{assetId:a,width:o,height:u,extension:l}=A(n),c={...y(e)&&"sanity.imageAsset"===e._type?e:{},_id:n,_type:"sanity.imageAsset",assetId:a,extension:l,metadata:{...s,dimensions:{width:o,height:u,aspectRatio:o/u}},url:"",path:""};return{...c,path:S(c,r),url:`${r?.baseUrl||i}/${S(c,r)}`}}function M(e,t){if($(e))return{asset:{_id:p,_type:d,assetId:f,extension:"tmp",url:"",path:"",metadata:{}}};let r=t||F(e);return{asset:k(e,r)}}function k(e,t){if($(e))return{assetId:f,_id:p,_type:d,extension:"tmp",metadata:{},url:"",path:""};let r={...t||L(e),useVanityName:!1},n=z(e),s=e.asset||e,{assetId:a,extension:u}=function(e){if(!o.test(e))throw Error(`Malformed file asset ID '${e}'. Expected an id like "file-027401f31c3ac1e6d78c5d539ccd1beff72b9b11-pdf"`);let[,t,r]=e.split("-");return{type:"file",assetId:t,extension:r}}(n),l={...y(e)&&"sanity.fileAsset"===e._type?e:{},_id:n,_type:"sanity.fileAsset",assetId:a,extension:u,metadata:s.metadata||{},url:"",path:""};return{...l,path:_(l,r),url:`${r?.baseUrl||i}/${_(l,r)}`}}function z(e){if($(e))return p;let t=j(e)?e.asset:e,r="";if("string"==typeof t?r=N(t):b(t)?r=t._ref:y(t)&&"string"==typeof t._id?r=t._id:v(t)?r=U(`${i}/${t.path}`):w(t)&&(r=U(t.url)),!(r&&c.test(r)))throw new g(e);return r}m(function(e){var t;let r=(P(e)||e).replace(/^(images|files)\/[a-z0-9]+\/[a-z0-9][-\w]\/*/,"");if(t=r,!(a.test(t)||u.test(t)))throw new g(`Failed to resolve filename from URL "${e}"`);return r}),m(function(e){if($(e))return{width:0,height:0,aspectRatio:0};let{width:t,height:r}=A(z(e));return{width:t,height:r,aspectRatio:t/r}}),m(function(e){let t;return $(e)?"tmp":(t=V(e))&&t.startsWith("file-")?M(e,h).asset.extension:T(e,h).asset.extension}),m(T),m(D),m(M),m(k);let V=m(z);function N(e){var t,r;if(c.test(e))return e;let n=x(e)?new URL(e).pathname:e;if(0===n.indexOf("/images")||0===n.indexOf("/files"))return U(e);if(l.test(e))return U(`${i}/${e}`);if(t=e,a.test(t))return U(`${i}/files/a/b/${e}`);if(r=e,u.test(r))return U(`${i}/images/a/b/${e}`);throw new g(e)}function U(e){let[t,,,r]=C(e).split("/");return`${t.replace(/s$/,"")}-${r.replace(/\./g,"-")}`}function L(e){let t=function e(t){if(j(t))return e(t.asset);if(!b(t)){if("string"==typeof t)return l.test(P(t)||"")?C(t):void 0;if(v(t))return t.path;if(w(t))return C(t.url)}}(e);if(!t)throw new g(e,"Failed to resolve project ID and dataset from source");let[,,r,i]=t.match(l)||[];if(!r||!i)throw new g(e,"Failed to resolve project ID and dataset from source");return{projectId:r,dataset:i}}m(N);let F=m(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.