@lottiefiles/dotlottie-web 0.66.0 → 0.66.1

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.
@@ -1,2 +1,2 @@
1
- import{d as e,f as t,n,p as r,r as i,t as a,u as o}from"../dotlottie-Cn4v_pQB.js";let s;function c(e){let t=s.__externref_table_alloc_command_export();return s.__wbindgen_export_2.set(t,e),t}function l(e,t){try{return e.apply(this,t)}catch(e){let t=c(e);s.__wbindgen_exn_store_command_export(t)}}const u=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&u.decode();let d=null;function f(){return(d===null||d.byteLength===0)&&(d=new Uint8Array(s.memory.buffer)),d}function p(e,t){return e>>>=0,u.decode(f().subarray(e,e+t))}function m(e,t){return e>>>=0,f().subarray(e/1,e/1+t)}function h(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+=h(e[0]));for(let r=1;r<t;r++)n+=`, `+h(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}let g=0;const _=typeof TextEncoder<`u`?new TextEncoder(`utf-8`):{encode:()=>{throw Error(`TextEncoder not available`)}},v=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 y(e,t,n){if(n===void 0){let n=_.encode(e),r=t(n.length,1)>>>0;return f().subarray(r,r+n.length).set(n),g=n.length,r}let r=e.length,i=t(r,1)>>>0,a=f(),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=f().subarray(i+o,i+r),a=v(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return g=o,i}let b=null;function x(){return(b===null||b.buffer.detached===!0||b.buffer.detached===void 0&&b.buffer!==s.memory.buffer)&&(b=new DataView(s.memory.buffer)),b}function S(e){return e==null}function C(e,t){let n=t(e.length*1,1)>>>0;return f().set(e,n/1),g=e.length,n}let w=null;function T(){return(w===null||w.byteLength===0)&&(w=new Float32Array(s.memory.buffer)),w}function E(e,t){let n=t(e.length*4,4)>>>0;return T().set(e,n/4),g=e.length,n}function D(e,t){let n=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let r=c(e[t]);x().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 O=[`clamp-to-edge`,`repeat`,`mirror-repeat`],k=[`zero`,`one`,`src`,`one-minus-src`,`src-alpha`,`one-minus-src-alpha`,`dst`,`one-minus-dst`,`dst-alpha`,`one-minus-dst-alpha`,`src-alpha-saturated`,`constant`,`one-minus-constant`,`src1`,`one-minus-src1`,`src1-alpha`,`one-minus-src1-alpha`],A=[`add`,`subtract`,`reverse-subtract`,`min`,`max`],j=[`uniform`,`storage`,`read-only-storage`],M=[`never`,`less`,`equal`,`less-equal`,`greater`,`not-equal`,`greater-equal`,`always`],N=[`none`,`front`,`back`],P=[`nearest`,`linear`],F=[`ccw`,`cw`],I=[`uint16`,`uint32`],L=[`load`,`clear`],R=[`nearest`,`linear`],z=[`point-list`,`line-list`,`line-strip`,`triangle-list`,`triangle-strip`],B=[`filtering`,`non-filtering`,`comparison`],V=[`keep`,`zero`,`replace`,`invert`,`increment-clamp`,`decrement-clamp`,`increment-wrap`,`decrement-wrap`],H=[`write-only`,`read-only`,`read-write`],U=[`store`,`discard`],W=[`all`,`stencil-only`,`depth-only`],G=[`1d`,`2d`,`3d`],K=`r8unorm.r8snorm.r8uint.r8sint.r16uint.r16sint.r16float.rg8unorm.rg8snorm.rg8uint.rg8sint.r32uint.r32sint.r32float.rg16uint.rg16sint.rg16float.rgba8unorm.rgba8unorm-srgb.rgba8snorm.rgba8uint.rgba8sint.bgra8unorm.bgra8unorm-srgb.rgb9e5ufloat.rgb10a2uint.rgb10a2unorm.rg11b10ufloat.rg32uint.rg32sint.rg32float.rgba16uint.rgba16sint.rgba16float.rgba32uint.rgba32sint.rgba32float.stencil8.depth16unorm.depth24plus.depth24plus-stencil8.depth32float.depth32float-stencil8.bc1-rgba-unorm.bc1-rgba-unorm-srgb.bc2-rgba-unorm.bc2-rgba-unorm-srgb.bc3-rgba-unorm.bc3-rgba-unorm-srgb.bc4-r-unorm.bc4-r-snorm.bc5-rg-unorm.bc5-rg-snorm.bc6h-rgb-ufloat.bc6h-rgb-float.bc7-rgba-unorm.bc7-rgba-unorm-srgb.etc2-rgb8unorm.etc2-rgb8unorm-srgb.etc2-rgb8a1unorm.etc2-rgb8a1unorm-srgb.etc2-rgba8unorm.etc2-rgba8unorm-srgb.eac-r11unorm.eac-r11snorm.eac-rg11unorm.eac-rg11snorm.astc-4x4-unorm.astc-4x4-unorm-srgb.astc-5x4-unorm.astc-5x4-unorm-srgb.astc-5x5-unorm.astc-5x5-unorm-srgb.astc-6x5-unorm.astc-6x5-unorm-srgb.astc-6x6-unorm.astc-6x6-unorm-srgb.astc-8x5-unorm.astc-8x5-unorm-srgb.astc-8x6-unorm.astc-8x6-unorm-srgb.astc-8x8-unorm.astc-8x8-unorm-srgb.astc-10x5-unorm.astc-10x5-unorm-srgb.astc-10x6-unorm.astc-10x6-unorm-srgb.astc-10x8-unorm.astc-10x8-unorm-srgb.astc-10x10-unorm.astc-10x10-unorm-srgb.astc-12x10-unorm.astc-12x10-unorm-srgb.astc-12x12-unorm.astc-12x12-unorm-srgb`.split(`.`),q=[`float`,`unfilterable-float`,`depth`,`sint`,`uint`],J=[`1d`,`2d`,`2d-array`,`cube`,`cube-array`,`3d`],Y=`uint8.uint8x2.uint8x4.sint8.sint8x2.sint8x4.unorm8.unorm8x2.unorm8x4.snorm8.snorm8x2.snorm8x4.uint16.uint16x2.uint16x4.sint16.sint16x2.sint16x4.unorm16.unorm16x2.unorm16x4.snorm16.snorm16x2.snorm16x4.float16.float16x2.float16x4.float32.float32x2.float32x3.float32x4.uint32.uint32x2.uint32x3.uint32x4.sint32.sint32x2.sint32x3.sint32x4.unorm10-10-10-2.unorm8x4-bgra`.split(`.`),X=[`vertex`,`instance`],Z=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>s.__wbg_dotlottieplayerwasm_free(e>>>0,1));var ee=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),e}free(){let e=this.__destroy_into_raw();s.__wbg_dotlottieplayerwasm_free(e,0)}constructor(){return this.__wbg_ptr=s.dotlottieplayerwasm_new()>>>0,Z.register(this,this.__wbg_ptr,this),this}set_webgpu_device(e){s.dotlottieplayerwasm_set_webgpu_device(this.__wbg_ptr,e)}set_webgpu_surface(e){s.dotlottieplayerwasm_set_webgpu_surface(this.__wbg_ptr,e)}load_animation(e,t,n){let r=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),i=g;return s.dotlottieplayerwasm_load_animation(this.__wbg_ptr,r,i,t,n)!==0}load_dotlottie_data(e,t,n){let r=C(e,s.__wbindgen_malloc_command_export),i=g;return s.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,r,i,t,n)!==0}load_animation_from_id(e,t,n){let r=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),i=g;return s.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,r,i,t,n)!==0}tick(){return s.dotlottieplayerwasm_tick(this.__wbg_ptr)!==0}render(){return s.dotlottieplayerwasm_render(this.__wbg_ptr)!==0}clear(){s.dotlottieplayerwasm_clear(this.__wbg_ptr)}resize(e,t){return s.dotlottieplayerwasm_resize(this.__wbg_ptr,e,t)!==0}play(){return s.dotlottieplayerwasm_play(this.__wbg_ptr)!==0}pause(){return s.dotlottieplayerwasm_pause(this.__wbg_ptr)!==0}stop(){return s.dotlottieplayerwasm_stop(this.__wbg_ptr)!==0}is_playing(){return s.dotlottieplayerwasm_is_playing(this.__wbg_ptr)!==0}is_paused(){return s.dotlottieplayerwasm_is_paused(this.__wbg_ptr)!==0}is_stopped(){return s.dotlottieplayerwasm_is_stopped(this.__wbg_ptr)!==0}is_loaded(){return s.dotlottieplayerwasm_is_loaded(this.__wbg_ptr)!==0}is_complete(){return s.dotlottieplayerwasm_is_complete(this.__wbg_ptr)!==0}is_tweening(){return s.dotlottieplayerwasm_is_tweening(this.__wbg_ptr)!==0}current_frame(){return s.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}total_frames(){return s.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}request_frame(){return s.dotlottieplayerwasm_request_frame(this.__wbg_ptr)}set_frame(e){return s.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)!==0}seek(e){return s.dotlottieplayerwasm_seek(this.__wbg_ptr,e)!==0}duration(){return s.dotlottieplayerwasm_duration(this.__wbg_ptr)}segment_duration(){return s.dotlottieplayerwasm_segment_duration(this.__wbg_ptr)}current_loop_count(){return s.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}reset_current_loop_count(){s.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}width(){return s.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return s.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}animation_size(){return s.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}mode(){return s.dotlottieplayerwasm_mode(this.__wbg_ptr)}set_mode(e){s.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}speed(){return s.dotlottieplayerwasm_speed(this.__wbg_ptr)}set_speed(e){s.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}loop_animation(){return s.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)!==0}set_loop(e){s.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}loop_count(){return s.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}set_loop_count(e){s.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}autoplay(){return s.dotlottieplayerwasm_autoplay(this.__wbg_ptr)!==0}set_autoplay(e){s.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}use_frame_interpolation(){return s.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)!==0}set_use_frame_interpolation(e){s.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}background_color(){return s.dotlottieplayerwasm_background_color(this.__wbg_ptr)>>>0}set_background_color(e){return s.dotlottieplayerwasm_set_background_color(this.__wbg_ptr,e)!==0}clear_background_color(){return s.dotlottieplayerwasm_clear_background_color(this.__wbg_ptr)!==0}set_quality(e){return s.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)!==0}has_segment(){return s.dotlottieplayerwasm_has_segment(this.__wbg_ptr)!==0}segment_start(){return s.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}segment_end(){return s.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_segment(e,t){return s.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,t)!==0}clear_segment(){return s.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)!==0}set_layout(e,t,n){let r=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),i=g;return s.dotlottieplayerwasm_set_layout(this.__wbg_ptr,r,i,t,n)!==0}layout_fit(){let e,t;try{let n=s.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return e=n[0],t=n[1],p(n[0],n[1])}finally{s.__wbindgen_free_command_export(e,t,1)}}layout_align_x(){return s.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return s.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}set_viewport(e,t,n,r){return s.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,t,n,r)!==0}set_color_slot(e,t,n,r){let i=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),a=g;return s.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,i,a,t,n,r)!==0}set_scalar_slot(e,t){let n=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),r=g;return s.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,n,r,t)!==0}set_text_slot(e,t){let n=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),r=g,i=y(t,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),a=g;return s.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,n,r,i,a)!==0}set_vector_slot(e,t,n){let r=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),i=g;return s.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,r,i,t,n)!==0}set_position_slot(e,t,n){let r=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),i=g;return s.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,r,i,t,n)!==0}clear_slots(){return s.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)!==0}clear_slot(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;return s.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,t,n)!==0}set_slots_str(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;return s.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,t,n)!==0}set_slot_str(e,t){let n=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),r=g,i=y(t,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),a=g;return s.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,n,r,i,a)!==0}get_slot_str(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g,r=s.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=p(r[0],r[1]).slice(),s.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}get_slots_str(){let e,t;try{let n=s.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return e=n[0],t=n[1],p(n[0],n[1])}finally{s.__wbindgen_free_command_export(e,t,1)}}get_slot_ids(){return s.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_type(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g,r=s.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=p(r[0],r[1]).slice(),s.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}reset_slot(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;return s.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,t,n)!==0}reset_slots(){return s.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)!==0}intersect(e,t,n){let r=y(n,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),i=g;return s.dotlottieplayerwasm_intersect(this.__wbg_ptr,e,t,r,i)!==0}get_layer_bounds(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;return s.dotlottieplayerwasm_get_layer_bounds(this.__wbg_ptr,t,n)}get_transform(){return s.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}set_transform(e){let t=E(e,s.__wbindgen_malloc_command_export),n=g;return s.dotlottieplayerwasm_set_transform(this.__wbg_ptr,t,n)!==0}tween(e,t){return s.dotlottieplayerwasm_tween(this.__wbg_ptr,e,S(t)?4294967297:Math.fround(t))!==0}tween_with_easing(e,t,n,r,i,a){return s.dotlottieplayerwasm_tween_with_easing(this.__wbg_ptr,e,S(t)?4294967297:Math.fround(t),n,r,i,a)!==0}tween_stop(){return s.dotlottieplayerwasm_tween_stop(this.__wbg_ptr)!==0}tween_update(e){return s.dotlottieplayerwasm_tween_update(this.__wbg_ptr,S(e)?4294967297:Math.fround(e))!==0}tween_to_marker(e,t){let n=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),r=g;return s.dotlottieplayerwasm_tween_to_marker(this.__wbg_ptr,n,r,S(t)?4294967297:Math.fround(t))!==0}markers(){return s.dotlottieplayerwasm_markers(this.__wbg_ptr)}marker_names(){return s.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}current_marker(){let e=s.dotlottieplayerwasm_current_marker(this.__wbg_ptr),t;return e[0]!==0&&(t=p(e[0],e[1]).slice(),s.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}set_marker(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;s.dotlottieplayerwasm_set_marker(this.__wbg_ptr,t,n)}clear_marker(){s.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}poll_event(){return s.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}emit_on_loop(){s.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}load_font(e,t){let n=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),r=g,i=C(t,s.__wbindgen_malloc_command_export),a=g;return s.dotlottieplayerwasm_load_font(this.__wbg_ptr,n,r,i,a)!==0}static unload_font(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;return s.dotlottieplayerwasm_unload_font(t,n)!==0}set_theme(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;return s.dotlottieplayerwasm_set_theme(this.__wbg_ptr,t,n)!==0}reset_theme(){return s.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)!==0}set_theme_data(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;return s.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,t,n)!==0}theme_id(){let e=s.dotlottieplayerwasm_theme_id(this.__wbg_ptr),t;return e[0]!==0&&(t=p(e[0],e[1]).slice(),s.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}animation_id(){let e=s.dotlottieplayerwasm_animation_id(this.__wbg_ptr),t;return e[0]!==0&&(t=p(e[0],e[1]).slice(),s.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}manifest_string(){let e,t;try{let n=s.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return e=n[0],t=n[1],p(n[0],n[1])}finally{s.__wbindgen_free_command_export(e,t,1)}}get_state_machine(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g,r=s.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=p(r[0],r[1]).slice(),s.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}state_machine_id(){let e=s.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr),t;return e[0]!==0&&(t=p(e[0],e[1]).slice(),s.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}state_machine_load(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;return s.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,t,n)!==0}state_machine_load_from_id(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;return s.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,t,n)!==0}state_machine_unload(){s.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_fire(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;return s.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,t,n)!==0}sm_set_numeric_input(e,t){let n=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),r=g;return s.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,n,r,t)!==0}sm_get_numeric_input(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g,r=s.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,t,n);return r===4294967297?void 0:r}sm_set_string_input(e,t){let n=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),r=g,i=y(t,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),a=g;return s.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,n,r,i,a)!==0}sm_get_string_input(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g,r=s.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=p(r[0],r[1]).slice(),s.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}sm_set_boolean_input(e,t){let n=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),r=g;return s.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,n,r,t)!==0}sm_get_boolean_input(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g,r=s.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,t,n);return r===16777215?void 0:r!==0}sm_reset_input(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;s.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,t,n)}sm_poll_event(){return s.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_start(e,t){let n=D(t,s.__wbindgen_malloc_command_export),r=g;return s.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,n,r)!==0}sm_stop(){return s.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)!==0}sm_status(){let e,t;try{let n=s.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return e=n[0],t=n[1],p(n[0],n[1])}finally{s.__wbindgen_free_command_export(e,t,1)}}sm_current_state(){let e,t;try{let n=s.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return e=n[0],t=n[1],p(n[0],n[1])}finally{s.__wbindgen_free_command_export(e,t,1)}}sm_override_current_state(e,t){let n=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),r=g;return s.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,n,r,t)!==0}sm_framework_setup(){return s.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_get_inputs(){return s.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_post_click(e,t){s.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,t)}sm_post_pointer_down(e,t){s.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,t)}sm_post_pointer_up(e,t){s.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,t)}sm_post_pointer_move(e,t){s.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,t)}sm_post_pointer_enter(e,t){s.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,t)}sm_post_pointer_exit(e,t){s.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,t)}sm_poll_internal_event(){return s.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}sm_tick(){return s.dotlottieplayerwasm_sm_tick(this.__wbg_ptr)!==0}};async function te(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 ne(){let e={};return e.wbg={},e.wbg.__wbg_beginComputePass_ce58248c78ea4f0b=function(e,t){return e.beginComputePass(t)},e.wbg.__wbg_beginRenderPass_509df70c967b895c=function(){return l(function(e,t){return e.beginRenderPass(t)},arguments)},e.wbg.__wbg_buffer_609cc3eee51ed158=function(e){return e.buffer},e.wbg.__wbg_configure_7e2130842707feff=function(){return l(function(e,t){e.configure(t)},arguments)},e.wbg.__wbg_copyTextureToTexture_8b0d14b8089f3036=function(){return l(function(e,t,n,r){e.copyTextureToTexture(t,n,r)},arguments)},e.wbg.__wbg_createBindGroupLayout_5f799ca8bc5aa1fc=function(){return l(function(e,t){return e.createBindGroupLayout(t)},arguments)},e.wbg.__wbg_createBindGroup_ddd3bb343cf271fb=function(e,t){return e.createBindGroup(t)},e.wbg.__wbg_createBuffer_826176fb72deecbf=function(){return l(function(e,t){return e.createBuffer(t)},arguments)},e.wbg.__wbg_createCommandEncoder_579fe7e60b87a1c4=function(e,t){return e.createCommandEncoder(t)},e.wbg.__wbg_createComputePipeline_5f91c9fb81d570e7=function(e,t){return e.createComputePipeline(t)},e.wbg.__wbg_createPipelineLayout_b1406687fd03f870=function(e,t){return e.createPipelineLayout(t)},e.wbg.__wbg_createRenderPipeline_24a0e9be53ed468e=function(){return l(function(e,t){return e.createRenderPipeline(t)},arguments)},e.wbg.__wbg_createSampler_381b4ade52f53f68=function(e,t){return e.createSampler(t)},e.wbg.__wbg_createShaderModule_035719b95e2aae80=function(e,t){return e.createShaderModule(t)},e.wbg.__wbg_createTexture_6947ba7853a1d055=function(){return l(function(e,t){return e.createTexture(t)},arguments)},e.wbg.__wbg_createView_7f08b4f77746d573=function(){return l(function(e,t){return e.createView(t)},arguments)},e.wbg.__wbg_destroy_911c8640ffed5684=function(e){e.destroy()},e.wbg.__wbg_destroy_c1bd9f1fd447bebf=function(e){e.destroy()},e.wbg.__wbg_dispatchWorkgroups_6b7a05edf9c2b474=function(e,t,n,r){e.dispatchWorkgroups(t>>>0,n>>>0,r>>>0)},e.wbg.__wbg_drawIndexed_0d27b49d3d541ca9=function(e,t,n,r,i,a){e.drawIndexed(t>>>0,n>>>0,r>>>0,i,a>>>0)},e.wbg.__wbg_draw_afac1827162db569=function(e,t,n,r,i){e.draw(t>>>0,n>>>0,r>>>0,i>>>0)},e.wbg.__wbg_end_5f3989c200fa79e9=function(e){e.end()},e.wbg.__wbg_end_e9ed158432136036=function(e){e.end()},e.wbg.__wbg_finish_5d6bd1bf9cca88b0=function(e,t){return e.finish(t)},e.wbg.__wbg_finish_a3819bcf098c1f84=function(e){return e.finish()},e.wbg.__wbg_format_cb1ef2f3b44b306a=function(e){let t=e.format;return(K.indexOf(t)+1||96)-1},e.wbg.__wbg_getCurrentTexture_cf3b91d12114ffcb=function(){return l(function(e){return e.getCurrentTexture()},arguments)},e.wbg.__wbg_height_a1cdc6189018a9b3=function(e){return e.height},e.wbg.__wbg_new_405e22f390576ce2=function(){return{}},e.wbg.__wbg_new_5e0be73521bc8c17=function(){return new Map},e.wbg.__wbg_new_78feb108b6472713=function(){return[]},e.wbg.__wbg_new_a12002a7f91c75be=function(e){return new Uint8Array(e)},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_newwithlength_a381634e90c276d4=function(e){return new Uint8Array(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_queue_712d25576063d2fc=function(e){return e.queue},e.wbg.__wbg_setBindGroup_03656750a7c9f7c6=function(e,t,n){e.setBindGroup(t>>>0,n)},e.wbg.__wbg_setBindGroup_438462565faaa01c=function(e,t,n){e.setBindGroup(t>>>0,n)},e.wbg.__wbg_setBindGroup_8ec97340dd95cb9c=function(e,t,n,r){e.setBindGroup(t>>>0,n,r)},e.wbg.__wbg_setBindGroup_beb777273edc100f=function(e,t,n,r){e.setBindGroup(t>>>0,n,r)},e.wbg.__wbg_setIndexBuffer_1e94798fafd75b38=function(e,t,n,r,i){e.setIndexBuffer(t,I[n],r,i)},e.wbg.__wbg_setPipeline_4cd9468d332cf0cb=function(e,t){e.setPipeline(t)},e.wbg.__wbg_setPipeline_a48ed1de5bcb914a=function(e,t){e.setPipeline(t)},e.wbg.__wbg_setScissorRect_d69fa46fa55e5d29=function(e,t,n,r,i){e.setScissorRect(t>>>0,n>>>0,r>>>0,i>>>0)},e.wbg.__wbg_setStencilReference_d21fe89ea5f39f77=function(e,t){e.setStencilReference(t>>>0)},e.wbg.__wbg_setVertexBuffer_31b4fff2767922a0=function(e,t,n,r,i){e.setVertexBuffer(t>>>0,n,r,i)},e.wbg.__wbg_set_8fc6bf8a5b1071d1=function(e,t,n){return e.set(t,n)},e.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return l(function(e,t,n){return Reflect.set(e,t,n)},arguments)},e.wbg.__wbg_seta_aa2e87786f1942f7=function(e,t){e.a=t},e.wbg.__wbg_setaccess_86057694fc60b7f2=function(e,t){e.access=H[t]},e.wbg.__wbg_setaddressmodeu_f4d9eced9e9a9499=function(e,t){e.addressModeU=O[t]},e.wbg.__wbg_setaddressmodev_cb577d2f98afac7c=function(e,t){e.addressModeV=O[t]},e.wbg.__wbg_setaddressmodew_0e9a9aa668e91f34=function(e,t){e.addressModeW=O[t]},e.wbg.__wbg_setalpha_789b6ecd7c06e5f3=function(e,t){e.alpha=t},e.wbg.__wbg_setalphatocoverageenabled_8862a1b7a0f204c6=function(e,t){e.alphaToCoverageEnabled=t!==0},e.wbg.__wbg_setarraylayercount_cd3d3ab55145805f=function(e,t){e.arrayLayerCount=t>>>0},e.wbg.__wbg_setarraystride_84800a5d0f5fa40b=function(e,t){e.arrayStride=t},e.wbg.__wbg_setaspect_71ab7bc27f22254c=function(e,t){e.aspect=W[t]},e.wbg.__wbg_setaspect_df168d4e18afc498=function(e,t){e.aspect=W[t]},e.wbg.__wbg_setattributes_340843a4c4217777=function(e,t){e.attributes=t},e.wbg.__wbg_setb_4a958fe161746e0b=function(e,t){e.b=t},e.wbg.__wbg_setbasearraylayer_66b527b8665953c2=function(e,t){e.baseArrayLayer=t>>>0},e.wbg.__wbg_setbasemiplevel_8b05bec34091257b=function(e,t){e.baseMipLevel=t>>>0},e.wbg.__wbg_setbeginningofpasswriteindex_449cbd524b33366d=function(e,t){e.beginningOfPassWriteIndex=t>>>0},e.wbg.__wbg_setbeginningofpasswriteindex_645ab3ba9029ac4a=function(e,t){e.beginningOfPassWriteIndex=t>>>0},e.wbg.__wbg_setbindgrouplayouts_b74aac632f5e0cd3=function(e,t){e.bindGroupLayouts=t},e.wbg.__wbg_setbinding_524d68995acbd9d8=function(e,t){e.binding=t>>>0},e.wbg.__wbg_setbinding_5fb23ecf62d3bb68=function(e,t){e.binding=t>>>0},e.wbg.__wbg_setblend_fc955738a0ea479e=function(e,t){e.blend=t},e.wbg.__wbg_setbuffer_90ac1c7477e1bc4f=function(e,t){e.buffer=t},e.wbg.__wbg_setbuffer_f4026154d4c607c4=function(e,t){e.buffer=t},e.wbg.__wbg_setbuffers_72c10dde80619dfb=function(e,t){e.buffers=t},e.wbg.__wbg_setbytesperrow_27937d232b087985=function(e,t){e.bytesPerRow=t>>>0},e.wbg.__wbg_setclearvalue_245c9baef9ca9f40=function(e,t){e.clearValue=t},e.wbg.__wbg_setcode_e3412dedece095a3=function(e,t,n){e.code=p(t,n)},e.wbg.__wbg_setcolor_2fcb4c98d73b4a08=function(e,t){e.color=t},e.wbg.__wbg_setcolorattachments_315a32a9447c8143=function(e,t){e.colorAttachments=t},e.wbg.__wbg_setcompare_1eeae8f049314765=function(e,t){e.compare=M[t]},e.wbg.__wbg_setcompare_392fd4fe47194005=function(e,t){e.compare=M[t]},e.wbg.__wbg_setcompute_5b54088b8639edd0=function(e,t){e.compute=t},e.wbg.__wbg_setconstants_08df997e38e4da58=function(e,t){e.constants=t},e.wbg.__wbg_setconstants_8fdb7b4cac7ebe8c=function(e,t){e.constants=t},e.wbg.__wbg_setconstants_a7158f4f0eb335b7=function(e,t){e.constants=t},e.wbg.__wbg_setcount_f0218523e435fe27=function(e,t){e.count=t>>>0},e.wbg.__wbg_setcullmode_d07f4cca149fc8fd=function(e,t){e.cullMode=N[t]},e.wbg.__wbg_setdepthbias_d0a6693d6a8ab87e=function(e,t){e.depthBias=t},e.wbg.__wbg_setdepthbiasclamp_256485c28643d20d=function(e,t){e.depthBiasClamp=t},e.wbg.__wbg_setdepthbiasslopescale_b7ec92a9bda5e232=function(e,t){e.depthBiasSlopeScale=t},e.wbg.__wbg_setdepthclearvalue_e427925fb817bffc=function(e,t){e.depthClearValue=t},e.wbg.__wbg_setdepthcompare_3d414508518d2332=function(e,t){e.depthCompare=M[t]},e.wbg.__wbg_setdepthfailop_bb45e35727206b07=function(e,t){e.depthFailOp=V[t]},e.wbg.__wbg_setdepthloadop_6e7ed58390bcb472=function(e,t){e.depthLoadOp=L[t]},e.wbg.__wbg_setdepthorarraylayers_f883a5503c92fcbe=function(e,t){e.depthOrArrayLayers=t>>>0},e.wbg.__wbg_setdepthreadonly_ec5f87de25f955c6=function(e,t){e.depthReadOnly=t!==0},e.wbg.__wbg_setdepthslice_4c2d15e75ec01602=function(e,t){e.depthSlice=t>>>0},e.wbg.__wbg_setdepthstencil_ab24ec143b022ff9=function(e,t){e.depthStencil=t},e.wbg.__wbg_setdepthstencilattachment_8abbf392d55551bd=function(e,t){e.depthStencilAttachment=t},e.wbg.__wbg_setdepthstoreop_c529093252e36c11=function(e,t){e.depthStoreOp=U[t]},e.wbg.__wbg_setdepthwriteenabled_a97b018ec8906115=function(e,t){e.depthWriteEnabled=t!==0},e.wbg.__wbg_setdimension_2892b665919c0e54=function(e,t){e.dimension=J[t]},e.wbg.__wbg_setdimension_c14e0b4f680f2a14=function(e,t){e.dimension=G[t]},e.wbg.__wbg_setdstfactor_04b172f73540aabf=function(e,t){e.dstFactor=k[t]},e.wbg.__wbg_setendofpasswriteindex_6923ba50f58bb0df=function(e,t){e.endOfPassWriteIndex=t>>>0},e.wbg.__wbg_setendofpasswriteindex_832ce3e1b3972fae=function(e,t){e.endOfPassWriteIndex=t>>>0},e.wbg.__wbg_setentries_545836ca7979d0c3=function(e,t){e.entries=t},e.wbg.__wbg_setentries_99398ac8873772cf=function(e,t){e.entries=t},e.wbg.__wbg_setentrypoint_40d651c49abeabef=function(e,t,n){e.entryPoint=p(t,n)},e.wbg.__wbg_setentrypoint_78553a4419def0b5=function(e,t,n){e.entryPoint=p(t,n)},e.wbg.__wbg_setentrypoint_9de314a2c2570802=function(e,t,n){e.entryPoint=p(t,n)},e.wbg.__wbg_setfailop_3b7d50b0a4f08e69=function(e,t){e.failOp=V[t]},e.wbg.__wbg_setformat_01f82498bb7aa545=function(e,t){e.format=K[t]},e.wbg.__wbg_setformat_3dd749532151c43e=function(e,t){e.format=K[t]},e.wbg.__wbg_setformat_5106903c3bec7f29=function(e,t){e.format=K[t]},e.wbg.__wbg_setformat_984f8b09308d0584=function(e,t){e.format=K[t]},e.wbg.__wbg_setformat_c0f2655a6b8dae1a=function(e,t){e.format=K[t]},e.wbg.__wbg_setformat_d474115239036438=function(e,t){e.format=Y[t]},e.wbg.__wbg_setfragment_1f67ab59aff99617=function(e,t){e.fragment=t},e.wbg.__wbg_setfrontface_1875a91bf87e5bad=function(e,t){e.frontFace=F[t]},e.wbg.__wbg_setg_a62d6aa648d4cd4c=function(e,t){e.g=t},e.wbg.__wbg_sethasdynamicoffset_78853235cc49b8ea=function(e,t){e.hasDynamicOffset=t!==0},e.wbg.__wbg_setheight_1e158913ddc793af=function(e,t){e.height=t>>>0},e.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){e[t>>>0]=n},e.wbg.__wbg_setlayout_44fc85f3dd4d8fd6=function(e,t){e.layout=t},e.wbg.__wbg_setlayout_74172b78828c84fe=function(e,t){e.layout=t},e.wbg.__wbg_setlayout_a9e58d0996412dfa=function(e,t){e.layout=t},e.wbg.__wbg_setloadop_f1ccd5d15b52ca5d=function(e,t){e.loadOp=L[t]},e.wbg.__wbg_setlodmaxclamp_2c14826867287557=function(e,t){e.lodMaxClamp=t},e.wbg.__wbg_setlodminclamp_90c60cc7e8baa95b=function(e,t){e.lodMinClamp=t},e.wbg.__wbg_setmagfilter_064b565970422154=function(e,t){e.magFilter=P[t]},e.wbg.__wbg_setmappedatcreation_5b22281a9edff7fa=function(e,t){e.mappedAtCreation=t!==0},e.wbg.__wbg_setmask_2007e390b35587d6=function(e,t){e.mask=t>>>0},e.wbg.__wbg_setmaxanisotropy_d90cbfc49f762cf1=function(e,t){e.maxAnisotropy=t},e.wbg.__wbg_setminbindingsize_b6106c56d37c8a84=function(e,t){e.minBindingSize=t},e.wbg.__wbg_setminfilter_712d4dcd764a0d5e=function(e,t){e.minFilter=P[t]},e.wbg.__wbg_setmiplevel_5fa33ce523901448=function(e,t){e.mipLevel=t>>>0},e.wbg.__wbg_setmiplevelcount_836d12b93ef02836=function(e,t){e.mipLevelCount=t>>>0},e.wbg.__wbg_setmiplevelcount_da876250f18dd0e7=function(e,t){e.mipLevelCount=t>>>0},e.wbg.__wbg_setmipmapfilter_9cac92abe21b7816=function(e,t){e.mipmapFilter=R[t]},e.wbg.__wbg_setmodule_7b8dd93fefd91a73=function(e,t){e.module=t},e.wbg.__wbg_setmodule_e1281341685bf91a=function(e,t){e.module=t},e.wbg.__wbg_setmodule_e7a882363768bf73=function(e,t){e.module=t},e.wbg.__wbg_setmultisample_95fbbb44e36714e3=function(e,t){e.multisample=t},e.wbg.__wbg_setmultisampled_f7f0562151e1ff91=function(e,t){e.multisampled=t!==0},e.wbg.__wbg_setocclusionqueryset_a2a4abf338fb3441=function(e,t){e.occlusionQuerySet=t},e.wbg.__wbg_setoffset_1bf2826ce181376a=function(e,t){e.offset=t},e.wbg.__wbg_setoffset_f6f822a44e88af7e=function(e,t){e.offset=t},e.wbg.__wbg_setoffset_fe9f09cc240192d0=function(e,t){e.offset=t},e.wbg.__wbg_setoperation_de3d845bdac61eb3=function(e,t){e.operation=A[t]},e.wbg.__wbg_setorigin_9d2dbc71ffaae355=function(e,t){e.origin=t},e.wbg.__wbg_setpassop_8767e1a56e3c30da=function(e,t){e.passOp=V[t]},e.wbg.__wbg_setprimitive_491591635926383f=function(e,t){e.primitive=t},e.wbg.__wbg_setqueryset_0351509707c5cd51=function(e,t){e.querySet=t},e.wbg.__wbg_setqueryset_c4a0351a777cdfbd=function(e,t){e.querySet=t},e.wbg.__wbg_setr_732e149cd5493a75=function(e,t){e.r=t},e.wbg.__wbg_setresolvetarget_56e82fe32d6e757b=function(e,t){e.resolveTarget=t},e.wbg.__wbg_setresource_261b30a085bc9a72=function(e,t){e.resource=t},e.wbg.__wbg_setrowsperimage_5d58ebd56fa65231=function(e,t){e.rowsPerImage=t>>>0},e.wbg.__wbg_setsamplecount_ecdebb2cba9265c0=function(e,t){e.sampleCount=t>>>0},e.wbg.__wbg_setsampler_5d1ee8efc1fd14d3=function(e,t){e.sampler=t},e.wbg.__wbg_setsampletype_afa82d0d8ad6e2d7=function(e,t){e.sampleType=q[t]},e.wbg.__wbg_setshaderlocation_315967bfde4427a8=function(e,t){e.shaderLocation=t>>>0},e.wbg.__wbg_setsize_021142f0cf8b49c2=function(e,t){e.size=t},e.wbg.__wbg_setsize_4f9d7203f06fc54a=function(e,t){e.size=t},e.wbg.__wbg_setsize_a2662ec0e7f16cc9=function(e,t){e.size=t},e.wbg.__wbg_setsrcfactor_5aea25a9f1933072=function(e,t){e.srcFactor=k[t]},e.wbg.__wbg_setstencilback_1b6b2643a15d5066=function(e,t){e.stencilBack=t},e.wbg.__wbg_setstencilclearvalue_ef82d3b767ad806f=function(e,t){e.stencilClearValue=t>>>0},e.wbg.__wbg_setstencilfront_4e2eaace01795028=function(e,t){e.stencilFront=t},e.wbg.__wbg_setstencilloadop_6e7bc3186a01330e=function(e,t){e.stencilLoadOp=L[t]},e.wbg.__wbg_setstencilreadmask_99287c6b013f0ae2=function(e,t){e.stencilReadMask=t>>>0},e.wbg.__wbg_setstencilreadonly_00d790631a8e4330=function(e,t){e.stencilReadOnly=t!==0},e.wbg.__wbg_setstencilstoreop_22d01da4d35271b2=function(e,t){e.stencilStoreOp=U[t]},e.wbg.__wbg_setstencilwritemask_30cfa473ca5600c7=function(e,t){e.stencilWriteMask=t>>>0},e.wbg.__wbg_setstepmode_ac000a7f17d3b87d=function(e,t){e.stepMode=X[t]},e.wbg.__wbg_setstoragetexture_c17314bf4e104ece=function(e,t){e.storageTexture=t},e.wbg.__wbg_setstoreop_571e86638124baba=function(e,t){e.storeOp=U[t]},e.wbg.__wbg_setstripindexformat_9ec52f6405d7985b=function(e,t){e.stripIndexFormat=I[t]},e.wbg.__wbg_settargets_591e8613a4896aac=function(e,t){e.targets=t},e.wbg.__wbg_settexture_62c91e1557d1310a=function(e,t){e.texture=t},e.wbg.__wbg_settexture_a8c8df2623f6e670=function(e,t){e.texture=t},e.wbg.__wbg_settimestampwrites_65e353db5011b652=function(e,t){e.timestampWrites=t},e.wbg.__wbg_settimestampwrites_c48f0b3db52a9119=function(e,t){e.timestampWrites=t},e.wbg.__wbg_settopology_35540552af8ad12e=function(e,t){e.topology=z[t]},e.wbg.__wbg_settype_51c2819925b5e0a6=function(e,t){e.type=B[t]},e.wbg.__wbg_settype_a275611edc111d26=function(e,t){e.type=j[t]},e.wbg.__wbg_setunclippeddepth_43cbbb9961b4b705=function(e,t){e.unclippedDepth=t!==0},e.wbg.__wbg_setusage_7836ddf40e55971a=function(e,t){e.usage=t>>>0},e.wbg.__wbg_setusage_7e9a6c2f119cab96=function(e,t){e.usage=t>>>0},e.wbg.__wbg_setusage_97670aee3d9bbf16=function(e,t){e.usage=t>>>0},e.wbg.__wbg_setvertex_602fd330026bc0be=function(e,t){e.vertex=t},e.wbg.__wbg_setview_2eb28c0fa8228e7c=function(e,t){e.view=t},e.wbg.__wbg_setview_451a1441471a69db=function(e,t){e.view=t},e.wbg.__wbg_setviewdimension_d632693fb1d12b24=function(e,t){e.viewDimension=J[t]},e.wbg.__wbg_setviewdimension_dc868215e54cbbba=function(e,t){e.viewDimension=J[t]},e.wbg.__wbg_setviewformats_6c89940ba38f64ff=function(e,t){e.viewFormats=t},e.wbg.__wbg_setvisibility_1f6371439759b513=function(e,t){e.visibility=t>>>0},e.wbg.__wbg_setwidth_6cc268cef8245a36=function(e,t){e.width=t>>>0},e.wbg.__wbg_setwritemask_4ea635b0719187be=function(e,t){e.writeMask=t>>>0},e.wbg.__wbg_size_84ca9c23c7989256=function(e){return e.size},e.wbg.__wbg_submit_3bf51baf36de553b=function(e,t){e.submit(t)},e.wbg.__wbg_unconfigure_64b5f267287f6b71=function(e){e.unconfigure()},e.wbg.__wbg_usage_d2a45c8d889f9c63=function(e){return e.usage},e.wbg.__wbg_width_684e9aa31cbda8b8=function(e){return e.width},e.wbg.__wbg_writeBuffer_b5be14e621130604=function(){return l(function(e,t,n,r){e.writeBuffer(t,n,r)},arguments)},e.wbg.__wbg_writeTexture_ff0b4f87c3efd0dc=function(){return l(function(e,t,n,r,i,a){e.writeTexture(t,m(n,r),i,a)},arguments)},e.wbg.__wbindgen_debug_string=function(e,t){let n=y(h(t),s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),r=g;x().setInt32(e+4,r,!0),x().setInt32(e+0,n,!0)},e.wbg.__wbindgen_init_externref_table=function(){let e=s.__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 s.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=S(r)?0:y(r,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),a=g;x().setInt32(e+4,a,!0),x().setInt32(e+0,i,!0)},e.wbg.__wbindgen_string_new=function(e,t){return p(e,t)},e.wbg.__wbindgen_throw=function(e,t){throw Error(p(e,t))},e}function re(e,t){return s=e.exports,Q.__wbindgen_wasm_module=t,b=null,w=null,d=null,s.__wbindgen_start(),s}async function Q(e){if(s!==void 0)return s;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=ne();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await te(await e,t);return re(n,r)}const $=n(Q,`https://cdn.jsdelivr.net/npm/${e}@${t}/dist/webgpu/dotlottie-player.wasm`,`https://unpkg.com/${e}@${t}/dist/webgpu/dotlottie-player.wasm`);var ie=class extends a{constructor(e){super(e),r(this,`_gpuDevice`,null),r(this,`_gpuContext`,null),r(this,`_deviceOwned`,!1),r(this,`_userDevice`,void 0),this._userDevice=e.device}async _initWasm(){if(await $.load(),this._userDevice)this._gpuDevice=this._userDevice,this._deviceOwned=!1;else{if(!navigator.gpu)throw Error(`WebGPU is not supported in this browser.`);let e=await navigator.gpu.requestAdapter();if(!e)throw Error(`Failed to get WebGPU adapter.`);let t=await e.requestDevice();t.lost.then(e=>{console.error(`[dotlottie-web] WebGPU device lost: ${e.reason} — ${e.message}`)}),this._gpuDevice=t,this._deviceOwned=!0}}_createCore(){return new ee}_onCoreCreated(){!this._canvas||!this._dotLottieCore||!this._gpuDevice||this._setupGpuContext()}_setupGpuContext(){if(!this._canvas||!this._dotLottieCore||!this._gpuDevice)return;let e=this._canvas;if(o){let t=this._renderConfig.devicePixelRatio||i(),{width:n,height:r}=e.getBoundingClientRect();n!==0&&r!==0&&(e.width=Math.round(n*t),e.height=Math.round(r*t))}let t=e.getContext(`webgpu`);if(!t)throw Error(`Failed to get WebGPU canvas context.`);let n=navigator.gpu.getPreferredCanvasFormat();t.configure({device:this._gpuDevice,format:n,alphaMode:`premultiplied`}),this._gpuContext=t;let r=this._dotLottieCore;r.set_webgpu_device(this._gpuDevice),r.set_webgpu_surface(t)}resize(){if(this._gpuContext&&this._gpuDevice&&this._canvas){let e=this._canvas,t=this._renderConfig.devicePixelRatio||i(),{width:n,height:r}=e.getBoundingClientRect();n!==0&&r!==0&&(e.width=Math.round(n*t),e.height=Math.round(r*t)),this._gpuContext.configure({device:this._gpuDevice,format:navigator.gpu.getPreferredCanvasFormat(),alphaMode:`premultiplied`}),this._dotLottieCore&&this.isLoaded&&this._dotLottieCore.resize(e.width,e.height)&&this._dotLottieCore.render();return}super.resize()}_draw(){}_setupRendererOnCanvas(){this._context=null,this._gpuContext&&(this._gpuContext.unconfigure(),this._gpuContext=null),!(!this._canvas||!this._dotLottieCore||!this._gpuDevice)&&this._setupGpuContext()}destroy(){this._gpuContext&&(this._gpuContext.unconfigure(),this._gpuContext=null),super.destroy(),this._deviceOwned&&this._gpuDevice&&this._gpuDevice.destroy(),this._gpuDevice=null}get device(){return this._gpuDevice}static setWasmUrl(e){$.setWasmUrl(e)}};export{ie as DotLottie};
1
+ import{d as e,f as t,n,p as r,r as i,t as a,u as o}from"../dotlottie-DBBPxC2A.js";let s;function c(e){let t=s.__externref_table_alloc_command_export();return s.__wbindgen_export_2.set(t,e),t}function l(e,t){try{return e.apply(this,t)}catch(e){let t=c(e);s.__wbindgen_exn_store_command_export(t)}}const u=typeof TextDecoder<`u`?new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error(`TextDecoder not available`)}};typeof TextDecoder<`u`&&u.decode();let d=null;function f(){return(d===null||d.byteLength===0)&&(d=new Uint8Array(s.memory.buffer)),d}function p(e,t){return e>>>=0,u.decode(f().subarray(e,e+t))}function m(e,t){return e>>>=0,f().subarray(e/1,e/1+t)}function h(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+=h(e[0]));for(let r=1;r<t;r++)n+=`, `+h(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}let g=0;const _=typeof TextEncoder<`u`?new TextEncoder(`utf-8`):{encode:()=>{throw Error(`TextEncoder not available`)}},v=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 y(e,t,n){if(n===void 0){let n=_.encode(e),r=t(n.length,1)>>>0;return f().subarray(r,r+n.length).set(n),g=n.length,r}let r=e.length,i=t(r,1)>>>0,a=f(),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=f().subarray(i+o,i+r),a=v(e,t);o+=a.written,i=n(i,r,o,1)>>>0}return g=o,i}let b=null;function x(){return(b===null||b.buffer.detached===!0||b.buffer.detached===void 0&&b.buffer!==s.memory.buffer)&&(b=new DataView(s.memory.buffer)),b}function S(e){return e==null}function C(e,t){let n=t(e.length*1,1)>>>0;return f().set(e,n/1),g=e.length,n}let w=null;function T(){return(w===null||w.byteLength===0)&&(w=new Float32Array(s.memory.buffer)),w}function E(e,t){let n=t(e.length*4,4)>>>0;return T().set(e,n/4),g=e.length,n}function D(e,t){let n=t(e.length*4,4)>>>0;for(let t=0;t<e.length;t++){let r=c(e[t]);x().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 O=[`clamp-to-edge`,`repeat`,`mirror-repeat`],k=[`zero`,`one`,`src`,`one-minus-src`,`src-alpha`,`one-minus-src-alpha`,`dst`,`one-minus-dst`,`dst-alpha`,`one-minus-dst-alpha`,`src-alpha-saturated`,`constant`,`one-minus-constant`,`src1`,`one-minus-src1`,`src1-alpha`,`one-minus-src1-alpha`],A=[`add`,`subtract`,`reverse-subtract`,`min`,`max`],j=[`uniform`,`storage`,`read-only-storage`],M=[`never`,`less`,`equal`,`less-equal`,`greater`,`not-equal`,`greater-equal`,`always`],N=[`none`,`front`,`back`],P=[`nearest`,`linear`],F=[`ccw`,`cw`],I=[`uint16`,`uint32`],L=[`load`,`clear`],R=[`nearest`,`linear`],z=[`point-list`,`line-list`,`line-strip`,`triangle-list`,`triangle-strip`],B=[`filtering`,`non-filtering`,`comparison`],V=[`keep`,`zero`,`replace`,`invert`,`increment-clamp`,`decrement-clamp`,`increment-wrap`,`decrement-wrap`],H=[`write-only`,`read-only`,`read-write`],U=[`store`,`discard`],W=[`all`,`stencil-only`,`depth-only`],G=[`1d`,`2d`,`3d`],K=`r8unorm.r8snorm.r8uint.r8sint.r16uint.r16sint.r16float.rg8unorm.rg8snorm.rg8uint.rg8sint.r32uint.r32sint.r32float.rg16uint.rg16sint.rg16float.rgba8unorm.rgba8unorm-srgb.rgba8snorm.rgba8uint.rgba8sint.bgra8unorm.bgra8unorm-srgb.rgb9e5ufloat.rgb10a2uint.rgb10a2unorm.rg11b10ufloat.rg32uint.rg32sint.rg32float.rgba16uint.rgba16sint.rgba16float.rgba32uint.rgba32sint.rgba32float.stencil8.depth16unorm.depth24plus.depth24plus-stencil8.depth32float.depth32float-stencil8.bc1-rgba-unorm.bc1-rgba-unorm-srgb.bc2-rgba-unorm.bc2-rgba-unorm-srgb.bc3-rgba-unorm.bc3-rgba-unorm-srgb.bc4-r-unorm.bc4-r-snorm.bc5-rg-unorm.bc5-rg-snorm.bc6h-rgb-ufloat.bc6h-rgb-float.bc7-rgba-unorm.bc7-rgba-unorm-srgb.etc2-rgb8unorm.etc2-rgb8unorm-srgb.etc2-rgb8a1unorm.etc2-rgb8a1unorm-srgb.etc2-rgba8unorm.etc2-rgba8unorm-srgb.eac-r11unorm.eac-r11snorm.eac-rg11unorm.eac-rg11snorm.astc-4x4-unorm.astc-4x4-unorm-srgb.astc-5x4-unorm.astc-5x4-unorm-srgb.astc-5x5-unorm.astc-5x5-unorm-srgb.astc-6x5-unorm.astc-6x5-unorm-srgb.astc-6x6-unorm.astc-6x6-unorm-srgb.astc-8x5-unorm.astc-8x5-unorm-srgb.astc-8x6-unorm.astc-8x6-unorm-srgb.astc-8x8-unorm.astc-8x8-unorm-srgb.astc-10x5-unorm.astc-10x5-unorm-srgb.astc-10x6-unorm.astc-10x6-unorm-srgb.astc-10x8-unorm.astc-10x8-unorm-srgb.astc-10x10-unorm.astc-10x10-unorm-srgb.astc-12x10-unorm.astc-12x10-unorm-srgb.astc-12x12-unorm.astc-12x12-unorm-srgb`.split(`.`),q=[`float`,`unfilterable-float`,`depth`,`sint`,`uint`],J=[`1d`,`2d`,`2d-array`,`cube`,`cube-array`,`3d`],Y=`uint8.uint8x2.uint8x4.sint8.sint8x2.sint8x4.unorm8.unorm8x2.unorm8x4.snorm8.snorm8x2.snorm8x4.uint16.uint16x2.uint16x4.sint16.sint16x2.sint16x4.unorm16.unorm16x2.unorm16x4.snorm16.snorm16x2.snorm16x4.float16.float16x2.float16x4.float32.float32x2.float32x3.float32x4.uint32.uint32x2.uint32x3.uint32x4.sint32.sint32x2.sint32x3.sint32x4.unorm10-10-10-2.unorm8x4-bgra`.split(`.`),X=[`vertex`,`instance`],Z=typeof FinalizationRegistry>`u`?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>s.__wbg_dotlottieplayerwasm_free(e>>>0,1));var ee=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),e}free(){let e=this.__destroy_into_raw();s.__wbg_dotlottieplayerwasm_free(e,0)}constructor(){return this.__wbg_ptr=s.dotlottieplayerwasm_new()>>>0,Z.register(this,this.__wbg_ptr,this),this}set_webgpu_device(e){s.dotlottieplayerwasm_set_webgpu_device(this.__wbg_ptr,e)}set_webgpu_surface(e){s.dotlottieplayerwasm_set_webgpu_surface(this.__wbg_ptr,e)}load_animation(e,t,n){let r=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),i=g;return s.dotlottieplayerwasm_load_animation(this.__wbg_ptr,r,i,t,n)!==0}load_dotlottie_data(e,t,n){let r=C(e,s.__wbindgen_malloc_command_export),i=g;return s.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,r,i,t,n)!==0}load_animation_from_id(e,t,n){let r=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),i=g;return s.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,r,i,t,n)!==0}tick(){return s.dotlottieplayerwasm_tick(this.__wbg_ptr)!==0}render(){return s.dotlottieplayerwasm_render(this.__wbg_ptr)!==0}clear(){s.dotlottieplayerwasm_clear(this.__wbg_ptr)}resize(e,t){return s.dotlottieplayerwasm_resize(this.__wbg_ptr,e,t)!==0}play(){return s.dotlottieplayerwasm_play(this.__wbg_ptr)!==0}pause(){return s.dotlottieplayerwasm_pause(this.__wbg_ptr)!==0}stop(){return s.dotlottieplayerwasm_stop(this.__wbg_ptr)!==0}is_playing(){return s.dotlottieplayerwasm_is_playing(this.__wbg_ptr)!==0}is_paused(){return s.dotlottieplayerwasm_is_paused(this.__wbg_ptr)!==0}is_stopped(){return s.dotlottieplayerwasm_is_stopped(this.__wbg_ptr)!==0}is_loaded(){return s.dotlottieplayerwasm_is_loaded(this.__wbg_ptr)!==0}is_complete(){return s.dotlottieplayerwasm_is_complete(this.__wbg_ptr)!==0}is_tweening(){return s.dotlottieplayerwasm_is_tweening(this.__wbg_ptr)!==0}current_frame(){return s.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}total_frames(){return s.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}request_frame(){return s.dotlottieplayerwasm_request_frame(this.__wbg_ptr)}set_frame(e){return s.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)!==0}seek(e){return s.dotlottieplayerwasm_seek(this.__wbg_ptr,e)!==0}duration(){return s.dotlottieplayerwasm_duration(this.__wbg_ptr)}segment_duration(){return s.dotlottieplayerwasm_segment_duration(this.__wbg_ptr)}current_loop_count(){return s.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}reset_current_loop_count(){s.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}width(){return s.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return s.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}animation_size(){return s.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}mode(){return s.dotlottieplayerwasm_mode(this.__wbg_ptr)}set_mode(e){s.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}speed(){return s.dotlottieplayerwasm_speed(this.__wbg_ptr)}set_speed(e){s.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}loop_animation(){return s.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)!==0}set_loop(e){s.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}loop_count(){return s.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}set_loop_count(e){s.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}autoplay(){return s.dotlottieplayerwasm_autoplay(this.__wbg_ptr)!==0}set_autoplay(e){s.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}use_frame_interpolation(){return s.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)!==0}set_use_frame_interpolation(e){s.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}background_color(){return s.dotlottieplayerwasm_background_color(this.__wbg_ptr)>>>0}set_background_color(e){return s.dotlottieplayerwasm_set_background_color(this.__wbg_ptr,e)!==0}clear_background_color(){return s.dotlottieplayerwasm_clear_background_color(this.__wbg_ptr)!==0}set_quality(e){return s.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)!==0}has_segment(){return s.dotlottieplayerwasm_has_segment(this.__wbg_ptr)!==0}segment_start(){return s.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}segment_end(){return s.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_segment(e,t){return s.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,t)!==0}clear_segment(){return s.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)!==0}set_layout(e,t,n){let r=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),i=g;return s.dotlottieplayerwasm_set_layout(this.__wbg_ptr,r,i,t,n)!==0}layout_fit(){let e,t;try{let n=s.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return e=n[0],t=n[1],p(n[0],n[1])}finally{s.__wbindgen_free_command_export(e,t,1)}}layout_align_x(){return s.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return s.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}set_viewport(e,t,n,r){return s.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,t,n,r)!==0}set_color_slot(e,t,n,r){let i=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),a=g;return s.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,i,a,t,n,r)!==0}set_scalar_slot(e,t){let n=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),r=g;return s.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,n,r,t)!==0}set_text_slot(e,t){let n=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),r=g,i=y(t,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),a=g;return s.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,n,r,i,a)!==0}set_vector_slot(e,t,n){let r=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),i=g;return s.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,r,i,t,n)!==0}set_position_slot(e,t,n){let r=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),i=g;return s.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,r,i,t,n)!==0}clear_slots(){return s.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)!==0}clear_slot(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;return s.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,t,n)!==0}set_slots_str(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;return s.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,t,n)!==0}set_slot_str(e,t){let n=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),r=g,i=y(t,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),a=g;return s.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,n,r,i,a)!==0}get_slot_str(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g,r=s.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=p(r[0],r[1]).slice(),s.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}get_slots_str(){let e,t;try{let n=s.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return e=n[0],t=n[1],p(n[0],n[1])}finally{s.__wbindgen_free_command_export(e,t,1)}}get_slot_ids(){return s.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_type(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g,r=s.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=p(r[0],r[1]).slice(),s.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}reset_slot(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;return s.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,t,n)!==0}reset_slots(){return s.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)!==0}intersect(e,t,n){let r=y(n,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),i=g;return s.dotlottieplayerwasm_intersect(this.__wbg_ptr,e,t,r,i)!==0}get_layer_bounds(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;return s.dotlottieplayerwasm_get_layer_bounds(this.__wbg_ptr,t,n)}get_transform(){return s.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}set_transform(e){let t=E(e,s.__wbindgen_malloc_command_export),n=g;return s.dotlottieplayerwasm_set_transform(this.__wbg_ptr,t,n)!==0}tween(e,t){return s.dotlottieplayerwasm_tween(this.__wbg_ptr,e,S(t)?4294967297:Math.fround(t))!==0}tween_with_easing(e,t,n,r,i,a){return s.dotlottieplayerwasm_tween_with_easing(this.__wbg_ptr,e,S(t)?4294967297:Math.fround(t),n,r,i,a)!==0}tween_stop(){return s.dotlottieplayerwasm_tween_stop(this.__wbg_ptr)!==0}tween_update(e){return s.dotlottieplayerwasm_tween_update(this.__wbg_ptr,S(e)?4294967297:Math.fround(e))!==0}tween_to_marker(e,t){let n=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),r=g;return s.dotlottieplayerwasm_tween_to_marker(this.__wbg_ptr,n,r,S(t)?4294967297:Math.fround(t))!==0}markers(){return s.dotlottieplayerwasm_markers(this.__wbg_ptr)}marker_names(){return s.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}current_marker(){let e=s.dotlottieplayerwasm_current_marker(this.__wbg_ptr),t;return e[0]!==0&&(t=p(e[0],e[1]).slice(),s.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}set_marker(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;s.dotlottieplayerwasm_set_marker(this.__wbg_ptr,t,n)}clear_marker(){s.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}poll_event(){return s.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}emit_on_loop(){s.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}load_font(e,t){let n=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),r=g,i=C(t,s.__wbindgen_malloc_command_export),a=g;return s.dotlottieplayerwasm_load_font(this.__wbg_ptr,n,r,i,a)!==0}static unload_font(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;return s.dotlottieplayerwasm_unload_font(t,n)!==0}set_theme(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;return s.dotlottieplayerwasm_set_theme(this.__wbg_ptr,t,n)!==0}reset_theme(){return s.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)!==0}set_theme_data(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;return s.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,t,n)!==0}theme_id(){let e=s.dotlottieplayerwasm_theme_id(this.__wbg_ptr),t;return e[0]!==0&&(t=p(e[0],e[1]).slice(),s.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}animation_id(){let e=s.dotlottieplayerwasm_animation_id(this.__wbg_ptr),t;return e[0]!==0&&(t=p(e[0],e[1]).slice(),s.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}manifest_string(){let e,t;try{let n=s.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return e=n[0],t=n[1],p(n[0],n[1])}finally{s.__wbindgen_free_command_export(e,t,1)}}get_state_machine(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g,r=s.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=p(r[0],r[1]).slice(),s.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}state_machine_id(){let e=s.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr),t;return e[0]!==0&&(t=p(e[0],e[1]).slice(),s.__wbindgen_free_command_export(e[0],e[1]*1,1)),t}state_machine_load(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;return s.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,t,n)!==0}state_machine_load_from_id(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;return s.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,t,n)!==0}state_machine_unload(){s.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_fire(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;return s.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,t,n)!==0}sm_set_numeric_input(e,t){let n=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),r=g;return s.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,n,r,t)!==0}sm_get_numeric_input(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g,r=s.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,t,n);return r===4294967297?void 0:r}sm_set_string_input(e,t){let n=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),r=g,i=y(t,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),a=g;return s.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,n,r,i,a)!==0}sm_get_string_input(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g,r=s.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,t,n),i;return r[0]!==0&&(i=p(r[0],r[1]).slice(),s.__wbindgen_free_command_export(r[0],r[1]*1,1)),i}sm_set_boolean_input(e,t){let n=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),r=g;return s.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,n,r,t)!==0}sm_get_boolean_input(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g,r=s.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,t,n);return r===16777215?void 0:r!==0}sm_reset_input(e){let t=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),n=g;s.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,t,n)}sm_poll_event(){return s.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_start(e,t){let n=D(t,s.__wbindgen_malloc_command_export),r=g;return s.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,n,r)!==0}sm_stop(){return s.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)!==0}sm_status(){let e,t;try{let n=s.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return e=n[0],t=n[1],p(n[0],n[1])}finally{s.__wbindgen_free_command_export(e,t,1)}}sm_current_state(){let e,t;try{let n=s.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return e=n[0],t=n[1],p(n[0],n[1])}finally{s.__wbindgen_free_command_export(e,t,1)}}sm_override_current_state(e,t){let n=y(e,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),r=g;return s.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,n,r,t)!==0}sm_framework_setup(){return s.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_get_inputs(){return s.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_post_click(e,t){s.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,t)}sm_post_pointer_down(e,t){s.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,t)}sm_post_pointer_up(e,t){s.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,t)}sm_post_pointer_move(e,t){s.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,t)}sm_post_pointer_enter(e,t){s.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,t)}sm_post_pointer_exit(e,t){s.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,t)}sm_poll_internal_event(){return s.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}sm_tick(){return s.dotlottieplayerwasm_sm_tick(this.__wbg_ptr)!==0}};async function te(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 ne(){let e={};return e.wbg={},e.wbg.__wbg_beginComputePass_ce58248c78ea4f0b=function(e,t){return e.beginComputePass(t)},e.wbg.__wbg_beginRenderPass_509df70c967b895c=function(){return l(function(e,t){return e.beginRenderPass(t)},arguments)},e.wbg.__wbg_buffer_609cc3eee51ed158=function(e){return e.buffer},e.wbg.__wbg_configure_7e2130842707feff=function(){return l(function(e,t){e.configure(t)},arguments)},e.wbg.__wbg_copyTextureToTexture_8b0d14b8089f3036=function(){return l(function(e,t,n,r){e.copyTextureToTexture(t,n,r)},arguments)},e.wbg.__wbg_createBindGroupLayout_5f799ca8bc5aa1fc=function(){return l(function(e,t){return e.createBindGroupLayout(t)},arguments)},e.wbg.__wbg_createBindGroup_ddd3bb343cf271fb=function(e,t){return e.createBindGroup(t)},e.wbg.__wbg_createBuffer_826176fb72deecbf=function(){return l(function(e,t){return e.createBuffer(t)},arguments)},e.wbg.__wbg_createCommandEncoder_579fe7e60b87a1c4=function(e,t){return e.createCommandEncoder(t)},e.wbg.__wbg_createComputePipeline_5f91c9fb81d570e7=function(e,t){return e.createComputePipeline(t)},e.wbg.__wbg_createPipelineLayout_b1406687fd03f870=function(e,t){return e.createPipelineLayout(t)},e.wbg.__wbg_createRenderPipeline_24a0e9be53ed468e=function(){return l(function(e,t){return e.createRenderPipeline(t)},arguments)},e.wbg.__wbg_createSampler_381b4ade52f53f68=function(e,t){return e.createSampler(t)},e.wbg.__wbg_createShaderModule_035719b95e2aae80=function(e,t){return e.createShaderModule(t)},e.wbg.__wbg_createTexture_6947ba7853a1d055=function(){return l(function(e,t){return e.createTexture(t)},arguments)},e.wbg.__wbg_createView_7f08b4f77746d573=function(){return l(function(e,t){return e.createView(t)},arguments)},e.wbg.__wbg_destroy_911c8640ffed5684=function(e){e.destroy()},e.wbg.__wbg_destroy_c1bd9f1fd447bebf=function(e){e.destroy()},e.wbg.__wbg_dispatchWorkgroups_6b7a05edf9c2b474=function(e,t,n,r){e.dispatchWorkgroups(t>>>0,n>>>0,r>>>0)},e.wbg.__wbg_drawIndexed_0d27b49d3d541ca9=function(e,t,n,r,i,a){e.drawIndexed(t>>>0,n>>>0,r>>>0,i,a>>>0)},e.wbg.__wbg_draw_afac1827162db569=function(e,t,n,r,i){e.draw(t>>>0,n>>>0,r>>>0,i>>>0)},e.wbg.__wbg_end_5f3989c200fa79e9=function(e){e.end()},e.wbg.__wbg_end_e9ed158432136036=function(e){e.end()},e.wbg.__wbg_finish_5d6bd1bf9cca88b0=function(e,t){return e.finish(t)},e.wbg.__wbg_finish_a3819bcf098c1f84=function(e){return e.finish()},e.wbg.__wbg_format_cb1ef2f3b44b306a=function(e){let t=e.format;return(K.indexOf(t)+1||96)-1},e.wbg.__wbg_getCurrentTexture_cf3b91d12114ffcb=function(){return l(function(e){return e.getCurrentTexture()},arguments)},e.wbg.__wbg_height_a1cdc6189018a9b3=function(e){return e.height},e.wbg.__wbg_new_405e22f390576ce2=function(){return{}},e.wbg.__wbg_new_5e0be73521bc8c17=function(){return new Map},e.wbg.__wbg_new_78feb108b6472713=function(){return[]},e.wbg.__wbg_new_a12002a7f91c75be=function(e){return new Uint8Array(e)},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_newwithlength_a381634e90c276d4=function(e){return new Uint8Array(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_queue_712d25576063d2fc=function(e){return e.queue},e.wbg.__wbg_setBindGroup_03656750a7c9f7c6=function(e,t,n){e.setBindGroup(t>>>0,n)},e.wbg.__wbg_setBindGroup_438462565faaa01c=function(e,t,n){e.setBindGroup(t>>>0,n)},e.wbg.__wbg_setBindGroup_8ec97340dd95cb9c=function(e,t,n,r){e.setBindGroup(t>>>0,n,r)},e.wbg.__wbg_setBindGroup_beb777273edc100f=function(e,t,n,r){e.setBindGroup(t>>>0,n,r)},e.wbg.__wbg_setIndexBuffer_1e94798fafd75b38=function(e,t,n,r,i){e.setIndexBuffer(t,I[n],r,i)},e.wbg.__wbg_setPipeline_4cd9468d332cf0cb=function(e,t){e.setPipeline(t)},e.wbg.__wbg_setPipeline_a48ed1de5bcb914a=function(e,t){e.setPipeline(t)},e.wbg.__wbg_setScissorRect_d69fa46fa55e5d29=function(e,t,n,r,i){e.setScissorRect(t>>>0,n>>>0,r>>>0,i>>>0)},e.wbg.__wbg_setStencilReference_d21fe89ea5f39f77=function(e,t){e.setStencilReference(t>>>0)},e.wbg.__wbg_setVertexBuffer_31b4fff2767922a0=function(e,t,n,r,i){e.setVertexBuffer(t>>>0,n,r,i)},e.wbg.__wbg_set_8fc6bf8a5b1071d1=function(e,t,n){return e.set(t,n)},e.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return l(function(e,t,n){return Reflect.set(e,t,n)},arguments)},e.wbg.__wbg_seta_aa2e87786f1942f7=function(e,t){e.a=t},e.wbg.__wbg_setaccess_86057694fc60b7f2=function(e,t){e.access=H[t]},e.wbg.__wbg_setaddressmodeu_f4d9eced9e9a9499=function(e,t){e.addressModeU=O[t]},e.wbg.__wbg_setaddressmodev_cb577d2f98afac7c=function(e,t){e.addressModeV=O[t]},e.wbg.__wbg_setaddressmodew_0e9a9aa668e91f34=function(e,t){e.addressModeW=O[t]},e.wbg.__wbg_setalpha_789b6ecd7c06e5f3=function(e,t){e.alpha=t},e.wbg.__wbg_setalphatocoverageenabled_8862a1b7a0f204c6=function(e,t){e.alphaToCoverageEnabled=t!==0},e.wbg.__wbg_setarraylayercount_cd3d3ab55145805f=function(e,t){e.arrayLayerCount=t>>>0},e.wbg.__wbg_setarraystride_84800a5d0f5fa40b=function(e,t){e.arrayStride=t},e.wbg.__wbg_setaspect_71ab7bc27f22254c=function(e,t){e.aspect=W[t]},e.wbg.__wbg_setaspect_df168d4e18afc498=function(e,t){e.aspect=W[t]},e.wbg.__wbg_setattributes_340843a4c4217777=function(e,t){e.attributes=t},e.wbg.__wbg_setb_4a958fe161746e0b=function(e,t){e.b=t},e.wbg.__wbg_setbasearraylayer_66b527b8665953c2=function(e,t){e.baseArrayLayer=t>>>0},e.wbg.__wbg_setbasemiplevel_8b05bec34091257b=function(e,t){e.baseMipLevel=t>>>0},e.wbg.__wbg_setbeginningofpasswriteindex_449cbd524b33366d=function(e,t){e.beginningOfPassWriteIndex=t>>>0},e.wbg.__wbg_setbeginningofpasswriteindex_645ab3ba9029ac4a=function(e,t){e.beginningOfPassWriteIndex=t>>>0},e.wbg.__wbg_setbindgrouplayouts_b74aac632f5e0cd3=function(e,t){e.bindGroupLayouts=t},e.wbg.__wbg_setbinding_524d68995acbd9d8=function(e,t){e.binding=t>>>0},e.wbg.__wbg_setbinding_5fb23ecf62d3bb68=function(e,t){e.binding=t>>>0},e.wbg.__wbg_setblend_fc955738a0ea479e=function(e,t){e.blend=t},e.wbg.__wbg_setbuffer_90ac1c7477e1bc4f=function(e,t){e.buffer=t},e.wbg.__wbg_setbuffer_f4026154d4c607c4=function(e,t){e.buffer=t},e.wbg.__wbg_setbuffers_72c10dde80619dfb=function(e,t){e.buffers=t},e.wbg.__wbg_setbytesperrow_27937d232b087985=function(e,t){e.bytesPerRow=t>>>0},e.wbg.__wbg_setclearvalue_245c9baef9ca9f40=function(e,t){e.clearValue=t},e.wbg.__wbg_setcode_e3412dedece095a3=function(e,t,n){e.code=p(t,n)},e.wbg.__wbg_setcolor_2fcb4c98d73b4a08=function(e,t){e.color=t},e.wbg.__wbg_setcolorattachments_315a32a9447c8143=function(e,t){e.colorAttachments=t},e.wbg.__wbg_setcompare_1eeae8f049314765=function(e,t){e.compare=M[t]},e.wbg.__wbg_setcompare_392fd4fe47194005=function(e,t){e.compare=M[t]},e.wbg.__wbg_setcompute_5b54088b8639edd0=function(e,t){e.compute=t},e.wbg.__wbg_setconstants_08df997e38e4da58=function(e,t){e.constants=t},e.wbg.__wbg_setconstants_8fdb7b4cac7ebe8c=function(e,t){e.constants=t},e.wbg.__wbg_setconstants_a7158f4f0eb335b7=function(e,t){e.constants=t},e.wbg.__wbg_setcount_f0218523e435fe27=function(e,t){e.count=t>>>0},e.wbg.__wbg_setcullmode_d07f4cca149fc8fd=function(e,t){e.cullMode=N[t]},e.wbg.__wbg_setdepthbias_d0a6693d6a8ab87e=function(e,t){e.depthBias=t},e.wbg.__wbg_setdepthbiasclamp_256485c28643d20d=function(e,t){e.depthBiasClamp=t},e.wbg.__wbg_setdepthbiasslopescale_b7ec92a9bda5e232=function(e,t){e.depthBiasSlopeScale=t},e.wbg.__wbg_setdepthclearvalue_e427925fb817bffc=function(e,t){e.depthClearValue=t},e.wbg.__wbg_setdepthcompare_3d414508518d2332=function(e,t){e.depthCompare=M[t]},e.wbg.__wbg_setdepthfailop_bb45e35727206b07=function(e,t){e.depthFailOp=V[t]},e.wbg.__wbg_setdepthloadop_6e7ed58390bcb472=function(e,t){e.depthLoadOp=L[t]},e.wbg.__wbg_setdepthorarraylayers_f883a5503c92fcbe=function(e,t){e.depthOrArrayLayers=t>>>0},e.wbg.__wbg_setdepthreadonly_ec5f87de25f955c6=function(e,t){e.depthReadOnly=t!==0},e.wbg.__wbg_setdepthslice_4c2d15e75ec01602=function(e,t){e.depthSlice=t>>>0},e.wbg.__wbg_setdepthstencil_ab24ec143b022ff9=function(e,t){e.depthStencil=t},e.wbg.__wbg_setdepthstencilattachment_8abbf392d55551bd=function(e,t){e.depthStencilAttachment=t},e.wbg.__wbg_setdepthstoreop_c529093252e36c11=function(e,t){e.depthStoreOp=U[t]},e.wbg.__wbg_setdepthwriteenabled_a97b018ec8906115=function(e,t){e.depthWriteEnabled=t!==0},e.wbg.__wbg_setdimension_2892b665919c0e54=function(e,t){e.dimension=J[t]},e.wbg.__wbg_setdimension_c14e0b4f680f2a14=function(e,t){e.dimension=G[t]},e.wbg.__wbg_setdstfactor_04b172f73540aabf=function(e,t){e.dstFactor=k[t]},e.wbg.__wbg_setendofpasswriteindex_6923ba50f58bb0df=function(e,t){e.endOfPassWriteIndex=t>>>0},e.wbg.__wbg_setendofpasswriteindex_832ce3e1b3972fae=function(e,t){e.endOfPassWriteIndex=t>>>0},e.wbg.__wbg_setentries_545836ca7979d0c3=function(e,t){e.entries=t},e.wbg.__wbg_setentries_99398ac8873772cf=function(e,t){e.entries=t},e.wbg.__wbg_setentrypoint_40d651c49abeabef=function(e,t,n){e.entryPoint=p(t,n)},e.wbg.__wbg_setentrypoint_78553a4419def0b5=function(e,t,n){e.entryPoint=p(t,n)},e.wbg.__wbg_setentrypoint_9de314a2c2570802=function(e,t,n){e.entryPoint=p(t,n)},e.wbg.__wbg_setfailop_3b7d50b0a4f08e69=function(e,t){e.failOp=V[t]},e.wbg.__wbg_setformat_01f82498bb7aa545=function(e,t){e.format=K[t]},e.wbg.__wbg_setformat_3dd749532151c43e=function(e,t){e.format=K[t]},e.wbg.__wbg_setformat_5106903c3bec7f29=function(e,t){e.format=K[t]},e.wbg.__wbg_setformat_984f8b09308d0584=function(e,t){e.format=K[t]},e.wbg.__wbg_setformat_c0f2655a6b8dae1a=function(e,t){e.format=K[t]},e.wbg.__wbg_setformat_d474115239036438=function(e,t){e.format=Y[t]},e.wbg.__wbg_setfragment_1f67ab59aff99617=function(e,t){e.fragment=t},e.wbg.__wbg_setfrontface_1875a91bf87e5bad=function(e,t){e.frontFace=F[t]},e.wbg.__wbg_setg_a62d6aa648d4cd4c=function(e,t){e.g=t},e.wbg.__wbg_sethasdynamicoffset_78853235cc49b8ea=function(e,t){e.hasDynamicOffset=t!==0},e.wbg.__wbg_setheight_1e158913ddc793af=function(e,t){e.height=t>>>0},e.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){e[t>>>0]=n},e.wbg.__wbg_setlayout_44fc85f3dd4d8fd6=function(e,t){e.layout=t},e.wbg.__wbg_setlayout_74172b78828c84fe=function(e,t){e.layout=t},e.wbg.__wbg_setlayout_a9e58d0996412dfa=function(e,t){e.layout=t},e.wbg.__wbg_setloadop_f1ccd5d15b52ca5d=function(e,t){e.loadOp=L[t]},e.wbg.__wbg_setlodmaxclamp_2c14826867287557=function(e,t){e.lodMaxClamp=t},e.wbg.__wbg_setlodminclamp_90c60cc7e8baa95b=function(e,t){e.lodMinClamp=t},e.wbg.__wbg_setmagfilter_064b565970422154=function(e,t){e.magFilter=P[t]},e.wbg.__wbg_setmappedatcreation_5b22281a9edff7fa=function(e,t){e.mappedAtCreation=t!==0},e.wbg.__wbg_setmask_2007e390b35587d6=function(e,t){e.mask=t>>>0},e.wbg.__wbg_setmaxanisotropy_d90cbfc49f762cf1=function(e,t){e.maxAnisotropy=t},e.wbg.__wbg_setminbindingsize_b6106c56d37c8a84=function(e,t){e.minBindingSize=t},e.wbg.__wbg_setminfilter_712d4dcd764a0d5e=function(e,t){e.minFilter=P[t]},e.wbg.__wbg_setmiplevel_5fa33ce523901448=function(e,t){e.mipLevel=t>>>0},e.wbg.__wbg_setmiplevelcount_836d12b93ef02836=function(e,t){e.mipLevelCount=t>>>0},e.wbg.__wbg_setmiplevelcount_da876250f18dd0e7=function(e,t){e.mipLevelCount=t>>>0},e.wbg.__wbg_setmipmapfilter_9cac92abe21b7816=function(e,t){e.mipmapFilter=R[t]},e.wbg.__wbg_setmodule_7b8dd93fefd91a73=function(e,t){e.module=t},e.wbg.__wbg_setmodule_e1281341685bf91a=function(e,t){e.module=t},e.wbg.__wbg_setmodule_e7a882363768bf73=function(e,t){e.module=t},e.wbg.__wbg_setmultisample_95fbbb44e36714e3=function(e,t){e.multisample=t},e.wbg.__wbg_setmultisampled_f7f0562151e1ff91=function(e,t){e.multisampled=t!==0},e.wbg.__wbg_setocclusionqueryset_a2a4abf338fb3441=function(e,t){e.occlusionQuerySet=t},e.wbg.__wbg_setoffset_1bf2826ce181376a=function(e,t){e.offset=t},e.wbg.__wbg_setoffset_f6f822a44e88af7e=function(e,t){e.offset=t},e.wbg.__wbg_setoffset_fe9f09cc240192d0=function(e,t){e.offset=t},e.wbg.__wbg_setoperation_de3d845bdac61eb3=function(e,t){e.operation=A[t]},e.wbg.__wbg_setorigin_9d2dbc71ffaae355=function(e,t){e.origin=t},e.wbg.__wbg_setpassop_8767e1a56e3c30da=function(e,t){e.passOp=V[t]},e.wbg.__wbg_setprimitive_491591635926383f=function(e,t){e.primitive=t},e.wbg.__wbg_setqueryset_0351509707c5cd51=function(e,t){e.querySet=t},e.wbg.__wbg_setqueryset_c4a0351a777cdfbd=function(e,t){e.querySet=t},e.wbg.__wbg_setr_732e149cd5493a75=function(e,t){e.r=t},e.wbg.__wbg_setresolvetarget_56e82fe32d6e757b=function(e,t){e.resolveTarget=t},e.wbg.__wbg_setresource_261b30a085bc9a72=function(e,t){e.resource=t},e.wbg.__wbg_setrowsperimage_5d58ebd56fa65231=function(e,t){e.rowsPerImage=t>>>0},e.wbg.__wbg_setsamplecount_ecdebb2cba9265c0=function(e,t){e.sampleCount=t>>>0},e.wbg.__wbg_setsampler_5d1ee8efc1fd14d3=function(e,t){e.sampler=t},e.wbg.__wbg_setsampletype_afa82d0d8ad6e2d7=function(e,t){e.sampleType=q[t]},e.wbg.__wbg_setshaderlocation_315967bfde4427a8=function(e,t){e.shaderLocation=t>>>0},e.wbg.__wbg_setsize_021142f0cf8b49c2=function(e,t){e.size=t},e.wbg.__wbg_setsize_4f9d7203f06fc54a=function(e,t){e.size=t},e.wbg.__wbg_setsize_a2662ec0e7f16cc9=function(e,t){e.size=t},e.wbg.__wbg_setsrcfactor_5aea25a9f1933072=function(e,t){e.srcFactor=k[t]},e.wbg.__wbg_setstencilback_1b6b2643a15d5066=function(e,t){e.stencilBack=t},e.wbg.__wbg_setstencilclearvalue_ef82d3b767ad806f=function(e,t){e.stencilClearValue=t>>>0},e.wbg.__wbg_setstencilfront_4e2eaace01795028=function(e,t){e.stencilFront=t},e.wbg.__wbg_setstencilloadop_6e7bc3186a01330e=function(e,t){e.stencilLoadOp=L[t]},e.wbg.__wbg_setstencilreadmask_99287c6b013f0ae2=function(e,t){e.stencilReadMask=t>>>0},e.wbg.__wbg_setstencilreadonly_00d790631a8e4330=function(e,t){e.stencilReadOnly=t!==0},e.wbg.__wbg_setstencilstoreop_22d01da4d35271b2=function(e,t){e.stencilStoreOp=U[t]},e.wbg.__wbg_setstencilwritemask_30cfa473ca5600c7=function(e,t){e.stencilWriteMask=t>>>0},e.wbg.__wbg_setstepmode_ac000a7f17d3b87d=function(e,t){e.stepMode=X[t]},e.wbg.__wbg_setstoragetexture_c17314bf4e104ece=function(e,t){e.storageTexture=t},e.wbg.__wbg_setstoreop_571e86638124baba=function(e,t){e.storeOp=U[t]},e.wbg.__wbg_setstripindexformat_9ec52f6405d7985b=function(e,t){e.stripIndexFormat=I[t]},e.wbg.__wbg_settargets_591e8613a4896aac=function(e,t){e.targets=t},e.wbg.__wbg_settexture_62c91e1557d1310a=function(e,t){e.texture=t},e.wbg.__wbg_settexture_a8c8df2623f6e670=function(e,t){e.texture=t},e.wbg.__wbg_settimestampwrites_65e353db5011b652=function(e,t){e.timestampWrites=t},e.wbg.__wbg_settimestampwrites_c48f0b3db52a9119=function(e,t){e.timestampWrites=t},e.wbg.__wbg_settopology_35540552af8ad12e=function(e,t){e.topology=z[t]},e.wbg.__wbg_settype_51c2819925b5e0a6=function(e,t){e.type=B[t]},e.wbg.__wbg_settype_a275611edc111d26=function(e,t){e.type=j[t]},e.wbg.__wbg_setunclippeddepth_43cbbb9961b4b705=function(e,t){e.unclippedDepth=t!==0},e.wbg.__wbg_setusage_7836ddf40e55971a=function(e,t){e.usage=t>>>0},e.wbg.__wbg_setusage_7e9a6c2f119cab96=function(e,t){e.usage=t>>>0},e.wbg.__wbg_setusage_97670aee3d9bbf16=function(e,t){e.usage=t>>>0},e.wbg.__wbg_setvertex_602fd330026bc0be=function(e,t){e.vertex=t},e.wbg.__wbg_setview_2eb28c0fa8228e7c=function(e,t){e.view=t},e.wbg.__wbg_setview_451a1441471a69db=function(e,t){e.view=t},e.wbg.__wbg_setviewdimension_d632693fb1d12b24=function(e,t){e.viewDimension=J[t]},e.wbg.__wbg_setviewdimension_dc868215e54cbbba=function(e,t){e.viewDimension=J[t]},e.wbg.__wbg_setviewformats_6c89940ba38f64ff=function(e,t){e.viewFormats=t},e.wbg.__wbg_setvisibility_1f6371439759b513=function(e,t){e.visibility=t>>>0},e.wbg.__wbg_setwidth_6cc268cef8245a36=function(e,t){e.width=t>>>0},e.wbg.__wbg_setwritemask_4ea635b0719187be=function(e,t){e.writeMask=t>>>0},e.wbg.__wbg_size_84ca9c23c7989256=function(e){return e.size},e.wbg.__wbg_submit_3bf51baf36de553b=function(e,t){e.submit(t)},e.wbg.__wbg_unconfigure_64b5f267287f6b71=function(e){e.unconfigure()},e.wbg.__wbg_usage_d2a45c8d889f9c63=function(e){return e.usage},e.wbg.__wbg_width_684e9aa31cbda8b8=function(e){return e.width},e.wbg.__wbg_writeBuffer_b5be14e621130604=function(){return l(function(e,t,n,r){e.writeBuffer(t,n,r)},arguments)},e.wbg.__wbg_writeTexture_ff0b4f87c3efd0dc=function(){return l(function(e,t,n,r,i,a){e.writeTexture(t,m(n,r),i,a)},arguments)},e.wbg.__wbindgen_debug_string=function(e,t){let n=y(h(t),s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),r=g;x().setInt32(e+4,r,!0),x().setInt32(e+0,n,!0)},e.wbg.__wbindgen_init_externref_table=function(){let e=s.__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 s.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=S(r)?0:y(r,s.__wbindgen_malloc_command_export,s.__wbindgen_realloc_command_export),a=g;x().setInt32(e+4,a,!0),x().setInt32(e+0,i,!0)},e.wbg.__wbindgen_string_new=function(e,t){return p(e,t)},e.wbg.__wbindgen_throw=function(e,t){throw Error(p(e,t))},e}function re(e,t){return s=e.exports,Q.__wbindgen_wasm_module=t,b=null,w=null,d=null,s.__wbindgen_start(),s}async function Q(e){if(s!==void 0)return s;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=ne();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:n,module:r}=await te(await e,t);return re(n,r)}const $=n(Q,`https://cdn.jsdelivr.net/npm/${e}@${t}/dist/webgpu/dotlottie-player.wasm`,`https://unpkg.com/${e}@${t}/dist/webgpu/dotlottie-player.wasm`);var ie=class extends a{constructor(e){super(e),r(this,`_gpuDevice`,null),r(this,`_gpuContext`,null),r(this,`_deviceOwned`,!1),r(this,`_userDevice`,void 0),this._userDevice=e.device}async _initWasm(){if(await $.load(),this._userDevice)this._gpuDevice=this._userDevice,this._deviceOwned=!1;else{if(!navigator.gpu)throw Error(`WebGPU is not supported in this browser.`);let e=await navigator.gpu.requestAdapter();if(!e)throw Error(`Failed to get WebGPU adapter.`);let t=await e.requestDevice();t.lost.then(e=>{console.error(`[dotlottie-web] WebGPU device lost: ${e.reason} — ${e.message}`)}),this._gpuDevice=t,this._deviceOwned=!0}}_createCore(){return new ee}_onCoreCreated(){!this._canvas||!this._dotLottieCore||!this._gpuDevice||this._setupGpuContext()}_setupGpuContext(){if(!this._canvas||!this._dotLottieCore||!this._gpuDevice)return;let e=this._canvas;if(o){let t=this._renderConfig.devicePixelRatio||i(),{width:n,height:r}=e.getBoundingClientRect();n!==0&&r!==0&&(e.width=Math.round(n*t),e.height=Math.round(r*t))}let t=e.getContext(`webgpu`);if(!t)throw Error(`Failed to get WebGPU canvas context.`);let n=navigator.gpu.getPreferredCanvasFormat();t.configure({device:this._gpuDevice,format:n,alphaMode:`premultiplied`}),this._gpuContext=t;let r=this._dotLottieCore;r.set_webgpu_device(this._gpuDevice),r.set_webgpu_surface(t)}resize(){if(this._gpuContext&&this._gpuDevice&&this._canvas){let e=this._canvas,t=this._renderConfig.devicePixelRatio||i(),{width:n,height:r}=e.getBoundingClientRect();n!==0&&r!==0&&(e.width=Math.round(n*t),e.height=Math.round(r*t)),this._gpuContext.configure({device:this._gpuDevice,format:navigator.gpu.getPreferredCanvasFormat(),alphaMode:`premultiplied`}),this._dotLottieCore&&this.isLoaded&&this._dotLottieCore.resize(e.width,e.height)&&this._dotLottieCore.render();return}super.resize()}_draw(){}_setupRendererOnCanvas(){this._context=null,this._gpuContext&&(this._gpuContext.unconfigure(),this._gpuContext=null),!(!this._canvas||!this._dotLottieCore||!this._gpuDevice)&&this._setupGpuContext()}destroy(){this._gpuContext&&(this._gpuContext.unconfigure(),this._gpuContext=null),super.destroy(),this._deviceOwned&&this._gpuDevice&&this._gpuDevice.destroy(),this._gpuDevice=null}get device(){return this._gpuDevice}static setWasmUrl(e){$.setWasmUrl(e)}};export{ie as DotLottie};
2
2
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lottiefiles/dotlottie-web",
3
- "version": "0.66.0",
3
+ "version": "0.66.1",
4
4
  "type": "module",
5
5
  "description": "Lottie and DotLottie player for the web",
6
6
  "repository": {