@wraps.dev/cli 3.0.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -6
- package/dist/cli.js +15440 -14855
- package/dist/cli.js.map +1 -1
- package/dist/console/assets/index-Cv-QsoKP.css +1 -0
- package/dist/console/assets/index-D-ml23Id.js +127 -0
- package/dist/console/assets/{index-C6gZtoa3.js → index-OqgjYuh3.js} +1 -1
- package/dist/console/assets/{optimizer.worker-DZcD7Kza.js → optimizer.worker-Cjnw_FT2.js} +1 -1
- package/dist/console/assets/{webp_enc_simd-D5IXDjAy.js → webp_enc_simd-0PCv9qCn.js} +2 -2
- package/dist/console/index.html +2 -2
- package/dist/lambda/agent-enforcer/.bundled +1 -1
- package/dist/lambda/agent-enforcer/index.js +16 -3
- package/dist/lambda/event-processor/.bundled +1 -1
- package/dist/lambda/event-processor/index.js +16 -3
- package/dist/lambda/inbound-processor/.bundled +1 -1
- package/dist/lambda/inbound-processor/index.js +66 -53
- package/dist/lambda/sms-event-processor/.bundled +1 -1
- package/dist/lambda/sms-event-processor/index.js +16 -3
- package/package.json +8 -7
- package/dist/console/assets/index--39O8UcT.js +0 -127
- package/dist/console/assets/index-D6au_OkL.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as u}from"./index-CWvpOmY5.js";const c={quality:75,target_size:0,target_PSNR:0,method:4,sns_strength:50,filter_strength:60,filter_sharpness:0,filter_type:1,partitions:0,segments:4,pass:1,show_compressed:0,preprocessing:0,autofilter:0,partition_limit:0,alpha_compression:1,alpha_filtering:1,alpha_quality:100,lossless:0,exact:0,image_hint:0,emulate_jpeg_size:0,thread_level:0,low_memory:0,near_lossless:100,use_delta_palette:0,use_sharp_yuv:0};function l(e,i,t={}){let n;return i&&(n=(r,a)=>{const o=new WebAssembly.Instance(i,r);return a(o),o.exports}),e({noInitialRun:!0,instantiateWasm:n,...t})}let s;async function p(e,i){let t=e,n=i;if(arguments.length===1&&!(e instanceof WebAssembly.Module)&&(t=void 0,n=e),await u()){const a=await import("./webp_enc_simd-
|
|
1
|
+
import{s as u}from"./index-CWvpOmY5.js";const c={quality:75,target_size:0,target_PSNR:0,method:4,sns_strength:50,filter_strength:60,filter_sharpness:0,filter_type:1,partitions:0,segments:4,pass:1,show_compressed:0,preprocessing:0,autofilter:0,partition_limit:0,alpha_compression:1,alpha_filtering:1,alpha_quality:100,lossless:0,exact:0,image_hint:0,emulate_jpeg_size:0,thread_level:0,low_memory:0,near_lossless:100,use_delta_palette:0,use_sharp_yuv:0};function l(e,i,t={}){let n;return i&&(n=(r,a)=>{const o=new WebAssembly.Instance(i,r);return a(o),o.exports}),e({noInitialRun:!0,instantiateWasm:n,...t})}let s;async function p(e,i){let t=e,n=i;if(arguments.length===1&&!(e instanceof WebAssembly.Module)&&(t=void 0,n=e),await u()){const a=await import("./webp_enc_simd-0PCv9qCn.js");return s=l(a.default,t,n),s}const r=await import("./webp_enc-DIy7VB-T.js");return s=l(r.default,t,n),s}async function f(e,i={}){s||(s=p());const t={...c,...i},r=(await s).encode(e.data,e.width,e.height,t);if(!r)throw new Error("Encoding error.");return r.buffer}export{f as encode};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
let c=null,d=null,s=null,l=null,w=null;async function p(t){switch(t){case"webp":c||(c=(await import("./index-
|
|
1
|
+
let c=null,d=null,s=null,l=null,w=null;async function p(t){switch(t){case"webp":c||(c=(await import("./index-OqgjYuh3.js")).encode);break;case"avif":d||(d=(await import("./index-C0zX5_O9.js")).encode);break;case"jpeg":s||(s=(await import("./index-Cto6vYr9.js")).encode);break;case"png":l||(l=(await import("./index-CRudvOG_.js")).encode);break}}async function z(){w||(w=(await import("./index-Dc9k37mQ.js")).default)}function v(t,e,a,o){let n=t,r=e;return a&&n>a&&(r=Math.round(r*(a/n)),n=a),o&&r>o&&(n=Math.round(n*(o/r)),r=o),{width:Math.max(1,n),height:Math.max(1,r)}}function g(t){return new Promise((e,a)=>{const o=new FileReader;o.onload=()=>e(o.result),o.onerror=()=>a(new Error("Failed to read blob")),o.readAsDataURL(t)})}function y(t){switch(t){case"webp":return"image/webp";case"avif":return"image/avif";case"jpeg":return"image/jpeg";case"png":return"image/png";default:return"application/octet-stream"}}async function M(t,e,a){switch(await p(e),e){case"webp":if(!c)throw new Error("WebP encoder not loaded");return c(t,{quality:a});case"avif":if(!d)throw new Error("AVIF encoder not loaded");return d(t,{quality:a});case"jpeg":if(!s)throw new Error("JPEG encoder not loaded");return s(t,{quality:a});case"png":if(!l)throw new Error("PNG encoder not loaded");return l(t);default:throw new Error(`Unsupported format: ${e}`)}}async function U(t,e,a){a(10);const o=await createImageBitmap(t);a(20);const{width:n,height:r}=v(o.width,o.height,e.maxWidth,e.maxHeight);a(30);const i=new OffscreenCanvas(o.width,o.height),f=i.getContext("2d");if(!f)throw new Error("Failed to get canvas context");f.drawImage(o,0,0),o.close(),a(40);let h=f.getImageData(0,0,i.width,i.height);if(a(50),(n!==i.width||r!==i.height)&&(await z(),w&&(h=await w(h,{width:n,height:r}))),e.format==="original"){a(100);const E=await g(t);return{blob:t,dataUrl:E,width:o.width,height:o.height,originalSize:t.size,optimizedSize:t.size,savings:0,format:"original"}}a(60),await p(e.format),a(70);const m=await M(h,e.format,e.quality);a(90);const u=new Blob([m],{type:y(e.format)}),b=await g(u);return a(100),{blob:u,dataUrl:b,width:n,height:r,originalSize:t.size,optimizedSize:m.byteLength,savings:Math.round((1-m.byteLength/t.size)*100),format:e.format}}self.onmessage=async t=>{const{id:e,type:a,file:o,options:n}=t.data;if(a!=="cancel"){if(!o){self.postMessage({id:e,error:"No file provided"});return}try{const r=await U(o,n,i=>{self.postMessage({id:e,progress:i})});self.postMessage({id:e,result:r,progress:100})}catch(r){self.postMessage({id:e,error:r instanceof Error?r.message:"Unknown error"})}}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var nn=(()=>{var tr=import.meta.url;return(function(a={}){var a=typeof a<"u"?a:{},ir,M;a.ready=new Promise(function(r,e){ir=r,M=e}),globalThis.ServiceWorkerGlobalScope!==void 0&&typeof self<"u"&&caches.default!==void 0&&(globalThis.ImageData||(globalThis.ImageData=class{constructor(e,n,t){this.data=e,this.width=n,this.height=t}}),import.meta.url===void 0&&(import.meta.url="https://localhost"),self.location===void 0&&(self.location={href:""}));var or=Object.assign({},a),ar=typeof window=="object",B=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var b="";function Ir(r){return a.locateFile?a.locateFile(r,b):b+r}var z;(ar||B)&&(B?b=self.location.href:typeof document<"u"&&document.currentScript&&(b=document.currentScript.src),tr&&(b=tr),b.indexOf("blob:")!==0?b=b.substr(0,b.replace(/[?#].*/,"").lastIndexOf("/")+1):b="",B&&(z=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)})),a.print||console.log.bind(console);var D=a.printErr||console.warn.bind(console);Object.assign(a,or),or=null,a.arguments&&a.arguments,a.thisProgram&&a.thisProgram,a.quit&&a.quit;var I;a.wasmBinary&&(I=a.wasmBinary),a.noExitRuntime,typeof WebAssembly!="object"&&q("no native wasm support detected");var N,ur=!1;function Or(r,e,n){for(var t=e+n,i="";!(e>=t);){var o=r[e++];if(!o)return i;if(!(o&128)){i+=String.fromCharCode(o);continue}var f=r[e++]&63;if((o&224)==192){i+=String.fromCharCode((o&31)<<6|f);continue}var u=r[e++]&63;if((o&240)==224?o=(o&15)<<12|f<<6|u:o=(o&7)<<18|f<<12|u<<6|r[e++]&63,o<65536)i+=String.fromCharCode(o);else{var s=o-65536;i+=String.fromCharCode(55296|s>>10,56320|s&1023)}}return i}function Hr(r,e){return r?Or(g,r,e):""}function Vr(r,e,n,t){if(!(t>0))return 0;for(var i=n,o=n+t-1,f=0;f<r.length;++f){var u=r.charCodeAt(f);if(u>=55296&&u<=57343){var s=r.charCodeAt(++f);u=65536+((u&1023)<<10)|s&1023}if(u<=127){if(n>=o)break;e[n++]=u}else if(u<=2047){if(n+1>=o)break;e[n++]=192|u>>6,e[n++]=128|u&63}else if(u<=65535){if(n+2>=o)break;e[n++]=224|u>>12,e[n++]=128|u>>6&63,e[n++]=128|u&63}else{if(n+3>=o)break;e[n++]=240|u>>18,e[n++]=128|u>>12&63,e[n++]=128|u>>6&63,e[n++]=128|u&63}}return e[n]=0,n-i}function Mr(r,e,n){return Vr(r,g,e,n)}function Br(r){for(var e=0,n=0;n<r.length;++n){var t=r.charCodeAt(n);t<=127?e++:t<=2047?e+=2:t>=55296&&t<=57343?(e+=4,++n):e+=3}return e}var R,g
|
|
2
|
-
`+i.replace(/^Error(:[^\n]*)?\n/,""))});return n.prototype=Object.create(r.prototype),n.prototype.constructor=n,n.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},n}var br=void 0;function wr(r){throw new br(r)}function Ar(r,e,n){r.forEach(function(u){G[u]=e});function t(u){var s=n(u);s.length!==r.length&&wr("Mismatched type converter count");for(var c=0;c<r.length;++c)w(r[c],s[c])}var i=new Array(e.length),o=[],f=0;e.forEach((u,s)=>{W.hasOwnProperty(u)?i[s]=W[u]:(o.push(u),U.hasOwnProperty(u)||(U[u]=[]),U[u].push(()=>{i[s]=W[u],++f,f===o.length&&t(i)}))}),o.length===0&&t(i)}function oe(r){var e=x[r];delete x[r];var n=e.rawConstructor,t=e.rawDestructor,i=e.fields,o=i.map(f=>f.getterReturnType).concat(i.map(f=>f.setterArgumentType));Ar([r],o,f=>{var u={};return i.forEach((s,c)=>{var l=s.fieldName,d=f[c],v=s.getter,A=s.getterContext,k=f[c+i.length],T=s.setter,j=s.setterContext;u[l]={read:V=>d.fromWireType(v(A,V)),write:(V,nr)=>{var E=[];T(j,V,k.toWireType(E,nr)),mr(E)}}}),[{name:e.name,fromWireType:function(s){var c={};for(var l in u)c[l]=u[l].read(s);return t(s),c},toWireType:function(s,c){for(var l in u)if(!(l in c))throw new TypeError('Missing field: "'+l+'"');var d=n();for(l in u)u[l].write(d,c[l]);return s!==null&&s.push(t,d),d},argPackAdvance:8,readValueFromPointer:K,destructorFunction:t}]})}function ae(r,e,n,t,i){}function Q(r){switch(r){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+r)}}function ue(){for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Tr=r}var Tr=void 0;function h(r){for(var e="",n=r;g[n];)e+=Tr[g[n++]];return e}var Cr=void 0;function m(r){throw new Cr(r)}function w(r,e,n={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");var t=e.name;if(r||m('type "'+t+'" must have a positive integer typeid pointer'),W.hasOwnProperty(r)){if(n.ignoreDuplicateRegistrations)return;m("Cannot register type '"+t+"' twice")}if(W[r]=e,delete G[r],U.hasOwnProperty(r)){var i=U[r];delete U[r],i.forEach(o=>o())}}function fe(r,e,n,t,i){var o=Q(n);e=h(e),w(r,{name:e,fromWireType:function(f){return!!f},toWireType:function(f,u){return u?t:i},argPackAdvance:8,readValueFromPointer:function(f){var u;if(n===1)u=R;else if(n===2)u=$;else if(n===4)u=_;else throw new TypeError("Unknown boolean type size: "+e);return this.fromWireType(u[f>>o])},destructorFunction:null})}var rr=[],y=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function Er(r){r>4&&--y[r].refcount===0&&(y[r]=void 0,rr.push(r))}function se(){for(var r=0,e=5;e<y.length;++e)y[e]!==void 0&&++r;return r}function ce(){for(var r=5;r<y.length;++r)if(y[r]!==void 0)return y[r];return null}function le(){a.count_emval_handles=se,a.get_first_emval=ce}var S={toValue:r=>(r||m("Cannot use deleted val. handle = "+r),y[r].value),toHandle:r=>{switch(r){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:{var e=rr.length?rr.pop():y.length;return y[e]={refcount:1,value:r},e}}}};function de(r,e){e=h(e),w(r,{name:e,fromWireType:function(n){var t=S.toValue(n);return Er(n),t},toWireType:function(n,t){return S.toHandle(t)},argPackAdvance:8,readValueFromPointer:K,destructorFunction:null})}function ve(r,e,n){if(r[e].overloadTable===void 0){var t=r[e];r[e]=function(){return r[e].overloadTable.hasOwnProperty(arguments.length)||m("Function '"+n+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+r[e].overloadTable+")!"),r[e].overloadTable[arguments.length].apply(this,arguments)},r[e].overloadTable=[],r[e].overloadTable[t.argCount]=t}}function Rr(r,e,n){a.hasOwnProperty(r)?((n===void 0||a[r].overloadTable!==void 0&&a[r].overloadTable[n]!==void 0)&&m("Cannot register public name '"+r+"' twice"),ve(a,r,r),a.hasOwnProperty(n)&&m("Cannot register multiple overloads of a function with the same number of arguments ("+n+")!"),a[r].overloadTable[n]=e):(a[r]=e,n!==void 0&&(a[r].numArguments=n))}function pe(r,e,n){switch(e){case 0:return function(t){var i=n?R:g;return this.fromWireType(i[t])};case 1:return function(t){var i=n?$:L;return this.fromWireType(i[t>>1])};case 2:return function(t){var i=n?_:p;return this.fromWireType(i[t>>2])};default:throw new TypeError("Unknown integer type: "+r)}}function he(r,e,n,t){var i=Q(n);e=h(e);function o(){}o.values={},w(r,{name:e,constructor:o,fromWireType:function(f){return this.constructor.values[f]},toWireType:function(f,u){return u.value},argPackAdvance:8,readValueFromPointer:pe(e,i,t),destructorFunction:null}),Rr(e,o)}function $r(r){var e=Sr(r),n=h(e);return C(e),n}function Fr(r,e){var n=W[r];return n===void 0&&m(e+" has unknown type "+$r(r)),n}function ge(r,e,n){var t=Fr(r,"enum");e=h(e);var i=t.constructor,o=Object.create(t.constructor.prototype,{value:{value:n},constructor:{value:yr(t.name+"_"+e,function(){})}});i.values[n]=o,i[e]=o}function _e(r,e){switch(e){case 2:return function(n){return this.fromWireType(fr[n>>2])};case 3:return function(n){return this.fromWireType(sr[n>>3])};default:throw new TypeError("Unknown float type: "+r)}}function me(r,e,n){var t=Q(n);e=h(e),w(r,{name:e,fromWireType:function(i){return i},toWireType:function(i,o){return o},argPackAdvance:8,readValueFromPointer:_e(e,t),destructorFunction:null})}function ye(r,e,n,t,i,o){var f=e.length;f<2&&m("argTypes array size mismatch! Must at least get return value and 'this' types!"),e[1];for(var u=!1,s=1;s<e.length;++s)if(e[s]!==null&&e[s].destructorFunction===void 0){u=!0;break}var c=e[0].name!=="void",l=f-2,d=new Array(l),v=[],A=[];return function(){arguments.length!==l&&m("function "+r+" called with "+arguments.length+" arguments, expected "+l+" args!"),A.length=0;var k;v.length=1,v[0]=i;for(var T=0;T<l;++T)d[T]=e[T+2].toWireType(A,arguments[T]),v.push(d[T]);var j=t.apply(null,v);function V(nr){if(u)mr(A);else for(var E=2;E<e.length;E++){var Ye=E===1?k:d[E-2];e[E].destructorFunction!==null&&e[E].destructorFunction(Ye)}if(c)return e[0].fromWireType(nr)}return V(j)}}function be(r,e){for(var n=[],t=0;t<r;t++)n.push(p[e+t*4>>2]);return n}function we(r,e,n){a.hasOwnProperty(r)||wr("Replacing nonexistant public symbol"),a[r].overloadTable!==void 0&&n!==void 0?a[r].overloadTable[n]=e:(a[r]=e,a[r].argCount=n)}function Ae(r,e,n){var t=a["dynCall_"+r];return n&&n.length?t.apply(null,[e].concat(n)):t.call(null,e)}var X=[];function Pr(r){var e=X[r];return e||(r>=X.length&&(X.length=r+1),X[r]=e=lr.get(r)),e}function Te(r,e,n){if(r.includes("j"))return Ae(r,e,n);var t=Pr(e).apply(null,n);return t}function Ce(r,e){var n=[];return function(){return n.length=0,Object.assign(n,arguments),Te(r,e,n)}}function H(r,e){r=h(r);function n(){return r.includes("j")?Ce(r,e):Pr(e)}var t=n();return typeof t!="function"&&m("unknown function pointer with signature "+r+": "+e),t}var Wr=void 0;function Ee(r,e){var n=[],t={};function i(o){if(!t[o]&&!W[o]){if(G[o]){G[o].forEach(i);return}n.push(o),t[o]=!0}}throw e.forEach(i),new Wr(r+": "+n.map($r).join([", "]))}function Re(r,e,n,t,i,o,f){var u=be(e,n);r=h(r),i=H(t,i),Rr(r,function(){Ee("Cannot call "+r+" due to unbound types",u)},e-1),Ar([],u,function(s){var c=[s[0],null].concat(s.slice(1));return we(r,ye(r,c,null,i,o),e-1),[]})}function $e(r,e,n){switch(e){case 0:return n?function(i){return R[i]}:function(i){return g[i]};case 1:return n?function(i){return $[i>>1]}:function(i){return L[i>>1]};case 2:return n?function(i){return _[i>>2]}:function(i){return p[i>>2]};default:throw new TypeError("Unknown integer type: "+r)}}function Fe(r,e,n,t,i){e=h(e);var o=Q(n),f=d=>d;if(t===0){var u=32-8*n;f=d=>d<<u>>>u}var s=e.includes("unsigned"),c=(d,v)=>{},l;s?l=function(d,v){return c(v,this.name),v>>>0}:l=function(d,v){return c(v,this.name),v},w(r,{name:e,fromWireType:f,toWireType:l,argPackAdvance:8,readValueFromPointer:$e(e,o,t!==0),destructorFunction:null})}function Pe(r,e,n){var t=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],i=t[e];function o(f){f=f>>2;var u=p,s=u[f],c=u[f+1];return new i(u.buffer,c,s)}n=h(n),w(r,{name:n,fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})}function We(r,e){e=h(e);var n=e==="std::string";w(r,{name:e,fromWireType:function(t){var i=p[t>>2],o=t+4,f;if(n)for(var u=o,s=0;s<=i;++s){var c=o+s;if(s==i||g[c]==0){var l=c-u,d=Hr(u,l);f===void 0?f=d:(f+="\0",f+=d),u=c+1}}else{for(var v=new Array(i),s=0;s<i;++s)v[s]=String.fromCharCode(g[o+s]);f=v.join("")}return C(t),f},toWireType:function(t,i){i instanceof ArrayBuffer&&(i=new Uint8Array(i));var o,f=typeof i=="string";f||i instanceof Uint8Array||i instanceof Uint8ClampedArray||i instanceof Int8Array||m("Cannot pass non-string to std::string"),n&&f?o=Br(i):o=i.length;var u=er(4+o+1),s=u+4;if(p[u>>2]=o,n&&f)Mr(i,s,o+1);else if(f)for(var c=0;c<o;++c){var l=i.charCodeAt(c);l>255&&(C(s),m("String has UTF-16 code units that do not fit in 8 bits")),g[s+c]=l}else for(var c=0;c<o;++c)g[s+c]=i[c];return t!==null&&t.push(C,u),u},argPackAdvance:8,readValueFromPointer:K,destructorFunction:function(t){C(t)}})}function ke(r,e){for(var n="",t=0;!(t>=e/2);++t){var i=$[r+t*2>>1];if(i==0)break;n+=String.fromCharCode(i)}return n}function Ue(r,e,n){if(n===void 0&&(n=2147483647),n<2)return 0;n-=2;for(var t=e,i=n<r.length*2?n/2:r.length,o=0;o<i;++o){var f=r.charCodeAt(o);$[e>>1]=f,e+=2}return $[e>>1]=0,e-t}function Se(r){return r.length*2}function je(r,e){for(var n=0,t="";!(n>=e/4);){var i=_[r+n*4>>2];if(i==0)break;if(++n,i>=65536){var o=i-65536;t+=String.fromCharCode(55296|o>>10,56320|o&1023)}else t+=String.fromCharCode(i)}return t}function De(r,e,n){if(n===void 0&&(n=2147483647),n<4)return 0;for(var t=e,i=t+n-4,o=0;o<r.length;++o){var f=r.charCodeAt(o);if(f>=55296&&f<=57343){var u=r.charCodeAt(++o);f=65536+((f&1023)<<10)|u&1023}if(_[e>>2]=f,e+=4,e+4>i)break}return _[e>>2]=0,e-t}function Ie(r){for(var e=0,n=0;n<r.length;++n){var t=r.charCodeAt(n);t>=55296&&t<=57343&&++n,e+=4}return e}function Oe(r,e,n){n=h(n);var t,i,o,f,u;e===2?(t=ke,i=Ue,f=Se,o=()=>L,u=1):e===4&&(t=je,i=De,f=Ie,o=()=>p,u=2),w(r,{name:n,fromWireType:function(s){for(var c=p[s>>2],l=o(),d,v=s+4,A=0;A<=c;++A){var k=s+4+A*e;if(A==c||l[k>>u]==0){var T=k-v,j=t(v,T);d===void 0?d=j:(d+="\0",d+=j),v=k+e}}return C(s),d},toWireType:function(s,c){typeof c!="string"&&m("Cannot pass non-string to C++ string type "+n);var l=f(c),d=er(4+l+e);return p[d>>2]=l>>u,i(c,d+4,l+e),s!==null&&s.push(C,d),d},argPackAdvance:8,readValueFromPointer:K,destructorFunction:function(s){C(s)}})}function He(r,e,n,t,i,o){x[r]={name:h(e),rawConstructor:H(n,t),rawDestructor:H(i,o),fields:[]}}function Ve(r,e,n,t,i,o,f,u,s,c){x[r].fields.push({fieldName:h(e),getterReturnType:n,getter:H(t,i),getterContext:o,setterArgumentType:f,setter:H(u,s),setterContext:c})}function Me(r,e){e=h(e),w(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:function(){},toWireType:function(n,t){}})}var Be={};function Ne(r){var e=Be[r];return e===void 0?h(r):e}function kr(){if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var n=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return n||delete e.$$$embind_global$$$,n}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")}function Le(r){return r===0?S.toHandle(kr()):(r=Ne(r),S.toHandle(kr()[r]))}function qe(r){r>4&&(y[r].refcount+=1)}function xe(r){var e=new Array(r+1);return function(n,t,i){e[0]=n;for(var o=0;o<r;++o){var f=Fr(p[t+o*4>>2],"parameter "+o);e[o+1]=f.readValueFromPointer(i),i+=f.argPackAdvance}var u=new(n.bind.apply(n,e));return S.toHandle(u)}}var Ur={};function Ke(r,e,n,t){r=S.toValue(r);var i=Ur[e];return i||(i=xe(e),Ur[e]=i),i(r,n,t)}function Ge(){q("")}function Qe(r,e,n){g.copyWithin(r,e,e+n)}function Xe(){return 2147483648}function Ze(r){var e=N.buffer;try{return N.grow(r-e.byteLength+65535>>>16),cr(),1}catch{}}function ze(r){var e=g.length;r=r>>>0;var n=Xe();if(r>n)return!1;let t=(s,c)=>s+(c-s%c)%c;for(var i=1;i<=4;i*=2){var o=e*(1+.2/i);o=Math.min(o,r+100663296);var f=Math.min(n,t(Math.max(r,o),65536)),u=Ze(f);if(u)return!0}return!1}br=a.InternalError=Y(Error,"InternalError"),ue(),Cr=a.BindingError=Y(Error,"BindingError"),le(),Wr=a.UnboundTypeError=Y(Error,"UnboundTypeError");var Je={k:ee,m:oe,o:ae,t:fe,s:de,q:he,d:ge,h:me,f:Re,c:Fe,b:Pe,i:We,e:Oe,n:He,a:Ve,u:Me,j:Er,w:Le,l:qe,v:Ke,g:Ge,r:Qe,p:ze};Yr();var er=function(){return(er=a.asm.z).apply(null,arguments)},C=function(){return(C=a.asm.A).apply(null,arguments)},Sr=a.___getTypeName=function(){return(Sr=a.___getTypeName=a.asm.B).apply(null,arguments)};a.__embind_initialize_bindings=function(){return(a.__embind_initialize_bindings=a.asm.C).apply(null,arguments)};var jr=function(){return(jr=a.asm.E).apply(null,arguments)};a.dynCall_jiiii=function(){return(a.dynCall_jiiii=a.asm.F).apply(null,arguments)};var Z;O=function r(){Z||Dr(),Z||(O=r)};function Dr(){if(F>0||(Nr(),F>0))return;function r(){Z||(Z=!0,a.calledRun=!0,!ur&&(Lr(),ir(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),qr()))}a.setStatus?(a.setStatus("Running..."),setTimeout(function(){setTimeout(function(){a.setStatus("")},1),r()},1)):r()}if(a.preInit)for(typeof a.preInit=="function"&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return Dr(),a.ready})})();export{nn as default};
|
|
1
|
+
var nn=(()=>{var tr=import.meta.url;return(function(a={}){var a=typeof a<"u"?a:{},ir,M;a.ready=new Promise(function(r,e){ir=r,M=e}),globalThis.ServiceWorkerGlobalScope!==void 0&&typeof self<"u"&&caches.default!==void 0&&(globalThis.ImageData||(globalThis.ImageData=class{constructor(e,n,t){this.data=e,this.width=n,this.height=t}}),import.meta.url===void 0&&(import.meta.url="https://localhost"),self.location===void 0&&(self.location={href:""}));var or=Object.assign({},a),ar=typeof window=="object",B=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var b="";function Ir(r){return a.locateFile?a.locateFile(r,b):b+r}var z;(ar||B)&&(B?b=self.location.href:typeof document<"u"&&document.currentScript&&(b=document.currentScript.src),tr&&(b=tr),b.indexOf("blob:")!==0?b=b.substr(0,b.replace(/[?#].*/,"").lastIndexOf("/")+1):b="",B&&(z=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)})),a.print||console.log.bind(console);var D=a.printErr||console.warn.bind(console);Object.assign(a,or),or=null,a.arguments&&a.arguments,a.thisProgram&&a.thisProgram,a.quit&&a.quit;var I;a.wasmBinary&&(I=a.wasmBinary),a.noExitRuntime,typeof WebAssembly!="object"&&q("no native wasm support detected");var N,ur=!1;function Or(r,e,n){for(var t=e+n,i="";!(e>=t);){var o=r[e++];if(!o)return i;if(!(o&128)){i+=String.fromCharCode(o);continue}var f=r[e++]&63;if((o&224)==192){i+=String.fromCharCode((o&31)<<6|f);continue}var u=r[e++]&63;if((o&240)==224?o=(o&15)<<12|f<<6|u:o=(o&7)<<18|f<<12|u<<6|r[e++]&63,o<65536)i+=String.fromCharCode(o);else{var s=o-65536;i+=String.fromCharCode(55296|s>>10,56320|s&1023)}}return i}function Hr(r,e){return r?Or(g,r,e):""}function Vr(r,e,n,t){if(!(t>0))return 0;for(var i=n,o=n+t-1,f=0;f<r.length;++f){var u=r.charCodeAt(f);if(u>=55296&&u<=57343){var s=r.charCodeAt(++f);u=65536+((u&1023)<<10)|s&1023}if(u<=127){if(n>=o)break;e[n++]=u}else if(u<=2047){if(n+1>=o)break;e[n++]=192|u>>6,e[n++]=128|u&63}else if(u<=65535){if(n+2>=o)break;e[n++]=224|u>>12,e[n++]=128|u>>6&63,e[n++]=128|u&63}else{if(n+3>=o)break;e[n++]=240|u>>18,e[n++]=128|u>>12&63,e[n++]=128|u>>6&63,e[n++]=128|u&63}}return e[n]=0,n-i}function Mr(r,e,n){return Vr(r,g,e,n)}function Br(r){for(var e=0,n=0;n<r.length;++n){var t=r.charCodeAt(n);t<=127?e++:t<=2047?e+=2:t>=55296&&t<=57343?(e+=4,++n):e+=3}return e}var R,g,F,L,_,p,fr,sr;function cr(){var r=N.buffer;a.HEAP8=R=new Int8Array(r),a.HEAP16=F=new Int16Array(r),a.HEAP32=_=new Int32Array(r),a.HEAPU8=g=new Uint8Array(r),a.HEAPU16=L=new Uint16Array(r),a.HEAPU32=p=new Uint32Array(r),a.HEAPF32=fr=new Float32Array(r),a.HEAPF64=sr=new Float64Array(r)}var lr,dr=[],vr=[],pr=[];function Nr(){if(a.preRun)for(typeof a.preRun=="function"&&(a.preRun=[a.preRun]);a.preRun.length;)xr(a.preRun.shift());J(dr)}function Lr(){J(vr)}function qr(){if(a.postRun)for(typeof a.postRun=="function"&&(a.postRun=[a.postRun]);a.postRun.length;)Gr(a.postRun.shift());J(pr)}function xr(r){dr.unshift(r)}function Kr(r){vr.unshift(r)}function Gr(r){pr.unshift(r)}var $=0,O=null;function Qr(r){$++,a.monitorRunDependencies&&a.monitorRunDependencies($)}function Xr(r){if($--,a.monitorRunDependencies&&a.monitorRunDependencies($),$==0&&O){var e=O;O=null,e()}}function q(r){a.onAbort&&a.onAbort(r),r="Aborted("+r+")",D(r),ur=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw M(e),e}var Zr="data:application/octet-stream;base64,";function hr(r){return r.startsWith(Zr)}var P;a.locateFile?(P="webp_enc_simd.wasm",hr(P)||(P=Ir(P))):P=new URL("/assets/webp_enc_simd-CFvKQ_80.wasm",import.meta.url).href;function gr(r){try{if(r==P&&I)return new Uint8Array(I);if(z)return z(r);throw"both async and sync fetching of the wasm failed"}catch(e){q(e)}}function zr(r){return!I&&(ar||B)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(function(e){if(!e.ok)throw"failed to load wasm binary file at '"+r+"'";return e.arrayBuffer()}).catch(function(){return gr(r)}):Promise.resolve().then(function(){return gr(r)})}function _r(r,e,n){return zr(r).then(function(t){return WebAssembly.instantiate(t,e)}).then(function(t){return t}).then(n,function(t){D("failed to asynchronously prepare wasm: "+t),q(t)})}function Jr(r,e,n,t){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!hr(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(function(i){var o=WebAssembly.instantiateStreaming(i,n);return o.then(t,function(f){return D("wasm streaming compile failed: "+f),D("falling back to ArrayBuffer instantiation"),_r(e,n,t)})}):_r(e,n,t)}function Yr(){var r={a:Je};function e(t,i){var o=t.exports;return a.asm=o,N=a.asm.x,cr(),lr=a.asm.D,Kr(a.asm.y),Xr(),o}Qr();function n(t){e(t.instance)}if(a.instantiateWasm)try{return a.instantiateWasm(r,e)}catch(t){D("Module.instantiateWasm callback failed with error: "+t),M(t)}return Jr(I,P,r,n).catch(M),{}}function J(r){for(;r.length>0;)r.shift()(a)}function re(r){this.excPtr=r,this.ptr=r-24,this.set_type=function(e){p[this.ptr+4>>2]=e},this.get_type=function(){return p[this.ptr+4>>2]},this.set_destructor=function(e){p[this.ptr+8>>2]=e},this.get_destructor=function(){return p[this.ptr+8>>2]},this.set_refcount=function(e){_[this.ptr>>2]=e},this.set_caught=function(e){e=e?1:0,R[this.ptr+12>>0]=e},this.get_caught=function(){return R[this.ptr+12>>0]!=0},this.set_rethrown=function(e){e=e?1:0,R[this.ptr+13>>0]=e},this.get_rethrown=function(){return R[this.ptr+13>>0]!=0},this.init=function(e,n){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(n),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var e=_[this.ptr>>2];_[this.ptr>>2]=e+1},this.release_ref=function(){var e=_[this.ptr>>2];return _[this.ptr>>2]=e-1,e===1},this.set_adjusted_ptr=function(e){p[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return p[this.ptr+16>>2]},this.get_exception_ptr=function(){var e=jr(this.get_type());if(e)return p[this.excPtr>>2];var n=this.get_adjusted_ptr();return n!==0?n:this.excPtr}}function ee(r,e,n){var t=new re(r);throw t.init(e,n),r}var x={};function mr(r){for(;r.length;){var e=r.pop(),n=r.pop();n(e)}}function K(r){return this.fromWireType(_[r>>2])}var U={},W={},G={},ne=48,te=57;function ie(r){if(r===void 0)return"_unknown";r=r.replace(/[^a-zA-Z0-9_]/g,"$");var e=r.charCodeAt(0);return e>=ne&&e<=te?"_"+r:r}function yr(r,e){return r=ie(r),{[r]:function(){return e.apply(this,arguments)}}[r]}function Y(r,e){var n=yr(e,function(t){this.name=e,this.message=t;var i=new Error(t).stack;i!==void 0&&(this.stack=this.toString()+`
|
|
2
|
+
`+i.replace(/^Error(:[^\n]*)?\n/,""))});return n.prototype=Object.create(r.prototype),n.prototype.constructor=n,n.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},n}var br=void 0;function wr(r){throw new br(r)}function Ar(r,e,n){r.forEach(function(u){G[u]=e});function t(u){var s=n(u);s.length!==r.length&&wr("Mismatched type converter count");for(var c=0;c<r.length;++c)w(r[c],s[c])}var i=new Array(e.length),o=[],f=0;e.forEach((u,s)=>{W.hasOwnProperty(u)?i[s]=W[u]:(o.push(u),U.hasOwnProperty(u)||(U[u]=[]),U[u].push(()=>{i[s]=W[u],++f,f===o.length&&t(i)}))}),o.length===0&&t(i)}function oe(r){var e=x[r];delete x[r];var n=e.rawConstructor,t=e.rawDestructor,i=e.fields,o=i.map(f=>f.getterReturnType).concat(i.map(f=>f.setterArgumentType));Ar([r],o,f=>{var u={};return i.forEach((s,c)=>{var l=s.fieldName,d=f[c],v=s.getter,A=s.getterContext,k=f[c+i.length],T=s.setter,j=s.setterContext;u[l]={read:V=>d.fromWireType(v(A,V)),write:(V,nr)=>{var E=[];T(j,V,k.toWireType(E,nr)),mr(E)}}}),[{name:e.name,fromWireType:function(s){var c={};for(var l in u)c[l]=u[l].read(s);return t(s),c},toWireType:function(s,c){for(var l in u)if(!(l in c))throw new TypeError('Missing field: "'+l+'"');var d=n();for(l in u)u[l].write(d,c[l]);return s!==null&&s.push(t,d),d},argPackAdvance:8,readValueFromPointer:K,destructorFunction:t}]})}function ae(r,e,n,t,i){}function Q(r){switch(r){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+r)}}function ue(){for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Tr=r}var Tr=void 0;function h(r){for(var e="",n=r;g[n];)e+=Tr[g[n++]];return e}var Cr=void 0;function m(r){throw new Cr(r)}function w(r,e,n={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");var t=e.name;if(r||m('type "'+t+'" must have a positive integer typeid pointer'),W.hasOwnProperty(r)){if(n.ignoreDuplicateRegistrations)return;m("Cannot register type '"+t+"' twice")}if(W[r]=e,delete G[r],U.hasOwnProperty(r)){var i=U[r];delete U[r],i.forEach(o=>o())}}function fe(r,e,n,t,i){var o=Q(n);e=h(e),w(r,{name:e,fromWireType:function(f){return!!f},toWireType:function(f,u){return u?t:i},argPackAdvance:8,readValueFromPointer:function(f){var u;if(n===1)u=R;else if(n===2)u=F;else if(n===4)u=_;else throw new TypeError("Unknown boolean type size: "+e);return this.fromWireType(u[f>>o])},destructorFunction:null})}var rr=[],y=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function Er(r){r>4&&--y[r].refcount===0&&(y[r]=void 0,rr.push(r))}function se(){for(var r=0,e=5;e<y.length;++e)y[e]!==void 0&&++r;return r}function ce(){for(var r=5;r<y.length;++r)if(y[r]!==void 0)return y[r];return null}function le(){a.count_emval_handles=se,a.get_first_emval=ce}var S={toValue:r=>(r||m("Cannot use deleted val. handle = "+r),y[r].value),toHandle:r=>{switch(r){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:{var e=rr.length?rr.pop():y.length;return y[e]={refcount:1,value:r},e}}}};function de(r,e){e=h(e),w(r,{name:e,fromWireType:function(n){var t=S.toValue(n);return Er(n),t},toWireType:function(n,t){return S.toHandle(t)},argPackAdvance:8,readValueFromPointer:K,destructorFunction:null})}function ve(r,e,n){if(r[e].overloadTable===void 0){var t=r[e];r[e]=function(){return r[e].overloadTable.hasOwnProperty(arguments.length)||m("Function '"+n+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+r[e].overloadTable+")!"),r[e].overloadTable[arguments.length].apply(this,arguments)},r[e].overloadTable=[],r[e].overloadTable[t.argCount]=t}}function Rr(r,e,n){a.hasOwnProperty(r)?((n===void 0||a[r].overloadTable!==void 0&&a[r].overloadTable[n]!==void 0)&&m("Cannot register public name '"+r+"' twice"),ve(a,r,r),a.hasOwnProperty(n)&&m("Cannot register multiple overloads of a function with the same number of arguments ("+n+")!"),a[r].overloadTable[n]=e):(a[r]=e,n!==void 0&&(a[r].numArguments=n))}function pe(r,e,n){switch(e){case 0:return function(t){var i=n?R:g;return this.fromWireType(i[t])};case 1:return function(t){var i=n?F:L;return this.fromWireType(i[t>>1])};case 2:return function(t){var i=n?_:p;return this.fromWireType(i[t>>2])};default:throw new TypeError("Unknown integer type: "+r)}}function he(r,e,n,t){var i=Q(n);e=h(e);function o(){}o.values={},w(r,{name:e,constructor:o,fromWireType:function(f){return this.constructor.values[f]},toWireType:function(f,u){return u.value},argPackAdvance:8,readValueFromPointer:pe(e,i,t),destructorFunction:null}),Rr(e,o)}function Fr(r){var e=Sr(r),n=h(e);return C(e),n}function $r(r,e){var n=W[r];return n===void 0&&m(e+" has unknown type "+Fr(r)),n}function ge(r,e,n){var t=$r(r,"enum");e=h(e);var i=t.constructor,o=Object.create(t.constructor.prototype,{value:{value:n},constructor:{value:yr(t.name+"_"+e,function(){})}});i.values[n]=o,i[e]=o}function _e(r,e){switch(e){case 2:return function(n){return this.fromWireType(fr[n>>2])};case 3:return function(n){return this.fromWireType(sr[n>>3])};default:throw new TypeError("Unknown float type: "+r)}}function me(r,e,n){var t=Q(n);e=h(e),w(r,{name:e,fromWireType:function(i){return i},toWireType:function(i,o){return o},argPackAdvance:8,readValueFromPointer:_e(e,t),destructorFunction:null})}function ye(r,e,n,t,i,o){var f=e.length;f<2&&m("argTypes array size mismatch! Must at least get return value and 'this' types!"),e[1];for(var u=!1,s=1;s<e.length;++s)if(e[s]!==null&&e[s].destructorFunction===void 0){u=!0;break}var c=e[0].name!=="void",l=f-2,d=new Array(l),v=[],A=[];return function(){arguments.length!==l&&m("function "+r+" called with "+arguments.length+" arguments, expected "+l+" args!"),A.length=0;var k;v.length=1,v[0]=i;for(var T=0;T<l;++T)d[T]=e[T+2].toWireType(A,arguments[T]),v.push(d[T]);var j=t.apply(null,v);function V(nr){if(u)mr(A);else for(var E=2;E<e.length;E++){var Ye=E===1?k:d[E-2];e[E].destructorFunction!==null&&e[E].destructorFunction(Ye)}if(c)return e[0].fromWireType(nr)}return V(j)}}function be(r,e){for(var n=[],t=0;t<r;t++)n.push(p[e+t*4>>2]);return n}function we(r,e,n){a.hasOwnProperty(r)||wr("Replacing nonexistant public symbol"),a[r].overloadTable!==void 0&&n!==void 0?a[r].overloadTable[n]=e:(a[r]=e,a[r].argCount=n)}function Ae(r,e,n){var t=a["dynCall_"+r];return n&&n.length?t.apply(null,[e].concat(n)):t.call(null,e)}var X=[];function Pr(r){var e=X[r];return e||(r>=X.length&&(X.length=r+1),X[r]=e=lr.get(r)),e}function Te(r,e,n){if(r.includes("j"))return Ae(r,e,n);var t=Pr(e).apply(null,n);return t}function Ce(r,e){var n=[];return function(){return n.length=0,Object.assign(n,arguments),Te(r,e,n)}}function H(r,e){r=h(r);function n(){return r.includes("j")?Ce(r,e):Pr(e)}var t=n();return typeof t!="function"&&m("unknown function pointer with signature "+r+": "+e),t}var Wr=void 0;function Ee(r,e){var n=[],t={};function i(o){if(!t[o]&&!W[o]){if(G[o]){G[o].forEach(i);return}n.push(o),t[o]=!0}}throw e.forEach(i),new Wr(r+": "+n.map(Fr).join([", "]))}function Re(r,e,n,t,i,o,f){var u=be(e,n);r=h(r),i=H(t,i),Rr(r,function(){Ee("Cannot call "+r+" due to unbound types",u)},e-1),Ar([],u,function(s){var c=[s[0],null].concat(s.slice(1));return we(r,ye(r,c,null,i,o),e-1),[]})}function Fe(r,e,n){switch(e){case 0:return n?function(i){return R[i]}:function(i){return g[i]};case 1:return n?function(i){return F[i>>1]}:function(i){return L[i>>1]};case 2:return n?function(i){return _[i>>2]}:function(i){return p[i>>2]};default:throw new TypeError("Unknown integer type: "+r)}}function $e(r,e,n,t,i){e=h(e);var o=Q(n),f=d=>d;if(t===0){var u=32-8*n;f=d=>d<<u>>>u}var s=e.includes("unsigned"),c=(d,v)=>{},l;s?l=function(d,v){return c(v,this.name),v>>>0}:l=function(d,v){return c(v,this.name),v},w(r,{name:e,fromWireType:f,toWireType:l,argPackAdvance:8,readValueFromPointer:Fe(e,o,t!==0),destructorFunction:null})}function Pe(r,e,n){var t=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],i=t[e];function o(f){f=f>>2;var u=p,s=u[f],c=u[f+1];return new i(u.buffer,c,s)}n=h(n),w(r,{name:n,fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})}function We(r,e){e=h(e);var n=e==="std::string";w(r,{name:e,fromWireType:function(t){var i=p[t>>2],o=t+4,f;if(n)for(var u=o,s=0;s<=i;++s){var c=o+s;if(s==i||g[c]==0){var l=c-u,d=Hr(u,l);f===void 0?f=d:(f+="\0",f+=d),u=c+1}}else{for(var v=new Array(i),s=0;s<i;++s)v[s]=String.fromCharCode(g[o+s]);f=v.join("")}return C(t),f},toWireType:function(t,i){i instanceof ArrayBuffer&&(i=new Uint8Array(i));var o,f=typeof i=="string";f||i instanceof Uint8Array||i instanceof Uint8ClampedArray||i instanceof Int8Array||m("Cannot pass non-string to std::string"),n&&f?o=Br(i):o=i.length;var u=er(4+o+1),s=u+4;if(p[u>>2]=o,n&&f)Mr(i,s,o+1);else if(f)for(var c=0;c<o;++c){var l=i.charCodeAt(c);l>255&&(C(s),m("String has UTF-16 code units that do not fit in 8 bits")),g[s+c]=l}else for(var c=0;c<o;++c)g[s+c]=i[c];return t!==null&&t.push(C,u),u},argPackAdvance:8,readValueFromPointer:K,destructorFunction:function(t){C(t)}})}function ke(r,e){for(var n="",t=0;!(t>=e/2);++t){var i=F[r+t*2>>1];if(i==0)break;n+=String.fromCharCode(i)}return n}function Ue(r,e,n){if(n===void 0&&(n=2147483647),n<2)return 0;n-=2;for(var t=e,i=n<r.length*2?n/2:r.length,o=0;o<i;++o){var f=r.charCodeAt(o);F[e>>1]=f,e+=2}return F[e>>1]=0,e-t}function Se(r){return r.length*2}function je(r,e){for(var n=0,t="";!(n>=e/4);){var i=_[r+n*4>>2];if(i==0)break;if(++n,i>=65536){var o=i-65536;t+=String.fromCharCode(55296|o>>10,56320|o&1023)}else t+=String.fromCharCode(i)}return t}function De(r,e,n){if(n===void 0&&(n=2147483647),n<4)return 0;for(var t=e,i=t+n-4,o=0;o<r.length;++o){var f=r.charCodeAt(o);if(f>=55296&&f<=57343){var u=r.charCodeAt(++o);f=65536+((f&1023)<<10)|u&1023}if(_[e>>2]=f,e+=4,e+4>i)break}return _[e>>2]=0,e-t}function Ie(r){for(var e=0,n=0;n<r.length;++n){var t=r.charCodeAt(n);t>=55296&&t<=57343&&++n,e+=4}return e}function Oe(r,e,n){n=h(n);var t,i,o,f,u;e===2?(t=ke,i=Ue,f=Se,o=()=>L,u=1):e===4&&(t=je,i=De,f=Ie,o=()=>p,u=2),w(r,{name:n,fromWireType:function(s){for(var c=p[s>>2],l=o(),d,v=s+4,A=0;A<=c;++A){var k=s+4+A*e;if(A==c||l[k>>u]==0){var T=k-v,j=t(v,T);d===void 0?d=j:(d+="\0",d+=j),v=k+e}}return C(s),d},toWireType:function(s,c){typeof c!="string"&&m("Cannot pass non-string to C++ string type "+n);var l=f(c),d=er(4+l+e);return p[d>>2]=l>>u,i(c,d+4,l+e),s!==null&&s.push(C,d),d},argPackAdvance:8,readValueFromPointer:K,destructorFunction:function(s){C(s)}})}function He(r,e,n,t,i,o){x[r]={name:h(e),rawConstructor:H(n,t),rawDestructor:H(i,o),fields:[]}}function Ve(r,e,n,t,i,o,f,u,s,c){x[r].fields.push({fieldName:h(e),getterReturnType:n,getter:H(t,i),getterContext:o,setterArgumentType:f,setter:H(u,s),setterContext:c})}function Me(r,e){e=h(e),w(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:function(){},toWireType:function(n,t){}})}var Be={};function Ne(r){var e=Be[r];return e===void 0?h(r):e}function kr(){if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var n=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return n||delete e.$$$embind_global$$$,n}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")}function Le(r){return r===0?S.toHandle(kr()):(r=Ne(r),S.toHandle(kr()[r]))}function qe(r){r>4&&(y[r].refcount+=1)}function xe(r){var e=new Array(r+1);return function(n,t,i){e[0]=n;for(var o=0;o<r;++o){var f=$r(p[t+o*4>>2],"parameter "+o);e[o+1]=f.readValueFromPointer(i),i+=f.argPackAdvance}var u=new(n.bind.apply(n,e));return S.toHandle(u)}}var Ur={};function Ke(r,e,n,t){r=S.toValue(r);var i=Ur[e];return i||(i=xe(e),Ur[e]=i),i(r,n,t)}function Ge(){q("")}function Qe(r,e,n){g.copyWithin(r,e,e+n)}function Xe(){return 2147483648}function Ze(r){var e=N.buffer;try{return N.grow(r-e.byteLength+65535>>>16),cr(),1}catch{}}function ze(r){var e=g.length;r=r>>>0;var n=Xe();if(r>n)return!1;let t=(s,c)=>s+(c-s%c)%c;for(var i=1;i<=4;i*=2){var o=e*(1+.2/i);o=Math.min(o,r+100663296);var f=Math.min(n,t(Math.max(r,o),65536)),u=Ze(f);if(u)return!0}return!1}br=a.InternalError=Y(Error,"InternalError"),ue(),Cr=a.BindingError=Y(Error,"BindingError"),le(),Wr=a.UnboundTypeError=Y(Error,"UnboundTypeError");var Je={k:ee,m:oe,o:ae,t:fe,s:de,q:he,d:ge,h:me,f:Re,c:$e,b:Pe,i:We,e:Oe,n:He,a:Ve,u:Me,j:Er,w:Le,l:qe,v:Ke,g:Ge,r:Qe,p:ze};Yr();var er=function(){return(er=a.asm.z).apply(null,arguments)},C=function(){return(C=a.asm.A).apply(null,arguments)},Sr=a.___getTypeName=function(){return(Sr=a.___getTypeName=a.asm.B).apply(null,arguments)};a.__embind_initialize_bindings=function(){return(a.__embind_initialize_bindings=a.asm.C).apply(null,arguments)};var jr=function(){return(jr=a.asm.E).apply(null,arguments)};a.dynCall_jiiii=function(){return(a.dynCall_jiiii=a.asm.F).apply(null,arguments)};var Z;O=function r(){Z||Dr(),Z||(O=r)};function Dr(){if($>0||(Nr(),$>0))return;function r(){Z||(Z=!0,a.calledRun=!0,!ur&&(Lr(),ir(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),qr()))}a.setStatus?(a.setStatus("Running..."),setTimeout(function(){setTimeout(function(){a.setStatus("")},1),r()},1)):r()}if(a.preInit)for(typeof a.preInit=="function"&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return Dr(),a.ready})})();export{nn as default};
|
package/dist/console/index.html
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap"
|
|
12
12
|
rel="stylesheet"
|
|
13
13
|
>
|
|
14
|
-
<script type="module" crossorigin src="/assets/index
|
|
15
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
14
|
+
<script type="module" crossorigin src="/assets/index-D-ml23Id.js"></script>
|
|
15
|
+
<link rel="stylesheet" crossorigin href="/assets/index-Cv-QsoKP.css">
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|
|
18
18
|
<div id="root"></div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Built at: 2026-
|
|
1
|
+
Built at: 2026-08-14T21:48:27.587Z
|