1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[260],{82500:function(t,e,i){"use strict";i.d(e,{n8:function(){return n},uy:function(){return a}});const 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};function n(t,e,i="auto"){return!0===i||"auto"===i&&(function(t){return Boolean(Date.parse(t))}(t)||function(t){try{new URL(t)}catch{return!1}return!0}(t))?t:`${t}${function(t){const e=JSON.stringify(t);return Array.from(e).map((t=>{const i=t.charCodeAt(0);if(i>255)throw new Error(`Only ASCII edit info can be encoded. Error attempting to encode ${e} on character ${t} (${i})`);return Array.from(i.toString(16).padStart(2,"0")).map((t=>String.fromCodePoint(s[t]))).join("")})).join("")}(e)}`}Object.fromEntries(Object.entries(s).map((t=>t.reverse())));const r=`${Object.values(s).map((t=>`\\u{${t.toString(16)}}`)).join("")}`,o=new RegExp(`(?:[${r}]{2})+`,"gu");function a(t){var e;return{cleaned:t.replace(o,""),encoded:(null===(e=t.match(o))||void 0===e?void 0:e[0])||""}}},29208:function(t,e,i){var s="__lodash_hash_undefined__",n="[object Function]",r="[object GeneratorFunction]",o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/,h=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,u=/^\[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")();var v=Array.prototype,y=Function.prototype,g=Object.prototype,S=f["__core-js_shared__"],m=function(){var t=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),b=y.toString,w=g.hasOwnProperty,_=g.toString,A=RegExp("^"+b.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k=f.Symbol,F=v.splice,z=D(f,"Map"),O=D(Object,"create"),T=k?k.prototype:void 0,L=T?T.toString:void 0;function E(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){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var s=t[e];this.set(s[0],s[1])}}function j(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 M(t,e){for(var i,s,n=t.length;n--;)if((i=t[n][0])===(s=e)||i!==i&&s!==s)return n;return-1}function I(t,e){var i;e=function(t,e){if(V(t))return!1;var i=typeof t;if("number"==i||"symbol"==i||"boolean"==i||null==t||U(t))return!0;return a.test(t)||!o.test(t)||null!=e&&t in Object(e)}(e,t)?[e]:V(i=e)?i:P(i);for(var s=0,n=e.length;null!=t&&s<n;)t=t[B(e[s++])];return s&&s==n?t:void 0}function C(t){if(!G(t)||(e=t,m&&m in e))return!1;var e,i=function(t){var e=G(t)?_.call(t):"";return e==n||e==r}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(i){}return e}(t)?A:u;return i.test(function(t){if(null!=t){try{return b.call(t)}catch(e){}try{return t+""}catch(e){}}return""}(t))}function R(t,e){var i=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?i["string"==typeof e?"string":"hash"]:i.map}function D(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return C(i)?i:void 0}E.prototype.clear=function(){this.__data__=O?O(null):{}},E.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},E.prototype.get=function(t){var e=this.__data__;if(O){var i=e[t];return i===s?void 0:i}return w.call(e,t)?e[t]:void 0},E.prototype.has=function(t){var e=this.__data__;return O?void 0!==e[t]:w.call(e,t)},E.prototype.set=function(t,e){return this.__data__[t]=O&&void 0===e?s:e,this},x.prototype.clear=function(){this.__data__=[]},x.prototype.delete=function(t){var e=this.__data__,i=M(e,t);return!(i<0)&&(i==e.length-1?e.pop():F.call(e,i,1),!0)},x.prototype.get=function(t){var e=this.__data__,i=M(e,t);return i<0?void 0:e[i][1]},x.prototype.has=function(t){return M(this.__data__,t)>-1},x.prototype.set=function(t,e){var i=this.__data__,s=M(i,t);return s<0?i.push([t,e]):i[s][1]=e,this},j.prototype.clear=function(){this.__data__={hash:new E,map:new(z||x),str
1ing:new E}},j.prototype.delete=function(t){return R(this,t).delete(t)},j.prototype.get=function(t){return R(this,t).get(t)},j.prototype.has=function(t){return R(this,t).has(t)},j.prototype.set=function(t,e){return R(this,t).set(t,e),this};var P=W((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(U(t))return L?L.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var i=[];return h.test(t)&&i.push(""),t.replace(c,(function(t,e,s,n){i.push(s?n.replace(l,"$1"):e||t)})),i}));function B(t){if("string"==typeof t||U(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function W(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var i=function(){var s=arguments,n=e?e.apply(this,s):s[0],r=i.cache;if(r.has(n))return r.get(n);var o=t.apply(this,s);return i.cache=r.set(n,o),o};return i.cache=new(W.Cache||j),i}W.Cache=j;var V=Array.isArray;function G(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function U(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==_.call(t)}t.exports=function(t,e,i){var s=null==t?void 0:I(t,e);return void 0===s?i:s}},16496:function(t,e,i){"use strict";i.d(e,{t:function(){return n}});var s=["Value","Copy","Blank","ReturnIntoArray","ReturnIntoObject","ReturnIntoObjectSameKey","PushField","PushElement","PushParent","Pop","PushFieldCopy","PushFieldBlank","PushElementCopy","PushElementBlank","ReturnIntoObjectPop","ReturnIntoObjectSameKeyPop","ReturnIntoArrayPop","ObjectSetFieldValue","ObjectCopyField","ObjectDeleteField","ArrayAppendValue","ArrayAppendSlice","StringAppendString","StringAppendSlice"],n=function(){function t(t,e,i){this.i=0,this.inputStack=[],this.outputStack=[],this.model=t,this.root=e,this.patch=i}return t.prototype.read=function(){return this.patch[this.i++]},t.prototype.process=function(){for(this.inputStack.push({value:this.root}),this.outputStack.push({value:this.root});this.i<this.patch.length;){var t=this.read(),e=s[t];if(!e)throw new Error("Unknown opcode: "+t);this["process"+e].apply(this)}var i=this.outputStack.pop();return this.finalizeOutput(i)},t.prototype.inputEntry=function(){return this.inputStack[this.inputStack.length-1]},t.prototype.inputKey=function(t,e){return t.keys||(t.keys=this.model.objectGetKeys(t.value).sort()),t.keys[e]},t.prototype.outputEntry=function(){return this.outputStack[this.outputStack.length-1]},t.prototype.outputArray=function(){var t=this.outputEntry();return t.writeValue||(t.writeValue=this.model.copyArray(t.value)),t.writeValue},t.prototype.outputObject=function(){var t=this.outputEntry();return t.writeValue||(t.writeValue=this.model.copyObject(t.value)),t.writeValue},t.prototype.outputString=function(){var t=this.outputEntry();return t.writeValue||(t.writeValue=this.model.copyString(t.value)),t.writeValue},t.prototype.finalizeOutput=function(t){return t.writeValue?this.model.finalize(t.writeValue):t.value},t.prototype.processValue=function(){var t=this.model.wrap(this.read());this.outputStack.push({value:t})},t.prototype.processCopy=function(){var t=this.inputEntry();this.outputStack.push({value:t.value})},t.prototype.processBlank=function(){this.outputStack.push({value:null})},t.prototype.processReturnIntoArray=function(){var t=this.outputStack.pop(),e=this.finalizeOutput(t),i=this.outputArray();this.model.arrayAppendValue(i,e)},t.prototype.processReturnIntoObject=function(){var t=this.read(),e=this.outputStack.pop(),i=this.finalizeOutput(e);i=this.model.markChanged(i);var s=this.outputObject();this.model.objectSetField(s,t,i)},t.prototype.processReturnIntoObjectSameKey=function(){var t=this.inputEntry(),e=this.outputStack.pop(),i=this.finalizeOutput(e),s=this.outputObject();this.model.objectSetField(s,t.key,i)},t.prototype.processPushField=function(){var 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})},t.prototype.processPushElement=function(){var t=this.read(),e=this.inputEntry(),i=this.model.arrayGetElement(e.value,t);this.inputStack.push({value:i})},t.prototype.processPop=function(){this.inputStack.pop()},t.prototype.processPushFieldCopy=function(){this.processPushField(),this.processCopy()},t.prototype.processPushFieldBlank=function(){this.processPushField(),this.processBlank()},t.prototype.processPushElementCopy=function(){this.processPushElement(),this.processCopy()},t.prototype.processPushElementBlank=function(){this.processPushElement(),this.processBlank()},t.prototype.processReturnIntoObjectPop=function(){this.processReturnIntoObject(),this.processPop()},t.prototype.processReturnIntoObjectSameKeyPop=function(){this.processReturnIntoObjectSameKey(),this.processPop()},t.prototype.processReturnIntoArrayPop=function(){this.processReturnIntoArray(),this.processPop()},t.prototype.processObjectSetFieldValue=function(){this.processValue(),this.processReturnIntoObject()},t.prototype.processObjectCopyField=function(){this.processPushField(),this.processCopy(),this.processReturnIntoObjectSameKey(),this.processPop()},t.prototype.processObjectDeleteField=function(){var t=this.read(),e=this.inputEntry(),i=this.inputKey(e,t),s=this.outputObject();this.model.objectDeleteField(s,i)},t.prototype.processArrayAppendValue=function(){var t=this.model.wrap(this.read()),e=this.outputArray();this.model.arrayAppendValue(e,t)},t.prototype.processArrayAppendSlice=function(){var t=this.read(),e=this.read(),i=this.outputArray(),s=this.inputEntry().value;this.model.arrayAppendSlice(i,s,t,e)},t.prototype.processStringAppendString=function(){var t=this.model.wrap(this.read()),e=this.outputString();this.model.stringAppendValue(e,t)},t.prototype.processStringAppendSlice=function(){var t=this.read(),e=this.read(),i=this.outputString(),s=this.inputEntry().value;this.model.stringAppendSlice(i,s,t,e)},t}()}
1,65104:function(t,e,i){"use strict";i.d(e,{a:function(){return o}});var s=i(16496),n=i(47438),r={wrap:function(t){return t},finalize:function(t){return Array.isArray(t)?t:t.data},markChanged:function(t){return t},objectGetKeys:function(t){return Object.keys(t)},objectGetField:function(t,e){return t[e]},arrayGetElement:function(t,e){return t[e]},copyObject:function(t){var e={type:"object",data:{}};if(null!==t)for(var i=0,s=Object.entries(t);i<s.length;i++){var n=s[i],r=n[0],o=n[1];e.data[r]=o}return e},copyArray:function(t){return null===t?[]:t.slice()},copyString:function(t){return{type:"string",data:null===t?"":t}},objectSetField:function(t,e,i){t.data[e]=i},objectDeleteField:function(t,e){delete t.data[e]},arrayAppendValue:function(t,e){t.push(e)},arrayAppendSlice:function(t,e,i,s){t.push.apply(t,e.slice(i,s))},stringAppendSlice:function(t,e,i,s){var r=e,o=(0,n.D4)(r,i),a=(0,n.D4)(r,s,o);t.data+=r.slice(o,a)},stringAppendValue:function(t,e){t.data+=e}};function o(t,e){var i=t;return new s.t(r,i,e).process()}},47438:function(t,e,i){"use strict";function s(t){return t>>16?4:t>>11?3:t>>7?2:1}function n(t){for(var e=0,i=0;i<t.length;i++){var n=s(t.codePointAt(i));4==n&&i++,e+=n}return e}function r(t,e,i){void 0===i&&(i=0);var n=i,r=0;for(r=i;n<e;r++){var o=s(t.codePointAt(r));4===o&&r++,n+=o}return r}function o(t,e){for(var i=Math.min(t.length,e.length),n=0,r=0;r<i;){var o=t.codePointAt(r);if(o!==e.codePointAt(r))return n;var a=s(o);n+=a,r+=4===a?2:1}return n}function a(t,e,i){void 0===i&&(i=0);for(var n=Math.min(t.length,e.length)-i,r=0,o=0;o<n;){var a=t.codePointAt(t.length-1-o);if(a!==e.codePointAt(e.length-1-o))return r;var h=s(a);r+=h,o+=4===h?2:1}return r}i.d(e,{D4:function(){return r},W:function(){return n},lK:function(){return o},rO:function(){return s},zA:function(){return a}})},14260:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return A}});var s=i(85893),n=i(82500),r=i(29208),o=i(34155);const a="object"===typeof performance&&performance&&"function"===typeof performance.now?performance:Date,h=new Set,c="object"===typeof o&&o?o:{},l=(t,e,i,s)=>{"function"===typeof c.emitWarning?c.emitWarning(t,e,i,s):console.error(`[${i}] ${e}: ${t}`)};let u=globalThis.AbortController,p=globalThis.AbortSignal;if("undefined"===typeof u){p=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(t,e){this._onabort.push(e)}},u=class{constructor(){e()}signal=new p;abort(t){if(!this.signal.aborted){this.signal.reason=t,this.signal.aborted=!0;for(const e of this.signal._onabort)e(t);this.signal.onabort?.(t)}}};let t="1"!==c.env?.LRU_CACHE_IGNORE_AC_WARNING;const e=()=>{t&&(t=!1,l("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))}}Symbol("type");const d=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),f=t=>d(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?v:null:null;class v extends Array{constructor(t){super(t),this.fill(0)}}class y{heap;length;static#t=!1;static create(t){const e=f(t);if(!e)return[];y.#t=!0;const i=new y(t,e);return y.#t=!1,i}constructor(t,e){if(!y.#t)throw new 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 g{#e;#i;#s;#n;#r;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#a;#h;#c;#l;#u;#p;#d;#f;#v;#y;#g;#S;#m;#b;#w;#_;static unsafeExposeInternals(t){return{starts:t.#S,ttls:t.#m,sizes:t.#g,keyMap:t.#h,keyList:t.#c,valList:t.#l,next:t.#u,prev:t.#p,get head(){return t.#d},get tail(){return t.#f}
vendor: 2,324 bytes, line 1
1,free:t.#v,isBackgroundFetch:e=>t.#A(e),backgroundFetch:(e,i,s,n)=>t.#k(e,i,s,n),moveToTail:e=>t.#F(e),indexes:e=>t.#z(e),rindexes:e=>t.#O(e),isStale:e=>t.#T(e)}}get max(){return this.#e}get maxSize(){return this.#i}get calculatedSize(){return this.#a}get size(){return this.#o}get fetchMethod(){return this.#r}get dispose(){return this.#s}get disposeAfter(){return this.#n}constructor(t){const{max:e=0,ttl:i,ttlResolution:s=1,ttlAutopurge:n,updateAgeOnGet:r,updateAgeOnHas:o,allowStale:a,dispose:c,disposeAfter:u,noDisposeOnSet:p,noUpdateTTL:v,maxSize:S=0,maxEntrySize:m=0,sizeCalculation:b,fetchMethod:w,noDeleteOnFetchRejection:_,noDeleteOnStaleGet:A,allowStaleOnFetchRejection:k,allowStaleOnFetchAbort:F,ignoreFetchAbort:z}=t;if(0!==e&&!d(e))throw new TypeError("max option must be a nonnegative integer");const O=e?f(e):Array;if(!O)throw new Error("invalid max value: "+e);if(this.#e=e,this.#i=S,this.maxEntrySize=m||this.#i,this.sizeCalculation=b,this.sizeCalculation){if(!this.#i&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!==typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==w&&"function"!==typeof w)throw new TypeError("fetchMethod must be a function if specified");if(this.#r=w,this.#w=!!w,this.#h=new Map,this.#c=new Array(e).fill(void 0),this.#l=new Array(e).fill(void 0),this.#u=new O(e),this.#p=new O(e),this.#d=0,this.#f=0,this.#v=y.create(e),this.#o=0,this.#a=0,"function"===typeof c&&(this.#s=c),"function"===typeof u?(this.#n=u,this.#y=[]):(this.#n=void 0,this.#y=void 0),this.#b=!!this.#s,this.#_=!!this.#n,this.noDisposeOnSet=!!p,this.noUpdateTTL=!!v,this.noDeleteOnFetchRejection=!!_,this.allowStaleOnFetchRejection=!!k,this.allowStaleOnFetchAbort=!!F,this.ignoreFetchAbort=!!z,0!==this.maxEntrySize){if(0!==this.#i&&!d(this.#i))throw new TypeError("maxSize must be a positive integer if specified");if(!d(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#L()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!A,this.updateAgeOnGet=!!r,this.updateAgeOnHas=!!o,this.ttlResolution=d(s)||0===s?s:1,this.ttlAutopurge=!!n,this.ttl=i||0,this.ttl){if(!d(this.ttl))throw new TypeError("ttl must be a positive integer if specified");
1this.#E()}if(0===this.#e&&0===this.ttl&&0===this.#i)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#i){const t="LRU_CACHE_UNBOUNDED";if((t=>!h.has(t))(t)){h.add(t);l("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,g)}}}getRemainingTTL(t){return this.#h.has(t)?1/0:0}#E(){const t=new v(this.#e),e=new v(this.#e);this.#m=t,this.#S=e,this.#x=(i,s,n=a.now())=>{if(e[i]=0!==s?n:0,t[i]=s,0!==s&&this.ttlAutopurge){const t=setTimeout((()=>{this.#T(i)&&this.delete(this.#c[i])}),s+1);t.unref&&t.unref()}},this.#j=i=>{e[i]=0!==t[i]?a.now():0},this.#M=(n,r)=>{if(t[r]){const o=t[r],a=e[r];n.ttl=o,n.start=a,n.now=i||s();const h=n.now-a;n.remainingTTL=o-h}};let i=0;const s=()=>{const t=a.now();if(this.ttlResolution>0){i=t;const e=setTimeout((()=>i=0),this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=n=>{const r=this.#h.get(n);if(void 0===r)return 0;const o=t[r],a=e[r];if(0===o||0===a)return 1/0;return o-((i||s())-a)},this.#T=n=>0!==t[n]&&0!==e[n]&&(i||s())-e[n]>t[n]}#j=()=>{};#M=()=>{};#x=()=>{};#T=()=>!1;#L(){const t=new v(this.#e);this.#a=0,this.#g=t,this.#I=e=>{this.#a-=t[e],t[e]=0},this.#C=(t,e,i,s)=>{if(this.#A(e))return 0;if(!d(i)){if(!s)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!==typeof s)throw new TypeError("sizeCalculation must be a function");if(i=s(e,t),!d(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return i},this.#R=(e,i,s)=>{if(t[e]=i,this.#i){const i=this.#i-t[e];for(;this.#a>i;)this.#D(!0)}this.#a+=t[e],s&&(s.entrySize=i,s.totalCalculatedSize=this.#a)}}#I=t=>{};#R=(t,e,i)=>{};#C=(t,e,i,s)=>{if(i||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#z({allowStale:t=this.allowStale}={}){if(this.#o)for(let e=this.#f;this.#P(e)&&(!t&&this.#T(e)||(yield e),e!==this.#d);)e=this.#p[e]}*#O({allowStale:t=this.allowStale}={}){if(this.#o)for(let e=this.#d;this.#P(e)&&(!t&&this.#T(e)||(yield e),e!==this.#f);)e=this.#u[e]}#P(t){return void 0!==t&&this.#h.get(this.#c[t])===t}*entries(){for(const t of this.#z())void 0===this.#l[t]||void 0===this.#c[t]||this.#A(this.#l[t])||(yield[this.#c[t],this.#l[t]])}*rentries(){for(const t of this.#O())void 0===this.#l[t]||void 0===this.#c[t]||this.#A(this.#l[t])||(yield[this.#c[t],this.#l[t]])}*keys(){for(const t of this.#z()){const e=this.#c[t];void 0===e||this.#A(this.#l[t])||(yield e)}}*rkeys(){for(const t of this.#O()){const e=this.#c[t];void 0===e||this.#A(this.#l[t])||(yield e)}}*values(){for(const t of this.#z()){void 0===this.#l[t]||this.#A(this.#l[t])||(yield this.#l[t])}}*rvalues(){for(const t of this.#O()){void 0===this.#l[t]||this.#A(this.#l[t])||(yield this.#l[t])}}[Symbol.iterator](){return this.entries()}find(t,e={}){for(const i of this.#z()){const s=this.#l[i],n=this.#A(s)?s.__staleWhileFetching:s;if(void 0!==n&&t(n,this.#c[i],this))return this.get(this.#c[i],e)}}forEach(t,e=this){for(const i of this.#z()){const s=this.#l[i],n=this.#A(s)?s.__staleWhileFetching:s;void 0!==n&&t.call(e,n,this.#c[i],this)}}rforEach(t,e=this){for(const i of this.#O()){const s=this.#l[i],n=this.#A(s)?s.__staleWhileFetching:s;void 0!==n&&t.call(e,n,this.#c[i],this)}}purgeStale(){let t=!1;for(const e of this.#O({allowStale:!0}))this.#T(e)&&(this.delete(this.#c[e]),t=!0);return t}dump(){const t=[];for(const e of this.#z({allowStale:!0})){const i=this.#c[e],s=this.#l[e],n=this.#A(s)?s.__staleWhileFetching:s;if(void 0===n||void 0===i)continue;const r={value:n};if(this.#m&&this.#S){r.ttl=this.#m[e];const t=a.now()-this.#S[e];r.start=Math.floor(Date.now()-t)}this.#g&&(r.size=this.#g[e]),t.unshift([i,r])}return t}load(t){this.clear();for(const[e,i]of t){if(i.start){const t=Date.now()-i.start;i.start=a.now()-t}this.set(e,i.value,i)}}set(t,e,i={}){if(void 0===e)return this.delete(t),this;const{ttl:s=this.ttl,start:n,noDisposeOnSet:r=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:a}=i;let{noUpdateTTL:h=this.noUpdateTTL}=i;const c=this.#C(t,e,i.size||0,o);if(this.maxEntrySize&&c>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.delete(t),this;let l=0===this.#o?void 0:this.#h.get(t);if(void 0===l)l=0===this.#o?this.#f:0!==this.#v.length?this.#v.pop():this.#o===this.#e?this.#D(!1):this.#o,this.#c[l]=t,this.#l[l]=e,this.#h.set(t,l),this.#u[this.#f]=l,this.#p[l]=this.#f,this.#f=l,this.#o++,this.#R(l,c,a),a&&(a.set="add"),h=!1;else{this.#F(l);const i=this.#l[l];if(e!==i){if(this.#w&&this.#A(i)?i.__abortController.abort(new Error("replaced")):r||(this.#b&&this.#s?.(i,t,"set"),this.#_&&this.#y?.push([i,t,"set"])),this.#I(l),this.#R(l,c,a),this.#l[l]=e,a){a.set="replace";const t=i&&this.#A(i)?i.__staleWhileFetching:i;void 0!==t&&(a.oldValue=t)}}else a&&(a.set="update")}if(0===s||this.#m||this.#E(),this.#m&&(h||this.#x(l,s,n),a&&this.#M(a,l)),!r&&this.#_&&this.#y){const t=this.#y;let e;for(;e=t?.shift();)this.#n?.(...e)}return this}pop(){try{for(;this.#o;){const t=this.#l[this.#d];if(this.#D(!0),this.#A(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#_&&this.#y){const t=this.#y;let e;for(;e=t?.shift();)this.#n?.(...e)}}}#D(t){const e=this.#d,i=this.#c[e],s=this.#l[e];return this.#w&&this.#A(s)?s.__abortController.abort(new Error("evicted")):(this.#b||this.#_)&&(this.#b&&this.#s?.(s,i,"evict"),this.#_&&this.#y?.push([s,i,"evict"])),this.#I(e),t&&(this.#c[e]=void 0,this.#l[e]=void 0,this.#v.push(e)),1===this.#o?(this.#d=this.#f=0,this.#v.length=0):this.#d=this.#u[e],this.#h.delete(i),this.#o--,e}has(t,e={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=e,n=this.#h.get(t);if(void 0!==n){const t=this.#l[n];if(this.#A(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#T(n))return i&&this.#j(n),s&&(s.has="hit",this.#M(s,n)),!0;s&&(s.has="stale",this.#M(s,n))}else s&&(s.has="miss");return!1}peek(t,e={}){const{allowStale:i=this.allowStale}=e,s=this.#h.get(t);if(void 0!==s&&(i||!this.#T(s))){const t=this.#l[s];return this.#A(t)?t.__staleWhileFetching:t}}#k(t,e,i,s){const n=void 0===e?void 0:this.#l[e];if(this.#A(n))return n;const r=new u,{signal:o}=i;o?.addEventListener("abort",(()=>r.abort(o.reason)),{signal:r.signal});const a={signal:r.signal,options:i,context:s},h=(s,n=!1)=>{const{aborted:o}=r.signal,h=i.ignoreFetchAbort&&void 0!==s;if(i.status&&(o&&!n?(i.status.fetchAborted=!0,i.status.fetchError=r.signal.reason,h&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),o&&!h&&!n)return c(r.signal.reason);const u=l;return this.#l[e]===l&&(void 0===s?u.__staleWhileFetching?this.#l[e]=u.__staleWhileFetching:this.delete(t):(i.status&&(i.status.fetchUpdated=!0),this.set(t,s,a.options))),s},c=s=>{const{aborted:n}=r.signal,o=n&&i.allowStaleOnFetchAbort,a=o||i.allowStaleOnFetchRejection,h=a||i.noDeleteOnFetchRejection,c=l;if(this.#l[e]===l){!h||void 0===c.__staleWhileFetching?this.delete(t):o||(this.#l[e]=c.__staleWhileFetching)}if(a)return i.status&&void 0!==c.__staleWhileFetching&&(i.status.returnedStale=!0),c.__staleWhileFetching;if(c.__returned===c)throw s};
1i.status&&(i.status.fetchDispatched=!0);const l=new Promise(((e,s)=>{const o=this.#r?.(t,n,a);o&&o instanceof Promise&&o.then((t=>e(void 0===t?void 0:t)),s),r.signal.addEventListener("abort",(()=>{i.ignoreFetchAbort&&!i.allowStaleOnFetchAbort||(e(void 0),i.allowStaleOnFetchAbort&&(e=t=>h(t,!0)))}))})).then(h,(t=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=t),c(t)))),p=Object.assign(l,{__abortController:r,__staleWhileFetching:n,__returned:void 0});return void 0===e?(this.set(t,p,{...a.options,status:void 0}),e=this.#h.get(t)):this.#l[e]=p,p}#A(t){if(!this.#w)return!1;const e=t;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof u}async fetch(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:r=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:h=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:u=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:d=this.allowStaleOnFetchAbort,context:f,forceRefresh:v=!1,status:y,signal:g}=e;if(!this.#w)return y&&(y.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:n,status:y});const S={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:n,ttl:r,noDisposeOnSet:o,size:a,sizeCalculation:h,noUpdateTTL:c,noDeleteOnFetchRejection:l,allowStaleOnFetchRejection:u,allowStaleOnFetchAbort:d,ignoreFetchAbort:p,status:y,signal:g};let m=this.#h.get(t);if(void 0===m){y&&(y.fetch="miss");const e=this.#k(t,m,S,f);return e.__returned=e}{const e=this.#l[m];if(this.#A(e)){const t=i&&void 0!==e.__staleWhileFetching;return y&&(y.fetch="inflight",t&&(y.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}const n=this.#T(m);if(!v&&!n)return y&&(y.fetch="hit"),this.#F(m),s&&this.#j(m),y&&this.#M(y,m),e;const r=this.#k(t,m,S,f),o=void 0!==r.__staleWhileFetching&&i;return y&&(y.fetch=n?"stale":"refresh",o&&n&&(y.returnedStale=!0)),o?r.__staleWhileFetching:r.__returned=r}}get(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:r}=e,o=this.#h.get(t);if(void 0!==o){const e=this.#l[o],a=this.#A(e);return r&&this.#M(r,o),this.#T(o)?(r&&(r.get="stale"),a?(r&&i&&void 0!==e.__staleWhileFetching&&(r.returnedStale=!0),i?e.__staleWhileFetching:void 0):(n||this.delete(t),r&&i&&(r.returnedStale=!0),i?e:void 0)):(r&&(r.get="hit"),a?e.__staleWhileFetching:(this.#F(o),s&&this.#j(o),e))}r&&(r.get="miss")}#B(t,e){this.#p[e]=t,this.#u[t]=e}#F(t){t!==this.#f&&(t===this.#d?this.#d=this.#u[t]:this.#B(this.#p[t],this.#u[t]),this.#B(this.#f,t),this.#f=t)}delete(t){let e=!1;if(0!==this.#o){const i=this.#h.get(t);if(void 0!==i)if(e=!0,1===this.#o)this.clear();else{this.#I(i);const e=this.#l[i];this.#A(e)?e.__abortController.abort(new Error("deleted")):(this.#b||this.#_)&&(this.#b&&this.#s?.(e,t,"delete"),this.#_&&this.#y?.push([e,t,"delete"])),this.#h.delete(t),this.#c[i]=void 0,this.#l[i]=void 0,i===this.#f?this.#f=this.#p[i]:i===this.#d?this.#d=this.#u[i]:(this.#u[this.#p[i]]=this.#u[i],this.#p[this.#u[i]]=this.#p[i]),this.#o--,this.#v.push(i)}}if(this.#_&&this.#y?.length){const t=this.#y;let e;for(;e=t?.shift();)this.#n?.(...e)}return e}clear(){for(const t of this.#O({allowStale:!0})){const e=this.#l[t];if(this.#A(e))e.__abortController.abort(new Error("deleted"));else{const i=this.#c[t];this.#b&&this.#s?.(e,i,"delete"),this.#_&&this.#y?.push([e,i,"delete"])}}if(this.#h.clear(),this.#l.fill(void 0),this.#c.fill(void 0),this.#m&&this.#S&&(this.#m.fill(0),this.#S.fill(0)),this.#g&&this.#g.fill(0),this.#d=0,this.#f=0,this.#v.length=0,this.#a=0,this.#o=0,this.#_&&this.#y){const t=this.#y;let e;for(;e=t?.shift();)this.#n?.(...e)}}}var S=i(65104),m=i(67294),b=i(41083),w=i(34329);const _=new g({max:500}),A=(0,m.memo)((function(t){const{children:e,client:i,refreshInterval:n=1e4,turboSourceMap:r=!0,logger:o}=t;(0,m.useMemo)((()=>{r&&!i.config().resultSourceMap&&(null==o||o.error("The client needs to be configured with `resultSourceMap: true` to enable turbo mode.`"))}),[i,r,o]);const a=(0,m.useMemo)((()=>r&&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(n,"ms."):"Updates will be applied every ".concat(n,"ms.")),[i,n,r]);(0,m.useEffect)((()=>{o&&o.log("[@sanity/preview-kit]: With the current configuration you can expect that: ".concat(a))}),[o,a]);const[h,c]=(0,m.useState)([]),[l]=(0,m.useState)((()=>new Map)),u=function(t){const[e]=(0,m.useState)((()=>new Map)),i=(0,m.useCallback)(((i,s,n,r)=>{e.has(i)||(e.set(i,{query:s,params:n,listeners:new Set}),(0,m.startTransition)((()=>t((t=>t.includes(i)?t:[...t,i])))));const o=e.get(i);if(!o||!o.listeners)throw new TypeError("Inconsistent cache for key: "+i);const{listeners:a}=o;return a.add(r),()=>{a.delete(r),0===a.size&&(e.delete(i),(0,m.startTransition)((()=>t((t=>t.includes(i)?t.filter((t=>t!==i)):t)))))}}),[e,t]);return(0,m.useMemo)((()=>({cache:e,subscribe:i})),[e,i])}(c),[p]=(0,m.useState)((()=>
1function(t,e,i){const s=(0,w.nW)(e,i);l.has(s)||l.set(s,{result:t,resultSourceMap:{}});return{subscribe:t=>{const n=u.subscribe(s,e,i,t);return()=>n()},getSnapshot:()=>{var t;return null==(t=l.get(s))?void 0:t.result}}})),[d,f]=(0,m.useState)([]),v=(0,m.useCallback)((t=>{var e;if(!r)return;const i=new Set;if(null==(e=t.documents)?void 0:e.length)for(const{_id:s}of t.documents)i.add(s);(0,m.startTransition)((()=>f((t=>{const e=Array.from(new Set([...t,...i]));return JSON.stringify(e.sort())===JSON.stringify(t.sort())?t:e}))))}),[r]);return(0,s.jsxs)(w.iS.Provider,{value:p,children:[e,r&&(0,s.jsx)(O,{cache:u.cache,client:i,setTurboIds:f,snapshots:l,turboIds:d}),h.map((t=>{if(!u.cache.has(t))return null;const{query:e,params:r,listeners:o}=u.cache.get(t);return(0,s.jsx)(k,{client:i,listeners:o,params:r,query:e,refreshInterval:n,snapshots:l,turboIdsFromSourceMap:v},t)}))]})})),k=(0,m.memo)((function(t){const{client:e,refreshInterval:i,query:s,params:n,listeners:r,snapshots:o,turboIdsFromSourceMap:a}=t,{projectId:h,dataset:c}=(0,m.useMemo)((()=>{const{projectId:t,dataset:i}=e.config();return{projectId:t,dataset:i}}),[e]),[l,u]=(0,m.useState)(null);if(l)throw l;const[p,d]=function(t){const{refreshInterval:e}=t,i=function(){const[t,e]=(0,m.useState)(!1);(0,m.useEffect)((()=>{e(navigator.onLine);const t=()=>(0,m.startTransition)((()=>e(!0))),i=()=>(0,m.startTransition)((()=>e(!1)));return window.addEventListener("online",t),window.addEventListener("offline",i),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",i)}}),[]);const i=(0,m.useSyncExternalStore)(z,(()=>document.visibilityState),(()=>"hidden"));if(!t)return!0;if("hidden"===i)return!0;return!1}(),[s,n]=(0,m.useState)("hit"),r=(0,m.useCallback)((()=>((0,m.startTransition)((()=>n("inflight"))),()=>(0,m.startTransition)((()=>n("hit"))))),[]);return(0,m.useEffect)((()=>{if(!e||"hit"!==s)return;const t=setTimeout((()=>(0,m.startTransition)((()=>n("stale")))),e);return()=>clearTimeout(t)}),[e,s]),(0,m.useEffect)((()=>{if("hit"!==s)return;const t=()=>(0,m.startTransition)((()=>n("stale")));return window.addEventListener("focus",t),()=>window.removeEventListener("focus",t)}),[e,s]),(0,m.useEffect)((()=>{i&&"hit"===s&&(0,m.startTransition)((()=>n("stale"))),i||"stale"!==s||(0,m.startTransition)((()=>n("refresh")))}),[i,s]),[s,r]}({refreshInterval:i}),f="refresh"===p||"inflight"===p;return(0,m.useEffect)((()=>{if(!f)return;let t=!1;const i=new AbortController;const l=d();return async function(){const{signal:l}=i,{result:u,resultSourceMap:p}=await e.fetch(s,n,{signal:l,filterResponse:!1});if(!l.aborted){o.set((0,w.nW)(s,n),{result:L(h,c,u,p),resultSourceMap:null!=p?p:{}}),p&&a(p);for(const t of r.values())t();t=!0}}().catch((t=>{"AbortError"!==t.name&&u(t)})).finally(l),()=>{t||i.abort()}}),[e,c,r,n,h,s,f,o,d,a]),null}));function F(t,e,i){return"".concat(t,"-").concat(e,"-").concat(i)}function z(t){return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)}const O=(0,m.memo)((function(t){const{client:e,snapshots:i,cache:n,turboIds:r,setTurboIds:o}=t,{projectId:a,dataset:h}=(0,m.useMemo)((()=>{const{projectId:t,dataset:i}=e.config();return{projectId:t,dataset:i}}),[e]);(0,m.useEffect)((()=>{var t,e;const s=new Set;for(const{query:r,params:o}of n.values()){const n=(0,w.nW)(r,o),a=i.get(n);if(a&&(null==(e=null==(t=a.resultSourceMap)?void 0:t.documents)?void 0:e.length))for(const{_id:t}of a.resultSourceMap.documents)s.add(t)}const a=[...s].sort();JSON.stringify(r)!==JSON.stringify(a)&&(0,m.startTransition)((()=>o(a)))}),[n,o,i,r]);const[c,l]=(0,m.useState)([]);(0,m.useEffect)((()=>{const t=new Set(c.flat()),e=new Set;for(const s of r)t.has(s)||_.has(F(a,h,s))||e.add(s);const i=[...e].slice(0,10);0!==i.length&&(0,m.startTransition)((()=>l((t=>[...t.slice(-10),i]))))}),[c,h,a,r]);const[u,p]=(0,m.useState)();return(0,m.useEffect)((()=>{const 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;const s=F(a,h,t.documentId),n=_.peek(s);if(n){const e={...n};delete e._rev;const i=(0,S.a)(e,t.effects.apply);_.set(s,i)}(0,m.startTransition)((()=>p(t.documentId)))}));return()=>t.unsubscribe()}),[e,h,a]),(0,m.useEffect)((()=>{var t,e,s;if(!u||!r.includes(u))return;const o=[];for(const[n,r]of i.entries())(null==(e=null==(t=r.resultSourceMap)?void 0:t.documents)?void 0:e.length)&&(r.result=L(a,h,r.result,r.resultSourceMap),o.push(n));for(const i of o){const t=null==(s=n.get(i))?void 0:s.listeners;if(t)for(const e of t)e()}(0,m.startTransition)((()=>p(void 0)))}),[n,h,u,a,i,r]),(0,s.jsx)(s.Fragment,{children:c.map((t=>(0,s.jsx)(T,{client:e,projectId:a,dataset:h,ids:t},JSON.stringify(t))))})})),T=(0,m.memo)((function(t){const{client:e,projectId:i,dataset:s,ids:n}=t;return(0,m.useEffect)((()=>{const t=n.filter((t=>!_.has(F(i,s,t))));0!==t.length&&e.getDocuments(t).then((t=>{for(const e of t)e&&(null==e?void 0:e._id)&&_.set(F(i,s,e._id),e)}),console.error)}),[e,s,n,i]),null}));function L(t,e,i,s){return s?(0,b.lV)(i,((i,o)=>{const a=(0,b.Mx)(o,s);if(!a)return i;const[h,,c]=a;if("value"!==h.type)return i;if("documentValue"!==h.source.type)return i;const l=s.documents[h.source.document],u=s.paths[h.source.path];if(l&&l._id){const s=_.get(F(t,e,l._id)),o=s?r(s,(0,b.P5)(u+c),i):i;
1if("string"===typeof o&&"string"===typeof i){const{encoded:t}=(0,n.uy)(i),{cleaned:e}=(0,n.uy)(o);return"".concat(t).concat(e)}return o}return i})):i}},41083:function(t,e,i){"use strict";i.d(e,{Mx:function(){return l},P5:function(){return r},cv:function(){return h},lV:function(){return c}});const s={"\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","'":"\\'","\\":"\\\\"},n={"\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t","\\'":"'","\\\\":"\\"};function r(t){const e=[],i=/\['(.*?)'\]|\[(\d+)\]/g;let s;for(;null!==(s=i.exec(t));)if(void 0===s[1])void 0===s[2]||e.push(parseInt(s[2],10));else{const t=s[1].replace(/\\(\\|f|n|r|t|')/g,(t=>n[t]));e.push(t)}return e}function o(t){return"object"===typeof t&&null!==t}function a(t){return null!==t&&Array.isArray(t)}function h(t,e){if(!t.resultSourceMap)throw new TypeError("Missing resultSourceMap");return t.result=function(t,e){return c(t.result,((i,s)=>{if("string"!==typeof i)return i;const n=l(s,t.resultSourceMap);if(!n)return i;const[r,,o]=n;if("value"!==r.type)return i;if("documentValue"!==r.source.type)return i;const a=t.resultSourceMap.documents[r.source.document],h=t.resultSourceMap.paths[r.source.path];return e(i,a,h+o)}))}(t,e),t}function c(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return a(t)?t.map(((t,s)=>c(t,e,i.concat(s)))):o(t)?Object.fromEntries(Object.entries(t).map((t=>{let[s,n]=t;return[s,c(n,e,i.concat(s))]}))):e(t,i)}function l(t,e,i){var n;const r="$".concat(t.map((t=>{if("string"===typeof t){const e=t.replace(/[\f\n\r\t'\\]/g,(t=>s[t]));return"['".concat(e,"']")}return"[".concat(t,"]")})).join(""));if(!e.mappings)return void(null==(n=null==i?void 0:i.error)||n.call(i,"Missing resultSourceMap.mappings",{resultSourceMap:e}));if(void 0!==e.mappings[r])return[e.mappings[r],r,""];const o=Object.entries(e.mappings).filter((t=>{let[e]=t;return r.startsWith(e)})).sort(((t,e)=>{let[i]=t,[s]=e;return s.length-i.length}));if(0==o.length)return;const[a,h]=o[0];return[h,a,r.substring(a.length)]}}}]);
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.