2023-04-07 17:16:43 -05:00
import { create , update _memory , save _template , initilize } from './snippets/dioxus-interpreter-js-1676574062e4c953/inline0.js' ;
import * as _ _wbg _star0 from './snippets/dioxus-interpreter-js-1676574062e4c953/inline0.js' ;
let wasm ;
const heap = new Array ( 128 ) . fill ( undefined ) ;
heap . push ( undefined , null , true , false ) ;
function getObject ( idx ) { return heap [ idx ] ; }
let heap _next = heap . length ;
function addHeapObject ( obj ) {
if ( heap _next === heap . length ) heap . push ( heap . length + 1 ) ;
const idx = heap _next ;
heap _next = heap [ idx ] ;
if ( typeof ( heap _next ) !== 'number' ) throw new Error ( 'corrupt heap' ) ;
heap [ idx ] = obj ;
return idx ;
}
function dropObject ( idx ) {
if ( idx < 132 ) return ;
heap [ idx ] = heap _next ;
heap _next = idx ;
}
function takeObject ( idx ) {
const ret = getObject ( idx ) ;
dropObject ( idx ) ;
return ret ;
}
function _assertBoolean ( n ) {
if ( typeof ( n ) !== 'boolean' ) {
throw new Error ( 'expected a boolean argument' ) ;
}
}
const cachedTextDecoder = new TextDecoder ( 'utf-8' , { ignoreBOM : true , fatal : true } ) ;
cachedTextDecoder . decode ( ) ;
let cachedUint8Memory0 = null ;
function getUint8Memory0 ( ) {
if ( cachedUint8Memory0 === null || cachedUint8Memory0 . byteLength === 0 ) {
cachedUint8Memory0 = new Uint8Array ( wasm . memory . buffer ) ;
}
return cachedUint8Memory0 ;
}
function getStringFromWasm0 ( ptr , len ) {
return cachedTextDecoder . decode ( getUint8Memory0 ( ) . subarray ( ptr , ptr + len ) ) ;
}
let WASM _VECTOR _LEN = 0 ;
const cachedTextEncoder = new TextEncoder ( 'utf-8' ) ;
const encodeString = ( typeof cachedTextEncoder . encodeInto === 'function'
? function ( arg , view ) {
return cachedTextEncoder . encodeInto ( arg , view ) ;
}
: function ( arg , view ) {
const buf = cachedTextEncoder . encode ( arg ) ;
view . set ( buf ) ;
return {
read : arg . length ,
written : buf . length
} ;
} ) ;
function passStringToWasm0 ( arg , malloc , realloc ) {
if ( typeof ( arg ) !== 'string' ) throw new Error ( 'expected a string argument' ) ;
if ( realloc === undefined ) {
const buf = cachedTextEncoder . encode ( arg ) ;
const ptr = malloc ( buf . length ) ;
getUint8Memory0 ( ) . subarray ( ptr , ptr + buf . length ) . set ( buf ) ;
WASM _VECTOR _LEN = buf . length ;
return ptr ;
}
let len = arg . length ;
let ptr = malloc ( len ) ;
const mem = getUint8Memory0 ( ) ;
let offset = 0 ;
for ( ; offset < len ; offset ++ ) {
const code = arg . charCodeAt ( offset ) ;
if ( code > 0x7F ) break ;
mem [ ptr + offset ] = code ;
}
if ( offset !== len ) {
if ( offset !== 0 ) {
arg = arg . slice ( offset ) ;
}
ptr = realloc ( ptr , len , len = offset + arg . length * 3 ) ;
const view = getUint8Memory0 ( ) . subarray ( ptr + offset , ptr + len ) ;
const ret = encodeString ( arg , view ) ;
if ( ret . read !== arg . length ) throw new Error ( 'failed to pass whole string' ) ;
offset += ret . written ;
}
WASM _VECTOR _LEN = offset ;
return ptr ;
}
function isLikeNone ( x ) {
return x === undefined || x === null ;
}
let cachedInt32Memory0 = null ;
function getInt32Memory0 ( ) {
if ( cachedInt32Memory0 === null || cachedInt32Memory0 . byteLength === 0 ) {
cachedInt32Memory0 = new Int32Array ( wasm . memory . buffer ) ;
}
return cachedInt32Memory0 ;
}
function debugString ( val ) {
// primitive types
const type = typeof val ;
if ( type == 'number' || type == 'boolean' || val == null ) {
return ` ${ val } ` ;
}
if ( type == 'string' ) {
return ` " ${ val } " ` ;
}
if ( type == 'symbol' ) {
const description = val . description ;
if ( description == null ) {
return 'Symbol' ;
} else {
return ` Symbol( ${ description } ) ` ;
}
}
if ( type == 'function' ) {
const name = val . name ;
if ( typeof name == 'string' && name . length > 0 ) {
return ` Function( ${ name } ) ` ;
} else {
return 'Function' ;
}
}
// objects
if ( Array . isArray ( val ) ) {
const length = val . length ;
let debug = '[' ;
if ( length > 0 ) {
debug += debugString ( val [ 0 ] ) ;
}
for ( let i = 1 ; i < length ; i ++ ) {
debug += ', ' + debugString ( val [ i ] ) ;
}
debug += ']' ;
return debug ;
}
// Test for built-in
const builtInMatches = /\[object ([^\]]+)\]/ . exec ( toString . call ( val ) ) ;
let className ;
if ( builtInMatches . length > 1 ) {
className = builtInMatches [ 1 ] ;
} else {
// Failed to match the standard '[object ClassName]'
return toString . call ( val ) ;
}
if ( className == 'Object' ) {
// we're a user defined class or Object
// JSON.stringify avoids problems with cycles, and is generally much
// easier than looping through ownProperties of `val`.
try {
return 'Object(' + JSON . stringify ( val ) + ')' ;
} catch ( _ ) {
return 'Object' ;
}
}
// errors
if ( val instanceof Error ) {
return ` ${ val . name } : ${ val . message } \n ${ val . stack } ` ;
}
// TODO we could test for more things here, like `Set`s and `Map`s.
return className ;
}
function makeMutClosure ( arg0 , arg1 , dtor , f ) {
const state = { a : arg0 , b : arg1 , cnt : 1 , dtor } ;
const real = ( ... args ) => {
// First up with a closure we increment the internal reference
// count. This ensures that the Rust closure environment won't
// be deallocated while we're invoking it.
state . cnt ++ ;
const a = state . a ;
state . a = 0 ;
try {
return f ( a , state . b , ... args ) ;
} finally {
if ( -- state . cnt === 0 ) {
wasm . _ _wbindgen _export _2 . get ( state . dtor ) ( a , state . b ) ;
} else {
state . a = a ;
}
}
} ;
real . original = state ;
return real ;
}
function logError ( f , args ) {
try {
return f . apply ( this , args ) ;
} catch ( e ) {
let error = ( function ( ) {
try {
return e instanceof Error ? ` ${ e . message } \n \n Stack: \n ${ e . stack } ` : e . toString ( ) ;
} catch ( _ ) {
return "<failed to stringify thrown value>" ;
}
} ( ) ) ;
console . error ( "wasm-bindgen: imported JS function that was not marked as `catch` threw an error:" , error ) ;
throw e ;
}
}
function _assertNum ( n ) {
if ( typeof ( n ) !== 'number' ) throw new Error ( 'expected a number argument' ) ;
}
2023-04-08 20:47:51 -05:00
function _ _wbg _adapter _22 ( arg0 , arg1 , arg2 ) {
_assertNum ( arg0 ) ;
_assertNum ( arg1 ) ;
wasm . _dyn _core _ _ops _ _function _ _FnMut _ _A _ _ _ _Output _ _ _R _as _wasm _bindgen _ _closure _ _WasmClosure _ _ _describe _ _invoke _ _hc1880658589bff58 ( arg0 , arg1 , addHeapObject ( arg2 ) ) ;
}
2023-04-07 17:16:43 -05:00
let stack _pointer = 128 ;
function addBorrowedObject ( obj ) {
if ( stack _pointer == 1 ) throw new Error ( 'out of js stack' ) ;
heap [ -- stack _pointer ] = obj ;
return stack _pointer ;
}
2023-04-08 20:47:51 -05:00
function _ _wbg _adapter _25 ( arg0 , arg1 , arg2 ) {
2023-04-07 17:16:43 -05:00
try {
_assertNum ( arg0 ) ;
_assertNum ( arg1 ) ;
2023-04-08 20:47:51 -05:00
wasm . _dyn _core _ _ops _ _function _ _FnMut _ _ _A _ _ _ _Output _ _ _R _as _wasm _bindgen _ _closure _ _WasmClosure _ _ _describe _ _invoke _ _h03d5b8da0fff4084 ( arg0 , arg1 , addBorrowedObject ( arg2 ) ) ;
2023-04-07 17:16:43 -05:00
} finally {
heap [ stack _pointer ++ ] = undefined ;
}
}
function _ _wbg _adapter _28 ( arg0 , arg1 , arg2 ) {
_assertNum ( arg0 ) ;
_assertNum ( arg1 ) ;
wasm . _dyn _core _ _ops _ _function _ _FnMut _ _A _ _ _ _Output _ _ _R _as _wasm _bindgen _ _closure _ _WasmClosure _ _ _describe _ _invoke _ _hf1e9673798e59b8a ( arg0 , arg1 , addHeapObject ( arg2 ) ) ;
}
2023-04-08 20:47:51 -05:00
function _ _wbg _adapter _31 ( arg0 , arg1 , arg2 ) {
try {
_assertNum ( arg0 ) ;
_assertNum ( arg1 ) ;
wasm . _dyn _core _ _ops _ _function _ _FnMut _ _ _A _ _ _ _Output _ _ _R _as _wasm _bindgen _ _closure _ _WasmClosure _ _ _describe _ _invoke _ _h169afd08b98b789d ( arg0 , arg1 , addBorrowedObject ( arg2 ) ) ;
} finally {
heap [ stack _pointer ++ ] = undefined ;
}
}
2023-04-07 17:16:43 -05:00
let cachedUint32Memory0 = null ;
function getUint32Memory0 ( ) {
if ( cachedUint32Memory0 === null || cachedUint32Memory0 . byteLength === 0 ) {
cachedUint32Memory0 = new Uint32Array ( wasm . memory . buffer ) ;
}
return cachedUint32Memory0 ;
}
function getArrayJsValueFromWasm0 ( ptr , len ) {
const mem = getUint32Memory0 ( ) ;
const slice = mem . subarray ( ptr / 4 , ptr / 4 + len ) ;
const result = [ ] ;
for ( let i = 0 ; i < slice . length ; i ++ ) {
result . push ( takeObject ( slice [ i ] ) ) ;
}
return result ;
}
function handleError ( f , args ) {
try {
return f . apply ( this , args ) ;
} catch ( e ) {
wasm . _ _wbindgen _exn _store ( addHeapObject ( e ) ) ;
}
}
2023-04-08 20:47:51 -05:00
function getCachedStringFromWasm0 ( ptr , len ) {
if ( ptr === 0 ) {
return getObject ( len ) ;
} else {
return getStringFromWasm0 ( ptr , len ) ;
}
}
2023-04-07 17:16:43 -05:00
async function load ( module , imports ) {
if ( typeof Response === 'function' && module instanceof Response ) {
if ( typeof WebAssembly . instantiateStreaming === 'function' ) {
try {
return await WebAssembly . instantiateStreaming ( module , imports ) ;
} catch ( e ) {
if ( module . headers . get ( 'Content-Type' ) != 'application/wasm' ) {
console . warn ( "`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n" , e ) ;
} else {
throw e ;
}
}
}
const bytes = await module . arrayBuffer ( ) ;
return await WebAssembly . instantiate ( bytes , imports ) ;
} else {
const instance = await WebAssembly . instantiate ( module , imports ) ;
if ( instance instanceof WebAssembly . Instance ) {
return { instance , module } ;
} else {
return instance ;
}
}
}
function getImports ( ) {
const imports = { } ;
imports . wbg = { } ;
imports . wbg . _ _wbindgen _object _clone _ref = function ( arg0 ) {
const ret = getObject ( arg0 ) ;
return addHeapObject ( ret ) ;
} ;
imports . wbg . _ _wbindgen _cb _drop = function ( arg0 ) {
const obj = takeObject ( arg0 ) . original ;
if ( obj . cnt -- == 1 ) {
obj . a = 0 ;
return true ;
}
const ret = false ;
_assertBoolean ( ret ) ;
return ret ;
} ;
imports . wbg . _ _wbg _create _84d0fe69433b2b4d = function ( ) { return logError ( function ( arg0 ) {
create ( arg0 >>> 0 ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _updatememory _f8282a316a44bc6c = function ( ) { return logError ( function ( arg0 ) {
update _memory ( takeObject ( arg0 ) ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _savetemplate _66c28e397e4ac81d = function ( ) { return logError ( function ( arg0 , arg1 , arg2 ) {
var v0 = getArrayJsValueFromWasm0 ( arg0 , arg1 ) . slice ( ) ;
wasm . _ _wbindgen _free ( arg0 , arg1 * 4 ) ;
save _template ( v0 , arg2 >>> 0 ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _initilize _b869c4536d6c8ce7 = function ( ) { return logError ( function ( arg0 , arg1 ) {
initilize ( takeObject ( arg0 ) , getObject ( arg1 ) ) ;
} , arguments ) } ;
imports . wbg . _ _wbindgen _string _new = function ( arg0 , arg1 ) {
const ret = getStringFromWasm0 ( arg0 , arg1 ) ;
return addHeapObject ( ret ) ;
} ;
imports . wbg . _ _wbg _instanceof _Window _e266f02eee43b570 = function ( ) { return logError ( function ( arg0 ) {
let result ;
try {
result = getObject ( arg0 ) instanceof Window ;
} catch {
result = false ;
}
const ret = result ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _document _950215a728589a2d = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . document ;
return isLikeNone ( ret ) ? 0 : addHeapObject ( ret ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _location _797a1856892cc2de = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . location ;
return addHeapObject ( ret ) ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _history _6ee959556f01f7ea = function ( ) { return handleError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . history ;
return addHeapObject ( ret ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _scrollTo _881c41fdbf5d1cdd = function ( ) { return logError ( function ( arg0 , arg1 , arg2 ) {
getObject ( arg0 ) . scrollTo ( arg1 , arg2 ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _title _4ec47c50bbc90221 = function ( ) { return logError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg1 ) . title ;
const ptr0 = passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
const len0 = WASM _VECTOR _LEN ;
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len0 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
} , arguments ) } ;
2023-04-07 17:16:43 -05:00
imports . wbg . _ _wbg _createElement _e2a0e21263eb5416 = function ( ) { return handleError ( function ( arg0 , arg1 , arg2 ) {
var v0 = getCachedStringFromWasm0 ( arg1 , arg2 ) ;
const ret = getObject ( arg0 ) . createElement ( v0 ) ;
return addHeapObject ( ret ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _createElementNS _0047de728927ea00 = function ( ) { return handleError ( function ( arg0 , arg1 , arg2 , arg3 , arg4 ) {
var v0 = getCachedStringFromWasm0 ( arg1 , arg2 ) ;
var v1 = getCachedStringFromWasm0 ( arg3 , arg4 ) ;
const ret = getObject ( arg0 ) . createElementNS ( v0 , v1 ) ;
return addHeapObject ( ret ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _createTextNode _866e33a51b47f04c = function ( ) { return logError ( function ( arg0 , arg1 , arg2 ) {
var v0 = getCachedStringFromWasm0 ( arg1 , arg2 ) ;
const ret = getObject ( arg0 ) . createTextNode ( v0 ) ;
return addHeapObject ( ret ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _getElementById _eb93a47327bb5585 = function ( ) { return logError ( function ( arg0 , arg1 , arg2 ) {
var v0 = getCachedStringFromWasm0 ( arg1 , arg2 ) ;
const ret = getObject ( arg0 ) . getElementById ( v0 ) ;
return isLikeNone ( ret ) ? 0 : addHeapObject ( ret ) ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _instanceof _HtmlTextAreaElement _4bc39f9d861a6832 = function ( ) { return logError ( function ( arg0 ) {
let result ;
try {
result = getObject ( arg0 ) instanceof HTMLTextAreaElement ;
} catch {
result = false ;
}
const ret = result ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _value _00fb0fdc46959169 = function ( ) { return logError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg1 ) . value ;
const ptr0 = passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
const len0 = WASM _VECTOR _LEN ;
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len0 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
} , arguments ) } ;
imports . wbg . _ _wbg _animationName _8b08b6b55e2871c3 = function ( ) { return logError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg1 ) . animationName ;
const ptr0 = passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
const len0 = WASM _VECTOR _LEN ;
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len0 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
} , arguments ) } ;
imports . wbg . _ _wbg _elapsedTime _b9b2848f0ce69c4d = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . elapsedTime ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _pseudoElement _489395cbb841b9a8 = function ( ) { return logError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg1 ) . pseudoElement ;
const ptr0 = passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
const len0 = WASM _VECTOR _LEN ;
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len0 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
} , arguments ) } ;
imports . wbg . _ _wbg _instanceof _HtmlFormElement _04e7484e36bd99d6 = function ( ) { return logError ( function ( arg0 ) {
let result ;
try {
result = getObject ( arg0 ) instanceof HTMLFormElement ;
} catch {
result = false ;
}
const ret = result ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _elements _ce4445b6cda59af6 = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . elements ;
return addHeapObject ( ret ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _pointerId _d2caae4465ba386f = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . pointerId ;
_assertNum ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _width _a1d5efe9db3fb17a = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . width ;
_assertNum ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _height _7a964b61a7a42a7d = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . height ;
_assertNum ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _pressure _352c13794490720b = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . pressure ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _tangentialPressure _1dfc978ca995fe64 = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . tangentialPressure ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _tiltX _5e065070f9907bab = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . tiltX ;
_assertNum ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _tiltY _88a95794fa24061b = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . tiltY ;
_assertNum ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _twist _1ac0d3bf085b9fa5 = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . twist ;
_assertNum ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _pointerType _df759fa0bd6634ed = function ( ) { return logError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg1 ) . pointerType ;
const ptr0 = passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
const len0 = WASM _VECTOR _LEN ;
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len0 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
} , arguments ) } ;
imports . wbg . _ _wbg _isPrimary _31079f1bab7f6665 = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . isPrimary ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _propertyName _e41c6239ffb77f2a = function ( ) { return logError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg1 ) . propertyName ;
const ptr0 = passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
const len0 = WASM _VECTOR _LEN ;
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len0 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
} , arguments ) } ;
imports . wbg . _ _wbg _elapsedTime _6bbd8686761d767f = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . elapsedTime ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _pseudoElement _589db5e026c64890 = function ( ) { return logError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg1 ) . pseudoElement ;
const ptr0 = passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
const len0 = WASM _VECTOR _LEN ;
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len0 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
} , arguments ) } ;
2023-04-07 17:16:43 -05:00
imports . wbg . _ _wbg _instanceof _HtmlInputElement _5c9d54338207f061 = function ( ) { return logError ( function ( arg0 ) {
let result ;
try {
result = getObject ( arg0 ) instanceof HTMLInputElement ;
} catch {
result = false ;
}
const ret = result ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _checked _44c09d0c819e33ad = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . checked ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _type _6bd11acdabd07813 = function ( ) { return logError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg1 ) . type ;
const ptr0 = passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
const len0 = WASM _VECTOR _LEN ;
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len0 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
} , arguments ) } ;
imports . wbg . _ _wbg _value _1f2c9e357d18d3ea = function ( ) { return logError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg1 ) . value ;
const ptr0 = passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
const len0 = WASM _VECTOR _LEN ;
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len0 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
} , arguments ) } ;
imports . wbg . _ _wbg _type _1dff9d19be2750ce = function ( ) { return logError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg1 ) . type ;
const ptr0 = passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
const len0 = WASM _VECTOR _LEN ;
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len0 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
} , arguments ) } ;
imports . wbg . _ _wbg _target _b629c177f9bee3da = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . target ;
return isLikeNone ( ret ) ? 0 : addHeapObject ( ret ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _preventDefault _16b2170b12f56317 = function ( ) { return logError ( function ( arg0 ) {
getObject ( arg0 ) . preventDefault ( ) ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _addEventListener _cf5b03cd29763277 = function ( ) { return handleError ( function ( arg0 , arg1 , arg2 , arg3 , arg4 ) {
var v0 = getCachedStringFromWasm0 ( arg1 , arg2 ) ;
getObject ( arg0 ) . addEventListener ( v0 , getObject ( arg3 ) , getObject ( arg4 ) ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _removeEventListener _b25f5db74f767386 = function ( ) { return handleError ( function ( arg0 , arg1 , arg2 , arg3 , arg4 ) {
var v0 = getCachedStringFromWasm0 ( arg1 , arg2 ) ;
getObject ( arg0 ) . removeEventListener ( v0 , getObject ( arg3 ) , arg4 !== 0 ) ;
} , arguments ) } ;
2023-04-07 17:16:43 -05:00
imports . wbg . _ _wbg _data _af909e5dfe73e68c = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . data ;
return addHeapObject ( ret ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _altKey _088afaf4c4a6fe7c = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . altKey ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _metaKey _69f3ca388ab2c6b2 = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . metaKey ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _ctrlKey _011662ff21669501 = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . ctrlKey ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _shiftKey _5472f6ec6b0da088 = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . shiftKey ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _instanceof _HtmlSelectElement _d22585b1943c6b08 = function ( ) { return logError ( function ( arg0 ) {
let result ;
try {
result = getObject ( arg0 ) instanceof HTMLSelectElement ;
} catch {
result = false ;
}
const ret = result ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _value _1b15c45090422f7f = function ( ) { return logError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg1 ) . value ;
const ptr0 = passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
const len0 = WASM _VECTOR _LEN ;
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len0 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
} , arguments ) } ;
imports . wbg . _ _wbg _altKey _dff2a075455ac01b = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . altKey ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _ctrlKey _993b558f853d64ce = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . ctrlKey ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _shiftKey _31e62e9d172b26f0 = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . shiftKey ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _metaKey _9f0f19692d0498bd = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . metaKey ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _location _e0f6bf3e5e23180a = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . location ;
_assertNum ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _repeat _7ef48474c78e74bd = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . repeat ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _key _f0decac219aa904b = function ( ) { return logError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg1 ) . key ;
const ptr0 = passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
const len0 = WASM _VECTOR _LEN ;
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len0 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
} , arguments ) } ;
imports . wbg . _ _wbg _code _aed21120de275a12 = function ( ) { return logError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg1 ) . code ;
const ptr0 = passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
const len0 = WASM _VECTOR _LEN ;
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len0 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _pushState _429f091d389407b4 = function ( ) { return handleError ( function ( arg0 , arg1 , arg2 , arg3 , arg4 , arg5 ) {
var v0 = getCachedStringFromWasm0 ( arg2 , arg3 ) ;
var v1 = getCachedStringFromWasm0 ( arg4 , arg5 ) ;
getObject ( arg0 ) . pushState ( getObject ( arg1 ) , v0 , v1 ) ;
2023-04-07 17:16:43 -05:00
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _replaceState _099eb1e3de220ab7 = function ( ) { return handleError ( function ( arg0 , arg1 , arg2 , arg3 , arg4 , arg5 ) {
var v0 = getCachedStringFromWasm0 ( arg2 , arg3 ) ;
var v1 = getCachedStringFromWasm0 ( arg4 , arg5 ) ;
getObject ( arg0 ) . replaceState ( getObject ( arg1 ) , v0 , v1 ) ;
2023-04-07 17:16:43 -05:00
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _href _bb86bb94d1c6861b = function ( ) { return handleError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg1 ) . href ;
const ptr0 = passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
const len0 = WASM _VECTOR _LEN ;
2023-04-07 17:16:43 -05:00
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len0 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
} , arguments ) } ;
imports . wbg . _ _wbg _protocol _3767aa51aa3121ca = function ( ) { return handleError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg1 ) . protocol ;
const ptr0 = passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
const len0 = WASM _VECTOR _LEN ;
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len0 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
} , arguments ) } ;
imports . wbg . _ _wbg _host _ab37f7d1be2315a7 = function ( ) { return handleError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg1 ) . host ;
const ptr0 = passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
const len0 = WASM _VECTOR _LEN ;
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len0 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _instanceof _Node _abf5312af68f179e = function ( ) { return logError ( function ( arg0 ) {
2023-04-07 17:16:43 -05:00
let result ;
try {
2023-04-08 20:47:51 -05:00
result = getObject ( arg0 ) instanceof Node ;
2023-04-07 17:16:43 -05:00
} catch {
result = false ;
}
const ret = result ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _parentElement _0e8c9afce5cb9d6e = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . parentElement ;
return isLikeNone ( ret ) ? 0 : addHeapObject ( ret ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _textContent _dff59ad5e030bb86 = function ( ) { return logError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg1 ) . textContent ;
2023-04-07 17:16:43 -05:00
var ptr0 = isLikeNone ( ret ) ? 0 : passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
var len0 = WASM _VECTOR _LEN ;
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len0 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _appendChild _b8199dc1655c852d = function ( ) { return handleError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg0 ) . appendChild ( getObject ( arg1 ) ) ;
return addHeapObject ( ret ) ;
2023-04-07 17:16:43 -05:00
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _pageX _fa6e927410d8f9a8 = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . pageX ;
2023-04-07 17:16:43 -05:00
_assertNum ( ret ) ;
return ret ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _pageY _fcdd161e44399498 = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . pageY ;
2023-04-07 17:16:43 -05:00
_assertNum ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _instanceof _Element _cb847a3fc7b1b1a4 = function ( ) { return logError ( function ( arg0 ) {
let result ;
try {
result = getObject ( arg0 ) instanceof Element ;
} catch {
result = false ;
}
const ret = result ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _getAttribute _2c20e00a5cd314af = function ( ) { return logError ( function ( arg0 , arg1 , arg2 , arg3 ) {
var v0 = getCachedStringFromWasm0 ( arg2 , arg3 ) ;
const ret = getObject ( arg1 ) . getAttribute ( v0 ) ;
var ptr1 = isLikeNone ( ret ) ? 0 : passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
var len1 = WASM _VECTOR _LEN ;
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len1 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr1 ;
} , arguments ) } ;
imports . wbg . _ _wbg _setAttribute _79c9562d32d05e66 = function ( ) { return handleError ( function ( arg0 , arg1 , arg2 , arg3 , arg4 ) {
var v0 = getCachedStringFromWasm0 ( arg1 , arg2 ) ;
var v1 = getCachedStringFromWasm0 ( arg3 , arg4 ) ;
getObject ( arg0 ) . setAttribute ( v0 , v1 ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _setAttributeNS _6226a35b93f5c79c = function ( ) { return handleError ( function ( arg0 , arg1 , arg2 , arg3 , arg4 , arg5 , arg6 ) {
var v0 = getCachedStringFromWasm0 ( arg1 , arg2 ) ;
var v1 = getCachedStringFromWasm0 ( arg3 , arg4 ) ;
var v2 = getCachedStringFromWasm0 ( arg5 , arg6 ) ;
getObject ( arg0 ) . setAttributeNS ( v0 , v1 , v2 ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _toggleAttribute _0d026e5820a28711 = function ( ) { return handleError ( function ( arg0 , arg1 , arg2 ) {
var v0 = getCachedStringFromWasm0 ( arg1 , arg2 ) ;
const ret = getObject ( arg0 ) . toggleAttribute ( v0 ) ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _instanceof _HtmlElement _9e442d53bb553421 = function ( ) { return logError ( function ( arg0 ) {
let result ;
try {
result = getObject ( arg0 ) instanceof HTMLElement ;
} catch {
result = false ;
}
const ret = result ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _style _2141664e428fef46 = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . style ;
return addHeapObject ( ret ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _debug _7960d327fd96f71a = function ( ) { return logError ( function ( arg0 , arg1 , arg2 , arg3 ) {
console . debug ( getObject ( arg0 ) , getObject ( arg1 ) , getObject ( arg2 ) , getObject ( arg3 ) ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _error _fe807da27c4a4ced = function ( ) { return logError ( function ( arg0 ) {
console . error ( getObject ( arg0 ) ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _error _fd84ca2a8a977774 = function ( ) { return logError ( function ( arg0 , arg1 , arg2 , arg3 ) {
console . error ( getObject ( arg0 ) , getObject ( arg1 ) , getObject ( arg2 ) , getObject ( arg3 ) ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _info _5566be377f5b52ae = function ( ) { return logError ( function ( arg0 , arg1 , arg2 , arg3 ) {
console . info ( getObject ( arg0 ) , getObject ( arg1 ) , getObject ( arg2 ) , getObject ( arg3 ) ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _log _7b690f184ae4519b = function ( ) { return logError ( function ( arg0 , arg1 , arg2 , arg3 ) {
console . log ( getObject ( arg0 ) , getObject ( arg1 ) , getObject ( arg2 ) , getObject ( arg3 ) ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _warn _48cbddced45e5414 = function ( ) { return logError ( function ( arg0 , arg1 , arg2 , arg3 ) {
console . warn ( getObject ( arg0 ) , getObject ( arg1 ) , getObject ( arg2 ) , getObject ( arg3 ) ) ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _instanceof _CompositionEvent _57e2f1c0e7330ddc = function ( ) { return logError ( function ( arg0 ) {
2023-04-07 17:16:43 -05:00
let result ;
try {
2023-04-08 20:47:51 -05:00
result = getObject ( arg0 ) instanceof CompositionEvent ;
2023-04-07 17:16:43 -05:00
} catch {
result = false ;
}
const ret = result ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _data _70b505c651722930 = function ( ) { return logError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg1 ) . data ;
var ptr0 = isLikeNone ( ret ) ? 0 : passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
var len0 = WASM _VECTOR _LEN ;
2023-04-07 17:16:43 -05:00
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len0 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _setProperty _21e2e7868b86a93e = function ( ) { return handleError ( function ( arg0 , arg1 , arg2 , arg3 , arg4 ) {
var v0 = getCachedStringFromWasm0 ( arg1 , arg2 ) ;
var v1 = getCachedStringFromWasm0 ( arg3 , arg4 ) ;
getObject ( arg0 ) . setProperty ( v0 , v1 ) ;
2023-04-07 17:16:43 -05:00
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _length _5ce97df09b61b986 = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . length ;
_assertNum ( ret ) ;
2023-04-07 17:16:43 -05:00
return ret ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _item _2ab86c1e3cb70ed3 = function ( ) { return logError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg0 ) . item ( arg1 >>> 0 ) ;
return isLikeNone ( ret ) ? 0 : addHeapObject ( ret ) ;
2023-04-07 17:16:43 -05:00
} , arguments ) } ;
imports . wbg . _ _wbg _setonmessage _5ea7e452fd7a5544 = function ( ) { return logError ( function ( arg0 , arg1 ) {
getObject ( arg0 ) . onmessage = getObject ( arg1 ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _new _8ad026ef33da9ab1 = function ( ) { return handleError ( function ( arg0 , arg1 ) {
var v0 = getCachedStringFromWasm0 ( arg0 , arg1 ) ;
const ret = new WebSocket ( v0 ) ;
return addHeapObject ( ret ) ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _screenX _efa7b61dc7fa2efd = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . screenX ;
_assertNum ( ret ) ;
2023-04-07 17:16:43 -05:00
return ret ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _screenY _c5e6449919709a69 = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . screenY ;
_assertNum ( ret ) ;
2023-04-07 17:16:43 -05:00
return ret ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _clientX _35f23f953e04ec0e = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . clientX ;
_assertNum ( ret ) ;
2023-04-07 17:16:43 -05:00
return ret ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _clientY _8104e462abc0b3ec = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . clientY ;
2023-04-07 17:16:43 -05:00
_assertNum ( ret ) ;
return ret ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _offsetX _413d9f02022e72ad = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . offsetX ;
_assertNum ( ret ) ;
2023-04-07 17:16:43 -05:00
return ret ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _offsetY _488f80a0a9666028 = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . offsetY ;
2023-04-07 17:16:43 -05:00
_assertNum ( ret ) ;
return ret ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _ctrlKey _e1b8f1de1eb24d5d = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . ctrlKey ;
_assertBoolean ( ret ) ;
2023-04-07 17:16:43 -05:00
return ret ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _shiftKey _fdd99b6df96e25c5 = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . shiftKey ;
_assertBoolean ( ret ) ;
2023-04-07 17:16:43 -05:00
return ret ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _altKey _d531a4d3704557cb = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . altKey ;
_assertBoolean ( ret ) ;
2023-04-07 17:16:43 -05:00
return ret ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _metaKey _934772989e28020c = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . metaKey ;
_assertBoolean ( ret ) ;
2023-04-07 17:16:43 -05:00
return ret ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _button _a1c470d5e4c997f2 = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . button ;
2023-04-07 17:16:43 -05:00
_assertNum ( ret ) ;
return ret ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _buttons _42a7b7de33d8e572 = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . buttons ;
2023-04-07 17:16:43 -05:00
_assertNum ( ret ) ;
return ret ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _deltaX _b7d127c94d6265c0 = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . deltaX ;
2023-04-07 17:16:43 -05:00
return ret ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _deltaY _b32fa858e16edcc0 = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . deltaY ;
return ret ;
2023-04-07 17:16:43 -05:00
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _deltaZ _f74840dd94a2e4c0 = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . deltaZ ;
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _deltaMode _11f7b19e64d9a515 = function ( ) { return logError ( function ( arg0 ) {
const ret = getObject ( arg0 ) . deltaMode ;
_assertNum ( ret ) ;
2023-04-07 17:16:43 -05:00
return ret ;
} , arguments ) } ;
imports . wbg . _ _wbg _newnoargs _2b8b6bd7753c76ba = function ( ) { return logError ( function ( arg0 , arg1 ) {
var v0 = getCachedStringFromWasm0 ( arg0 , arg1 ) ;
const ret = new Function ( v0 ) ;
return addHeapObject ( ret ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _call _95d1ea488d03e4e8 = function ( ) { return handleError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg0 ) . call ( getObject ( arg1 ) ) ;
return addHeapObject ( ret ) ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _new _f9876326328f45ed = function ( ) { return logError ( function ( ) {
const ret = new Object ( ) ;
return addHeapObject ( ret ) ;
} , arguments ) } ;
2023-04-07 17:16:43 -05:00
imports . wbg . _ _wbg _resolve _fd40f858d9db1a04 = function ( ) { return logError ( function ( arg0 ) {
const ret = Promise . resolve ( getObject ( arg0 ) ) ;
return addHeapObject ( ret ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _then _ec5db6d509eb475f = function ( ) { return logError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg0 ) . then ( getObject ( arg1 ) ) ;
return addHeapObject ( ret ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _globalThis _87cbb8506fecf3a9 = function ( ) { return handleError ( function ( ) {
const ret = globalThis . globalThis ;
return addHeapObject ( ret ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _self _e7c1f827057f6584 = function ( ) { return handleError ( function ( ) {
const ret = self . self ;
return addHeapObject ( ret ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _window _a09ec664e14b1b81 = function ( ) { return handleError ( function ( ) {
const ret = window . window ;
return addHeapObject ( ret ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _global _c85a9259e621f3db = function ( ) { return handleError ( function ( ) {
const ret = global . global ;
return addHeapObject ( ret ) ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbg _set _6aa458a4ebdb65cb = function ( ) { return handleError ( function ( arg0 , arg1 , arg2 ) {
const ret = Reflect . set ( getObject ( arg0 ) , getObject ( arg1 ) , getObject ( arg2 ) ) ;
_assertBoolean ( ret ) ;
return ret ;
} , arguments ) } ;
2023-04-07 17:16:43 -05:00
imports . wbg . _ _wbindgen _is _undefined = function ( arg0 ) {
const ret = getObject ( arg0 ) === undefined ;
_assertBoolean ( ret ) ;
return ret ;
} ;
imports . wbg . _ _wbindgen _string _get = function ( arg0 , arg1 ) {
const obj = getObject ( arg1 ) ;
const ret = typeof ( obj ) === 'string' ? obj : undefined ;
var ptr0 = isLikeNone ( ret ) ? 0 : passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
var len0 = WASM _VECTOR _LEN ;
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len0 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
} ;
imports . wbg . _ _wbindgen _is _string = function ( arg0 ) {
const ret = typeof ( getObject ( arg0 ) ) === 'string' ;
_assertBoolean ( ret ) ;
return ret ;
} ;
imports . wbg . _ _wbg _error _f851667af71bcfc6 = function ( ) { return logError ( function ( arg0 , arg1 ) {
var v0 = getCachedStringFromWasm0 ( arg0 , arg1 ) ;
if ( arg0 !== 0 ) { wasm . _ _wbindgen _free ( arg0 , arg1 ) ; }
console . error ( v0 ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _new _abda76e883ba8a5f = function ( ) { return logError ( function ( ) {
const ret = new Error ( ) ;
return addHeapObject ( ret ) ;
} , arguments ) } ;
imports . wbg . _ _wbg _stack _658279fe44541cf6 = function ( ) { return logError ( function ( arg0 , arg1 ) {
const ret = getObject ( arg1 ) . stack ;
const ptr0 = passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
const len0 = WASM _VECTOR _LEN ;
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len0 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
} , arguments ) } ;
imports . wbg . _ _wbindgen _debug _string = function ( arg0 , arg1 ) {
const ret = debugString ( getObject ( arg1 ) ) ;
const ptr0 = passStringToWasm0 ( ret , wasm . _ _wbindgen _malloc , wasm . _ _wbindgen _realloc ) ;
const len0 = WASM _VECTOR _LEN ;
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len0 ;
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
} ;
imports . wbg . _ _wbindgen _object _drop _ref = function ( arg0 ) {
takeObject ( arg0 ) ;
} ;
imports . wbg . _ _wbindgen _throw = function ( arg0 , arg1 ) {
throw new Error ( getStringFromWasm0 ( arg0 , arg1 ) ) ;
} ;
imports . wbg . _ _wbindgen _memory = function ( ) {
const ret = wasm . memory ;
return addHeapObject ( ret ) ;
} ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbindgen _closure _wrapper906 = function ( ) { return logError ( function ( arg0 , arg1 , arg2 ) {
const ret = makeMutClosure ( arg0 , arg1 , 116 , _ _wbg _adapter _22 ) ;
2023-04-07 17:16:43 -05:00
return addHeapObject ( ret ) ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbindgen _closure _wrapper908 = function ( ) { return logError ( function ( arg0 , arg1 , arg2 ) {
const ret = makeMutClosure ( arg0 , arg1 , 118 , _ _wbg _adapter _25 ) ;
2023-04-07 17:16:43 -05:00
return addHeapObject ( ret ) ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbindgen _closure _wrapper2232 = function ( ) { return logError ( function ( arg0 , arg1 , arg2 ) {
2023-04-07 17:16:43 -05:00
const ret = makeMutClosure ( arg0 , arg1 , 160 , _ _wbg _adapter _28 ) ;
return addHeapObject ( ret ) ;
} , arguments ) } ;
2023-04-08 20:47:51 -05:00
imports . wbg . _ _wbindgen _closure _wrapper4203 = function ( ) { return logError ( function ( arg0 , arg1 , arg2 ) {
const ret = makeMutClosure ( arg0 , arg1 , 339 , _ _wbg _adapter _31 ) ;
return addHeapObject ( ret ) ;
} , arguments ) } ;
2023-04-07 17:16:43 -05:00
imports [ './snippets/dioxus-interpreter-js-1676574062e4c953/inline0.js' ] = _ _wbg _star0 ;
return imports ;
}
function initMemory ( imports , maybe _memory ) {
}
function finalizeInit ( instance , module ) {
wasm = instance . exports ;
init . _ _wbindgen _wasm _module = module ;
cachedInt32Memory0 = null ;
cachedUint32Memory0 = null ;
cachedUint8Memory0 = null ;
wasm . _ _wbindgen _start ( ) ;
return wasm ;
}
function initSync ( module ) {
const imports = getImports ( ) ;
initMemory ( imports ) ;
if ( ! ( module instanceof WebAssembly . Module ) ) {
module = new WebAssembly . Module ( module ) ;
}
const instance = new WebAssembly . Instance ( module , imports ) ;
return finalizeInit ( instance , module ) ;
}
async function init ( input ) {
const imports = getImports ( ) ;
if ( typeof input === 'string' || ( typeof Request === 'function' && input instanceof Request ) || ( typeof URL === 'function' && input instanceof URL ) ) {
input = fetch ( input ) ;
}
initMemory ( imports ) ;
const { instance , module } = await load ( await input , imports ) ;
return finalizeInit ( instance , module ) ;
}
export { initSync }
export default init ;