1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,439884,(e,t,r)=>{e.e,t.exports=function(){function e(){return(e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var r="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function n(e){return("image-"+e.split("/").slice(-1)[0]).replace(/\.([a-z]+)$/,"-$1")}var i=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"],["frame","frame"]],s=["clip","crop","fill","fillmax","max","scale","min"],o=["top","bottom","left","right","center","focalpoint","entropy"],a=["format"],u=function(){function u(t,r){this.options=void 0,this.options=t?e({},t.options||{},r||{}):e({},r||{})}var c=u.prototype;return c.withOptions=function(r){var n=r.baseUrl||this.options.baseUrl,s={baseUrl:n};for(var o in r)r.hasOwnProperty(o)&&(s[function(e){for(var r,n=function(e,r){var n="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,r){if(e){if("string"==typeof e)return t(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,void 0)}}(e))){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i);!(r=n()).done;){var s=r.value,o=s[0],a=s[1];if(e===o||e===a)return o}return e}(o)]=r[o]);return new u(this,e({baseUrl:n},s))},c.image=function(e){return this.withOptions({source:e})},c.dataset=function(e){return this.withOptions({dataset:e})},c.projectId=function(e){return this.withOptions({projectId:e})},c.bg=function(e){return this.withOptions({bg:e})},c.dpr=function(e){return this.withOptions(e&&1!==e?{dpr:e}:{})},c.width=function(e){return this.withOptions({width:e})},c.height=function(e){return this.withOptions({height:e})},c.focalPoint=function(e,t){return this.withOptions({focalPoint:{x:e,y:t}})},c.maxWidth=function(e){return this.withOptions({maxWidth:e})},c.minWidth=function(e){return this.withOptions({minWidth:e})},c.maxHeight=function(e){return this.withOptions({maxHeight:e})},c.minHeight=function(e){return this.withOptions({minHeight:e})},c.size=function(e,t){return this.withOptions({width:e,height:t})},c.blur=function(e){return this.withOptions({blur:e})},c.sharpen=function(e){return this.withOptions({sharpen:e})},c.rect=function(e,t,r,n){return this.withOptions({rect:{left:e,top:t,width:r,height:n}})},c.format=function(e){return this.withOptions({format:e})},c.invert=function(e){return this.withOptions({invert:e})},c.orientation=function(e){return this.withOptions({orientation:e})},c.quality=function(e){return this.withOptions({quality:e})},c.forceDownload=function(e){return this.withOptions({download:e})},c.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},c.flipVertical=function(){return this.withOptions({flipVertical:!0})},c.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},c.fit=function(e){if(-1===s.indexOf(e))throw Error('Invalid fit mode "'+e+'"');return this.withOptions({fit:e})},c.crop=function(e){if(-1===o.indexOf(e))throw Error('Invalid crop mode "'+e+'"');return this.withOptions({crop:e})},c.saturation=function(e){return this.withOptions({saturation:e})},c.auto=function(e){if(-1===a.indexOf(e))throw Error('Invalid auto mode "'+e+'"');return this.withOptions({auto:e})},c.pad=function(e){return this.withOptions({pad:e})},c.vanityName=function(e){return this.withOptions({vanityName:e})},c.frame=function(e){if(1!==e)throw Error('Invalid frame value "'+e+'"');return this.withOptions({frame:e})},c.url=function(){return function(t){var s=e({},t||{}),o=s.source;delete s.source;var a=function(t){var r,i;if(!t)return null;if("string"==typeof t&&(i=t,/^https?:\/\//.test(""+i)))r={asset:{_ref:n(t)}};else if("string"==typeof t)r={asset:{_ref:t}};else if(t&&"string"==typeof t._ref)r={asset:t};else if(t&&"string"==typeof t._id)r={asset:{_ref:t._id||""}};else if(t&&t.asset&&"string"==typeof t.asset.url)r={asset:{_ref:n(t.asset.url)}};else{if("object"!=typeof t.asset)return null;r=e({},t)}return t.crop&&(r.crop=t.crop),t.hotspot&&(r.hotspot=t.hotspot),function(t){if(t.crop&&t.hotspot)return t;var r=e({},t);
1return r.crop||(r.crop={left:0,top:0,bottom:0,right:0}),r.hotspot||(r.hotspot={x:.5,y:.5,height:1,width:1}),r}(r)}(o);if(!a)throw Error("Unable to resolve image URL from source ("+JSON.stringify(o)+")");var u=function(e){var t=e.split("-"),n=t[1],i=t[2],s=t[3];if(!n||!i||!s)throw Error("Malformed asset _ref '"+e+"'. Expected an id like \""+r+'".');var o=i.split("x"),a=o[0],u=o[1],c=+a,l=+u;if(!(isFinite(c)&&isFinite(l)))throw Error("Malformed asset _ref '"+e+"'. Expected an id like \""+r+'".');return{id:n,width:c,height:l,format:s}}(a.asset._ref||a.asset._id||""),c=Math.round(a.crop.left*u.width),l=Math.round(a.crop.top*u.height),h={left:c,top:l,width:Math.round(u.width-a.crop.right*u.width-c),height:Math.round(u.height-a.crop.bottom*u.height-l)},p=a.hotspot.height*u.height/2,d=a.hotspot.width*u.width/2,f=a.hotspot.x*u.width,g=a.hotspot.y*u.height;return s.rect||s.focalPoint||s.ignoreImageParams||s.crop||(s=e({},s,function(e,t){var r,n=t.width,i=t.height;if(!(n&&i))return{width:n,height:i,rect:e.crop};var s=e.crop,o=e.hotspot,a=n/i;if(s.width/s.height>a){var u=Math.round(s.height),c=Math.round(u*a),l=Math.max(0,Math.round(s.top)),h=Math.max(0,Math.round(Math.round((o.right-o.left)/2+o.left)-c/2));h<s.left?h=s.left:h+c>s.left+s.width&&(h=s.left+s.width-c),r={left:h,top:l,width:c,height:u}}else{var p=s.width,d=Math.round(p/a),f=Math.max(0,Math.round(s.left)),g=Math.max(0,Math.round(Math.round((o.bottom-o.top)/2+o.top)-d/2));g<s.top?g=s.top:g+d>s.top+s.height&&(g=s.top+s.height-d),r={left:f,top:g,width:p,height:d}}return{width:n,height:i,rect:r}}({crop:h,hotspot:{left:f-d,top:g-p,right:f+d,bottom:g+p}},s))),function(e){var t=(e.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),r=e.vanityName?"/"+e.vanityName:"",n=e.asset.id+"-"+e.asset.width+"x"+e.asset.height+"."+e.asset.format+r,s=t+"/images/"+e.projectId+"/"+e.dataset+"/"+n,o=[];if(e.rect){var a=e.rect,u=a.left,c=a.top,l=a.width,h=a.height;(0!==u||0!==c||h!==e.asset.height||l!==e.asset.width)&&o.push("rect="+u+","+c+","+l+","+h)}e.bg&&o.push("bg="+e.bg),e.focalPoint&&(o.push("fp-x="+e.focalPoint.x),o.push("fp-y="+e.focalPoint.y));var p=[e.flipHorizontal&&"h",e.flipVertical&&"v"].filter(Boolean).join("");
1return(p&&o.push("flip="+p),i.forEach(function(t){var r=t[0],n=t[1];void 0!==e[r]?o.push(n+"="+encodeURIComponent(e[r])):void 0!==e[n]&&o.push(n+"="+encodeURIComponent(e[n]))}),0===o.length)?s:s+"?"+o.join("&")}(e({},s,{asset:u}))}(this.options)},c.toString=function(){return this.url()},u}();return function(e){if(e&&"config"in e&&"function"==typeof e.config){var t=e.config(),r=t.apiHost,n=t.projectId,i=t.dataset;return new u(null,{baseUrl:(r||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:n,dataset:i})}if(e&&"clientConfig"in e&&"object"==typeof e.clientConfig){var s=e.clientConfig,o=s.apiHost,a=s.projectId,c=s.dataset;return new u(null,{baseUrl:(o||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:a,dataset:c})}return new u(null,e||{})}}()},422562,951813,e=>{"use strict";var t,r=e.i(843476),n=e.i(657688),i=e.i(247167),s=e.i(439884);let o=!(typeof navigator>"u")&&"ReactNative"===navigator.product,a={timeout:o?6e4:12e4},u=function(e){let t={...a,..."string"==typeof e?{url:e}:e};if(t.timeout=function e(t){if(!1===t||0===t)return!1;if(t.connect||t.socket)return t;let r=Number(t);return isNaN(r)?e(a.timeout):{connect:r,socket:r}}(t.timeout),t.query){let{url:e,searchParams:r}=function(e){let t=e.indexOf("?");if(-1===t)return{url:e,searchParams:new URLSearchParams};let r=e.slice(0,t),n=e.slice(t+1);if(!o)return{url:r,searchParams:new URLSearchParams(n)};if("function"!=typeof decodeURIComponent)throw Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");let i=new URLSearchParams;for(let e of n.split("&")){let[t,r]=e.split("=");t&&i.append(c(t),c(r||""))}return{url:r,searchParams:i}}(t.url);for(let[n,i]of Object.entries(t.query)){if(void 0!==i)if(Array.isArray(i))for(let e of i)r.append(n,e);else r.append(n,i);let s=r.toString();s&&(t.url=`${e}?${s}`)}}return t.method=t.body&&!t.method?"POST":(t.method||"GET").toUpperCase(),t};function c(e){return decodeURIComponent(e.replace(/\+/g," "))}let l=/^https?:\/\//i,h=function(e){if(!l.test(e.url))throw Error(`"${e.url}" is not a valid URL`)},p=["request","response","progress","error","abort"],d=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];var f,g,m,y=(f=function(){if(m)return g;m=1;var e=function(e){return e.replace(/^\s+|\s+$/g,"")};return g=function(t){if(!t)return{};for(var r=Object.create(null),n=e(t).split("\n"),i=0;i<n.length;i++){var s,o=n[i],a=o.indexOf(":"),u=e(o.slice(0,a)).toLowerCase(),c=e(o.slice(a+1));typeof r[u]>"u"?r[u]=c:(s=r[u],"[object Array]"===Object.prototype.toString.call(s))?r[u].push(c):r[u]=[r[u],c]}return r}}())&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f;class b{onabort;onerror;onreadystatechange;ontimeout;readyState=0;response;responseText="";responseType="";status;statusText;withCredentials;#e;#t;#r;#n={};#i;#s={};#o;open(e,t,r){this.#e=e,this.#t=t,this.#r="",this.readyState=1,this.onreadystatechange?.(),this.#i=void 0}abort(){this.#i&&this.#i.abort()}getAllResponseHeaders(){return this.#r}setRequestHeader(e,t){this.#n[e]=t}setInit(e,t=!0){this.#s=e,this.#o=t}send(e){let t="arraybuffer"!==this.responseType,r={...this.#s,method:this.#e,headers:this.#n,body:e};"function"==typeof AbortController&&this.#o&&(this.#i=new AbortController,"u">typeof EventTarget&&this.#i.signal instanceof EventTarget&&(r.signal=this.#i.signal)),"u">typeof document&&(r.credentials=this.withCredentials?"include":"omit"),fetch(this.#t,r).then(e=>(e.headers.forEach((e,t)=>{this.#r+=`${t}: ${e}\r 2`}),this.status=e.status,this.statusText=e.statusText,this.readyState=3,this.onreadystatechange?.(),t?e.text():e.arrayBuffer())).then(e=>{"string"==typeof e?this.responseText=e:this.response=e,this.readyState=4,this.onreadystatechange?.()}).catch(e=>{"AbortError"!==e.name?this.onerror?.(e):this.onabort?.()})}}let w="function"==typeof XMLHttpRequest?"xhr":"fetch",v="xhr"===w?XMLHttpRequest:b,C=(e,t)=>{let r=e.options,n=e.applyMiddleware("finalizeOptions",r),i={},s=e.applyMiddleware("interceptRequest",void 0,{adapter:w,context:e});if(s){let e=setTimeout(t,0,null,s);return{abort:()=>clearTimeout(e)}}let o=new v;o instanceof b&&"object"==typeof n.fetch&&o.setInit(n.fetch,n.useAbortSignal??!0);let a=n.headers,u=n.timeout,c=!1,l=!1,h=!1;if(o.onerror=e=>{f(o instanceof b?e instanceof Error?e:Error(`Request error while attempting to reach is ${n.url}`,{cause:e}):Error(`Request error while attempting to reach is ${n.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:""}`))},o.ontimeout=e=>{f(Error(`Request timeout while attempting to reach ${n.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:""}`))},o.onabort=()=>{d(!0),c=!0},o.onreadystatechange=function(){u&&(d(),i.socket=setTimeout(()=>p("ESOCKETTIMEDOUT"),u.socket)),!c&&o&&4===o.readyState&&0!==o.status&&function(){if(!(c||l||h)){if(0===o.status)return f(Error("Unknown XHR error"));d(),l=!0,t(null,{body:o.response||(""===o.responseType||"text"===o.responseType?o.responseText:""),url:n.url,method:n.method,headers:y(o.getAllResponseHeaders()),statusCode:o.status,statusMessage:o.statusText})}}()},o.open(n.method,n.url,!0),o.withCredentials=!!n.withCredentials,a&&o.setRequestHeader)for(let e in a)a.hasOwnProperty(e)&&o.setRequestHeader(e,a[e]);return n.rawBody&&(o.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:n,adapter:w,request:o,context:e}),o.send(n.body||null),u&&(i.connect=setTimeout(()=>p("ETIMEDOUT"),u.connect)),{abort:function(){c=!0,o&&o.abort()}};function p(t){h=!0,o.abort();let r=Error("ESOCKETTIMEDOUT"===t?`Socket timed out on request to ${n.url}`:`Connection timed out on request to ${n.url}`);r.code=t,e.channels.error.publish(r)}function d(e){(e||c||o&&o.readyState>=2&&i.connect)&&clearTimeout(i.connect),i.socket&&clearTimeout(i.socket)}function f(e){if(l)return;d(!0),l=!0,o=null;let r=e||Error(`Network error while attempting to reach ${n.url}`);r.isNetworkError=!0,r.request=n,t(r)}};var R,q,E,$,O,I=e.i(467034),x={exports:{}};O||(O=1,function(e,t){let r;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch{}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!e&&"u">typeof i.default&&"env"in i.default&&(e=i.default.env.DEBUG),e},t.useColors=function(){let e;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&
2("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch{}}(),r=!1,t.destroy=()=>{r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=($?E:($=1,E=function(e){function t(e){let n,i,s,o=null;function a(...e){if(!a.enabled)return;let r=Number(new Date);a.diff=r-(n||r),a.prev=n,a.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";i++;let s=t.formatters[n];if("function"==typeof s){let t=e[i];r=s.call(a,t),e.splice(i,1),i--}return r}),t.formatArgs.call(a,e),(a.log||t.log).apply(a,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,s=t.enabled(e)),s),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,r){let n=t(this.namespace+(typeof r>"u"?":":r)+e);return n.log=this.log,n}function n(e,t){let r=0,n=0,i=-1,s=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(i=n,s=r):r++,n++;else{if(-1===i)return!1;n=i+1,r=++s}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let r of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(let r of t.skips)if(n(e,r))return!1;for(let r of t.names)if(n(e,r))return!0;return!1},t.humanize=function(){if(q)return R;q=1;function e(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}return R=function(t,r){r=r||{};var n,i,s=typeof t;if("string"===s&&t.length>0){var o=t;if(!((o=String(o)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(o);if(a){var u=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*u;case"weeks":case"week":case"w":return 6048e5*u;case"days":case"day":case"d":return 864e5*u;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*u;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*u;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u}}}return}if("number"===s&&isFinite(t))return r.long?(i=Math.abs(t))>=864e5?e(t,i,864e5,"day"):i>=36e5?e(t,i,36e5,"hour"):i>=6e4?e(t,i,6e4,"minute"):i>=1e3?e(t,i,1e3,"second"):t+" ms":(n=Math.abs(t))>=864e5?Math.round(t/864e5)+"d":n>=36e5?Math.round(t/36e5)+"h":n>=6e4?Math.round(t/6e4)+"m":n>=1e3?Math.round(t/1e3)+"s":t+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}}(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}))(t);let{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}
2(x,x.exports)),x.exports,Object.prototype.hasOwnProperty;let j=typeof I.Buffer>"u"?()=>!1:e=>I.Buffer.isBuffer(e);function T(e){return"[object Object]"===Object.prototype.toString.call(e)}let A=["boolean","string","number"];var S="u">typeof globalThis?globalThis:"u">typeof window?window:e.g;let _=(e={})=>{let t=e.implementation||Promise;if(!t)throw Error("`Promise` is not available in global scope, and no implementation was passed");return{onReturn:(r,n)=>new t((t,i)=>{let s=n.options.cancelToken;s&&s.promise.then(e=>{r.abort.publish(e),i(e)}),r.error.subscribe(i),r.response.subscribe(r=>{t(e.onlyBody?r.body:r)}),setTimeout(()=>{try{r.request.publish(n)}catch(e){i(e)}},0)})}};class P{__CANCEL__=!0;message;constructor(e){this.message=e}toString(){return"Cancel"+(this.message?`: ${this.message}`:"")}}class F{promise;reason;constructor(e){if("function"!=typeof e)throw TypeError("executor must be a function.");let t=null;this.promise=new Promise(e=>{t=e}),e(e=>{this.reason||(this.reason=new P(e),t(this.reason))})}static source=()=>{let e;return{token:new F(t=>{e=t}),cancel:e}}}_.Cancel=P,_.CancelToken=F,_.isCancel=e=>!(!e||!e?.__CANCEL__);var M=(e,t,r)=>("GET"===r.method||"HEAD"===r.method)&&(e.isNetworkError||!1);function D(e){return 100*Math.pow(2,e)+100*Math.random()}let U=(e={})=>{var t;let r,n,i;return r=(t={shouldRetry:M,...e}).maxRetries||5,n=t.retryDelay||D,i=t.shouldRetry,{onError:(e,t)=>{var s;let o=t.options,a=o.maxRetries||r,u=o.retryDelay||n,c=o.shouldRetry||i,l=o.attemptNumber||0;if(null!==(s=o.body)&&"object"==typeof s&&"function"==typeof s.pipe||!c(e,l,o)||l>=a)return e;let h=Object.assign({},t,{options:Object.assign({},o,{attemptNumber:l+1})});return setTimeout(()=>t.channels.request.publish(h),u(l)),null}}};U.shouldRetry=M;var k=e.i(394426),V=e.i(172441),N=e.i(673649),L=e.i(330823);function z(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(0,N.popScheduler)(e);return(0,L.from)(e,r)}var H=e.i(603752),B=e.i(484973),W=(0,e.i(842093).createErrorClass)(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function G(e,t){var r="object"==typeof t;return new Promise(function(n,i){var s,o=!1;e.subscribe({next:function(e){s=e,o=!0},error:i,complete:function(){o?n(s):r?n(t.defaultValue):i(new W)}})})}var J=e.i(827341),Y=e.i(220324),Q=e.i(627608),K=e.i(902965);function X(e){return(0,K.operate)(function(t,r){var n,i=null,s=!1;i=t.subscribe((0,Q.createOperatorSubscriber)(r,void 0,void 0,function(o){n=(0,Y.innerFrom)(e(o,X(e)(t))),i?(i.unsubscribe(),i=null,n.subscribe(r)):s=!0})),s&&(i.unsubscribe(),i=null,n.subscribe(r))})}var Z=e.i(844032);function ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,Z.mergeAll)(1)((0,L.from)(e,(0,N.popScheduler)(e)))}function et(e,t){var r=(0,H.isFunction)(e)?e:function(){return e},n=function(e){return e.error(r())};return new k.Observable(t?function(e){return t.schedule(n,0,e)}:n)}var er=e.i(329418),en=new(e.i(796989)).AsyncScheduler(er.AsyncAction),ei=(e.i(871041),e.i(979165));function es(e){return(0,K.operate)(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}var eo=e.i(277497),ea=e.i(993817),eu=e.i(96623),ec=e.i(94059),el=e.i(240126);function eh(e,t){var r="object"==typeof t;return new Promise(function(n,i){var s=new el.SafeSubscriber({next:function(e){n(e),s.unsubscribe()},error:i,complete:function(){r?n(t.defaultValue):i(new W)}});e.subscribe(s)})}var ep=e.i(247984),ed=e.i(290571),ef=e.i(175436);function eg(e,t,r){e?(0,ef.executeSchedule)(r,e,t):t()}var em=Array.isArray,ey=e.i(272383),eb=e.i(282541);function ew(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(0,N.popResultSelector)(e);return r?(0,eb.pipe)(ew.apply(void 0,(0,ed.__spreadArray)([],(0,ed.__read)(e))),(0,ey.mapOneOrManyArgs)(r)):(0,K.operate)(function(t,r){var n,i;(n=(0,ed.__spreadArray)([t],(0,ed.__read)(1===e.length&&em(e[0])?e[0]:e)),void 0===i&&(i=ei.identity),function(e){eg(void 0,function(){for(var t=n.length,r=Array(t),s=t,o=t,a=function(t){eg(void 0,function(){var a=(0,L.from)(n[t],void 0),u=!1;a.subscribe((0,Q.createOperatorSubscriber)(e,function(n){r[t]=n,!u&&(u=!0,o--),o||e.next(i(r.slice()))},function(){--s||e.complete()}
2))},e)},u=0;u<t;u++)a(u)},e)})(r)})}var ev=e.i(722249),eC=e.i(216024);let eR=e=>crypto.getRandomValues(new Uint8Array(e)),eq=/\r\n|[\n\r\u2028\u2029]/;function eE(e,t){let r=0;for(let n=0;n<t.length;n++){let i=t[n].length+1;if(r+i>e)return{line:n+1,column:e-r};r+=i}return{line:t.length,column:t[t.length-1]?.length??0}}class e$ extends Error{response;statusCode=400;responseBody;details;constructor(e,t){const r=eI(e,t);super(r.message),Object.assign(this,r)}}class eO extends Error{response;statusCode=500;responseBody;details;constructor(e){const t=eI(e);super(t.message),Object.assign(this,t)}}function eI(e,t){var r,n,i;let s=e.body,o={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,ep.isRecord)(s))return o.message=eT(e,s),o;let a=s.error;if("string"==typeof a&&"string"==typeof s.message)return o.message=`${a} - ${s.message}`,o;if("object"!=typeof a||null===a)return"string"==typeof a?o.message=a:"string"==typeof s.message?o.message=s.message:o.message=eT(e,s),o;if("type"in(n=a)&&"mutationError"===n.type&&"description"in n&&"string"==typeof n.description||"type"in(i=a)&&"actionError"===i.type&&"description"in i&&"string"==typeof i.description){let e=a.items||[],t=e.slice(0,5).map(e=>e.error?.description).filter(Boolean),r=t.length?`: 3- ${t.join(` 4- `)}`:"";return e.length>5&&(r+=` 5...and ${e.length-5} more`),o.message=`${a.description}${r}`,o.details=s.error,o}return ex(a)?(o.message=ej(a,t?.options?.query?.tag),o.details=s.error):"description"in a&&"string"==typeof a.description?(o.message=a.description,o.details=a):o.message=eT(e,s),o}function ex(e){return(0,ep.isRecord)(e)&&"queryParseError"===e.type&&"string"==typeof e.query&&"number"==typeof e.start&&"number"==typeof e.end}function ej(e,t){let{query:r,start:n,end:i,description:s}=e;if(!r||typeof n>"u")return`GROQ query parse error: ${s}`;let o=t?` 6 7Tag: ${t}`:"";return`GROQ query parse error: 8${function(e,t,r){let n=e.split(eq),{start:i,end:s,markerLines:o}=function(e,t){let r={...e.start},n={...r,...e.end},i=r.line??-1,s=r.column??0,o=n.line,a=n.column,u=Math.max(i-3,0),c=Math.min(t.length,o+3);-1===i&&(u=0),-1===o&&(c=t.length);let l=o-i,h={};if(l)for(let e=0;e<=l;e++){let r=e+i;if(s)if(0===e){let e=t[r-1].length;h[r]=[s,e-s+1]}else if(e===l)h[r]=[0,a];else{let n=t[r-e].length;h[r]=[0,n]}else h[r]=!0}else s===a?s?h[i]=[s,0]:h[i]=!0:h[i]=[s,a-s];return{start:u,end:c,markerLines:h}}({start:eE(t.start,n),end:t.end?eE(t.end,n):void 0},n),a=`${s}`.length;return e.split(eq,s).slice(i,s).map((e,t)=>{let n=i+1+t,s=` ${` ${n}`.slice(-a)} |`,u=o[n],c=!o[n+1];if(!u)return` ${s}${e.length>0?` ${e}`:""}`;let l="";if(Array.isArray(u)){let t=e.slice(0,Math.max(u[0]-1,0)).replace(/[^\t]/g," "),n=u[1]||1;l=` 9 `+s.replace(/\d/g," ")+" "+t+"^".repeat(n),c&&r&&(l+=" "+r)}return">"+s+(e.length>0?` ${e}`:"")+l}).join(` 10`)}(r,{start:n,end:i},s)}${o}`}function eT(e,t){var r;let n="string"==typeof t?` (${(r=t).length>100?`${r.slice(0,100)}\u2026`:r})`:"",i=e.statusMessage?` ${e.statusMessage}`:"";return`${e.method}-request to ${e.url} resulted in HTTP ${e.statusCode}${i}${n}`}class eA 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 eS={onResponse:(e,t)=>{if(e.statusCode>=500)throw new eO(e);if(e.statusCode>=400)throw new e$(e,t);return e}};function e_(e,t={}){return((e=[],t=C)=>(function e(t,r){let n=[],i=d.reduce((e,t)=>(e[t]=e[t]||[],e),{processOptions:[u],validateOptions:[h]});function s(e){let t,n=p.reduce((e,t)=>{let r,n;return e[t]=(r=Object.create(null),n=0,{publish:function(e){for(let t in r)r[t](e)},subscribe:function(e){let t=n++;return r[t]=e,function(){delete r[t]}}}),e},{}),s=function(e,t,...r){let n="onError"===e,s=t;
10for(let t=0;t<i[e].length&&(s=(0,i[e][t])(s,...r),!n||s);t++);return s},o=s("processOptions",e);s("validateOptions",o);let a={options:o,channels:n,applyMiddleware:s},u=n.request.subscribe(e=>{t=r(e,(t,r)=>((e,t,r)=>{let i=e,o=t;if(!i)try{o=s("onResponse",t,r)}catch(e){o=null,i=e}(i=i&&s("onError",i,r))?n.error.publish(i):o&&n.response.publish(o)})(t,r,e))});n.abort.subscribe(()=>{u(),t&&t.abort()});let c=s("onReturn",n,a);return c===n&&n.request.publish(a),c}return s.use=function(e){if(!e)throw Error("Tried to add middleware that resolved to falsey value");if("function"==typeof e)throw Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(e.onReturn&&i.onReturn.length>0)throw Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return d.forEach(t=>{e[t]&&i[t].push(e[t])}),n.push(e),s},s.clone=()=>e(n,r),t.forEach(s.use),s})(e,t))([U({shouldRetry:eP}),...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 n=e.headers["x-sanity-warning"];for(let e of Array.isArray(n)?n:[n])!e||t[e]||r(e)||(t[e]=!0,console.warn(e));return e}}}(t),{processOptions:e=>{let t=e.body;return!t||"function"==typeof t.pipe||j(t)||-1===A.indexOf(typeof t)&&!Array.isArray(t)&&!function(e){if(!1===T(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!1!==T(r)&&!1!==r.hasOwnProperty("isPrototypeOf")}(t)?e:Object.assign({},e,{body:JSON.stringify(e.body),headers:Object.assign({},e.headers,{"Content-Type":"application/json"})})}},{onResponse:e=>{let t=e.headers["content-type"]||"",r=-1!==t.indexOf("application/json");return e.body&&t&&r?Object.assign({},e,{body:function(e){try{return JSON.parse(e)}catch(e){throw e.message=`Failed to parsed response body as JSON: ${e.message}`,e}}(e.body)}):e},processOptions:e=>Object.assign({},e,{headers:Object.assign({Accept:"application/json"},e.headers)})},{onRequest:e=>{if("xhr"!==e.adapter)return;let t=e.request,r=e.context;function n(e){return t=>{let n=t.lengthComputable?t.loaded/t.total*100:-1;r.channels.progress.publish({stage:e,percent:n,total:t.total,loaded:t.loaded,lengthComputable:t.lengthComputable})}}"upload"in t&&"onprogress"in t.upload&&(t.upload.onprogress=n("upload")),"onprogress"in t&&(t.onprogress=n("download"))}},eS,function(e={}){let t=e.implementation||S.Observable;if(!t)throw Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:(e,r)=>new t(t=>(e.error.subscribe(e=>t.error(e)),e.progress.subscribe(e=>t.next(Object.assign({type:"progress"},e))),e.response.subscribe(e=>{t.next(Object.assign({type:"response"},e)),t.complete()}),e.request.publish(r),()=>e.abort.publish()))}}({implementation:k.Observable})])}function eP(e,t,r){if(0===r.maxRetries)return!1;let n="GET"===r.method||"HEAD"===r.method,i=(r.uri||r.url).startsWith("/data/query"),s=e.response&&(429===e.response.statusCode||502===e.response.statusCode||503===e.response.statusCode);return(!!n||!!i)&&!!s||U.shouldRetry(e,t,r)}function eF(e){return"https://www.sanity.io/help/"+e}let eM=["image","file"],eD=["before","after","replace"],eU=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")},ek=(e,t)=>{if(null===t||"object"!=typeof t||Array.isArray(t))throw Error(`${e}() takes an object of properties`)},eV=(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`)},eN=(e,t)=>{if(!t._id)throw Error(`${e}() requires that the document contains an ID ("_id" property)`);eV(e,t._id)},eL=(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`)},ez=e=>{if(!e.dataset)throw Error("`dataset` must be provided to perform queries");return e.dataset||""},eH=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},eB=e=>{if(!e["~experimental_resource"])throw Error("`resource` must be provided to perform resource queries");let{type:t,id:r}=e["~experimental_resource"];switch(t){case"dataset":if(2!==r.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: ${t.toString()}`)}},eW=(e,t)=>{if(t["~experimental_resource"])throw Error(`\`${e}\` does not support resource-based operations`)},eG=e=>{var t;let r,n;return t=(...t)=>console.warn(e.join(" "),...t),r=!1,(...e)=>(r||(n=t(...e),r=!0),n)},eJ=eG(["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"]),eY=eG(["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."]),eQ=eG(["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."]),eK=eG(["The `previewDrafts` perspective has been renamed to `drafts` and will be removed in a future API version"]),eX=eG(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${eF("js-cl
10ient-browser-token")} for more information and how to hide this warning.`]),eZ=eG(["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`."]),e0=eG(["Using the Sanity client without specifying an API version is deprecated.",`See ${eF("js-client-api-version")}`]),e1=(eG(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),eG(["You have called `createVersion()` with a defined `document`. The recommended approach is to provide a `baseId` and `releaseId` instead."])),e3={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},e6=["localhost","127.0.0.1","0.0.0.0"];function e9(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 e2=(e,t)=>{let r,n={...t,...e,stega:{..."boolean"==typeof t.stega?{enabled:t.stega}:t.stega||e3.stega,..."boolean"==typeof e.stega?{enabled:e.stega}:e.stega||{}}};n.apiVersion||e0();let i={...e3,...n},s=i.useProjectHostname&&!i["~experimental_resource"];if(typeof Promise>"u"){let e=eF("js-client-promise-polyfill");throw Error(`No native Promise-implementation found, polyfill needed - see ${e}`)}if(s&&!i.projectId)throw Error("Configuration must contain `projectId`");if(i["~experimental_resource"]&&eB(i),"u">typeof i.perspective&&e9(i.perspective),"encodeSourceMap"in i)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 i)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'?");if("boolean"!=typeof i.stega.enabled)throw Error(`stega.enabled must be a boolean, received ${i.stega.enabled}`);if(i.stega.enabled&&void 0===i.stega.studioUrl)throw Error("stega.studioUrl must be defined when stega.enabled is true");if(i.stega.enabled&&"string"!=typeof i.stega.studioUrl&&"function"!=typeof i.stega.studioUrl)throw Error(`stega.studioUrl must be a string or a function, received ${i.stega.studioUrl}`);let o="u">typeof window&&window.location&&window.location.hostname,a=o&&(r=window.location.hostname,-1!==e6.indexOf(r)),u=!!i.token;i.withCredentials&&u&&(eZ(),i.withCredentials=!1),o&&a&&u&&!0!==i.ignoreBrowserTokenWarning?eX():typeof i.useCdn>"u"&&eY(),s&&(e=>{if(!/^[-a-z0-9]+$/i.test(e))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")})(i.projectId),i.dataset&&eU(i.dataset),"requestTagPrefix"in i&&(i.requestTagPrefix=i.requestTagPrefix?eH(i.requestTagPrefix).replace(/\.+$/,""):void 0),i.apiVersion=`${i.apiVersion}`.replace(/^v/,""),i.isDefaultApi=i.apiHost===e3.apiHost,!0===i.useCdn&&i.withCredentials&&eJ(),i.useCdn=!1!==i.useCdn&&!i.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`")}(i.apiVersion);let c=i.apiHost.split("://",2),l=c[0],h=c[1],p=i.isDefaultApi?"apicdn.sanity.io":h;return s?(i.url=`${l}://${i.projectId}.${h}/v${i.apiVersion}`,i.cdnUrl=`${l}://${i.projectId}.${p}/v${i.apiVersion}
10`):(i.url=`${i.apiHost}/v${i.apiVersion}`,i.cdnUrl=i.url),i};class e4 extends Error{name="ConnectionFailedError"}class e5 extends Error{name="DisconnectError";reason;constructor(e,t,r={}){super(e,r),this.reason=t}}class e8 extends Error{name="ChannelError";data;constructor(e,t){super(e),this.data=t}}class e7 extends Error{name="MessageError";data;constructor(e,t,r={}){super(e,r),this.data=t}}class te extends Error{name="MessageParseError"}let tt=["channelError","disconnect"];function tr(e,t){return(0,V.defer)(()=>{let t=e();return t&&(t instanceof k.Observable||(0,H.isFunction)(t.lift)&&(0,H.isFunction)(t.subscribe))?t:z(t)}).pipe((0,B.mergeMap)(e=>{var r,n;return r=e,n=t,new k.Observable(e=>{let t=n.includes("open"),i=n.includes("reconnect");function s(t){if("data"in t){let[r,n]=tn(t);e.error(r?new te("Unable to parse EventSource error message",{cause:n}):new e7((n?.data).message,n));return}r.readyState===r.CLOSED?e.error(new e4("EventSource connection failed")):i&&e.next({type:"reconnect"})}function o(){e.next({type:"open"})}function a(t){let[n,i]=tn(t);if(n)return void e.error(new te("Unable to parse EventSource message",{cause:n}));if("channelError"===t.type){var s,o;let t,n=new URL(r.url).searchParams.get("tag");e.error(new e8((s=i?.data,o=n,(t=s.error)?ex(t)?ej(t,o):t.description?t.description:"string"==typeof t?t:JSON.stringify(t,null,2):s.message||"Unknown listener error"),i.data));return}"disconnect"===t.type?e.error(new e5(`Server disconnected client: ${i.data?.reason||"unknown error"}`)):e.next({type:t.type,id:t.lastEventId,...i.data?{data:i.data}:{}})}r.addEventListener("error",s),t&&r.addEventListener("open",o);let u=[...new Set([...tt,...n])].filter(e=>"error"!==e&&"open"!==e&&"reconnect"!==e);return u.forEach(e=>r.addEventListener(e,a)),()=>{r.removeEventListener("error",s),t&&r.removeEventListener("open",o),u.forEach(e=>r.removeEventListener(e,a)),r.close()}})}))}function tn(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 ti(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(` 11`);throw Error(`Unknown selection - must be one of: 12 13${t}`)}class ts{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 ek("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 n="insert(at, selector, items)";if(-1===eD.indexOf(e)){let e=eD.map(e=>`"${e}"`).join(", ");throw Error(`${n} takes an "at"-argument which is one of: ${e}`)}if("string"!=typeof t)throw Error(`${n} takes a "selector"-argument which must be a string`);if(!Array.isArray(r))throw Error(`${n} 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)}splice(e,t,r,n){let i=t<0?t-1:t,s=typeof r>"u"||-1===r?-1:Math.max(0,t+r),o=`${e}[${i}:${i<0&&s>=0?"":s}]`;return this.insert("replace",o,n||[])}ifRevisionId(e){return this.operations.ifRevisionID=e,this}serialize(){return{...ti(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(e,t,r=!0){return ek(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 to extends ts{#a;constructor(e,t,r){super(e,t),this.#a=r}clone(){return new to(this.selection,{...this.operations},this.#a)}commit(e){if(!this.#a)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.#a.mutate({patch:this.serialize()},t)}}class ta extends ts{#a;constructor(e,t,r){super(e,t),this.#a=r}clone(){return new ta(this.selection,{...this.operations},this.#a)}commit(e){if(!this.#a)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.#a.mutate({patch:this.serialize()},t)}}let tu={returnDocuments:!1};class tc{operations;trxId;constructor(e=[],t){this.operations=e,this.trxId=t}create(e){return ek("create",e),this._add({create:e})}createIfNotExists(e){let t="createIfNotExists";return ek(t,e),eN(t,e),this._add({[t]:e})}createOrReplace(e){let t="createOrReplace";return ek(t,e),eN(t,e),this._add({[t]:e})}delete(e){return eV("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 tl extends tc{#a;constructor(e,t,r){super(e,r),this.#a=t}clone(){return new tl([...this.operations],this.#a,this.trxId)}commit(e){if(!this.#a)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#a.mutate(this.serialize(),Object.assign({transactionId:this.trxId},tu,e||{}))}patch(e,t){let r="function"==typeof t,n="string"!=typeof e&&e instanceof ta,i="object"==typeof e&&("query"in e||"id"in e);if(n)return this._add({patch:e.serialize()});if(r){let r=t(new ta(e,{},this.#a));if(!(r instanceof ta))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}if(i){let r=new ta(e,t||{},this.#a);return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}class th extends tc{#a;constructor(e,t,r){super(e,r),this.#a=t}clone(){return new th([...this.operations],this.#a,this.trxId)}commit(e){if(!this.#a)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#a.mutate(this.serialize(),Object.assign({transactionId:this.trxId},tu,e||{}))}patch(e,t){let r="function"==typeof t;if("string"!=typeof e&&e instanceof to)return this._add({patch:e.serialize()});if(r){let r=t(new to(e,{},this.#a));if(!(r instanceof to))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}let tp=({query:e,params:t={},options:r={}})=>{let n=new URLSearchParams,{tag:i,includeMutations:s,returnQuery:o,...a}=r;for(let[r,s]of(i&&n.append("tag",i),n.append("query",e),Object.entries(t)))void 0!==s&&n.append(`$${r}`,JSON.stringify(s));for(let[e,t]of Object.entries(a))t&&n.append(e,`${t}`);return!1===o&&n.append("returnQuery","false"),!1===s&&n.append("includeMutations","fal
13se"),`?${n}`},td=e=>"response"===e.type,tf=e=>e.body;function tg(t,r,n,i,s={},o={}){let a="stega"in o?{...n||{},..."boolean"==typeof o.stega?{enabled:o.stega}:o.stega||{}}:n,u=a.enabled?(0,ep.stegaClean)(s):s,c=!1===o.filterResponse?e=>e:e=>e.result,{cache:l,next:h,...p}={useAbortSignal:"u">typeof o.signal,resultSourceMap:a.enabled?"withKeyArraySelector":o.resultSourceMap,...o,returnQuery:!1===o.filterResponse&&!1!==o.returnQuery},d=tj(t,r,"query",{query:i,params:u},"u">typeof l||"u">typeof h?{...p,fetch:{cache:l,next:h}}:p);return a.enabled?d.pipe(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ew.apply(void 0,(0,ed.__spreadArray)([],(0,ed.__read)(e)))}((0,L.from)(e.A(684927).then(function(e){return e.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:e})=>e))),(0,ec.map)(([e,t])=>{let r=t(e.result,e.resultSourceMap,a);return c({...e,result:r})})):d.pipe((0,ec.map)(c))}function tm(e,t,r,n={}){let i={uri:tF(e,"doc",(()=>{if(!n.releaseId)return r;let e=(0,eC.getVersionFromId)(r);if(!e){if((0,eC.isDraftId)(r))throw Error(`The document ID (\`${r}\`) is a draft, but \`options.releaseId\` is set as \`${n.releaseId}\``);return(0,eC.getVersionId)(r,n.releaseId)}if(e!==n.releaseId)throw Error(`The document ID (\`${r}\`) is already a version of \`${e}\` release, but this does not match the provided \`options.releaseId\` (\`${n.releaseId}\`)`);return r})()),json:!0,tag:n.tag,signal:n.signal};return t_(e,t,i).pipe((0,ev.filter)(td),(0,ec.map)(e=>e.body.documents&&e.body.documents[0]))}function ty(e,t,r,n={}){let i={uri:tF(e,"doc",r.join(",")),json:!0,tag:n.tag,signal:n.signal};return t_(e,t,i).pipe((0,ev.filter)(td),(0,ec.map)(e=>{let t,n,i=(t=e.body.documents||[],n=e=>e._id,t.reduce((e,t)=>(e[n(t)]=t,e),Object.create(null)));return r.map(e=>i[e]||null)}))}function tb(e,t,r,n={}){return tj(e,t,"query",{query:"*[sanity::partOfRelease($releaseId)]",params:{releaseId:r}},n)}function tw(e,t,r,n){return eN("createIfNotExists",r),tT(e,t,r,"createIfNotExists",n)}function tv(e,t,r,n){return eN("createOrReplace",r),tT(e,t,r,"createOrReplace",n)}function tC(e,t,r,n,i){return eN("createVersion",r),eL("createVersion",r),e1(),tx(e,t,{actionType:"sanity.action.document.version.create",publishedId:n,document:r},i)}function tR(e,t,r,n,i,s,o){if(!n)throw Error("`createVersion()` requires `baseId` when no `document` is provided");if(!r)throw Error("`createVersion()` requires `publishedId` when `baseId` is provided");return eV("createVersion",n),eV("createVersion",r),tx(e,t,{actionType:"sanity.action.document.version.create",publishedId:r,baseId:n,versionId:i?(0,eC.getVersionId)(r,i):(0,eC.getDraftId)(r),ifBaseRevisionId:s},o)}function tq(e,t,r,n){return tj(e,t,"mutate",{mutations:[{delete:ti(r)}]},n)}function tE(e,t,r,n=!1,i){return tx(e,t,{actionType:"sanity.action.document.version.discard",versionId:r,purge:n},i)}function t$(e,t,r,n){return eN("replaceVersion",r),eL("replaceVersion",r),tx(e,t,{actionType:"sanity.action.document.version.replace",document:r},n)}function tO(e,t,r,n,i){return tx(e,t,{actionType:"sanity.action.document.version.unpublish",versionId:r,publishedId:n},i)}function tI(e,t,r,n){let i;return tj(e,t,"mutate",{mutations:Array.isArray(i=r instanceof ta||r instanceof to?{patch:r.serialize()}:r instanceof tl||r instanceof th?r.serialize():r)?i:[i],transactionId:n&&n.transactionId||void 0},n)}function tx(e,t,r,n){let i=Array.isArray(r)?r:[r],s=n&&n.transactionId||void 0;return tj(e,t,"actions",{actions:i,transactionId:s,skipCrossDatasetReferenceValidation:n&&n.skipCrossDatasetReferenceValidation||void 0,dryRun:n&&n.dryRun||void 0},n)}function tj(e,t,r,n,i={}){let s="mutate"===r,o="actions"===r,a=s||o?"":tp(n),u=!s&&!o&&a.length<11264,c=u?a:"",l=i.returnFirst,{timeout:h,token:p,tag:d,headers:f,returnQuery:g,lastLiveEventId:m,cacheMode:y}=i,b={method:u?"GET":"POST",uri:tF(e,r,c),json:!0,body:u?void 0:n,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}})(i),timeout:h,headers:f,token:p,tag:d,returnQuery:g,perspective:i.perspective,resultSourceMap:i.resultSourceMap,lastLiveEventId:Array.isArray(m)?m[0]:m,cacheMode:y,canUseCdn:"query"===r,signal:i.signal,fetch:i.fetch,useAbortSignal:i.useAbortSignal,useCdn:i.useCdn};return t_(e,t,b).pipe((0,ev.filter)(td),(0,ec.map)(tf),(0,ec.map)(e=>{if(!s)return e;let t=e.results||[];if(i.returnDocuments)return l?t[0]&&t[0].document:t.map(e=>e.document);let r=l?t[0]&&t[0].id:t.map(e=>e.id);return{transactionId:e.transactionId,results:t,[l?"documentId":"documentIds"]:r}}))}function tT(e,t,r,n,i={}){return tj(e,t,"mutate",{mutations:[{[n]:r}]},Object.assign({returnFirst:!0,returnDocuments:!0},i))}let tA=e=>void 0!==e.config().dataset&&void 0!==e.config().projectId||void 0!==e.config()["~experimental_resource"],tS=(e,t)=>tA(e)&&t.startsWith(tF(e,"query"));function t_(e,t,r){var n;let i=r.url||r.uri,s=e.config(),o=typeof r.canUseCdn>"u"?["GET","HEAD"].indexOf(r.method||"GET")>=0&&(i.startsWith("/data/")||tS(e,i)||tA(e)&&i.startsWith(tF(e,"mutate"))||tA(e)&&i.startsWith(tF(e,"doc",""))||tA(e)&&i.startsWith(tF(e,"listen"))||tA(e)&&i.startsWith(tF(e,"history",""))):r.canUseCdn,a=(r.useCdn??s.useCdn)&&o,u=r.tag&&s.requestTagPrefix?[s.requestTagPrefix,r.tag].join("."):r.tag||s.requestTagPrefix;if(u&&null!==r.tag&&(r.query={tag:eH(u),...r.query}),["GET","HEAD","POST"].indexOf(r.method||"GET")>=0&&tS(e,i)){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&&eK(),e9(t),r.query={perspective:Array.isArray(t)?t.join(","):t,...r.query},(Array.isArray(t)&&t.length>0||"previewDrafts"===t||"drafts"===t)&&a&&(a=!1,eQ())),r.lastLiveEventId&&(r.query={...r.query,lastLiveEventId:r.lastLiveEventId}),!1===r.returnQuery&&(r.query={returnQuery:"false",...r.query}),a&&"noStale"==r.cacheMode&&(r.query={cacheMode:"noStale",...r.query})}let c=function(e,t={}){let r={};e.headers&&Object.assign(r,e.headers);let n=t.token||e.token;n&&(r.Authorization=`Bearer ${n}`),t.useGlobalApi||e.useProjectHostname||!e.projectId||(r["X-Sanity-Project-ID"]=e.projectId);let i=!!(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:i,fetch:"object"==typeof t.fetch&&"object"==typeof e.fetch?{...e.fetch,...t.fetch}:t.fetch||e.fetch})}(s,Object.assign({},r,{url:tM(e,i,a)})),l=new k.Observable(e=>t(c,s.requester).subscribe(e));return r.signal?l.pipe((n=r.signal,e=>new k.Observable(t=>{let r=()=>t.error(function(e){if(tD)return new DOMException(e?.reason??"The operation was aborted.","AbortError");let t=Error(e?.reason??"The operation was aborted.");return t.name="AbortError",t}(n));if(n&&n.aborted)return void r();let i=e.subscribe(t);return n.addEventListener("abort",r),()=>{n.removeEventListener("abort",r),i.unsubscribe()}}))):l}function tP(e,t,r){return t_(e,t,r).pipe((0,ev.filter)(e=>"response"===e.type),(0,ec.map)(e=>e.body))}function tF(e,t,r){let n=e.config();if(n["~experimental_resource"]){eB(n);let e=tU(n),i=void 0!==r?`${t}/${r}`:t;return`${e}/${i}`.replace(/\/($|\?)/,"$1")}let i=ez(n),s=`/${t}/${i}`;return`/data${void 0!==r?`${s}/${r}`:s}`.replace(/\/($|\?)/,"$1")}function tM(e,t,r=!1){let{url:n,cdnUrl:i}=e.config();return`${r?i:n}/${t.replace(/^\//,"")}`}let tD=!!globalThis.DOMException,tU=e=>{if(!e["~experimental_resource"])throw Error("`resource` must be provided to perform resource queries");let{type:t,id:r}=e["~experimental_resource"];switch(t){case"dataset":{let e=r.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/${r}`;case"media-library":return`/media-libraries/${r}`;case"dashboard":return`/dashboards/${r}`;default:throw Error(`Unsupported resource type: ${t.toString()}`)}};function tk(e,t,r){let n=ez(e.config());return tP(e,t,{method:"POST",uri:`/agent/action/generate/${n}`,body:r})}function tV(e,t,r){let n=ez(e.config());return tP(e,t,{method:"POST",uri:`/agent/action/transform/${n}`,body:r})}function tN(e,t,r){let n=ez(e.config());return tP(e,t,{method:"POST",uri:`/agent/action/translate/${n}`,body:r})}class tL{#a;#u;
13constructor(e,t){this.#a=e,this.#u=t}generate(e){return tk(this.#a,this.#u,e)}transform(e){return tV(this.#a,this.#u,e)}translate(e){return tN(this.#a,this.#u,e)}}class tz{#a;#u;constructor(e,t){this.#a=e,this.#u=t}generate(e){return G(tk(this.#a,this.#u,e))}transform(e){return G(tV(this.#a,this.#u,e))}translate(e){return G(tN(this.#a,this.#u,e))}prompt(e){var t,r;let n;return G((t=this.#a,r=this.#u,n=ez(t.config()),tP(t,r,{method:"POST",uri:`/agent/action/prompt/${n}`,body:e})))}patch(e){var t,r;let n;return G((t=this.#a,r=this.#u,n=ez(t.config()),tP(t,r,{method:"POST",uri:`/agent/action/patch/${n}`,body:e})))}}class tH{#a;#u;constructor(e,t){this.#a=e,this.#u=t}upload(e,t,r){return tW(this.#a,this.#u,e,t,r)}}class tB{#a;#u;constructor(e,t){this.#a=e,this.#u=t}upload(e,t,r){return G(tW(this.#a,this.#u,e,t,r).pipe((0,ev.filter)(e=>"response"===e.type),(0,ec.map)(e=>e.body.document)))}}function tW(e,t,r,n,i={}){var s,o;if(-1===eM.indexOf(r))throw Error(`Invalid asset type: ${r}. Must be one of ${eM.join(", ")}`);let a=i.extract||void 0;a&&!a.length&&(a=["none"]);let u=e.config(),c=(s=i,o=n,!(typeof File>"u")&&o instanceof File?Object.assign({filename:!1===s.preserveFilename?void 0:o.name,contentType:o.type},s):s),{tag:l,label:h,title:p,description:d,creditLine:f,filename:g,source:m}=c,y={label:h,title:p,description:d,filename:g,meta:a,creditLine:f};return m&&(y.sourceId=m.id,y.sourceName=m.name,y.sourceUrl=m.url),t_(e,t,{tag:l,method:"POST",timeout:c.timeout||0,uri:function(e,t){let r="image"===t?"images":"files";if(e["~experimental_resource"]){let{type:t,id:n}=e["~experimental_resource"];switch(t){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/${n}/assets/${r}`;case"media-library":return`/media-libraries/${n}/upload`;case"dashboard":return`/dashboards/${n}/assets/${r}`;default:throw Error(`Unsupported resource type: ${t.toString()}`)}}let n=ez(e);return`assets/${r}/${n}`}(u,r),headers:c.contentType?{"Content-Type":c.contentType}:{},query:y,body:n})}
13let tG=(0,V.defer)(()=>e.A(627649)).pipe((0,ec.map)(({default:e})=>e),(0,J.shareReplay)(1));function tJ(){return function(e){return e.pipe(X((e,t)=>{var r;return e instanceof e4?ee(z({type:"reconnect"}),(void 0===r&&(r=en),new k.Observable(function(e){var t=1e3;t<0&&(t=0);var n=0;return r.schedule(function(){e.closed||(e.next(n++),e.complete())},t)})).pipe((0,B.mergeMap)(()=>t))):et(()=>e)}))}}let tY=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","tag"],tQ={includeResult:!0};function tK(e,t,r={}){let{url:n,token:i,withCredentials:s,requestTagPrefix:o,headers:a}=this.config(),u=r.tag&&o?[o,r.tag].join("."):r.tag,c={...Object.keys(tQ).concat(Object.keys(r)).reduce((e,t)=>(e[t]=typeof r[t]>"u"?tQ[t]:r[t],e),{}),tag:u},l=tp({query:e,params:t,options:{tag:u,...tY.reduce((e,t)=>(typeof c[t]>"u"||(e[t]=c[t]),e),{})}}),h=`${n}${tF(this,"listen",l)}`;if(h.length>14800)return et(()=>Error("Query too large for listener"));let p=c.events?c.events:["mutation"],d={};return s&&(d.withCredentials=!0),(i||a)&&(d.headers={},i&&(d.headers.Authorization=`Bearer ${i}`),a&&Object.assign(d.headers,a)),tr(()=>(typeof EventSource>"u"||d.headers?tG:z(EventSource)).pipe((0,ec.map)(e=>new e(h,d))),p).pipe(tJ(),(0,ev.filter)(e=>p.includes(e.type)),(0,ec.map)(e=>({type:e.type,..."data"in e?e.data:{}})))}let tX="2021-03-25";class tZ{#a;constructor(e){this.#a=e}events({includeDrafts:e=!1,tag:t}={}){var r,n,i,s;eW("live",this.#a.config());let{projectId:o,apiVersion:a,token:u,withCredentials:c,requestTagPrefix:l,headers:h}=this.#a.config(),p=a.replace(/^v/,"");if("X"!==p&&p<tX)throw Error(`The live events API requires API version ${tX} or later. The current API version is ${p}. Please update your API version to use this feature.`);if(e&&!u&&!c)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 d=tF(this.#a,"live/events"),f=new URL(this.#a.getUrl(d,!1)),g=t&&l?[l,t].join("."):t;g&&f.searchParams.set("tag",g),e&&f.searchParams.set("includeDrafts","true");let m={};e&&c&&(m.withCredentials=!0),(e&&u||h)&&(m.headers={},e&&u&&(m.headers.Authorization=`Bearer ${u}`),h&&Object.assign(m.headers,h));let y=`${f.href}::${JSON.stringify(m)}`,b=t0.get(y);if(b)return b;let w=tr(()=>(typeof EventSource>"u"||m.headers?tG:z(EventSource)).pipe((0,ec.map)(e=>new e(f.href,m))),["message","restart","welcome","reconnect","goaway"]).pipe(tJ(),(0,ec.map)(e=>{if("message"===e.type){let{data:t,...r}=e;return{...r,tags:t.tags}}return e})),v=ee((n=f,i={method:"OPTIONS",mode:"cors",credentials:m.withCredentials?"include":"omit",headers:m.headers},new k.Observable(e=>{let t=new AbortController,r=t.signal;return fetch(n,{...i,signal:t.signal}).then(t=>{e.next(t),e.complete()},t=>{r.aborted||e.error(t)}),()=>t.abort()})).pipe((0,B.mergeMap)(()=>eu.EMPTY),X(()=>{throw new eA({projectId:o})})),w).pipe(es(()=>t0.delete(y)),(s="function"==typeof(r={predicate:e=>"welcome"===e.type})?{predicate:r,...void 0}:r,e=>{var t,r;let n,i=!1,{predicate:o,...a}=s,u=e.pipe((t=e=>{s.predicate(e)&&(i=!0,n=e)},(r=(0,H.isFunction)(t)?{next:t,error:void 0,complete:void 0}:t)?(0,K.operate)(function(e,t){null==(n=r.subscribe)||n.call(r);var n,i=!0;e.subscribe((0,Q.createOperatorSubscriber)(t,function(e){var n;null==(n=r.next)||n.call(r,e),t.next(e)},function(){var e;i=!1,null==(e=r.complete)||e.call(r),t.complete()},function(e){var n;i=!1,null==(n=r.error)||n.call(r,e),t.error(e)},function(){var e,t;i&&(null==(e=r.unsubscribe)||e.call(r)),null==(t=r.finalize)||t.call(r)}))}):ei.identity),es(()=>{i=!1,n=void 0}),(0,eo.share)(a)),c=new k.Observable(e=>{i&&e.next(n),e.complete()});return(0,ea.merge)(u,c)}));return t0.set(y,v),v}}let t0=new Map;class t1{#a;#u;constructor(e,t){this.#a=e,this.#u=t}create(e,t){return t6(this.#a,this.#u,"PUT",e,t)}edit(e,t){return t6(this.#a,this.#u,"PATCH",e,t)}delete(e){return t6(this.#a,this.#u,"DELETE",e)}list(){return tP(this.#a,this.#u,{uri:"/datasets",tag:null})}}class t3{#a;#u;constructor(e,t){this.#a=e,this.#u=t}create(e,t){return eW("dataset",this.#a.config()),G(t6(this.#a,this.#u,"PUT",e,t))}edit(e,t){return eW("dataset",this.#a.config()),G(t6(this.#a,this.#u,"PATCH",e,t))}delete(e){return eW("dataset",this.#a.config()),G(t6(this.#a,this.#u,"DELETE",e))}list(){return eW("dataset",this.#a.config()),G(tP(this.#a,this.#u,{uri:"/datasets",tag:null}))}}function t6(e,t,r,n,i){return eW("dataset",e.config()),eU(n),tP(e,t,{method:r,uri:`/datasets/${n}`,body:i,tag:null})}class t9{#a;#u;constructor(e,t){this.#a=e,this.#u=t}list(e){eW("projects",this.#a.config());let t=e?.includeMembers===!1?"/projects?includeMembers=false":"/projects";return tP(this.#a,this.#u,{uri:t})}getById(e){return eW("projects",this.#a.config()),tP(this.#a,this.#u,{uri:`/projects/${e}`})}}class t2{#a;#u;constructor(e,t){this.#a=e,this.#u=t}list(e){eW("projects",this.#a.config());let t=e?.includeMembers===!1?"/projects?includeMembers=false":"/projects";return G(tP(this.#a,this.#u,{uri:t}))}getById(e){return eW("projects",this.#a.config()),G(tP(this.#a,this.#u,{uri:`/projects/${e}`}))}}let t4=((e,t=21)=>{var r;let n,i;return r=t,i=-~(1.6*(n=(2<<Math.log(e.length-1)/Math.LN2)-1)*r/e.length),(t=r)=>{let s="";for(;;){let r=eR(i),o=0|i;for(;o--;)if((s+=e[r[o]&n]||"").length===t)return s}}})("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",8),t5=(e,t)=>t?(0,eC.getVersionId)(e,t):(0,eC.getDraftId)(e);function t8(e,{releaseId:t,publishedId:r,document:n}){if(r&&n._id){let e=t5(r,t);return((e,t)=>{if(t._id&&t._id!==e)throw Error(`The provided document ID (\`${t._id}
13\`) does not match the generated version ID (\`${e}\`)`)})(e,n),e}if(n._id){let r=(0,eC.isDraftId)(n._id),i=(0,eC.isVersionId)(n._id);if(!r&&!i)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 (\`${n._id}\`) that is a draft ID, but a release ID (\`${t}\`) was also provided.`);let i=(0,eC.getVersionFromId)(n._id);if(i!==t)throw Error(`\`${e}()\` was called with a document ID (\`${n._id}\`) that is a version ID, but the release ID (\`${t}\`) does not match the document's version ID (\`${i}\`).`)}return n._id}if(r)return t5(r,t);throw Error(`\`${e}()\` requires either a publishedId or a document with an \`_id\``)}let t7=(e,t)=>{let[r,n,i]=((e,t)=>{if("object"==typeof e&&null!==e&&("releaseId"in e||"metadata"in e)){let{releaseId:r=t4(),metadata:n={}}=e;return[r,n,t]}return[t4(),{},e]})(e,t);return{action:{actionType:"sanity.action.release.create",releaseId:r,metadata:{...n,releaseType:n.releaseType||"undecided"}},options:i}};class re{#a;#u;constructor(e,t){this.#a=e,this.#u=t}get({releaseId:e},t){return tm(this.#a,this.#u,`_.releases.${e}`,t)}create(e,t){let{action:r,options:n}=t7(e,t),{releaseId:i,metadata:s}=r;return tx(this.#a,this.#u,r,n).pipe((0,ec.map)(e=>({...e,releaseId:i,metadata:s})))}edit({releaseId:e,patch:t},r){return tx(this.#a,this.#u,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},r)}publish({releaseId:e},t){return tx(this.#a,this.#u,{actionType:"sanity.action.release.publish",releaseId:e},t)}archive({releaseId:e},t){return tx(this.#a,this.#u,{actionType:"sanity.action.release.archive",releaseId:e},t)}unarchive({releaseId:e},t){return tx(this.#a,this.#u,{actionType:"sanity.action.release.unarchive",releaseId:e},t)}schedule({releaseId:e,publishAt:t},r){return tx(this.#a,this.#u,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},r)}unschedule({releaseId:e},t){return tx(this.#a,this.#u,{actionType:"sanity.action.release.unschedule",releaseId:e},t)}delete({releaseId:e},t){return tx(this.#a,this.#u,{actionType:"sanity.action.release.delete",releaseId:e},t)}fetchDocuments({releaseId:e},t){return tb(this.#a,this.#u,e,t)}}class rt{#a;#u;constructor(e,t){this.#a=e,this.#u=t}get({releaseId:e},t){return G(tm(this.#a,this.#u,`_.releases.${e}`,t))}async create(e,t){let{action:r,options:n}=t7(e,t),{releaseId:i,metadata:s}=r;return{...await G(tx(this.#a,this.#u,r,n)),releaseId:i,metadata:s}}edit({releaseId:e,patch:t},r){return G(tx(this.#a,this.#u,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},r))}publish({releaseId:e},t){return G(tx(this.#a,this.#u,{actionType:"sanity.action.release.publish",releaseId:e},t))}archive({releaseId:e},t){return G(tx(this.#a,this.#u,{actionType:"sanity.action.release.archive",releaseId:e},t))}unarchive({releaseId:e},t){return G(tx(this.#a,this.#u,{actionType:"sanity.action.release.unarchive",releaseId:e},t))}schedule({releaseId:e,publishAt:t},r){return G(tx(this.#a,this.#u,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},r))}unschedule({releaseId:e},t){return G(tx(this.#a,this.#u,{actionType:"sanity.action.release.unschedule",releaseId:e},t))}delete({releaseId:e},t){return G(tx(this.#a,this.#u,{actionType:"sanity.action.release.delete",releaseId:e},t))}fetchDocuments({releaseId:e},t){return G(tb(this.#a,this.#u,e,t))}}class rr{#a;#u;constructor(e,t){this.#a=e,this.#u=t}getById(e){return tP(this.#a,this.#u,{uri:`/users/${e}`})}}class rn{#a;#u;constructor(e,t){this.#a=e,this.#u=t}getById(e){return G(tP(this.#a,this.#u,{uri:`/users/${e}`}))}}class ri{assets;datasets;live;projects;users;agent;releases;#c;#u;listen=tK;constructor(e,t=e3){this.config(t),this.#u=e,this.assets=new tH(this,this.#u),this.datasets=new t1(this,this.#u),this.live=new tZ(this),this.projects=new t9(this,this.#u),this.users=new rr(this,this.#u),this.agent={action:new tL(this,this.#u)},this.releases=new re(this,this.#u)}clone(){return new ri(this.#u,this.config())}config(e){if(void 0===e)return{...this.#c};if(this.#c&&!1===this.#c.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.#c=e2(e,this.#c||{}),this}withConfig(e){let t=this.config();return new ri(this.#u,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return tg(this,this.#u,this.#c.stega,e,t,r)}getDocument(e,t){return tm(this,this.#u,e,t)}getDocuments(e,t){return ty(this,this.#u,e,t)}create(e,t){return tT(this,this.#u,e,"create",t)}createIfNotExists(e,t){return tw(this,this.#u,e,t)}createOrReplace(e,t){return tv(this,this.#u,e,t)}createVersion({document:e,publishedId:t,releaseId:r,baseId:n,ifBaseRevisionId:i},s){if(!e)return tR(this,this.#u,t,n,r,i,s);let o=t8("createVersion",{document:e,publishedId:t,releaseId:r}),a={...e,_id:o},u=t||(0,eC.getPublishedId)(e._id);return tC(this,this.#u,a,u,s)}delete(e,t){return tq(this,this.#u,e,t)}discardVersion({releaseId:e,publishedId:t},r,n){let i=t5(t,e);return tE(this,this.#u,i,r,n)}replaceVersion({document:e,publishedId:t,releaseId:r},n){let i=t8("replaceVersion",{document:e,publishedId:t,releaseId:r}),s={...e,_id:i};return t$(this,this.#u,s,n)}unpublishVersion({releaseId:e,publishedId:t},r){let n=(0,eC.getVersionId)(t,e);return tO(this,this.#u,n,t,r)}mutate(e,t){return tI(this,this.#u,e,t)}patch(e,t){return new to(e,t,this)}transaction(e){return new th(e,this)}action(e,t){return tx(this,this.#u,e,t)}request(e){return tP(this,this.#u,e)}getUrl(e,t){return tM(this,e,t)}getDataUrl(e,t){return tF(this,e,t)}}class rs{assets;datasets;live;projects;users;agent;releases;observable;#c;#u;listen=tK;constructor(e,t=e3){this.config(t),this.#u=e,this.assets=new tB(this,this.#u),this.datasets=new t3(this,this.#u),this.live=new tZ(this),this.projects=new t2(this,this.#u),this.users=new rn(this,this.#u),this.agent={action:new tz(this,this.#u)}
13,this.releases=new rt(this,this.#u),this.observable=new ri(e,t)}clone(){return new rs(this.#u,this.config())}config(e){if(void 0===e)return{...this.#c};if(this.#c&&!1===this.#c.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.#c=e2(e,this.#c||{}),this}withConfig(e){let t=this.config();return new rs(this.#u,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return G(tg(this,this.#u,this.#c.stega,e,t,r))}getDocument(e,t){return G(tm(this,this.#u,e,t))}getDocuments(e,t){return G(ty(this,this.#u,e,t))}create(e,t){return G(tT(this,this.#u,e,"create",t))}createIfNotExists(e,t){return G(tw(this,this.#u,e,t))}createOrReplace(e,t){return G(tv(this,this.#u,e,t))}createVersion({document:e,publishedId:t,releaseId:r,baseId:n,ifBaseRevisionId:i},s){if(!e)return eh(tR(this,this.#u,t,n,r,i,s));let o=t8("createVersion",{document:e,publishedId:t,releaseId:r}),a={...e,_id:o},u=t||(0,eC.getPublishedId)(e._id);return eh(tC(this,this.#u,a,u,s))}delete(e,t){return G(tq(this,this.#u,e,t))}discardVersion({releaseId:e,publishedId:t},r,n){let i=t5(t,e);return G(tE(this,this.#u,i,r,n))}replaceVersion({document:e,publishedId:t,releaseId:r},n){let i=t8("replaceVersion",{document:e,publishedId:t,releaseId:r}),s={...e,_id:i};return eh(t$(this,this.#u,s,n))}unpublishVersion({releaseId:e,publishedId:t},r){let n=(0,eC.getVersionId)(t,e);return G(tO(this,this.#u,n,t,r))}mutate(e,t){return G(tI(this,this.#u,e,t))}patch(e,t){return new ta(e,t,this)}transaction(e){return new tl(e,this)}action(e,t){return G(tx(this,this.#u,e,t))}request(e){return G(tP(this,this.#u,e))}dataRequest(e,t,r){return G(tj(this,this.#u,e,t,r))}getUrl(e,t){return tM(this,e,t)}getDataUrl(e,t){return tF(this,e,t)}}let ro={requester:e_(t=[]),createClient:e=>{let r=e_(t,{ignoreWarnings:e.ignoreWarnings});return new rs((t,n)=>(n||r)({maxRedirects:0,maxRetries:e.maxRetries,retryDelay:e.retryDelay,...t}),e)}},ra=(ro.requester,ro.createClient),ru=ra({projectId:"cphrnle8",dataset:"production",useCdn:!0,perspective:"published",apiVersion:"2025-03-13",stega:{enabled:!1,studioUrl:i.default.env.SANITY_STUDIO_URL||""}}),rc=(0,s.default)(ru);function rl(e){return rc.image(e)}function rh({source:e,minHeight:t,alt:i,...s}){if(!e)return null;let o=rl(e.asset).url();return(0,r.jsx)(n.default,{...s,loader:({src:r,width:n,quality:i})=>n>1100?`${r}?w=${n}&q=${i||100}&fit=max&fm=webp`:`${r}?w=${n}&q=${i||100}&h=${t}&fit=crop&crop=focalpoint&fp-x=${e.hotspot?.x||.5}&fp-y=${e.hotspot?.y||.5}&fm=webp`,src:o,placeholder:"blur",fill:!0,alt:i,overrideSrc:o})}e.s(["urlForImage",()=>rl],951813),e.s(["default",()=>rh],422562)}]);
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.