Files
fad_oa/ruoyi-ui/public/file-viewer/assets/wasm-pack-shim-BnuNh1z7.js

1 line
46 KiB
JavaScript
Raw Normal View History

var e;function t(e){y===v.length&&v.push(v.length+1);let t=y;if(y=v[t],typeof y!=`number`)throw Error(`corrupt heap`);return v[t]=e,t}function n(e){if(typeof e!=`boolean`)throw Error(`expected a boolean argument, found ${typeof e}`)}function r(e,t){if(!(e instanceof t))throw Error(`expected instance of ${t.name}`)}function i(e){if(typeof e!=`number`)throw Error(`expected a number argument, found ${typeof e}`)}var a=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>e.dtor(e.a,e.b));function o(e){let t=typeof e;if(t==`number`||t==`boolean`||e==null)return`${e}`;if(t==`string`)return`"${e}"`;if(t==`symbol`){let t=e.description;return t==null?`Symbol`:`Symbol(${t})`}if(t==`function`){let t=e.name;return typeof t==`string`&&t.length>0?`Function(${t})`:`Function`}if(Array.isArray(e)){let t=e.length,n=`[`;t>0&&(n+=o(e[0]));for(let r=1;r<t;r++)n+=`, `+o(e[r]);return n+=`]`,n}let n=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(n&&n.length>1)r=n[1];else return toString.call(e);if(r==`Object`)try{return`Object(`+JSON.stringify(e)+`)`}catch{return`Object`}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function s(e){e<132||(v[e]=y,y=e)}function c(e,t){return e>>>=0,h().subarray(e/1,e/1+t)}var l=null;function u(){return(l===null||l.buffer.detached===!0||l.buffer.detached===void 0&&l.buffer!==e.memory.buffer)&&(l=new DataView(e.memory.buffer)),l}function d(e,t){return e>>>=0,re(e,t)}var f=null;function p(){return(f===null||f.byteLength===0)&&(f=new Uint32Array(e.memory.buffer)),f}var m=null;function h(){return(m===null||m.byteLength===0)&&(m=new Uint8Array(e.memory.buffer)),m}function g(e){return v[e]}function _(n,r){try{return n.apply(this,r)}catch(n){e.__wbindgen_export3(t(n))}}var v=Array(128).fill(void 0);v.push(void 0,null,!0,!1);var y=v.length;function b(e){return e==null}function x(e,t){try{return e.apply(this,t)}catch(e){let t=function(){try{return e instanceof Error?`${e.message}\n\nStack:\n${e.stack}`:e.toString()}catch{return`<failed to stringify thrown value>`}}();throw console.error("wasm-bindgen: imported JS function that was not marked as `catch` threw an error:",t),e}}function S(e,t,n,r){let i={a:e,b:t,cnt:1,dtor:n},o=(...e)=>{i.cnt++;try{return r(i.a,i.b,...e)}finally{o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--i.cnt===0&&(i.dtor(i.a,i.b),i.a=0,a.unregister(i))},a.register(o,i,i),o}function ee(e,t,n,r){let i={a:e,b:t,cnt:1,dtor:n},o=(...e)=>{i.cnt++;let t=i.a;i.a=0;try{return r(t,i.b,...e)}finally{i.a=t,o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--i.cnt===0&&(i.dtor(i.a,i.b),i.a=0,a.unregister(i))},a.register(o,i,i),o}function te(e,t){let n=t(e.length*4,4)>>>0;return p().set(e,n/4),A=e.length,n}function C(e,t){let n=t(e.length*1,1)>>>0;return h().set(e,n/1),A=e.length,n}function w(e,n){let r=n(e.length*4,4)>>>0,i=u();for(let n=0;n<e.length;n++)i.setUint32(r+4*n,t(e[n]),!0);return A=e.length,r}function T(e,t,n){if(typeof e!=`string`)throw Error(`expected a string argument, found ${typeof e}`);if(n===void 0){let n=k.encode(e),r=t(n.length,1)>>>0;return h().subarray(r,r+n.length).set(n),A=n.length,r}let r=e.length,i=t(r,1)>>>0,a=h(),o=0;for(;o<r;o++){let t=e.charCodeAt(o);if(t>127)break;a[i+o]=t}if(o!==r){o!==0&&(e=e.slice(o)),i=n(i,r,r=o+e.length*3,1)>>>0;let t=h().subarray(i+o,i+r),a=k.encodeInto(e,t);if(a.read!==e.length)throw Error(`failed to pass whole string`);o+=a.written,i=n(i,r,o,1)>>>0}return A=o,i}function E(e){let t=g(e);return s(e),t}var D=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0});D.decode();var ne=2146435072,O=0;function re(e,t){return O+=t,O>=ne&&(D=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}),D.decode(),O=t),D.decode(h().subarray(e,e+t))}var k=new TextEncoder;`encodeInto`in k||(k.encodeInto=function(e,t){let n=k.encode(e);return t.set(n),{read:e.length,written:n.length}});var A=0;function ie(n,r,a){i(n),i(r),e.__wasm_bindgen_func_elem_1056(n,r,t(a))}function ae(t,n){i(t),i(n),e.__wasm_bindgen_func_elem_1035(t,n)}function oe(n,r,a){i(n),i(r),e.__wasm_bindgen_func_elem_1034(n,r,t(a))}function se(n,r,a,o){i(n),i(r),e._