@lottiefiles/dotlottie-web 0.67.0 → 0.68.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/dist/dotlottie-player.wasm +0 -0
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +177 -177
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +339 -339
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/webgl/dotlottie-player.wasm +0 -0
- package/dist/webgl/index.cjs +2 -2
- package/dist/webgl/index.cjs.map +1 -1
- package/dist/webgl/index.d.cts +177 -177
- package/dist/webgl/index.d.cts.map +1 -1
- package/dist/webgl/index.d.ts +339 -339
- package/dist/webgl/index.d.ts.map +1 -1
- package/dist/webgl/index.js +2 -2
- package/dist/webgl/index.js.map +1 -1
- package/dist/webgpu/dotlottie-player.wasm +0 -0
- package/dist/webgpu/index.cjs +2 -2
- package/dist/webgpu/index.cjs.map +1 -1
- package/dist/webgpu/index.d.cts +177 -177
- package/dist/webgpu/index.d.cts.map +1 -1
- package/dist/webgpu/index.d.ts +339 -339
- package/dist/webgpu/index.d.ts.map +1 -1
- package/dist/webgpu/index.js +2 -2
- package/dist/webgpu/index.js.map +1 -1
- package/package.json +8 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/event-manager.ts","../../src/types.ts","../../src/core/dotlottie-player.js","../../src/dotlottie.ts","../../src/webgl/dotlottie-webgl.ts"],"mappings":";;AAGA;;KAAY,SAAA;;;AA0BsB;KAK7B,WAAA,WAAsB,SAAA,IAAa,OAAA,CAAQ,KAAA;EAAS,IAAA,EAAM,CAAA;AAAA;;;;UAK9C,SAAA;EACf,IAAA,EAAM,SAAA;AAAA;AAAA,UAGS,WAAA,SAAoB,SAAA;EACnC,YAAA;EACA,IAAA;AAAA;AAAA,UAGe,WAAA,SAAo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
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/event-manager.ts","../../src/types.ts","../../src/core/dotlottie-player.js","../../src/dotlottie.ts","../../src/webgl/dotlottie-webgl.ts"],"mappings":";;AAGA;;KAAY,SAAA;;;AA0BsB;KAK7B,WAAA,WAAsB,SAAA,IAAa,OAAA,CAAQ,KAAA;EAAS,IAAA,EAAM,CAAA;AAAA;;;;UAK9C,SAAA;EACf,IAAA,EAAM,SAAA;AAAA;AAAA,UAGS,WAAA,SAAoB,SAAA;EACnC,YAAA;EACA,IAAA;AAAA;AAAA,UAGe,WAAA,SAAoB,SAAA;EACnC,IAAA;AAAA;AAAA,UAGe,aAAA,SAAsB,SAAA;EACrC,IAAA;AAAA;AAAA,UAMe,YAAA,SAAqB,SAAA;EACpC,IAAA;AAAA;;;;UAMe,SAAA,SAAkB,SAAA;EACjC,SAAA;EACA,IAAA;AAAA;;AApBF;;UA0BiB,UAAA,SAAmB,SAAA;EAClC,YAAA;EACA,IAAA;AAAA;;;;UAMe,SAAA,SAAkB,SAAA;EACjC,IAAA;AAAA;;;;UAMe,cAAA,SAAuB,SAAA;EACtC,KAAA,EAAO,KAAA;EACP,IAAA;AAAA;;;;UAMe,gBAAA,SAAyB,SAAA;EACxC,KAAA,EAAO,KAAA;EACP,IAAA;AAAA;;;;UAMe,aAAA,SAAsB,SAAA;EACrC,IAAA;AAAA;;AAxBF;;UA8BiB,UAAA,SAAmB,SAAA;EAClC,IAAA;AAAA;AAxBF;;;AAAA,UA8BiB,SAAA,SAAkB,SAAA;EACjC,IAAA;AAAA;;;;UAMe,SAAA,SAAkB,SAAA;EACjC,IAAA;AAAA;;;;UAMe,UAAA,SAAmB,SAAA;EAClC,IAAA;AAAA;AAAA,UAGe,sBAAA,SAA+B,SAAA;EAC9C,IAAA;AAAA;AAAA,UAGe,qBAAA,SAA8B,SAAA;EAC7C,IAAA;AAAA;AAAA,UAGe,2BAAA,SAAoC,SAAA;EACnD,SAAA;EACA,OAAA;EACA,IAAA;A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CAAA;EAAA,QAI3C,QAAA;EAAA,QAQA,YAAA;EAAA,QAQA,cAAA;EAAA,QAQA,cAAA;EAAA,QAQA,eAAA;EAAA,QAQA,eAAA;EAAA,QAQA,2BAAA;EAAA,QAkCA,6BAAA;AAAA;;;cCjwEG,cAAA,SAAuB,SAAA;cAEf,MAAA,EAAQ,WAAA;EAAA,UAIF,SAAA,CAAA,GAAa,OAAA;EAAA,UAInB,WAAA,CAAA,GAAe,mBAAA;EAAA,UAIf,cAAA,CAAA;EAAA,UA0BA,KAAA,CAAA;EAAA,UAIA,sBAAA,CAAA;EAAA,OAwBI,UAAA,CAAW,GAAA;AAAA"}
|
package/dist/webgl/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const e=typeof window<`u`&&window.document!==void 0,t=new Uint8Array([80,75,3,4]),n=[`v`,`ip`,`op`,`layers`,`fr`,`w`,`h`],r=`0.67.0`,i=`@lottiefiles/dotlottie-web`;function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}function o(e,t){if(a(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(a(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function s(e){var t=o(e,`string`);return a(t)==`symbol`?t:t+``}function c(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=class{requestAnimationFrame(e){return requestAnimationFrame(e)}cancelAnimationFrame(e){cancelAnimationFrame(e)}},u=class{constructor(){c(this,`_lastHandleId`,0),c(this,`_lastImmediate`,null)}requestAnimationFrame(e){return this._lastHandleId>=2**53-1&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{e(Date.now())}),this._lastHandleId}cancelAnimationFrame(e){this._lastImmediate&&clearImmediate(this._lastImmediate)}},ee=class{constructor(){c(this,`_strategy`,void 0),this._strategy=typeof requestAnimationFrame==`function`?new l:new u}requestAnimationFrame(e){return this._strategy.requestAnimationFrame(e)}cancelAnimationFrame(e){this._strategy.cancelAnimationFrame(e)}};let d;function f(e){let t=d.__externref_table_alloc_command_export();return d.__wbindgen_export_2.set(t,e),t}function te(e,t){try{return e.apply(this,t)}catch(e){let t=f(e);d.__wbindgen_exn_store_command_export(t)}}let p=0,m=null;function h(){return(m===null||m.byteLength===0)&&(m=new Uint8Array(d.memory.buffer)),m}const g=typeof TextEncoder<`u`?new TextEncoder(`utf-8`):{encode:()=>{throw Error(`TextEncoder not available`)}},ne=typeof g.encodeInto==`function`?function(e,t){return g.encodeInto(e,t)}:function(e,t){let n=g.encode(e);return t.set(n),{read:e.length,written:n.length}};function _(e,t,n){if(n===void 0){let n=g.encode(e),r=t(n.length,1)>>>0;return h().subarray(r,r+n.length).set(n),p=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=ne(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return p=o,i}function v(e){return e==null}let y=null;function b(){return(y===null||y.buffer.detached===!0||y.buffer.detached===void 0&&y.buffer!==d.memory.buffer)&&(y=new DataView(d.memory.buffer)),y}const re=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&re.decode();function x(e,t){return e>>>=0,re.decode(h().subarray(e,e+t))}function S(e,t){let n=t(e.length*1,1)>>>0;return h().set(e,n/1),p=e.length,n}let C=null;function ie(){return(C===null||C.byteLength===0)&&(C=new Float32Array(d.memory.buffer)),C}function ae(e,t){let n=t(e.length*4,4)>>>0;return ie().set(e,n/4),p=e.length,n}function oe(e,t){let n=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let r=f(e[t]);b().setUint32(n+4*t,r,!0)}return p=e.length,n}function se(e,t){let n=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=p,i=S(t,d.__wbindgen_malloc_command_export),a=p;return d.register_font(n,r,i,a)!==0}const w=Object.freeze({Forward:0,0:`Forward`,Reverse:1,1:`Reverse`,Bounce:2,2:`Bounce`,ReverseBounce:3,3:`ReverseBounce`}),T=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>d.__wbg_dotlottieplayerwasm_free(e>>>0,1));var ce=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,T.unregister(this),e}free(){let e=this.__destroy_into_raw();d.__wbg_dotlottieplayerwasm_free(e,0)}constructor(){return this.__wbg_ptr=d.dotlottieplayerwasm_new()>>>0,T.register(this,this.__wbg_ptr,this),this}load_animation(e,t,n){let r=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),i=p;return d.dotlottieplayerwasm_load_animation(this.__wbg_ptr,r,i,t,n)!==0}load_dotlottie_data(e,t,n){let r=S(e,d.__wbindgen_malloc_command_export),i=p;return d.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,r,i,t,n)!==0}load_animation_from_id(e,t,n){let r=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),i=p;return d.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,r,i,t,n)!==0}tick(){return d.dotlottieplayerwasm_tick(this.__wbg_ptr)!==0}render(){return d.dotlottieplayerwasm_render(this.__wbg_ptr)!==0}clear(){d.dotlottieplayerwasm_clear(this.__wbg_ptr)}resize(e,t){return d.dotlottieplayerwasm_resize(this.__wbg_ptr,e,t)!==0}get_pixel_buffer(){return d.dotlottieplayerwasm_get_pixel_buffer(this.__wbg_ptr)}play(){return d.dotlottieplayerwasm_play(this.__wbg_ptr)!==0}pause(){return d.dotlottieplayerwasm_pause(this.__wbg_ptr)!==0}stop(){return d.dotlottieplayerwasm_stop(this.__wbg_ptr)!==0}is_playing(){return d.dotlottieplayerwasm_is_playing(this.__wbg_ptr)!==0}is_paused(){return d.dotlottieplayerwasm_is_paused(this.__wbg_ptr)!==0}is_stopped(){return d.dotlottieplayerwasm_is_stopped(this.__wbg_ptr)!==0}is_loaded(){return d.dotlottieplayerwasm_is_loaded(this.__wbg_ptr)!==0}is_complete(){return d.dotlottieplayerwasm_is_complete(this.__wbg_ptr)!==0}is_tweening(){return d.dotlottieplayerwasm_is_tweening(this.__wbg_ptr)!==0}current_frame(){return d.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}total_frames(){return d.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}request_frame(){return d.dotlottieplayerwasm_request_frame(this.__wbg_ptr)}set_frame(e){return d.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)!==0}seek(e){return d.dotlottieplayerwasm_seek(this.__wbg_ptr,e)!==0}duration(){return d.dotlottieplayerwasm_duration(this.__wbg_ptr)}segment_duration(){return d.dotlottieplayerwasm_segment_duration(this.__wbg_ptr)}current_loop_count(){return d.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}reset_current_loop_count(){d.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}width(){return d.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return d.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}animation_size(){return d.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}mode(){return d.dotlottieplayerwasm_mode(this.__wbg_ptr)}set_mode(e){d.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}speed(){return d.dotlottieplayerwasm_speed(this.__wbg_ptr)}set_speed(e){d.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}loop_animation(){return d.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)!==0}set_loop(e){d.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}loop_count(){return d.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}set_loop_count(e){d.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}autoplay(){return d.dotlottieplayerwasm_autoplay(this.__wbg_ptr)!==0}set_autoplay(e){d.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}use_frame_interpolation(){return d.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)!==0}set_use_frame_interpolation(e){d.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}background_color(){return d.dotlottieplayerwasm_background_color(this.__wbg_ptr)>>>0}set_background_color(e){return d.dotlottieplayerwasm_set_background_color(this.__wbg_ptr,e)!==0}clear_background_color(){return d.dotlottieplayerwasm_clear_background_color(this.__wbg_ptr)!==0}set_quality(e){return d.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)!==0}has_segment(){return d.dotlottieplayerwasm_has_segment(this.__wbg_ptr)!==0}segment_start(){return d.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}segment_end(){return d.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_segment(e,t){return d.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,t)!==0}clear_segment(){return d.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)!==0}set_layout(e,t,n){let r=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),i=p;return d.dotlottieplayerwasm_set_layout(this.__wbg_ptr,r,i,t,n)!==0}layout_fit(){let e,t;try{let n=d.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return e=n[0],t=n[1],x(n[0],n[1])}finally{d.__wbindgen_free_command_export(e,t,1)}}layout_align_x(){return d.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return d.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}set_viewport(e,t,n,r){return d.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,t,n,r)!==0}set_color_slot(e,t,n,r){let i=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),a=p;return d.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,i,a,t,n,r)!==0}set_scalar_slot(e,t){let n=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=p;return d.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,n,r,t)!==0}set_text_slot(e,t){let n=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=p,i=_(t,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),a=p;return d.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,n,r,i,a)!==0}set_vector_slot(e,t,n){let r=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),i=p;return d.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,r,i,t,n)!==0}set_position_slot(e,t,n){let r=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),i=p;return d.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,r,i,t,n)!==0}clear_slots(){return d.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)!==0}clear_slot(e){let t=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=p;return d.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,t,n)!==0}set_slots_str(e){let t=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=p;return d.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,t,n)!==0}set_slot_str(e,t){let n=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=p,i=_(t,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),a=p;return d.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,n,r,i,a)!==0}get_slot_str(e){let t=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=p,r=d.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=x(r[0],r[1]).slice(),d.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}get_slots_str(){let e,t;try{let n=d.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return e=n[0],t=n[1],x(n[0],n[1])}finally{d.__wbindgen_free_command_export(e,t,1)}}get_slot_ids(){return d.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_type(e){let t=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=p,r=d.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=x(r[0],r[1]).slice(),d.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}reset_slot(e){let t=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=p;return d.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,t,n)!==0}reset_slots(){return d.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)!==0}intersect(e,t,n){let r=_(n,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),i=p;return d.dotlottieplayerwasm_intersect(this.__wbg_ptr,e,t,r,i)!==0}get_layer_bounds(e){let t=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=p;return d.dotlottieplayerwasm_get_layer_bounds(this.__wbg_ptr,t,n)}get_transform(){return d.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}set_transform(e){let t=ae(e,d.__wbindgen_malloc_command_export),n=p;return d.dotlottieplayerwasm_set_transform(this.__wbg_ptr,t,n)!==0}tween(e,t){return d.dotlottieplayerwasm_tween(this.__wbg_ptr,e,v(t)?4294967297:Math.fround(t))!==0}tween_with_easing(e,t,n,r,i,a){return d.dotlottieplayerwasm_tween_with_easing(this.__wbg_ptr,e,v(t)?4294967297:Math.fround(t),n,r,i,a)!==0}tween_stop(){return d.dotlottieplayerwasm_tween_stop(this.__wbg_ptr)!==0}tween_update(e){return d.dotlottieplayerwasm_tween_update(this.__wbg_ptr,v(e)?4294967297:Math.fround(e))!==0}tween_to_marker(e,t){let n=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=p;return d.dotlottieplayerwasm_tween_to_marker(this.__wbg_ptr,n,r,v(t)?4294967297:Math.fround(t))!==0}markers(){return d.dotlottieplayerwasm_markers(this.__wbg_ptr)}marker_names(){return d.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}current_marker(){let e=d.dotlottieplayerwasm_current_marker(this.__wbg_ptr),t;return e[0]!==0&&(t=x(e[0],e[1]).slice(),d.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}set_marker(e){let t=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=p;d.dotlottieplayerwasm_set_marker(this.__wbg_ptr,t,n)}clear_marker(){d.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}poll_event(){return d.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}emit_on_loop(){d.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}load_font(e,t){let n=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=p,i=S(t,d.__wbindgen_malloc_command_export),a=p;return d.dotlottieplayerwasm_load_font(this.__wbg_ptr,n,r,i,a)!==0}static unload_font(e){let t=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=p;return d.dotlottieplayerwasm_unload_font(t,n)!==0}set_theme(e){let t=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=p;return d.dotlottieplayerwasm_set_theme(this.__wbg_ptr,t,n)!==0}reset_theme(){return d.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)!==0}set_theme_data(e){let t=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=p;return d.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,t,n)!==0}theme_id(){let e=d.dotlottieplayerwasm_theme_id(this.__wbg_ptr),t;return e[0]!==0&&(t=x(e[0],e[1]).slice(),d.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}animation_id(){let e=d.dotlottieplayerwasm_animation_id(this.__wbg_ptr),t;return e[0]!==0&&(t=x(e[0],e[1]).slice(),d.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}manifest_string(){let e,t;try{let n=d.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return e=n[0],t=n[1],x(n[0],n[1])}finally{d.__wbindgen_free_command_export(e,t,1)}}get_state_machine(e){let t=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=p,r=d.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=x(r[0],r[1]).slice(),d.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}state_machine_id(){let e=d.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr),t;return e[0]!==0&&(t=x(e[0],e[1]).slice(),d.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}state_machine_load(e){let t=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=p;return d.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,t,n)!==0}state_machine_load_from_id(e){let t=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=p;return d.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,t,n)!==0}state_machine_unload(){d.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_fire(e){let t=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=p;return d.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,t,n)!==0}sm_set_numeric_input(e,t){let n=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=p;return d.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,n,r,t)!==0}sm_get_numeric_input(e){let t=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=p,r=d.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,t,n);return r===4294967297?void 0:r}sm_set_string_input(e,t){let n=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=p,i=_(t,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),a=p;return d.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,n,r,i,a)!==0}sm_get_string_input(e){let t=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=p,r=d.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=x(r[0],r[1]).slice(),d.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}sm_set_boolean_input(e,t){let n=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=p;return d.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,n,r,t)!==0}sm_get_boolean_input(e){let t=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=p,r=d.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,t,n);return r===16777215?void 0:r!==0}sm_reset_input(e){let t=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=p;d.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,t,n)}sm_poll_event(){return d.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_start(e,t){let n=oe(t,d.__wbindgen_malloc_command_export),r=p;return d.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,n,r)!==0}sm_stop(){return d.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)!==0}sm_status(){let e,t;try{let n=d.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return e=n[0],t=n[1],x(n[0],n[1])}finally{d.__wbindgen_free_command_export(e,t,1)}}sm_current_state(){let e,t;try{let n=d.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return e=n[0],t=n[1],x(n[0],n[1])}finally{d.__wbindgen_free_command_export(e,t,1)}}sm_override_current_state(e,t){let n=_(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=p;return d.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,n,r,t)!==0}sm_framework_setup(){return d.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_get_inputs(){return d.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_post_click(e,t){d.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,t)}sm_post_pointer_down(e,t){d.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,t)}sm_post_pointer_up(e,t){d.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,t)}sm_post_pointer_move(e,t){d.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,t)}sm_post_pointer_enter(e,t){d.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,t)}sm_post_pointer_exit(e,t){d.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,t)}sm_poll_internal_event(){return d.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}sm_tick(){return d.dotlottieplayerwasm_sm_tick(this.__wbg_ptr)!==0}};async function le(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.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",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function ue(){let e={};return e.wbg={},e.wbg.__wbg_buffer_609cc3eee51ed158=function(e){return e.buffer},e.wbg.__wbg_new_405e22f390576ce2=function(){return{}},e.wbg.__wbg_new_78feb108b6472713=function(){return[]},e.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)},e.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return new Float32Array(e>>>0)},e.wbg.__wbg_now_807e54c39636c349=function(){return Date.now()},e.wbg.__wbg_push_737cfc8c1432c2c6=function(e,t){return e.push(t)},e.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return te(function(e,t,n){return Reflect.set(e,t,n)},arguments)},e.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){e[t>>>0]=n},e.wbg.__wbindgen_init_externref_table=function(){let e=d.__wbindgen_export_2,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},e.wbg.__wbindgen_memory=function(){return d.memory},e.wbg.__wbindgen_number_new=function(e){return e},e.wbg.__wbindgen_string_get=function(e,t){let n=t,r=typeof n==`string`?n:void 0;var i=v(r)?0:_(r,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),a=p;b().setInt32(e+4,a,!0),b().setInt32(e+0,i,!0)},e.wbg.__wbindgen_string_new=function(e,t){return x(e,t)},e.wbg.__wbindgen_throw=function(e,t){throw Error(x(e,t))},e}function de(e,t){return d=e.exports,E.__wbindgen_wasm_module=t,y=null,C=null,m=null,d.__wbindgen_start(),d}async function E(e){if(d!==void 0)return d;if(e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0)throw Error(`WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().`);let t=ue();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await le(await e,t);return de(n,r)}var fe=class{constructor(){c(this,`_eventListeners`,new Map)}addEventListener(e,t){let n=this._eventListeners.get(e);n||(n=new Set,this._eventListeners.set(e,n)),n.add(t)}removeEventListener(e,t){let n=this._eventListeners.get(e);n&&(t?(n.delete(t),n.size===0&&this._eventListeners.delete(e)):this._eventListeners.delete(e))}dispatch(e){this._eventListeners.get(e.type)?.forEach(t=>t(e))}removeAllEventListeners(){this._eventListeners.clear()}},D=class e{static _initializeObserver(){e._observer||(e._observer=new IntersectionObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);n&&(t.isIntersecting?n.unfreeze():n.freeze())})},{threshold:0}))}static observe(t,n){e._initializeObserver(),!e._observedCanvases.has(t)&&(e._observedCanvases.set(t,n),e._observer?.observe(t))}static unobserve(t){e._observer?.unobserve(t),e._observedCanvases.delete(t),e._observedCanvases.size===0&&(e._observer?.disconnect(),e._observer=null)}};c(D,`_observer`,null),c(D,`_observedCanvases`,new Map);var O=class e{static _initializeObserver(){e._observer||(e._observer=new ResizeObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);if(!n)return;let[r,i]=n;clearTimeout(i);let a=setTimeout(()=>{r.resize()},100);e._observedCanvases.set(t.target,[r,a])})}))}static observe(t,n){e._initializeObserver(),!e._observedCanvases.has(t)&&(e._observedCanvases.set(t,[n,0]),e._observer?.observe(t))}static unobserve(t){let n=e._observedCanvases.get(t);if(n){let e=n[1];e&&clearTimeout(e)}e._observer?.unobserve(t),e._observedCanvases.delete(t),!e._observedCanvases.size&&e._observer&&(e._observer.disconnect(),e._observer=null)}};c(O,`_observer`,null),c(O,`_observedCanvases`,new Map);function pe(e){return/^#([\da-f]{6}|[\da-f]{8})$/iu.test(e)}function me(e){if(!pe(e))return 0;let t=e.replace(`#`,``);return t=t.length===6?`${t}ff`:t,parseInt(t,16)}function k(e){if(e.byteLength<4)return!1;let n=new Uint8Array(e.slice(0,t.byteLength));for(let e=0;e<t.length;e+=1)if(t[e]!==n[e])return!1;return!0}function he(e){return n.every(t=>Object.hasOwn(e,t))}function ge(e){if(typeof e==`string`)try{return he(JSON.parse(e))}catch{return!1}else return he(e)}function A(){return 1+((e?window.devicePixelRatio:1)-1)*.75}function j(e){let t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;return!(t.bottom<0||t.top>n||t.right<0||t.left>r)}function M(e){let t=e.target;if(t instanceof HTMLCanvasElement){let n=t.getBoundingClientRect();if(n.width===0||n.height===0||t.width===0||t.height===0)return null;let r=t.width/n.width,i=t.height/n.height,a=(e.clientX-n.left)*r,o=(e.clientY-n.top)*i;return!Number.isFinite(a)||!Number.isFinite(o)||Number.isNaN(a)||Number.isNaN(o)?null:{x:a,y:o}}return null}function _e(e){let t=e.replace(`OpenUrl: `,``),n=t.indexOf(` | Target: `),r,i;n===-1?(r=t,i=`_blank`):(r=t.substring(0,n),i=t.substring(n+11)),window.open(r,i)}function N(e,t,n){let r=null,i=t;return{load(){return r||(r=e(i).then(()=>void 0).catch(async t=>{console.warn(`Primary WASM load failed from ${i}: ${t.message}`),console.warn(`Attempting to load WASM from backup URL: ${n}`);try{await e(n)}catch(e){throw console.error(`Primary WASM URL failed: ${t.message}`),console.error(`Backup WASM URL failed: ${e.message}`),r=null,Error(`WASM loading failed from all sources.`)}})),r},setWasmUrl(e){e!==i&&(i=e,r=null)}}}const P=N(E,`https://cdn.jsdelivr.net/npm/${i}@${r}/dist/dotlottie-player.wasm`,`https://unpkg.com/${i}@${r}/dist/dotlottie-player.wasm`),F=e=>{switch(e){case`reverse`:return w.Reverse;case`bounce`:return w.Bounce;case`reverse-bounce`:return w.ReverseBounce;default:return w.Forward}},ve=e=>{switch(e){case w.Reverse:return`reverse`;case w.Bounce:return`bounce`;case w.ReverseBounce:return`reverse-bounce`;default:return`forward`}},ye=e=>{switch(e){case`contain`:return`contain`;case`cover`:return`cover`;case`fill`:return`fill`;case`fit-height`:return`fit-height`;case`fit-width`:return`fit-width`;case`none`:return`none`;default:return`contain`}};var be=class{constructor(e){c(this,`_canvas`,null),c(this,`_pendingLoad`,null),c(this,`_context`,null),c(this,`_eventManager`,void 0),c(this,`_animationFrameId`,null),c(this,`_frameManager`,void 0),c(this,`_dotLottieCore`,null),c(this,`_stateMachineId`,``),c(this,`_stateMachineConfig`,null),c(this,`_isStateMachineRunning`,!1),c(this,`_renderConfig`,{}),c(this,`_isFrozen`,!1),c(this,`_backgroundColor`,null),c(this,`_boundOnClick`,null),c(this,`_boundOnPointerUp`,null),c(this,`_boundOnPointerDown`,null),c(this,`_boundOnPointerMove`,null),c(this,`_boundOnPointerEnter`,null),c(this,`_boundOnPointerLeave`,null),c(this,`_bufferMismatchCount`,0),c(this,`_lastExpectedBufferSize`,0),c(this,`_marker`,``),this._canvas=e.canvas??null,this._eventManager=new fe,this._frameManager=new ee,this._renderConfig={...e.renderConfig,devicePixelRatio:e.renderConfig?.devicePixelRatio||A(),freezeOnOffscreen:e.renderConfig?.freezeOnOffscreen??!0},this._initWasm().then(()=>{this._dotLottieCore=this._createCore(),this._dotLottieCore.set_autoplay(e.autoplay??!1),this._dotLottieCore.set_loop(e.loop??!1),this._dotLottieCore.set_loop_count(e.loopCount??0),this._dotLottieCore.set_mode(F(e.mode??`forward`)),this._dotLottieCore.set_speed(e.speed??1),this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation??!0),e.segment&&e.segment.length===2&&this._dotLottieCore.set_segment(e.segment[0],e.segment[1]),this._marker=e.marker??``,this._marker&&this._dotLottieCore.set_marker(this._marker),this._dotLottieCore.set_layout(e.layout?.fit??`contain`,e.layout?.align?.[0]??.5,e.layout?.align?.[1]??.5),this._stateMachineId=e.stateMachineId??``,this._stateMachineConfig=e.stateMachineConfig??null,this._onCoreCreated(),this._eventManager.dispatch({type:`ready`}),e.data?this._canvas?this._loadFromData(e.data):this._pendingLoad={data:e.data}:e.src&&(this._canvas?this._loadFromSrc(e.src):this._pendingLoad={src:e.src}),e.backgroundColor&&this.setBackgroundColor(e.backgroundColor)}).catch(e=>{console.error(`[dotlottie-web] Initialization failed:`,e),this._eventManager.dispatch({type:`loadError`,error:Error(`Failed to load wasm module: ${e}`)})})}async _initWasm(){return P.load()}_createCore(){return new ce}_onCoreCreated(){}_drainPlayerEvents(){if(!this._dotLottieCore)return;let e;for(;(e=this._dotLottieCore.poll_event())!=null;){let t=e;switch(t.type){case`Load`:setTimeout(()=>this._eventManager.dispatch({type:`load`}),0);break;case`LoadError`:setTimeout(()=>this._eventManager.dispatch({type:`loadError`,error:Error(`failed to load`)}),0);break;case`Play`:setTimeout(()=>this._eventManager.dispatch({type:`play`}),0);break;case`Pause`:setTimeout(()=>this._eventManager.dispatch({type:`pause`}),0);break;case`Stop`:setTimeout(()=>this._eventManager.dispatch({type:`stop`}),0);break;case`Frame`:setTimeout(()=>this._eventManager.dispatch({type:`frame`,currentFrame:t.frameNo??0}),0);break;case`Render`:setTimeout(()=>this._eventManager.dispatch({type:`render`,currentFrame:t.frameNo??0}),0);break;case`Loop`:setTimeout(()=>this._eventManager.dispatch({type:`loop`,loopCount:t.loopCount??0}),0);break;case`Complete`:setTimeout(()=>this._eventManager.dispatch({type:`complete`}),0);break;default:break}}}_drainSmEvents(){if(!this._dotLottieCore)return;let t;for(;(t=this._dotLottieCore.sm_poll_event())!=null;){let e=t;switch(e.type){case`Start`:setTimeout(()=>{this._isStateMachineRunning=!0,this._eventManager.dispatch({type:`stateMachineStart`}),this._startAnimationLoop()},0);break;case`Stop`:setTimeout(()=>{this._isStateMachineRunning=!1,this._eventManager.dispatch({type:`stateMachineStop`}),this._dotLottieCore?.is_playing()||this._stopAnimationLoop()},0);break;case`CustomEvent`:this._eventManager.dispatch({type:`stateMachineCustomEvent`,eventName:e.message??``});break;case`BooleanInputChange`:this._eventManager.dispatch({type:`stateMachineBooleanInputValueChange`,inputName:e.name??``,newValue:e.newValue,oldValue:e.oldValue});break;case`NumericInputChange`:this._eventManager.dispatch({type:`stateMachineNumericInputValueChange`,inputName:e.name??``,newValue:e.newValue,oldValue:e.oldValue});break;case`StringInputChange`:this._eventManager.dispatch({type:`stateMachineStringInputValueChange`,inputName:e.name??``,newValue:e.newValue,oldValue:e.oldValue});break;case`InputFired`:this._eventManager.dispatch({type:`stateMachineInputFired`,inputName:e.name??``});break;case`Transition`:this._eventManager.dispatch({type:`stateMachineTransition`,fromState:e.previousState??``,toState:e.newState??``});break;case`StateEntered`:this._eventManager.dispatch({type:`stateMachineStateEntered`,state:e.state??``});break;case`StateExit`:this._eventManager.dispatch({type:`stateMachineStateExit`,state:e.state??``});break;case`Error`:this._eventManager.dispatch({type:`stateMachineError`,error:e.message??``});break;default:break}}let n;for(;(n=this._dotLottieCore.sm_poll_internal_event())!=null;){let t=n;if(t.type===`Message`){let n=t.message??``;e&&n.startsWith(`OpenUrl: `)?_e(n):this._eventManager.dispatch({type:`stateMachineInternalMessage`,message:n})}}}_dispatchError(e){console.error(e),this._eventManager.dispatch({type:`loadError`,error:Error(e)})}async _fetchData(e){let t=await fetch(e);if(!t.ok)throw Error(`Failed to fetch animation data from URL: ${e}. ${t.status}: ${t.statusText}`);let n=await t.arrayBuffer();return k(n)?n:new TextDecoder().decode(n)}_loadFromData(t){if(this._dotLottieCore===null)return;if(!this._canvas){console.warn(`[dotlottie-web] Cannot load animation without canvas. Call setCanvas() first.`);return}let n=this._canvas.width,r=this._canvas.height,i=!1;if(typeof t==`string`){if(!ge(t)){this._dispatchError(`Invalid Lottie JSON string: The provided string does not conform to the Lottie JSON format.`);return}i=this._dotLottieCore.load_animation(t,n,r)}else if(t instanceof ArrayBuffer){if(!k(t)){this._dispatchError(`Invalid dotLottie ArrayBuffer: The provided ArrayBuffer does not conform to the dotLottie format.`);return}i=this._dotLottieCore.load_dotlottie_data(new Uint8Array(t),n,r)}else if(typeof t==`object`){if(!ge(t)){this._dispatchError(`Invalid Lottie JSON object: The provided object does not conform to the Lottie JSON format.`);return}i=this._dotLottieCore.load_animation(JSON.stringify(t),n,r)}else{this._dispatchError(`Unsupported data type for animation data. Expected:
|
|
1
|
+
const e=typeof window<`u`&&window.document!==void 0,t=new Uint8Array([80,75,3,4]),n=[`v`,`ip`,`op`,`layers`,`fr`,`w`,`h`],r=`0.68.0`,i=`@lottiefiles/dotlottie-web`;function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}function o(e,t){if(a(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(a(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function s(e){var t=o(e,`string`);return a(t)==`symbol`?t:t+``}function c(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=class{requestAnimationFrame(e){return requestAnimationFrame(e)}cancelAnimationFrame(e){cancelAnimationFrame(e)}},u=class{constructor(){c(this,`_lastHandleId`,0),c(this,`_lastImmediate`,null)}requestAnimationFrame(e){return this._lastHandleId>=2**53-1&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{e(Date.now())}),this._lastHandleId}cancelAnimationFrame(e){this._lastImmediate&&clearImmediate(this._lastImmediate)}},ee=class{constructor(){c(this,`_strategy`,void 0),this._strategy=typeof requestAnimationFrame==`function`?new l:new u}requestAnimationFrame(e){return this._strategy.requestAnimationFrame(e)}cancelAnimationFrame(e){this._strategy.cancelAnimationFrame(e)}};let d;const te=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&te.decode();let f=null;function p(){return(f===null||f.byteLength===0)&&(f=new Uint8Array(d.memory.buffer)),f}function m(e,t){return e>>>=0,te.decode(p().subarray(e,e+t))}function h(e){let t=d.__externref_table_alloc_command_export();return d.__wbindgen_export_3.set(t,e),t}function ne(e,t){try{return e.apply(this,t)}catch(e){let t=h(e);d.__wbindgen_exn_store_command_export(t)}}let g=0;const _=typeof TextEncoder<`u`?new TextEncoder(`utf-8`):{encode:()=>{throw Error(`TextEncoder not available`)}},re=typeof _.encodeInto==`function`?function(e,t){return _.encodeInto(e,t)}:function(e,t){let n=_.encode(e);return t.set(n),{read:e.length,written:n.length}};function v(e,t,n){if(n===void 0){let n=_.encode(e),r=t(n.length,1)>>>0;return p().subarray(r,r+n.length).set(n),g=n.length,r}let r=e.length,i=t(r,1)>>>0,a=p(),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=p().subarray(i+o,i+r),a=re(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return g=o,i}let y=null;function b(){return(y===null||y.buffer.detached===!0||y.buffer.detached===void 0&&y.buffer!==d.memory.buffer)&&(y=new DataView(d.memory.buffer)),y}function x(e){return e==null}let S=null;function ie(){return(S===null||S.byteLength===0)&&(S=new Float32Array(d.memory.buffer)),S}function ae(e,t){let n=t(e.length*4,4)>>>0;return ie().set(e,n/4),g=e.length,n}function C(e,t){let n=t(e.length*1,1)>>>0;return p().set(e,n/1),g=e.length,n}function oe(e,t){let n=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let r=h(e[t]);b().setUint32(n+4*t,r,!0)}return g=e.length,n}function se(e,t){let n=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=g,i=C(t,d.__wbindgen_malloc_command_export),a=g;return d.register_font(n,r,i,a)!==0}const w=Object.freeze({Forward:0,0:`Forward`,Reverse:1,1:`Reverse`,Bounce:2,2:`Bounce`,ReverseBounce:3,3:`ReverseBounce`}),T=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>d.__wbg_dotlottieplayerwasm_free(e>>>0,1));var ce=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,T.unregister(this),e}free(){let e=this.__destroy_into_raw();d.__wbg_dotlottieplayerwasm_free(e,0)}clear_slot(e){let t=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=g;return d.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,t,n)!==0}is_playing(){return d.dotlottieplayerwasm_is_playing(this.__wbg_ptr)!==0}is_stopped(){return d.dotlottieplayerwasm_is_stopped(this.__wbg_ptr)!==0}layout_fit(){let e,t;try{let n=d.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return e=n[0],t=n[1],m(n[0],n[1])}finally{d.__wbindgen_free_command_export(e,t,1)}}loop_count(){return d.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}poll_event(){return d.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}reset_slot(e){let t=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=g;return d.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,t,n)!==0}set_layout(e,t,n){let r=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),i=g;return d.dotlottieplayerwasm_set_layout(this.__wbg_ptr,r,i,t,n)!==0}set_marker(e){let t=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=g;d.dotlottieplayerwasm_set_marker(this.__wbg_ptr,t,n)}tween_stop(){return d.dotlottieplayerwasm_tween_stop(this.__wbg_ptr)!==0}clear_slots(){return d.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)!==0}has_segment(){return d.dotlottieplayerwasm_has_segment(this.__wbg_ptr)!==0}is_complete(){return d.dotlottieplayerwasm_is_complete(this.__wbg_ptr)!==0}is_tweening(){return d.dotlottieplayerwasm_is_tweening(this.__wbg_ptr)!==0}reset_slots(){return d.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)!==0}reset_theme(){return d.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)!==0}segment_end(){return d.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_quality(e){return d.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)!==0}set_segment(e,t){return d.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,t)!==0}static unload_font(e){let t=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=g;return d.dotlottieplayerwasm_unload_font(t,n)!==0}animation_id(){let e=d.dotlottieplayerwasm_animation_id(this.__wbg_ptr),t;return e[0]!==0&&(t=m(e[0],e[1]).slice(),d.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}clear_marker(){d.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}emit_on_loop(){d.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}get_slot_ids(){return d.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_str(e){let t=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=g,r=d.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=m(r[0],r[1]).slice(),d.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}marker_names(){return d.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}set_autoplay(e){d.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}set_slot_str(e,t){let n=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=g,i=v(t,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),a=g;return d.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,n,r,i,a)!==0}set_viewport(e,t,n,r){return d.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,t,n,r)!==0}total_frames(){return d.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}tween_update(e){return d.dotlottieplayerwasm_tween_update(this.__wbg_ptr,x(e)?4294967297:Math.fround(e))!==0}clear_segment(){return d.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)!==0}current_frame(){return d.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}get_slot_type(e){let t=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=g,r=d.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=m(r[0],r[1]).slice(),d.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}get_slots_str(){let e,t;try{let n=d.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return e=n[0],t=n[1],m(n[0],n[1])}finally{d.__wbindgen_free_command_export(e,t,1)}}get_transform(){return d.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}request_frame(){return d.dotlottieplayerwasm_request_frame(this.__wbg_ptr)}segment_start(){return d.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}set_slots_str(e){let t=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=g;return d.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,t,n)!==0}set_text_slot(e,t){let n=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=g,i=v(t,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),a=g;return d.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,n,r,i,a)!==0}set_transform(e){let t=ae(e,d.__wbindgen_malloc_command_export),n=g;return d.dotlottieplayerwasm_set_transform(this.__wbg_ptr,t,n)!==0}sm_get_inputs(){return d.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_poll_event(){return d.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_post_click(e,t){d.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,t)}animation_size(){return d.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}current_marker(){let e=d.dotlottieplayerwasm_current_marker(this.__wbg_ptr),t;return e[0]!==0&&(t=m(e[0],e[1]).slice(),d.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}layout_align_x(){return d.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return d.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}load_animation(e,t,n){let r=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),i=g;return d.dotlottieplayerwasm_load_animation(this.__wbg_ptr,r,i,t,n)!==0}loop_animation(){return d.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)!==0}set_color_slot(e,t,n,r){let i=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),a=g;return d.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,i,a,t,n,r)!==0}set_loop_count(e){d.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}set_theme_data(e){let t=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=g;return d.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,t,n)!==0}sm_reset_input(e){let t=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=g;d.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,t,n)}manifest_string(){let e,t;try{let n=d.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return e=n[0],t=n[1],m(n[0],n[1])}finally{d.__wbindgen_free_command_export(e,t,1)}}set_scalar_slot(e,t){let n=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=g;return d.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,n,r,t)!==0}set_vector_slot(e,t,n){let r=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),i=g;return d.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,r,i,t,n)!==0}tween_to_marker(e,t){let n=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=g;return d.dotlottieplayerwasm_tween_to_marker(this.__wbg_ptr,n,r,x(t)?4294967297:Math.fround(t))!==0}background_color(){return d.dotlottieplayerwasm_background_color(this.__wbg_ptr)>>>0}get_layer_bounds(e){let t=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=g;return d.dotlottieplayerwasm_get_layer_bounds(this.__wbg_ptr,t,n)}get_pixel_buffer(){return d.dotlottieplayerwasm_get_pixel_buffer(this.__wbg_ptr)}segment_duration(){return d.dotlottieplayerwasm_segment_duration(this.__wbg_ptr)}sm_current_state(){let e,t;try{let n=d.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return e=n[0],t=n[1],m(n[0],n[1])}finally{d.__wbindgen_free_command_export(e,t,1)}}state_machine_id(){let e=d.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr),t;return e[0]!==0&&(t=m(e[0],e[1]).slice(),d.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}get_state_machine(e){let t=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=g,r=d.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=m(r[0],r[1]).slice(),d.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}set_position_slot(e,t,n){let r=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),i=g;return d.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,r,i,t,n)!==0}tween_with_easing(e,t,n,r,i,a){return d.dotlottieplayerwasm_tween_with_easing(this.__wbg_ptr,e,x(t)?4294967297:Math.fround(t),n,r,i,a)!==0}current_loop_count(){return d.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}sm_framework_setup(){return d.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_post_pointer_up(e,t){d.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,t)}state_machine_load(e){let t=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=g;return d.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,t,n)!==0}load_dotlottie_data(e,t,n){let r=C(e,d.__wbindgen_malloc_command_export),i=g;return d.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,r,i,t,n)!==0}sm_get_string_input(e){let t=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=g,r=d.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=m(r[0],r[1]).slice(),d.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}sm_set_string_input(e,t){let n=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=g,i=v(t,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),a=g;return d.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,n,r,i,a)!==0}set_background_color(e){return d.dotlottieplayerwasm_set_background_color(this.__wbg_ptr,e)!==0}sm_get_boolean_input(e){let t=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=g,r=d.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,t,n);return r===16777215?void 0:r!==0}sm_get_numeric_input(e){let t=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=g,r=d.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,t,n);return r===4294967297?void 0:r}sm_post_pointer_down(e,t){d.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,t)}sm_post_pointer_exit(e,t){d.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,t)}sm_post_pointer_move(e,t){d.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,t)}sm_set_boolean_input(e,t){let n=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=g;return d.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,n,r,t)!==0}sm_set_numeric_input(e,t){let n=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=g;return d.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,n,r,t)!==0}state_machine_unload(){d.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_post_pointer_enter(e,t){d.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,t)}clear_background_color(){return d.dotlottieplayerwasm_clear_background_color(this.__wbg_ptr)!==0}load_animation_from_id(e,t,n){let r=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),i=g;return d.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,r,i,t,n)!==0}sm_poll_internal_event(){return d.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}use_frame_interpolation(){return d.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)!==0}reset_current_loop_count(){d.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}sm_override_current_state(e,t){let n=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=g;return d.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,n,r,t)!==0}state_machine_load_from_id(e){let t=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=g;return d.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,t,n)!==0}set_use_frame_interpolation(e){d.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}constructor(){return this.__wbg_ptr=d.dotlottieplayerwasm_new()>>>0,T.register(this,this.__wbg_ptr,this),this}mode(){return d.dotlottieplayerwasm_mode(this.__wbg_ptr)}play(){return d.dotlottieplayerwasm_play(this.__wbg_ptr)!==0}seek(e){return d.dotlottieplayerwasm_seek(this.__wbg_ptr,e)!==0}stop(){return d.dotlottieplayerwasm_stop(this.__wbg_ptr)!==0}tick(){return d.dotlottieplayerwasm_tick(this.__wbg_ptr)!==0}clear(){d.dotlottieplayerwasm_clear(this.__wbg_ptr)}pause(){return d.dotlottieplayerwasm_pause(this.__wbg_ptr)!==0}speed(){return d.dotlottieplayerwasm_speed(this.__wbg_ptr)}tween(e,t){return d.dotlottieplayerwasm_tween(this.__wbg_ptr,e,x(t)?4294967297:Math.fround(t))!==0}width(){return d.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return d.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}render(){return d.dotlottieplayerwasm_render(this.__wbg_ptr)!==0}resize(e,t){return d.dotlottieplayerwasm_resize(this.__wbg_ptr,e,t)!==0}markers(){return d.dotlottieplayerwasm_markers(this.__wbg_ptr)}sm_fire(e){let t=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=g;return d.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,t,n)!==0}sm_stop(){return d.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)!==0}sm_tick(){return d.dotlottieplayerwasm_sm_tick(this.__wbg_ptr)!==0}autoplay(){return d.dotlottieplayerwasm_autoplay(this.__wbg_ptr)!==0}duration(){return d.dotlottieplayerwasm_duration(this.__wbg_ptr)}set_loop(e){d.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}set_mode(e){d.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}sm_start(e,t){let n=oe(t,d.__wbindgen_malloc_command_export),r=g;return d.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,n,r)!==0}theme_id(){let e=d.dotlottieplayerwasm_theme_id(this.__wbg_ptr),t;return e[0]!==0&&(t=m(e[0],e[1]).slice(),d.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}intersect(e,t,n){let r=v(n,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),i=g;return d.dotlottieplayerwasm_intersect(this.__wbg_ptr,e,t,r,i)!==0}is_loaded(){return d.dotlottieplayerwasm_is_loaded(this.__wbg_ptr)!==0}is_paused(){return d.dotlottieplayerwasm_is_paused(this.__wbg_ptr)!==0}load_font(e,t){let n=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),r=g,i=C(t,d.__wbindgen_malloc_command_export),a=g;return d.dotlottieplayerwasm_load_font(this.__wbg_ptr,n,r,i,a)!==0}set_frame(e){return d.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)!==0}set_speed(e){d.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}set_theme(e){let t=v(e,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),n=g;return d.dotlottieplayerwasm_set_theme(this.__wbg_ptr,t,n)!==0}sm_status(){let e,t;try{let n=d.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return e=n[0],t=n[1],m(n[0],n[1])}finally{d.__wbindgen_free_command_export(e,t,1)}}};async function le(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.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",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function ue(){let e={};return e.wbg={},e.wbg.__wbg_buffer_609cc3eee51ed158=function(e){return e.buffer},e.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,t){let n,r;try{n=e,r=t,console.error(m(e,t))}finally{d.__wbindgen_free_command_export(n,r,1)}},e.wbg.__wbg_new_405e22f390576ce2=function(){return{}},e.wbg.__wbg_new_78feb108b6472713=function(){return[]},e.wbg.__wbg_new_8a6f238a6ece86ea=function(){return Error()},e.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)},e.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return new Float32Array(e>>>0)},e.wbg.__wbg_now_807e54c39636c349=function(){return Date.now()},e.wbg.__wbg_push_737cfc8c1432c2c6=function(e,t){return e.push(t)},e.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return ne(function(e,t,n){return Reflect.set(e,t,n)},arguments)},e.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){e[t>>>0]=n},e.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,t){let n=t.stack,r=v(n,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),i=g;b().setInt32(e+4,i,!0),b().setInt32(e+0,r,!0)},e.wbg.__wbindgen_init_externref_table=function(){let e=d.__wbindgen_export_3,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},e.wbg.__wbindgen_memory=function(){return d.memory},e.wbg.__wbindgen_number_new=function(e){return e},e.wbg.__wbindgen_string_get=function(e,t){let n=t,r=typeof n==`string`?n:void 0;var i=x(r)?0:v(r,d.__wbindgen_malloc_command_export,d.__wbindgen_realloc_command_export),a=g;b().setInt32(e+4,a,!0),b().setInt32(e+0,i,!0)},e.wbg.__wbindgen_string_new=function(e,t){return m(e,t)},e.wbg.__wbindgen_throw=function(e,t){throw Error(m(e,t))},e}function de(e,t){return d=e.exports,E.__wbindgen_wasm_module=t,y=null,S=null,f=null,d.__wbindgen_start(),d}async function E(e){if(d!==void 0)return d;if(e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0)throw Error(`WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().`);let t=ue();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await le(await e,t);return de(n,r)}var fe=class{constructor(){c(this,`_eventListeners`,new Map)}addEventListener(e,t){let n=this._eventListeners.get(e);n||(n=new Set,this._eventListeners.set(e,n)),n.add(t)}removeEventListener(e,t){let n=this._eventListeners.get(e);n&&(t?(n.delete(t),n.size===0&&this._eventListeners.delete(e)):this._eventListeners.delete(e))}dispatch(e){this._eventListeners.get(e.type)?.forEach(t=>t(e))}removeAllEventListeners(){this._eventListeners.clear()}},D=class e{static _initializeObserver(){e._observer||(e._observer=new IntersectionObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);n&&(t.isIntersecting?n.unfreeze():n.freeze())})},{threshold:0}))}static observe(t,n){e._initializeObserver(),!e._observedCanvases.has(t)&&(e._observedCanvases.set(t,n),e._observer?.observe(t))}static unobserve(t){e._observer?.unobserve(t),e._observedCanvases.delete(t),e._observedCanvases.size===0&&(e._observer?.disconnect(),e._observer=null)}};c(D,`_observer`,null),c(D,`_observedCanvases`,new Map);var O=class e{static _initializeObserver(){e._observer||(e._observer=new ResizeObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);if(!n)return;let[r,i]=n;clearTimeout(i);let a=setTimeout(()=>{r.resize()},100);e._observedCanvases.set(t.target,[r,a])})}))}static observe(t,n){e._initializeObserver(),!e._observedCanvases.has(t)&&(e._observedCanvases.set(t,[n,0]),e._observer?.observe(t))}static unobserve(t){let n=e._observedCanvases.get(t);if(n){let e=n[1];e&&clearTimeout(e)}e._observer?.unobserve(t),e._observedCanvases.delete(t),!e._observedCanvases.size&&e._observer&&(e._observer.disconnect(),e._observer=null)}};c(O,`_observer`,null),c(O,`_observedCanvases`,new Map);function pe(e){return/^#([\da-f]{6}|[\da-f]{8})$/iu.test(e)}function me(e){if(!pe(e))return 0;let t=e.replace(`#`,``);return t=t.length===6?`${t}ff`:t,parseInt(t,16)}function k(e){if(e.byteLength<4)return!1;let n=new Uint8Array(e.slice(0,t.byteLength));for(let e=0;e<t.length;e+=1)if(t[e]!==n[e])return!1;return!0}function he(e){return n.every(t=>Object.hasOwn(e,t))}function ge(e){if(typeof e==`string`)try{return he(JSON.parse(e))}catch{return!1}else return he(e)}function A(){return 1+((e?window.devicePixelRatio:1)-1)*.75}function j(e){let t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;return!(t.bottom<0||t.top>n||t.right<0||t.left>r)}function M(e){let t=e.target;if(t instanceof HTMLCanvasElement){let n=t.getBoundingClientRect();if(n.width===0||n.height===0||t.width===0||t.height===0)return null;let r=t.width/n.width,i=t.height/n.height,a=(e.clientX-n.left)*r,o=(e.clientY-n.top)*i;return!Number.isFinite(a)||!Number.isFinite(o)||Number.isNaN(a)||Number.isNaN(o)?null:{x:a,y:o}}return null}function _e(e){let t=e.replace(`OpenUrl: `,``),n=t.indexOf(` | Target: `),r,i;n===-1?(r=t,i=`_blank`):(r=t.substring(0,n),i=t.substring(n+11)),window.open(r,i)}function N(e,t,n){let r=null,i=t;return{load(){return r||(r=e({module_or_path:i}).then(()=>void 0).catch(async t=>{console.warn(`Primary WASM load failed from ${i}: ${t.message}`),console.warn(`Attempting to load WASM from backup URL: ${n}`);try{await e({module_or_path:n})}catch(e){throw console.error(`Primary WASM URL failed: ${t.message}`),console.error(`Backup WASM URL failed: ${e.message}`),r=null,Error(`WASM loading failed from all sources.`)}})),r},setWasmUrl(e){e!==i&&(i=e,r=null)}}}const P=N(E,`https://cdn.jsdelivr.net/npm/${i}@${r}/dist/dotlottie-player.wasm`,`https://unpkg.com/${i}@${r}/dist/dotlottie-player.wasm`),F=e=>{switch(e){case`reverse`:return w.Reverse;case`bounce`:return w.Bounce;case`reverse-bounce`:return w.ReverseBounce;default:return w.Forward}},ve=e=>{switch(e){case w.Reverse:return`reverse`;case w.Bounce:return`bounce`;case w.ReverseBounce:return`reverse-bounce`;default:return`forward`}},ye=e=>{switch(e){case`contain`:return`contain`;case`cover`:return`cover`;case`fill`:return`fill`;case`fit-height`:return`fit-height`;case`fit-width`:return`fit-width`;case`none`:return`none`;default:return`contain`}};var be=class{constructor(e){c(this,`_canvas`,null),c(this,`_pendingLoad`,null),c(this,`_context`,null),c(this,`_eventManager`,void 0),c(this,`_animationFrameId`,null),c(this,`_frameManager`,void 0),c(this,`_dotLottieCore`,null),c(this,`_stateMachineId`,``),c(this,`_stateMachineConfig`,null),c(this,`_isStateMachineRunning`,!1),c(this,`_renderConfig`,{}),c(this,`_isFrozen`,!1),c(this,`_backgroundColor`,null),c(this,`_boundOnClick`,null),c(this,`_boundOnPointerUp`,null),c(this,`_boundOnPointerDown`,null),c(this,`_boundOnPointerMove`,null),c(this,`_boundOnPointerEnter`,null),c(this,`_boundOnPointerLeave`,null),c(this,`_bufferMismatchCount`,0),c(this,`_lastExpectedBufferSize`,0),c(this,`_marker`,``),this._canvas=e.canvas??null,this._eventManager=new fe,this._frameManager=new ee,this._renderConfig={...e.renderConfig,devicePixelRatio:e.renderConfig?.devicePixelRatio||A(),freezeOnOffscreen:e.renderConfig?.freezeOnOffscreen??!0},this._initWasm().then(()=>{this._dotLottieCore=this._createCore(),this._dotLottieCore.set_autoplay(e.autoplay??!1),this._dotLottieCore.set_loop(e.loop??!1),this._dotLottieCore.set_loop_count(e.loopCount??0),this._dotLottieCore.set_mode(F(e.mode??`forward`)),this._dotLottieCore.set_speed(e.speed??1),this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation??!0),e.segment&&e.segment.length===2&&this._dotLottieCore.set_segment(e.segment[0],e.segment[1]),this._marker=e.marker??``,this._marker&&this._dotLottieCore.set_marker(this._marker),this._dotLottieCore.set_layout(e.layout?.fit??`contain`,e.layout?.align?.[0]??.5,e.layout?.align?.[1]??.5),this._stateMachineId=e.stateMachineId??``,this._stateMachineConfig=e.stateMachineConfig??null,this._onCoreCreated(),this._eventManager.dispatch({type:`ready`}),e.data?this._canvas?this._loadFromData(e.data):this._pendingLoad={data:e.data}:e.src&&(this._canvas?this._loadFromSrc(e.src):this._pendingLoad={src:e.src}),e.backgroundColor&&this.setBackgroundColor(e.backgroundColor)}).catch(e=>{console.error(`[dotlottie-web] Initialization failed:`,e),this._eventManager.dispatch({type:`loadError`,error:Error(`Failed to load wasm module: ${e}`)})})}async _initWasm(){return P.load()}_createCore(){return new ce}_onCoreCreated(){}_drainPlayerEvents(){if(!this._dotLottieCore)return;let e;for(;(e=this._dotLottieCore.poll_event())!=null;){let t=e;switch(t.type){case`Load`:setTimeout(()=>this._eventManager.dispatch({type:`load`}),0);break;case`LoadError`:setTimeout(()=>this._eventManager.dispatch({type:`loadError`,error:Error(`failed to load`)}),0);break;case`Play`:setTimeout(()=>this._eventManager.dispatch({type:`play`}),0);break;case`Pause`:setTimeout(()=>this._eventManager.dispatch({type:`pause`}),0);break;case`Stop`:setTimeout(()=>this._eventManager.dispatch({type:`stop`}),0);break;case`Frame`:setTimeout(()=>this._eventManager.dispatch({type:`frame`,currentFrame:t.frameNo??0}),0);break;case`Render`:setTimeout(()=>this._eventManager.dispatch({type:`render`,currentFrame:t.frameNo??0}),0);break;case`Loop`:setTimeout(()=>this._eventManager.dispatch({type:`loop`,loopCount:t.loopCount??0}),0);break;case`Complete`:setTimeout(()=>this._eventManager.dispatch({type:`complete`}),0);break;default:break}}}_drainSmEvents(){if(!this._dotLottieCore)return;let t;for(;(t=this._dotLottieCore.sm_poll_event())!=null;){let e=t;switch(e.type){case`Start`:setTimeout(()=>{this._isStateMachineRunning=!0,this._eventManager.dispatch({type:`stateMachineStart`}),this._startAnimationLoop()},0);break;case`Stop`:setTimeout(()=>{this._isStateMachineRunning=!1,this._eventManager.dispatch({type:`stateMachineStop`}),this._dotLottieCore?.is_playing()||this._stopAnimationLoop()},0);break;case`CustomEvent`:this._eventManager.dispatch({type:`stateMachineCustomEvent`,eventName:e.message??``});break;case`BooleanInputChange`:this._eventManager.dispatch({type:`stateMachineBooleanInputValueChange`,inputName:e.name??``,newValue:e.newValue,oldValue:e.oldValue});break;case`NumericInputChange`:this._eventManager.dispatch({type:`stateMachineNumericInputValueChange`,inputName:e.name??``,newValue:e.newValue,oldValue:e.oldValue});break;case`StringInputChange`:this._eventManager.dispatch({type:`stateMachineStringInputValueChange`,inputName:e.name??``,newValue:e.newValue,oldValue:e.oldValue});break;case`InputFired`:this._eventManager.dispatch({type:`stateMachineInputFired`,inputName:e.name??``});break;case`Transition`:this._eventManager.dispatch({type:`stateMachineTransition`,fromState:e.previousState??``,toState:e.newState??``});break;case`StateEntered`:this._eventManager.dispatch({type:`stateMachineStateEntered`,state:e.state??``});break;case`StateExit`:this._eventManager.dispatch({type:`stateMachineStateExit`,state:e.state??``});break;case`Error`:this._eventManager.dispatch({type:`stateMachineError`,error:e.message??``});break;default:break}}let n;for(;(n=this._dotLottieCore.sm_poll_internal_event())!=null;){let t=n;if(t.type===`Message`){let n=t.message??``;e&&n.startsWith(`OpenUrl: `)?_e(n):this._eventManager.dispatch({type:`stateMachineInternalMessage`,message:n})}}}_dispatchError(e){console.error(e),this._eventManager.dispatch({type:`loadError`,error:Error(e)})}async _fetchData(e){let t=await fetch(e);if(!t.ok)throw Error(`Failed to fetch animation data from URL: ${e}. ${t.status}: ${t.statusText}`);let n=await t.arrayBuffer();return k(n)?n:new TextDecoder().decode(n)}_loadFromData(t){if(this._dotLottieCore===null)return;if(!this._canvas){console.warn(`[dotlottie-web] Cannot load animation without canvas. Call setCanvas() first.`);return}let n=this._canvas.width,r=this._canvas.height,i=!1;if(typeof t==`string`){if(!ge(t)){this._dispatchError(`Invalid Lottie JSON string: The provided string does not conform to the Lottie JSON format.`);return}i=this._dotLottieCore.load_animation(t,n,r)}else if(t instanceof ArrayBuffer){if(!k(t)){this._dispatchError(`Invalid dotLottie ArrayBuffer: The provided ArrayBuffer does not conform to the dotLottie format.`);return}i=this._dotLottieCore.load_dotlottie_data(new Uint8Array(t),n,r)}else if(typeof t==`object`){if(!ge(t)){this._dispatchError(`Invalid Lottie JSON object: The provided object does not conform to the Lottie JSON format.`);return}i=this._dotLottieCore.load_animation(JSON.stringify(t),n,r)}else{this._dispatchError(`Unsupported data type for animation data. Expected:
|
|
2
2
|
- string (Lottie JSON),
|
|
3
3
|
- ArrayBuffer (dotLottie),
|
|
4
4
|
- object (Lottie JSON).
|
|
5
|
-
Received: ${typeof t}`);return}i?(this._renderConfig.quality!==void 0&&this._dotLottieCore.set_quality(this._renderConfig.quality),e&&this.resize(),this._drainPlayerEvents(),this._marker&&this._dotLottieCore.set_marker(this._marker),setTimeout(()=>{this._eventManager.dispatch({type:`frame`,currentFrame:this.currentFrame})},0),this._dotLottieCore.render(),this._drainPlayerEvents(),this._draw(),this._stateMachineId?this.stateMachineLoad(this._stateMachineId)&&this.stateMachineStart()&&this._startAnimationLoop():this._dotLottieCore.is_playing()&&this._startAnimationLoop(),e&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.freezeOnOffscreen&&(D.observe(this._canvas,this),j(this._canvas)||this.freeze()),this._renderConfig.autoResize&&O.observe(this._canvas,this))):this._drainPlayerEvents()}_loadFromSrc(e){this._fetchData(e).then(e=>this._loadFromData(e)).catch(t=>this._dispatchError(`Failed to load animation data from URL: ${e}. ${t}`))}get buffer(){return this._dotLottieCore?this._dotLottieCore.get_pixel_buffer():null}get activeAnimationId(){return this._dotLottieCore?.animation_id()??void 0}get activeThemeId(){return this._dotLottieCore?.theme_id()??void 0}get layout(){if(this._dotLottieCore)return{align:[this._dotLottieCore.layout_align_x(),this._dotLottieCore.layout_align_y()],fit:ye(this._dotLottieCore.layout_fit())}}get marker(){return this._dotLottieCore?.current_marker()??``}get manifest(){try{let e=this._dotLottieCore?.manifest_string();if(this._dotLottieCore===null||!e)return null;let t=JSON.parse(e);return Object.keys(t).length===0?null:t}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){if(!(!this._dotLottieCore||!this._dotLottieCore.has_segment()))return[this._dotLottieCore.segment_start(),this._dotLottieCore.segment_end()]}get loop(){return this._dotLottieCore?.loop_animation()??!1}get mode(){return this._dotLottieCore?ve(this._dotLottieCore.mode()):`forward`}get isFrozen(){return this._isFrozen}get isStateMachineRunning(){return this._isStateMachineRunning}get backgroundColor(){return this._backgroundColor??``}get autoplay(){return this._dotLottieCore?.autoplay()??!1}get useFrameInterpolation(){return this._dotLottieCore?.use_frame_interpolation()??!1}get speed(){return this._dotLottieCore?.speed()??0}get isReady(){return this._dotLottieCore!==null}get isLoaded(){return this._dotLottieCore?.is_loaded()??!1}get isPlaying(){return this._dotLottieCore?.is_playing()??!1}get isPaused(){return this._dotLottieCore?.is_paused()??!1}get isStopped(){return this._dotLottieCore?.is_stopped()??!1}get currentFrame(){return this._dotLottieCore?Math.round(this._dotLottieCore.current_frame()*100)/100:0}get loopCount(){return this._dotLottieCore?.current_loop_count()??0}get totalFrames(){return this._dotLottieCore?.total_frames()??0}get duration(){return this._dotLottieCore?.duration()??0}get segmentDuration(){return this._dotLottieCore?.segment_duration()??0}get canvas(){return this._canvas}load(e){this._dotLottieCore!==null&&(this._stopAnimationLoop(),this._cleanupCanvas(),this._isFrozen=!1,this._dotLottieCore.set_autoplay(e.autoplay??!1),this._dotLottieCore.set_loop(e.loop??!1),this._dotLottieCore.set_loop_count(e.loopCount??0),this._dotLottieCore.set_mode(F(e.mode??`forward`)),this._dotLottieCore.set_speed(e.speed??1),this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation??!0),e.segment&&e.segment.length===2?this._dotLottieCore.set_segment(e.segment[0],e.segment[1]):this._dotLottieCore.clear_segment(),this._marker=e.marker??``,this._marker?this._dotLottieCore.set_marker(this._marker):this._dotLottieCore.clear_marker(),this._dotLottieCore.set_layout(e.layout?.fit??`contain`,e.layout?.align?.[0]??.5,e.layout?.align?.[1]??.5),e.data?this._canvas?this._loadFromData(e.data):this._pendingLoad={data:e.data}:e.src&&(this._canvas?this._loadFromSrc(e.src):this._pendingLoad={src:e.src}),this.setBackgroundColor(e.backgroundColor??``))}_draw(){if(!(this._dotLottieCore===null||this._canvas===null)&&(!this._context&&`getContext`in this._canvas&&typeof this._canvas.getContext==`function`&&(typeof HTMLCanvasElement<`u`&&this._canvas instanceof HTMLCanvasElement||typeof OffscreenCanvas<`u`&&this._canvas instanceof OffscreenCanvas)&&(this._context=this._canvas.getContext(`2d`)),this._context)){let e=this._dotLottieCore.get_pixel_buffer(),t=this._canvas.width*this._canvas.height*4;if(e.byteLength!==t){this._lastExpectedBufferSize===t?this._bufferMismatchCount+=1:(this._bufferMismatchCount=1,this._lastExpectedBufferSize=t),this._bufferMismatchCount===10&&console.warn(`[dotlottie-web] Persistent buffer size mismatch detected. Expected ${t} bytes for canvas ${this._canvas.width}x${this._canvas.height}, but got ${e.byteLength} bytes. This may indicate a WASM memory allocation issue or invalid canvas dimensions.`);return}this._bufferMismatchCount=0,this._lastExpectedBufferSize=t;let n=null,r=new Uint8ClampedArray(e.buffer,e.byteOffset,e.byteLength);typeof ImageData>`u`?(n=this._context.createImageData(this._canvas.width,this._canvas.height),n.data.set(r)):n=new ImageData(r,this._canvas.width,this._canvas.height),this._context.putImageData(n,0,0)}}_cleanupCanvas(){this._canvas&&e&&this._canvas instanceof HTMLCanvasElement&&(D.unobserve(this._canvas),O.unobserve(this._canvas),this._cleanupStateMachineListeners())}_initializeCanvas(){this._setupRendererOnCanvas(),this._canvas&&e&&this._canvas instanceof HTMLCanvasElement&&this.isLoaded&&(this._renderConfig.freezeOnOffscreen&&(D.observe(this._canvas,this),j(this._canvas)||this.freeze()),this._renderConfig.autoResize&&O.observe(this._canvas,this),this._isStateMachineRunning&&this._setupStateMachineListeners()),this._canvas&&this._dotLottieCore&&this.isLoaded&&this._dotLottieCore.resize(this._canvas.width,this._canvas.height)&&(this._dotLottieCore.render(),this._draw())}_setupRendererOnCanvas(){this._context=null}_stopAnimationLoop(){this._animationFrameId!==null&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null)}_startAnimationLoop(){this._animationFrameId===null&&this._dotLottieCore&&!this._isFrozen&&(this._dotLottieCore.is_playing()||this._isStateMachineRunning)&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._animationLoop.bind(this)))}_animationLoop(){if(this._dotLottieCore===null){this._stopAnimationLoop();return}if(!this._dotLottieCore.is_playing()&&!this._isStateMachineRunning){this._stopAnimationLoop();return}try{let e=this._isStateMachineRunning?this._dotLottieCore.sm_tick():this._dotLottieCore.tick();this._isStateMachineRunning?this._drainSmEvents():this._drainPlayerEvents(),e&&this._draw(),this._animationFrameId=this._frameManager.requestAnimationFrame(this._animationLoop.bind(this))}catch(e){console.error(`Error in animation frame:`,e),this._eventManager.dispatch({type:`renderError`,error:e}),e instanceof WebAssembly.RuntimeError&&this.destroy()}}play(){if(this._dotLottieCore===null||!this.isLoaded)return;this._stopAnimationLoop();let t=this._dotLottieCore.play();this._drainPlayerEvents(),(t||this._dotLottieCore.is_playing())&&(this._isFrozen=!1,this._startAnimationLoop()),this._canvas&&e&&this._canvas instanceof HTMLCanvasElement&&this._renderConfig.freezeOnOffscreen&&!j(this._canvas)&&this.freeze()}pause(){this._dotLottieCore!==null&&(this._dotLottieCore.pause(),this._drainPlayerEvents(),this._stopAnimationLoop())}stop(){if(this._dotLottieCore===null)return;let e=this._dotLottieCore.stop();this._drainPlayerEvents(),this._stopAnimationLoop(),e&&(this._eventManager.dispatch({type:`frame`,currentFrame:this.currentFrame}),this._dotLottieCore.render(),this._draw())}setFrame(e){if(this._dotLottieCore!==null&&this._dotLottieCore.seek(e)){let e=this._dotLottieCore.render();this._drainPlayerEvents(),e&&this._draw()}}setSpeed(e){this._dotLottieCore!==null&&this._dotLottieCore.set_speed(e)}setBackgroundColor(t){this._dotLottieCore!==null&&(e&&this._canvas instanceof HTMLCanvasElement?this._canvas.style.backgroundColor=t:this._dotLottieCore.set_background_color(me(t)),this._backgroundColor=t)}setLoop(e){this._dotLottieCore!==null&&this._dotLottieCore.set_loop(e)}setLoopCount(e){this._dotLottieCore!==null&&this._dotLottieCore.set_loop_count(e)}setUseFrameInterpolation(e){this._dotLottieCore!==null&&this._dotLottieCore.set_use_frame_interpolation(e)}addEventListener(e,t){this._eventManager.addEventListener(e,t)}removeEventListener(e,t){this._eventManager.removeEventListener(e,t)}destroy(){this._stopAnimationLoop(),this._isStateMachineRunning=!1,this._cleanupCanvas(),this._dotLottieCore?.free(),this._dotLottieCore=null,this._context=null,this._eventManager.dispatch({type:`destroy`}),this._eventManager.removeAllEventListeners(),this._cleanupStateMachineListeners()}freeze(){this._animationFrameId!==null&&(this._stopAnimationLoop(),this._isFrozen=!0,this._eventManager.dispatch({type:`freeze`}))}unfreeze(){this._animationFrameId===null&&(this._isFrozen=!1,this._eventManager.dispatch({type:`unfreeze`}),this._startAnimationLoop())}resize(){if(!(!this._dotLottieCore||!this.isLoaded||!this._canvas)){if(e&&this._canvas instanceof HTMLCanvasElement){let e=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:t,width:n}=this._canvas.getBoundingClientRect();t!==0&&n!==0&&(this._canvas.width=n*e,this._canvas.height=t*e)}this._dotLottieCore.resize(this._canvas.width,this._canvas.height)&&(this._dotLottieCore.render(),this._draw())}}setCanvas(e){if(!(!e||this._canvas===e)&&(this._canvas&&this._cleanupCanvas(),this._canvas=e,this._initializeCanvas(),this._pendingLoad)){let e=this._pendingLoad;this._pendingLoad=null,e.data?this._loadFromData(e.data):e.src&&this._loadFromSrc(e.src)}}setTransform(e){if(!this._dotLottieCore)return!1;let t=this._dotLottieCore.set_transform(new Float32Array(e));return t&&this._dotLottieCore.render()&&this._draw(),t}getTransform(){if(!this._dotLottieCore)return;let e=this._dotLottieCore.get_transform();return Array.from(e)}setSegment(e,t){this._dotLottieCore!==null&&this._dotLottieCore.set_segment(e,t)}setMode(e){this._dotLottieCore!==null&&this._dotLottieCore.set_mode(F(e))}setRenderConfig(t){let{devicePixelRatio:n,freezeOnOffscreen:r,quality:i,...a}=t;this._renderConfig={...this._renderConfig,...a,devicePixelRatio:n||A(),freezeOnOffscreen:r??!0,...i!==void 0&&{quality:i}},i!==void 0&&this._dotLottieCore&&this._dotLottieCore.set_quality(i),e&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.autoResize?O.observe(this._canvas,this):O.unobserve(this._canvas),this._renderConfig.freezeOnOffscreen?(D.observe(this._canvas,this),j(this._canvas)||this.freeze()):(D.unobserve(this._canvas),this._isFrozen&&this.unfreeze()))}loadAnimation(e){this._dotLottieCore===null||this._dotLottieCore.animation_id()===e||!this._canvas||(this._dotLottieCore.load_animation_from_id(e,this._canvas.width,this._canvas.height)?(this._renderConfig.quality!==void 0&&this._dotLottieCore.set_quality(this._renderConfig.quality),this.resize(),this._drainPlayerEvents(),this._dotLottieCore.render(),this._draw()):this._dispatchError(`Failed to load animation with id: ${e}`))}setMarker(e){this._dotLottieCore!==null&&(this._marker=e,this._dotLottieCore.set_marker(e))}markers(){let e=this._dotLottieCore?.markers();return e&&Array.isArray(e)?e:[]}setTheme(e){if(this._dotLottieCore===null)return!1;let t=this._dotLottieCore.set_theme(e);return t&&(this._dotLottieCore.render(),this._draw()),t}resetTheme(){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.reset_theme();return e&&(this._dotLottieCore.render(),this._draw()),e}setThemeData(e){if(this._dotLottieCore===null)return!1;let t=typeof e==`string`?e:JSON.stringify(e),n=this._dotLottieCore.set_theme_data(t);return n&&(this._dotLottieCore.render(),this._draw()),n}setSlots(e){this._dotLottieCore!==null&&this._dotLottieCore.set_slots_str(JSON.stringify(e))&&(this._dotLottieCore.render(),this._draw())}_isKeyframeArray(e){return Array.isArray(e)&&e.length>0&&typeof e[0]==`object`&&e[0]!==null&&`t`in e[0]&&`s`in e[0]}getSlotIds(){if(!this._dotLottieCore)return[];let e=this._dotLottieCore.get_slot_ids();return Array.isArray(e)?e:[]}getSlotType(e){if(!this._dotLottieCore)return;let t=this._dotLottieCore.get_slot_type(e);if(t)return t}getSlot(e){if(!this._dotLottieCore)return;let t=this._dotLottieCore.get_slot_str(e);if(t)try{return JSON.parse(t)}catch{return}}getSlots(){if(!this._dotLottieCore)return{};try{return JSON.parse(this._dotLottieCore.get_slots_str())}catch{return{}}}setColorSlot(e,t){if(this._dotLottieCore===null)return!1;let n=this._isKeyframeArray(t),r=JSON.stringify({a:n?1:0,k:t}),i=this._dotLottieCore.set_slot_str(e,r);return this._dotLottieCore.render(),this._draw(),i}setScalarSlot(e,t){if(this._dotLottieCore===null)return!1;let n=typeof t!=`number`,r=JSON.stringify({a:n?1:0,k:t}),i=this._dotLottieCore.set_slot_str(e,r);return this._dotLottieCore.render(),this._draw(),i}setVectorSlot(e,t){if(this._dotLottieCore===null)return!1;let n=this._isKeyframeArray(t),r=JSON.stringify({a:n?1:0,k:t}),i=this._dotLottieCore.set_slot_str(e,r);return this._dotLottieCore.render(),this._draw(),i}setGradientSlot(e,t,n){if(this._dotLottieCore===null)return!1;let r=this._isKeyframeArray(t),i=JSON.stringify({k:{a:r?1:0,k:t},p:n}),a=this._dotLottieCore.set_slot_str(e,i);return this._dotLottieCore.render(),this._draw(),a}setTextSlot(e,t){if(this._dotLottieCore===null)return!1;let n=this._dotLottieCore.get_slot_str(e),r=t;if(n){let e=JSON.parse(n);if(e&&`k`in e&&Array.isArray(e.k)){let n=e.k[0];`s`in n&&typeof n.s==`object`&&(r={...n.s,...t})}}let i=JSON.stringify({a:0,k:[{t:0,s:r}]}),a=this._dotLottieCore.set_slot_str(e,i);return this._dotLottieCore.render(),this._draw(),a}resetSlot(e){if(this._dotLottieCore===null)return!1;let t=this._dotLottieCore.reset_slot(e);return this._dotLottieCore.render(),this._draw(),t}clearSlot(e){if(this._dotLottieCore===null)return!1;let t=this._dotLottieCore.clear_slot(e);return this._dotLottieCore.render(),this._draw(),t}resetSlots(){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.reset_slots();return this._dotLottieCore.render(),this._draw(),e}clearSlots(){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.clear_slots();return this._dotLottieCore.render(),this._draw(),e}setLayout(e){this._dotLottieCore!==null&&this._dotLottieCore.set_layout(e.fit??`contain`,e.align?.[0]??.5,e.align?.[1]??.5)}setViewport(e,t,n,r){return this._dotLottieCore===null?!1:this._dotLottieCore.set_viewport(e,t,n,r)}static setWasmUrl(e){P.setWasmUrl(e)}static async registerFont(e,t){try{await P.load();let n;if(typeof t==`string`){let e=await fetch(t);if(!e.ok)return console.error(`Failed to fetch font from URL: ${t}. Status: ${e.status}`),!1;n=new Uint8Array(await e.arrayBuffer())}else n=t instanceof Uint8Array?t:new Uint8Array(t);let r=se(e,n);return r||console.error(`Failed to register font "${e}". Font data may be invalid.`),r}catch(t){return console.error(`Error registering font "${e}":`,t),!1}}tween(e,t){return this._dotLottieCore?this._dotLottieCore.tween_with_easing(e,t,0,0,1,1):!1}tweenToMarker(e,t){return this._dotLottieCore?this._dotLottieCore.tween_to_marker(e,t):!1}animationSize(){let e=this._dotLottieCore?.animation_size();return{width:e?.[0]??0,height:e?.[1]??0}}getLayerBoundingBox(e){let t=this._dotLottieCore?.get_layer_bounds(e);if(t&&t.length===8)return Array.from(t)}static transformThemeToLottieSlots(e,t){return``}stateMachineLoad(e){return this._dotLottieCore?this._dotLottieCore.state_machine_load_from_id(e):!1}stateMachineLoadData(e){return this._dotLottieCore?this._dotLottieCore.state_machine_load(e):!1}stateMachineSetConfig(e){this._stateMachineConfig=e}stateMachineStart(){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.sm_start(this._stateMachineConfig?.openUrlPolicy?.requireUserInteraction??!0,this._stateMachineConfig?.openUrlPolicy?.whitelist??[]);return this._drainSmEvents(),e&&(this._isStateMachineRunning=!0,this._setupStateMachineListeners(),this._startAnimationLoop()),e}stateMachineStop(){if(!this._dotLottieCore)return!1;let e=this._dotLottieCore.sm_stop();return this._drainSmEvents(),e&&(this._isStateMachineRunning=!1,this._cleanupStateMachineListeners(),this._dotLottieCore.is_playing()||this._stopAnimationLoop()),e}stateMachineGetStatus(){return this._dotLottieCore?.sm_status()??``}stateMachineGetCurrentState(){return this._dotLottieCore?.sm_current_state()??``}stateMachineGetActiveId(){return this._dotLottieCore?.state_machine_id()??``}stateMachineOverrideState(e,t=!1){return this._dotLottieCore?.sm_override_current_state(e,t)??!1}stateMachineGet(e){return this._dotLottieCore?.get_state_machine(e)??``}stateMachineGetListeners(){if(!this._dotLottieCore)return[];let e=this._dotLottieCore.sm_framework_setup();return Array.isArray(e)?e:[]}stateMachineSetBooleanInput(e,t){return this._dotLottieCore?.sm_set_boolean_input(e,t)??!1}stateMachineSetNumericInput(e,t){return this._dotLottieCore?.sm_set_numeric_input(e,t)??!1}stateMachineSetStringInput(e,t){return this._dotLottieCore?.sm_set_string_input(e,t)??!1}stateMachineGetBooleanInput(e){return this._dotLottieCore?.sm_get_boolean_input(e)??void 0}stateMachineGetNumericInput(e){return this._dotLottieCore?.sm_get_numeric_input(e)??void 0}stateMachineGetStringInput(e){return this._dotLottieCore?.sm_get_string_input(e)??void 0}stateMachineGetInputs(){if(!this._dotLottieCore)return[];let e=this._dotLottieCore.sm_get_inputs();return Array.isArray(e)?e:[]}stateMachineFireEvent(e){this._dotLottieCore?.sm_fire(e)}stateMachinePostClickEvent(e,t){this._dotLottieCore?.sm_post_click(e,t)}stateMachinePostPointerUpEvent(e,t){this._dotLottieCore?.sm_post_pointer_up(e,t)}stateMachinePostPointerDownEvent(e,t){this._dotLottieCore?.sm_post_pointer_down(e,t)}stateMachinePostPointerMoveEvent(e,t){this._dotLottieCore?.sm_post_pointer_move(e,t)}stateMachinePostPointerEnterEvent(e,t){this._dotLottieCore?.sm_post_pointer_enter(e,t)}stateMachinePostPointerExitEvent(e,t){this._dotLottieCore?.sm_post_pointer_exit(e,t)}_onClick(e){let t=M(e);t&&this.stateMachinePostClickEvent(t.x,t.y)}_onPointerUp(e){let t=M(e);t&&this.stateMachinePostPointerUpEvent(t.x,t.y)}_onPointerDown(e){let t=M(e);t&&this.stateMachinePostPointerDownEvent(t.x,t.y)}_onPointerMove(e){let t=M(e);t&&this.stateMachinePostPointerMoveEvent(t.x,t.y)}_onPointerEnter(e){let t=M(e);t&&this.stateMachinePostPointerEnterEvent(t.x,t.y)}_onPointerLeave(e){let t=M(e);t&&this.stateMachinePostPointerExitEvent(t.x,t.y)}_setupStateMachineListeners(){if(e&&this._canvas instanceof HTMLCanvasElement&&this._dotLottieCore!==null&&this.isLoaded){let e=this.stateMachineGetListeners();this._cleanupStateMachineListeners(),e.includes(`Click`)&&(this._boundOnClick=this._onClick.bind(this),this._canvas.addEventListener(`click`,this._boundOnClick)),e.includes(`PointerUp`)&&(this._boundOnPointerUp=this._onPointerUp.bind(this),this._canvas.addEventListener(`pointerup`,this._boundOnPointerUp)),e.includes(`PointerDown`)&&(this._boundOnPointerDown=this._onPointerDown.bind(this),this._canvas.addEventListener(`pointerdown`,this._boundOnPointerDown)),e.includes(`PointerMove`)&&(this._boundOnPointerMove=this._onPointerMove.bind(this),this._canvas.addEventListener(`pointermove`,this._boundOnPointerMove)),e.includes(`PointerEnter`)&&(this._boundOnPointerEnter=this._onPointerEnter.bind(this),this._canvas.addEventListener(`pointerenter`,this._boundOnPointerEnter)),e.includes(`PointerExit`)&&(this._boundOnPointerLeave=this._onPointerLeave.bind(this),this._canvas.addEventListener(`pointerleave`,this._boundOnPointerLeave))}}_cleanupStateMachineListeners(){e&&this._canvas instanceof HTMLCanvasElement&&(this._boundOnClick&&(this._canvas.removeEventListener(`click`,this._boundOnClick),this._boundOnClick=null),this._boundOnPointerUp&&(this._canvas.removeEventListener(`pointerup`,this._boundOnPointerUp),this._boundOnPointerUp=null),this._boundOnPointerDown&&(this._canvas.removeEventListener(`pointerdown`,this._boundOnPointerDown),this._boundOnPointerDown=null),this._boundOnPointerMove&&(this._canvas.removeEventListener(`pointermove`,this._boundOnPointerMove),this._boundOnPointerMove=null),this._boundOnPointerEnter&&(this._canvas.removeEventListener(`pointerenter`,this._boundOnPointerEnter),this._boundOnPointerEnter=null),this._boundOnPointerLeave&&(this._canvas.removeEventListener(`pointerleave`,this._boundOnPointerLeave),this._boundOnPointerLeave=null))}};let I,L=null;function R(){return(L===null||L.byteLength===0)&&(L=new Uint8Array(I.memory.buffer)),L}function z(e,t){return e>>>=0,R().subarray(e/1,e/1+t)}function B(e){return e==null}function V(e){let t=I.__externref_table_alloc_command_export();return I.__wbindgen_export_1.set(t,e),t}function H(e,t){try{return e.apply(this,t)}catch(e){let t=V(e);I.__wbindgen_exn_store_command_export(t)}}let U=0;const W=typeof TextEncoder<`u`?new TextEncoder(`utf-8`):{encode:()=>{throw Error(`TextEncoder not available`)}},xe=typeof W.encodeInto==`function`?function(e,t){return W.encodeInto(e,t)}:function(e,t){let n=W.encode(e);return t.set(n),{read:e.length,written:n.length}};function G(e,t,n){if(n===void 0){let n=W.encode(e),r=t(n.length,1)>>>0;return R().subarray(r,r+n.length).set(n),U=n.length,r}let r=e.length,i=t(r,1)>>>0,a=R(),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=R().subarray(i+o,i+r),a=xe(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return U=o,i}let K=null;function q(){return(K===null||K.buffer.detached===!0||K.buffer.detached===void 0&&K.buffer!==I.memory.buffer)&&(K=new DataView(I.memory.buffer)),K}const J=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&J.decode();function Y(e,t){return e>>>=0,J.decode(R().subarray(e,e+t))}let X=null;function Se(){return(X===null||X.byteLength===0)&&(X=new Int32Array(I.memory.buffer)),X}function Ce(e,t){return e>>>=0,Se().subarray(e/4,e/4+t)}let Z=null;function we(){return(Z===null||Z.byteLength===0)&&(Z=new Float32Array(I.memory.buffer)),Z}function Te(e,t){return e>>>=0,we().subarray(e/4,e/4+t)}function Q(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+=Q(e[0]));for(let r=1;r<t;r++)n+=`, `+Q(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 Ee(e,t){let n=t(e.length*1,1)>>>0;return R().set(e,n/1),U=e.length,n}function De(e,t){let n=t(e.length*4,4)>>>0;return we().set(e,n/4),U=e.length,n}function Oe(e,t){let n=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let r=V(e[t]);q().setUint32(n+4*t,r,!0)}return U=e.length,n}Object.freeze({Forward:0,0:`Forward`,Reverse:1,1:`Reverse`,Bounce:2,2:`Bounce`,ReverseBounce:3,3:`ReverseBounce`});const ke=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>I.__wbg_dotlottieplayerwasm_free(e>>>0,1));var Ae=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ke.unregister(this),e}free(){let e=this.__destroy_into_raw();I.__wbg_dotlottieplayerwasm_free(e,0)}constructor(){return this.__wbg_ptr=I.dotlottieplayerwasm_new()>>>0,ke.register(this,this.__wbg_ptr,this),this}set_webgl_context(e){I.dotlottieplayerwasm_set_webgl_context(this.__wbg_ptr,e)}load_animation(e,t,n){let r=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),i=U;return I.dotlottieplayerwasm_load_animation(this.__wbg_ptr,r,i,t,n)!==0}load_dotlottie_data(e,t,n){let r=Ee(e,I.__wbindgen_malloc_command_export),i=U;return I.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,r,i,t,n)!==0}load_animation_from_id(e,t,n){let r=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),i=U;return I.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,r,i,t,n)!==0}tick(){return I.dotlottieplayerwasm_tick(this.__wbg_ptr)!==0}render(){return I.dotlottieplayerwasm_render(this.__wbg_ptr)!==0}clear(){I.dotlottieplayerwasm_clear(this.__wbg_ptr)}resize(e,t){return I.dotlottieplayerwasm_resize(this.__wbg_ptr,e,t)!==0}play(){return I.dotlottieplayerwasm_play(this.__wbg_ptr)!==0}pause(){return I.dotlottieplayerwasm_pause(this.__wbg_ptr)!==0}stop(){return I.dotlottieplayerwasm_stop(this.__wbg_ptr)!==0}is_playing(){return I.dotlottieplayerwasm_is_playing(this.__wbg_ptr)!==0}is_paused(){return I.dotlottieplayerwasm_is_paused(this.__wbg_ptr)!==0}is_stopped(){return I.dotlottieplayerwasm_is_stopped(this.__wbg_ptr)!==0}is_loaded(){return I.dotlottieplayerwasm_is_loaded(this.__wbg_ptr)!==0}is_complete(){return I.dotlottieplayerwasm_is_complete(this.__wbg_ptr)!==0}is_tweening(){return I.dotlottieplayerwasm_is_tweening(this.__wbg_ptr)!==0}current_frame(){return I.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}total_frames(){return I.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}request_frame(){return I.dotlottieplayerwasm_request_frame(this.__wbg_ptr)}set_frame(e){return I.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)!==0}seek(e){return I.dotlottieplayerwasm_seek(this.__wbg_ptr,e)!==0}duration(){return I.dotlottieplayerwasm_duration(this.__wbg_ptr)}segment_duration(){return I.dotlottieplayerwasm_segment_duration(this.__wbg_ptr)}current_loop_count(){return I.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}reset_current_loop_count(){I.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}width(){return I.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return I.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}animation_size(){return I.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}mode(){return I.dotlottieplayerwasm_mode(this.__wbg_ptr)}set_mode(e){I.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}speed(){return I.dotlottieplayerwasm_speed(this.__wbg_ptr)}set_speed(e){I.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}loop_animation(){return I.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)!==0}set_loop(e){I.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}loop_count(){return I.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}set_loop_count(e){I.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}autoplay(){return I.dotlottieplayerwasm_autoplay(this.__wbg_ptr)!==0}set_autoplay(e){I.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}use_frame_interpolation(){return I.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)!==0}set_use_frame_interpolation(e){I.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}background_color(){return I.dotlottieplayerwasm_background_color(this.__wbg_ptr)>>>0}set_background_color(e){return I.dotlottieplayerwasm_set_background_color(this.__wbg_ptr,e)!==0}clear_background_color(){return I.dotlottieplayerwasm_clear_background_color(this.__wbg_ptr)!==0}set_quality(e){return I.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)!==0}has_segment(){return I.dotlottieplayerwasm_has_segment(this.__wbg_ptr)!==0}segment_start(){return I.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}segment_end(){return I.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_segment(e,t){return I.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,t)!==0}clear_segment(){return I.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)!==0}set_layout(e,t,n){let r=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),i=U;return I.dotlottieplayerwasm_set_layout(this.__wbg_ptr,r,i,t,n)!==0}layout_fit(){let e,t;try{let n=I.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return e=n[0],t=n[1],Y(n[0],n[1])}finally{I.__wbindgen_free_command_export(e,t,1)}}layout_align_x(){return I.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return I.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}set_viewport(e,t,n,r){return I.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,t,n,r)!==0}set_color_slot(e,t,n,r){let i=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),a=U;return I.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,i,a,t,n,r)!==0}set_scalar_slot(e,t){let n=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),r=U;return I.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,n,r,t)!==0}set_text_slot(e,t){let n=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),r=U,i=G(t,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),a=U;return I.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,n,r,i,a)!==0}set_vector_slot(e,t,n){let r=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),i=U;return I.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,r,i,t,n)!==0}set_position_slot(e,t,n){let r=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),i=U;return I.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,r,i,t,n)!==0}clear_slots(){return I.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)!==0}clear_slot(e){let t=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=U;return I.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,t,n)!==0}set_slots_str(e){let t=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=U;return I.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,t,n)!==0}set_slot_str(e,t){let n=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),r=U,i=G(t,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),a=U;return I.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,n,r,i,a)!==0}get_slot_str(e){let t=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=U,r=I.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=Y(r[0],r[1]).slice(),I.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}get_slots_str(){let e,t;try{let n=I.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return e=n[0],t=n[1],Y(n[0],n[1])}finally{I.__wbindgen_free_command_export(e,t,1)}}get_slot_ids(){return I.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_type(e){let t=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=U,r=I.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=Y(r[0],r[1]).slice(),I.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}reset_slot(e){let t=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=U;return I.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,t,n)!==0}reset_slots(){return I.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)!==0}intersect(e,t,n){let r=G(n,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),i=U;return I.dotlottieplayerwasm_intersect(this.__wbg_ptr,e,t,r,i)!==0}get_layer_bounds(e){let t=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=U;return I.dotlottieplayerwasm_get_layer_bounds(this.__wbg_ptr,t,n)}get_transform(){return I.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}set_transform(e){let t=De(e,I.__wbindgen_malloc_command_export),n=U;return I.dotlottieplayerwasm_set_transform(this.__wbg_ptr,t,n)!==0}tween(e,t){return I.dotlottieplayerwasm_tween(this.__wbg_ptr,e,B(t)?4294967297:Math.fround(t))!==0}tween_with_easing(e,t,n,r,i,a){return I.dotlottieplayerwasm_tween_with_easing(this.__wbg_ptr,e,B(t)?4294967297:Math.fround(t),n,r,i,a)!==0}tween_stop(){return I.dotlottieplayerwasm_tween_stop(this.__wbg_ptr)!==0}tween_update(e){return I.dotlottieplayerwasm_tween_update(this.__wbg_ptr,B(e)?4294967297:Math.fround(e))!==0}tween_to_marker(e,t){let n=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),r=U;return I.dotlottieplayerwasm_tween_to_marker(this.__wbg_ptr,n,r,B(t)?4294967297:Math.fround(t))!==0}markers(){return I.dotlottieplayerwasm_markers(this.__wbg_ptr)}marker_names(){return I.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}current_marker(){let e=I.dotlottieplayerwasm_current_marker(this.__wbg_ptr),t;return e[0]!==0&&(t=Y(e[0],e[1]).slice(),I.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}set_marker(e){let t=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=U;I.dotlottieplayerwasm_set_marker(this.__wbg_ptr,t,n)}clear_marker(){I.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}poll_event(){return I.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}emit_on_loop(){I.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}load_font(e,t){let n=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),r=U,i=Ee(t,I.__wbindgen_malloc_command_export),a=U;return I.dotlottieplayerwasm_load_font(this.__wbg_ptr,n,r,i,a)!==0}static unload_font(e){let t=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=U;return I.dotlottieplayerwasm_unload_font(t,n)!==0}set_theme(e){let t=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=U;return I.dotlottieplayerwasm_set_theme(this.__wbg_ptr,t,n)!==0}reset_theme(){return I.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)!==0}set_theme_data(e){let t=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=U;return I.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,t,n)!==0}theme_id(){let e=I.dotlottieplayerwasm_theme_id(this.__wbg_ptr),t;return e[0]!==0&&(t=Y(e[0],e[1]).slice(),I.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}animation_id(){let e=I.dotlottieplayerwasm_animation_id(this.__wbg_ptr),t;return e[0]!==0&&(t=Y(e[0],e[1]).slice(),I.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}manifest_string(){let e,t;try{let n=I.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return e=n[0],t=n[1],Y(n[0],n[1])}finally{I.__wbindgen_free_command_export(e,t,1)}}get_state_machine(e){let t=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=U,r=I.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=Y(r[0],r[1]).slice(),I.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}state_machine_id(){let e=I.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr),t;return e[0]!==0&&(t=Y(e[0],e[1]).slice(),I.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}state_machine_load(e){let t=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=U;return I.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,t,n)!==0}state_machine_load_from_id(e){let t=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=U;return I.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,t,n)!==0}state_machine_unload(){I.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_fire(e){let t=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=U;return I.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,t,n)!==0}sm_set_numeric_input(e,t){let n=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),r=U;return I.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,n,r,t)!==0}sm_get_numeric_input(e){let t=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=U,r=I.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,t,n);return r===4294967297?void 0:r}sm_set_string_input(e,t){let n=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),r=U,i=G(t,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),a=U;return I.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,n,r,i,a)!==0}sm_get_string_input(e){let t=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=U,r=I.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=Y(r[0],r[1]).slice(),I.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}sm_set_boolean_input(e,t){let n=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),r=U;return I.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,n,r,t)!==0}sm_get_boolean_input(e){let t=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=U,r=I.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,t,n);return r===16777215?void 0:r!==0}sm_reset_input(e){let t=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=U;I.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,t,n)}sm_poll_event(){return I.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_start(e,t){let n=Oe(t,I.__wbindgen_malloc_command_export),r=U;return I.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,n,r)!==0}sm_stop(){return I.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)!==0}sm_status(){let e,t;try{let n=I.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return e=n[0],t=n[1],Y(n[0],n[1])}finally{I.__wbindgen_free_command_export(e,t,1)}}sm_current_state(){let e,t;try{let n=I.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return e=n[0],t=n[1],Y(n[0],n[1])}finally{I.__wbindgen_free_command_export(e,t,1)}}sm_override_current_state(e,t){let n=G(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),r=U;return I.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,n,r,t)!==0}sm_framework_setup(){return I.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_get_inputs(){return I.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_post_click(e,t){I.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,t)}sm_post_pointer_down(e,t){I.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,t)}sm_post_pointer_up(e,t){I.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,t)}sm_post_pointer_move(e,t){I.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,t)}sm_post_pointer_enter(e,t){I.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,t)}sm_post_pointer_exit(e,t){I.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,t)}sm_poll_internal_event(){return I.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}sm_tick(){return I.dotlottieplayerwasm_sm_tick(this.__wbg_ptr)!==0}};async function je(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.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",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function Me(){let e={};return e.wbg={},e.wbg.__wbg_activeTexture_460f2e367e813fb0=function(e,t){e.activeTexture(t>>>0)},e.wbg.__wbg_attachShader_3d4eb6af9e3e7bd1=function(e,t,n){e.attachShader(t,n)},e.wbg.__wbg_bindBufferRange_454f90f2b1781982=function(e,t,n,r,i,a){e.bindBufferRange(t>>>0,n>>>0,r,i,a)},e.wbg.__wbg_bindBuffer_309c9a6c21826cf5=function(e,t,n){e.bindBuffer(t>>>0,n)},e.wbg.__wbg_bindFramebuffer_e48e83c0f973944d=function(e,t,n){e.bindFramebuffer(t>>>0,n)},e.wbg.__wbg_bindRenderbuffer_55e205fecfddbb8c=function(e,t,n){e.bindRenderbuffer(t>>>0,n)},e.wbg.__wbg_bindTexture_a6e795697f49ebd1=function(e,t,n){e.bindTexture(t>>>0,n)},e.wbg.__wbg_bindVertexArray_6b4b88581064b71f=function(e,t){e.bindVertexArray(t)},e.wbg.__wbg_blendEquation_c23d111ad6d268ff=function(e,t){e.blendEquation(t>>>0)},e.wbg.__wbg_blendFunc_c3b74be5a39c665f=function(e,t,n){e.blendFunc(t>>>0,n>>>0)},e.wbg.__wbg_blitFramebuffer_7303bdff77cfe967=function(e,t,n,r,i,a,o,s,c,l,u){e.blitFramebuffer(t,n,r,i,a,o,s,c,l>>>0,u>>>0)},e.wbg.__wbg_bufferData_463178757784fcac=function(e,t,n,r){e.bufferData(t>>>0,n,r>>>0)},e.wbg.__wbg_bufferData_c97b729d560cf60d=function(e,t,n,r,i){e.bufferData(t>>>0,z(n,r),i>>>0)},e.wbg.__wbg_clearColor_d39507085c98a678=function(e,t,n,r,i){e.clearColor(t,n,r,i)},e.wbg.__wbg_clearDepth_670d19914a501259=function(e,t){e.clearDepth(t)},e.wbg.__wbg_clearStencil_4323424f1acca0df=function(e,t){e.clearStencil(t)},e.wbg.__wbg_clear_62b9037b892f6988=function(e,t){e.clear(t>>>0)},e.wbg.__wbg_colorMask_5e7c60b9c7a57a2e=function(e,t,n,r,i){e.colorMask(t!==0,n!==0,r!==0,i!==0)},e.wbg.__wbg_compileShader_0ad770bbdbb9de21=function(e,t){e.compileShader(t)},e.wbg.__wbg_createBuffer_9886e84a67b68c89=function(e){let t=e.createBuffer();return B(t)?0:V(t)},e.wbg.__wbg_createFramebuffer_c8d70ebc4858051e=function(e){let t=e.createFramebuffer();return B(t)?0:V(t)},e.wbg.__wbg_createProgram_da203074cafb1038=function(e){let t=e.createProgram();return B(t)?0:V(t)},e.wbg.__wbg_createRenderbuffer_d88aa9403faa38ea=function(e){let t=e.createRenderbuffer();return B(t)?0:V(t)},e.wbg.__wbg_createShader_983150fb1243ee56=function(e,t){let n=e.createShader(t>>>0);return B(n)?0:V(n)},e.wbg.__wbg_createTexture_bfaa54c0cd22e367=function(e){let t=e.createTexture();return B(t)?0:V(t)},e.wbg.__wbg_createVertexArray_e435029ae2660efd=function(e){let t=e.createVertexArray();return B(t)?0:V(t)},e.wbg.__wbg_cullFace_187079e6e20a464d=function(e,t){e.cullFace(t>>>0)},e.wbg.__wbg_deleteBuffer_7ed96e1bf7c02e87=function(e,t){e.deleteBuffer(t)},e.wbg.__wbg_deleteFramebuffer_66853fb7101488cb=function(e,t){e.deleteFramebuffer(t)},e.wbg.__wbg_deleteProgram_71a133c6d053e272=function(e,t){e.deleteProgram(t)},e.wbg.__wbg_deleteRenderbuffer_59f4369653485031=function(e,t){e.deleteRenderbuffer(t)},e.wbg.__wbg_deleteShader_8d42f169deda58ac=function(e,t){e.deleteShader(t)},e.wbg.__wbg_deleteTexture_bb82c9fec34372ba=function(e,t){e.deleteTexture(t)},e.wbg.__wbg_deleteVertexArray_77fe73664a3332ae=function(e,t){e.deleteVertexArray(t)},e.wbg.__wbg_depthFunc_f34449ae87cc4e3e=function(e,t){e.depthFunc(t>>>0)},e.wbg.__wbg_depthMask_76688a8638b2f321=function(e,t){e.depthMask(t!==0)},e.wbg.__wbg_disableVertexAttribArray_452cc9815fced7e4=function(e,t){e.disableVertexAttribArray(t>>>0)},e.wbg.__wbg_disable_2702df5b5da5dd21=function(e,t){e.disable(t>>>0)},e.wbg.__wbg_drawElements_65cb4b099bd7d4ac=function(e,t,n,r,i){e.drawElements(t>>>0,n,r>>>0,i)},e.wbg.__wbg_enableVertexAttribArray_93c3d406a41ad6c7=function(e,t){e.enableVertexAttribArray(t>>>0)},e.wbg.__wbg_enable_51114837e05ee280=function(e,t){e.enable(t>>>0)},e.wbg.__wbg_framebufferRenderbuffer_8b88592753b54715=function(e,t,n,r,i){e.framebufferRenderbuffer(t>>>0,n>>>0,r>>>0,i)},e.wbg.__wbg_framebufferTexture2D_ed855d0b097c557a=function(e,t,n,r,i,a){e.framebufferTexture2D(t>>>0,n>>>0,r>>>0,i,a)},e.wbg.__wbg_frontFace_289c9d7a8569c4f2=function(e,t){e.frontFace(t>>>0)},e.wbg.__wbg_getParameter_e3429f024018310f=function(){return H(function(e,t){return e.getParameter(t>>>0)},arguments)},e.wbg.__wbg_getProgramInfoLog_a998105a680059db=function(e,t,n){let r=t.getProgramInfoLog(n);var i=B(r)?0:G(r,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),a=U;q().setInt32(e+4,a,!0),q().setInt32(e+0,i,!0)},e.wbg.__wbg_getProgramParameter_360f95ff07ac068d=function(e,t,n){return e.getProgramParameter(t,n>>>0)},e.wbg.__wbg_getShaderInfoLog_f59c3112acc6e039=function(e,t,n){let r=t.getShaderInfoLog(n);var i=B(r)?0:G(r,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),a=U;q().setInt32(e+4,a,!0),q().setInt32(e+0,i,!0)},e.wbg.__wbg_getShaderParameter_511b5f929074fa31=function(e,t,n){return e.getShaderParameter(t,n>>>0)},e.wbg.__wbg_getUniformBlockIndex_288fdc31528171ca=function(e,t,n,r){return e.getUniformBlockIndex(t,Y(n,r))},e.wbg.__wbg_getUniformLocation_657a2b6d102bd126=function(e,t,n,r){let i=e.getUniformLocation(t,Y(n,r));return B(i)?0:V(i)},e.wbg.__wbg_invalidateFramebuffer_83f643d2a4936456=function(){return H(function(e,t,n){e.invalidateFramebuffer(t>>>0,n)},arguments)},e.wbg.__wbg_linkProgram_067ee06739bdde81=function(e,t){e.linkProgram(t)},e.wbg.__wbg_new_405e22f390576ce2=function(){return{}},e.wbg.__wbg_new_78feb108b6472713=function(){return[]},e.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return new Float32Array(e>>>0)},e.wbg.__wbg_now_807e54c39636c349=function(){return Date.now()},e.wbg.__wbg_push_737cfc8c1432c2c6=function(e,t){return e.push(t)},e.wbg.__wbg_renderbufferStorageMultisample_13fbd5e58900c6fe=function(e,t,n,r,i,a){e.renderbufferStorageMultisample(t>>>0,n,r>>>0,i,a)},e.wbg.__wbg_scissor_e917a332f67a5d30=function(e,t,n,r,i){e.scissor(t,n,r,i)},e.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return H(function(e,t,n){return Reflect.set(e,t,n)},arguments)},e.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){e[t>>>0]=n},e.wbg.__wbg_shaderSource_72d3e8597ef85b67=function(e,t,n,r){e.shaderSource(t,Y(n,r))},e.wbg.__wbg_stencilFuncSeparate_c1a6fa2005ca0aaf=function(e,t,n,r,i){e.stencilFuncSeparate(t>>>0,n>>>0,r,i>>>0)},e.wbg.__wbg_stencilFunc_115c92784472048b=function(e,t,n,r){e.stencilFunc(t>>>0,n,r>>>0)},e.wbg.__wbg_stencilOpSeparate_ff6683bbe3838ae6=function(e,t,n,r,i){e.stencilOpSeparate(t>>>0,n>>>0,r>>>0,i>>>0)},e.wbg.__wbg_stencilOp_b794f03cef95238e=function(e,t,n,r){e.stencilOp(t>>>0,n>>>0,r>>>0)},e.wbg.__wbg_texImage2D_06281e677e3f6909=function(){return H(function(e,t,n,r,i,a,o,s,c,l,u){e.texImage2D(t>>>0,n,r,i,a,o,s>>>0,c>>>0,l===0?void 0:z(l,u))},arguments)},e.wbg.__wbg_texParameteri_8112b26b3c360b7e=function(e,t,n,r){e.texParameteri(t>>>0,n>>>0,r)},e.wbg.__wbg_uniform1f_dc009a0e7f7e5977=function(e,t,n){e.uniform1f(t,n)},e.wbg.__wbg_uniform1i_ed95b6129dce4d84=function(e,t,n){e.uniform1i(t,n)},e.wbg.__wbg_uniform1iv_337c4a74e31ddc15=function(e,t,n,r){e.uniform1iv(t,Ce(n,r))},e.wbg.__wbg_uniformBlockBinding_18117f4bda07115b=function(e,t,n,r){e.uniformBlockBinding(t,n>>>0,r>>>0)},e.wbg.__wbg_uniformMatrix3fv_3df529aab93cf902=function(e,t,n,r,i){e.uniformMatrix3fv(t,n!==0,Te(r,i))},e.wbg.__wbg_useProgram_9b2660f7bb210471=function(e,t){e.useProgram(t)},e.wbg.__wbg_vertexAttrib4f_2a47cb701d647eeb=function(e,t,n,r,i,a){e.vertexAttrib4f(t>>>0,n,r,i,a)},e.wbg.__wbg_vertexAttribPointer_550dc34903e3d1ea=function(e,t,n,r,i,a,o){e.vertexAttribPointer(t>>>0,n,r>>>0,i!==0,a,o)},e.wbg.__wbg_viewport_e615e98f676f2d39=function(e,t,n,r,i){e.viewport(t,n,r,i)},e.wbg.__wbindgen_boolean_get=function(e){let t=e;return typeof t==`boolean`?t?1:0:2},e.wbg.__wbindgen_debug_string=function(e,t){let n=G(Q(t),I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),r=U;q().setInt32(e+4,r,!0),q().setInt32(e+0,n,!0)},e.wbg.__wbindgen_init_externref_table=function(){let e=I.__wbindgen_export_1,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},e.wbg.__wbindgen_number_get=function(e,t){let n=t,r=typeof n==`number`?n:void 0;q().setFloat64(e+8,B(r)?0:r,!0),q().setInt32(e+0,!B(r),!0)},e.wbg.__wbindgen_number_new=function(e){return e},e.wbg.__wbindgen_string_get=function(e,t){let n=t,r=typeof n==`string`?n:void 0;var i=B(r)?0:G(r,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),a=U;q().setInt32(e+4,a,!0),q().setInt32(e+0,i,!0)},e.wbg.__wbindgen_string_new=function(e,t){return Y(e,t)},e.wbg.__wbindgen_throw=function(e,t){throw Error(Y(e,t))},e}function Ne(e,t){return I=e.exports,Pe.__wbindgen_wasm_module=t,K=null,Z=null,X=null,L=null,I.__wbindgen_start(),I}async function Pe(e){if(I!==void 0)return I;if(e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0)throw Error(`WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().`);let t=Me();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await je(await e,t);return Ne(n,r)}const $=N(Pe,`https://cdn.jsdelivr.net/npm/${i}@${r}/dist/webgl/dotlottie-player.wasm`,`https://unpkg.com/${i}@${r}/dist/webgl/dotlottie-player.wasm`);var Fe=class extends be{constructor(e){super(e)}async _initWasm(){return $.load()}_createCore(){return new Ae}_onCoreCreated(){if(!this._canvas||!this._dotLottieCore)return;let t=this._canvas;if(e){let e=this._renderConfig.devicePixelRatio||A(),{width:n,height:r}=t.getBoundingClientRect();n!==0&&r!==0&&(t.width=Math.round(n*e),t.height=Math.round(r*e))}let n=t.getContext(`webgl2`);if(!n)throw Error(`Failed to get WebGL2 context. Ensure the browser supports WebGL2.`);this._dotLottieCore.set_webgl_context(n)}_draw(){}_setupRendererOnCanvas(){if(this._context=null,!this._canvas||!this._dotLottieCore)return;let t=this._canvas;if(e){let e=this._renderConfig.devicePixelRatio||A(),{width:n,height:r}=t.getBoundingClientRect();n!==0&&r!==0&&(t.width=Math.round(n*e),t.height=Math.round(r*e))}let n=t.getContext(`webgl2`);n&&this._dotLottieCore.set_webgl_context(n)}static setWasmUrl(e){$.setWasmUrl(e)}};export{Fe as DotLottie};
|
|
5
|
+
Received: ${typeof t}`);return}i?(this._renderConfig.quality!==void 0&&this._dotLottieCore.set_quality(this._renderConfig.quality),e&&this.resize(),this._drainPlayerEvents(),this._marker&&this._dotLottieCore.set_marker(this._marker),setTimeout(()=>{this._eventManager.dispatch({type:`frame`,currentFrame:this.currentFrame})},0),this._dotLottieCore.render(),this._drainPlayerEvents(),this._draw(),this._stateMachineId?this.stateMachineLoad(this._stateMachineId)&&this.stateMachineStart()&&this._startAnimationLoop():this._dotLottieCore.is_playing()&&this._startAnimationLoop(),e&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.freezeOnOffscreen&&(D.observe(this._canvas,this),j(this._canvas)||this.freeze()),this._renderConfig.autoResize&&O.observe(this._canvas,this))):this._drainPlayerEvents()}_loadFromSrc(e){this._fetchData(e).then(e=>this._loadFromData(e)).catch(t=>this._dispatchError(`Failed to load animation data from URL: ${e}. ${t}`))}get buffer(){return this._dotLottieCore?this._dotLottieCore.get_pixel_buffer():null}get activeAnimationId(){return this._dotLottieCore?.animation_id()??void 0}get activeThemeId(){return this._dotLottieCore?.theme_id()??void 0}get layout(){if(this._dotLottieCore)return{align:[this._dotLottieCore.layout_align_x(),this._dotLottieCore.layout_align_y()],fit:ye(this._dotLottieCore.layout_fit())}}get marker(){return this._dotLottieCore?.current_marker()??``}get manifest(){try{let e=this._dotLottieCore?.manifest_string();if(this._dotLottieCore===null||!e)return null;let t=JSON.parse(e);return Object.keys(t).length===0?null:t}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){if(!(!this._dotLottieCore||!this._dotLottieCore.has_segment()))return[this._dotLottieCore.segment_start(),this._dotLottieCore.segment_end()]}get loop(){return this._dotLottieCore?.loop_animation()??!1}get mode(){return this._dotLottieCore?ve(this._dotLottieCore.mode()):`forward`}get isFrozen(){return this._isFrozen}get isStateMachineRunning(){return this._isStateMachineRunning}get backgroundColor(){return this._backgroundColor??``}get autoplay(){return this._dotLottieCore?.autoplay()??!1}get useFrameInterpolation(){return this._dotLottieCore?.use_frame_interpolation()??!1}get speed(){return this._dotLottieCore?.speed()??0}get isReady(){return this._dotLottieCore!==null}get isLoaded(){return this._dotLottieCore?.is_loaded()??!1}get isPlaying(){return this._dotLottieCore?.is_playing()??!1}get isPaused(){return this._dotLottieCore?.is_paused()??!1}get isStopped(){return this._dotLottieCore?.is_stopped()??!1}get currentFrame(){return this._dotLottieCore?Math.round(this._dotLottieCore.current_frame()*100)/100:0}get loopCount(){return this._dotLottieCore?.current_loop_count()??0}get totalFrames(){return this._dotLottieCore?.total_frames()??0}get duration(){return this._dotLottieCore?.duration()??0}get segmentDuration(){return this._dotLottieCore?.segment_duration()??0}get canvas(){return this._canvas}load(e){this._dotLottieCore!==null&&(this._stopAnimationLoop(),this._cleanupCanvas(),this._isFrozen=!1,this._dotLottieCore.set_autoplay(e.autoplay??!1),this._dotLottieCore.set_loop(e.loop??!1),this._dotLottieCore.set_loop_count(e.loopCount??0),this._dotLottieCore.set_mode(F(e.mode??`forward`)),this._dotLottieCore.set_speed(e.speed??1),this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation??!0),e.segment&&e.segment.length===2?this._dotLottieCore.set_segment(e.segment[0],e.segment[1]):this._dotLottieCore.clear_segment(),this._marker=e.marker??``,this._marker?this._dotLottieCore.set_marker(this._marker):this._dotLottieCore.clear_marker(),this._dotLottieCore.set_layout(e.layout?.fit??`contain`,e.layout?.align?.[0]??.5,e.layout?.align?.[1]??.5),e.data?this._canvas?this._loadFromData(e.data):this._pendingLoad={data:e.data}:e.src&&(this._canvas?this._loadFromSrc(e.src):this._pendingLoad={src:e.src}),this.setBackgroundColor(e.backgroundColor??``))}_draw(){if(!(this._dotLottieCore===null||this._canvas===null)&&(!this._context&&`getContext`in this._canvas&&typeof this._canvas.getContext==`function`&&(typeof HTMLCanvasElement<`u`&&this._canvas instanceof HTMLCanvasElement||typeof OffscreenCanvas<`u`&&this._canvas instanceof OffscreenCanvas)&&(this._context=this._canvas.getContext(`2d`)),this._context)){let e=this._dotLottieCore.get_pixel_buffer(),t=this._canvas.width*this._canvas.height*4;if(e.byteLength!==t){this._lastExpectedBufferSize===t?this._bufferMismatchCount+=1:(this._bufferMismatchCount=1,this._lastExpectedBufferSize=t),this._bufferMismatchCount===10&&console.warn(`[dotlottie-web] Persistent buffer size mismatch detected. Expected ${t} bytes for canvas ${this._canvas.width}x${this._canvas.height}, but got ${e.byteLength} bytes. This may indicate a WASM memory allocation issue or invalid canvas dimensions.`);return}this._bufferMismatchCount=0,this._lastExpectedBufferSize=t;let n=null,r=new Uint8ClampedArray(e.buffer,e.byteOffset,e.byteLength);typeof ImageData>`u`?(n=this._context.createImageData(this._canvas.width,this._canvas.height),n.data.set(r)):n=new ImageData(r,this._canvas.width,this._canvas.height),this._context.putImageData(n,0,0)}}_cleanupCanvas(){this._canvas&&e&&this._canvas instanceof HTMLCanvasElement&&(D.unobserve(this._canvas),O.unobserve(this._canvas),this._cleanupStateMachineListeners())}_initializeCanvas(){this._setupRendererOnCanvas(),this._canvas&&e&&this._canvas instanceof HTMLCanvasElement&&this.isLoaded&&(this._renderConfig.freezeOnOffscreen&&(D.observe(this._canvas,this),j(this._canvas)||this.freeze()),this._renderConfig.autoResize&&O.observe(this._canvas,this),this._isStateMachineRunning&&this._setupStateMachineListeners()),this._canvas&&this._dotLottieCore&&this.isLoaded&&this._dotLottieCore.resize(this._canvas.width,this._canvas.height)&&(this._dotLottieCore.render(),this._draw())}_setupRendererOnCanvas(){this._context=null}_stopAnimationLoop(){this._animationFrameId!==null&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null)}_startAnimationLoop(){this._animationFrameId===null&&this._dotLottieCore&&!this._isFrozen&&(this._dotLottieCore.is_playing()||this._isStateMachineRunning)&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._animationLoop.bind(this)))}_animationLoop(){if(this._dotLottieCore===null){this._stopAnimationLoop();return}if(!this._dotLottieCore.is_playing()&&!this._isStateMachineRunning){this._stopAnimationLoop();return}try{let e=this._isStateMachineRunning?this._dotLottieCore.sm_tick():this._dotLottieCore.tick();this._isStateMachineRunning?this._drainSmEvents():this._drainPlayerEvents(),e&&this._draw(),this._animationFrameId=this._frameManager.requestAnimationFrame(this._animationLoop.bind(this))}catch(e){console.error(`Error in animation frame:`,e),this._eventManager.dispatch({type:`renderError`,error:e}),e instanceof WebAssembly.RuntimeError&&this.destroy()}}play(){if(this._dotLottieCore===null||!this.isLoaded)return;this._stopAnimationLoop();let t=this._dotLottieCore.play();this._drainPlayerEvents(),(t||this._dotLottieCore.is_playing())&&(this._isFrozen=!1,this._startAnimationLoop()),this._canvas&&e&&this._canvas instanceof HTMLCanvasElement&&this._renderConfig.freezeOnOffscreen&&!j(this._canvas)&&this.freeze()}pause(){this._dotLottieCore!==null&&(this._dotLottieCore.pause(),this._drainPlayerEvents(),this._stopAnimationLoop())}stop(){if(this._dotLottieCore===null)return;let e=this._dotLottieCore.stop();this._drainPlayerEvents(),this._stopAnimationLoop(),e&&(this._eventManager.dispatch({type:`frame`,currentFrame:this.currentFrame}),this._dotLottieCore.render(),this._draw())}setFrame(e){if(this._dotLottieCore!==null&&this._dotLottieCore.seek(e)){let e=this._dotLottieCore.render();this._drainPlayerEvents(),e&&this._draw()}}setSpeed(e){this._dotLottieCore!==null&&this._dotLottieCore.set_speed(e)}setBackgroundColor(t){this._dotLottieCore!==null&&(e&&this._canvas instanceof HTMLCanvasElement?this._canvas.style.backgroundColor=t:this._dotLottieCore.set_background_color(me(t)),this._backgroundColor=t)}setLoop(e){this._dotLottieCore!==null&&this._dotLottieCore.set_loop(e)}setLoopCount(e){this._dotLottieCore!==null&&this._dotLottieCore.set_loop_count(e)}setUseFrameInterpolation(e){this._dotLottieCore!==null&&this._dotLottieCore.set_use_frame_interpolation(e)}addEventListener(e,t){this._eventManager.addEventListener(e,t)}removeEventListener(e,t){this._eventManager.removeEventListener(e,t)}destroy(){this._stopAnimationLoop(),this._isStateMachineRunning=!1,this._cleanupCanvas(),this._dotLottieCore?.free(),this._dotLottieCore=null,this._context=null,this._eventManager.dispatch({type:`destroy`}),this._eventManager.removeAllEventListeners(),this._cleanupStateMachineListeners()}freeze(){this._animationFrameId!==null&&(this._stopAnimationLoop(),this._isFrozen=!0,this._eventManager.dispatch({type:`freeze`}))}unfreeze(){this._animationFrameId===null&&(this._isFrozen=!1,this._eventManager.dispatch({type:`unfreeze`}),this._startAnimationLoop())}resize(){if(!(!this._dotLottieCore||!this.isLoaded||!this._canvas)){if(e&&this._canvas instanceof HTMLCanvasElement){let e=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:t,width:n}=this._canvas.getBoundingClientRect();t!==0&&n!==0&&(this._canvas.width=n*e,this._canvas.height=t*e)}this._dotLottieCore.resize(this._canvas.width,this._canvas.height)&&(this._dotLottieCore.render(),this._draw())}}setCanvas(e){if(!(!e||this._canvas===e)&&(this._canvas&&this._cleanupCanvas(),this._canvas=e,this._initializeCanvas(),this._pendingLoad)){let e=this._pendingLoad;this._pendingLoad=null,e.data?this._loadFromData(e.data):e.src&&this._loadFromSrc(e.src)}}setTransform(e){if(!this._dotLottieCore)return!1;let t=this._dotLottieCore.set_transform(new Float32Array(e));return t&&this._dotLottieCore.render()&&this._draw(),t}getTransform(){if(!this._dotLottieCore)return;let e=this._dotLottieCore.get_transform();return Array.from(e)}setSegment(e,t){this._dotLottieCore!==null&&this._dotLottieCore.set_segment(e,t)}setMode(e){this._dotLottieCore!==null&&this._dotLottieCore.set_mode(F(e))}setRenderConfig(t){let{devicePixelRatio:n,freezeOnOffscreen:r,quality:i,...a}=t;this._renderConfig={...this._renderConfig,...a,devicePixelRatio:n||A(),freezeOnOffscreen:r??!0,...i!==void 0&&{quality:i}},i!==void 0&&this._dotLottieCore&&this._dotLottieCore.set_quality(i),e&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.autoResize?O.observe(this._canvas,this):O.unobserve(this._canvas),this._renderConfig.freezeOnOffscreen?(D.observe(this._canvas,this),j(this._canvas)||this.freeze()):(D.unobserve(this._canvas),this._isFrozen&&this.unfreeze()))}loadAnimation(e){this._dotLottieCore===null||this._dotLottieCore.animation_id()===e||!this._canvas||(this._dotLottieCore.load_animation_from_id(e,this._canvas.width,this._canvas.height)?(this._renderConfig.quality!==void 0&&this._dotLottieCore.set_quality(this._renderConfig.quality),this.resize(),this._drainPlayerEvents(),this._dotLottieCore.render(),this._draw()):this._dispatchError(`Failed to load animation with id: ${e}`))}setMarker(e){this._dotLottieCore!==null&&(this._marker=e,this._dotLottieCore.set_marker(e))}markers(){let e=this._dotLottieCore?.markers();return e&&Array.isArray(e)?e:[]}setTheme(e){if(this._dotLottieCore===null)return!1;let t=this._dotLottieCore.set_theme(e);return t&&(this._dotLottieCore.render(),this._draw()),t}resetTheme(){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.reset_theme();return e&&(this._dotLottieCore.render(),this._draw()),e}setThemeData(e){if(this._dotLottieCore===null)return!1;let t=typeof e==`string`?e:JSON.stringify(e),n=this._dotLottieCore.set_theme_data(t);return n&&(this._dotLottieCore.render(),this._draw()),n}setSlots(e){this._dotLottieCore!==null&&this._dotLottieCore.set_slots_str(JSON.stringify(e))&&(this._dotLottieCore.render(),this._draw())}_isKeyframeArray(e){return Array.isArray(e)&&e.length>0&&typeof e[0]==`object`&&e[0]!==null&&`t`in e[0]&&`s`in e[0]}getSlotIds(){if(!this._dotLottieCore)return[];let e=this._dotLottieCore.get_slot_ids();return Array.isArray(e)?e:[]}getSlotType(e){if(!this._dotLottieCore)return;let t=this._dotLottieCore.get_slot_type(e);if(t)return t}getSlot(e){if(!this._dotLottieCore)return;let t=this._dotLottieCore.get_slot_str(e);if(t)try{return JSON.parse(t)}catch{return}}getSlots(){if(!this._dotLottieCore)return{};try{return JSON.parse(this._dotLottieCore.get_slots_str())}catch{return{}}}setColorSlot(e,t){if(this._dotLottieCore===null)return!1;let n=this._isKeyframeArray(t),r=JSON.stringify({a:n?1:0,k:t}),i=this._dotLottieCore.set_slot_str(e,r);return this._dotLottieCore.render(),this._draw(),i}setScalarSlot(e,t){if(this._dotLottieCore===null)return!1;let n=typeof t!=`number`,r=JSON.stringify({a:n?1:0,k:t}),i=this._dotLottieCore.set_slot_str(e,r);return this._dotLottieCore.render(),this._draw(),i}setVectorSlot(e,t){if(this._dotLottieCore===null)return!1;let n=this._isKeyframeArray(t),r=JSON.stringify({a:n?1:0,k:t}),i=this._dotLottieCore.set_slot_str(e,r);return this._dotLottieCore.render(),this._draw(),i}setGradientSlot(e,t,n){if(this._dotLottieCore===null)return!1;let r=this._isKeyframeArray(t),i=JSON.stringify({k:{a:r?1:0,k:t},p:n}),a=this._dotLottieCore.set_slot_str(e,i);return this._dotLottieCore.render(),this._draw(),a}setTextSlot(e,t){if(this._dotLottieCore===null)return!1;let n=this._dotLottieCore.get_slot_str(e),r=t;if(n){let e=JSON.parse(n);if(e&&`k`in e&&Array.isArray(e.k)){let n=e.k[0];`s`in n&&typeof n.s==`object`&&(r={...n.s,...t})}}let i=JSON.stringify({a:0,k:[{t:0,s:r}]}),a=this._dotLottieCore.set_slot_str(e,i);return this._dotLottieCore.render(),this._draw(),a}resetSlot(e){if(this._dotLottieCore===null)return!1;let t=this._dotLottieCore.reset_slot(e);return this._dotLottieCore.render(),this._draw(),t}clearSlot(e){if(this._dotLottieCore===null)return!1;let t=this._dotLottieCore.clear_slot(e);return this._dotLottieCore.render(),this._draw(),t}resetSlots(){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.reset_slots();return this._dotLottieCore.render(),this._draw(),e}clearSlots(){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.clear_slots();return this._dotLottieCore.render(),this._draw(),e}setLayout(e){this._dotLottieCore!==null&&this._dotLottieCore.set_layout(e.fit??`contain`,e.align?.[0]??.5,e.align?.[1]??.5)}setViewport(e,t,n,r){return this._dotLottieCore===null?!1:this._dotLottieCore.set_viewport(e,t,n,r)}static setWasmUrl(e){P.setWasmUrl(e)}static async registerFont(e,t){try{await P.load();let n;if(typeof t==`string`){let e=await fetch(t);if(!e.ok)return console.error(`Failed to fetch font from URL: ${t}. Status: ${e.status}`),!1;n=new Uint8Array(await e.arrayBuffer())}else n=t instanceof Uint8Array?t:new Uint8Array(t);let r=se(e,n);return r||console.error(`Failed to register font "${e}". Font data may be invalid.`),r}catch(t){return console.error(`Error registering font "${e}":`,t),!1}}tween(e,t){return this._dotLottieCore?this._dotLottieCore.tween_with_easing(e,t,0,0,1,1):!1}tweenToMarker(e,t){return this._dotLottieCore?this._dotLottieCore.tween_to_marker(e,t):!1}animationSize(){let e=this._dotLottieCore?.animation_size();return{width:e?.[0]??0,height:e?.[1]??0}}getLayerBoundingBox(e){let t=this._dotLottieCore?.get_layer_bounds(e);if(t&&t.length===8)return Array.from(t)}static transformThemeToLottieSlots(e,t){return``}stateMachineLoad(e){return this._dotLottieCore?this._dotLottieCore.state_machine_load_from_id(e):!1}stateMachineLoadData(e){return this._dotLottieCore?this._dotLottieCore.state_machine_load(e):!1}stateMachineSetConfig(e){this._stateMachineConfig=e}stateMachineStart(){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.sm_start(this._stateMachineConfig?.openUrlPolicy?.requireUserInteraction??!0,this._stateMachineConfig?.openUrlPolicy?.whitelist??[]);return this._drainSmEvents(),e&&(this._isStateMachineRunning=!0,this._setupStateMachineListeners(),this._startAnimationLoop()),e}stateMachineStop(){if(!this._dotLottieCore)return!1;let e=this._dotLottieCore.sm_stop();return this._drainSmEvents(),e&&(this._isStateMachineRunning=!1,this._cleanupStateMachineListeners(),this._dotLottieCore.is_playing()||this._stopAnimationLoop()),e}stateMachineGetStatus(){return this._dotLottieCore?.sm_status()??``}stateMachineGetCurrentState(){return this._dotLottieCore?.sm_current_state()??``}stateMachineGetActiveId(){return this._dotLottieCore?.state_machine_id()??``}stateMachineOverrideState(e,t=!1){return this._dotLottieCore?.sm_override_current_state(e,t)??!1}stateMachineGet(e){return this._dotLottieCore?.get_state_machine(e)??``}stateMachineGetListeners(){if(!this._dotLottieCore)return[];let e=this._dotLottieCore.sm_framework_setup();return Array.isArray(e)?e:[]}stateMachineSetBooleanInput(e,t){return this._dotLottieCore?.sm_set_boolean_input(e,t)??!1}stateMachineSetNumericInput(e,t){return this._dotLottieCore?.sm_set_numeric_input(e,t)??!1}stateMachineSetStringInput(e,t){return this._dotLottieCore?.sm_set_string_input(e,t)??!1}stateMachineGetBooleanInput(e){return this._dotLottieCore?.sm_get_boolean_input(e)??void 0}stateMachineGetNumericInput(e){return this._dotLottieCore?.sm_get_numeric_input(e)??void 0}stateMachineGetStringInput(e){return this._dotLottieCore?.sm_get_string_input(e)??void 0}stateMachineGetInputs(){if(!this._dotLottieCore)return[];let e=this._dotLottieCore.sm_get_inputs();return Array.isArray(e)?e:[]}stateMachineFireEvent(e){this._dotLottieCore?.sm_fire(e)}stateMachinePostClickEvent(e,t){this._dotLottieCore?.sm_post_click(e,t)}stateMachinePostPointerUpEvent(e,t){this._dotLottieCore?.sm_post_pointer_up(e,t)}stateMachinePostPointerDownEvent(e,t){this._dotLottieCore?.sm_post_pointer_down(e,t)}stateMachinePostPointerMoveEvent(e,t){this._dotLottieCore?.sm_post_pointer_move(e,t)}stateMachinePostPointerEnterEvent(e,t){this._dotLottieCore?.sm_post_pointer_enter(e,t)}stateMachinePostPointerExitEvent(e,t){this._dotLottieCore?.sm_post_pointer_exit(e,t)}_onClick(e){let t=M(e);t&&this.stateMachinePostClickEvent(t.x,t.y)}_onPointerUp(e){let t=M(e);t&&this.stateMachinePostPointerUpEvent(t.x,t.y)}_onPointerDown(e){let t=M(e);t&&this.stateMachinePostPointerDownEvent(t.x,t.y)}_onPointerMove(e){let t=M(e);t&&this.stateMachinePostPointerMoveEvent(t.x,t.y)}_onPointerEnter(e){let t=M(e);t&&this.stateMachinePostPointerEnterEvent(t.x,t.y)}_onPointerLeave(e){let t=M(e);t&&this.stateMachinePostPointerExitEvent(t.x,t.y)}_setupStateMachineListeners(){if(e&&this._canvas instanceof HTMLCanvasElement&&this._dotLottieCore!==null&&this.isLoaded){let e=this.stateMachineGetListeners();this._cleanupStateMachineListeners(),e.includes(`Click`)&&(this._boundOnClick=this._onClick.bind(this),this._canvas.addEventListener(`click`,this._boundOnClick)),e.includes(`PointerUp`)&&(this._boundOnPointerUp=this._onPointerUp.bind(this),this._canvas.addEventListener(`pointerup`,this._boundOnPointerUp)),e.includes(`PointerDown`)&&(this._boundOnPointerDown=this._onPointerDown.bind(this),this._canvas.addEventListener(`pointerdown`,this._boundOnPointerDown)),e.includes(`PointerMove`)&&(this._boundOnPointerMove=this._onPointerMove.bind(this),this._canvas.addEventListener(`pointermove`,this._boundOnPointerMove)),e.includes(`PointerEnter`)&&(this._boundOnPointerEnter=this._onPointerEnter.bind(this),this._canvas.addEventListener(`pointerenter`,this._boundOnPointerEnter)),e.includes(`PointerExit`)&&(this._boundOnPointerLeave=this._onPointerLeave.bind(this),this._canvas.addEventListener(`pointerleave`,this._boundOnPointerLeave))}}_cleanupStateMachineListeners(){e&&this._canvas instanceof HTMLCanvasElement&&(this._boundOnClick&&(this._canvas.removeEventListener(`click`,this._boundOnClick),this._boundOnClick=null),this._boundOnPointerUp&&(this._canvas.removeEventListener(`pointerup`,this._boundOnPointerUp),this._boundOnPointerUp=null),this._boundOnPointerDown&&(this._canvas.removeEventListener(`pointerdown`,this._boundOnPointerDown),this._boundOnPointerDown=null),this._boundOnPointerMove&&(this._canvas.removeEventListener(`pointermove`,this._boundOnPointerMove),this._boundOnPointerMove=null),this._boundOnPointerEnter&&(this._canvas.removeEventListener(`pointerenter`,this._boundOnPointerEnter),this._boundOnPointerEnter=null),this._boundOnPointerLeave&&(this._canvas.removeEventListener(`pointerleave`,this._boundOnPointerLeave),this._boundOnPointerLeave=null))}};let I,L=null;function R(){return(L===null||L.byteLength===0)&&(L=new Uint8Array(I.memory.buffer)),L}function z(e,t){return e>>>=0,R().subarray(e/1,e/1+t)}function B(e){return e==null}function V(e){let t=I.__externref_table_alloc_command_export();return I.__wbindgen_export_1.set(t,e),t}const H=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&H.decode();function U(e,t){return e>>>=0,H.decode(R().subarray(e,e+t))}function W(e,t){try{return e.apply(this,t)}catch(e){let t=V(e);I.__wbindgen_exn_store_command_export(t)}}let G=0;const K=typeof TextEncoder<`u`?new TextEncoder(`utf-8`):{encode:()=>{throw Error(`TextEncoder not available`)}},xe=typeof K.encodeInto==`function`?function(e,t){return K.encodeInto(e,t)}:function(e,t){let n=K.encode(e);return t.set(n),{read:e.length,written:n.length}};function q(e,t,n){if(n===void 0){let n=K.encode(e),r=t(n.length,1)>>>0;return R().subarray(r,r+n.length).set(n),G=n.length,r}let r=e.length,i=t(r,1)>>>0,a=R(),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=R().subarray(i+o,i+r),a=xe(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return G=o,i}let J=null;function Y(){return(J===null||J.buffer.detached===!0||J.buffer.detached===void 0&&J.buffer!==I.memory.buffer)&&(J=new DataView(I.memory.buffer)),J}let X=null;function Se(){return(X===null||X.byteLength===0)&&(X=new Int32Array(I.memory.buffer)),X}function Ce(e,t){return e>>>=0,Se().subarray(e/4,e/4+t)}let Z=null;function we(){return(Z===null||Z.byteLength===0)&&(Z=new Float32Array(I.memory.buffer)),Z}function Te(e,t){return e>>>=0,we().subarray(e/4,e/4+t)}function Q(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+=Q(e[0]));for(let r=1;r<t;r++)n+=`, `+Q(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 Ee(e,t){let n=t(e.length*4,4)>>>0;return we().set(e,n/4),G=e.length,n}function De(e,t){let n=t(e.length*1,1)>>>0;return R().set(e,n/1),G=e.length,n}function Oe(e,t){let n=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let r=V(e[t]);Y().setUint32(n+4*t,r,!0)}return G=e.length,n}Object.freeze({Forward:0,0:`Forward`,Reverse:1,1:`Reverse`,Bounce:2,2:`Bounce`,ReverseBounce:3,3:`ReverseBounce`});const ke=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>I.__wbg_dotlottieplayerwasm_free(e>>>0,1));var Ae=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ke.unregister(this),e}free(){let e=this.__destroy_into_raw();I.__wbg_dotlottieplayerwasm_free(e,0)}clear_slot(e){let t=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=G;return I.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,t,n)!==0}is_playing(){return I.dotlottieplayerwasm_is_playing(this.__wbg_ptr)!==0}is_stopped(){return I.dotlottieplayerwasm_is_stopped(this.__wbg_ptr)!==0}layout_fit(){let e,t;try{let n=I.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return e=n[0],t=n[1],U(n[0],n[1])}finally{I.__wbindgen_free_command_export(e,t,1)}}loop_count(){return I.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}poll_event(){return I.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}reset_slot(e){let t=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=G;return I.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,t,n)!==0}set_layout(e,t,n){let r=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),i=G;return I.dotlottieplayerwasm_set_layout(this.__wbg_ptr,r,i,t,n)!==0}set_marker(e){let t=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=G;I.dotlottieplayerwasm_set_marker(this.__wbg_ptr,t,n)}tween_stop(){return I.dotlottieplayerwasm_tween_stop(this.__wbg_ptr)!==0}clear_slots(){return I.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)!==0}has_segment(){return I.dotlottieplayerwasm_has_segment(this.__wbg_ptr)!==0}is_complete(){return I.dotlottieplayerwasm_is_complete(this.__wbg_ptr)!==0}is_tweening(){return I.dotlottieplayerwasm_is_tweening(this.__wbg_ptr)!==0}reset_slots(){return I.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)!==0}reset_theme(){return I.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)!==0}segment_end(){return I.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_quality(e){return I.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)!==0}set_segment(e,t){return I.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,t)!==0}static unload_font(e){let t=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=G;return I.dotlottieplayerwasm_unload_font(t,n)!==0}animation_id(){let e=I.dotlottieplayerwasm_animation_id(this.__wbg_ptr),t;return e[0]!==0&&(t=U(e[0],e[1]).slice(),I.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}clear_marker(){I.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}emit_on_loop(){I.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}get_slot_ids(){return I.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_str(e){let t=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=G,r=I.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=U(r[0],r[1]).slice(),I.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}marker_names(){return I.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}set_autoplay(e){I.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}set_slot_str(e,t){let n=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),r=G,i=q(t,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),a=G;return I.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,n,r,i,a)!==0}set_viewport(e,t,n,r){return I.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,t,n,r)!==0}total_frames(){return I.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}tween_update(e){return I.dotlottieplayerwasm_tween_update(this.__wbg_ptr,B(e)?4294967297:Math.fround(e))!==0}clear_segment(){return I.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)!==0}current_frame(){return I.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}get_slot_type(e){let t=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=G,r=I.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=U(r[0],r[1]).slice(),I.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}get_slots_str(){let e,t;try{let n=I.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return e=n[0],t=n[1],U(n[0],n[1])}finally{I.__wbindgen_free_command_export(e,t,1)}}get_transform(){return I.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}request_frame(){return I.dotlottieplayerwasm_request_frame(this.__wbg_ptr)}segment_start(){return I.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}set_slots_str(e){let t=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=G;return I.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,t,n)!==0}set_text_slot(e,t){let n=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),r=G,i=q(t,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),a=G;return I.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,n,r,i,a)!==0}set_transform(e){let t=Ee(e,I.__wbindgen_malloc_command_export),n=G;return I.dotlottieplayerwasm_set_transform(this.__wbg_ptr,t,n)!==0}sm_get_inputs(){return I.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_poll_event(){return I.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_post_click(e,t){I.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,t)}animation_size(){return I.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}current_marker(){let e=I.dotlottieplayerwasm_current_marker(this.__wbg_ptr),t;return e[0]!==0&&(t=U(e[0],e[1]).slice(),I.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}layout_align_x(){return I.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return I.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}load_animation(e,t,n){let r=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),i=G;return I.dotlottieplayerwasm_load_animation(this.__wbg_ptr,r,i,t,n)!==0}loop_animation(){return I.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)!==0}set_color_slot(e,t,n,r){let i=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),a=G;return I.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,i,a,t,n,r)!==0}set_loop_count(e){I.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}set_theme_data(e){let t=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=G;return I.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,t,n)!==0}sm_reset_input(e){let t=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=G;I.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,t,n)}manifest_string(){let e,t;try{let n=I.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return e=n[0],t=n[1],U(n[0],n[1])}finally{I.__wbindgen_free_command_export(e,t,1)}}set_scalar_slot(e,t){let n=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),r=G;return I.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,n,r,t)!==0}set_vector_slot(e,t,n){let r=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),i=G;return I.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,r,i,t,n)!==0}tween_to_marker(e,t){let n=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),r=G;return I.dotlottieplayerwasm_tween_to_marker(this.__wbg_ptr,n,r,B(t)?4294967297:Math.fround(t))!==0}background_color(){return I.dotlottieplayerwasm_background_color(this.__wbg_ptr)>>>0}get_layer_bounds(e){let t=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=G;return I.dotlottieplayerwasm_get_layer_bounds(this.__wbg_ptr,t,n)}segment_duration(){return I.dotlottieplayerwasm_segment_duration(this.__wbg_ptr)}sm_current_state(){let e,t;try{let n=I.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return e=n[0],t=n[1],U(n[0],n[1])}finally{I.__wbindgen_free_command_export(e,t,1)}}state_machine_id(){let e=I.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr),t;return e[0]!==0&&(t=U(e[0],e[1]).slice(),I.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}get_state_machine(e){let t=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=G,r=I.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=U(r[0],r[1]).slice(),I.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}set_position_slot(e,t,n){let r=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),i=G;return I.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,r,i,t,n)!==0}set_webgl_context(e){I.dotlottieplayerwasm_set_webgl_context(this.__wbg_ptr,e)}tween_with_easing(e,t,n,r,i,a){return I.dotlottieplayerwasm_tween_with_easing(this.__wbg_ptr,e,B(t)?4294967297:Math.fround(t),n,r,i,a)!==0}current_loop_count(){return I.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}sm_framework_setup(){return I.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_post_pointer_up(e,t){I.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,t)}state_machine_load(e){let t=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=G;return I.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,t,n)!==0}load_dotlottie_data(e,t,n){let r=De(e,I.__wbindgen_malloc_command_export),i=G;return I.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,r,i,t,n)!==0}sm_get_string_input(e){let t=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=G,r=I.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=U(r[0],r[1]).slice(),I.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}sm_set_string_input(e,t){let n=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),r=G,i=q(t,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),a=G;return I.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,n,r,i,a)!==0}set_background_color(e){return I.dotlottieplayerwasm_set_background_color(this.__wbg_ptr,e)!==0}sm_get_boolean_input(e){let t=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=G,r=I.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,t,n);return r===16777215?void 0:r!==0}sm_get_numeric_input(e){let t=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=G,r=I.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,t,n);return r===4294967297?void 0:r}sm_post_pointer_down(e,t){I.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,t)}sm_post_pointer_exit(e,t){I.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,t)}sm_post_pointer_move(e,t){I.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,t)}sm_set_boolean_input(e,t){let n=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),r=G;return I.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,n,r,t)!==0}sm_set_numeric_input(e,t){let n=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),r=G;return I.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,n,r,t)!==0}state_machine_unload(){I.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_post_pointer_enter(e,t){I.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,t)}clear_background_color(){return I.dotlottieplayerwasm_clear_background_color(this.__wbg_ptr)!==0}load_animation_from_id(e,t,n){let r=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),i=G;return I.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,r,i,t,n)!==0}sm_poll_internal_event(){return I.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}use_frame_interpolation(){return I.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)!==0}reset_current_loop_count(){I.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}sm_override_current_state(e,t){let n=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),r=G;return I.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,n,r,t)!==0}state_machine_load_from_id(e){let t=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=G;return I.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,t,n)!==0}set_use_frame_interpolation(e){I.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}constructor(){return this.__wbg_ptr=I.dotlottieplayerwasm_new()>>>0,ke.register(this,this.__wbg_ptr,this),this}mode(){return I.dotlottieplayerwasm_mode(this.__wbg_ptr)}play(){return I.dotlottieplayerwasm_play(this.__wbg_ptr)!==0}seek(e){return I.dotlottieplayerwasm_seek(this.__wbg_ptr,e)!==0}stop(){return I.dotlottieplayerwasm_stop(this.__wbg_ptr)!==0}tick(){return I.dotlottieplayerwasm_tick(this.__wbg_ptr)!==0}clear(){I.dotlottieplayerwasm_clear(this.__wbg_ptr)}pause(){return I.dotlottieplayerwasm_pause(this.__wbg_ptr)!==0}speed(){return I.dotlottieplayerwasm_speed(this.__wbg_ptr)}tween(e,t){return I.dotlottieplayerwasm_tween(this.__wbg_ptr,e,B(t)?4294967297:Math.fround(t))!==0}width(){return I.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return I.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}render(){return I.dotlottieplayerwasm_render(this.__wbg_ptr)!==0}resize(e,t){return I.dotlottieplayerwasm_resize(this.__wbg_ptr,e,t)!==0}markers(){return I.dotlottieplayerwasm_markers(this.__wbg_ptr)}sm_fire(e){let t=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=G;return I.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,t,n)!==0}sm_stop(){return I.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)!==0}sm_tick(){return I.dotlottieplayerwasm_sm_tick(this.__wbg_ptr)!==0}autoplay(){return I.dotlottieplayerwasm_autoplay(this.__wbg_ptr)!==0}duration(){return I.dotlottieplayerwasm_duration(this.__wbg_ptr)}set_loop(e){I.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}set_mode(e){I.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}sm_start(e,t){let n=Oe(t,I.__wbindgen_malloc_command_export),r=G;return I.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,n,r)!==0}theme_id(){let e=I.dotlottieplayerwasm_theme_id(this.__wbg_ptr),t;return e[0]!==0&&(t=U(e[0],e[1]).slice(),I.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}intersect(e,t,n){let r=q(n,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),i=G;return I.dotlottieplayerwasm_intersect(this.__wbg_ptr,e,t,r,i)!==0}is_loaded(){return I.dotlottieplayerwasm_is_loaded(this.__wbg_ptr)!==0}is_paused(){return I.dotlottieplayerwasm_is_paused(this.__wbg_ptr)!==0}load_font(e,t){let n=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),r=G,i=De(t,I.__wbindgen_malloc_command_export),a=G;return I.dotlottieplayerwasm_load_font(this.__wbg_ptr,n,r,i,a)!==0}set_frame(e){return I.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)!==0}set_speed(e){I.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}set_theme(e){let t=q(e,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),n=G;return I.dotlottieplayerwasm_set_theme(this.__wbg_ptr,t,n)!==0}sm_status(){let e,t;try{let n=I.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return e=n[0],t=n[1],U(n[0],n[1])}finally{I.__wbindgen_free_command_export(e,t,1)}}};async function je(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.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",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function Me(){let e={};return e.wbg={},e.wbg.__wbg_activeTexture_460f2e367e813fb0=function(e,t){e.activeTexture(t>>>0)},e.wbg.__wbg_attachShader_3d4eb6af9e3e7bd1=function(e,t,n){e.attachShader(t,n)},e.wbg.__wbg_bindBufferRange_454f90f2b1781982=function(e,t,n,r,i,a){e.bindBufferRange(t>>>0,n>>>0,r,i,a)},e.wbg.__wbg_bindBuffer_309c9a6c21826cf5=function(e,t,n){e.bindBuffer(t>>>0,n)},e.wbg.__wbg_bindFramebuffer_e48e83c0f973944d=function(e,t,n){e.bindFramebuffer(t>>>0,n)},e.wbg.__wbg_bindRenderbuffer_55e205fecfddbb8c=function(e,t,n){e.bindRenderbuffer(t>>>0,n)},e.wbg.__wbg_bindTexture_a6e795697f49ebd1=function(e,t,n){e.bindTexture(t>>>0,n)},e.wbg.__wbg_bindVertexArray_6b4b88581064b71f=function(e,t){e.bindVertexArray(t)},e.wbg.__wbg_blendEquation_c23d111ad6d268ff=function(e,t){e.blendEquation(t>>>0)},e.wbg.__wbg_blendFunc_c3b74be5a39c665f=function(e,t,n){e.blendFunc(t>>>0,n>>>0)},e.wbg.__wbg_blitFramebuffer_7303bdff77cfe967=function(e,t,n,r,i,a,o,s,c,l,u){e.blitFramebuffer(t,n,r,i,a,o,s,c,l>>>0,u>>>0)},e.wbg.__wbg_bufferData_463178757784fcac=function(e,t,n,r){e.bufferData(t>>>0,n,r>>>0)},e.wbg.__wbg_bufferData_c97b729d560cf60d=function(e,t,n,r,i){e.bufferData(t>>>0,z(n,r),i>>>0)},e.wbg.__wbg_clearColor_d39507085c98a678=function(e,t,n,r,i){e.clearColor(t,n,r,i)},e.wbg.__wbg_clearDepth_670d19914a501259=function(e,t){e.clearDepth(t)},e.wbg.__wbg_clearStencil_4323424f1acca0df=function(e,t){e.clearStencil(t)},e.wbg.__wbg_clear_62b9037b892f6988=function(e,t){e.clear(t>>>0)},e.wbg.__wbg_colorMask_5e7c60b9c7a57a2e=function(e,t,n,r,i){e.colorMask(t!==0,n!==0,r!==0,i!==0)},e.wbg.__wbg_compileShader_0ad770bbdbb9de21=function(e,t){e.compileShader(t)},e.wbg.__wbg_createBuffer_9886e84a67b68c89=function(e){let t=e.createBuffer();return B(t)?0:V(t)},e.wbg.__wbg_createFramebuffer_c8d70ebc4858051e=function(e){let t=e.createFramebuffer();return B(t)?0:V(t)},e.wbg.__wbg_createProgram_da203074cafb1038=function(e){let t=e.createProgram();return B(t)?0:V(t)},e.wbg.__wbg_createRenderbuffer_d88aa9403faa38ea=function(e){let t=e.createRenderbuffer();return B(t)?0:V(t)},e.wbg.__wbg_createShader_983150fb1243ee56=function(e,t){let n=e.createShader(t>>>0);return B(n)?0:V(n)},e.wbg.__wbg_createTexture_bfaa54c0cd22e367=function(e){let t=e.createTexture();return B(t)?0:V(t)},e.wbg.__wbg_createVertexArray_e435029ae2660efd=function(e){let t=e.createVertexArray();return B(t)?0:V(t)},e.wbg.__wbg_cullFace_187079e6e20a464d=function(e,t){e.cullFace(t>>>0)},e.wbg.__wbg_deleteBuffer_7ed96e1bf7c02e87=function(e,t){e.deleteBuffer(t)},e.wbg.__wbg_deleteFramebuffer_66853fb7101488cb=function(e,t){e.deleteFramebuffer(t)},e.wbg.__wbg_deleteProgram_71a133c6d053e272=function(e,t){e.deleteProgram(t)},e.wbg.__wbg_deleteRenderbuffer_59f4369653485031=function(e,t){e.deleteRenderbuffer(t)},e.wbg.__wbg_deleteShader_8d42f169deda58ac=function(e,t){e.deleteShader(t)},e.wbg.__wbg_deleteTexture_bb82c9fec34372ba=function(e,t){e.deleteTexture(t)},e.wbg.__wbg_deleteVertexArray_77fe73664a3332ae=function(e,t){e.deleteVertexArray(t)},e.wbg.__wbg_depthFunc_f34449ae87cc4e3e=function(e,t){e.depthFunc(t>>>0)},e.wbg.__wbg_depthMask_76688a8638b2f321=function(e,t){e.depthMask(t!==0)},e.wbg.__wbg_disableVertexAttribArray_452cc9815fced7e4=function(e,t){e.disableVertexAttribArray(t>>>0)},e.wbg.__wbg_disable_2702df5b5da5dd21=function(e,t){e.disable(t>>>0)},e.wbg.__wbg_drawElements_65cb4b099bd7d4ac=function(e,t,n,r,i){e.drawElements(t>>>0,n,r>>>0,i)},e.wbg.__wbg_enableVertexAttribArray_93c3d406a41ad6c7=function(e,t){e.enableVertexAttribArray(t>>>0)},e.wbg.__wbg_enable_51114837e05ee280=function(e,t){e.enable(t>>>0)},e.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,t){let n,r;try{n=e,r=t,console.error(U(e,t))}finally{I.__wbindgen_free_command_export(n,r,1)}},e.wbg.__wbg_framebufferRenderbuffer_8b88592753b54715=function(e,t,n,r,i){e.framebufferRenderbuffer(t>>>0,n>>>0,r>>>0,i)},e.wbg.__wbg_framebufferTexture2D_ed855d0b097c557a=function(e,t,n,r,i,a){e.framebufferTexture2D(t>>>0,n>>>0,r>>>0,i,a)},e.wbg.__wbg_frontFace_289c9d7a8569c4f2=function(e,t){e.frontFace(t>>>0)},e.wbg.__wbg_getParameter_e3429f024018310f=function(){return W(function(e,t){return e.getParameter(t>>>0)},arguments)},e.wbg.__wbg_getProgramInfoLog_a998105a680059db=function(e,t,n){let r=t.getProgramInfoLog(n);var i=B(r)?0:q(r,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),a=G;Y().setInt32(e+4,a,!0),Y().setInt32(e+0,i,!0)},e.wbg.__wbg_getProgramParameter_360f95ff07ac068d=function(e,t,n){return e.getProgramParameter(t,n>>>0)},e.wbg.__wbg_getShaderInfoLog_f59c3112acc6e039=function(e,t,n){let r=t.getShaderInfoLog(n);var i=B(r)?0:q(r,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),a=G;Y().setInt32(e+4,a,!0),Y().setInt32(e+0,i,!0)},e.wbg.__wbg_getShaderParameter_511b5f929074fa31=function(e,t,n){return e.getShaderParameter(t,n>>>0)},e.wbg.__wbg_getUniformBlockIndex_288fdc31528171ca=function(e,t,n,r){return e.getUniformBlockIndex(t,U(n,r))},e.wbg.__wbg_getUniformLocation_657a2b6d102bd126=function(e,t,n,r){let i=e.getUniformLocation(t,U(n,r));return B(i)?0:V(i)},e.wbg.__wbg_invalidateFramebuffer_83f643d2a4936456=function(){return W(function(e,t,n){e.invalidateFramebuffer(t>>>0,n)},arguments)},e.wbg.__wbg_linkProgram_067ee06739bdde81=function(e,t){e.linkProgram(t)},e.wbg.__wbg_new_405e22f390576ce2=function(){return{}},e.wbg.__wbg_new_78feb108b6472713=function(){return[]},e.wbg.__wbg_new_8a6f238a6ece86ea=function(){return Error()},e.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return new Float32Array(e>>>0)},e.wbg.__wbg_now_807e54c39636c349=function(){return Date.now()},e.wbg.__wbg_push_737cfc8c1432c2c6=function(e,t){return e.push(t)},e.wbg.__wbg_renderbufferStorageMultisample_13fbd5e58900c6fe=function(e,t,n,r,i,a){e.renderbufferStorageMultisample(t>>>0,n,r>>>0,i,a)},e.wbg.__wbg_scissor_e917a332f67a5d30=function(e,t,n,r,i){e.scissor(t,n,r,i)},e.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return W(function(e,t,n){return Reflect.set(e,t,n)},arguments)},e.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){e[t>>>0]=n},e.wbg.__wbg_shaderSource_72d3e8597ef85b67=function(e,t,n,r){e.shaderSource(t,U(n,r))},e.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,t){let n=t.stack,r=q(n,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),i=G;Y().setInt32(e+4,i,!0),Y().setInt32(e+0,r,!0)},e.wbg.__wbg_stencilFuncSeparate_c1a6fa2005ca0aaf=function(e,t,n,r,i){e.stencilFuncSeparate(t>>>0,n>>>0,r,i>>>0)},e.wbg.__wbg_stencilFunc_115c92784472048b=function(e,t,n,r){e.stencilFunc(t>>>0,n,r>>>0)},e.wbg.__wbg_stencilOpSeparate_ff6683bbe3838ae6=function(e,t,n,r,i){e.stencilOpSeparate(t>>>0,n>>>0,r>>>0,i>>>0)},e.wbg.__wbg_stencilOp_b794f03cef95238e=function(e,t,n,r){e.stencilOp(t>>>0,n>>>0,r>>>0)},e.wbg.__wbg_texImage2D_06281e677e3f6909=function(){return W(function(e,t,n,r,i,a,o,s,c,l,u){e.texImage2D(t>>>0,n,r,i,a,o,s>>>0,c>>>0,l===0?void 0:z(l,u))},arguments)},e.wbg.__wbg_texParameteri_8112b26b3c360b7e=function(e,t,n,r){e.texParameteri(t>>>0,n>>>0,r)},e.wbg.__wbg_uniform1f_dc009a0e7f7e5977=function(e,t,n){e.uniform1f(t,n)},e.wbg.__wbg_uniform1i_ed95b6129dce4d84=function(e,t,n){e.uniform1i(t,n)},e.wbg.__wbg_uniform1iv_337c4a74e31ddc15=function(e,t,n,r){e.uniform1iv(t,Ce(n,r))},e.wbg.__wbg_uniformBlockBinding_18117f4bda07115b=function(e,t,n,r){e.uniformBlockBinding(t,n>>>0,r>>>0)},e.wbg.__wbg_uniformMatrix3fv_3df529aab93cf902=function(e,t,n,r,i){e.uniformMatrix3fv(t,n!==0,Te(r,i))},e.wbg.__wbg_useProgram_9b2660f7bb210471=function(e,t){e.useProgram(t)},e.wbg.__wbg_vertexAttrib4f_2a47cb701d647eeb=function(e,t,n,r,i,a){e.vertexAttrib4f(t>>>0,n,r,i,a)},e.wbg.__wbg_vertexAttribPointer_550dc34903e3d1ea=function(e,t,n,r,i,a,o){e.vertexAttribPointer(t>>>0,n,r>>>0,i!==0,a,o)},e.wbg.__wbg_viewport_e615e98f676f2d39=function(e,t,n,r,i){e.viewport(t,n,r,i)},e.wbg.__wbindgen_boolean_get=function(e){let t=e;return typeof t==`boolean`?t?1:0:2},e.wbg.__wbindgen_debug_string=function(e,t){let n=q(Q(t),I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),r=G;Y().setInt32(e+4,r,!0),Y().setInt32(e+0,n,!0)},e.wbg.__wbindgen_init_externref_table=function(){let e=I.__wbindgen_export_1,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},e.wbg.__wbindgen_number_get=function(e,t){let n=t,r=typeof n==`number`?n:void 0;Y().setFloat64(e+8,B(r)?0:r,!0),Y().setInt32(e+0,!B(r),!0)},e.wbg.__wbindgen_number_new=function(e){return e},e.wbg.__wbindgen_string_get=function(e,t){let n=t,r=typeof n==`string`?n:void 0;var i=B(r)?0:q(r,I.__wbindgen_malloc_command_export,I.__wbindgen_realloc_command_export),a=G;Y().setInt32(e+4,a,!0),Y().setInt32(e+0,i,!0)},e.wbg.__wbindgen_string_new=function(e,t){return U(e,t)},e.wbg.__wbindgen_throw=function(e,t){throw Error(U(e,t))},e}function Ne(e,t){return I=e.exports,Pe.__wbindgen_wasm_module=t,J=null,Z=null,X=null,L=null,I.__wbindgen_start(),I}async function Pe(e){if(I!==void 0)return I;if(e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`)),e===void 0)throw Error(`WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().`);let t=Me();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await je(await e,t);return Ne(n,r)}const $=N(Pe,`https://cdn.jsdelivr.net/npm/${i}@${r}/dist/webgl/dotlottie-player.wasm`,`https://unpkg.com/${i}@${r}/dist/webgl/dotlottie-player.wasm`);var Fe=class extends be{constructor(e){super(e)}async _initWasm(){return $.load()}_createCore(){return new Ae}_onCoreCreated(){if(!this._canvas||!this._dotLottieCore)return;let t=this._canvas;if(e){let e=this._renderConfig.devicePixelRatio||A(),{width:n,height:r}=t.getBoundingClientRect();n!==0&&r!==0&&(t.width=Math.round(n*e),t.height=Math.round(r*e))}let n=t.getContext(`webgl2`);if(!n)throw Error(`Failed to get WebGL2 context. Ensure the browser supports WebGL2.`);this._dotLottieCore.set_webgl_context(n)}_draw(){}_setupRendererOnCanvas(){if(this._context=null,!this._canvas||!this._dotLottieCore)return;let t=this._canvas;if(e){let e=this._renderConfig.devicePixelRatio||A(),{width:n,height:r}=t.getBoundingClientRect();n!==0&&r!==0&&(t.width=Math.round(n*e),t.height=Math.round(r*e))}let n=t.getContext(`webgl2`);n&&this._dotLottieCore.set_webgl_context(n)}static setWasmUrl(e){$.setWasmUrl(e)}};export{Fe as DotLottie};
|
|
6
6
|
//# sourceMappingURL=index.js.map
|