PageSourceSearch

https://fkue.vercel.app/_next/static/chunks/7223-3fd9008e46f93b3b.js

js fkue.vercel.app collected 2026-10-03 06:57:06 UTC 55,401 bytes, 12 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7223],{1150:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let n=r(95155),i=r(12115),s=r(24437);function a(e){return{default:e&&"default"in e?e.default:e}}r(36552);let o={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},u=function(e){let t={...o,...e},r=(0,i.lazy)(()=>t.loader().then(a)),u=t.loading;function c(e){let a=u?(0,n.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,c=o?i.Suspense:i.Fragment,l=t.ssr?(0,n.jsxs)(n.Fragment,{children:[null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(c,{...o?{fallback:a}:{},children:l})}return c.displayName="LoadableComponent",c}},8567:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=r(17828)},17828:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,r(64054).createAsyncLocalStorage)()},20063:(e,t,r)=>{var n=r(47260);r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}}),r.o(n,"useServerInsertedHTML")&&r.d(t,{useServerInsertedHTML:function(){return n.useServerInsertedHTML}})},24437:(e,t,r)=>{function n(e){let{reason:t,children:r}=e;return r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return n}}),r(24553)},30926:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{callServer:function(){return n.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}});let n=r(41209),i=r(85153),s=r(77197)},31269:(e,t,r)=>{r.d(t,{default:()=>tB});var n=r(95155),i=r(48),s=r(14132),a=r(45037),o=r(78242),u=r(50384),c=r(85755),l=r(60732),h=r(86238),d=r(20981),p=r(34098),f=r(77133),g=r(61270),y=r(25259),m=r(40712),v=r(29279),b=r(29396),w=r(77241),q=r(32466),R=r(63704),$=r(28775),E=r(46990),I=r(6486),j=r(42764);let T="drafts.",S="versions.";function _(e){return e.startsWith(T)}function x(e){return e.startsWith(S)}function C(e){return x(e)?T+A(e):_(e)?e:T+e}function O(e,t){if("drafts"===t||"published"===t)throw Error('Version can not be "published" or "drafts"');return`${S}${t}.${A(e)}`}function P(e){if(!x(e))return;let[t,r,...n]=e.split(".");return r}function A(e){return x(e)?e.split(".").slice(2).join("."):_(e)?e.slice(T.length):e}var k=r(54152);let D=/\r\n|[\n\r\u2028\u2029]/;function M(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 L extends Error{response;statusCode=400;responseBody;details;constructor(e,t){let r=N(e,t);super(r.message),Object.assign(this,r)}}class V extends Error{response;statusCode=500;responseBody;details;constructor(e){let t=N(e);super(t.message),Object.assign(this,t)}}function N(e,t){var r,n,i;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,E.u4)(s))return a.message=W(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=W(e,s),a;if("type"in(n=o)&&"mutationError"===n.type&&"description"in n&&"string"==typeof n.description||"type"in(i=o)&&"actionError"===i.type&&"description"in i&&"string"==typeof i.description){let e=o.items||[],t=e.slice(0,5).map(e=>
1e.error?.description).filter(Boolean),r=t.length?`:
2- ${t.join(`
3- `)}`:"";return e.length>5&&(r+=`
4...and ${e.length-5} more`),a.message=`${o.description}${r}`,a.details=s.error,a}return U(o)?(a.message=z(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=W(e,s),a}function U(e){return(0,E.u4)(e)&&"queryParseError"===e.type&&"string"==typeof e.query&&"number"==typeof e.start&&"number"==typeof e.end}function z(e,t){let{query:r,start:n,end:i,description:s}=e;if(!r||typeof n>"u")return`GROQ query parse error: ${s}`;let a=t?`
5
6Tag: ${t}`:"";return`GROQ query parse error:
7${function(e,t,r){let n=e.split(D),{start:i,end:s,markerLines:a}=function(e,t){let r={...e.start},n={...r,...e.end},i=r.line??-1,s=r.column??0,a=n.line,o=n.column,u=Math.max(i-3,0),c=Math.min(t.length,a+3);-1===i&&(u=0),-1===a&&(c=t.length);let l=a-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,o];else{let n=t[r-e].length;h[r]=[0,n]}else h[r]=!0}else s===o?s?h[i]=[s,0]:h[i]=!0:h[i]=[s,o-s];return{start:u,end:c,markerLines:h}}({start:M(t.start,n),end:t.end?M(t.end,n):void 0},n),o=`${s}`.length;return e.split(D,s).slice(i,s).map((e,t)=>{let n=i+1+t,s=` ${` ${n}`.slice(-o)} |`,u=a[n],c=!a[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=`
8 `+s.replace(/\d/g," ")+" "+t+"^".repeat(n),c&&r&&(l+=" "+r)}return">"+s+(e.length>0?` ${e}`:"")+l}).join(`
9`)}(r,{start:n,end:i},s)}${a}`}function W(e,t){var r,n;let i="string"==typeof t?` (${n=100,(r=t).length>100?`${r.slice(0,n)}\u2026`:r})`:"",s=e.statusMessage?` ${e.statusMessage}`:"";return`${e.method}-request to ${e.url} resulted in HTTP ${e.statusCode}${s}${i}`}
9class H extends Error{projectId;addOriginUrl;constructor({projectId:e}){super("CorsOriginError"),this.name="CorsOriginError",this.projectId=e;let t=new URL(`https://sanity.io/manage/project/${e}/api`);if("u">typeof location){let{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 F={onResponse:(e,t)=>{if(e.statusCode>=500)throw new V(e);if(e.statusCode>=400)throw new L(e,t);return e}};function G(e,t={}){return(0,i.af)([(0,s.L5)({shouldRetry:B}),...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),(0,s.UX)(),(0,s.Yf)(),(0,s.qB)(),F,(0,s.sH)({implementation:a.c})])}function B(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"),a=e.response&&(429===e.response.statusCode||502===e.response.statusCode||503===e.response.statusCode);return(!!n||!!i)&&!!a||s.L5.shouldRetry(e,t,r)}function Y(e){return"https://www.sanity.io/help/"+e}let Q=["image","file"],J=["before","after","replace"],K=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")},X=(e,t)=>{if(null===t||"object"!=typeof t||Array.isArray(t))throw Error(`${e}() takes an object of properties`)},Z=(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`)},ee=(e,t)=>{if(!t._id)throw Error(`${e}() requires that the document contains an ID ("_id" property)`);Z(e,t._id)},et=(e,t)=>{if(!t._type)throw Error(`\`${e}()\` requires that the document contains a type (\`_type\` property)`);((e,t)=>
9{if("string"!=typeof t)throw Error(`\`${e}()\`: \`${t}\` is not a valid document type`)})(e,t._type)},er=e=>{if(!e.dataset)throw Error("`dataset` must be provided to perform queries");return e.dataset||""},en=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},ei=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()}`)}},es=(e,t)=>{if(t["~experimental_resource"])throw Error(`\`${e}\` does not support resource-based operations`)},ea=e=>(function(e){let t=!1,r;return(...n)=>(t||(r=e(...n),t=!0),r)})((...t)=>console.warn(e.join(" "),...t)),eo=ea(["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"]),eu=ea(["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."]),ec=ea(["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."]),el=ea(["The `previewDrafts` perspective has been renamed to  `drafts` and will be removed in a future API version"]),eh=ea(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${Y("js-client-browser-token")} for more information and how to hide this warning.`]),ed=ea(["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`."]),ep=ea(["Using the Sanity client without specifying an API version is deprecated.",`See ${Y("js-client-api-version")}`]),ef=(ea(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),ea(["You have called `createVersion()` with a defined `document`. The recommended approach is to provide a `baseId` and `releaseId` instead."])),eg={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},ey=["localhost","127.0.0.1","0.0.0.0"];function em(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 ev=(e,t)=>
9{let r,n={...t,...e,stega:{..."boolean"==typeof t.stega?{enabled:t.stega}:t.stega||eg.stega,..."boolean"==typeof e.stega?{enabled:e.stega}:e.stega||{}}};n.apiVersion||ep();let i={...eg,...n},s=i.useProjectHostname&&!i["~experimental_resource"];if(typeof Promise>"u"){let e=Y("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"]&&ei(i),"u">typeof i.perspective&&em(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 a="u">typeof window&&window.location&&window.location.hostname,o=a&&(r=window.location.hostname,-1!==ey.indexOf(r)),u=!!i.token;i.withCredentials&&u&&(ed(),i.withCredentials=!1),a&&o&&u&&!0!==i.ignoreBrowserTokenWarning?eh():typeof i.useCdn>"u"&&eu(),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&&K(i.dataset),"requestTagPrefix"in i&&(i.requestTagPrefix=i.requestTagPrefix?en(i.requestTagPrefix).replace(/\.+$/,""):void 0),i.apiVersion=`${i.apiVersion}`.replace(/^v/,""),i.isDefaultApi=i.apiHost===eg.apiHost,!0===i.useCdn&&i.withCredentials&&eo(),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],d=i.isDefaultApi?"apicdn.sanity.io":h;return s?(i.url=`${l}://${i.projectId}.${h}/v${i.apiVersion}`,i.cdnUrl=`${l}://${i.projectId}.${d}/v${i.apiVersion}
9`):(i.url=`${i.apiHost}/v${i.apiVersion}`,i.cdnUrl=i.url),i};class eb extends Error{name="ConnectionFailedError"}class ew extends Error{name="DisconnectError";reason;constructor(e,t,r={}){super(e,r),this.reason=t}}class eq extends Error{name="ChannelError";data;constructor(e,t){super(e),this.data=t}}class eR extends Error{name="MessageError";data;constructor(e,t,r={}){super(e,r),this.data=t}}class e$ extends Error{name="MessageParseError"}let eE=["channelError","disconnect"];function eI(e,t){return(0,o.v)(()=>{let t=e();return(0,u.A)(t)?t:(0,c.of)(t)}).pipe((0,l.Z)(e=>{var r,n;return r=e,n=t,new a.c(e=>{let t=n.includes("open"),i=n.includes("reconnect");function s(t){if("data"in t){let[r,n]=ej(t);e.error(r?new e$("Unable to parse EventSource error message",{cause:n}):new eR((n?.data).message,n));return}r.readyState===r.CLOSED?e.error(new eb("EventSource connection failed")):i&&e.next({type:"reconnect"})}function a(){e.next({type:"open"})}function o(t){let[n,i]=ej(t);if(n)return void e.error(new e$("Unable to parse EventSource message",{cause:n}));if("channelError"===t.type){let t=new URL(r.url).searchParams.get("tag");e.error(new eq(function(e,t){let r=e.error;return r?U(r)?z(r,t):r.description?r.description:"string"==typeof r?r:JSON.stringify(r,null,2):e.message||"Unknown listener error"}(i?.data,t),i.data));return}if("disconnect"===t.type)return void e.error(new ew(`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",a);let u=[...new Set([...eE,...n])].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 ej(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 eT(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(`
10`);throw Error(`Unknown selection - must be one of:
11
12${t}`)}class eS{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 X("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===J.indexOf(e)){let e=J.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),a=`${e}[${i}:${i<0&&s>=0?"":s}]`;return this.insert("replace",a,n||[])}ifRevisionId(e){return this.operations.ifRevisionID=e,this}serialize(){return{...eT(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(e,t,r=!0){return X(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 e_ extends eS{#e;constructor(e,t,r){super(e,t),this.#e=r}clone(){return new e_(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 ex extends eS{#e;constructor(e,t,r){super(e,t),this.#e=r}clone(){return new ex(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 eC={returnDocuments:!1};class eO{operations;trxId;constructor(e=[],t){this.operations=e,this.trxId=t}create(e){return X("create",e),this._add({create:e})}createIfNotExists(e){let t="createIfNotExists";return X(t,e),ee(t,e),this._add({[t]:e})}createOrReplace(e){let t="createOrReplace";return X(t,e),ee(t,e),this._add({[t]:e})}delete(e){return Z("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 eP extends eO{#e;constructor(e,t,r){super(e,r),this.#e=t}clone(){return new eP([...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},eC,e||{}))}patch(e,t){let r="function"==typeof t,n="string"!=typeof e&&e instanceof ex,i="object"==typeof e&&("query"in e||"id"in e);if(n)return this._add({patch:e.serialize()});if(r){let r=t(new ex(e,{},this.#e));if(!(r instanceof ex))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}if(i){let r=new ex(e,t||{},this.#e);return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}class eA extends eO{#e;constructor(e,t,r){super(e,r),this.#e=t}clone(){return new eA([...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},eC,e||{}))}patch(e,t){let r="function"==typeof t;if("string"!=typeof e&&e instanceof e_)return this._add({patch:e.serialize()});if(r){let r=t(new e_(e,{},this.#e));if(!(r instanceof e_))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}let ek=({query:e,params:t={},options:r={}})=>{let n=new URLSearchParams,{tag:i,includeMutations:s,returnQuery:a,...o}=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(o))t&&n.append(e,`${t}`);return!1===a&&n.append("returnQuery","false"),!1===s&&n.append("includeMutations","fal
12se"),`?${n}`},eD=e=>"response"===e.type,eM=e=>e.body;function eL(e,t,n,i,s={},a={}){let o="stega"in a?{...n||{},..."boolean"==typeof a.stega?{enabled:a.stega}:a.stega||{}}:n,u=o.enabled?(0,E.Q)(s):s,c=!1===a.filterResponse?e=>e:e=>e.result,{cache:l,next:d,...p}={useAbortSignal:"u">typeof a.signal,resultSourceMap:o.enabled?"withKeyArraySelector":a.resultSourceMap,...a,returnQuery:!1===a.filterResponse&&!1!==a.returnQuery},f=eX(e,t,"query",{query:i,params:u},"u">typeof l||"u">typeof d?{...p,fetch:{cache:l,next:d}}:p);return o.enabled?f.pipe((0,I.v)((0,h.H)(r.e(4156).then(r.bind(r,64156)).then(function(e){return e.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:e})=>e))),(0,R.T)(([e,t])=>{let r=t(e.result,e.resultSourceMap,o);return c({...e,result:r})})):f.pipe((0,R.T)(c))}function eV(e,t,r,n={}){let i={uri:e9(e,"doc",(()=>{if(!n.releaseId)return r;let e=P(r);if(!e){if(_(r))throw Error(`The document ID (\`${r}\`) is a draft, but \`options.releaseId\` is set as \`${n.releaseId}\``);return O(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,query:void 0!==n.includeAllVersions?{includeAllVersions:n.includeAllVersions}:void 0};return e2(e,t,i).pipe((0,j.p)(eD),(0,R.T)(e=>{let t=e.body.documents;return t?n.includeAllVersions?t:t[0]:n.includeAllVersions?[]:void 0}))}function eN(e,t,r,n={}){let i={uri:e9(e,"doc",r.join(",")),json:!0,tag:n.tag,signal:n.signal};return e2(e,t,i).pipe((0,j.p)(eD),(0,R.T)(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 eU(e,t,r,n={}){return eX(e,t,"query",{query:"*[sanity::partOfRelease($releaseId)]",params:{releaseId:r}},n)}function ez(e,t,r,n){return ee("createIfNotExists",r),eZ(e,t,r,"createIfNotExists",n)}function eW(e,t,r,n){return ee("createOrReplace",r),eZ(e,t,r,"createOrReplace",n)}function eH(e,t,r,n,i){return ee("createVersion",r),et("createVersion",r),ef(),eK(e,t,{actionType:"sanity.action.document.version.create",publishedId:n,document:r},i)}function eF(e,t,r,n,i,s,a){if(!n)throw Error("`createVersion()` requires `baseId` when no `document` is provided");if(!r)throw Error("`createVersion()` requires `publishedId` when `baseId` is provided");return Z("createVersion",n),Z("createVersion",r),eK(e,t,{actionType:"sanity.action.document.version.create",publishedId:r,baseId:n,versionId:i?O(r,i):C(r),ifBaseRevisionId:s},a)}function eG(e,t,r,n){return eX(e,t,"mutate",{mutations:[{delete:eT(r)}]},n)}function eB(e,t,r,n=!1,i){return eK(e,t,{actionType:"sanity.action.document.version.discard",versionId:r,purge:n},i)}function eY(e,t,r,n){return ee("replaceVersion",r),et("replaceVersion",r),eK(e,t,{actionType:"sanity.action.document.version.replace",document:r},n)}function eQ(e,t,r,n,i){return eK(e,t,{actionType:"sanity.action.document.version.unpublish",versionId:r,publishedId:n},i)}function eJ(e,t,r,n){let i;return eX(e,t,"mutate",{mutations:Array.isArray(i=r instanceof ex||r instanceof e_?{patch:r.serialize()}:r instanceof eP||r instanceof eA?r.serialize():r)?i:[i],transactionId:n&&n.transactionId||void 0},n)}function eK(e,t,r,n){let i=Array.isArray(r)?r:[r],s=n&&n.transactionId||void 0;return eX(e,t,"actions",{actions:i,transactionId:s,skipCrossDatasetReferenceValidation:n&&n.skipCrossDatasetReferenceValidation||void 0,dryRun:n&&n.dryRun||void 0},n)}function eX(e,t,r,n,i={}){let s="mutate"===r,a="actions"===r,o=s||a?"":ek(n),u=!s&&!a&&o.length<11264,c=u?o:"",l=i.returnFirst,{timeout:h,token:d,tag:p,headers:f,returnQuery:g,lastLiveEventId:y,cacheMode:m}=i,v={method:u?"GET":"POST",uri:e9(e,r,c),json:!0,body:u?void 0:n,query:s&&((e={})=>{let t,r;return{dryRun:e.dryRun,returnIds:!0,returnDocuments:(t=e.returnDocuments,r=!0,!1===t?void 0:typeof t>"u"?r:t),visibility:e.visibility||"sync",autoGenerateArrayKeys:e.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:e.skipCrossDatasetReferenceValidation}})(i),timeout:h,headers:f,token:d,tag:p,returnQuery:g,perspective:i.perspective,resultSourceMap:i.resultSourceMap,lastLiveEventId:Array.isArray(y)?y[0]:y,cacheMode:m,canUseCdn:"query"===r,signal:i.signal,fetch:i.fetch,useAbortSignal:i.useAbortSignal,useCdn:i.useCdn};return e2(e,t,v).pipe((0,j.p)(eD),(0,R.T)(eM),(0,R.T)(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 eZ(e,t,r,n,i={}){return eX(e,t,"mutate",{mutations:[{[n]:r}]},Object.assign({returnFirst:!0,returnDocuments:!0},i))}let e0=e=>void 0!==e.config().dataset&&void 0!==e.config().projectId||void 0!==e.config()["~experimental_resource"],e1=(e,t)=>e0(e)&&t.startsWith(e9(e,"query"));function e2(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/")||e1(e,i)||e0(e)&&i.startsWith(e9(e,"mutate"))||e0(e)&&i.startsWith(e9(e,"doc",""))||e0(e)&&i.startsWith(e9(e,"listen"))||e0(e)&&i.startsWith(e9(e,"history",""))):r.canUseCdn,u=(r.useCdn??s.useCdn)&&o,c=r.tag&&s.requestTagPrefix?[s.requestTagPrefix,r.tag].join("."):r.tag||s.requestTagPrefix;if(c&&null!==r.tag&&(r.query={tag:en(c),...r.query}),["GET","HEAD","POST"].indexOf(r.method||"GET")>=0&&e1(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&&el(),em(t),r.query={perspective:Array.isArray(t)?t.join(","):t,...r.query},(Array.isArray(t)&&t.length>0||"previewDrafts"===t||"drafts"===t)&&u&&(u=!1,ec())),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 l=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:e7(e,i,u)})),h=new a.c(e=>t(l,s.requester).subscribe(e));
12return r.signal?h.pipe((n=r.signal,e=>new a.c(t=>{let r=()=>t.error(function(e){if(e4)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()}}))):h}function e5(e,t,r){return e2(e,t,r).pipe((0,j.p)(e=>"response"===e.type),(0,R.T)(e=>e.body))}function e9(e,t,r){let n=e.config();if(n["~experimental_resource"]){ei(n);let e=e6(n),i=void 0!==r?`${t}/${r}`:t;return`${e}/${i}`.replace(/\/($|\?)/,"$1")}let i=er(n),s=`/${t}/${i}`;return`/data${void 0!==r?`${s}/${r}`:s}`.replace(/\/($|\?)/,"$1")}function e7(e,t,r=!1){let{url:n,cdnUrl:i}=e.config();return`${r?i:n}/${t.replace(/^\//,"")}`}let e4=!!globalThis.DOMException,e6=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 e8(e,t,r){let n=er(e.config());return e5(e,t,{method:"POST",uri:`/agent/action/generate/${n}`,body:r})}function e3(e,t,r){let n=er(e.config());return e5(e,t,{method:"POST",uri:`/agent/action/transform/${n}`,body:r})}function te(e,t,r){let n=er(e.config());return e5(e,t,{method:"POST",uri:`/agent/action/translate/${n}`,body:r})}class tt{#e;#t;constructor(e,t){this.#e=e,this.#t=t}generate(e){return e8(this.#e,this.#t,e)}transform(e){return e3(this.#e,this.#t,e)}translate(e){return te(this.#e,this.#t,e)}}class tr{#e;#t;constructor(e,t){this.#e=e,this.#t=t}generate(e){return(0,d.s)(e8(this.#e,this.#t,e))}transform(e){return(0,d.s)(e3(this.#e,this.#t,e))}translate(e){return(0,d.s)(te(this.#e,this.#t,e))}prompt(e){return(0,d.s)(function(e,t,r){let n=er(e.config());return e5(e,t,{method:"POST",uri:`/agent/action/prompt/${n}`,body:r})}(this.#e,this.#t,e))}patch(e){return(0,d.s)(function(e,t,r){let n=er(e.config());return e5(e,t,{method:"POST",uri:`/agent/action/patch/${n}`,body:r})}(this.#e,this.#t,e))}}class tn{#e;#t;constructor(e,t){this.#e=e,this.#t=t}upload(e,t,r){return ts(this.#e,this.#t,e,t,r)}}class ti{#e;#t;constructor(e,t){this.#e=e,this.#t=t}upload(e,t,r){let n=ts(this.#e,this.#t,e,t,r);return(0,d.s)(n.pipe((0,j.p)(e=>"response"===e.type),(0,R.T)(e=>e.body.document)))}}function ts(e,t,r,n,i={}){var s,a;if(-1===Q.indexOf(r))throw Error(`Invalid asset type: ${r}. Must be one of ${Q.join(", ")}`);let o=i.extract||void 0;o&&!o.length&&(o=["none"]);let u=e.config(),c=(s=i,a=n,!(typeof File>"u")&&a instanceof File?Object.assign({filename:!1===s.preserveFilename?void 0:a.name,contentType:a.type},s):s),{tag:l,label:h,title:d,description:p,creditLine:f,filename:g,source:y}=c,m={label:h,title:d,description:p,filename:g,meta:o,creditLine:f};return y&&(m.sourceId=y.id,m.sourceName=y.name,m.sourceUrl=y.url),e2(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=er(e);return`assets/${r}/${n}`}(u,r),headers:c.contentType?{"Content-Type":c.contentType}:{},query:m,body:n})}let ta=(0,o.v)(()=>r.e(8679).then(r.t.bind(r,88679,19))).pipe((0,R.T)(({default:e})=>e),(0,p.t)(1));function to(){return function(e){return e.pipe((0,f.W)((e,t)=>e instanceof eb?(0,g.x)((0,c.of)({type:"reconnect"}),(0,y.O)(1e3).pipe((0,l.Z)(()=>t))):(0,m.$)(()=>e)))}}let tu=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","tag"],tc={includeResult:!0};function tl(e,t,r={}){let{url:n,token:i,withCredentials:s,requestTagPrefix:a,headers:o}=this.config(),u=r.tag&&a?[a,r.tag].join("."):r.tag,l={...Object.keys(tc).concat(Object.keys(r)).reduce((e,t)=>
12(e[t]=typeof r[t]>"u"?tc[t]:r[t],e),{}),tag:u},h=ek({query:e,params:t,options:{tag:u,...tu.reduce((e,t)=>(typeof l[t]>"u"||(e[t]=l[t]),e),{})}}),d=`${n}${e9(this,"listen",h)}`;if(d.length>14800)return(0,m.$)(()=>Error("Query too large for listener"));let p=l.events?l.events:["mutation"],f={};return s&&(f.withCredentials=!0),(i||o)&&(f.headers={},i&&(f.headers.Authorization=`Bearer ${i}`),o&&Object.assign(f.headers,o)),eI(()=>(typeof EventSource>"u"||f.headers?ta:(0,c.of)(EventSource)).pipe((0,R.T)(e=>new e(d,f))),p).pipe(to(),(0,j.p)(e=>p.includes(e.type)),(0,R.T)(e=>({type:e.type,..."data"in e?e.data:{}})))}let th="2021-03-25";class td{#e;constructor(e){this.#e=e}events({includeDrafts:e=!1,tag:t}={}){var r,n,i,s;es("live",this.#e.config());let{projectId:o,apiVersion:u,token:h,withCredentials:d,requestTagPrefix:p,headers:g}=this.#e.config(),y=u.replace(/^v/,"");if("X"!==y&&y<th)throw Error(`The live events API requires API version ${th} or later. The current API version is ${y}. Please update your API version to use this feature.`);if(e&&!h&&!d)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 m=e9(this.#e,"live/events"),$=new URL(this.#e.getUrl(m,!1)),E=t&&p?[p,t].join("."):t;E&&$.searchParams.set("tag",E),e&&$.searchParams.set("includeDrafts","true");let I={};e&&d&&(I.withCredentials=!0),(e&&h||g)&&(I.headers={},e&&h&&(I.headers.Authorization=`Bearer ${h}`),g&&Object.assign(I.headers,g));let j=`${$.href}::${JSON.stringify(I)}`,T=tp.get(j);if(T)return T;let S=eI(()=>(typeof EventSource>"u"||I.headers?ta:(0,c.of)(EventSource)).pipe((0,R.T)(e=>new e($.href,I))),["message","restart","welcome","reconnect","goaway"]),_=(n=$,i={method:"OPTIONS",mode:"cors",credentials:I.withCredentials?"include":"omit",headers:I.headers},new a.c(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,f.W)(()=>{throw new H({projectId:o})})),x=S.pipe(to(),(0,l.Z)(e=>"reconnect"===e.type?_.pipe((0,l.Z)(()=>(0,c.of)(e))):(0,c.of)(e)),(0,f.W)(e=>_.pipe((0,l.Z)(()=>{throw e}))),(0,R.T)(e=>{if("message"===e.type){let{data:t,...r}=e;return{...r,tags:t.tags}}return e})).pipe((0,b.j)(()=>tp.delete(j)),(s="function"==typeof(r={predicate:e=>"welcome"===e.type})?{predicate:r,...void 0}:r,e=>{let t,r=!1,{predicate:n,...i}=s,o=e.pipe((0,v.M)(e=>{s.predicate(e)&&(r=!0,t=e)}),(0,b.j)(()=>{r=!1,t=void 0}),(0,w.u)(i)),u=new a.c(e=>{r&&e.next(t),e.complete()});return(0,q.h)(o,u)}));return tp.set(j,x),x}}let tp=new Map;class tf{#e;#t;constructor(e,t){this.#e=e,this.#t=t}create(e,t){return ty(this.#e,this.#t,"PUT",e,t)}edit(e,t){return ty(this.#e,this.#t,"PATCH",e,t)}delete(e){return ty(this.#e,this.#t,"DELETE",e)}list(){es("dataset",this.#e.config());let e=this.#e.config(),t=e.projectId,r="/datasets";return!1===e.useProjectHostname&&(r=`/projects/${t}/datasets`),e5(this.#e,this.#t,{uri:r,tag:null})}}class tg{#e;#t;constructor(e,t){this.#e=e,this.#t=t}create(e,t){return es("dataset",this.#e.config()),(0,d.s)(ty(this.#e,this.#t,"PUT",e,t))}edit(e,t){return es("dataset",this.#e.config()),(0,d.s)(ty(this.#e,this.#t,"PATCH",e,t))}delete(e){return es("dataset",this.#e.config()),(0,d.s)(ty(this.#e,this.#t,"DELETE",e))}list(){es("dataset",this.#e.config());let e=this.#e.config(),t=e.projectId,r="/datasets";return!1===e.useProjectHostname&&(r=`/projects/${t}/datasets`),(0,d.s)(e5(this.#e,this.#t,{uri:r,tag:null}))}}function ty(e,t,r,n,i){return es("dataset",e.config()),K(n),e5(e,t,{method:r,uri:`/datasets/${n}`,body:i,tag:null})}class tm{#e;#t;constructor(e,t){this.#e=e,this.#t=t}getPlaybackInfo(e,t={}){var r,n;let i=this.#e.config()["~experimental_resource"]?.id,{instanceId:s,library
12Id:a}=function(e){let t="object"==typeof e&&"_ref"in e?e._ref:e,r=tb.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),o=a||i;if(!o)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 u=(r=s,n=o,`/media-libraries/${n}/video/${r}/playback-info`),c=function(e){let t={};if(e.transformations){let{thumbnail:r,animated:n,storyboard:i}=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)),n&&(n.width&&(t.animatedWidth=n.width),n.height&&(t.animatedHeight=n.height),void 0!==n.start&&(t.animatedStart=n.start),void 0!==n.end&&(t.animatedEnd=n.end),n.fps&&(t.animatedFps=n.fps),n.format&&(t.animatedFormat=n.format)),i&&i.format&&(t.storyboardFormat=i.format)}return e.expiration&&(t.expiration=e.expiration),t}(t);return e5(this.#e,this.#t,{method:"GET",uri:u,query:c})}}class tv{#e;#t;constructor(e,t){this.#e=e,this.#t=t}getPlaybackInfo(e,t={}){return(0,d.s)(new tm(this.#e.observable,this.#t).getPlaybackInfo(e,t))}}let tb=/^media-library:(ml[^:]+):([^:]+)$/;class tw{#e;#t;constructor(e,t){this.#e=e,this.#t=t}list(e){let t={};return e?.includeMembers===!1&&(t.includeMembers="false"),e?.organizationId&&(t.organizationId=e.organizationId),e5(this.#e,this.#t,{uri:"/projects",query:t})}getById(e){return e5(this.#e,this.#t,{uri:`/projects/${e}`})}}class tq{#e;#t;constructor(e,t){this.#e=e,this.#t=t}list(e){let t={};return e?.includeMembers===!1&&(t.includeMembers="false"),e?.organizationId&&(t.organizationId=e.organizationId),(0,d.s)(e5(this.#e,this.#t,{uri:"/projects",query:t}))}getById(e){return(0,d.s)(e5(this.#e,this.#t,{uri:`/projects/${e}`}))}}let tR=(0,k.d_)("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",8),t$=(e,t)=>t?O(e,t):C(e);function tE(e,{releaseId:t,publishedId:r,document:n}){if(r&&n._id){let e=t$(r,t);return((e,t)=>{if(t._id&&t._id!==e)throw Error(`The provided document ID (\`${t._id}\`) does not match the generated version ID (\`${e}\`)`)})(e,n),e}if(n._id){let r=_(n._id),i=x(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=P(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 t$(r,t);throw Error(`\`${e}()\` requires either a publishedId or a document with an \`_id\``)}let tI=(e,t)=>{let[r,n,i]=((e,t)=>{if("object"==typeof e&&null!==e&&("releaseId"in e||"metadata"in e)){let{releaseId:r=tR(),metadata:n={}}=e;return[r,n,t]}return[tR(),{},e]})(e,t);return{action:{actionType:"sanity.action.release.create",releaseId:r,metadata:{...n,releaseType:n.releaseType||"undecided"}},options:i}};class tj{#e;#t;constructor(e,t){this.#e=e,this.#t=t}get({releaseId:e},t){return eV(this.#e,this.#t,`_.releases.${e}`,t)}create(e,t){let{action:r,options:n}=tI(e,t),{releaseId:i,metadata:s}=r;return eK(this.#e,this.#t,r,n).pipe((0,R.T)(e=>({...e,releaseId:i,metadata:s})))}edit({releaseId:e,patch:t},r){return eK(this.#e,this.#t,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},r)}publish({releaseId:e},t){return eK(this.#e,this.#t,{actionType:"sanity.action.release.publish",releaseId:e},t)}archive({releaseId:e},t){return eK(this.#e,this.#t,{actionType:"sanity.action.release.archive",releaseId:e},t)}unarchive({releaseId:e},t){return eK(this.#e,this.#t,{actionType:"sanity.action.release.unarchive",releaseId:e},t)}schedule({releaseId:e,publishAt:t},r){return eK(this.#e,this.#t,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},r)}unschedule({releaseId:e},t){return eK(this.#e,this.#t,{actionType:"sanity.action.release.unschedule",releaseId:e},t)}delete({releaseId:e},t){return eK(this.#e,this.#t,{actionType:"sanity.action.release.delete",releaseId:e},t)}fetchDocuments({releaseId:e},t){return eU(this.#e,this.#t,e,t)}}class tT{#e;#t;constructor(e,t){this.#e=e,this.#t=t}get({releaseId:e},t){return(0,d.s)(eV(this.#e,this.#t,`_.releases.${e}`,t))}async create(e,t){let{action:r,options:n}=tI(e,t),{releaseId:i,metadata:s}=r;return{...await (0,d.s)(eK(this.#e,this.#t,r,n)),releaseId:i,metadata:s}}edit({releaseId:e,patch:t},r){return(0,d.s)(eK(this.#e,this.#t,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},r))}publish({releaseId:e},t){return(0,d.s)(eK(this.#e,this.#t,{actionType:"sanity.action.release.publish",releaseId:e},t))}archive({releaseId:e},t){return(0,d.s)(eK(this.#e,this.#t,{actionType:"sanity.action.release.archive",releaseId:e},t))}unarchive({releaseId:e},t){return(0,d.s)(eK(this.#e,this.#t,{actionType:"sanity.action.release.unarchive",releaseId:e},t))}schedule({releaseId:e,publishAt:t},r){return(0,d.s)(eK(this.#e,this.#t,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},r))}unschedule({releaseId:e},t){return(0,d.s)(eK(this.#e,this.#t,{actionType:"sanity.action.release.unschedule",releaseId:e},t))}delete({releaseId:e},t){return(0,d.s)(eK(this.#e,this.#t,{actionType:"sanity.action.release.delete",releaseId:e},t))}fetchDocuments({releaseId:e},t){return(0,d.s)(eU(this.#e,this.#t,e,t))}}class tS{#e;#t;constructor(e,t){this.#e=e,this.#t=t}getById(e){return e5(this.#e,this.#t,{uri:`/users/${e}`})}}class t_{#e;#t;constructor(e,t){this.#e=e,this.#t=t}getById(e){return(0,d.s)(e5(this.#e,this.#t,{uri:`/users/${e}`}))}}class tx{assets;datasets;live;mediaLibrary;projects;users;agent;releases;#r;#t;listen=tl;constructor(e,t=eg){this.config(t),this.#t=e,this.assets=new tn(this,this.#t),this.datasets=new tf(this,this.#t),this.live=new td(this),this.mediaLibrary={video:new tm(this,this.#t)},this.projects=new tw(this,this.#t),this.users=new tS(this,this.#t),this.agent={action:new tt(this,this.#t)},this.releases=new tj(this,this.#t)}clone(){return new tx(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=ev(e,this.#r||{}),this}withConfig(e){let t=this.config();return new tx(this.#t,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return eL(this,this.#t,this.#r.stega,e,t,r)}getDocument(e,t){if(t?.includeAllVersions===!0)return eV(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 eV(this,this.#t,e,r)}getDocuments(e,t){return eN(this,this.#t,e,t)}create(e,t){return eZ(this,this.#t,e,"create",t)}createIfNotExists(e,t){return ez(this,this.#t,e,t)}createOrReplace(e,t){return eW(this,this.#t,e,t)}createVersion({document:e,publishedId:t,releaseId:r,baseId:n,ifBaseRevisionId:i},s){if(!e)return eF(this,this.#t,t,n,r,i,s);let a=tE("createVersion",{document:e,publishedId:t,releaseId:r}),o={...e,_id:a},u=t||A(e._id);return eH(this,this.#t,o,u,s)}delete(e,t){return eG(this,this.#t,e,t)}discardVersion({releaseId:e,publishedId:t},r,n){let i=t$(t,e);return eB(this,this.#t,i,r,n)}replaceVersion({document:e,publishedId:t,releaseId:r},n){let i=tE("replaceVersion",{document:e,publishedId:t,releaseId:r}),s={...e,_id:i};return eY(this,this.#t,s,n)}unpublishVersion({releaseId:e,publishedId:t},r){let n=O(t,e);return eQ(this,this.#t,n,t,r)}mutate(e,t){return eJ(this,this.#t,e,t)}patch(e,t){return new e_(e,t,this)}transaction(e){return new eA(e,this)}action(e,t){return eK(this,this.#t,e,t)}request(e){return e5(this,this.#t,e)}getUrl(e,t){return e7(this,e,t)}getDataUrl(e,t){return e9(this,e,t)}}class tC{assets;datasets;live;mediaLibrary;projects;users;agent;releases;observable;#r;#t;listen=tl;constructor(e,t=eg){this.config(t),this.#t=e,this.assets=new ti(this,this.#t),this.datasets=new tg(this,this.#t),this.live=new td(this),this.mediaLibrary={video:new tv(this,this.#t)},this.projects=new tq(this,this.#t),this.users=new t_(this,this.#t),this.agent={action:new tr(this,this.#t)},this.releases=new tT(this,this.#t),this.observable=new tx(e,t)}clone(){return new tC(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=ev(e,this.#r||{}),this}withConfig(e){let t=this.config();return new tC(this.#t,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return(0,d.s)(eL(this,this.#t,this.#r.stega,e,t,r))}getDocument(e,t){if(t?.includeAllVersions===!0)return(0,d.s)(eV(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,d.s)(eV(this,this.#t,e,r))}getDocuments(e,t){return(0,d.s)(eN(this,this.#t,e,t))}create(e,t){return(0,d.s)(eZ(this,this.#t,e,"create",t))}createIfNotExists(e,t){return(0,d.s)(ez(this,this.#t,e,t))}createOrReplace(e,t){return(0,d.s)(eW(this,this.#t,e,t))}createVersion({document:e,publishedId:t,releaseId:r,baseId:n,ifBaseRevisionId:i},s){if(!e)return(0,$._)(eF(this,this.#t,t,n,r,i,s));let a=tE("createVersion",{document:e,publishedId:t,releaseId:r}),o={...e,_id:a},u=t||A(e._id);return(0,$._)(eH(this,this.#t,o,u,s))}delete(e,t){return(0,d.s)(eG(this,this.#t,e,t))}discardVersion({releaseId:e,publishedId:t},r,n){let i=t$(t,e);return(0,d.s)(eB(this,this.#t,i,r,n))}replaceVersion({document:e,publishedId:t,releaseId:r},n){let i=tE("replaceVersion",{document:e,publishedId:t,releaseId:r}),s={...e,_id:i};return(0,$._)(eY(this,this.#t,s,n))}unpublishVersion({releaseId:e,publishedId:t},r){let n=O(t,e);return(0,d.s)(eQ(this,this.#t,n,t,r))}mutate(e,t){return(0,d.s)(eJ(this,this.#t,e,t))}patch(e,t){return new ex(e,t,this)}transaction(e){return new eP(e,this)}action(e,t){return(0,d.s)(eK(this,this.#t,e,t))}request(e){return(0,d.s)(e5(this,this.#t,e))}dataRequest(e,t,r){return(0,d.s)(eX(this,this.#t,e,t,r))}getUrl(e,t){return e7(this,e,t)}getDataUrl(e,t){return e9(this,e,t)}}let tO=function(e,t){return{requester:G(e),createClient:r=>{let n=G(e,{ignoreWarnings:r.ignoreWarnings});return new t((e,t)=>
12(t||n)({maxRedirects:0,maxRetries:r.maxRetries,retryDelay:r.retryDelay,lineage:r.lineage,...e}),r)}}}([],tC),tP=(tO.requester,tO.createClient);var tA=r(78275),tk=r(77525),tD=r(67909),tM=r(20063),tL=r(12115),tV=r(88106),tN=r(99652);let tU=(0,tD.default)(()=>r.e(9099).then(r.bind(r,39099)),{loadableGenerated:{webpack:()=>[require.resolveWeak("../_chunks-es/PresentationComlink.js")]},ssr:!1}),tz=(0,tD.default)(()=>r.e(1598).then(r.bind(r,91598)),{loadableGenerated:{webpack:()=>[require.resolveWeak("../_chunks-es/RefreshOnMount.js")]},ssr:!1}),tW=(0,tD.default)(()=>r.e(1539).then(r.bind(r,91539)),{loadableGenerated:{webpack:()=>[require.resolveWeak("../_chunks-es/RefreshOnFocus.js")]},ssr:!1}),tH=(0,tD.default)(()=>r.e(7234).then(r.bind(r,17234)),{loadableGenerated:{webpack:()=>[require.resolveWeak("../_chunks-es/RefreshOnReconnect.js")]},ssr:!1});function tF(e){var t;e instanceof H?console.warn("Sanity Live is unable to connect to the Sanity API as the current origin - ".concat(window.origin," - is not in the list of allowed CORS origins for this Sanity Project."),e.addOriginUrl&&"Add it here:",null==(t=e.addOriginUrl)?void 0:t.toString()):console.error(e)}function tG(e,t){t?console.warn("Sanity Live connection closed, switching to long polling set to a interval of",t/1e3,"seconds and the server gave this reason:",e.reason):console.error("Sanity Live connection closed, automatic revalidation is disabled, the server gave this reason:",e.reason)}function tB(e){let{projectId:t,dataset:r,apiHost:i,apiVersion:s,useProjectHostname:a,token:o,requestTagPrefix:u,draftModeEnabled:c,draftModePerspective:l,refreshOnMount:h=!1,refreshOnFocus:d=!c&&(typeof window>"u"||window.self===window.top),refreshOnReconnect:p=!0,intervalOnGoAway:f=3e4,requestTag:g="next-loader.live",onError:y=tF,onGoAway:m=tG,revalidateSyncTags:v=tA.Q}=e,b=(0,tL.useMemo)(()=>tP({projectId:t,dataset:r,apiHost:i,apiVersion:s,useProjectHostname:a,ignoreBrowserTokenWarning:!0,token:o,useCdn:!1,requestTagPrefix:u}),[i,s,r,t,u,o,a]),[w,q]=(0,tL.useState)(!1),R=(0,tM.useRouter)(),$=(0,tV.J)(e=>{"message"===e.type?v(e.tags):"restart"===e.type||"reconnect"===e.type?R.refresh():"goaway"===e.type&&(m(e,f),q(f))});(0,tL.useEffect)(()=>{let e=b.live.events({includeDrafts:!!o,tag:g}).subscribe({next:$,error:e=>{y(e)}});return()=>e.unsubscribe()},[b.live,y,g,o]),(0,tL.useEffect)(()=>{c&&l?(0,tN.NL)(l):(0,tN.NL)("unknown")},[c,l]);let[E,I]=(0,tL.useState)(!1);(0,tL.useEffect)(()=>{if(!(0,tk.vY)()){if(c&&o)return void(0,tN.kN)("live");if(c)return void(0,tN.kN)("static");(0,tN.kN)("unknown")}},[c,o]),(0,tL.useEffect)(()=>{if(!(0,tk.vY)())return;let e=new AbortController,t=setTimeout(()=>(0,tN.kN)("live"),3e3);return window.addEventListener("message",r=>{let{data:n}=r;n&&"object"==typeof n&&"domain"in n&&"sanity/channels"===n.domain&&"from"in n&&"presentation"===n.from&&(clearTimeout(t),(0,tN.kN)((0,tk.v$)()?"presentation-window":"presentation-iframe"),I(!0),e.abort())},{signal:e.signal}),()=>{clearTimeout(t),e.abort()}},[]);let j=(0,tL.useRef)(void 0);return(0,tL.useEffect)(()=>{if(c)return clearTimeout(j.current),()=>{j.current=setTimeout(()=>{console.warn("Sanity Live: Draft mode was enabled, but is now being disabled")})}},[c]),(0,tL.useEffect)(()=>{if(!w)return;let e=setInterval(()=>R.refresh(),w);return()=>clearInterval(e)},[w,R]),(0,n.jsxs)(n.Fragment,{children:[c&&E&&(0,n.jsx)(tU,{projectId:t,dataset:r,draftModeEnabled:c,draftModePerspective:l}),!c&&h&&(0,n.jsx)(tz,{}),!c&&d&&(0,n.jsx)(tW,{}),!c&&p&&(0,n.jsx)(tH,{})]})}tB.displayName="SanityLive"},36552:(e,t,r)=>{function n(e){let{moduleIds:t}=e;return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return n}}),r(95155),r(47650),r(8567),r(77278)},45082:(e,t,r)=>{r.d(t,{default:()=>s});var n=r(95155);let i=(0,r(67909).default)(()=>r.e(4742).then(r.bind(r,64742)),{loadableGenerated:{webpack:()=>[require.resolveWeak("../_chunks-es/SanityLiveStream.js")]},ssr:!1});function s(e){return(0,n.jsx)(i,{...e})}},46990:(e,t,r)=>{function n(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}r.d(t,{Q:()=>u,u4:()=>n});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},s={0:8203,1:8204,2:8205,3:65279};[,,,,].fill(String.fromCodePoint(s[0])).join(""),Object.fromEntries(Object.entries(s).map(e=>e.reverse())),Object.fromEntries(Object.entries(i).map(e=>e.reverse()));var a=`${Object.values(i).map(e=>`\\u{${e.toString(16)}}`).join("")}`,o=RegExp(`[${a}]{4,}`,"gu");function u(e){var t,r;return e&&JSON.parse({cleaned:(t=JSON.stringify(e)).replace(o,""),encoded:(null==(r=t.match(o)
12)?void 0:r[0])||""}.cleaned)}},64054:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bindSnapshot:function(){return a},createAsyncLocalStorage:function(){return s},createSnapshot:function(){return o}});let r=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let i="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function s(){return i?new i:new n}function a(e){return i?i.bind(e):n.bind(e)}function o(){return i?i.snapshot():function(e,...t){return e(...t)}}},67909:(e,t,r)=>{r.d(t,{default:()=>i.a});var n=r(86278),i=r.n(n)},77525:(e,t,r)=>{r.d(t,{Fk:()=>c,jF:()=>u,v$:()=>l,vY:()=>h});var n=r(77767);let i={"handshake/syn":n.Tx,"handshake/syn-ack":n.Rr,"handshake/ack":n.IM,"channel/response":n._K,"channel/heartbeat":n.vd,"channel/disconnect":n.FS,"overlay/focus":"visual-editing/focus","overlay/navigate":"visual-editing/navigate","overlay/toggle":"visual-editing/toggle","presentation/toggleOverlay":"presentation/toggle-overlay"},s={[n.Tx]:"handshake/syn",[n.Rr]:"handshake/syn-ack",[n.IM]:"handshake/ack",[n._K]:"channel/response",[n.vd]:"channel/heartbeat",[n.FS]:"channel/disconnect","visual-editing/focus":"overlay/focus","visual-editing/navigate":"overlay/navigate","visual-editing/toggle":"overlay/toggle","presentation/toggle-overlay":"presentation/toggleOverlay"},a=e=>{let{data:t}=e;return t&&"object"==typeof t&&"domain"in t&&"type"in t&&"from"in t&&"to"in t&&("sanity/channels"===t.domain&&(t.domain=n.V2),"overlays"===t.to&&(t.to="visual-editing"),"overlays"===t.from&&(t.from="visual-editing"),t.channelId=t.connectionId,delete t.connectionId,t.type=i[t.type]??t.type),e},o=({context:e},t)=>{let{sources:r,targetOrigin:i}=e,a=(e=>{let{channelId:t,...r}=e,i={...r,connectionId:t};return i.domain===n.V2&&(i.domain="sanity/channels"),"visual-editing"===i.to&&(i.to="overlays"),"visual-editing"===i.from&&(i.from="overlays"),i.type=s[i.type]??i.type,"channel/response"===i.type&&i.responseTo&&!i.data&&(i.data={responseTo:i.responseTo}),("handshake/syn"===i.type||"handshake/syn-ack"===i.type||"handshake/ack"===i.type)&&(i.data={id:i.connectionId}),i})(t.message);r.forEach(e=>{e.postMessage(a,{targetOrigin:i})})},u=()=>({listen:(0,n.CC)(a),requestMachine:(0,n.tP)().provide({actions:{"send message":o}})});function c(){return window.self!==window.top}function l(){return!!window.opener}function h(){return c()||l()}},86278:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(28140)._(r(1150));function i(e,t){var r;let i={};"function"==typeof e&&(i.loader=e);let s={...i,...t};return(0,n.default)({...s,modules:null==(r=s.loadableGenerated)?void 0:r.modules})}("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)},98061:(e,t,r)=>{r.d(t,{default:()=>a});var n=r(95155),i=r(12115);let s=(0,i.lazy)(()=>Promise.all([r.e(6654),r.e(6678),r.e(9910),r.e(4460),r.e(9073),r.e(4833)]).then(r.bind(r,39073)));function a(e){return(0,n.jsx)(i.Suspense,{fallback:null,children:(0,n.jsx)(s,{...e})})}},99652:(e,t,r)=>{r.d(t,{El:()=>l,Hi:()=>u,NL:()=>s,kN:()=>o,lc:()=>h,sq:()=>c});let n=new Set,i="checking";function s(e){if(i!==e)for(let t of(i=e,n))t()}let a=new Set;function o(e){for(let e of a)e()}let u=new Set,c=null;function l(e){for(let t of(c=e,u))t()}function h(e,t){for(let e of u)e()}}}]);

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.