PageSourceSearch

https://quikirr.com/_next/static/chunks/499-dbad3034b967cd86.js

js quikirr.com collected 2026-10-04 06:47:24 UTC 13,461 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[499],{499:(e,t,r)=>{r.r(t),r.d(t,{VERIFIED_ARTIFACT_WORKER_BOOT_WAIT_MS:()=>E,__resetStoragePointerFetchWorkerForTests:()=>D,__resetTransferableStreamsSupportForTests:()=>v,fetchStoragePointerJson:()=>F,unwrapStoragePointerParserResult:()=>b});var a=r(62923),o=r(26348),n=r(91494);class s extends SyntaxError{constructor(e){super(e),this.name="RawUploadSnapshotParseError",Object.setPrototypeOf(this,s.prototype)}}function i(e){return 32===e||10===e||13===e||9===e}function l(e,t){let r=t;for(;r<e.length&&i(e[r]);)r+=1;return r}function c(e,t){let r=t+1;for(;r<e.length;){let t=e[r];if(92===t){r+=2;continue}if(r+=1,34===t)return r}throw new s("Raw source snapshot ends inside a string.")}function u(e,t){let r=e[t];if(34===r)return c(e,t);if(123!==r&&91!==r){let r=t;for(;r<e.length&&44!==e[r]&&125!==e[r]&&93!==e[r]&&!i(e[r]);)r+=1;if(r===t)throw new s("Raw source snapshot has an empty value.");return r}let a=0,o=t;for(;o<e.length;){let t=e[o];if(34===t){o=c(e,o);continue}if(123===t||91===t)a+=1;else if((125===t||93===t)&&0==(a-=1))return o+1;o+=1}throw new s("Raw source snapshot ends inside a value.")}function*d(e,t,r,a,o){if(123!==e[t])throw new s("Raw source snapshot is not a JSON object.");let n=l(e,t+1);if(125===e[n])return n+1;for(;;){if(34!==e[n])throw new s("Raw source snapshot has a malformed member key.");let t=n,i=c(e,n),d=JSON.parse(r.decode(e.subarray(t,i)));if(n=l(e,i),58!==e[n])throw new s("Raw source snapshot member has no value.");let f=l(e,n+1),p=(yield*a({key:d,start:t,valueStart:f}))??u(e,f);if(o.push({key:d,start:t,valueStart:f,valueEnd:p}),n=l(e,p),44===e[n]){n=l(e,n+1);continue}if(125===e[n])return n+1;throw new s("Raw source snapshot object is malformed.")}}function*f(){return null}async function p(e,t){let r=t.now??(()=>performance.now()),a=Math.max(0,t.sliceMs??12),o=function*(e,t){let r=new TextDecoder,a=l(e,0);if(123!==e[a])return JSON.parse(r.decode(e));let o={grid:null,nestedGridCut:null},n=[],i=yield*d(e,a,r,function*({key:a,valueStart:n}){if("excelData"===a&&91===e[n]&&null===o.grid){let a=yield*function*(e,t,r,a){if(91!==e[t])throw new s("Raw source snapshot grid is not an array.");let o=[],n=-1,i=-1,c=()=>{if(n<0)return;let t=JSON.parse(`[${r.decode(e.subarray(n,i))}]`);for(let e=0;e<t.length;e+=1)o.push(t[e]);n=-1},d=l(e,t+1);if(93===e[d])return{rows:o,end:d+1};for(;;){let t=u(e,d);if(n<0&&(n=d),(i=t)-n>=a&&(c(),yield),d=l(e,t),44===e[d]){d=l(e,d+1);continue}if(93===e[d])return c(),{rows:o,end:d+1};throw new s("Raw source snapshot grid is malformed.")}}(e,n,r,t);return o.grid=a.rows,a.end}if("excelPayload"===a&&123===e[n]){let t=[],a=function(e){for(;;){let t=e.next();if(t.done)return t.value}}(d(e,n,r,f,t)),s=t.find(e=>"excelData"===e.key);return s&&(o.nestedGridCut=function(e,t){let r=t.indexOf(e),a=t[r+1];if(a)return[e.start,a.start];let o=t[r-1];return o?[o.valueEnd,e.valueEnd]:[e.start,e.valueEnd]}(s,t)),a}return null},n);if(l(e,i)!==e.length)throw new s("Raw source snapshot has trailing content.");let c=null===o.grid?void 0:n.find(e=>"excelData"===e.key);if(!c)return JSON.parse(r.decode(e));let p=[[c.valueStart,c.valueEnd,"[]"]];o.nestedGridCut&&p.push([o.nestedGridCut[0],o.nestedGridCut[1],""]),p.sort((e,t)=>e[0]-t[0]);let h="",w=a;for(let[t,a,o]of p)h+=r.decode(e.subarray(w,t))+o,w=a;let g=JSON.parse(h+=r.decode(e.subarray(w,i)));return g.excelData=o.grid,g}(e,Math.max(1,t.batchBytes??4194304)),n=r();for(;;){let e=o.next();if(e.done)return e.value;if(!(r()-n<a)){if(await t.yieldToHost(),t.signal?.aborted)throw t.signal.reason??new DOMException("Aborted","AbortError");n=r()}}}var h=r(74981),w=r(66645),g=r(11832),y=r(91188);function b(e){if(null===e||"object"!=typeof e||"storage_pointer_parsed_v2"!==e.schemaVersion||!Object.hasOwn(e,"payload")||!Object.hasOwn(e,"compactPublishedHash"))throw Error("[storage_pointer_parser_protocol_mismatch] Reload this page to load the saved analysis.");if(null!==e.compactPublishedHash&&("string"!=typeof e.compactPublishedHash||!/^[a-f0-9]{64}$/.test(e.compactPublishedHash)))throw Error("[storage_pointer_parser_validation_invali
1d] Saved analysis validation is invalid.");return(0,a.Oc)(e.payload,e.compactPublishedHash)}function m(e){if(e?.aborted)throw e.reason??new DOMException("Aborted","AbortError")}function _(e,t){if(null==t||e<=t)return;let r=Error("Storage pointer response exceeded its safe size limit");throw r.name="StoragePointerResponseTooLargeError",r}let S=null,x=null;async function k(){if(!S){if("u"<typeof Worker)throw w.vF.error("[StoragePointerFetchWorker] Web Worker unavailable",{fallback_state:"storage_pointer_fetch_worker_unavailable"}),Error("Storage pointer fetch worker is unavailable.");let{createStoragePointerFetchWorker:e}=await r.e(6169).then(r.bind(r,6169)),t=e(),a=(0,o.LV)(t);await a.ping(),S={worker:t,api:a}}return S.api}function v(){x=null}function D(){S=null}let E=15e3;async function M(e){let t,r=new Promise(e=>{t=setTimeout(()=>e({fallbackState:"storage_pointer_artifact_worker_boot_timeout",detail:`the parse worker did not answer within ${E}ms`}),E)});try{return await Promise.race([e.then(e=>({worker:e}),e=>({fallbackState:"storage_pointer_artifact_worker_unavailable",detail:e instanceof Error?e.message:String(e)})),r])}finally{clearTimeout(t)}}async function P(e){let t,r,{url:n,artifact:s,signal:i}=e,l=e.fetchImpl??fetch;m(i);let c=k();c.catch(()=>void 0);try{let e=await l(n,{credentials:"same-origin",...i?{signal:i}:{}});if(!e.ok)throw new y.Bp("artifact_download_failed",`${s.label} status ${e.status}`);t=await e.arrayBuffer()}catch(e){if(m(i),e instanceof y.Bp)throw e;throw new y.Bp("artifact_download_failed",`${s.label}: ${e instanceof Error?e.message:String(e)}`)}m(i);let u=await M(c);return(m(i),"worker"in u)?b(await u.worker.decodeVerifiedGzipArtifact((0,o.k0)(t,[t]),s)):(r={artifact:s.label,sizeBytes:s.expected.sizeBytes,reason:u.detail},w.vF.error("[StoragePointerFetch] Parse worker unavailable; decoding the verified artifact on the main thread",{...r,fallback_state:u.fallbackState}),(0,g.K)({emitter:"StoragePointerFetch",failureLogMessage:"[StoragePointerFetch] Failed to deliver the verified-artifact main-thread decode alert",failureContext:r,heading:"Compute artifact decoded on the main thread",message:`${s.label} (${s.expected.sizeBytes} compressed bytes) was verified and decoded on the page's main thread: ${u.detail}.`,type:"warning",deliveryMode:"confirmed",throwOnFailure:!1,dedupeKey:`storage-pointer:${u.fallbackState}:${s.label}`,dedupeWindowMs:6e5,metadata:{...r,fallbackState:u.fallbackState}}),(0,a.Oc)(await (0,y.rO)(new Uint8Array(t),s),null))}async function F(e){let t;if("compute-artifact"===e.store)return P(e);let{onTiming:r,onDownloadProgress:s,nowMs:i=()=>performance.now(),signal:l,...c}=e;m(l);let u=i(),d="cooperative"===e.parseTransport&&("source-data"===e.store||(w.vF.error("[StoragePointerFetch] Cooperative parse requested for a store it cannot slice",{store:e.store,fallback_state:"storage_pointer_cooperative_parse_store_unsupported"}),!1)),f=d?null:k();f?.catch(()=>void 0);let g=t=>{if(r)try{r(t)}catch(t){w.vF.error("[StoragePointerFetch] Timing callback failed",{store:e.store,url:e.url,error:t instanceof Error?t.message:String(t),fallback_state:"storage_pointer_timing_callback_failed"})}};try{t=await fetch(e.url,{credentials:"same-origin",...l?{signal:l}:{}})}catch(t){if(t instanceof TypeError){m(l),w.vF.error("[StoragePointerFetch] Main-thread fetch failed; falling back to worker fetch",{fallback_state:"storage_pointer_mainthread_fetch_failed",store:e.store,url:e.url,error:t instanceof Error?t.message:String(t)});let r=await (f??k());m(l);let a=await r.fetchJson(c),o=i();return g({transport:"worker-fetch-fallback",requestDurationMs:null,downloadDurationMs:null,parseDurationMs:null,unsplitTransportDurationMs:o-u,responseBytes:null,totalDurationMs:o-u}),b(a)}throw t}t.ok||await (0,y.VF)(t,e.store);let S=t.headers?.get?.("content-length"),v=Number(S);if(null!=S&&Number.isFinite(v)&&_(v,c.maxResponseBytes),f&&null==c.maxResponseBytes&&"buffer"!==e.parseTransport&&t.body&&function(){if(null!=x)return x;try{let e=new ReadableStream,{port1:t,port2:r}=new MessageChannel;t.postMessage(e,[e]),t.close(),r.close(),x=!0}catch{x=!1}return x}()){let r=i(),a=await f;m(l);let n=await a.parseJsonStream((0,o.k0)(t.body,[t.body]),c.store,c.payloadKind),s=i();return g({transport:"stream",requestDurationMs:r-u,downloadDurationMs:null,parseDurationMs:null,unsplitTrans
1portDurationMs:s-r,responseBytes:null,totalDurationMs:s-u}),(0,y.V5)(b(n),e.store,t)}d||w.vF.debug("[StoragePointerFetch] Using off-thread ArrayBuffer JSON parse",{fallback_state:"buffer"===e.parseTransport?"storage_pointer_buffer_transport_selected":"storage_pointer_stream_transfer_unsupported",store:e.store});let D=i(),E=s&&null!=S&&Number.isFinite(v)&&v>0?v:null,M=t=>{if(s)try{s(t)}catch(t){w.vF.error("[StoragePointerFetch] Download progress callback failed",{store:e.store,url:e.url,error:t instanceof Error?t.message:String(t),fallback_state:"storage_pointer_download_progress_callback_failed"})}},F=null!=E&&t.body?(async()=>{_(E,c.maxResponseBytes);let e=new Uint8Array(E),r=t.body.getReader(),a=0;try{for(;;){let{done:t,value:o}=await r.read();if(t)break;if(o){if(m(l),a+o.byteLength>E)throw Error("Storage pointer response exceeded its declared content-length");e.set(o,a),a+=o.byteLength,M({receivedBytes:a,totalBytes:E,percent:Math.max(0,Math.min(100,Math.round(a/E*100)))})}}}finally{r.releaseLock()}if(m(l),a!==E)throw Error("Storage pointer response ended before its declared content-length");return{buffer:e.buffer,responseBytes:a,downloadCompletedAtMs:i()}})():t.arrayBuffer().then(e=>{m(l);let t=e.byteLength;return _(t,c.maxResponseBytes),{buffer:e,responseBytes:t,downloadCompletedAtMs:i()}});if(!f){let{buffer:r,responseBytes:o,downloadCompletedAtMs:s}=await F;m(l);let c=i(),d=await p(new Uint8Array(r),{yieldToHost:n.W,signal:l,now:i}),f=i();return g({transport:"cooperative",requestDurationMs:D-u,downloadDurationMs:s-D,parseDurationMs:f-c,unsplitTransportDurationMs:null,responseBytes:o,totalDurationMs:f-u}),(0,y.V5)((0,a.Oc)((0,h.VC)(d),null),e.store,t)}let[{buffer:R,responseBytes:T,downloadCompletedAtMs:O},A]=await Promise.all([F,f]);m(l);let $=i(),B=await A.parseJsonBuffer((0,o.k0)(R,[R]),c.store,c.payloadKind),C=i();return g({transport:"buffer",requestDurationMs:D-u,downloadDurationMs:O-D,parseDurationMs:C-$,unsplitTransportDurationMs:null,responseBytes:T,totalDurationMs:C-u}),(0,y.V5)(b(B),e.store,t)}},74981:(e,t,r)=>{function a(e){if(!e||"object"!=typeof e||Array.isArray(e)||!("excelData"in e))return e;let t={...e};return delete t.excelData,t}function o(e){if(!e||"object"!=typeof e||Array.isArray(e)||!Array.isArray(e.excelData))return e;let t=a(e.excelPayload);return t===e.excelPayload?e:{...e,excelPayload:t}}function n(e){let{excelPayload:t,topLevelExcelData:r}=e;return!t||"object"!=typeof t||Array.isArray(t)||null!=t.excelData||null==r?t:{...t,excelData:r}}r.d(t,{Pz:()=>a,VC:()=>o,sz:()=>n})},91188:(e,t,r)=>{r.d(t,{Bp:()=>i,V5:()=>f,VF:()=>w,j1:()=>h,mB:()=>l,rO:()=>d});var a=r(30165),o=r(51483);let n=new Set(["artifact_download_failed","artifact_integrity_failed","artifact_decode_failed","artifact_malformed"]),s="VerifiedGzipArtifactReadError";class i extends Error{constructor(e,t){super(`[${e}] ${t}`),this.name=s,this.code=e}}function l(e){if(e instanceof i)return e.code;if(!(e instanceof Error)||e.name!==s)return null;let t=/^\[([a-z_]+)\]/.exec(e.message)?.[1];return t&&n.has(t)?t:null}async function c(e){return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",e)),e=>e.toString(16).padStart(2,"0")).join("")}async function u(e,t){let r=e=>void 0!==t&&e>t;if("u">typeof DecompressionStream){let a=new ReadableStream({start(t){t.enqueue(e),t.close()}}).pipeThrough(new DecompressionStream("gzip")).pipeThrough(new TextDecoderStream).getReader(),o=[],n=0;for(;;){let{value:e,done:s}=await a.read();if(s)break;if(r(n+=e.length))throw await a.cancel(),RangeError(`decoded artifact exceeds the ${t}-char budget`);o.push(e)}return o.join("")}let o=a.default.ungzip(e,{to:"string"});if(r(o.length))throw RangeError(`decoded artifact exceeds the ${t}-char budget`);return o}async function d(e,t){let r;if(e.byteLength!==t.expected.sizeBytes||await c(e)!==t.expected.sha256)throw new i("artifact_integrity_failed",`${t.label} (expected ${t.expected.sizeBytes} bytes, read ${e.byteLength})`);try{r=await u(e,t.maxDecodedChars)}catch(e){throw new i("artifact_decode_failed",`${t.label}: ${e instanceof Error?e.message:String(e)}`)}try{return JSON.parse(r)}catch(e){throw new i("artifact_malformed",`${t.label}: ${e instanceof Error?e.message:String(e)}`)}}function f(e,t,r){return"version"===t?(0,o.BV)(e,r.headers?.get?.(o.VI)??null):e}
1class p extends Error{constructor(e){super(`Failed to fetch ${e.store} pointer payload (${e.status}): ${e.errorText}`),this.name="StoragePointerFetchError",this.status=e.status,this.requestId=e.requestId}}function h(e){return e instanceof p||"object"==typeof e&&null!=e&&"StoragePointerFetchError"===e.name&&"number"==typeof e.status}async function w(e,t){let r=e.statusText;try{let t=await e.json();r="string"==typeof t?.error?t.error:JSON.stringify(t)}catch(t){try{r=await e.text()}catch(t){r=e.statusText}}throw new p({store:t,status:e.status,errorText:r,requestId:e.headers?.get?.("x-quikirr-request-id")??e.headers?.get?.("x-request-id")??null})}}}]);

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.