PageSourceSearch

https://www.etmp.site/_next/static/chunks/207.799d870f18a2ff19.js

js etmp.site collected 2026-10-08 19:52:00 UTC 39,916 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[207],{29208:function(t,e,i){var s,r="__lodash_hash_undefined__",n=1/0,a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/,l=/^\./,h=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,c=/^\[object .+?Constructor\]$/,p="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,d="object"==typeof self&&self&&self.Object===Object&&self,f=p||d||Function("return this")(),g=Array.prototype,y=Function.prototype,m=Object.prototype,v=f["__core-js_shared__"],S=(s=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"",b=y.toString,_=m.hasOwnProperty,A=m.toString,w=RegExp("^"+b.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Symbol=f.Symbol,k=g.splice,Map=M(f,"Map"),O=M(Object,"create"),j=Symbol?Symbol.prototype:void 0,E=j?j.toString:void 0;function z(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var s=t[e];this.set(s[0],s[1])}}function F(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var s=t[e];this.set(s[0],s[1])}}function L(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var s=t[e];this.set(s[0],s[1])}}function x(t,e){for(var i,s=t.length;s--;)if((i=t[s][0])===e||i!=i&&e!=e)return s;return -1}function T(t,e){var i,s=t.__data__;return("string"==(i=typeof e)||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==e:null===e)?s["string"==typeof e?"string":"hash"]:s.map}function M(t,e){var i,s=null==t?void 0:t[e];return!(!R(s)||S&&S in s)&&("[object Function]"==(i=R(s)?A.call(s):"")||"[object GeneratorFunction]"==i||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(s)?w:c).test(function(t){if(null!=t){try{return b.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(s))?s:void 0}z.prototype.clear=function(){this.__data__=O?O(null):{}},z.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},z.prototype.get=function(t){var e=this.__data__;if(O){var i=e[t];return i===r?void 0:i}return _.call(e,t)?e[t]:void 0},z.prototype.has=function(t){var e=this.__data__;return O?void 0!==e[t]:_.call(e,t)},z.prototype.set=function(t,e){return this.__data__[t]=O&&void 0===e?r:e,this},F.prototype.clear=function(){this.__data__=[]},F.prototype.delete=function(t){var e=this.__data__,i=x(e,t);return!(i<0)&&(i==e.length-1?e.pop():k.call(e,i,1),!0)},F.prototype.get=function(t){var e=this.__data__,i=x(e,t);return i<0?void 0:e[i][1]},F.prototype.has=function(t){return x(this.__data__,t)>-1},F.prototype.set=function(t,e){var i=this.__data__,s=x(i,t);return s<0?i.push([t,e]):i[s][1]=e,this},L.prototype.clear=function(){this.__data__={hash:new z,map:new(Map||F),string:new z}},L.prototype.delete=function(t){return T(this,t).delete(t)},L.prototype.get=function(t){return T(this,t).get(t)},L.prototype.has=function(t){return T(this,t).has(t)},L.prototype.set=function(t,e){return T(this,t).set(t,e),this};var P=C(function(t){t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(D(t))return E?E.call(t):"";var e=t+"";return"0"==e&&1/t==-n?"-0":e}(e);var e,i=[];return l.test(t)&&i.push(""),t.replace(h,function(t,e,s,r){i.push(s?r.replace(u,"$1"):e||t)}),i});function C(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw TypeError("Expected a function");var i=function(){var s=arguments,r=e?e.apply(this,s):s[0],n=i.cache;if(n.has(r))return n.get(r);var a=t.apply(this,s);return i.cache=n.set(r,a),a};return i.cache=new(C.Cache||L),i}C.Cache=L;var I=Array.isArray;function R(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function D(t){return"symbol"==typeof t||!!t&&"object"==typeof t&&"[object Symbol]"==A.call(t)}t.exports=function(t,e,i){var s=null==t?void 0:function(t,e){var i;e=!function(t,e){if(I(t))return!1;var i=typeof t;return!!("number"==i||"symbol"==i||"boolean"==i||null==t||D(t))||o.test(t)||!a.test(t)||null!=e&&t in Object(e)}(e,t)?I(i=e)?i:P(i):[e];for(var s=0,r=e.length;null!=t&&s<r;)t=t[function(t){if("string"==typeof t||D(t))return t;var e=t+"";return"0"==e&&1/t==-n?"-0":e}(e[s++])];return s&&s==r?t:void 0}(t,e);return void 0===s?i:s}}
1,70207:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return O}});var s=i(85893),r=i(86819),n=i(29208),a=i(34155);let o="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,l=new Set,h="object"==typeof a&&a?a:{},u=(t,e,i,s)=>{"function"==typeof h.emitWarning?h.emitWarning(t,e,i,s):console.error(`[${i}] ${e}: ${t}`)},c=globalThis.AbortController,p=globalThis.AbortSignal;if(void 0===c){p=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(t,e){this._onabort.push(e)}},c=class{constructor(){e()}signal=new p;abort(t){if(!this.signal.aborted){for(let e of(this.signal.reason=t,this.signal.aborted=!0,this.signal._onabort))e(t);this.signal.onabort?.(t)}}};let t=h.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,u("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}let d=t=>!l.has(t);Symbol("type");let f=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),g=t=>f(t)?t<=256?Uint8Array:t<=65536?Uint16Array:t<=4294967296?Uint32Array:t<=Number.MAX_SAFE_INTEGER?y:null:null;class y extends Array{constructor(t){super(t),this.fill(0)}}class m{heap;length;static #t=!1;static create(t){let e=g(t);if(!e)return[];m.#t=!0;let i=new m(t,e);return m.#t=!1,i}constructor(t,e){if(!m.#t)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class v{#e;#i;#s;#r;#n;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#o;#l;#h;#u;#c;#p;#d;#f;#g;#y;#m;#v;#S;#b;#_;#A;static unsafeExposeInternals(t){return{starts:t.#v,ttls:t.#S,sizes:t.#m,keyMap:t.#l,keyList:t.#h,valList:t.#u,next:t.#c,prev:t.#p,get head(){return t.#d},get tail(){return t.#f},free:t.#g,isBackgroundFetch:e=>t.#w(e),backgroundFetch:(e,i,s,r)=>t.#k(e,i,s,r),moveToTail:e=>t.#O(e),indexes:e=>t.#j(e),rindexes:e=>t.#E(e),isStale:e=>t.#z(e)}}get max(){return this.#e}get maxSize(){return this.#i}get calculatedSize(){return this.#o}get size(){return this.#a}get fetchMethod(){return this.#n}get dispose(){return this.#s}get disposeAfter(){return this.#r}constructor(t){let{max:e=0,ttl:i,ttlResolution:s=1,ttlAutopurge:r,updateAgeOnGet:n,updateAgeOnHas:a,allowStale:o,dispose:h,disposeAfter:c,noDisposeOnSet:p,noUpdateTTL:y,maxSize:S=0,maxEntrySize:b=0,sizeCalculation:_,fetchMethod:A,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:k,allowStaleOnFetchRejection:O,allowStaleOnFetchAbort:j,ignoreFetchAbort:E}=t;if(0!==e&&!f(e))throw TypeError("max option must be a nonnegative integer");let z=e?g(e):Array;if(!z)throw Error("invalid max value: "+e);if(this.#e=e,this.#i=S,this.maxEntrySize=b||this.#i,this.sizeCalculation=_,this.sizeCalculation){if(!this.#i&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw TypeError("sizeCalculation set to non-function")}if(void 0!==A&&"function"!=typeof A)throw TypeError("fetchMethod must be a function if specified");if(this.#n=A,this.#_=!!A,this.#l=new Map,this.#h=Array(e).fill(void 0),this.#u=Array(e).fill(void 0),this.#c=new z(e),this.#p=new z(e),this.#d=0,this.#f=0,this.#g=m.create(e),this.#a=0,this.#o=0,"function"==typeof h&&(this.#s=h),"function"==typeof c?(this.#r=c,this.#y=[]):(this.#r=void 0,this.#y=void 0),this.#b=!!this.#s,this.#A=!!this.#r,this.noDisposeOnSet=!!p,this.noUpdateTTL=!!y,this.noDeleteOnFetchRejection=!!w,this.allowStaleOnFetchRejection=!!O,this.allowStaleOnFetchAbort=!!j,this.ignoreFetchAbort=!!E,0!==this.maxEntrySize){if(0!==this.#i&&!f(this.#i))throw TypeError("maxSize must be a positive integer if specified");if(!f(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#F()}if(this.allowStale=!!o,this.noDeleteOnStaleGet=!!k,this.updateAgeOnGet=!!n,this.updateAgeOnHas=!!a,this.ttlResolution=f(s)||0===s?s:1,this.ttlAutopurge=!!r,this.ttl=i||0,this.ttl){if(!f(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#L()}if(0===this.#e&&0===this.ttl&&0===this.#i)throw TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#i){let t="LRU_CACHE_UNBOUNDED";d(t)&&(l.add(t),u("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,v))}}getRemainingTTL(t){return this.#l.has(t)?1/0:0}#L(){let t=new y(this.#e),e=new y(this.#e);this.#S=t,this.#v=e,this.#x=(i,s,r=o.now())=>{if(e[i]=0!==s?r:0,t[i]=s,0!==s&&this.ttlAutopurge){let t=setTimeout(()=>{this.#z(i)&&this.delete(this.#h[i])},s+1);t.unref&&t.unref()}},this.#T=i=>{e[i]=0!==t[i]?o.now():0},this.#M=(r,n)=>{if(t[n]){let a=t[n],o=e[n];r.ttl=a,r.start=o,r.now=i||s();let l=r.now-o;r.remainingTTL=a-l}};let i=0,s=()=>
1{let t=o.now();if(this.ttlResolution>0){i=t;let e=setTimeout(()=>i=0,this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=r=>{let n=this.#l.get(r);if(void 0===n)return 0;let a=t[n],o=e[n];if(0===a||0===o)return 1/0;let l=(i||s())-o;return a-l},this.#z=r=>0!==t[r]&&0!==e[r]&&(i||s())-e[r]>t[r]}#T=()=>{};#M=()=>{};#x=()=>{};#z=()=>!1;#F(){let t=new y(this.#e);this.#o=0,this.#m=t,this.#P=e=>{this.#o-=t[e],t[e]=0},this.#C=(t,e,i,s)=>{if(this.#w(e))return 0;if(!f(i)){if(s){if("function"!=typeof s)throw TypeError("sizeCalculation must be a function");if(!f(i=s(e,t)))throw TypeError("sizeCalculation return invalid (expect positive integer)")}else throw TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.")}return i},this.#I=(e,i,s)=>{if(t[e]=i,this.#i){let i=this.#i-t[e];for(;this.#o>i;)this.#R(!0)}this.#o+=t[e],s&&(s.entrySize=i,s.totalCalculatedSize=this.#o)}}#P=t=>{};#I=(t,e,i)=>{};#C=(t,e,i,s)=>{if(i||s)throw TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#j({allowStale:t=this.allowStale}={}){if(this.#a)for(let e=this.#f;this.#D(e)&&((t||!this.#z(e))&&(yield e),e!==this.#d);)e=this.#p[e]}*#E({allowStale:t=this.allowStale}={}){if(this.#a)for(let e=this.#d;this.#D(e)&&((t||!this.#z(e))&&(yield e),e!==this.#f);)e=this.#c[e]}#D(t){return void 0!==t&&this.#l.get(this.#h[t])===t}*entries(){for(let t of this.#j())void 0===this.#u[t]||void 0===this.#h[t]||this.#w(this.#u[t])||(yield[this.#h[t],this.#u[t]])}*rentries(){for(let t of this.#E())void 0===this.#u[t]||void 0===this.#h[t]||this.#w(this.#u[t])||(yield[this.#h[t],this.#u[t]])}*keys(){for(let t of this.#j()){let e=this.#h[t];void 0===e||this.#w(this.#u[t])||(yield e)}}*rkeys(){for(let t of this.#E()){let e=this.#h[t];void 0===e||this.#w(this.#u[t])||(yield e)}}*values(){for(let t of this.#j()){let e=this.#u[t];void 0===e||this.#w(this.#u[t])||(yield this.#u[t])}}*rvalues(){for(let t of this.#E()){let e=this.#u[t];void 0===e||this.#w(this.#u[t])||(yield this.#u[t])}}[Symbol.iterator](){return this.entries()}find(t,e={}){for(let i of this.#j()){let s=this.#u[i],r=this.#w(s)?s.__staleWhileFetching:s;if(void 0!==r&&t(r,this.#h[i],this))return this.get(this.#h[i],e)}}forEach(t,e=this){for(let i of this.#j()){let s=this.#u[i],r=this.#w(s)?s.__staleWhileFetching:s;void 0!==r&&t.call(e,r,this.#h[i],this)}}rforEach(t,e=this){for(let i of this.#E()){let s=this.#u[i],r=this.#w(s)?s.__staleWhileFetching:s;void 0!==r&&t.call(e,r,this.#h[i],this)}}purgeStale(){let t=!1;for(let e of this.#E({allowStale:!0}))this.#z(e)&&(this.delete(this.#h[e]),t=!0);return t}dump(){let t=[];for(let e of this.#j({allowStale:!0})){let i=this.#h[e],s=this.#u[e],r=this.#w(s)?s.__staleWhileFetching:s;if(void 0===r||void 0===i)continue;let n={value:r};if(this.#S&&this.#v){n.ttl=this.#S[e];let t=o.now()-this.#v[e];n.start=Math.floor(Date.now()-t)}this.#m&&(n.size=this.#m[e]),t.unshift([i,n])}return t}load(t){for(let[e,i]of(this.clear(),t)){if(i.start){let t=Date.now()-i.start;i.start=o.now()-t}this.set(e,i.value,i)}}set(t,e,i={}){if(void 0===e)return this.delete(t),this;let{ttl:s=this.ttl,start:r,noDisposeOnSet:n=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:o}=i,{noUpdateTTL:l=this.noUpdateTTL}=i,h=this.#C(t,e,i.size||0,a);if(this.maxEntrySize&&h>this.maxEntrySize)return o&&(o.set="miss",o.maxEntrySizeExceeded=!0),this.delete(t),this;let u=0===this.#a?void 0:this.#l.get(t);if(void 0===u)u=0===this.#a?this.#f:0!==this.#g.length?this.#g.pop():this.#a===this.#e?this.#R(!1):this.#a,this.#h[u]=t,this.#u[u]=e,this.#l.set(t,u),this.#c[this.#f]=u,this.#p[u]=this.#f,this.#f=u,this.#a++,this.#I(u,h,o),o&&(o.set="add"),l=!1;else{this.#O(u);let i=this.#u[u];if(e!==i){if(this.#_&&this.#w(i)){i.__abortController.abort(Error("replaced"));let{__staleWhileFetching:e}=i;void 0!==e&&!n&&(this.#b&&this.#s?.(e,t,"set"),this.#A&&this.#y?.push([e,t,"set"]))}else!n&&(this.#b&&this.#s?.(i,t,"set"),this.#A&&this.#y?.push([i,t,"set"]));if(this.#P(u),this.#I(u,h,o),this.#u[u]=e,o){o.set="replace";let t=i&&this.#w(i)?i.__staleWhileFetching:i;void 0!==t&&(o.oldValue=t)}}else o&&(o.set="update")}if(0===s||this.#S||this.#L(),this.#S&&(l||this.#x(u,s,r),o&&this.#M(o,u)),!n&&this.#A&&this.#y){let t;let e=this.#y;for(;t=e?.shift();)this.#r?.(...t)}return this}pop(){try{for(;this.#a;){let t=this.#u[this.#d];if(this.#R(!0),this.#w(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#A&&this.#y){let t;let e=this.#y;for(;t=e?.shift();)this.#r?.(...t)}}}#R(t){let e=this.#d,i=this.#h[e],s=this.#u[e];return this.#_&&this.#w(s)?s.__abortController.abort(Error("evicted")):(this.#b||this.#A)&&(this.#b&&this.#s?.(s,i,"evict"),this.#A&&this.#y?.push([s,i,"evict"])),this.#P(e),t&&(this.#h[e]=void 0,this.#u[e]=void 0,this.#g.push(e)),1===this.#a?(this.#d=this.#f=0,this.#g.length=0):this.#d=this.#c[e],this.#l.delete(i),this.#a--,e}has(t,e={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=e,r=this.#l.get(t);if(void 0!==r){let t=this.#u[r];if(this.#w(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#z(r))return i&&this.#T(r),s&&(s.has="hit",this.#M(s,r)),!0;s&&(s.has="stale",this.#M(s,r))}else s&&(s.has="miss");return!1}peek(t,e={}){let{allowStale:i=this.allowStale}=e,s=this.#l.get(t);if(void 0!==s&&(i||!this.#z(s))){let t=this.#u[s];return this.#w(t)?t.__staleWhileFetching:t}}#k(t,e,i,s){let r=void 0===e?void 0:this.#u[e];if(this.#w(r))return r;let n=new c,{signal:a}=i;a?.addEventListener("abort",()=>n.abort(a.reason),{signal:n.signal});let o={signal:n.signal,options:i,context:s},l=(s,r=!1)=>{let{aborted:a}=n.signal,l=i.ignoreFetchAbort&&void 0!==s;return(i.status&&(a&&!r?(i.status.fetchAborted=!0,i.status.fetchError=n.signal.reason,l&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),!a||l||r)?(this.#u[e]===u&&(void 0===s?u.__staleWhileFetching?this.#u[e]=u.__staleWhileFetching:this.delete(t):(i.status&&(i.status.fetchUpdated=!0),this.set(t,s,o.options))),s):h(n.signal.reason)},h=s=>{let{aborted:r}=n.signal,a=r&&i.allowStaleOnFetchAbort,o=a||i.allowStaleOnFetchRejection,l=o||i.noDeleteOnFetchRejection;if(this.#u[e]===u){let i=!l||void 0===u.__staleWhileFetching;i?this.delete(t):a||(this.#u[e]=u.__staleWhileFetching)}if(o)return i.status&&void 0!==u.__staleWhileFetching&&(i.status.returnedStale=!0),u.__staleWhileFetching;if(u.__returned===u)throw s};
1i.status&&(i.status.fetchDispatched=!0);let u=new Promise((e,s)=>{let a=this.#n?.(t,r,o);a&&a instanceof Promise&&a.then(t=>e(void 0===t?void 0:t),s),n.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(e(void 0),i.allowStaleOnFetchAbort&&(e=t=>l(t,!0)))})}).then(l,t=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=t),h(t))),p=Object.assign(u,{__abortController:n,__staleWhileFetching:r,__returned:void 0});return void 0===e?(this.set(t,p,{...o.options,status:void 0}),e=this.#l.get(t)):this.#u[e]=p,p}#w(t){return!!this.#_&&!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof c}async fetch(t,e={}){let{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:n=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:o=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:h=this.noUpdateTTL,noDeleteOnFetchRejection:u=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:c=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:d=this.allowStaleOnFetchAbort,context:f,forceRefresh:g=!1,status:y,signal:m}=e;if(!this.#_)return y&&(y.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:r,status:y});let v={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:r,ttl:n,noDisposeOnSet:a,size:o,sizeCalculation:l,noUpdateTTL:h,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:c,allowStaleOnFetchAbort:d,ignoreFetchAbort:p,status:y,signal:m},S=this.#l.get(t);if(void 0===S){y&&(y.fetch="miss");let e=this.#k(t,S,v,f);return e.__returned=e}{let e=this.#u[S];if(this.#w(e)){let t=i&&void 0!==e.__staleWhileFetching;return y&&(y.fetch="inflight",t&&(y.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}let r=this.#z(S);if(!g&&!r)return y&&(y.fetch="hit"),this.#O(S),s&&this.#T(S),y&&this.#M(y,S),e;let n=this.#k(t,S,v,f),a=void 0!==n.__staleWhileFetching,o=a&&i;return y&&(y.fetch=r?"stale":"refresh",o&&r&&(y.returnedStale=!0)),o?n.__staleWhileFetching:n.__returned=n}}get(t,e={}){let{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:n}=e,a=this.#l.get(t);if(void 0!==a){let e=this.#u[a],o=this.#w(e);return(n&&this.#M(n,a),this.#z(a))?(n&&(n.get="stale"),o)?(n&&i&&void 0!==e.__staleWhileFetching&&(n.returnedStale=!0),i?e.__staleWhileFetching:void 0):(r||this.delete(t),n&&i&&(n.returnedStale=!0),i?e:void 0):(n&&(n.get="hit"),o)?e.__staleWhileFetching:(this.#O(a),s&&this.#T(a),e)}n&&(n.get="miss")}#W(t,e){this.#p[e]=t,this.#c[t]=e}#O(t){t!==this.#f&&(t===this.#d?this.#d=this.#c[t]:this.#W(this.#p[t],this.#c[t]),this.#W(this.#f,t),this.#f=t)}delete(t){let e=!1;if(0!==this.#a){let i=this.#l.get(t);if(void 0!==i){if(e=!0,1===this.#a)this.clear();else{this.#P(i);let e=this.#u[i];this.#w(e)?e.__abortController.abort(Error("deleted")):(this.#b||this.#A)&&(this.#b&&this.#s?.(e,t,"delete"),this.#A&&this.#y?.push([e,t,"delete"])),this.#l.delete(t),this.#h[i]=void 0,this.#u[i]=void 0,i===this.#f?this.#f=this.#p[i]:i===this.#d?this.#d=this.#c[i]:(this.#c[this.#p[i]]=this.#c[i],this.#p[this.#c[i]]=this.#p[i]),this.#a--,this.#g.push(i)}}}if(this.#A&&this.#y?.length){let t;let e=this.#y;for(;t=e?.shift();)this.#r?.(...t)}return e}clear(){for(let t of this.#E({allowStale:!0})){let e=this.#u[t];if(this.#w(e))e.__abortController.abort(Error("deleted"));else{let i=this.#h[t];this.#b&&this.#s?.(e,i,"delete"),this.#A&&this.#y?.push([e,i,"delete"])}}if(this.#l.clear(),this.#u.fill(void 0),this.#h.fill(void 0),this.#S&&this.#v&&(this.#S.fill(0),this.#v.fill(0)),this.#m&&this.#m.fill(0),this.#d=0,this.#f=0,this.#g.length=0,this.#o=0,this.#a=0,this.#A&&this.#y){let t;let e=this.#y;for(;t=e?.shift();)this.#r?.(...t)}}}var S=i(76356),b=i(67294),_=i(88818),A=i(29373);let w=new v({max:500}),k=(0,b.memo)(function(t){let{children:e,client:i,refreshInterval:r=1e4,turboSourceMap:n=!0,logger:a}=t;(0,b.useMemo)(()=>{n&&!i.config().resultSourceMap&&(null==a||a.error("The client needs to be configured with `resultSourceMap: true` to enable turbo mode.`"))},[i,n,a]);let o=(0,b.useMemo)(()=>n&&i.config().resultSourceMap?"Updates that can be traced using Content Source Maps will be applied in real-time. Other updates will be applied every ".concat(r,"ms."):"Updates will be applied every ".concat(r,"ms."),[i,r,n]);(0,b.useEffect)(()=>{a&&a.log("[@sanity/preview-kit]: With the current configuration you can expect that: ".concat(o))},[a,o]);let[l,h]=(0,b.useState)([]),[u]=(0,b.useState)(()=>new Map),c=function(t){let[e]=(0,b.useState)(()=>
1new Map),i=(0,b.useCallback)((i,s,r,n)=>{e.has(i)||(e.set(i,{query:s,params:r,listeners:new Set}),(0,b.startTransition)(()=>t(t=>t.includes(i)?t:[...t,i])));let a=e.get(i);if(!a||!a.listeners)throw TypeError("Inconsistent cache for key: "+i);let{listeners:o}=a;return o.add(n),()=>{o.delete(n),0===o.size&&(e.delete(i),(0,b.startTransition)(()=>t(t=>t.includes(i)?t.filter(t=>t!==i):t)))}},[e,t]);return(0,b.useMemo)(()=>({cache:e,subscribe:i}),[e,i])}(h),[p]=(0,b.useState)(()=>function(t,e,i){let s=(0,_.nW)(e,i);return u.has(s)||u.set(s,{result:t,resultSourceMap:{}}),{subscribe:t=>{let r=c.subscribe(s,e,i,t);return()=>r()},getSnapshot:()=>{var t;return null==(t=u.get(s))?void 0:t.result}}}),[d,f]=(0,b.useState)([]),g=(0,b.useCallback)(t=>{var e;if(!n)return;let i=new Set;if(null==(e=t.documents)?void 0:e.length)for(let{_id:e}of t.documents)i.add(e);(0,b.startTransition)(()=>f(t=>{let e=Array.from(new Set([...t,...i]));return JSON.stringify(e.sort())===JSON.stringify(t.sort())?t:e}))},[n]);return(0,s.jsxs)(_.iS.Provider,{value:p,children:[(0,s.jsx)(_.T_.Provider,{value:!0,children:e}),n&&(0,s.jsx)(F,{cache:c.cache,client:i,setTurboIds:f,snapshots:u,turboIds:d}),l.map(t=>{if(!c.cache.has(t))return null;let{query:e,params:n,listeners:a}=c.cache.get(t);return(0,s.jsx)(j,{client:i,listeners:a,params:n,query:e,refreshInterval:r,snapshots:u,turboIdsFromSourceMap:g},t)})]})});k.displayName="LiveStoreProvider";var O=k;let j=(0,b.memo)(function(t){let{client:e,refreshInterval:i,query:s,params:r,listeners:n,snapshots:a,turboIdsFromSourceMap:o}=t,{projectId:l,dataset:h}=(0,b.useMemo)(()=>{let{projectId:t,dataset:i}=e.config();return{projectId:t,dataset:i}},[e]),[u,c]=(0,b.useState)(null);if(u)throw u;let[p,d]=function(t){let{refreshInterval:e}=t,i=function(){let[t,e]=(0,b.useState)(!1);(0,b.useEffect)(()=>{e(navigator.onLine);let t=()=>(0,b.startTransition)(()=>e(!0)),i=()=>(0,b.startTransition)(()=>e(!1));return window.addEventListener("online",t),window.addEventListener("offline",i),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",i)}},[]);let i=(0,b.useSyncExternalStore)(z,()=>document.visibilityState,()=>"hidden");return!t||"hidden"===i}(),[s,r]=(0,b.useState)("hit"),n=(0,b.useCallback)(()=>((0,b.startTransition)(()=>r("inflight")),()=>(0,b.startTransition)(()=>r("hit"))),[]);return(0,b.useEffect)(()=>{if(!e||"hit"!==s)return;let t=setTimeout(()=>(0,b.startTransition)(()=>r("stale")),e);return()=>clearTimeout(t)},[e,s]),(0,b.useEffect)(()=>{if("hit"!==s)return;let t=()=>(0,b.startTransition)(()=>r("stale"));return window.addEventListener("focus",t),()=>window.removeEventListener("focus",t)},[e,s]),(0,b.useEffect)(()=>{i&&"hit"===s&&(0,b.startTransition)(()=>r("stale")),i||"stale"!==s||(0,b.startTransition)(()=>r("refresh"))},[i,s]),[s,n]}({refreshInterval:i}),f="refresh"===p||"inflight"===p;return(0,b.useEffect)(()=>{if(!f)return;let t=!1,i=new AbortController;async function u(){let{signal:u}=i,{result:c,resultSourceMap:p}=await e.fetch(s,r,{signal:u,filterResponse:!1});if(!u.aborted){for(let t of(a.set((0,_.nW)(s,r),{result:x(l,h,c,p),resultSourceMap:null!=p?p:{}}),p&&o(p),n.values()))t();t=!0}}let p=d();return u().catch(t=>{"AbortError"!==t.name&&c(t)}).finally(p),()=>{t||i.abort()}},[e,h,n,r,l,s,f,a,d,o]),null});function E(t,e,i){return"".concat(t,"-").concat(e,"-").concat(i)}function z(t){return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)}j.displayName="QuerySubscription";let F=(0,b.memo)(function(t){let{client:e,snapshots:i,cache:r,turboIds:n,setTurboIds:a}=t,{projectId:o,dataset:l}=(0,b.useMemo)(()=>{let{projectId:t,dataset:i}=e.config();return{projectId:t,dataset:i}},[e]);(0,b.useEffect)(()=>{var t,e;let s=new Set;for(let{query:n,params:a}of r.values()){let r=(0,_.nW)(n,a),o=i.get(r);if(o&&(null==(e=null==(t=o.resultSourceMap)?void 0:t.documents)?void 0:e.length))for(let{_id:t}of o.resultSourceMap.documents)s.add(t)}let o=[...s].sort();JSON.stringify(n)!==JSON.stringify(o)&&(0,b.startTransition)(()=>a(o))},[r,a,i,n]);let[h,u]=(0,b.useState)([]);(0,b.useEffect)(()=>{let t=new Set(h.flat()),e=new Set;for(let i of n)t.has(i)||w.has(E(o,l,i))||e.add(i);let i=[...e].slice(0,10);0!==i.length&&(0,b.startTransition)(()=>u(t=>[...t.slice(-10),i]))},[h,l,o,n]);let[c,p]=(0,b.useState)();return(0,b.useEffect)(()=>{let t=e.listen("*",{},{events:["mutation"],effectFormat:"mendoza",includePreviousRevision:!1,includeResult:!1,tag:"turbo"}).subscribe(t=>{var e,i;if("mutation"!==t.type||!(null==(i=null==(e=t.effects)?void 0:e.apply)?void 0:i.length))return;let s=E(o,l,t.documentId),r=w.peek(s);if(r){let e={...r};delete e._rev;let i=(0,S.a)(e,t.effects.apply);w.set(s,i)}(0,b.startTransition)(()=>p(t.documentId))});return()=>t.unsubscribe()},[e,l,o]),(0,b.useEffect)(()=>{var t,e,s;if(!c||!n.includes(c))return;let a=[];for(let[s,r]of i.entries())(null==(e=null==(t=r.resultSourceMap)?void 0:t.documents)?void 0:e.length)&&(r.result=x(o,l,r.result,r.resultSourceMap),a.push(s));for(let t of a){let e=null==(s=r.get(t))?void 0:s.listeners;if(e)for(let t of e)t()}(0,b.startTransition)(()=>p(void 0))},[r,l,c,o,i,n]),(0,s.jsx)(s.Fragment,{children:h.map(t=>(0,s.jsx)(L,{client:e,projectId:o,dataset:l,ids:t},JSON.stringify(t)))})});F.displayName="Turbo";let L=(0,b.memo)(function(t){let{client:e,projectId:i,dataset:s,ids:r}=t;return(0,b.useEffect)(()=>{let t=r.filter(t=>!w.has(E(i,s,t)));0!==t.length&&e.getDocuments(t).then(t=>{for(let e of t)e&&(null==e?void 0:e._id)&&w.set(E(i,s,e._id),e)},console.error)},[e,s,r,i]),null});function x(t,e,i,s){return s?(0,A.lV)(i,(i,a)=>{let o=(0,A.Mx)(a,s);if(!o)return i;let[l,,h]=o;if("value"!==l.type||"documentValue"!==l.source.type)return i;let u=s.documents[l.source.document],c=s.paths[l.source.path];if(u&&u._id){let s=w.get(E(t,e,u._id)),a=s?n(s,(0,A.P5)(c+h),i):i;
1if("string"==typeof a&&"string"==typeof i){let{encoded:t}=(0,r.uy)(i),{cleaned:e}=(0,r.uy)(a);return"".concat(t).concat(e)}return a}return i}):i}L.displayName="GetDocuments"},29373:function(t,e,i){"use strict";i.d(e,{Mx:function(){return l},P5:function(){return n},cv:function(){return a},lV:function(){return o}});let s={"\f":"\\f","\n":"\\n","\r":"\\r","	":"\\t","'":"\\'","\\":"\\\\"},r={"\\f":"\f","\\n":"\n","\\r":"\r","\\t":"	","\\'":"'","\\\\":"\\"};function n(t){let e;let i=[],s=/\['(.*?)'\]|\[(\d+)\]/g;for(;null!==(e=s.exec(t));){if(void 0!==e[1]){let t=e[1].replace(/\\(\\|f|n|r|t|')/g,t=>r[t]);i.push(t);continue}if(void 0!==e[2]){i.push(parseInt(e[2],10));continue}}return i}function a(t,e,i){return o(t,(t,s)=>{if("string"!=typeof t)return t;let r=l(s,e);if(!r)return t;let[a,,o]=r;if("value"!==a.type||"documentValue"!==a.source.type)return t;let h=e.documents[a.source.document],u=e.paths[a.source.path];return i(t,h,n(u+o))})}function o(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return null!==t&&Array.isArray(t)?t.map((t,s)=>o(t,e,i.concat(s))):"object"==typeof t&&null!==t?Object.fromEntries(Object.entries(t).map(t=>{let[s,r]=t;return[s,o(r,e,i.concat(s))]})):e(t,i)}function l(t,e,i){var r;let n="$".concat(t.map(t=>{if("string"==typeof t){let e=t.replace(/[\f\n\r\t'\\]/g,t=>s[t]);return"['".concat(e,"']")}return"[".concat(t,"]")}).join(""));if(!e.mappings){null==(r=null==i?void 0:i.error)||r.call(i,"Missing mappings",{resultSourceMap:e});return}if(void 0!==e.mappings[n])return[e.mappings[n],n,""];let a=Object.entries(e.mappings).filter(t=>{let[e]=t;return n.startsWith(e)}).sort((t,e)=>{let[i]=t,[s]=e;return s.length-i.length});if(0==a.length)return;let[o,l]=a[0],h=n.substring(o.length);return[l,o,h]}},86819:function(t,e,i){"use strict";i.d(e,{n8:function(){return a},uy:function(){return h}});var s={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},r={0:8203,1:8204,2:8205,3:65279},n=[,,,,].fill(String.fromCodePoint(r[0])).join("");function a(t,e,i="auto"){let s;return!0===i||"auto"===i&&(Number.isNaN(Number(t))&&Date.parse(t)||function(t){try{new URL(t,t.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(t))?t:`${t}${s=JSON.stringify(e),`${n}${Array.from(s).map(t=>{let e=t.charCodeAt(0);if(e>255)throw Error(`Only ASCII edit info can be encoded. Error attempting to encode ${s} on character ${t} (${e})`);return Array.from(e.toString(4).padStart(4,"0")).map(t=>String.fromCodePoint(r[t])).join("")}).join("")}`}`}Object.fromEntries(Object.entries(r).map(t=>t.reverse())),Object.fromEntries(Object.entries(s).map(t=>t.reverse()));var o=`${Object.values(s).map(t=>`\\u{${t.toString(16)}}`).join("")}`,l=RegExp(`[${o}]{4,}`,"gu");function h(t){var e;return{cleaned:t.replace(l,""),encoded:(null==(e=t.match(l))?void 0:e[0])||""}}},76356:function(t,e,i){"use strict";i.d(e,{a:function(){return S},v:function(){return m}});var s=Object.defineProperty,r=(t,e,i)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,n=(t,e,i)=>(r(t,"symbol"!=typeof e?e+"":e,i),i);let a=["Value","Copy","Blank","ReturnIntoArray","ReturnIntoObject","ReturnIntoObjectSameKey","PushField","PushElement","PushParent","Pop","PushFieldCopy","PushFieldBlank","PushElementCopy","PushElementBlank","ReturnIntoObjectPop","ReturnIntoObjectSameKeyPop","ReturnIntoArrayPop","ObjectSetFieldValue","ObjectCopyField","ObjectDeleteField","ArrayAppendValue","ArrayAppendSlice","StringAppendString","StringAppendSlice"];class o{constructor(t,e,i){n(this,"model"),n(this,"root"),n(this,"patch"),n(this,"i"),n(this,"inputStack"),n(this,"outputStack"),this.model=t,this.root=e,this.patch=i,this.i=0,this.inputStack=[],this.outputStack=[]}read(){return this.patch[this.i++]}process(){for(this.inputStack.push({value:this.root}),this.outputStack.push({value:this.root});this.i<this.patch.length;){let t=this.read(),e=a[t];if(!e)throw Error("Unknown opcode: ".concat(t));this["process".concat(e)].apply(this)}let t=this.outputStack.pop();return this.finalizeOutput(t)}inputEntry(){return this.inputStack[this.inputStack.length-1]}inputKey(t,e){return t.keys||(t.keys=this.model.objectGetKeys(t.value).sort()),t.keys[e]}outputEntry(){return this.outputStack[this.outputStack.length-1]}outputArray(){let t=this.outputEntry();return t.writeValue||(t.writeValue=this.model.copyArray(t.value)),t.writeValue}outputObject(){let t=this.outputEntry();return t.writeValue||(t.writeValue=this.model.copyObject(t.value)),t.writeValue}outputString(){let t=this.outputEntry();return t.writeValue||(t.writeValue=this.model.copyString(t.value)),t.writeValue}finalizeOutput(t){return t.writeValue?this.model.finalize(t.writeValue):t.value}processValue(){let t=this.model.wrap(this.read());this.outputStack.push({value:t})}processCopy(){let t=this.inputEntry();this.outputStack.push({value:t.value})}processBlank(){this.outputStack.push({value:null})}processReturnIntoArray(){let t=this.outputStack.pop(),e=this.finalizeOutput(t),i=this.outputArray();this.model.arrayAppendValue(i,e)}processReturnIntoObject(){let t=this.read(),e=this.outputStack.pop(),i=this.finalizeOutput(e);i=this.model.markChanged(i);let s=this.outputObject();this.model.objectSetField(s,t,i)}processReturnIntoObjectSameKey(){let t=this.inputEntry(),e=this.outputStack.pop(),i=this.finalizeOutput(e),s=this.outputObject();this.model.objectSetField(s,t.key,i)}processPushField(){let t=this.read(),e=this.inputEntry(),i=this.inputKey(e,t),s=this.model.objectGetField(e.value,i);this.inputStack.push({value:s,key:i})}processPushElement(){let t=this.read(),e=this.inputEntry(),i=this.model.arrayGetElement(e.value,t);this.inputStack.push({value:i})}processPop(){this.inputStack.pop()}processPushFieldCopy(){this.processPushField(),this.processCopy()}processPushFieldBlank(){this.processPushField(),this.processBlank()}processPushElementCopy(){this.processPushElement(),this.processCopy()}processPushElementBlank(){this.processPushElement(),this.processBlank()}processReturnIntoObjectPop(){this.processReturnIntoObject(),this.processPop()}processReturnIntoObjectSameKeyPop(){this.processReturnIntoObjectSameKey(),this.processPop()}processReturnIntoArrayPop(){this.processReturnIntoArray(),this.processPop()}processObjectSetFieldValue(){this.processValue(),this.processReturnIntoObject()}processObjectCopyField(){this.processPushField(),this.processCopy(),this.processReturnIntoObjectSameKey(),this.processPop()}processObjectDeleteField(){let t=this.read(),e=this.inputEntry(),i=this.inputKey(e,t),s=this.outputObject();this.model.objectDeleteField(s,i)}processArrayAppendValue(){let t=this.model.wrap(this.read()),e=this.outputArray();this.model.arrayAppendValue(e,t)}processArrayAppendSlice(){let t=this.read(),e=this.read(),i=this.outputArray(),s=this.inputEntry().value;this.model.arrayAppendSlice(i,s,t,e)}processStringAppendString(){let t=this.model.wrap(this.read()),e=this.outputString();this.model.stringAppendValue(e,t)}processStringAppendSlice(){let t=this.read(),e=this.read(),i=this.outputString(),s=this.inputEntry().value;this.model.stringAppendSlice(i,s,t,e)}}function l(t){return t>>16?4:t>>11?3:t>>7?2:1}function h(t){let e=0;for(let i=0;i<t.length;i++){let s=l(t.codePointAt(i));4==s&&i++,e+=s}return e}function u(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=i,r=0;for(r=i;s<e;r++){let e=l(t.codePointAt(r));4===e&&r++,s+=e}return r}var c=Object.defineProperty,p=(t,e,i)=>e in t?c(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,d=(t,e,i)=>(p(t,"symbol"!=typeof e?e+"":e,i),i);class f{constructor(t){d(this,"meta"),this.meta=t}wrap(t){return this.wrapWithMeta(t,this.meta,this.meta)}wrapWithMeta(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.meta;return{data:t,startMeta:e,endMeta:i}}asObject(t){if(!t.content){let e={};for(let[i,s]of Object.entries(t.data))e[i]=this.wrapWithMeta(s,t.startMeta);t.content={type:"object",fields:e}}return t.content}asArray(t){if(!t.content){let e=t.data.map(e=>this.wrapWithMeta(e,t.startMeta)),i=e.map(()=>this.meta);t.content={type:"array",elements:e,metas:i}}return t.content}asString(t){if(!t.content){let e=t.data,i={value:e,utf8size:h(e),uses:[],startMeta:t.startMeta,endMeta:t.endMeta};t.content=this.stringFromParts([i])}return t.content}stringFromParts(t){let e={type:"string",parts:t};for(let i of t)i.uses.push(e);return e}objectGetKeys(t){return t.content?Object.keys(t.content.fields):Object.keys(t.data)}objectGetField(t,e){return this.asObject(t).fields[e]}arrayGetElement(t,e){return this.asArray(t).elements[e]}finalize(t){return this.updateEndMeta(t),{content:t,startMeta:this.meta,endMeta:this.meta}}markChanged(t){return this.wrap(g(t))}updateEndMeta(t){if("string"==t.type)for(let e of t.parts)e.endMeta=this.meta;else if("array"===t.type)for(let e of t.elements)e.content&&e.endMeta!==this.meta&&this.updateEndMeta(e.content),e.endMeta=this.meta;else for(let e of Object.values(t.fields))e.content&&e.endMeta!==this.meta&&this.updateEndMeta(e.content),e.endMeta=this.meta}copyString(t){if(!t)return{type:"string",parts:[]};{let e=this.asString(t);return this.stringFromParts(e.parts.slice())}}copyObject(t){let e={type:"object",fields:{}};if(t){let i=this.asObject(t);Object.assign(e.fields,i.fields)}return e}copyArray(t){let e=t?this.asArray(t):null;return{type:"array",elements:e?e.elements:[],metas:e?e.metas:[]}}
1objectSetField(t,e,i){t.fields[e]=i}objectDeleteField(t,e){delete t.fields[e]}arrayAppendValue(t,e){t.elements.push(e),t.metas.push(this.meta)}arrayAppendSlice(t,e,i,s){let r=this.asArray(e),n=r.elements.length===i;if(t.elements.push(...r.elements.slice(i,s)),n)t.metas.push(...r.metas.slice(i,s));else for(let e=i;e<s;e++)t.metas.push(this.meta)}stringAppendValue(t,e){for(let i of this.asString(e).parts)this.stringAppendPart(t,i)}stringAppendPart(t,e){t.parts.push(e),e.uses.push(t)}resolveStringPart(t,e,i){if(0===i)return e;for(let s=e;s<t.parts.length;s++){let e=t.parts[s];if(i===e.utf8size)return s+1;if(i<e.utf8size)return this.splitString(e,i),s+1;i-=e.utf8size}throw Error("splitting string out of bounds")}splitString(t,e){let i;let s=e,r=t.utf8size-s;if(t.utf8size!==t.value.length){let i=0;for(e=0;i<s;e++){let s=l(t.value.codePointAt(e));4===s&&e++,i+=s}}i=t.value.slice(0,e);let n={value:t.value.slice(e),utf8size:r,uses:t.uses.slice(),startMeta:t.startMeta,endMeta:t.endMeta};for(let e of(t.value=i,t.utf8size=s,t.uses)){let i=e.parts.indexOf(t);if(-1===i)throw Error("bug: mismatch between string parts and use.");e.parts.splice(i+1,0,n)}}stringAppendSlice(t,e,i,s){let r=this.asString(e),n=this.resolveStringPart(r,0,i),a=this.resolveStringPart(r,n,s-i);for(let e=n;e<a;e++){let i=r.parts[e];this.stringAppendPart(t,i)}}}function g(t){let e;if(void 0!==t.data)return t.data;let i=t.content;switch(i.type){case"string":e=i.parts.map(t=>t.value).join("");break;case"array":e=i.elements.map(t=>g(t));break;case"object":for(let[t,s]of(e={},Object.entries(i.fields)))e[t]=g(s)}return t.data=e,e}function y(t){return t.content?t.content.type:Array.isArray(t.data)?"array":null===t.data?"null":typeof t.data}var m=Object.freeze({__proto__:null,applyPatch:function(t,e,i){return new o(new f(i),t,e).process()},getType:y,rebaseValue:function t(e,i){let s=y(e);if(s!==y(i))return i;let r=new f(e.endMeta),n=new f(i.endMeta);switch(s){case"object":{let s=r.asObject(e),a=n.asObject(i),o=0,l=Object.keys(s.fields).length,h=Object.keys(a.fields).length;for(let[e,i]of Object.entries(a.fields)){let r=s.fields[e];r&&(a.fields[e]=t(r,i),a.fields[e]===r&&o++)}return l===h&&l===o?e:i}case"array":{let s=r.asArray(e),a=n.asArray(i);if(s.elements.length!==a.elements.length)break;let o=0;for(let e=0;e<a.elements.length;e++)a.elements[e]=t(s.elements[e],a.elements[e]),a.elements[e]!==s.elements[e]&&o++;return 0===o?e:i}case"null":case"boolean":case"number":if(g(e)===g(i))return e;break;case"string":{let t=g(e),s=g(i);if(t===s)return e;let r=n.copyString(null),a=function(t,e){let i=Math.min(t.length,e.length),s=0;for(let r=0;r<i;){let i=t.codePointAt(r);if(i!==e.codePointAt(r))break;let n=l(i);s+=n,r+=4===n?2:1}return s}(t,s),o=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=Math.min(t.length,e.length)-i,r=0;for(let i=0;i<s;){let s=t.codePointAt(t.length-1-i);if(s!==e.codePointAt(e.length-1-i))break;let n=l(s);r+=n,i+=4===n?2:1}return r}(t,s,a),u=h(s),c=h(t);0<a&&n.stringAppendSlice(r,e,0,a),a<u-o&&n.stringAppendSlice(r,i,a,u-o),c-o<c&&n.stringAppendSlice(r,e,c-o,c);let p=n.finalize(r);if(g(p)!==s)throw Error("incorrect string rebase");return p}}return i},unwrap:g,wrap:function(t,e){return{data:t,startMeta:e,endMeta:e}}});class v{wrap(t){return t}finalize(t){return Array.isArray(t)?t:t.data}markChanged(t){return t}objectGetKeys(t){return Object.keys(t)}objectGetField(t,e){return t[e]}arrayGetElement(t,e){return t[e]}copyObject(t){let e={type:"object",data:{}};if(null!==t)for(let[i,s]of Object.entries(t))e.data[i]=s;return e}copyArray(t){return null===t?[]:t.slice()}copyString(t){return{type:"string",data:null===t?"":t}}objectSetField(t,e,i){t.data[e]=i}objectDeleteField(t,e){delete t.data[e]}arrayAppendValue(t,e){t.push(e)}arrayAppendSlice(t,e,i,s){t.push(...e.slice(i,s))}stringAppendSlice(t,e,i,s){let r=u(e,i),n=u(e,s,r);t.data+=e.slice(r,n)}stringAppendValue(t,e){t.data+=e}}function S(t,e){return new o(new v,t,e).process()}}}]);

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.