PageSourceSearch

https://www.oppussingsguiden.no/_next/static/chunks/458.2d8df1fc6f43da79.js

js oppussingsguiden.no collected 2026-10-10 01:23:06 UTC 35,884 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[458],{4514:function(t,e,i){var s,r="__lodash_hash_undefined__",n=1/0,o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\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,v=Object.prototype,m=f["__core-js_shared__"],S=(s=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"",b=y.toString,_=v.hasOwnProperty,w=v.toString,k=RegExp("^"+b.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),A=f.Symbol,E=g.splice,T=I(f,"Map"),F=I(Object,"create"),L=A?A.prototype:void 0,z=L?L.toString:void 0;function O(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 C(t,e){for(var i,s=t.length;s--;)if((i=t[s][0])===e||i!=i&&e!=e)return s;return -1}function M(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 I(t,e){var i,s=null==t?void 0:t[e];return!(!W(s)||S&&S in s)&&("[object Function]"==(i=W(s)?w.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)?k:c).test(function(t){if(null!=t){try{return b.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(s))?s:void 0}O.prototype.clear=function(){this.__data__=F?F(null):{}},O.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},O.prototype.get=function(t){var e=this.__data__;if(F){var i=e[t];return i===r?void 0:i}return _.call(e,t)?e[t]:void 0},O.prototype.has=function(t){var e=this.__data__;return F?void 0!==e[t]:_.call(e,t)},O.prototype.set=function(t,e){return this.__data__[t]=F&&void 0===e?r:e,this},x.prototype.clear=function(){this.__data__=[]},x.prototype.delete=function(t){var e=this.__data__,i=C(e,t);return!(i<0)&&(i==e.length-1?e.pop():E.call(e,i,1),!0)},x.prototype.get=function(t){var e=this.__data__,i=C(e,t);return i<0?void 0:e[i][1]},x.prototype.has=function(t){return C(this.__data__,t)>-1},x.prototype.set=function(t,e){var i=this.__data__,s=C(i,t);return s<0?i.push([t,e]):i[s][1]=e,this},j.prototype.clear=function(){this.__data__={hash:new O,map:new(T||x),string:new O}},j.prototype.delete=function(t){return M(this,t).delete(t)},j.prototype.get=function(t){return M(this,t).get(t)},j.prototype.has=function(t){return M(this,t).has(t)},j.prototype.set=function(t,e){return M(this,t).set(t,e),this};var R=P(function(t){t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(B(t))return z?z.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 P(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 o=t.apply(this,s);return i.cache=n.set(r,o),o};return i.cache=new(P.Cache||j),i}P.Cache=j;var D=Array.isArray;function W(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function B(t){return"symbol"==typeof t||!!t&&"object"==typeof t&&"[object Symbol]"==w.call(t)}t.exports=function(t,e,i){var s=null==t?void 0:function(t,e){var i;e=!function(t,e){if(D(t))return!1;var i=typeof t;return!!("number"==i||"symbol"==i||"boolean"==i||null==t||B(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e)}(e,t)?D(i=e)?i:R(i):[e];for(var s=0,r=e.length;null!=t&&s<r;)t=t[function(t){if("string"==typeof t||B(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}},5566:function(t){var e,i,s,r=t.exports={};function n(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===n||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(i){try{return e.call(null,t,0)}catch(i){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:n}catch(t){e=n}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(t){i=o}}();var l=[],h=!1,u=-1;function c(){h&&s&&(h=!1,s.length?l=s.concat(l):u=-1,l.length&&p())}function p(){if(!h){var t=a(c);h=!0;for(var e=l.length;e;){for(s=l,l=[];++u<e;)s&&s[u].run();u=-1,e=l.length}s=null,h=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function f(){}r.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];l.push(new d(t,e)),1!==l.length||h||a(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(t){return[]},r.binding=function(t){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw Error("process.chdir is not supported")},r.umask=function(){return 0}}
1,5458:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return A}});var s=i(7437),r=i(624),n=i(4514),o=i(5566);let a="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,l=new Set,h="object"==typeof o&&o?o:{},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 v{heap;length;static #t=!1;static create(t){let e=g(t);if(!e)return[];v.#t=!0;let i=new v(t,e);return v.#t=!1,i}constructor(t,e){if(!v.#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 m{#e;#i;#s;#r;#n;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#a;#l;#h;#u;#c;#p;#d;#f;#g;#y;#v;#m;#S;#b;#_;#w;static unsafeExposeInternals(t){return{starts:t.#m,ttls:t.#S,sizes:t.#v,keyM
1ap: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.#k(e),backgroundFetch:(e,i,s,r)=>t.#A(e,i,s,r),moveToTail:e=>t.#E(e),indexes:e=>t.#T(e),rindexes:e=>t.#F(e),isStale:e=>t.#L(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.#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:o,allowStale:a,dispose:h,disposeAfter:c,noDisposeOnSet:p,noUpdateTTL:y,maxSize:S=0,maxEntrySize:b=0,sizeCalculation:_,fetchMethod:w,noDeleteOnFetchRejection:k,noDeleteOnStaleGet:A,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:T,ignoreFetchAbort:F}=t;if(0!==e&&!f(e))throw TypeError("max option must be a nonnegative integer");let L=e?g(e):Array;if(!L)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!==w&&"function"!=typeof w)throw TypeError("fetchMethod must be a function if specified");if(this.#n=w,this.#_=!!w,this.#l=new Map,this.#h=Array(e).fill(void 0),this.#u=Array(e).fill(void 0),this.#c=new L(e),this.#p=new L(e),this.#d=0,this.#f=0,this.#g=v.create(e),this.#o=0,this.#a=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.#w=!!this.#r,this.noDisposeOnSet=!!p,this.noUpdateTTL=!!y,this.noDeleteOnFetchRejection=!!k,this.allowStaleOnFetchRejection=!!E,this.allowStaleOnFetchAbort=!!T,this.ignoreFetchAbort=!!F,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.#z()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!A,this.updateAgeOnGet=!!n,this.updateAgeOnHas=!!o,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.#O()}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,m))}}getRemainingTTL(t){return this.#l.has(t)?1/0:0}#O(){let t=new y(this.#e),e=new y(this.#e);this.#S=t,this.#m=e,this.#x=(i,s,r=a.now())=>{if(e[i]=0!==s?r:0,t[i]=s,0!==s&&this.ttlAutopurge){let t=setTimeout(()=>{this.#L(i)&&this.delete(this.#h[i])},s+1);t.unref&&t.unref()}},this.#j=i=>{e[i]=0!==t[i]?a.now():0},this.#C=(r,n)=>{if(t[n]){let o=t[n],a=e[n];r.ttl=o,r.start=a,r.now=i||s();let l=r.now-a;r.remainingTTL=o-l}};let i=0,s=()=>{let t=a.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 o=t[n],a=e[n];return 0===o||0===a?1/0:o-((i||s())-a)},this.#L=r=>0!==t[r]&&0!==e[r]&&(i||s())-e[r]>t[r]}#j=()=>{};#C=()=>{};#x=()=>{};#L=()=>!1;#z(){let t=new y(this.#e);this.#a=0,this.#v=t,this.#M=e=>{this.#a-=t[e],t[e]=0},this.#I=(t,e,i,s)=>{if(this.#k(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.#R=(e,i,s)=>{if(t[e]=i,this.#i){let i=this.#i-t[e];for(;this.#a>i;)this.#P(!0)}this.#a+=t[e],s&&(s.entrySize=i,s.totalCalculatedSize=this.#a)}}#M=t=>{};#R=(t,e,i)=>{};#I=(t,e,i,s)=>{if(i||s)throw TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#T({allowStale:t=this.allowStale}={}){if(this.#o)for(let e=this.#f;this.#D(e)&&((t||!this.#L(e))&&(yield e),e!==this.#d);)e=this.#p[e]}*#F({allowStale:t=this.allowStale}={}){if(this.#o)for(let e=this.#d;this.#D(e)&&((t||!this.#L(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.#T())void 0===this.#u[t]||void 0===this.#h[t]||this.#k(this.#u[t])||(yield[this.#h[t],this.#u[t]])}*rentries(){for(let t of this.#F())void 0===this.#u[t]||void 0===this.#h[t]||this.#k(this.#u[t])||(yield[this.#h[t],this.#u[t]])}*keys(){for(let t of this.#T()){let e=this.#h[t];void 0===e||this.#k(this.#u[t])||(yield e)}}*rkeys(){for(let t of this.#F()){let e=this.#h[t];void 0===e||this.#k(this.#u[t])||(yield e)}}*values(){for(let t of this.#T())void 0===this.#u[t]||this.#k(this.#u[t])||(yield this.#u[t])}*rvalues(){for(let t of this.#F())void 0===this.#u[t]||this.#k(this.#u[t])||(yield this.#u[t])}[Symbol.iterator](){return this.entries()}find(t,e={}){for(let i of this.#T()){let s=this.#u[i],r=this.#k(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.#T()){let s=this.#u[i],r=this.#k(s)?s.__staleWhileFetching:s;void 0!==r&&t.call(e,r,this.#h[i],this)}}
1rforEach(t,e=this){for(let i of this.#F()){let s=this.#u[i],r=this.#k(s)?s.__staleWhileFetching:s;void 0!==r&&t.call(e,r,this.#h[i],this)}}purgeStale(){let t=!1;for(let e of this.#F({allowStale:!0}))this.#L(e)&&(this.delete(this.#h[e]),t=!0);return t}dump(){let t=[];for(let e of this.#T({allowStale:!0})){let i=this.#h[e],s=this.#u[e],r=this.#k(s)?s.__staleWhileFetching:s;if(void 0===r||void 0===i)continue;let n={value:r};if(this.#S&&this.#m){n.ttl=this.#S[e];let t=a.now()-this.#m[e];n.start=Math.floor(Date.now()-t)}this.#v&&(n.size=this.#v[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=a.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:o=this.sizeCalculation,status:a}=i,{noUpdateTTL:l=this.noUpdateTTL}=i,h=this.#I(t,e,i.size||0,o);if(this.maxEntrySize&&h>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.delete(t),this;let u=0===this.#o?void 0:this.#l.get(t);if(void 0===u)u=0===this.#o?this.#f:0!==this.#g.length?this.#g.pop():this.#o===this.#e?this.#P(!1):this.#o,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.#o++,this.#R(u,h,a),a&&(a.set="add"),l=!1;else{this.#E(u);let i=this.#u[u];if(e!==i){if(this.#_&&this.#k(i)?i.__abortController.abort(Error("replaced")):!n&&(this.#b&&this.#s?.(i,t,"set"),this.#w&&this.#y?.push([i,t,"set"])),this.#M(u),this.#R(u,h,a),this.#u[u]=e,a){a.set="replace";let t=i&&this.#k(i)?i.__staleWhileFetching:i;void 0!==t&&(a.oldValue=t)}}else a&&(a.set="update")}if(0===s||this.#S||this.#O(),this.#S&&(l||this.#x(u,s,r),a&&this.#C(a,u)),!n&&this.#w&&this.#y){let t;let e=this.#y;for(;t=e?.shift();)this.#r?.(...t)}return this}pop(){try{for(;this.#o;){let t=this.#u[this.#d];if(this.#P(!0),this.#k(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#w&&this.#y){let t;let e=this.#y;for(;t=e?.shift();)this.#r?.(...t)}}}#P(t){let e=this.#d,i=this.#h[e],s=this.#u[e];return this.#_&&this.#k(s)?s.__abortController.abort(Error("evicted")):(this.#b||this.#w)&&(this.#b&&this.#s?.(s,i,"evict"),this.#w&&this.#y?.push([s,i,"evict"])),this.#M(e),t&&(this.#h[e]=void 0,this.#u[e]=void 0,this.#g.push(e)),1===this.#o?(this.#d=this.#f=0,this.#g.length=0):this.#d=this.#c[e],this.#l.delete(i),this.#o--,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.#k(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#L(r))return i&&this.#j(r),s&&(s.has="hit",this.#C(s,r)),!0;s&&(s.has="stale",this.#C(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.#L(s))){let t=this.#u[s];return this.#k(t)?t.__staleWhileFetching:t}}#A(t,e,i,s){let r=void 0===e?void 0:this.#u[e];if(this.#k(r))return r;let n=new c,{signal:o}=i;o?.addEventListener("abort",()=>n.abort(o.reason),{signal:n.signal});let a={signal:n.signal,options:i,context:s},l=(s,r=!1)=>{let{aborted:o}=n.signal,l=i.ignoreFetchAbort&&void 0!==s;return(i.status&&(o&&!r?(i.status.fetchAborted=!0,i.status.fetchError=n.signal.reason,l&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),!o||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,a.options))),s):h(n.signal.reason)},h=s=>{let{aborted:r}=n.signal,o=r&&i.allowStaleOnFetchAbort,a=o||i.allowStaleOnFetchRejection,l=a||i.noDeleteOnFetchRejection;if(this.#u[e]!==u||(l&&void 0!==u.__staleWhileFetching?o||(this.#u[e]=u.__staleWhileFetching):this.delete(t)),a)return i.status&&void 0!==u.__staleWhileFetching&&(i.status.returnedStale=!0),u.__staleWhileFetching;if(u.__returned===u)throw s};i.status&&(i.status.fetchDispatched=!0);let u=new Promise((e,s)=>{let o=this.#n?.(t,r,a);o&&o instanceof Promise&&o.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,{...a.options,status:void 0}),e=this.#l.get(t)):this.#u[e]=p,p}#k(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:o=this.noDisposeOnSet,size:a=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:v}=e;if(!this.#_)return y&&(y.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:r,status:y});let m={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:r,ttl:n,noDisposeOnSet:o,size:a,sizeCalculation:l,noUpdateTTL:h,noDeleteOnFetchRejection:u,allowStaleOnFetchRejection:c,allowStaleOnFetchAbort:d,ignoreFetchAbort:p,status:y,signal:v},S=this.#l.get(t);if(void 0===S){y&&(y.fetch="miss");let e=this.#A(t,S,m,f);return e.__returned=e}{let e=this.#u[S];if(this.#k(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.#L(S);if(!g&&!r)return y&&(y.fetch="hit"),this.#E(S),s&&this.#j(S),y&&this.#C(y,S),e;let n=this.#A(t,S,m,f),o=void 0!==n.__staleWhileFetching&&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,o=this.#l.get(t);if(void 0!==o){let e=this.#u[o],a=this.#k(e);return(n&&this.#C(n,o),this.#L(o))?(n&&(n.get="stale"),a)?(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"),a)?e.__staleWhileFetching:(this.#E(o),s&&this.#j(o),e)}n&&(n.get="miss")}#W(t,e){this.#p[e]=t,this.#c[t]=e}#E(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.#o){let i=this.#l.get(t);if(void 0!==i){if(e=!0,1===this.#o)this.clear();else{this.#M(i);let e=this.#u[i];this.#k(e)?e.__abortController.abort(Error("deleted")):(this.#b||this.#w)&&(this.#b&&this.#s?.(e,t,"delete"),this.#w&&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.#o--,this.#g.push(i)}}}if(this.#w&&this.#y?.length){let t;let e=this.#y;for(;t=e?.shift();)this.#r?.(...t)}return e}clear(){for(let t of this.#F({allowStale:!0})){let e=this.#u[t];if(this.#k(e))e.__abortController.abort(Error("deleted"));else{let i=this.#h[t];this.#b&&this.#s?.(e,i,"delete"),this.#w&&this.#y?.push([e,i,"delete"])}}if(this.#l.clear(),this.#u.fill(void 0),this.#h.fill(void 0),this.#S&&this.#m&&(this.#S.fill(0),this.#m.fill(0)),this.#v&&this.#v.fill(0),this.#d=0,this.#f=0,this.#g.length=0,this.#a=0,this.#o=0,this.#w&&this.#y){let t;let e=this.#y;for(;t=e?.shift();)this.#r?.(...t)}}}var S=i(96),b=i(2265),_=i(8280),w=i(1056);let k=new m({max:500}),A=(0,b.memo)(function(t){let{children:e,client:i,refreshInterval:r=1e4,turboSourceMap:n=!0,logger:o}=t;(0,b.useMemo)(()=>{n&&!i.config().resultSourceMap&&(null==o||o.error("The client needs to be configured with `resultSourceMap: true` to enable turbo mode.`"))}
1,[i,n,o]);let a=(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)(()=>{o&&o.log("[@sanity/preview-kit]: With the current configuration you can expect that: ".concat(a))},[o,a]);let[l,h]=(0,b.useState)([]),[u]=(0,b.useState)(()=>new Map),c=function(t){let[e]=(0,b.useState)(()=>new 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 o=e.get(i);if(!o||!o.listeners)throw TypeError("Inconsistent cache for key: "+i);let{listeners:a}=o;return a.add(n),()=>{a.delete(n),0===a.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:[e,n&&(0,s.jsx)(L,{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:o}=c.cache.get(t);return(0,s.jsx)(E,{client:i,listeners:o,params:n,query:e,refreshInterval:r,snapshots:u,turboIdsFromSourceMap:g},t)})]})}),E=(0,b.memo)(function(t){let{client:e,refreshInterval:i,query:s,params:r,listeners:n,snapshots:o,turboIdsFromSourceMap:a}=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)(F,()=>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(o.set((0,_.nW)(s,r),{result:O(l,h,c,p),resultSourceMap:null!=p?p:{}}),p&&a(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,o,d,a]),null});function T(t,e,i){return"".concat(t,"-").concat(e,"-").concat(i)}function F(t){return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)}let L=(0,b.memo)(function(t){let{client:e,snapshots:i,cache:r,turboIds:n,setTurboIds:o}=t,{projectId:a,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:o}of r.values()){let r=(0,_.nW)(n,o),a=i.get(r);
1if(a&&(null==(e=null==(t=a.resultSourceMap)?void 0:t.documents)?void 0:e.length))for(let{_id:t}of a.resultSourceMap.documents)s.add(t)}let a=[...s].sort();JSON.stringify(n)!==JSON.stringify(a)&&(0,b.startTransition)(()=>o(a))},[r,o,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)||k.has(T(a,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,a,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=T(a,l,t.documentId),r=k.peek(s);if(r){let e={...r};delete e._rev;let i=(0,S.a)(e,t.effects.apply);k.set(s,i)}(0,b.startTransition)(()=>p(t.documentId))});return()=>t.unsubscribe()},[e,l,a]),(0,b.useEffect)(()=>{var t,e,s;if(!c||!n.includes(c))return;let o=[];for(let[s,r]of i.entries())(null==(e=null==(t=r.resultSourceMap)?void 0:t.documents)?void 0:e.length)&&(r.result=O(a,l,r.result,r.resultSourceMap),o.push(s));for(let t of o){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,a,i,n]),(0,s.jsx)(s.Fragment,{children:h.map(t=>(0,s.jsx)(z,{client:e,projectId:a,dataset:l,ids:t},JSON.stringify(t)))})}),z=(0,b.memo)(function(t){let{client:e,projectId:i,dataset:s,ids:r}=t;return(0,b.useEffect)(()=>{let t=r.filter(t=>!k.has(T(i,s,t)));0!==t.length&&e.getDocuments(t).then(t=>{for(let e of t)e&&(null==e?void 0:e._id)&&k.set(T(i,s,e._id),e)},console.error)},[e,s,r,i]),null});function O(t,e,i,s){return s?(0,w.lV)(i,(i,o)=>{let a=(0,w.Mx)(o,s);if(!a)return i;let[l,,h]=a;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=k.get(T(t,e,u._id)),o=s?n(s,(0,w.P5)(c+h),i):i;if("string"==typeof o&&"string"==typeof i){let{encoded:t}=(0,r.uy)(i),{cleaned:e}=(0,r.uy)(o);return"".concat(t).concat(e)}return o}return i}):i}},1056:function(t,e,i){"use strict";i.d(e,{Mx:function(){return l},P5:function(){return n},cv:function(){return o},lV:function(){return a}});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 o(t,e,i){return a(t,(t,s)=>{if("string"!=typeof t)return t;let r=l(s,e);if(!r)return t;let[o,,a]=r;return"value"!==o.type||"documentValue"!==o.source.type?t:i(t,e.documents[o.source.document],n(e.paths[o.source.path]+a))})}function a(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return null!==t&&Array.isArray(t)?t.map((t,s)=>a(t,e,i.concat(s))):"object"==typeof t&&null!==t?Object.fromEntries(Object.entries(t).map(t=>{let[s,r]=t;return[s,a(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 o=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==o.length)return;let[a,l]=o[0],h=n.substring(a.length);return[l,a,h]}},624:function(t,e,i){"use strict";i.d(e,{n8:function(){return o},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 o(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 a=`${Object.values(s).map(t=>`\\u{${t.toString(16)}}`).join("")}`,l=RegExp(`[${a}]{4,}`,"gu");function h(t){var e;return{cleaned:t.replace(l,""),encoded:(null==(e=t.match(l))?void 0:e[0])||""}}}
1,96:function(t,e,i){"use strict";i.d(e,{a:function(){return p}});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 o=["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 a{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=o[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,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=i,r=0;for(r=i;s<e;r++){var n;let e=(n=t.codePointAt(r))>>16?4:n>>11?3:n>>7?2:1;4===e&&r++,s+=e}return r}var h=Object.defineProperty,u=(t,e,i)=>e in t?h(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;class c{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}}
1objectSetField(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=l(e,i),n=l(e,s,r);t.data+=e.slice(r,n)}stringAppendValue(t,e){t.data+=e}}function p(t,e){return new a(new c,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.