1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,173502,e=>{"use strict";e.s(["t",0,function(e){return"object"==typeof e&&!!e&&!Array.isArray(e)}])},719476,20935,546382,137727,18344,e=>{"use strict";let t;var r=e.i(173502);function n(e){if("function"==typeof AbortSignal.any)return AbortSignal.any(e);let t=new AbortController;for(let r of e)if(r.aborted)return t.abort(r.reason),t.signal;let r=()=>{for(let n of(t.abort(e.find(e=>e.aborted)?.reason),e))n.removeEventListener("abort",r)};for(let t of e)t.addEventListener("abort",r);return t.signal}var o=class extends Error{constructor(e){let t=e.url.length>400?e.url.slice(0,399)+"â¦":e.url;super(`${e.method}-request to ${t} resulted in HTTP ${e.status} ${e.statusText}`),this.name="HttpError",this.url=e.url,this.method=e.method,this.status=e.status,this.statusText=e.statusText,this.headers=e.headers,this.body=e.body,this.response=e.response}},i=class extends Error{constructor(e){let t=e.url.length>400?e.url.slice(0,399)+"â¦":e.url;super(`Request timed out after ${e.timeoutMs}ms waiting for response headers: ${e.method} ${t}`),this.name="TimeoutError",this.url=e.url,this.method=e.method,this.timeoutMs=e.timeoutMs,this.phase=e.phase,this.code="ETIMEDOUT"}};function s(e,r,n,o,i,s){let u,a;return{status:e,statusText:r,headers:n,url:i,redirected:s,body:o,text:()=>u??=(t??=new TextDecoder).decode(o),json(){return(a??={value:JSON.parse(this.text())}).value},bytes:()=>o}}function u(e){let t=e?.fetch,r=e?.base,o=e?.httpErrors,u=e?.timeout,m=e?.credentials,g=e?.middleware??[],_=[],w=[];for(let e of g)"object"==typeof e?_.push(e):w.push(e);async function S(e,t){var r,o,s;let l,f,{totalMs:p,headersMs:d,attachSignal:h}="number"==typeof(r=void 0===t.timeout?u:t.timeout)||!1===r?{totalMs:a(r),headersMs:void 0,attachSignal:!0}:{totalMs:r?.total===void 0?12e4:a(r.total),headersMs:a(r?.headers),attachSignal:r?.signal!==!1},{url:y,init:b,clearTotalTimer:v}=function(e,t,r){let o=e.url;if(e.query){let t=e.query instanceof URLSearchParams?e.query.entries():Object.entries(e.query),r=new URLSearchParams;for(let[e,n]of t)void 0!==n&&r.append(e,`${n}`);let n=r.toString();if(n){let e=o.indexOf("#"),t=-1===e?o:o.slice(0,e),r=-1===e?"":o.slice(e);o=`${t}${t.includes("?")?"&":"?"}${n}${r}`}}let i=new Headers(e.headers),s={};if(e.method&&(s.method=e.method),e.method||void 0===e.body||null===e.body||(s.method="POST"),void 0!==e.body&&null!==e.body)if("string"==typeof e.body)s.body=e.body;else if(function(e){if("object"!=typeof e||!e||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}(e.body)||Array.isArray(e.body))s.body=JSON.stringify(e.body),i.has("content-type")||i.set("content-type","application/json");else{var u;if((u=e.body)instanceof Blob||u instanceof ArrayBuffer||u instanceof ReadableStream||ArrayBuffer.isView(u)||u instanceof FormData||u instanceof URLSearchParams)s.body=e.body;else throw TypeError(`Unsupported body type: ${typeof e.body}`)}s.headers=i;let a=e.signal,l;if(void 0!==t){let e=new AbortController,r=setTimeout(()=>e.abort(new DOMException("The operation was aborted due to timeout","TimeoutError")),t);c(r),l=()=>clearTimeout(r),a=a?n([a,e.signal]):e.signal}a&&(s.signal=a);let f=e.credentials??r;return void 0!==f&&(s.credentials=f),e.redirect&&(s.redirect=e.redirect),{url:o,init:s,clearTotalTimer:l}}(t,h?p:void 0,m),g=b.method??"GET",_=h||void 0===p?void 0:(o=p,s=new DOMException("The operation was aborted due to timeout","TimeoutError"),(f=new Promise((e,t)=>{c(l=setTimeout(()=>t(s),o))})).catch(()=>{}),{deadline:f,clear:()=>clearTimeout(l)}),w=_?.deadline,S=()=>{v?.(),_?.clear()};if(void 0===d&&void 0===w)try{return{response:await e(y,b),url:y,method:g,totalDeadline:w,clearDeadline:S}}catch(e){throw S(),e}let E=void 0===w?[]:[w],x,O;if(void 0!==d){let e=new i({url:y,method:g,timeoutMs:d,phase:"headers"});O=h?new AbortController:void 0,E.push(new Promise((t,r)=>{x=setTimeout(()=>{r(e),O?.abort(e)},d)}))}let T=O&&b.signal?n([b.signal,O.signal]):O?.signal??b.signal,$;try{return $=Promise.resolve(e(y,O?{...b,signal:T}:b)),{response:await Promise.race([$,...E]),url:y,method:g,totalDeadline:w,clearDeadline:S}}catch(e){throw $?.then(e=>
1e.body?.cancel()).catch(()=>{}),S(),e}finally{clearTimeout(x)}}async function E(e){let{response:r,url:n,method:i,totalDeadline:s,clearDeadline:u}=await S(e.fetch??t??globalThis.fetch,e),a=e.httpErrors??o??!0;try{return await l(p(r,a,n,i),s)}finally{u()}}let x=d(E,w);async function O(e){let t=h(e,_),r=y(await x(t),t,_);try{return b(r,JSON.parse(r.text()))}catch(t){throw TypeError(`Failed to parse JSON response from ${e.url}: ${t instanceof Error?t.message:t}`,{cause:t})}}async function T(e){let t=h(e,_),r=y(await x(t),t,_);return b(r,r.text())}async function $(e){let r=h(e,_),n;async function i(e){let{response:r,url:i,method:u,totalDeadline:a,clearDeadline:c}=await S(e.fetch??t??globalThis.fetch,e),f=e.httpErrors??o??!0;if(f&&r.status>=400)try{return await l(p(r,f,i,u),a)}finally{c()}return void 0!==a&&c(),n=r,s(r.status,r.statusText,r.headers,new Uint8Array,r.url,r.redirected)}if(v(i,"getItStreamed"),await d(i,w)(r),!n)throw Error("Stream response was not captured");let u=n.body??new ReadableStream({start(e){e.close()}});return b(n,u)}async function A(t){var n,o;let i,s,u="string"==typeof t?{url:t}:t,a=u.url;r&&!/^https?:\/\//.test(a)&&(a=r.replace(/\/$/,"")+"/"+a.replace(/^\//,""));let c={...u,url:a,headers:(n=e?.headers,o=u.headers,i=new Headers(n?f(n):void 0),o&&new Headers(f(o)).forEach((e,t)=>{i.set(t,e)}),s={},i.forEach((e,t)=>{s[t]=e}),s)};switch(c.as??e?.as){case"json":return await O(c);case"text":return await T(c);case"stream":return await $(c);default:{let e=h(c,_);return y(await x(e),e,_)}}}return v(S,"performFetch"),v(E,"getItBuffered"),v($,"requestStream"),v(O,"requestJson"),v(T,"requestText"),v(A,"request"),A}function a(e){if(!(void 0===e||!1===e||e<=0))return e}function c(e){"object"==typeof e&&e&&"unref"in e&&"function"==typeof e.unref&&e.unref()}async function l(e,t){if(void 0===t)return e;try{return await Promise.race([e,t])}catch(t){throw e.catch(()=>{}),t}}function f(e){if(e instanceof Headers||Array.isArray(e))return e;let t={};for(let[r,n]of Object.entries(e))void 0!==n&&(t[r]=n);return t}async function p(e,t,r,n){let i=new Uint8Array(await e.arrayBuffer()),u=s(e.status,e.statusText,e.headers,i,e.url,e.redirected);if(t&&e.status>=400){let t=new o({url:r,method:n,status:e.status,statusText:e.statusText,headers:e.headers,body:u.text(),response:u});throw"captureStackTrace"in Error&&Error.captureStackTrace(t,p),t}return u}function d(e,t){let r=e;for(let e=t.length-1;e>=0;e--){let n=t[e],o=r;r=e=>n(e,o)}return r}function h(e,t){let r=e;for(let e of t)e.beforeRequest&&(r=e.beforeRequest(r));return r}function y(e,t,r){let n=e;for(let e of r)e.afterResponse&&(n=e.afterResponse(n,t));return n}function b(e,t){return{status:e.status,statusText:e.statusText,headers:e.headers,url:e.url,redirected:e.redirected,body:t}}function v(e,t){Object.defineProperty(e,"name",{value:t})}function m(e){if(!g(e)||"HttpError"!==e.name||"string"!=typeof e.message||"string"!=typeof e.url||"string"!=typeof e.method||"number"!=typeof e.status||"string"!=typeof e.statusText||!_(e.headers)||!("body"in e)||!g(e.response))return!1;let t=e.response;return t.status===e.status&&"string"==typeof t.statusText&&_(t.headers)&&"body"in t&&(void 0===t.url||"string"==typeof t.url)&&(void 0===t.redirected||"boolean"==typeof t.redirected)}function g(e){return"object"==typeof e&&!!e}function _(e){return g(e)&&"function"==typeof e.get}function w(e){let t=e?.maxRetries??5,r=e?.retryDelay??S,n=e?.shouldRetry??E;return async function(e,o){let i="number"==typeof e.maxRetries?e.maxRetries:t,s;for(let t=0;t<=i;t++)try{return await o(e)}catch(o){if(s=o,t>=i||!n(o,t,e))throw o;await function(e,t){return new Promise((r,n)=>{if(t?.aborted)return void n(t.reason);let o=setTimeout(r,e);t?.addEventListener("abort",()=>{clearTimeout(o),n(t.reason)},{once:!0})})}(r(t),e.signal)}throw s}}function S(e){return 100*2**e+100*Math.random()}function E(e,t,r){let n=(r.method??"GET").toUpperCase();return("GET"===n||"HEAD"===n)&&(!(e instanceof Error)||!("name"in e)||"HttpError"!==e.name)&&function(e){if(!(e instanceof Error))return!1;let t=O(e)??O(e.cause);return t?x.has(t):"TimeoutError"!==e.name&&"AbortError"!==e.name&&("retryable"in e&&"boolean"==typeof e.retryable?e.retryable:e instanceof TypeError)}(e)}e.s(["i",0,o,"n",0,function(e){return!!g(e)&&"TimeoutError"===e.name&&"string"==typeof e.message&&(void 0===e.code||"number"==typeof e.code||"ETIMEDOUT"===e.code&&"string"==typeof e.url&&"string"==typeof e.method&&"number"==typeof e.timeoutMs&&"headers"===e.phase)},"r",0,u,"t",0,m],20935),e.s(["createRequester",0,u],546382),e.s(["anySignal",0,n],137727);let x=new Set(["ECONNRESET","ECONNREFUSED","ETIMEDOUT","EPIPE","ENOTFOUND","ENETDOWN","EHOSTUNREACH","EAI_AGAIN","UND_ERR_CONNECT_TIMEOUT","UND_ERR_SOCKET"]);function O(e){if(e instanceof Error)return"code"in e&&"string"==typeof e.code?e.code:void 0}e.s(["isRetryableRequest",0,E,"retry",0,w],18344);var T=e.i(516165),$=e.i(187636);let A=/\r\n|[\n\r\u2028\u2029]/;function I(e,t){let r=0;for(let n=0;n<t.length;n++){let o=t[n].length+1;if(r+o>e)return{line:n+1,column:e-r};r+=o}return{line:t.length,column:t[t.length-1]?.length??0}}function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t,r){var n;return(n=function(e,t){if("object"!=P(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=P(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==P(n)?n:n+"")in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C(e,t,r){var n;let o;return{statusCode:e.status,statusMessage:e.statusText||null,headers:(n=e.headers,o={}
1,n.forEach((e,t)=>{o[t]=e}),o),body:e.body,url:e.url||t,method:r}}var R=class extends Error{constructor(e,t){let r=U(e,t);super(r.message),j(this,"response",void 0),j(this,"statusCode",400),j(this,"responseBody",void 0),j(this,"traceId",void 0),j(this,"details",void 0),Object.assign(this,r)}},k=class extends Error{constructor(e){let t=U(e);super(t.message),j(this,"response",void 0),j(this,"statusCode",500),j(this,"responseBody",void 0),j(this,"traceId",void 0),j(this,"details",void 0),Object.assign(this,t)}};function U(e,t){var n,o,i;let s=e.body,u={response:e,statusCode:e.statusCode,responseBody:(n=s,-1===(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")?n:JSON.stringify(n,null,2)),traceId:function(e){let t=e?.headers?.traceparent;if(t)return t.split("-")[1]}(e),message:"",details:void 0};if(!(0,r.t)(s))return u.message=`${N(e,s)}${q(u.traceId)}`,u;let a=s.error;if("string"==typeof a&&"string"==typeof s.message)return u.message=`${a} - ${s.message}${q(u.traceId)}`,u;if("object"!=typeof a||!a)return u.message="string"==typeof a?`${a}${q(u.traceId)}`:"string"==typeof s.message?`${s.message}${q(u.traceId)}`:`${N(e,s)}${q(u.traceId)}`,u;if("type"in(o=a)&&"mutationError"===o.type&&"description"in o&&"string"==typeof o.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?`: 2- ${t.join("\n- ")}`:"";return e.length>5&&(r+=` 3...and ${e.length-5} more`),u.message=`${a.description}${q(u.traceId)}${r}`,u.details=s.error,u}return F(a)?(u.message=M(a,t,u.traceId),u.details=s.error):"description"in a&&"string"==typeof a.description?(u.message=`${a.description}${q(u.traceId)}`,u.details=a):u.message=`${N(e,s)}${q(u.traceId)}`,u}function F(e){return(0,r.t)(e)&&"queryParseError"===e.type&&"string"==typeof e.query&&"number"==typeof e.start&&"number"==typeof e.end}function M(e,t,r){let{query:n,start:o,end:i,description:s}=e,u=r?` 4(traceId: ${r})`:"";if(!n||void 0===o)return`GROQ query parse error: ${s}${u}`;let a=t?` 5 6Tag: ${t}`:"";return`GROQ query parse error: 7${function(e,t,r){let n=e.split(A),{start:o,end:i,markerLines:s}=function(e,t){let r={...e.start},n={...r,...e.end},o=r.line??-1,i=r.column??0,s=n.line,u=n.column,a=Math.max(o-3,0),c=Math.min(t.length,s+3);-1===o&&(a=0),-1===s&&(c=t.length);let l=s-o,f={};if(l)for(let e=0;e<=l;e++){let r=e+o;f[r]=!i||(0===e?[i,t[r-1].length-i+1]:e===l?[0,u]:[0,t[r-e].length])}else f[o]=i===u?!i||[i,0]:[i,u-i];return{start:a,end:c,markerLines:f}}({start:I(t.start,n),end:t.end?I(t.end,n):void 0},n),u=`${i}`.length;return e.split(A,i).slice(o,i).map((e,t)=>{let n=o+1+t,i=` ${` ${n}`.slice(-u)} |`,a=s[n],c=!s[n+1];if(!a)return` ${i}${e.length>0?` ${e}`:""}`;let l="";if(Array.isArray(a)){let t=e.slice(0,Math.max(a[0]-1,0)).replace(/[^\t]/g," "),n=a[1]||1;l=["\n ",i.replace(/\d/g," ")," ",t,"^".repeat(n)].join(""),c&&r&&(l+=" "+r)}return[">",i,e.length>0?` ${e}`:"",l].join("")}).join("\n")}(n,{start:o,end:i},s)}${a}${u}`}function N(e,t){var r;let n="string"==typeof t?` (${(r=t).length>100?`${r.slice(0,100)}â¦`:r})`:"",o=e.statusMessage?` ${e.statusMessage}`:"";return`${e.method}-request to ${e.url} resulted in HTTP ${e.statusCode}${o}${n}`}function q(e){return e?` (traceId: ${e})`:""}var D=class extends Error{constructor({projectId:e,credentials:t}={}){if(super("CorsOriginError"),j(this,"projectId",void 0),j(this,"addOriginUrl",void 0),this.name="CorsOriginError",this.projectId=e,e&&"u">typeof location){let r=new URL(`https://sanity.io/manage/project/${e}/api`),{origin:n}=location;r.searchParams.set("cors","add"),r.searchParams.set("origin",n),t&&r.searchParams.set("credentials",""),this.addOriginUrl=r,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${r}`}else this.message=e?`The current origin is not allowed to connect to the Live Content API. Change your configuration here: https://sanity.io/manage/project/${e}/api`:"The current origin is not allowed to connect to the Live Content API."}};async function L(e,t){var r,n;let o,i=t.url,s=(t.method??"GET").toUpperCase(),u;try{u=await e(t)}
7catch(e){if(m(e)){let r=B("string"==typeof e.body?e.body:"",e.headers),n=C({status:e.status,statusText:e.statusText,headers:e.headers,body:r,url:e.response.url??e.url},i,s),o=function(e){if(!e)return;if(e instanceof URLSearchParams)return e.get("tag")??void 0;let t=e.tag;return"string"==typeof t?t:void 0}(t.query);throw n.statusCode>=500?new k(n):new R(n,o)}throw e}return{type:"response",body:B((r=u).text(),r.headers),statusCode:u.status,statusMessage:u.statusText||null,headers:(n=u.headers,o={},n.forEach((e,t)=>{o[t]=e}),o),url:u.url||i,method:s}}function B(e,t){let r=(t.get("content-type")??"").toLowerCase();if(e){if(r.includes("application/json"))try{return JSON.parse(e)}catch{}return e}}function H(e,t,r){if(m(e)){let t=(r.method??"GET")==="GET"||"HEAD"===r.method,n=(r.url??"").includes("/data/query"),o=e.status;return!!((t||n)&&(429===o||502===o||503===o))}return E(e,t,r)}e.s(["a",0,k,"c",0,function(e){if(!(0,r.t)(e))return!1;let t=e.response;return!("number"!=typeof e.statusCode||"string"!=typeof e.message||!(0,r.t)(t)||void 0===t.body||"string"!=typeof t.url||"string"!=typeof t.method||"object"!=typeof t.headers||"number"!=typeof t.statusCode)},"i",0,D,"l",0,F,"n",0,B,"o",0,M,"r",0,R,"s",0,C,"t",0,function(e){var t;let r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=u({...e.fetch?{fetch:e.fetch}:{},headers:e.headers,httpErrors:!0,middleware:[w({shouldRetry:H,maxRetries:i.maxRetries??5,...i.retryDelay?{retryDelay:i.retryDelay}:{}}),...e.middleware,(t,r)=>{let n=t.meta?.fetchInit;if("object"!=typeof n||!n)return r(t);let o=t.fetch??e.fetch??globalThis.fetch;return r({...t,fetch:(e,t)=>o(e,{...n,...t})})},(t=i,r={},o=e=>void 0!==t.ignoreWarnings&&(Array.isArray(t.ignoreWarnings)?t.ignoreWarnings:[t.ignoreWarnings]).some(t=>"string"==typeof t?e.includes(t):t.test(e)),{afterResponse(e){let t=e.headers.get("x-sanity-warning");if(!t)return e;for(let e of t.split(",").map(e=>e.trim()))!e||r[e]||o(e)||(r[e]=!0,console.warn(e));return e}})]}),a=e=>{if("string"!=typeof e.url)throw TypeError("Request options must include a `url`");return L(s,e)};return{promise:a,observable:e=>new T.Observable(t=>{let r=new AbortController,o=e.signal,i=o?n([o,r.signal]):r.signal,s=(0,$.from)(a({...e,signal:i})).subscribe(t);return()=>{s.unsubscribe(),r.abort()}})}},"u",0,j],719476)},859950,988131,e=>{"use strict";var t=Object.defineProperty,r=(e,r)=>{let n={};for(var o in e)t(n,o,{get:e[o],enumerable:!0});return r||t(n,Symbol.toStringTag,{value:"Module"}),n};e.s(["t",0,r],988131);var n=e.i(173502),o=r({fromString:()=>d,get:()=>f,isIndexSegment:()=>a,isIndexTuple:()=>l,isKeySegment:()=>c,reKeySegment:()=>s,toString:()=>p});let i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/_key\s*==\s*['"](.*)['"]/,u=/^\d*:\d*$/;function a(e){return"number"==typeof e||"string"==typeof e&&/^\[\d+\]$/.test(e)}function c(e){return"string"==typeof e?s.test(e.trim()):"object"==typeof e&&"_key"in e}function l(e){if("string"==typeof e&&u.test(e))return!0;if(!Array.isArray(e)||2!==e.length)return!1;let[t,r]=e;return("number"==typeof t||""===t)&&("number"==typeof r||""===r)}function f(e,t,r){let n="string"==typeof t?d(t):t;if(!Array.isArray(n))throw Error("Path must be an array or a string");let o=e;for(let e=0;e<n.length;e++){let t=n[e];if(a(t)){if(!Array.isArray(o))return r;o=o[t]}if(c(t)){if(!Array.isArray(o))return r;o=o.find(e=>e._key===t._key)}if("string"==typeof t&&(o="object"==typeof o&&o?o[t]:void 0),void 0===o)return r}return o}function p(e){if(!Array.isArray(e))throw Error("Path is not an array");return e.reduce((e,t,r)=>{let n=typeof t;if("number"===n)return`${e}[${t}]`;if("string"===n)return`${e}${0===r?"":"."}${t}`;if(c(t)&&t._key)return`${e}[_key=="${t._key}"]`;if(Array.isArray(t)){let[r,n]=t;return`${e}[${r}:${n}]`}throw Error(`Unsupported path segment \`${JSON.stringify(t)}\``)},"")}function d(e){if("string"!=typeof e)throw Error("Path is not a string");let t=e.match(i);if(!t)throw Error("Invalid path string");return t.map(h)}function h(e){return a(e)?Number(e.replace(/[^\d]/g,"")):c(e)?{_key:e.match(s)[1]}:l(e)?function(e){let[t,r]=e.split(":").map(e=>""===e?e:Number(e));return[t,r]}(e):e}let y="drafts",b="versions",v=`${y}.`,m=`${b}.`;function g(e){return e.startsWith(v)}function _(e){return e.startsWith(m)}function w(e){return!g(e)&&!_(e)}function S(e){if(!_(e))return;let[t,r,...n]=e.split(".");return r}function E(e){if(_(e))return e.split(".").slice(2).join(".");if(g(e))return e.slice(v.length);if(w(e))return e;throw Error(`Unable to resolve a published id from "${e}"`)}let x={"\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","'":"\\'","\\":"\\\\"},O={"\\f":"\f","\\n":"\n","\\r":"\r","\\t":" ","\\'":"'","\\\\":"\\"};function T(e){return`$${e.map(e=>"string"==typeof e?`['${e.replace(/[\f\n\r\t'\\]/g,e=>x[e])}']`:"number"==typeof e?`[${e}
7]`:""===e._key?`[${e._index}]`:`[?(@._key=='${e._key.replace(/['\\]/g,e=>x[e])}')]`).join("")}`}function $(e){let t=[],r=/\['(.*?)'\]|\[(\d+)\]|\[\?\(@\._key=='(.*?)'\)\]/g,n;for(;null!==(n=r.exec(e));){if(void 0!==n[1]){let e=n[1].replace(/\\(\\|f|n|r|t|')/g,e=>O[e]);t.push(e);continue}if(void 0!==n[2]){t.push(parseInt(n[2],10));continue}if(void 0!==n[3]){let e=n[3].replace(/\\(\\')/g,e=>O[e]);t.push({_key:e,_index:-1});continue}}return t}function A(e){return e.map(e=>{if("string"==typeof e||"number"==typeof e)return e;if(""!==e._key)return{_key:e._key};if(-1!==e._index)return e._index;throw Error(`invalid segment:${JSON.stringify(e)}`)})}function I(e){return e.map(e=>{if("string"==typeof e||"number"==typeof e)return e;if(-1!==e._index)return e._index;throw Error(`invalid segment:${JSON.stringify(e)}`)})}function P(e,t){if(!t?.mappings)return;let r=T(I(e));if(void 0!==t.mappings[r])return{mapping:t.mappings[r],matchedPath:r,pathSuffix:""};let n=I(e).map(e=>"string"==typeof e?`['${e.replace(/[\f\n\r\t'\\]/g,e=>x[e])}']`:"number"==typeof e?`[${e}]`:""===e._key?`[${e._index}]`:`[?(@._key=='${e._key.replace(/['\\]/g,e=>x[e])}')]`);for(let e=n.length-1;e>=0;e--){let o=`$${n.slice(0,e).join("")}`,i=t.mappings[o];if(i)return{mapping:i,matchedPath:o,pathSuffix:r.substring(o.length)}}}function j(e){let t="string"==typeof e?e:e.baseUrl;return"/"!==t&&(t=t.replace(/\/$/,"")),"string"==typeof e?{baseUrl:t}:{...e,baseUrl:t}}e.s(["S",0,p,"_",0,w,"a",0,P,"b",0,s,"c",0,$,"d",0,b,"f",0,function(e){return _(e)?v+E(e):g(e)?e:v+e},"g",0,g,"h",0,function(e,t){if("drafts"===t||"published"===t)throw Error('Version can not be "published" or "drafts"');return`${m}${t}.${E(e)}`},"i",0,function e(t,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(null!==t&&Array.isArray(t))return t.map((t,i)=>{if((0,n.t)(t)){let n=t._key;if("string"==typeof n)return e(t,r,o.concat({_key:n,_index:i}))}return e(t,r,o.concat(i))});if((0,n.t)(t)){if("block"===t._type||"span"===t._type){let n={...t};return"block"===t._type?n.children=e(t.children,r,o.concat("children")):"span"===t._type&&(n.text=e(t.text,r,o.concat("text"))),n}return Object.fromEntries(Object.entries(t).map(t=>{let[n,i]=t;return[n,e(i,r,o.concat(n))]}))}return r(t,o)},"l",0,function(e){return("string"==typeof e?d(e):e).map(e=>{var t;if("string"==typeof e||"number"==typeof e)return e;if(Array.isArray(e))throw Error(`IndexTuple segments aren't supported:${JSON.stringify(e)}`);if("object"==typeof(t=e)&&"_key"in t&&"_index"in t)return e;if(e._key)return{_key:e._key,_index:-1};throw Error(`invalid segment:${JSON.stringify(e)}`)})},"m",0,S,"n",0,j,"o",0,T,"p",0,E,"r",0,function(e){let{baseUrl:t,workspace:r="default",tool:n="default",id:o,type:i,path:s,projectId:u,dataset:a}=e;if(!t)throw Error("baseUrl is required");if(!s)throw Error("path is required");if(!o)throw Error("id is required");if("/"!==t&&t.endsWith("/"))throw Error("baseUrl must not end with a slash");let c="default"===r?void 0:r,l="default"===n?void 0:n,f=E(o),d=Array.isArray(s)?p(A(s)):s,h=new URLSearchParams({baseUrl:t,id:f,type:i,path:d});if(c&&h.set("workspace",c),l&&h.set("tool",l),u&&h.set("projectId",u),a&&h.set("dataset",a),w(o))h.set("perspective","published");else if(_(o)){let e=S(o);h.set("perspective",e)}let y=["/"===t?"":t];c&&y.push(c);let b=["mode=presentation",`id=${f}`,`type=${i}`,`path=${encodeURIComponent(d)}`];return l&&b.push(`tool=${l}`),y.push("intent","edit",`${b.join(";")}?${h}`),y.join("/")},"s",0,A,"t",0,function(e){let{resultSourceMap:t,resultPath:r}=e,{mapping:n,pathSuffix:o}=P(r,t)||{};if(!n||"literal"===n.source.type||"unknown"===n.source.type)return;let i=t.documents[n.source.document],s=t.paths[n.source.path];if(i&&s){let{baseUrl:t,workspace:r,tool:n}=j("function"==typeof e.studioUrl?e.studioUrl(i):e.studioUrl);if(!t)return;let{_id:u,_type:a,_projectId:c,_dataset:l}=i;return{baseUrl:t,workspace:r,tool:n,id:u,type:a,path:$(s+o),projectId:c,dataset:l}}},"u",0,y,"v",0,_,"x",0,o,"y",0,f],859950)},567468,e=>{"use strict";var t=e.i(859950);e.s(["getDraftId",()=>t.f])},694547,717913,706453,474699,e=>{"use strict";var t=e.i(859950);e.s(["getVersionFromId",()=>t.m],694547),e.s(["getVersionId",()=>t.h],717913),e.s(["isDraftId",()=>t.g],706453),e.s(["isVersionId",()=>t.v],474699)},134921,e=>{"use strict";var t=e.i(859950);e.s(["getPublishedId",()=>t.p])},516165,949918,907844,337902,758357,450363,558869,521879,266338,448971,913072,e=>{"use strict";var t=e.i(824627),r=e.i(827540);function n(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}e.s(["createErrorClass",0,n],949918);var o=n(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function i(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}e.s(["arrRemove",0,i],907844);var s=function(){var e;function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,n,i,s,u,a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var l=(0,t.__values)(a),f=l.next();!f.done;f=l.next())f.value.remove(this)}catch(t){e={error:t}}finally{try{f&&!f.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}else a.remove(this);var p=this.initialTeardown;
7if((0,r.isFunction)(p))try{p()}catch(e){u=e instanceof o?e.errors:[e]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var h=(0,t.__values)(d),y=h.next();!y.done;y=h.next()){var b=y.value;try{c(b)}catch(e){u=null!=u?u:[],e instanceof o?u=(0,t.__spreadArray)((0,t.__spreadArray)([],(0,t.__read)(u)),(0,t.__read)(e.errors)):u.push(e)}}}catch(e){i={error:e}}finally{try{y&&!y.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}}if(u)throw new o(u)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)c(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&i(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&i(t,e),e instanceof n&&e._removeParent(this)},(e=new n).closed=!0,n.EMPTY=e,n}(),u=s.EMPTY;function a(e){return e instanceof s||e&&"closed"in e&&(0,r.isFunction)(e.remove)&&(0,r.isFunction)(e.add)&&(0,r.isFunction)(e.unsubscribe)}function c(e){(0,r.isFunction)(e)?e():e.unsubscribe()}e.s(["EMPTY_SUBSCRIPTION",0,u,"Subscription",0,s,"isSubscription",0,a],337902);var l=void 0,f={setTimeout:function(e,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var i=f.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,(0,t.__spreadArray)([e,r],(0,t.__read)(n))):setTimeout.apply(void 0,(0,t.__spreadArray)([e,r],(0,t.__read)(n)))},clearTimeout:function(e){var t=f.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function p(e){f.setTimeout(function(){!1;throw e})}function d(){}e.s(["reportUnhandledError",0,p],758357),e.s(["noop",0,d],450363);var h=y("C",void 0,void 0);function y(e,t,r){return{kind:e,value:t,error:r}}var b=null;function v(e){var t,r,n,o;1;e()}function m(e){}e.s(["captureError",0,m,"errorContext",0,v],558869);var g=function(e){function r(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,a(t)&&t.add(r)):r.destination=T,r}return(0,t.__extends)(r,e),r.create=function(e,t,r){return new E(e,t,r)},r.prototype.next=function(e){this.isStopped?O(y("N",e,void 0),this):this._next(e)},r.prototype.error=function(e){this.isStopped?O(y("E",void 0,e),this):(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped?O(h,this):(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(s),_=Function.prototype.bind;function w(e,t){return _.call(e,t)}var S=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){x(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){x(e)}else x(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){x(e)}},e}(),E=function(e){function n(t,n,o){var i,s,u=e.call(this)||this;return(0,r.isFunction)(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=o?o:void 0}:i=t,u.destination=new S(i),u}return(0,t.__extends)(n,e),n}(g);function x(e){p(e)}function O(e,t){}var T={closed:!0,next:d,error:function(e){throw e},complete:d};e.s(["SafeSubscriber",0,E,"Subscriber",0,g],521879);var $="function"==typeof Symbol&&Symbol.observable||"@@observable";function A(e){return e}function I(e){return 0===e.length?A:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}e.s(["observable",0,$],266338),e.s(["identity",0,A],448971),e.s(["pipe",0,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return I(e)},"pipeFromArray",0,I],913072);var P=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,n){var o=this,i=!function(e){return e&&e instanceof g||e&&(0,r.isFunction)(e.next)&&(0,r.isFunction)(e.error)&&(0,r.isFunction)(e.complete)&&a(e)}(e)?new E(e,t,n):e;return v(function(){var e=o.operator,t=o.source;i.add(e?e.call(i,t):t?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=j(t))(function(t,n){var o=new E({next:function(t){try{e(t)}catch(e){n(e),o.unsubscribe()}},error:n,complete:t});r.subscribe(o)})},e.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},e.prototype[$]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return I(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=j(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function j(e){var t;return null!=(t=null!=e?e:l)?t:Promise}e.s(["Observable",0,P],516165)},791413,e=>{"use strict";var t=e.i(824627),r=e.i(516165),n=e.i(337902),o=(0,e.i(949918).createErrorClass)(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),i=e.i(907844),s=e.i(558869),u=function(e){function u(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,t.__extends)(u,e),u.prototype.lift=function(e){var t=new a(this,this);return t.operator=e,t},u.prototype._throwIfClosed=function(){if(this.closed)throw new o},u.prototype.next=function(e){var r=this;(0,s.errorContext)(function(){var n,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var i=(0,t.__values)(r.currentObservers),s=i.next();!s.done;s=i.next())s.value.next(e)}catch(e){n={error:e}}
7finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}}})},u.prototype.error=function(e){var t=this;(0,s.errorContext)(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},u.prototype.complete=function(){var e=this;(0,s.errorContext)(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},u.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(u.prototype,"observed",{get:function(){var e;return(null==(e=this.observers)?void 0:e.length)>0},enumerable:!1,configurable:!0}),u.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},u.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},u.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,o=this.isStopped,s=this.observers;return r||o?n.EMPTY_SUBSCRIPTION:(this.currentObservers=null,s.push(e),new n.Subscription(function(){t.currentObservers=null,(0,i.arrRemove)(s,e)}))},u.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},u.prototype.asObservable=function(){var e=new r.Observable;return e.source=this,e},u.create=function(e,t){return new a(e,t)},u}(r.Observable),a=function(e){function r(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return(0,t.__extends)(r,e),r.prototype.next=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.next)||r.call(t,e)},r.prototype.error=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.error)||r.call(t,e)},r.prototype.complete=function(){var e,t;null==(t=null==(e=this.destination)?void 0:e.complete)||t.call(e)},r.prototype._subscribe=function(e){var t,r;return null!=(r=null==(t=this.source)?void 0:t.subscribe(e))?r:n.EMPTY_SUBSCRIPTION},r}(u);e.s(["Subject",0,u],791413)},159862,e=>{"use strict";var t=e.i(516165),r=e.i(633482);e.s(["defer",0,function(e){return new t.Observable(function(t){(0,r.innerFrom)(e()).subscribe(t)})}])},780908,e=>{"use strict";var t=new(e.i(516165)).Observable(function(e){return e.complete()});e.s(["EMPTY",0,t])},187636,602435,633482,168,799798,792139,765919,e=>{"use strict";var t=e.i(824627),r=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};e.s(["isArrayLike",0,r],602435);var n=e.i(827540);function o(e){return(0,n.isFunction)(null==e?void 0:e.then)}var i=e.i(516165),s=e.i(266338);function u(e){return(0,n.isFunction)(e[s.observable])}function a(e){return Symbol.asyncIterator&&(0,n.isFunction)(null==e?void 0:e[Symbol.asyncIterator])}function c(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var l="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function f(e){return(0,n.isFunction)(null==e?void 0:e[l])}function p(e){return(0,t.__asyncGenerator)(this,arguments,function(){var r,n,o;return(0,t.__generator)(this,function(i){switch(i.label){case 0:r=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,(0,t.__await)(r.read())];case 3:if(o=(n=i.sent()).value,!n.done)return[3,5];return[4,(0,t.__await)(void 0)];case 4:return[2,i.sent()];case 5:return[4,(0,t.__await)(o)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function d(e){return(0,n.isFunction)(null==e?void 0:e.getReader)}var h=e.i(758357);function y(e){if(e instanceof i.Observable)return e;if(null!=e){var l,y,v,m;if(u(e)){return l=e,new i.Observable(function(e){var t=l[s.observable]();if((0,n.isFunction)(t.subscribe))return t.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if(r(e)){return y=e,new i.Observable(function(e){for(var t=0;t<y.length&&!e.closed;t++)e.next(y[t]);e.complete()})}if(o(e)){return v=e,new i.Observable(function(e){v.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,h.reportUnhandledError)})}if(a(e))return b(e);if(f(e)){return m=e,new i.Observable(function(e){var r,n;try{for(var o=(0,t.__values)(m),i=o.next();!i.done;i=o.next()){var s=i.value;if(e.next(s),e.closed)return}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}e.complete()})}if(d(e))return b(p(e))}throw c(e)}function b(e){return new i.Observable(function(r){(function(e,r){var n,o,i,s;return(0,t.__awaiter)(this,void 0,void 0,function(){var u;return(0,t.__generator)(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),n=(0,t.__asyncValues)(e),a.label=1;case 1:return[4,n.next()];case 2:if((o=a.sent()).done)return[3,4];if(u=o.value,r.next(u),r.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:a.sent()},[3,11];case 6:if(a.trys.push([6,,9,10]),!(o&&!o.done&&(s=n.return)))return[3,8];return[4,s.call(n)];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];
7case 10:return[7];case 11:return r.complete(),[2]}})})})(e,r).catch(function(e){return r.error(e)})})}function v(e,t,r,n,o){void 0===n&&(n=0),void 0===o&&(o=!1);var i=t.schedule(function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(i),!o)return i}e.s(["innerFrom",0,y],633482),e.s(["executeSchedule",0,v],168);var m=e.i(866312),g=e.i(7560);function _(e,t){return void 0===t&&(t=0),(0,m.operate)(function(r,n){r.subscribe((0,g.createOperatorSubscriber)(n,function(r){return v(n,e,function(){return n.next(r)},t)},function(){return v(n,e,function(){return n.complete()},t)},function(r){return v(n,e,function(){return n.error(r)},t)}))})}function w(e,t){return void 0===t&&(t=0),(0,m.operate)(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function S(e,t){if(!e)throw Error("Iterable cannot be null");return new i.Observable(function(r){v(r,t,function(){var n=e[Symbol.asyncIterator]();v(r,t,function(){n.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}function E(e,t){if(null!=e){if(u(e))return y(e).pipe(w(t),_(t));if(r(e))return new i.Observable(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})});if(o(e))return y(e).pipe(w(t),_(t));if(a(e))return S(e,t);if(f(e))return new i.Observable(function(r){var o;return v(r,t,function(){o=e[l](),v(r,t,function(){var e,t,n;try{t=(e=o.next()).value,n=e.done}catch(e){r.error(e);return}n?r.complete():r.next(t)},0,!0)}),function(){return(0,n.isFunction)(null==o?void 0:o.return)&&o.return()}});if(d(e))return S(p(e),t)}throw c(e)}e.s(["observeOn",0,_],799798),e.s(["subscribeOn",0,w],792139),e.s(["scheduled",0,E],765919),e.s(["from",0,function(e,t){return t?E(e,t):y(e)}],187636)},178480,e=>{"use strict";var t=e.i(544287),r=e.i(633482),n=e.i(780908),o=e.i(282519),i=e.i(187636);e.s(["merge",0,function(){for(var e=[],s=0;s<arguments.length;s++)e[s]=arguments[s];var u=(0,o.popScheduler)(e),a=(0,o.popNumber)(e,1/0);return e.length?1===e.length?(0,r.innerFrom)(e[0]):(0,t.mergeAll)(a)((0,i.from)(e,u)):n.EMPTY}])},7560,e=>{"use strict";var t=e.i(824627),r=function(e){function r(t,r,n,o,i,s){var u=e.call(this,t)||this;return u.onFinalize=i,u.shouldUnsubscribe=s,u._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,u._error=o?function(e){try{o(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,u}return(0,t.__extends)(r,e),r.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null==(t=this.onFinalize)||t.call(this)}},r}(e.i(521879).Subscriber);e.s(["OperatorSubscriber",0,r,"createOperatorSubscriber",0,function(e,t,n,o,i){return new r(e,t,n,o,i)}])},80205,e=>{"use strict";var t=e.i(866312),r=e.i(7560);e.s(["filter",0,function(e,n){return(0,t.operate)(function(t,o){var i=0;t.subscribe((0,r.createOperatorSubscriber)(o,function(t){return e.call(n,t,i++)&&o.next(t)}))})}])},913186,e=>{"use strict";var t=e.i(866312),r=e.i(7560);e.s(["map",0,function(e,n){return(0,t.operate)(function(t,o){var i=0;t.subscribe((0,r.createOperatorSubscriber)(o,function(t){o.next(e.call(n,t,i++))}))})}])},544287,e=>{"use strict";var t=e.i(806298),r=e.i(448971);e.s(["mergeAll",0,function(e){return void 0===e&&(e=1/0),(0,t.mergeMap)(r.identity,e)}])},806298,484430,e=>{"use strict";var t=e.i(913186),r=e.i(633482),n=e.i(866312),o=e.i(168),i=e.i(7560);function s(e,t,n,s,u,a,c,l){var f=[],p=0,d=0,h=!1,y=function(){!h||f.length||p||t.complete()},b=function(e){return p<s?v(e):f.push(e)},v=function(e){a&&t.next(e),p++;var l=!1;(0,r.innerFrom)(n(e,d++)).subscribe((0,i.createOperatorSubscriber)(t,function(e){null==u||u(e),a?b(e):t.next(e)},function(){l=!0},void 0,function(){if(l)try{for(p--;f.length&&p<s;)!function(){var e=f.shift();c?(0,o.executeSchedule)(t,c,function(){return v(e)}):v(e)}();y()}catch(e){t.error(e)}}))};return e.subscribe((0,i.createOperatorSubscriber)(t,b,function(){h=!0,y()})),function(){null==l||l()}}e.s(["mergeInternals",0,s],484430);var u=e.i(827540);e.s(["mergeMap",0,function e(o,i,a){return(void 0===a&&(a=1/0),(0,u.isFunction)(i))?e(function(e,n){return(0,t.map)(function(t,r){return i(e,t,n,r)})((0,r.innerFrom)(o(e,n)))},a):("number"==typeof i&&(a=i),(0,n.operate)(function(e,t){return s(e,t,o,a)}))}],806298)},134671,e=>{"use strict";var t=e.i(824627),r=e.i(633482),n=e.i(791413),o=e.i(521879),i=e.i(866312);function s(e,n){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];if(!0===n)return void e();if(!1!==n){var u=new o.SafeSubscriber({next:function(){u.unsubscribe(),e()}});return(0,r.innerFrom)(n.apply(void 0,(0,t.__spreadArray)([],(0,t.__read)(i)))).subscribe(u)}}e.s(["share",0,function(e){void 0===e&&(e={});var t=e.connector,u=void 0===t?function(){return new n.Subject}:t,a=e.resetOnError,c=void 0===a||a,l=e.resetOnComplete,f=void 0===l||l,p=e.resetOnRefCountZero,d=void 0===p||p;return function(e){var t,n,a,l=0,p=!1,h=!1,y=function(){null==n||n.unsubscribe(),n=void 0},b=function(){y(),t=a=void 0,p=h=!1},v=function(){var e=t;b(),null==e||e.unsubscribe()};return(0,i.operate)(function(e,i){l++,h||p||y();var m=a=null!=a?a:u();i.add(function(){0!=--l||h||p||(n=s(v,d))}),m.subscribe(i),!t&&l>0&&(t=new o.SafeSubscriber({next:function(e){return m.next(e)},error:function(e){h=!0,y(),n=s(b,c,e),m.error(e)},complete:function(){p=!0,y(),n=s(b,f),m.complete()}}),(0,r.innerFrom)(e).subscribe(t))})(e)}}])},79357,e=>{"use strict";var t=e.i(824627),r=function(e){function r(t,r){return e.call(this)||this}return(0,t.__extends)(r,e),r.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},r}(e.i(337902).Subscription),n={setInterval:function(e,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];var s=n.delegate;return(null==s?void 0:s.setInterval)?s.setInterval.apply(s,(0,t.__spreadArray)([e,r],(0,t.__read)(o))):setInterval.apply(void 0,(0,t.__spreadArray)([e,r],(0,t.__read)(o)))},clearInterval:function(e){var t=n.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},o=e.i(907844),i=function(e){function r(t,r){var n=e.call(this,t,r)||this;
7return n.scheduler=t,n.work=r,n.pending=!1,n}return(0,t.__extends)(r,e),r.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r,n=this.id,o=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(o,n,t)),this.pending=!0,this.delay=t,this.id=null!=(r=this.id)?r:this.requestAsyncId(o,this.id,t),this},r.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),n.setInterval(e.flush.bind(e,this),r)},r.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&n.clearInterval(t)},r.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},r.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},r.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,o.arrRemove)(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},r}(r);e.s(["AsyncAction",0,i],79357)},745491,e=>{"use strict";var t=e.i(824627),r=e.i(984741),n=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=r.dateTimestampProvider.now,e}(),o=function(e){function r(t,r){void 0===r&&(r=n.now);var o=e.call(this,t,r)||this;return o.actions=[],o._active=!1,o}return(0,t.__extends)(r,e),r.prototype.flush=function(e){var t,r=this.actions;if(this._active)return void r.push(e);this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift())if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},r}(n);e.s(["AsyncScheduler",0,o],745491)},984741,e=>{"use strict";var t={now:function(){return(t.delegate||Date).now()},delegate:void 0};e.s(["dateTimestampProvider",0,t])},501267,e=>{"use strict";var t=(0,e.i(949918).createErrorClass)(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});e.s(["EmptyError",0,t])},282519,597961,e=>{"use strict";var t=e.i(827540);function r(e){return e&&(0,t.isFunction)(e.schedule)}function n(e){return e[e.length-1]}e.s(["isScheduler",0,r],597961),e.s(["popNumber",0,function(e,t){return"number"==typeof n(e)?e.pop():t},"popResultSelector",0,function(e){return(0,t.isFunction)(n(e))?e.pop():void 0},"popScheduler",0,function(e){return r(n(e))?e.pop():void 0}],282519)},827540,e=>{"use strict";e.s(["isFunction",0,function(e){return"function"==typeof e}])},866312,e=>{"use strict";var t=e.i(827540);function r(e){return(0,t.isFunction)(null==e?void 0:e.lift)}e.s(["hasLift",0,r,"operate",0,function(e){return function(t){if(r(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}])},824627,e=>{"use strict";var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)},r=function(){return(r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function n(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function i(e){return this instanceof i?(this.v=e,this):new i(e)}
7"function"==typeof SuppressedError&&SuppressedError,e.s(["__assign",()=>r,"__asyncGenerator",0,function(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),s=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",function(e){return function(t){return Promise.resolve(t).then(e,l)}}),n[Symbol.asyncIterator]=function(){return this},n;function u(e,t){o[e]&&(n[e]=function(t){return new Promise(function(r,n){s.push([e,t,r,n])>1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{var r;(r=o[e](t)).value instanceof i?Promise.resolve(r.value.v).then(c,l):f(s[0][2],r)}catch(e){f(s[0][3],e)}}function c(e){a("next",e)}function l(e){a("throw",e)}function f(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}},"__asyncValues",0,function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=n(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){var i,s,u;i=n,s=o,u=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){i({value:e,done:u})},s)})}}},"__await",0,i,"__awaiter",0,function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function s(e){try{a(n.next(e))}catch(e){i(e)}}function u(e){try{a(n.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,u)}a((n=n.apply(e,t||[])).next())})},"__extends",0,function(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)},"__generator",0,function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=u(0),s.throw=u(1),s.return=u(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(a){var c=[u,a];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},"__read",0,o,"__spread",0,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e},"__spreadArray",0,function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},"__values",0,n])}]);
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.