@loaders.gl/crypto
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -1,2 +0,2 @@ | ||
"use strict";(()=>{function fe(i,e=!0,x){let A=x||new Set;if(i){if(me(i))A.add(i);else if(me(i.buffer))A.add(i.buffer);else if(!ArrayBuffer.isView(i)){if(e&&typeof i=="object")for(let b in i)fe(i[b],e,A)}}return x===void 0?Array.from(A):[]}function me(i){return i?i instanceof ArrayBuffer||typeof MessagePort<"u"&&i instanceof MessagePort||typeof ImageBitmap<"u"&&i instanceof ImageBitmap||typeof OffscreenCanvas<"u"&&i instanceof OffscreenCanvas:!1}async function N(){let parentPort;try{eval("globalThis.parentPort = require('worker_threads').parentPort"),parentPort=globalThis.parentPort}catch{try{eval("globalThis.workerThreadsPromise = import('worker_threads')");let workerThreads=await globalThis.workerThreadsPromise;parentPort=workerThreads.parentPort}catch(i){console.error(i.message)}}return parentPort}var ce=new Map,W=class{static async inWorkerThread(){return typeof self<"u"||Boolean(await N())}static set onmessage(e){async function x(A){let b=await N(),{type:l,payload:p}=b?A:A.data;e(l,p)}N().then(A=>{A?(A.on("message",x),A.on("exit",()=>console.debug("Node worker closing"))):globalThis.onmessage=x})}static async addEventListener(e){let x=ce.get(e);x||(x=async b=>{if(!ke(b))return;let l=await N(),{type:p,payload:E}=l?b:b.data;e(p,E)}),await N()?console.error("not implemented"):globalThis.addEventListener("message",x)}static async removeEventListener(e){let x=ce.get(e);ce.delete(e),await N()?console.error("not implemented"):globalThis.removeEventListener("message",x)}static async postMessage(e,x){let A={source:"loaders.gl",type:e,payload:x},b=fe(x),l=await N();l?l.postMessage(A,b):globalThis.postMessage(A,b)}};function ke(i){let{type:e,data:x}=i;return e==="message"&&x&&typeof x.source=="string"&&x.source.startsWith("loaders.gl")}var z=class{_values;_settlers;_closed;constructor(){this._values=[],this._settlers=[],this._closed=!1}[Symbol.asyncIterator](){return this}push(e){return this.enqueue(e)}enqueue(e){if(this._closed)throw new Error("Closed");if(this._settlers.length>0){if(this._values.length>0)throw new Error("Illegal internal state");let x=this._settlers.shift();e instanceof Error?x.reject(e):x.resolve({value:e})}else this._values.push(e)}close(){for(;this._settlers.length>0;)this._settlers.shift().resolve({done:!0});this._closed=!0}next(){if(this._values.length>0){let e=this._values.shift();return e instanceof Error?Promise.reject(e):Promise.resolve({done:!1,value:e})}if(this._closed){if(this._settlers.length>0)throw new Error("Illegal internal state");return Promise.resolve({done:!0,value:void 0})}return new Promise((e,x)=>{this._settlers.push({resolve:e,reject:x})})}};var Fe=0,te,ye;async function xe(i,e){if(!await W.inWorkerThread())return;let x={process:Ge};W.onmessage=async(A,b)=>{try{switch(A){case"process":if(!i)throw new Error("Worker does not support atomic processing");let l=await i(b.input,b.options||{},x);W.postMessage("done",{result:l});break;case"process-in-batches":if(!e)throw new Error("Worker does not support batched processing");te=new z,ye=b.options||{};let p=e(te,ye,x);for await(let E of p)W.postMessage("output-batch",{result:E});W.postMessage("done",{});break;case"input-batch":te.push(b.input);break;case"input-done":te.close();break;default:}}catch(l){let p=l instanceof Error?l.message:"";W.postMessage("error",{error:p})}}}function Ge(i,e={}){return new Promise((x,A)=>{let b=Fe++,l=(E,C)=>{if(C.id===b)switch(E){case"done":W.removeEventListener(l),x(C.result);break;case"error":W.removeEventListener(l),A(C.error);break;default:}};W.addEventListener(l);let p={id:b,input:i,options:e};W.postMessage("process",p)})}function Be(...i){let e=i.map(l=>l instanceof ArrayBuffer?new Uint8Array(l):l),x=e.reduce((l,p)=>l+p.byteLength,0),A=new Uint8Array(x),b=0;for(let l of e)A.set(l,b),b+=l.byteLength;return A.buffer}async function ie(i){let e=[];for await(let x of i)e.push(x);return Be(...e)}var Z=class{constructor(e={}){this.hashBatches=this.hashBatches.bind(this)}async preload(){}async*hashBatches(e,x="base64"){let A=[];for await(let p of e)A.push(p),yield p;let b=await this.concatenate(A),l=await this.hash(b,x);this.options.crypto?.onEnd?.({hash:l})}async concatenate(e){return await ie(e)}};var O=class{crc;constructor(){this.crc=-1}update(e){let x=Se(),A=new Uint8Array(e);for(let b=0;b<A.byteLength;b++)this.crc=this.crc>>>8^x[(this.crc^A[b])&255];return this}finalize(){return this.crc=Math.abs(this.crc^-1),this.crc}},Pe=Uint32Array.of(0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117);function Se(){return Pe}function ge(i){i=`${i}`;for(let x=0;x<i.length;x++)if(i.charCodeAt(x)>255)return null;let e="";for(let x=0;x<i.length;x+=3){let A=[void 0,void 0,void 0,void 0];A[0]=i.charCodeAt(x)>>2,A[1]=(i.charCodeAt(x)&3)<<4,i.length>x+1&&(A[1]|=i.charCodeAt(x+1)>>4,A[2]=(i.charCodeAt(x+1)&15)<<2),i.length>x+2&&(A[2]|=i.charCodeAt(x+2)>>6,A[3]=i.charCodeAt(x+2)&63);for(let b=0;b<A.length;b++)typeof A[b]>"u"?e+="=":e+=Le(A[b])}return e}function Le(i){if(i<26)return String.fromCharCode(i+"A".charCodeAt(0));if(i<52)return String.fromCharCode(i-26+"a".charCodeAt(0));if(i<62)return String.fromCharCode(i-52+"0".charCodeAt(0));if(i===62)return"+";if(i===63)return"/"}function _(i,e){switch(e){case"hex":return we(i);case"base64":return Qe(we(i));default:throw new Error(e)}}function Ee(i,e){switch(e){case"hex":return i;case"base64":return Qe(i);default:throw new Error(e)}}function Qe(i){i.length%2!==0&&(i=`0${i}`);let x=(i.match(/\w{2}/g)||[]).map(A=>String.fromCharCode(parseInt(A,16))).join("");return ge(x)||""}function we(i){let e=i.toString(16);return e==="0"?`0${e}`:e}var ae=class extends Z{name="crc32";options;_hash;constructor(e={}){super(),this.options={crypto:{},...e},this._hash=new O,this.hashBatches=this.hashBatches.bind(this)}async hash(e,x){return this.hashSync(e,x)}hashSync(e,x){this._hash.update(e);let A=this._hash.finalize();return _(A,x)}async*hashBatches(e,x="base64"){for await(let l of e)this._hash.update(l),yield l;let A=this._hash.finalize(),b=_(A,x);this.options.crypto?.onEnd?.({hash:b})}};var Y=class{options;crc;constructor(e={}){this.options=e,this.crc=-1}update(e){let x=new Uint8Array(e),A=qe();for(let b=0;b<x.length;b++)this.crc=A[(this.crc^x[b])&255]^this.crc>>>8;return this}finalize(){return this.crc=(this.crc^-1)>>>0,this.crc}},De=Int32Array.of(0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697);function qe(){return De}var oe=class extends Z{name="crc32c";options;_hash;constructor(e={}){super(),this.options={crypto:{},...e},this._hash=new Y(e)}async hash(e,x){return this.hashSync(e,x)}hashSync(e,x){this._hash.update(e);let A=this._hash.finalize();return _(A,x)}async*hashBatches(e,x="base64"){for await(let l of e)this._hash.update(l),yield l;let A=this._hash.finalize(),b=_(A,x);this.options.crypto?.onEnd?.({hash:b})}};var Ie=typeof atob=="function"?atob:typeof Buffer=="function"?Ne:ve,je=Ie("AGFzbQEAAAABDANgAX8AYAAAYAABfwIeAgdpbXBvcnRzA2xvZwAAB2ltcG9ydHMDbWVtAgABAzIxAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAAAAAAAAAAAAAgICAgIAAAAAAAaYARt/AUGBxpS6Bgt/AUGJ17b+fgt/AUH+uevFeQt/AUH2qMmBAQt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFB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0QSkEZ2V0QioEZ2V0QysEZ2V0RCwEZ2V0WC0Ec2V0QS4Ec2V0Qi8Ec2V0QzAEc2V0RDEEc2V0WALNATIAAQAAAQIAAAEIbnVtbG9vcHMCAAMABAAFAAYABwAIAAkACgALAAwADQAOAA8AEAARABIAEwAUABUAFgAXABgCAAABAW4ZAgAAAQFuGgIAAAEBbhsCAAABAW4cAgAAAQFuHQIAAAEBbh4CAAABAW4fAgAAAQFuIAIAAAEBbiECAAABAW4iAgAAAQFuIwIAAAEBbiQCAAABAW4lAgAAAQFuJgIAAAEBbicCAAABAW4oACkAKgArACwALQEAAC4BAAAvAQAAMAEAADEBAAA="),Ae=WebAssembly&&Ie!==ve?Ze(je).buffer:!1,j=Ve(),de=240*16*16,Me=Math.floor(de*16*1.066666667),Re=268435456-65536,Ce="Parameter must be Buffer, ArrayBuffer or Uint8Array",Ue="Parameter exceeds max size of 255.9 Mbytes";Ae||console.log("WebAssembly not available or WASM module could not be decoded; md5WASM will fall back to JavaScript");function be(i){var e,x,A,b,l,p,E,C,P,L;let R=Je(),T=He(),k={},G=new Date().getTime();return k.then=function(m){return E=m,I(),k},k.catch=function(m){return C=m,k},i&&typeof i=="object"?typeof Buffer=="function"&&i.constructor===Buffer?p=i:i.constructor===Uint8Array||i.constructor===ArrayBuffer?p=i.constructor===ArrayBuffer?new Uint8Array(i):i:Q(new TypeError(Ce)):Q(new TypeError(Ce)),p&&(l=p.length,Ae&&l>Me?l>Re?Q(new Error(Ue)):(e=new WebAssembly.Memory({initial:l>32e6?l>64e6?l>128e6?4096:2048:1024:512}),x=new Uint32Array(e.buffer),b={mem:e,log:console.log},A={imports:b},WebAssembly.instantiate(Ae,A).then(y)):I(R(p))),k;function y(m){I(T(p,m.instance.exports,x))}function I(m){var S=Boolean(m)?m:P;Boolean(m)&&(L=new Date().getTime()),typeof E=="function"?Boolean(S)&&(E(S,L-G),E=C=null):Boolean(m)&&(P=m)}function Q(m){typeof C=="function"&&C(m)}}function He(){var i,e,x,A,b,l,p,E,C,P,L,R,T,k=function(G){var y,I,Q,m,S,U,H,J,h,V,r,t,a,o,D,F,g,d,K,$,w,_e,Xe=new Date().getTime(),We=0,s=1732584193,n=-271733879,f=-1732584194,c=271733878,B=0,X=G.length*8,ee;for(ee=Te(G,T),T[X>>>5]|=128<<X%32,T[(X+64>>>9<<4)+14]=X,ee=(X+64>>>9<<4)+15,w=T;B<ee;)ee>B+Me?(A(s),l(n),E(f),P(c),e(de),B=B+de*16,s=x(),n=b(),f=p(),c=C(),We++):(g=s,d=n,K=f,$=c,y=w[B+0]>>>0,I=w[B+1]>>>0,Q=w[B+2]>>>0,m=w[B+3]>>>0,S=w[B+4]>>>0,U=w[B+5]>>>0,H=w[B+6]>>>0,J=w[B+7]>>>0,h=w[B+8]>>>0,V=w[B+9]>>>0,r=w[B+10]>>>0,t=w[B+11]>>>0,a=w[B+12]>>>0,o=w[B+13]>>>0,D=w[B+14]>>>0,F=w[B+15]>>>0,s=u(7,25,s+(n&f|~n&c)+y-680876936)+n,c=u(12,20,c+(s&n|~s&f)+I-389564586)+s,f=u(17,15,f+(c&s|~c&n)+Q+606105819)+c,n=u(22,10,n+(f&c|~f&s)+m-1044525330)+f,s=u(7,25,s+(n&f|~n&c)+S-176418897)+n,c=u(12,20,c+(s&n|~s&f)+U+1200080426)+s,f=u(17,15,f+(c&s|~c&n)+H-1473231341)+c,n=u(22,10,n+(f&c|~f&s)+J-45705983)+f,s=u(7,25,s+(n&f|~n&c)+h+1770035416)+n,c=u(12,20,c+(s&n|~s&f)+V-1958414417)+s,f=u(17,15,f+(c&s|~c&n)+r-42063)+c,n=u(22,10,n+(f&c|~f&s)+t-1990404162)+f,s=u(7,25,s+(n&f|~n&c)+a+1804603682)+n,c=u(12,20,c+(s&n|~s&f)+o-40341101)+s,f=u(17,15,f+(c&s|~c&n)+D-1502002290)+c,n=u(22,10,n+(f&c|~f&s)+F+1236535329)+f,s=u(5,27,s+(n&c|f&~c)+I-165796510)+n,c=u(9,23,c+(s&f|n&~f)+H-1069501632)+s,f=u(14,18,f+(c&n|s&~n)+t+643717713)+c,n=u(20,12,n+(f&s|c&~s)+y-373897302)+f,s=u(5,27,s+(n&c|f&~c)+U-701558691)+n,c=u(9,23,c+(s&f|n&~f)+r+38016083)+s,f=u(14,18,f+(c&n|s&~n)+F-660478335)+c,n=u(20,12,n+(f&s|c&~s)+S-405537848)+f,s=u(5,27,s+(n&c|f&~c)+V+568446438)+n,c=u(9,23,c+(s&f|n&~f)+D-1019803690)+s,f=u(14,18,f+(c&n|s&~n)+m-187363961)+c,n=u(20,12,n+(f&s|c&~s)+h+1163531501)+f,s=u(5,27,s+(n&c|f&~c)+o-1444681467)+n,c=u(9,23,c+(s&f|n&~f)+Q-51403784)+s,f=u(14,18,f+(c&n|s&~n)+J+1735328473)+c,n=u(20,12,n+(f&s|c&~s)+a-1926607734)+f,s=u(4,28,s+(n^f^c)+U-378558)+n,c=u(11,21,c+(s^n^f)+h-2022574463)+s,f=u(16,16,f+(c^s^n)+t+1839030562)+c,n=u(23,9,n+(f^c^s)+D-35309556)+f,s=u(4,28,s+(n^f^c)+I-1530992060)+n,c=u(11,21,c+(s^n^f)+S+1272893353)+s,f=u(16,16,f+(c^s^n)+J-155497632)+c,n=u(23,9,n+(f^c^s)+r-1094730640)+f,s=u(4,28,s+(n^f^c)+o+681279174)+n,c=u(11,21,c+(s^n^f)+y-358537222)+s,f=u(16,16,f+(c^s^n)+m-722521979)+c,n=u(23,9,n+(f^c^s)+H+76029189)+f,s=u(4,28,s+(n^f^c)+V-640364487)+n,c=u(11,21,c+(s^n^f)+a-421815835)+s,f=u(16,16,f+(c^s^n)+F+530742520)+c,n=u(23,9,n+(f^c^s)+Q-995338651)+f,s=u(6,26,s+(f^(n|~c))+y-198630844)+n,c=u(10,22,c+(n^(s|~f))+J+1126891415)+s,f=u(15,17,f+(s^(c|~n))+D-1416354905)+c,n=u(21,11,n+(c^(f|~s))+U-57434055)+f,s=u(6,26,s+(f^(n|~c))+a+1700485571)+n,c=u(10,22,c+(n^(s|~f))+m-1894986606)+s,f=u(15,17,f+(s^(c|~n))+r-1051523)+c,n=u(21,11,n+(c^(f|~s))+I-2054922799)+f,s=u(6,26,s+(f^(n|~c))+h+1873313359)+n,c=u(10,22,c+(n^(s|~f))+F-30611744)+s,f=u(15,17,f+(s^(c|~n))+H-1560198380)+c,n=u(21,11,n+(c^(f|~s))+o+1309151649)+f,s=u(6,26,s+(f^(n|~c))+S-145523070)+n,c=u(10,22,c+(n^(s|~f))+t-1120210379)+s,f=u(15,17,f+(s^(c|~n))+Q+718787259)+c,n=u(21,11,n+(c^(f|~s))+V-343485551)+f,B=B+16,s=s+g>>>0,n=n+d>>>0,f=f+K>>>0,c=c+$>>>0);return j.endian([s,n,f,c]);function u(M,re,q){return q<<M|q>>>re}function Te(M,re){for(var q=-1,ne=Math.floor((M.length-1)/4),v=0,ue,le,pe,he;ne-8>q++;)v=q<<2,re[q]=M[v+0]|M[v+1]<<8|M[v+2]<<16|M[v+3]<<24;for(q--;ne>q++;)v=q<<2,ue=typeof M[v+0]>"u"?0:M[v+0],le=typeof M[v+1]>"u"?0:M[v+1],pe=typeof M[v+2]>"u"?0:M[v+2],he=typeof M[v+3]>"u"?0:M[v+3],re[q]=ue|le<<8|pe<<16|he<<24;return ne+1}};return function(G,y,I,Q){var m;return e=y.loops,i=y.loop,x=y.getA,b=y.getB,p=y.getC,C=y.getD,L=y.getX,A=y.setA,l=y.setB,E=y.setC,P=y.setD,R=y.setX,T=I,m=j.wordsToBytes(k(G)),Q&&Q.asBytes?m:j.bytesconvertNumberToHex(m)}}function Je(){var i=function(e,x){var A,b,l,p,E,C,P,L,R,T,k,G,y,I,Q,m,S,U,H,J,h,V=new Date().getTime(),r=1732584193,t=-271733879,a=-1732584194,o=271733878,D=e.length*8;h=j.bytesToWords(e);for(var F=0;F<h.length;F++)h[F]=(h[F]<<8|h[F]>>>24)&16711935|(h[F]<<24|h[F]>>>8)&4278255360;h[D>>>5]|=128<<D%32,h[(D+64>>>9<<4)+14]=D;for(var g=0;g<h.length;g+=16)S=r,U=t,H=a,J=o,A=h[g+0]>>>0,b=h[g+1]>>>0,l=h[g+2]>>>0,p=h[g+3]>>>0,E=h[g+4]>>>0,C=h[g+5]>>>0,P=h[g+6]>>>0,L=h[g+7]>>>0,R=h[g+8]>>>0,T=h[g+9]>>>0,k=h[g+10]>>>0,G=h[g+11]>>>0,y=h[g+12]>>>0,I=h[g+13]>>>0,Q=h[g+14]>>>0,m=h[g+15]>>>0,r=d(7,25,r+(t&a|~t&o)+A-680876936)+t,o=d(12,20,o+(r&t|~r&a)+b-389564586)+r,a=d(17,15,a+(o&r|~o&t)+l+606105819)+o,t=d(22,10,t+(a&o|~a&r)+p-1044525330)+a,r=d(7,25,r+(t&a|~t&o)+E-176418897)+t,o=d(12,20,o+(r&t|~r&a)+C+1200080426)+r,a=d(17,15,a+(o&r|~o&t)+P-1473231341)+o,t=d(22,10,t+(a&o|~a&r)+L-45705983)+a,r=d(7,25,r+(t&a|~t&o)+R+1770035416)+t,o=d(12,20,o+(r&t|~r&a)+T-1958414417)+r,a=d(17,15,a+(o&r|~o&t)+k-42063)+o,t=d(22,10,t+(a&o|~a&r)+G-1990404162)+a,r=d(7,25,r+(t&a|~t&o)+y+1804603682)+t,o=d(12,20,o+(r&t|~r&a)+I-40341101)+r,a=d(17,15,a+(o&r|~o&t)+Q-1502002290)+o,t=d(22,10,t+(a&o|~a&r)+m+1236535329)+a,r=d(5,27,r+(t&o|a&~o)+b-165796510)+t,o=d(9,23,o+(r&a|t&~a)+P-1069501632)+r,a=d(14,18,a+(o&t|r&~t)+G+643717713)+o,t=d(20,12,t+(a&r|o&~r)+A-373897302)+a,r=d(5,27,r+(t&o|a&~o)+C-701558691)+t,o=d(9,23,o+(r&a|t&~a)+k+38016083)+r,a=d(14,18,a+(o&t|r&~t)+m-660478335)+o,t=d(20,12,t+(a&r|o&~r)+E-405537848)+a,r=d(5,27,r+(t&o|a&~o)+T+568446438)+t,o=d(9,23,o+(r&a|t&~a)+Q-1019803690)+r,a=d(14,18,a+(o&t|r&~t)+p-187363961)+o,t=d(20,12,t+(a&r|o&~r)+R+1163531501)+a,r=d(5,27,r+(t&o|a&~o)+I-1444681467)+t,o=d(9,23,o+(r&a|t&~a)+l-51403784)+r,a=d(14,18,a+(o&t|r&~t)+L+1735328473)+o,t=d(20,12,t+(a&r|o&~r)+y-1926607734)+a,r=d(4,28,r+(t^a^o)+C-378558)+t,o=d(11,21,o+(r^t^a)+R-2022574463)+r,a=d(16,16,a+(o^r^t)+G+1839030562)+o,t=d(23,9,t+(a^o^r)+Q-35309556)+a,r=d(4,28,r+(t^a^o)+b-1530992060)+t,o=d(11,21,o+(r^t^a)+E+1272893353)+r,a=d(16,16,a+(o^r^t)+L-155497632)+o,t=d(23,9,t+(a^o^r)+k-1094730640)+a,r=d(4,28,r+(t^a^o)+I+681279174)+t,o=d(11,21,o+(r^t^a)+A-358537222)+r,a=d(16,16,a+(o^r^t)+p-722521979)+o,t=d(23,9,t+(a^o^r)+P+76029189)+a,r=d(4,28,r+(t^a^o)+T-640364487)+t,o=d(11,21,o+(r^t^a)+y-421815835)+r,a=d(16,16,a+(o^r^t)+m+530742520)+o,t=d(23,9,t+(a^o^r)+l-995338651)+a,r=d(6,26,r+(a^(t|~o))+A-198630844)+t,o=d(10,22,o+(t^(r|~a))+L+1126891415)+r,a=d(15,17,a+(r^(o|~t))+Q-1416354905)+o,t=d(21,11,t+(o^(a|~r))+C-57434055)+a,r=d(6,26,r+(a^(t|~o))+y+1700485571)+t,o=d(10,22,o+(t^(r|~a))+p-1894986606)+r,a=d(15,17,a+(r^(o|~t))+k-1051523)+o,t=d(21,11,t+(o^(a|~r))+b-2054922799)+a,r=d(6,26,r+(a^(t|~o))+R+1873313359)+t,o=d(10,22,o+(t^(r|~a))+m-30611744)+r,a=d(15,17,a+(r^(o|~t))+P-1560198380)+o,t=d(21,11,t+(o^(a|~r))+I+1309151649)+a,r=d(6,26,r+(a^(t|~o))+E-145523070)+t,o=d(10,22,o+(t^(r|~a))+G-1120210379)+r,a=d(15,17,a+(r^(o|~t))+l+718787259)+o,t=d(21,11,t+(o^(a|~r))+T-343485551)+a,r=r+S>>>0,t=t+U>>>0,a=a+H>>>0,o=o+J>>>0;return j.endian([r,t,a,o]);function d(K,$,w){return w<<K|w>>>$}};return function(e,x){var A=j.wordsToBytes(i(e,x)),b=x&&x.asBytes?A:j.bytesconvertNumberToHex(A);return b}}function Ze(i){var e,x,A,b=-1;for(e=i.length-1,x=new ArrayBuffer(i.length),A=new Uint8Array(x);e>b++;)A[b]=i.charCodeAt(b);return A}function Ne(i){return Buffer.from(i,"base64").toString("binary")}function ve(i){return i}function Ve(){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";return{rotl:function(e,x){return e<<x|e>>>32-x},endian:function(e){if(e.constructor==Number)return j.rotl(e,8)&16711935|j.rotl(e,24)&4278255360;for(var x=0;x<e.length;x++)e[x]=j.endian(e[x]);return e},bytesToWords:function(e){for(var x=[],A=0,b=0;A<e.length;A++,b+=8)x[b>>>5]|=e[A]<<24-b%32;return x},wordsToBytes:function(e){for(var x=[],A=0;A<e.length*32;A+=8)x.push(e[A>>>5]>>>24-A%32&255);return x},bytesconvertNumberToHex:function(e){for(var x=[],A=0;A<e.length;A++)x.push((e[A]>>>4).toString(16)),x.push((e[A]&15).toString(16));return x.join("")}}}var se=class extends Z{name="md5";options;constructor(e={}){super(),this.options=e}async hash(e,x){let b=await new Promise((l,p)=>be(e).then(l).catch(p));return Ee(b,x)}};xe(async(i,e={})=>{let{operation:x,encoding:A="base64"}=e;switch(x){case"crc32":return await new ae(e).hash(i,A);case"crc32c":return await new oe(e).hash(i,A);case"md5":return await new se(e).hash(i,A);default:throw new Error(`invalid option: ${x}`)}});})(); | ||
"use strict";(()=>{function fe(i,e=!0,x){let A=x||new Set;if(i){if(me(i))A.add(i);else if(me(i.buffer))A.add(i.buffer);else if(!ArrayBuffer.isView(i)){if(e&&typeof i=="object")for(let b in i)fe(i[b],e,A)}}return x===void 0?Array.from(A):[]}function me(i){return i?i instanceof ArrayBuffer||typeof MessagePort<"u"&&i instanceof MessagePort||typeof ImageBitmap<"u"&&i instanceof ImageBitmap||typeof OffscreenCanvas<"u"&&i instanceof OffscreenCanvas:!1}async function N(){let parentPort;try{eval("globalThis.parentPort = require('worker_threads').parentPort"),parentPort=globalThis.parentPort}catch{try{eval("globalThis.workerThreadsPromise = import('worker_threads')");let workerThreads=await globalThis.workerThreadsPromise;parentPort=workerThreads.parentPort}catch(i){console.error(i.message)}}return parentPort}var ce=new Map,v=class{static async inWorkerThread(){return typeof self<"u"||Boolean(await N())}static set onmessage(e){async function x(A){let b=await N(),{type:l,payload:p}=b?A:A.data;e(l,p)}N().then(A=>{A?(A.on("message",x),A.on("exit",()=>console.debug("Node worker closing"))):globalThis.onmessage=x})}static async addEventListener(e){let x=ce.get(e);x||(x=async b=>{if(!ke(b))return;let l=await N(),{type:p,payload:E}=l?b:b.data;e(p,E)}),await N()?console.error("not implemented"):globalThis.addEventListener("message",x)}static async removeEventListener(e){let x=ce.get(e);ce.delete(e),await N()?console.error("not implemented"):globalThis.removeEventListener("message",x)}static async postMessage(e,x){let A={source:"loaders.gl",type:e,payload:x},b=fe(x),l=await N();l?l.postMessage(A,b):globalThis.postMessage(A,b)}};function ke(i){let{type:e,data:x}=i;return e==="message"&&x&&typeof x.source=="string"&&x.source.startsWith("loaders.gl")}var z=class{_values;_settlers;_closed;constructor(){this._values=[],this._settlers=[],this._closed=!1}[Symbol.asyncIterator](){return this}push(e){return this.enqueue(e)}enqueue(e){if(this._closed)throw new Error("Closed");if(this._settlers.length>0){if(this._values.length>0)throw new Error("Illegal internal state");let x=this._settlers.shift();e instanceof Error?x.reject(e):x.resolve({value:e})}else this._values.push(e)}close(){for(;this._settlers.length>0;)this._settlers.shift().resolve({done:!0});this._closed=!0}next(){if(this._values.length>0){let e=this._values.shift();return e instanceof Error?Promise.reject(e):Promise.resolve({done:!1,value:e})}if(this._closed){if(this._settlers.length>0)throw new Error("Illegal internal state");return Promise.resolve({done:!0,value:void 0})}return new Promise((e,x)=>{this._settlers.push({resolve:e,reject:x})})}};var Fe=0,te,ye;async function xe(i,e){if(!await v.inWorkerThread())return;let x={process:Ge};v.onmessage=async(A,b)=>{try{switch(A){case"process":if(!i)throw new Error("Worker does not support atomic processing");let l=await i(b.input,b.options||{},x);v.postMessage("done",{result:l});break;case"process-in-batches":if(!e)throw new Error("Worker does not support batched processing");te=new z,ye=b.options||{};let p=e(te,ye,x);for await(let E of p)v.postMessage("output-batch",{result:E});v.postMessage("done",{});break;case"input-batch":te.push(b.input);break;case"input-done":te.close();break;default:}}catch(l){let p=l instanceof Error?l.message:"";v.postMessage("error",{error:p})}}}function Ge(i,e={}){return new Promise((x,A)=>{let b=Fe++,l=(E,C)=>{if(C.id===b)switch(E){case"done":v.removeEventListener(l),x(C.result);break;case"error":v.removeEventListener(l),A(C.error);break;default:}};v.addEventListener(l);let p={id:b,input:i,options:e};v.postMessage("process",p)})}function Be(...i){let e=i.map(l=>l instanceof ArrayBuffer?new Uint8Array(l):l),x=e.reduce((l,p)=>l+p.byteLength,0),A=new Uint8Array(x),b=0;for(let l of e)A.set(l,b),b+=l.byteLength;return A.buffer}async function ie(i){let e=[];for await(let x of i)e.push(x);return Be(...e)}var Z=class{constructor(e={}){this.hashBatches=this.hashBatches.bind(this)}async preload(){}async*hashBatches(e,x="base64"){let A=[];for await(let p of e)A.push(p),yield p;let b=await this.concatenate(A),l=await this.hash(b,x);this.options.crypto?.onEnd?.({hash:l})}async concatenate(e){return await ie(e)}};var O=class{crc;constructor(){this.crc=-1}update(e){let x=Se(),A=new Uint8Array(e);for(let b=0;b<A.byteLength;b++)this.crc=this.crc>>>8^x[(this.crc^A[b])&255];return this}finalize(){return this.crc=Math.abs(this.crc^-1),this.crc}},Pe=Uint32Array.of(0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117);function Se(){return Pe}function ge(i){i=`${i}`;for(let x=0;x<i.length;x++)if(i.charCodeAt(x)>255)return null;let e="";for(let x=0;x<i.length;x+=3){let A=[void 0,void 0,void 0,void 0];A[0]=i.charCodeAt(x)>>2,A[1]=(i.charCodeAt(x)&3)<<4,i.length>x+1&&(A[1]|=i.charCodeAt(x+1)>>4,A[2]=(i.charCodeAt(x+1)&15)<<2),i.length>x+2&&(A[2]|=i.charCodeAt(x+2)>>6,A[3]=i.charCodeAt(x+2)&63);for(let b=0;b<A.length;b++)typeof A[b]>"u"?e+="=":e+=Le(A[b])}return e}function Le(i){if(i<26)return String.fromCharCode(i+"A".charCodeAt(0));if(i<52)return String.fromCharCode(i-26+"a".charCodeAt(0));if(i<62)return String.fromCharCode(i-52+"0".charCodeAt(0));if(i===62)return"+";if(i===63)return"/"}function _(i,e){switch(e){case"hex":return we(i);case"base64":return Qe(we(i));default:throw new Error(e)}}function Ee(i,e){switch(e){case"hex":return i;case"base64":return Qe(i);default:throw new Error(e)}}function Qe(i){i.length%2!==0&&(i=`0${i}`);let x=(i.match(/\w{2}/g)||[]).map(A=>String.fromCharCode(parseInt(A,16))).join("");return ge(x)||""}function we(i){let e=i.toString(16);return e==="0"?`0${e}`:e}var ae=class extends Z{name="crc32";options;_hash;constructor(e={}){super(),this.options={crypto:{},...e},this._hash=new O,this.hashBatches=this.hashBatches.bind(this)}async hash(e,x){return this.hashSync(e,x)}hashSync(e,x){this._hash.update(e);let A=this._hash.finalize();return _(A,x)}async*hashBatches(e,x="base64"){for await(let l of e)this._hash.update(l),yield l;let A=this._hash.finalize(),b=_(A,x);this.options.crypto?.onEnd?.({hash:b})}};var Y=class{options;crc;constructor(e={}){this.options=e,this.crc=-1}update(e){let x=new Uint8Array(e),A=qe();for(let b=0;b<x.length;b++)this.crc=A[(this.crc^x[b])&255]^this.crc>>>8;return this}finalize(){return this.crc=(this.crc^-1)>>>0,this.crc}},De=Int32Array.of(0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697);function qe(){return De}var oe=class extends Z{name="crc32c";options;_hash;constructor(e={}){super(),this.options={crypto:{},...e},this._hash=new Y(e)}async hash(e,x){return this.hashSync(e,x)}hashSync(e,x){this._hash.update(e);let A=this._hash.finalize();return _(A,x)}async*hashBatches(e,x="base64"){for await(let l of e)this._hash.update(l),yield l;let A=this._hash.finalize(),b=_(A,x);this.options.crypto?.onEnd?.({hash:b})}};var Ie=typeof atob=="function"?atob:typeof Buffer=="function"?Ne:We,je=Ie("AGFzbQEAAAABDANgAX8AYAAAYAABfwIeAgdpbXBvcnRzA2xvZwAAB2ltcG9ydHMDbWVtAgABAzIxAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAAAAAAAAAAAAAAAAAAAAAgICAgIAAAAAAAaYARt/AUGBxpS6Bgt/AUGJ17b+fgt/AUH+uevFeQt/AUH2qMmBAQt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALfwFBAAt/AUEAC38BQQALB7oCJQhvbmVGdWxsQQAYCG9uZUZ1bGxCABkIb25lRnVsbEMAGghvbmVGdWxsRAAbBWxvb3BzAAEEbG9vcAACBXByaW1lAAMFbG9vcEEABAZsb29wQTEABQZsb29wQTI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QAOAA8AEAARABIAEwAUABUAFgAXABgCAAABAW4ZAgAAAQFuGgIAAAEBbhsCAAABAW4cAgAAAQFuHQIAAAEBbh4CAAABAW4fAgAAAQFuIAIAAAEBbiECAAABAW4iAgAAAQFuIwIAAAEBbiQCAAABAW4lAgAAAQFuJgIAAAEBbicCAAABAW4oACkAKgArACwALQEAAC4BAAAvAQAAMAEAADEBAAA="),Ae=WebAssembly&&Ie!==We?Ze(je).buffer:!1,j=Ve(),de=240*16*16,Me=Math.floor(de*16*1.066666667),Re=268435456-65536,Ce="Parameter must be Buffer, ArrayBuffer or Uint8Array",Ue="Parameter exceeds max size of 255.9 Mbytes";Ae||console.log("WebAssembly not available or WASM module could not be decoded; md5WASM will fall back to JavaScript");function be(i){var e,x,A,b,l,p,E,C,P,L;let R=Je(),T=He(),k={},G=new Date().getTime();return k.then=function(m){return E=m,I(),k},k.catch=function(m){return C=m,k},i&&typeof i=="object"?typeof Buffer=="function"&&i.constructor===Buffer?p=i:i.constructor===Uint8Array||i.constructor===ArrayBuffer?p=i.constructor===ArrayBuffer?new Uint8Array(i):i:Q(new TypeError(Ce)):Q(new TypeError(Ce)),p&&(l=p.length,Ae&&l>Me?l>Re?Q(new Error(Ue)):(e=new WebAssembly.Memory({initial:l>32e6?l>64e6?l>128e6?4096:2048:1024:512}),x=new Uint32Array(e.buffer),b={mem:e,log:console.log},A={imports:b},WebAssembly.instantiate(Ae,A).then(y)):I(R(p))),k;function y(m){I(T(p,m.instance.exports,x))}function I(m){var S=Boolean(m)?m:P;Boolean(m)&&(L=new Date().getTime()),typeof E=="function"?Boolean(S)&&(E(S,L-G),E=C=null):Boolean(m)&&(P=m)}function Q(m){typeof C=="function"&&C(m)}}function He(){var i,e,x,A,b,l,p,E,C,P,L,R,T,k=function(G){var y,I,Q,m,S,U,H,J,h,V,r,t,a,o,D,F,g,d,K,$,w,_e,Xe=new Date().getTime(),ve=0,s=1732584193,n=-271733879,f=-1732584194,c=271733878,B=0,X=G.length*8,ee;for(ee=Te(G,T),T[X>>>5]|=128<<X%32,T[(X+64>>>9<<4)+14]=X,ee=(X+64>>>9<<4)+15,w=T;B<ee;)ee>B+Me?(A(s),l(n),E(f),P(c),e(de),B=B+de*16,s=x(),n=b(),f=p(),c=C(),ve++):(g=s,d=n,K=f,$=c,y=w[B+0]>>>0,I=w[B+1]>>>0,Q=w[B+2]>>>0,m=w[B+3]>>>0,S=w[B+4]>>>0,U=w[B+5]>>>0,H=w[B+6]>>>0,J=w[B+7]>>>0,h=w[B+8]>>>0,V=w[B+9]>>>0,r=w[B+10]>>>0,t=w[B+11]>>>0,a=w[B+12]>>>0,o=w[B+13]>>>0,D=w[B+14]>>>0,F=w[B+15]>>>0,s=u(7,25,s+(n&f|~n&c)+y-680876936)+n,c=u(12,20,c+(s&n|~s&f)+I-389564586)+s,f=u(17,15,f+(c&s|~c&n)+Q+606105819)+c,n=u(22,10,n+(f&c|~f&s)+m-1044525330)+f,s=u(7,25,s+(n&f|~n&c)+S-176418897)+n,c=u(12,20,c+(s&n|~s&f)+U+1200080426)+s,f=u(17,15,f+(c&s|~c&n)+H-1473231341)+c,n=u(22,10,n+(f&c|~f&s)+J-45705983)+f,s=u(7,25,s+(n&f|~n&c)+h+1770035416)+n,c=u(12,20,c+(s&n|~s&f)+V-1958414417)+s,f=u(17,15,f+(c&s|~c&n)+r-42063)+c,n=u(22,10,n+(f&c|~f&s)+t-1990404162)+f,s=u(7,25,s+(n&f|~n&c)+a+1804603682)+n,c=u(12,20,c+(s&n|~s&f)+o-40341101)+s,f=u(17,15,f+(c&s|~c&n)+D-1502002290)+c,n=u(22,10,n+(f&c|~f&s)+F+1236535329)+f,s=u(5,27,s+(n&c|f&~c)+I-165796510)+n,c=u(9,23,c+(s&f|n&~f)+H-1069501632)+s,f=u(14,18,f+(c&n|s&~n)+t+643717713)+c,n=u(20,12,n+(f&s|c&~s)+y-373897302)+f,s=u(5,27,s+(n&c|f&~c)+U-701558691)+n,c=u(9,23,c+(s&f|n&~f)+r+38016083)+s,f=u(14,18,f+(c&n|s&~n)+F-660478335)+c,n=u(20,12,n+(f&s|c&~s)+S-405537848)+f,s=u(5,27,s+(n&c|f&~c)+V+568446438)+n,c=u(9,23,c+(s&f|n&~f)+D-1019803690)+s,f=u(14,18,f+(c&n|s&~n)+m-187363961)+c,n=u(20,12,n+(f&s|c&~s)+h+1163531501)+f,s=u(5,27,s+(n&c|f&~c)+o-1444681467)+n,c=u(9,23,c+(s&f|n&~f)+Q-51403784)+s,f=u(14,18,f+(c&n|s&~n)+J+1735328473)+c,n=u(20,12,n+(f&s|c&~s)+a-1926607734)+f,s=u(4,28,s+(n^f^c)+U-378558)+n,c=u(11,21,c+(s^n^f)+h-2022574463)+s,f=u(16,16,f+(c^s^n)+t+1839030562)+c,n=u(23,9,n+(f^c^s)+D-35309556)+f,s=u(4,28,s+(n^f^c)+I-1530992060)+n,c=u(11,21,c+(s^n^f)+S+1272893353)+s,f=u(16,16,f+(c^s^n)+J-155497632)+c,n=u(23,9,n+(f^c^s)+r-1094730640)+f,s=u(4,28,s+(n^f^c)+o+681279174)+n,c=u(11,21,c+(s^n^f)+y-358537222)+s,f=u(16,16,f+(c^s^n)+m-722521979)+c,n=u(23,9,n+(f^c^s)+H+76029189)+f,s=u(4,28,s+(n^f^c)+V-640364487)+n,c=u(11,21,c+(s^n^f)+a-421815835)+s,f=u(16,16,f+(c^s^n)+F+530742520)+c,n=u(23,9,n+(f^c^s)+Q-995338651)+f,s=u(6,26,s+(f^(n|~c))+y-198630844)+n,c=u(10,22,c+(n^(s|~f))+J+1126891415)+s,f=u(15,17,f+(s^(c|~n))+D-1416354905)+c,n=u(21,11,n+(c^(f|~s))+U-57434055)+f,s=u(6,26,s+(f^(n|~c))+a+1700485571)+n,c=u(10,22,c+(n^(s|~f))+m-1894986606)+s,f=u(15,17,f+(s^(c|~n))+r-1051523)+c,n=u(21,11,n+(c^(f|~s))+I-2054922799)+f,s=u(6,26,s+(f^(n|~c))+h+1873313359)+n,c=u(10,22,c+(n^(s|~f))+F-30611744)+s,f=u(15,17,f+(s^(c|~n))+H-1560198380)+c,n=u(21,11,n+(c^(f|~s))+o+1309151649)+f,s=u(6,26,s+(f^(n|~c))+S-145523070)+n,c=u(10,22,c+(n^(s|~f))+t-1120210379)+s,f=u(15,17,f+(s^(c|~n))+Q+718787259)+c,n=u(21,11,n+(c^(f|~s))+V-343485551)+f,B=B+16,s=s+g>>>0,n=n+d>>>0,f=f+K>>>0,c=c+$>>>0);return j.endian([s,n,f,c]);function u(M,re,q){return q<<M|q>>>re}function Te(M,re){for(var q=-1,ne=Math.floor((M.length-1)/4),W=0,ue,le,pe,he;ne-8>q++;)W=q<<2,re[q]=M[W+0]|M[W+1]<<8|M[W+2]<<16|M[W+3]<<24;for(q--;ne>q++;)W=q<<2,ue=typeof M[W+0]>"u"?0:M[W+0],le=typeof M[W+1]>"u"?0:M[W+1],pe=typeof M[W+2]>"u"?0:M[W+2],he=typeof M[W+3]>"u"?0:M[W+3],re[q]=ue|le<<8|pe<<16|he<<24;return ne+1}};return function(G,y,I,Q){var m;return e=y.loops,i=y.loop,x=y.getA,b=y.getB,p=y.getC,C=y.getD,L=y.getX,A=y.setA,l=y.setB,E=y.setC,P=y.setD,R=y.setX,T=I,m=j.wordsToBytes(k(G)),Q&&Q.asBytes?m:j.bytesconvertNumberToHex(m)}}function Je(){var i=function(e,x){var A,b,l,p,E,C,P,L,R,T,k,G,y,I,Q,m,S,U,H,J,h,V=new Date().getTime(),r=1732584193,t=-271733879,a=-1732584194,o=271733878,D=e.length*8;h=j.bytesToWords(e);for(var F=0;F<h.length;F++)h[F]=(h[F]<<8|h[F]>>>24)&16711935|(h[F]<<24|h[F]>>>8)&4278255360;h[D>>>5]|=128<<D%32,h[(D+64>>>9<<4)+14]=D;for(var g=0;g<h.length;g+=16)S=r,U=t,H=a,J=o,A=h[g+0]>>>0,b=h[g+1]>>>0,l=h[g+2]>>>0,p=h[g+3]>>>0,E=h[g+4]>>>0,C=h[g+5]>>>0,P=h[g+6]>>>0,L=h[g+7]>>>0,R=h[g+8]>>>0,T=h[g+9]>>>0,k=h[g+10]>>>0,G=h[g+11]>>>0,y=h[g+12]>>>0,I=h[g+13]>>>0,Q=h[g+14]>>>0,m=h[g+15]>>>0,r=d(7,25,r+(t&a|~t&o)+A-680876936)+t,o=d(12,20,o+(r&t|~r&a)+b-389564586)+r,a=d(17,15,a+(o&r|~o&t)+l+606105819)+o,t=d(22,10,t+(a&o|~a&r)+p-1044525330)+a,r=d(7,25,r+(t&a|~t&o)+E-176418897)+t,o=d(12,20,o+(r&t|~r&a)+C+1200080426)+r,a=d(17,15,a+(o&r|~o&t)+P-1473231341)+o,t=d(22,10,t+(a&o|~a&r)+L-45705983)+a,r=d(7,25,r+(t&a|~t&o)+R+1770035416)+t,o=d(12,20,o+(r&t|~r&a)+T-1958414417)+r,a=d(17,15,a+(o&r|~o&t)+k-42063)+o,t=d(22,10,t+(a&o|~a&r)+G-1990404162)+a,r=d(7,25,r+(t&a|~t&o)+y+1804603682)+t,o=d(12,20,o+(r&t|~r&a)+I-40341101)+r,a=d(17,15,a+(o&r|~o&t)+Q-1502002290)+o,t=d(22,10,t+(a&o|~a&r)+m+1236535329)+a,r=d(5,27,r+(t&o|a&~o)+b-165796510)+t,o=d(9,23,o+(r&a|t&~a)+P-1069501632)+r,a=d(14,18,a+(o&t|r&~t)+G+643717713)+o,t=d(20,12,t+(a&r|o&~r)+A-373897302)+a,r=d(5,27,r+(t&o|a&~o)+C-701558691)+t,o=d(9,23,o+(r&a|t&~a)+k+38016083)+r,a=d(14,18,a+(o&t|r&~t)+m-660478335)+o,t=d(20,12,t+(a&r|o&~r)+E-405537848)+a,r=d(5,27,r+(t&o|a&~o)+T+568446438)+t,o=d(9,23,o+(r&a|t&~a)+Q-1019803690)+r,a=d(14,18,a+(o&t|r&~t)+p-187363961)+o,t=d(20,12,t+(a&r|o&~r)+R+1163531501)+a,r=d(5,27,r+(t&o|a&~o)+I-1444681467)+t,o=d(9,23,o+(r&a|t&~a)+l-51403784)+r,a=d(14,18,a+(o&t|r&~t)+L+1735328473)+o,t=d(20,12,t+(a&r|o&~r)+y-1926607734)+a,r=d(4,28,r+(t^a^o)+C-378558)+t,o=d(11,21,o+(r^t^a)+R-2022574463)+r,a=d(16,16,a+(o^r^t)+G+1839030562)+o,t=d(23,9,t+(a^o^r)+Q-35309556)+a,r=d(4,28,r+(t^a^o)+b-1530992060)+t,o=d(11,21,o+(r^t^a)+E+1272893353)+r,a=d(16,16,a+(o^r^t)+L-155497632)+o,t=d(23,9,t+(a^o^r)+k-1094730640)+a,r=d(4,28,r+(t^a^o)+I+681279174)+t,o=d(11,21,o+(r^t^a)+A-358537222)+r,a=d(16,16,a+(o^r^t)+p-722521979)+o,t=d(23,9,t+(a^o^r)+P+76029189)+a,r=d(4,28,r+(t^a^o)+T-640364487)+t,o=d(11,21,o+(r^t^a)+y-421815835)+r,a=d(16,16,a+(o^r^t)+m+530742520)+o,t=d(23,9,t+(a^o^r)+l-995338651)+a,r=d(6,26,r+(a^(t|~o))+A-198630844)+t,o=d(10,22,o+(t^(r|~a))+L+1126891415)+r,a=d(15,17,a+(r^(o|~t))+Q-1416354905)+o,t=d(21,11,t+(o^(a|~r))+C-57434055)+a,r=d(6,26,r+(a^(t|~o))+y+1700485571)+t,o=d(10,22,o+(t^(r|~a))+p-1894986606)+r,a=d(15,17,a+(r^(o|~t))+k-1051523)+o,t=d(21,11,t+(o^(a|~r))+b-2054922799)+a,r=d(6,26,r+(a^(t|~o))+R+1873313359)+t,o=d(10,22,o+(t^(r|~a))+m-30611744)+r,a=d(15,17,a+(r^(o|~t))+P-1560198380)+o,t=d(21,11,t+(o^(a|~r))+I+1309151649)+a,r=d(6,26,r+(a^(t|~o))+E-145523070)+t,o=d(10,22,o+(t^(r|~a))+G-1120210379)+r,a=d(15,17,a+(r^(o|~t))+l+718787259)+o,t=d(21,11,t+(o^(a|~r))+T-343485551)+a,r=r+S>>>0,t=t+U>>>0,a=a+H>>>0,o=o+J>>>0;return j.endian([r,t,a,o]);function d(K,$,w){return w<<K|w>>>$}};return function(e,x){var A=j.wordsToBytes(i(e,x)),b=x&&x.asBytes?A:j.bytesconvertNumberToHex(A);return b}}function Ze(i){var e,x,A,b=-1;for(e=i.length-1,x=new ArrayBuffer(i.length),A=new Uint8Array(x);e>b++;)A[b]=i.charCodeAt(b);return A}function Ne(i){return Buffer.from(i,"base64").toString("binary")}function We(i){return i}function Ve(){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";return{rotl:function(e,x){return e<<x|e>>>32-x},endian:function(e){if(e.constructor==Number)return j.rotl(e,8)&16711935|j.rotl(e,24)&4278255360;for(var x=0;x<e.length;x++)e[x]=j.endian(e[x]);return e},bytesToWords:function(e){for(var x=[],A=0,b=0;A<e.length;A++,b+=8)x[b>>>5]|=e[A]<<24-b%32;return x},wordsToBytes:function(e){for(var x=[],A=0;A<e.length*32;A+=8)x.push(e[A>>>5]>>>24-A%32&255);return x},bytesconvertNumberToHex:function(e){for(var x=[],A=0;A<e.length;A++)x.push((e[A]>>>4).toString(16)),x.push((e[A]&15).toString(16));return x.join("")}}}var se=class extends Z{name="md5";options;constructor(e={}){super(),this.options=e}async hash(e,x){let b=await new Promise((l,p)=>be(e).then(l).catch(p));return Ee(b,x)}};xe(async(i,e={})=>{let{operation:x,encoding:A="base64"}=e;switch(x){case"crc32":return await new ae(e).hash(i,A);case"crc32c":return await new oe(e).hash(i,A);case"md5":return await new se(e).hash(i,A);default:throw new Error(`invalid option: ${x}`)}});})(); | ||
//# sourceMappingURL=crypto-worker.js.map |
{ | ||
"name": "@loaders.gl/crypto", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "Cryptographic/hashing plugins for loaders.gl", | ||
@@ -45,4 +45,4 @@ "license": "MIT", | ||
"@babel/runtime": "^7.3.1", | ||
"@loaders.gl/loader-utils": "4.0.2", | ||
"@loaders.gl/worker-utils": "4.0.2", | ||
"@loaders.gl/loader-utils": "4.0.3", | ||
"@loaders.gl/worker-utils": "4.0.3", | ||
"@types/crypto-js": "^4.0.2" | ||
@@ -57,3 +57,3 @@ }, | ||
}, | ||
"gitHead": "471058d109d5652f28c32c1f296fd632f9a5c806" | ||
"gitHead": "03c871839b36c997249dabae1844df53a35d3760" | ||
} |
+ Added@loaders.gl/loader-utils@4.0.3(transitive)
+ Added@loaders.gl/worker-utils@4.0.3(transitive)
- Removed@loaders.gl/loader-utils@4.0.2(transitive)
- Removed@loaders.gl/worker-utils@4.0.2(transitive)