PageSourceSearch

https://www.gastronom.ru/assets/chunks/chunk-2955c93d.js

js gastronom.ru collected 2026-10-02 05:14:56 UTC 74,868 bytes, 5 lines download raw bytes

vendor: 30,431 bytes, line 1
1import{Z as ct,at as H,V as ft,_ as Z,aa as lt,a1 as yt,aU as Tt,au as $t,av as M,X as Ut,a5 as vt,Y as Dt,U as zt,$ as Ot,a0 as ht,ap as tt,aj as j,ac as S,ak as Nt,ao as Wt,af as qt,ag as jt,ai as Ct,a9 as Lt,aB as Ht}from"./chunk-ca037795.js";import{f as Jt,d as kt,o as Gt,h as Mt,B as Yt,_ as Ft}from"./chunk-2d83ac2c.js";import{P as Vt}from"./chunk-129301cf.js";const Kt=ct({__name:"ClientOnly",setup(t){const e=H(!1);return ft(()=>{e.value=!0}),(n,i)=>(Z(),lt("div",null,[e.value?yt(n.$slots,"default",{key:0}):yt(n.$slots,"placeholder",{key:1})]))}});function st(t){return st=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},st(t)}function Xt(t,e){if(st(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(st(i)!="object")return i;throw TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Zt(t){var e=Xt(t,"string");return st(e)=="symbol"?e:e+""}function g(t,e,n){return(e=Zt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qt=class{requestAnimationFrame(t){return requestAnimationFrame(t)}cancelAnimationFrame(t){cancelAnimationFrame(t)}},te=class{constructor(){g(this,"_lastHandleId",0),g(this,"_lastImmediate",null)}requestAnimationFrame(t){return this._lastHandleId>=2**53-1&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{t(performance.now())}),this._lastHandleId}cancelAnimationFrame(t){this._lastImmediate&&clearImmediate(this._lastImmediate)}},ee=class{constructor(){g(this,"_strategy",void 0),this._strategy=typeof requestAnimationFrame=="function"?new Qt:new te}requestAnimationFrame(t){return this._strategy.requestAnimationFrame(t)}cancelAnimationFrame(t){this._strategy.cancelAnimationFrame(t)}};const B=typeof window<"u"&&window.document!==void 0,pt=new Uint8Array([80,75,3,4]),ne=["v","ip","op","layers","fr","w","h"];let r;const N=Array(128).fill(void 0);N.push(void 0,null,!0,!1);function l(t){return N[t]}let rt=N.length;function w(t){rt===N.length&&N.push(N.length+1);let e=rt;return rt=N[e],N[e]=t,e}function E(t,e){try{return t.apply(this,e)}catch(n){r.__wbindgen_export_0(w(n))}}function z(t){return t==null}const Bt=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&Bt.decode();let nt=null;function ot(){return(nt===null||nt.byteLength===0)&&(nt=new Uint8Array(r.memory.buffer)),nt}function L(t,e){return t>>>=0,Bt.decode(ot().subarray(t,t+e))}let d=0;const ut=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},ie=typeof ut.encodeInto=="function"?function(t,e){return ut.encodeInto(t,e)}:function(t,e){let n=ut.encode(t);return e.set(n),{read:t.length,written:n.length}};function p(t,e,n){if(n===void 0){let c=ut.encode(t),v=e(c.length,1)>>>0;return ot().subarray(v,v+c.length).set(c),d=c.length,v}let i=t.length,o=e(i,1)>>>0,s=ot(),_=0;for(;_<i;_++){let c=t.charCodeAt(_);if(c>127)break;s[o+_]=c}if(_!==i){_!==0&&(t=t.slice(_)),o=n(o,i,i=_+t.length*3,1)>>>0;let c=ot().subarray(o+_,o+i),v=ie(t,c);_+=v.written,o=n(o,i,_,1)>>>0}return d=_,o}let J=null;function b(){return(J===null||J.buffer.detached===!0||J.buffer.detached===void 0&&J.buffer!==r.memory.buffer)&&(J=new DataView(r.memory.buffer)),J}function dt(t,e){let n=e(t.length*1,1)>>>0;return ot().set(t,n/1),d=t.length,n}function re(t){t<132||(N[t]=rt,rt=t)}function F(t){let e=l(t);return re(t),e}const xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>{r.__wbindgen_export_4.get(t.dtor)(t.a,t.b)});function oe(t,e,n,i){let o={a:t,b:e,cnt:1,dtor:n},s=(..._)=>{o.cnt++;let c=o.a;o.a=0;try{return i(c,o.b,..._)}finally{--o.cnt===0?(r.__wbindgen_export_4.get(o.dtor)(c,o.b),xt.unregister(o)):o.a=c}};return s.original=o,xt.register(s,o,o),s}function se(t,e){let n=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),i=d,o=dt(e,r.__wbindgen_export_1),s=d;return r.register_font(n,i,o,s)!==0}let it=null;function ae(){return(it===null||it.byteLength===0)&&(it=new Float32Array(r.memory.buffer)),it}function _e(t,e){let n=e(t.length*4,4)>>>0;return ae().set(t,n/4),d=t.length,n}function le(t,e){let n=e(t.length*4,4)>>>0,i=b();for(let o=0;o<t.length;o++)i.setUint32(n+4*o,w(t[o]),!0);return d=t.length,n}function ue(t,e,n){r.__wbindgen_export_5(t,e,w(n))}const V=Object.freeze({Forward:0,0:"Forward",Reverse:1,1:"Reverse",Bounce:2,2:"Bounce",ReverseBounce:3,3:"ReverseBounce"}),U=Object.freeze({Idle:0,0:"Idle",Playing:1,1:"Playing",Paused:2,2:"Paused",Stopped:3,3:"Stopped",Tweening:4,4:"Tweening"}),Et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>r.__wbg_dotlottieplayerwasm_free(t>>>0,1));var de=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Et.unregister(this),t}free(){let t=this.__destroy_into_raw();r.__wbg_dotlottieplayerwasm_free(t,0)}clear_slot(t){let e=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),n=d;return r.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,e,n)!==0}layout_fit(){let t,e;try{let o=r.__wbindgen_add_to_stack_pointer(-16);r.dotlottieplayerwasm_layout_fit(o,this.__wbg_ptr);var n=b().getInt32(o+0,!0),i=b().getInt32(o+4,!0);return t=n,e=i,L(n,i)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export_3(t,e,1)}}loop_count(){return r.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}poll_event(){return F(r.dotlottieplayerwasm_poll_event(this.__wbg_ptr))}reset_slot(t){let e=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),n=d;return r.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,e,n)!==0}set_layout(t,e,n){let i=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),o=d;return r.dotlottieplayerwasm_set_layout(this.__wbg_ptr,i,o,e,n)!==0}set_marker(t){let e=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),n=d;r.dotlottieplayerwasm_set_marker(this.__wbg_ptr,e,n)}clear_slots(){return r.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)!==0}is_complete(){return r.dotlottieplayerwasm_is_complete(this.__wbg_ptr)!==0}reset_slots(){return r.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)!==0}reset_theme(){return r.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)!==0}segment_end(){return r.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_quality(t){return r.dotlottieplayerwasm_set_quality(this.__wbg_ptr,t)!==0}set_segment(t,e){return r.dotlottieplayerwasm_set_segment(this.__wbg_ptr,t,e)!==0}sm_set_seed(t){return r.dotlottieplayerwasm_sm_set_seed(this.__wbg_ptr,t)!==0}static unload_font(t){let e=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),n=d;return r.dotlottieplayerwasm_unload_font(e,n)!==0}animation_id(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.dotlottieplayerwasm_animation_id(n,this.__wbg_ptr);var t=b().getInt32(n+0,!0),e=b().getInt32(n+4,!0);let i;return t!==0&&(i=L(t,e).slice(),r.__wbindgen_export_3(t,e*1,1)),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}audio_volume(){return r.dotlottieplayerwasm_audio_volume(this.__wbg_ptr)}background_a(){return r.dotlottieplayerwasm_background_a(this.__wbg_ptr)}background_b(){return r.dotlottieplayerwasm_background_b(this.__wbg_ptr)}background_g(){return r.dotlottieplayerwasm_background_g(this.__wbg_ptr)}background_r(){return r.dotlottieplayerwasm_background_r(this.__wbg_ptr)}clear_marker(){r.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}emit_on_loop(){r.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}get_slot_ids(){return F(r.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr))}get_slot_str(t){try{let i=r.__wbindgen_add_to_stack_pointer(-16),o=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),s=d;r.dotlottieplayerwasm_get_slot_str(i,this.__wbg_ptr,o,s);var e=b().getInt32(i+0,!0),n=b().getInt32(i+4,!0);let _;return e!==0&&(_=L(e,n).slice(),r.__wbindgen_export_3(e,n*1,1)),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}marker_names(){return F(r.dotlottieplayerwasm_marker_names(this.__wbg_ptr))}set_autoplay(t){r.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,t)}set_slot_str(t,e){let n=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),i=d,o=p(e,r.__wbindgen_export_1,r.__wbindgen_export_2),s=d;return r.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,n,i,o,s)!==0}set_viewport(t,e,n,i){return r.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,t,e,n,i)!==0}total_frames(){return r.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}clear_segment(){return r.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)!==0}current_frame(){return r.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}get_slot_type(t){try{let i=r.__wbindgen_add_to_stack_pointer(-16),o=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),s=d;r.dotlottieplayerwasm_get_slot_type(i,this.__wbg_ptr,o,s);var e=b().getInt32(i+0,!0),n=b().getInt32(i+4,!0);let _;return e!==0&&(_=L(e,n).slice(),r.__wbindgen_export_3(e,n*1,1)),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_slots_str(){let t,e;try{let o=r.__wbindgen_add_to_stack_pointer(-16);r.dotlottieplayerwasm_get_slots_str(o,this.__wbg_ptr);var n=b().getInt32(o+0,!0),i=b().getInt32(o+4,!0);return t=n,e=i,L(n,i)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export_3(t,e,1)}}get_transform(){return F(r.dotlottieplayerwasm_get_transform(this.__wbg_ptr))}segment_start(){return r.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}set_slots_str(t){let e=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),n=d;return r.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,e,n)!==0}set_text_slot(t,e){let n=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),i=d,o=p(e,r.__wbindgen_export_1,r.__wbindgen_export_2),s=d;return r.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,n,i,o,s)!==0}set_transform(t){let e=_e(t,r.__wbindgen_export_1),n=d;return r.dotlottieplayerwasm_set_transform(this.__wbg_ptr,e,n)!==0}sm_get_inputs(){return F(r.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr))}sm_poll_event(){return F(r.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr))}sm_post_click(t,e){r.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,t,e)}animation_size(){return F(r.dotlottieplayerwasm_animation_size(this.__wbg_ptr))}current_marker(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.dotlottieplayerwasm_current_marker(n,this.__wbg_ptr);var t=b().getInt32(n+0,!0),e=b().getInt32(n+4,!0);let i;return t!==0&&(i=L(t,e).slice(),r.__wbindgen_export_3(t,e*1,1)),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}layout_align_x(){return r.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return r.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}load_animation(t){let e=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),n=d;return r.dotlottieplayerwasm_load_animation(this.__wbg_ptr,e,n)!==0}loop_animation(){return r.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)!==0}set_background(t,e,n,i){return r.dotlottieplayerwasm_set_background(this.__wbg_ptr,t,e,n,i)!==0}set_color_slot(t,e,n,i){let o=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),s=d;return r.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,o,s,e,n,i)!==0}set_image_slot(t,e){let n=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),i=d,o=p(e,r.__wbindgen_export_1,r.__wbindgen_export_2),s=d;return r.dotlottieplayerwasm_set_image_slot(this.__wbg_ptr,n,i,o,s)!==0}set_loop_count(t){r.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,t)}set_theme_data(t){let e=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),n=d;return r.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,e,n)!==0}sm_reset_input(t){let e=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),n=d;r.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,e,n)}manifest_string(){let t,e;try{let o=r.__wbindgen_add_to_stack_pointer(-16);r.dotlottieplayerwasm_manifest_string(o,this.__wbg_ptr);var n=b().getInt32(o+0,!0),i=b().getInt32(o+4,!0);return t=n,e=i,L(n,i)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export_3(t,e,1)}}set_scalar_slot(t,e){let n=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),i=d;return r.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,n,i,e)!==0}set_vector_slot(t,e,n){let i=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),o=d;return r.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,i,o,e,n)!==0}setup_sw_target(t,e){return r.dotlottieplayerwasm_setup_sw_target(this.__wbg_ptr,t,e)!==0}get_pixel_buffer(){return F(r.dotlottieplayerwasm_get_pixel_buffer(this.__wbg_ptr))}set_audio_volume(t){r.dotlottieplayerwasm_set_audio_volume(this.__wbg_ptr,t)}sm_current_state(){let t,e;try{let o=r.__wbindgen_add_to_stack_pointer(-16);r.dotlottieplayerwasm_sm_current_state(o,this.__wbg_ptr);var n=b().getInt32(o+0,!0),i=b().getInt32(o+4,!0);return t=n,e=i,L(n,i)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export_3(t,e,1)}}state_machine_id(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.dotlottieplayerwasm_state_machine_id(n,this.__wbg_ptr);var t=b().getInt32(n+0,!0),e=b().getInt32(n+4,!0);let i;return t!==0&&(i=L(t,e).slice(),r.__wbindgen_export_3(t,e*1,1)),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_state_machine(t){try{let i=r.__wbindgen_add_to_stack_pointer(-16),o=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),s=d;r.dotlottieplayerwasm_get_state_machine(i,this.__wbg_ptr,o,s);var e=b().getInt32(i+0,!0),n=b().getInt32(i+4,!0);let _;return e!==0&&(_=L(e,n).slice(),r.__wbindgen_export_3(e,n*1,1)),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_position_slot(t,e,n){let i=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),o=d;return r.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,i,o,e,n)!==0}current_loop_count(){return r.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}set_asset_resolver(t){r.dotlottieplayerwasm_set_asset_resolver(this.__wbg_ptr,z(t)?0:w(t))}sm_framework_setup(){return F(r.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr))}sm_post_pointer_up(t,e){r.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,t,e)}state_machine_load(t){let e=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),n=d;return r.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,e,n)!==0}load_dotlottie_data(t){let e=dt(t,r.__wbindgen_export_1),n=d;return r.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,e,n)!==0}sm_get_string_input(t){try{let i=r.__wbindgen_add_to_stack_pointer(-16),o=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),s=d;r.dotlottieplayerwasm_sm_get_string_input(i,this.__wbg_ptr,o,s);var e=b().getInt32(i+0,!0),n=b().getInt32(i+4,!0);let _;return e!==0&&(_=L(e,n).slice(),r.__wbindgen_export_3(e,n*1,1)),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}sm_set_string_input(t,e){let n=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),i=d,o=p(e,r.__wbindgen_export_1,r.__wbindgen_export_2),s=d;return r.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,n,i,o,s)!==0}sm_get_boolean_input(t){let e=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),n=d,i=r.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,e,n);return i===16777215?void 0:i!==0}sm_get_numeric_input(t){let e=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),n=d,i=r.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,e,n);return i===4294967297?void 0:i}sm_post_pointer_down(t,e){r.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,t,e)}sm_post_pointer_exit(t,e){r.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,t,e)}sm_post_pointer_move(t,e){r.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,t,e)}sm_set_boolean_input(t,e){let n=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),i=d;return r.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,n,i,e)!==0}sm_set_numeric_input(t,e){let n=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),i=d;return r.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,n,i,e)!==0}state_machine_unload(){r.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_post_pointer_enter(t,e){r.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,t,e)}load_animation_from_id(t){let e=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),n=d;return r.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,e,n)!==0}sm_poll_internal_event(){return F(r.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr))}use_frame_interpolation(){return r.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)!==0}reset_current_loop_count(){r.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}sm_override_current_state(t,e){let n=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),i=d;return r.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,n,i,e)!==0}state_machine_load_from_id(t){let e=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),n=d;return r.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,e,n)!==0}set_use_frame_interpolation(t){r.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,t)}constructor(){let t=r.dotlottieplayerwasm_new();return this.__wbg_ptr=t>>>0,Et.register(this,this.__wbg_ptr,this),this}mode(){return r.dotlottieplayerwasm_mode(this.__wbg_ptr)}play(){return r.dotlottieplayerwasm_play(this.__wbg_ptr)!==0}stop(){return r.dotlottieplayerwasm_stop(this.__wbg_ptr)!==0}tick(t){return r.dotlottieplayerwasm_tick(this.__wbg_ptr,t)!==0}pause(){return r.dotlottieplayerwasm_pause(this.__wbg_ptr)!==0}speed(){return r.dotlottieplayerwasm_speed(this.__wbg_ptr)}width(){return r.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return r.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}render(){return r.dotlottieplayerwasm_render(this.__wbg_ptr)!==0}status(){return r.dotlottieplayerwasm_status(this.__wbg_ptr)}markers(){return F(r.dotlottieplayerwasm_markers(this.__wbg_ptr))}sm_fire(t){let e=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),n=d;return r.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,e,n)!==0}sm_stop(){return r.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)!==0}sm_tick(t){return r.dotlottieplayerwasm_sm_tick(this.__wbg_ptr,t)!==0}autoplay(){return r.dotlottieplayerwasm_autoplay(this.__wbg_ptr)!==0}duration(){return r.dotlottieplayerwasm_duration(this.__wbg_ptr)}set_loop(t){r.dotlottieplayerwasm_set_loop(this.__wbg_ptr,t)}set_mode(t){r.dotlottieplayerwasm_set_mode(this.__wbg_ptr,t)}sm_start(t,e){let n=le(e,r.__wbindgen_export_1),i=d;return r.dotlottieplayerwasm_sm_start(this.__wbg_ptr,t,n,i)!==0}theme_id(){try{let n=r.__wbindgen_add_to_stack_pointer(-16);r.dotlottieplayerwasm_theme_id(n,this.__wbg_ptr);var t=b().getInt32(n+0,!0),e=b().getInt32(n+4,!0);let i;return t!==0&&(i=L(t,e).slice(),r.__wbindgen_export_3(t,e*1,1)),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}load_font(t,e){let n=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),i=d,o=dt(e,r.__wbindgen_export_1),s=d;return r.dotlottieplayerwasm_load_font(this.__wbg_ptr,n,i,o,s)!==0}set_frame(t){return r.dotlottieplayerwasm_set_frame(this.__wbg_ptr,t)!==0}set_speed(t){r.dotlottieplayerwasm_set_speed(this.__wbg_ptr,t)}set_theme(t){let e=p(t,r.__wbindgen_export_1,r.__wbindgen_export_2),n=d;return r.dotlottieplayerwasm_set_theme(this.__wbg_ptr,e,n)!==0}sm_status(){let t,e;try{let o=r.__wbindgen_add_to_stack_pointer(-16);r.dotlottieplayerwasm_sm_status(o,this.__wbg_ptr);var n=b().getInt32(o+0,!0),i=b().getInt32(o+4,!0);return t=n,e=i,L(n,i)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_export_3(t,e,1)}}};async function ce(t,e){if(typeof Response=="function"&&t instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(t,e)}catch(i){if(t.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",i);else throw i}let n=await t.arrayBuffer();return await WebAssembly.instantiate(n,e)}else{let n=await WebAssembly.instantiate(t,e);return n instanceof WebAssembly.Instance?{instance:n,module:t}:n}}function he(){let t={};return t.wbg={},t.wbg.__wbg_appendChild_8204974b7328bf98=function(){return E(function(e,n){return w(l(e).appendChild(l(n)))},arguments)},t.wbg.__wbg_body_942ea927546a04ba=function(e){let n=l(e).body;return z(n)?0:w(n)},t.wbg.__wbg_buffer_609cc3eee51ed158=function(e){let n=l(e).buffer;return w(n)},t.wbg.__wbg_call_672a4d21634d4a24=function(){return E(function(e,n){return w(l(e).call(l(n)))},arguments)},t.wbg.__wbg_call_7cccdd69e0791ae2=function(){return E(function(e,n,i){return w(l(e).call(l(n),l(i)))},arguments)},t.wbg.__wbg_catch_a6e601879b2610e9=function(e,n){return w(l(e).catch(l(n)))},t.wbg.__wbg_createElement_8c9931a732ee2fea=function(){return E(function(e,n,i){return w(l(e).createElement(L(n,i)))},arguments)},t.wbg.__wbg_createObjectURL_6e98d2f9c7bd9764=function(){return E(function(e,n){let i=p(URL.createObjectURL(l(n)),r.__wbindgen_export_1,r.__wbindgen_export_2),o=d;b().setInt32(e+4,o,!0),b().setInt32(e+0,i,!0)},arguments)},t.wbg.__wbg_currentTime_7940fe39798a1ca0=function(e){return l(e).currentTime},t.wbg.__wbg_data_d1ed736c1e42b10e=function(e,n){let i=l(n).data,o=dt(i,r.__wbindgen_export_1),s=d;b().setInt32(e+4,s,!0),b().setInt32(e+0,o,!0)},t.wbg.__wbg_document_d249400bd7bd996d=function(e){let n=l(e).document;return z(n)?0:w(n)},t.wbg.__wbg_drawImage_803dcc46897223c9=function(){return E(function(e,n,i,o){l(e).drawImage(l(n),i,o)},arguments)},t.wbg.__wbg_duration_4d32c501d87796c1=function(e){return l(e).duration},t.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,n){let i,o;try{i=e,o=n,console.error(L(e,n))}finally{r.__wbindgen_export_3(i,o,1)}},t.wbg.__wbg_getContext_e9cf379449413580=function(){return E(function(e,n,i){let o=l(e).getContext(L(n,i));return z(o)?0:w(o)},arguments)},t.wbg.__wbg_getImageData_c02374a30b126dab=function(){return E(function(e,n,i,o,s){return w(l(e).getImageData(n,i,o,s))},arguments)},t.wbg.__wbg_instanceof_CanvasRenderingContext2d_df82a4d3437bf1cc=function(e){let n;try{n=l(e)instanceof CanvasRenderingContext2D}catch{n=!1}return n},t.wbg.__wbg_instanceof_HtmlCanvasElement_2ea67072a7624ac5=function(e){let n;try{n=l(e)instanceof HTMLCanvasElement}catch{n=!1}return n},t.wbg.__wbg_instanceof_HtmlVideoElement_7f414b32f362e317=function(e){let n;try{n=l(e)instanceof HTMLVideoElement}catch{n=!1}return n},t.wbg.__wbg_instanceof_Window_def73ea0955fc569=function(e){let n;try{n=l(e)instanceof Window}catch{n=!1}return n},t.wbg.__wbg_length_a446193dc22c12f8=function(e){return l(e).length},t.wbg.__wbg_load_2671477a3293aadb=function(e){l(e).load()},t.wbg.__wbg_new_405e22f390576ce2=function(){return w({})},t.wbg.__wbg_new_78feb108b6472713=function(){return w([])},t.wbg.__wbg_new_8a6f238a6ece86ea=function(){return w(Error())},t.wbg.__wbg_new_a12002a7f91c75be=function(e){return w(new Uint8Array(l(e)))},t.wbg.__wbg_newnoargs_105ed471475aaf50=function(e,n){return w(Function(L(e,n)))},t.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(e,n,i){return w(new Uint8Array(l(e),n>>>0,i>>>0))},t.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return w(new Float32Array(e>>>0))},t.wbg.__wbg_newwithsrc_20307ca7e8762a81=function(){return E(function(e,n){return w(new Audio(L(e,n)))},arguments)},t.wbg.__wbg_newwithu8arraysequenceandoptions_068570c487f69127=function(){return E(function(e,n){return w(new Blob(l(e),l(n)))},arguments)},t.wbg.__wbg_pause_b74c96d69f769518=function(){return E(function(e){l(e).pause()},arguments)},t.wbg.__wbg_paused_9b2affc0a8a62e86=function(e){return l(e).paused},t.wbg.__wbg_play_f6ec5fc4e84b0d26=function(){return E(function(e){return w(l(e).play())},arguments)},t.wbg.__wbg_push_737cfc8c1432c2c6=function(e,n){return l(e).push(l(n))},t.wbg.__wbg_readyState_017c08aa5e73517e=function(e){return l(e).readyState},t.wbg.__wbg_remove_e2d2659f3128c045=function(e){l(e).remove()},t.wbg.__wbg_revokeObjectURL_27267efebeb457c7=function(){return E(function(e,n){URL.revokeObjectURL(L(e,n))},arguments)},t.wbg.__wbg_seeking_c0427be38e698dcd=function(e){return l(e).seeking},t.wbg.__wbg_setAttribute_2704501201f15687=function(){return E(function(e,n,i,o,s){l(e).setAttribute(L(n,i),L(o,s))},arguments)},t.wbg.__wbg_set_65595bdd868b3009=function(e,n,i){l(e).set(l(n),i>>>0)},t.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return E(function(e,n,i){return Reflect.set(l(e),l(n),l(i))},arguments)},t.wbg.__wbg_setcssText_e018c236104b0233=function(e,n,i){l(e).cssText=L(n,i)},t.wbg.__wbg_setcurrentTime_64727eddd3966512=function(e,n){l(e).currentTime=n},t.wbg.__wbg_setheight_da683a33fa99843c=function(e,n){l(e).height=n>>>0},t.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,n,i){l(e)[n>>>0]=i},t.wbg.__wbg_setmuted_e93fc48340c43e67=function(e,n){l(e).muted=n!==0},t.wbg.__wbg_setplaybackRate_f5c3b8896f82425e=function(e,n){l(e).playbackRate=n},t.wbg.__wbg_setpreload_d2fb02758e3f8e3a=function(e,n,i){l(e).preload=L(n,i)},t.wbg.__wbg_setsrc_3a759736e2659904=function(e,n,i){l(e).src=L(n,i)},t.wbg.__wbg_settype_39ed370d3edd403c=function(e,n,i){l(e).type=L(n,i)},t.wbg.__wbg_setvolume_3895e06a030ca4f7=function(e,n){l(e).volume=n},t.wbg.__wbg_setwidth_c5fed9f5e7f0b406=function(e,n){l(e).width=n>>>0},t.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,n){let i=l(n).stack,o=p(i,r.__wbindgen_export_1,r.__wbindgen_export_2),s=d;b().setInt32(e+4,s,!0),b().setInt32(e+0,o,!0)},t.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07=function(){let e=typeof global>"u"?null:global;return z(e)?0:w(e)},t.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0=function(){let e=typeof globalThis>"u"?null:globalThis;return z(e)?0:w(e)},t.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819=function(){let e=typeof self>"u"?null:self;return z(e)?0:w(e)},t.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40=function(){let e=typeof window>"u"?null:window;return z(e)?0:w(e)},t.wbg.__wbg_style_fb30c14e5815805c=function(e){let n=l(e).style;return w(n)},t.wbg.__wbg_videoHeight_3a43327a766c1f03=function(e){return l(e).videoHeight},t.wbg.__wbg_videoWidth_4b400cf6f4744a4d=function(e){return l(e).videoWidth},t.wbg.__wbindgen_cb_drop=function(e){let n=F(e).original;return n.cnt--==1?(n.a=0,!0):!1},t.wbg.__wbindgen_closure_wrapper109=function(e,n,i){return w(oe(e,n,7,ue))},t.wbg.__wbindgen_is_null=function(e){return l(e)===null},t.wbg.__wbindgen_is_undefined=function(e){return l(e)===void 0},t.wbg.__wbindgen_memory=function(){let e=r.memory;return w(e)},t.wbg.__wbindgen_number_new=function(e){return w(e)},t.wbg.__wbindgen_object_clone_ref=function(e){return w(l(e))},t.wbg.__wbindgen_object_drop_ref=function(e){F(e)},t.wbg.__wbindgen_string_get=function(e,n){let i=l(n),o=typeof i=="string"?i:void 0;var s=z(o)?0:p(o,r.__wbindgen_export_1,r.__wbindgen_export_2),_=d;b().setInt32(e+4,_,!0),b().setInt32(e+0,s,!0)},t.wbg.__wbindgen_string_new=function(e,n){return w(L(e,n))},t.wbg.__wbindgen_throw=function(e,n){throw Error(L(e,n))},t}function pe(t,e){return r=t.exports,Rt.__wbindgen_wasm_module=e,J=null,it=null,nt=null,r}async function Rt(t){if(r!==void 0)return r;if(t!==void 0&&(Object.getPrototypeOf(t)===Object.prototype?{module_or_path:t}=t:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),t===void 0)throw Error("WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().");let e=he();(typeof t=="string"||typeof Request=="function"&&t instanceof Request||typeof URL=="function"&&t instanceof URL)&&(t=fetch(t));let{instance:n,module:i}=await ce(await t,e);return pe(n,i)}var ge=class{constructor(){g(this,"_eventListeners",new Map)}addEventListener(t,e){let n=this._eventListeners.get(t);n||(n=new Set,this._eventListeners.set(t,n)),n.add(e)}removeEventListener(t,e){let n=this._eventListeners.get(t);n&&(e?(n.delete(e),n.size===0&&this._eventListeners.delete(t)):this._eventListeners.delete(t))}dispatch(t){var e;(e=this._eventListeners.get(t.type))==null||e.forEach(n=>n(t))}removeAllEventListeners(){this._eventListeners.clear()}},G=class O{static _initializeObserver(){O._observer||(O._observer=new IntersectionObserver(e=>{e.forEach(n=>{let i=O._observedCanvases.get(n.target);i&&(n.isIntersecting?i.unfreeze():i.freeze())})},{threshold:0}))}static observe(e,n){var i;O._initializeObserver(),!O._observedCanvases.has(e)&&(O._observedCanvases.set(e,n),(i=O._observer)==null||i.observe(e))}static unobserve(e){var n,i;(n=O._observer)==null||n.unobserve(e),O._observedCanvases.delete(e),O._observedCanvases.size===0&&((i=O._observer)==null||i.disconnect(),O._observer=null)}};g(G,"_observer",null),g(G,"_observedCanvases",new Map);var Y=class x{static _initializeObserver(){x._observer||(x._observer=new ResizeObserver(e=>{e.forEach(n=>{let i=x._observedCanvases.get(n.target);if(!i)return;let[o,s]=i;clearTimeout(s);let _=setTimeout(()=>{o.resize()},100);x._observedCanvases.set(n.target,[o,_])})}))}static observe(e,n){var i;x._initializeObserver(),!x._observedCanvases.has(e)&&(x._observedCanvases.set(e,[n,0]),(i=x._observer)==null||i.observe(e))}static unobserve(e){var i;let n=x._observedCanvases.get(e);if(n){let o=n[1];o&&clearTimeout(o)}(i=x._observer)==null||i.unobserve(e),x._observedCanvases.delete(e),!x._observedCanvases.size&&x._observer&&(x._observer.disconnect(),x._observer=null)}};g(Y,"_observer",null),g(Y,"_observedCanvases",new Map);function me(t){return/^#([\da-f]{6}|[\da-f]{8})$/iu.test(t)}function fe(t){if(!me(t))return[0,0,0,0];let e=t.replace("#","");return e=e.length===6?`${e}ff`:e,[parseInt(e.slice(0,2),16)/255,parseInt(e.slice(2,4),16)/255,parseInt(e.slice(4,6),16)/255,parseInt(e.slice(6,8),16)/255]}function St(t){if(t.byteLength<4)return!1;let e=new Uint8Array(t.slice(0,pt.byteLength));for(let n=0;n<pt.length;n+=1)if(pt[n]!==e[n])return!1;return!0}function be(t){return ne.every(e=>Object.hasOwn(t,e))}function At(t){return typeof t=="string"?/^\s*\{/u.test(t)&&/\}\s*$/u.test(t):be(t)}function It(){return 1+((B?window.devicePixelRatio:1)-1)*.75}function at(t){let e=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth;return!(e.bottom<0||e.top>n||e.right<0||e.left>i)}function X(t){let e=t.target;if(e instanceof HTMLCanvasElement){let n=e.getBoundingClientRect();if(n.width===0||n.height===0||e.width===0||e.height===0)return null;let i=e.width/n.width,o=e.height/n.height,s=(t.clientX-n.left)*i,_=(t.clientY-n.top)*o;return!Number.isFinite(s)||!Number.isFinite(_)||Number.isNaN(s)||Number.isNaN(_)?null:{x:s,y:_}}return null}
1function we(t){return new Promise((e,n)=>{let i=new FileReader;i.onerror=()=>{var o;return n((o=i.error)!=null?o:Error("Failed to read image slot source"))},i.onload=()=>e(i.result),i.readAsDataURL(t)})}async function ye(t){if(!/^https?:\/\//i.test(t))return t;let e=await fetch(t);if(!e.ok)throw Error(`Failed to fetch image slot source from URL: ${t}. ${e.status}: ${e.statusText}`);return we(await e.blob())}function ve(t){let e=t.replace("OpenUrl: ",""),n=e.indexOf(" | Target: "),i,o;n===-1?(i=e,o="_blank"):(i=e.substring(0,n),o=e.substring(n+11)),window.open(i,o)}function Ce(t,e,n){let i=null,o=e,s=n;async function _(f){await t({module_or_path:f})}async function c(f){let C=await fetch(f);if(!C.ok)throw Error(`fetch ${f} responded with ${C.status} ${C.statusText}`);await t({module_or_path:await C.arrayBuffer()})}async function v(f,C){try{return await f(C),null}catch(h){return h}}return{load(){if(!i){let f=o,C=null;C=(async()=>{let h=await v(_,f);if(!h)return;console.warn(`Primary WASM load failed from ${f}: ${h.message}`);let y=null;if(s!==null){if(console.warn(`Attempting to load WASM from backup URL: ${s}`),y=await v(_,s),!y)return;console.warn(`Backup WASM load failed from ${s}: ${y.message}`)}console.warn("Retrying WASM load with buffered instantiation");let k=await v(c,f);if(k&&(console.warn(`Buffered WASM load from ${f} failed: ${k.message}`),!(s!==null&&(k=await v(c,s),!k))))throw console.error(`Primary WASM URL failed: ${h.message}`),y&&console.error(`Backup WASM URL failed: ${y.message}`),console.error(`Buffered fallback failed: ${k.message}`),i===C&&(i=null),Error("WASM loading failed from all sources.")})(),i=C}return i},setWasmUrl(f){if(typeof f!="string"||f.trim()==="")throw TypeError("setWasmUrl() expects a non-empty URL string");s=null,f!==o&&(o=f,i=null)}}}let et=null;function _t(){return et!=null||(et=Ce(Rt,"https://cdn.jsdelivr.net/npm/@lottiefiles/[email protected]/dist/dotlottie-player.wasm","https://unpkg.com/@lottiefiles/[email protected]/dist/dotlottie-player.wasm")),et}const gt=t=>{switch(t){case"reverse":return V.Reverse;case"bounce":return V.Bounce;case"reverse-bounce":return V.ReverseBounce;default:return V.Forward}},Pt=t=>{switch(t){case V.Reverse:return"reverse";case V.Bounce:return"bounce";case V.ReverseBounce:return"reverse-bounce";default:return"forward"}},Le=t=>{switch(t){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 ke=class{constructor(t){var n,i,o,s;g(this,"_canvas",null),g(this,"_pendingLoad",null),g(this,"_srcFetchAbort",null),g(this,"_context",null),g(this,"_eventManager",void 0),g(this,"_animationFrameId",null),g(this,"_frameManager",void 0),g(this,"_boundAnimationLoop",void 0),g(this,"_dotLottieCore",null),g(this,"_stateMachineId",""),g(this,"_stateMachineConfig",null),g(this,"_isStateMachineRunning",!1),g(this,"_renderConfig",{}),g(this,"_isFrozen",!1),g(this,"_backgroundColor",null),g(this,"_lastFrameTime",null),g(this,"_boundOnClick",null),g(this,"_boundOnPointerUp",null),g(this,"_boundOnPointerDown",null),g(this,"_boundOnPointerMove",null),g(this,"_boundOnPointerEnter",null),g(this,"_boundOnPointerLeave",null),g(this,"_bufferMismatchCount",0),g(this,"_lastExpectedBufferSize",0),g(this,"_cachedImageData",null),g(this,"_cachedImageDataBuffer",null),g(this,"_cachedImageDataByteOffset",0),g(this,"_marker",""),g(this,"_segment",null),this._canvas=(n=t.canvas)!=null?n:null,this._eventManager=new ge,this._frameManager=new ee,this._boundAnimationLoop=this._animationLoop.bind(this),this._renderConfig={...t.renderConfig,devicePixelRatio:((i=t.renderConfig)==null?void 0:i.devicePixelRatio)||It(),freezeOnOffscreen:(s=(o=t.renderConfig)==null?void 0:o.freezeOnOffscreen)!=null?s:!0};let e=null;t.src&&!t.data&&(this._srcFetchAbort=new AbortController,e=this._fetchData(t.src,this._srcFetchAbort.signal),e.catch(()=>{})),this._initWasm().then(()=>{var _,c,v,f,C,h,y,k,A,I,P,R,T,$,m,u,D,K;this._dotLottieCore=this._createCore(),this._dotLottieCore.set_autoplay((_=t.auto
1play)!=null?_:!1),this._dotLottieCore.set_loop((c=t.loop)!=null?c:!1),this._dotLottieCore.set_loop_count((v=t.loopCount)!=null?v:0),this._dotLottieCore.set_mode(gt((f=t.mode)!=null?f:"forward")),this._dotLottieCore.set_speed((C=t.speed)!=null?C:1),this._dotLottieCore.set_use_frame_interpolation((h=t.useFrameInterpolation)!=null?h:!0),t.segment&&t.segment.length===2&&(this._segment=[t.segment[0],t.segment[1]],this._dotLottieCore.set_segment(this._segment[0],this._segment[1])),this._marker=(y=t.marker)!=null?y:"",this._marker&&this._dotLottieCore.set_marker(this._marker),this._dotLottieCore.set_layout((A=(k=t.layout)==null?void 0:k.fit)!=null?A:"contain",(R=(P=(I=t.layout)==null?void 0:I.align)==null?void 0:P[0])!=null?R:.5,(m=($=(T=t.layout)==null?void 0:T.align)==null?void 0:$[1])!=null?m:.5),this._applyAssetResolver((u=t.assetResolver)!=null?u:null),this._stateMachineId=(D=t.stateMachineId)!=null?D:"",this._stateMachineConfig=(K=t.stateMachineConfig)!=null?K:null,this._onCoreCreated(),this._eventManager.dispatch({type:"ready"}),t.data?this._canvas?this._loadFromData(t.data):this._pendingLoad={data:t.data}:t.src&&(this._canvas?this._loadFromSrc(t.src,e):this._pendingLoad={src:t.src,dataPromise:e}),t.backgroundColor&&this.setBackgroundColor(t.backgroundColor)}).catch(_=>{var c;(c=this._srcFetchAbort)==null||c.abort(),console.error("[dotlottie-web] Initialization failed:",_),this._eventManager.dispatch({type:"loadError",error:Error(`Failed to load wasm module: ${_}`)})})}async _initWasm(){return _t().load()}_createCore(){return new de}_onCoreCreated(){}_setupTarget(t,e){return this._dotLottieCore?this._dotLottieCore.setup_sw_target(t,e):!1}_drainPlayerEvents({skipFrame:t=!1}={}){var e,n,i;if(this._dotLottieCore)for(;;){let o=this._dotLottieCore.poll_event();if(o==null)break;switch(o.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":queueMicrotask(()=>this._eventManager.dispatch({type:"play"}));break;case"Pause":queueMicrotask(()=>this._eventManager.dispatch({type:"pause"}));break;case"Stop":queueMicrotask(()=>this._eventManager.dispatch({type:"stop"}));break;case"Frame":{let s=(e=o.frameNo)!=null?e:0;t||queueMicrotask(()=>this._eventManager.dispatch({type:"frame",currentFrame:s}));break}case"Render":{let s=(n=o.frameNo)!=null?n:0;t||queueMicrotask(()=>this._eventManager.dispatch({type:"render",currentFrame:s}));break}case"Loop":{let s=(i=o.loopCount)!=null?i:0;queueMicrotask(()=>this._eventManager.dispatch({type:"loop",loopCount:s}));break}case"Complete":queueMicrotask(()=>this._eventManager.dispatch({type:"complete"}));break}}}_discardPlayerEvents(){var t;for(;((t=this._dotLottieCore)==null?void 0:t.poll_event())!=null;);}_drainSmEvents(){var t,e,n,i,o,s,_,c,v,f,C;if(this._dotLottieCore){for(;;){let h=this._dotLottieCore.sm_poll_event();if(h==null)break;switch(h.type){case"Start":queueMicrotask(()=>{this._isStateMachineRunning=!0,this._eventManager.dispatch({type:"stateMachineStart"}),this._startAnimationLoop()});break;case"Stop":queueMicrotask(()=>{var y;this._isStateMachineRunning=!1,this._eventManager.dispatch({type:"stateMachineStop"}),((y=this._dotLottieCore)==null?void 0:y.status())!==U.Playing&&this._stopAnimationLoop()});break;case"CustomEvent":this._eventManager.dispatch({type:"stateMachineCustomEvent",eventName:(t=h.message)!=null?t:""});break;case"BooleanInputChange":this._eventManager.dispatch({type:"stateMachineBooleanInputValueChange",inputName:(e=h.name)!=null?e:"",newValue:h.newValue,oldValue:h.oldValue});break;case"NumericInputChange":this._eventManager.dispatch({type:"stateMachineNumericInputValueChange",inputName:(n=h.name)!=null?n:"",newValue:h.newValue,oldValue:h.oldValue});break;case"StringInputChange":this._eventManager.dispatch({type:"stateMachineStringInputValueChange",inputName:(i=h.name)!=null?i:"",newValue:h.newValue,oldValue:h.oldValue});break;case"InputFired":this._eventManager.dispatch({type:"stateMachineInputFired",inputName:(o=h.name)!=null?o:""});break;case"Transition":this._eventManager.dispatch({type:"stateMachineTransition",fromState:(s=
1h.previousState)!=null?s:"",toState:(_=h.newState)!=null?_:""});break;case"StateEntered":this._eventManager.dispatch({type:"stateMachineStateEntered",state:(c=h.state)!=null?c:""});break;case"StateExit":this._eventManager.dispatch({type:"stateMachineStateExit",state:(v=h.state)!=null?v:""});break;case"Error":this._eventManager.dispatch({type:"stateMachineError",error:(f=h.message)!=null?f:""});break}}for(;;){let h=this._dotLottieCore.sm_poll_internal_event();if(h==null)break;if(h.type==="Message"){let y=(C=h.message)!=null?C:"";B&&y.startsWith("OpenUrl: ")?ve(y):this._eventManager.dispatch({type:"stateMachineInternalMessage",message:y})}}}}_dispatchError(t){console.error(t),this._eventManager.dispatch({type:"loadError",error:Error(t)})}async _fetchData(t,e=null){let n=await fetch(t,{signal:e});if(!n.ok)throw Error(`Failed to fetch animation data from URL: ${t}. ${n.status}: ${n.statusText}`);let i=await n.arrayBuffer();return St(i)?i:new TextDecoder().decode(i)}_loadFromData(t){if(this._dotLottieCore===null)return;if(!this._canvas){console.warn("[dotlottie-web] Cannot load animation without canvas. Call setCanvas() first.");return}this._syncCanvasSize(),this._setupTarget(this._canvas.width,this._canvas.height);let e=!1;if(typeof t=="string"){if(e=this._dotLottieCore.load_animation(t),!e&&!At(t)){this._discardPlayerEvents(),this._dispatchError("Invalid Lottie JSON string: The provided string does not conform to the Lottie JSON format.");return}}else if(t instanceof ArrayBuffer){if(!St(t)){this._dispatchError("Invalid dotLottie ArrayBuffer: The provided ArrayBuffer does not conform to the dotLottie format.");return}e=this._dotLottieCore.load_dotlottie_data(new Uint8Array(t))}else if(typeof t=="object"){if(!At(t)){this._dispatchError("Invalid Lottie JSON object: The provided object does not conform to the Lottie JSON format.");return}e=this._dotLottieCore.load_animation(JSON.stringify(t))}else{this._dispatchError(`Unsupported data type for animation data. Expected:
2          - string (Lottie JSON),
3          - ArrayBuffer (dotLottie),
4          - object (Lottie JSON).
5          Received: ${typeof t}`);return}if(e){if(this._renderConfig.quality!==void 0&&this._dotLottieCore.set_quality(this._renderConfig.quality),this._drainPlayerEvents({skipFrame:!!this._marker||!!this._segment}),this._marker&&this._dotLottieCore.set_marker(this._marker),this._segment){this._dotLottieCore.set_segment(this._segment[0],this._segment[1]);let n=Pt(this._dotLottieCore.mode()),i=n==="reverse"||n==="reverse-bounce"?this._segment[1]:this._segment[0];this._dotLottieCore.set_frame(i)}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.status()===U.Playing&&this._startAnimationLoop(),B&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.freezeOnOffscreen&&(G.observe(this._canvas,this),at(this._canvas)||this.freeze()),this._renderConfig.autoResize&&Y.observe(this._canvas,this))}else this._drainPlayerEvents()}_loadFromSrc(t,e){(e!=null?e:this._fetchData(t)).then(n=>this._loadFromData(n)).catch(n=>this._dispatchError(`Failed to load animation data from URL: ${t}. ${n}`))}get buffer(){return this._dotLottieCore?this._dotLottieCore.get_pixel_buffer():null}get activeAnimationId(){var t,e;return(e=(t=this._dotLottieCore)==null?void 0:t.animation_id())!=null?e:void 0}get activeThemeId(){var t,e;return(e=(t=this._dotLottieCore)==null?void 0:t.theme_id())!=null?e:void 0}get layout(){if(this._dotLottieCore)return{align:[this._dotLottieCore.layout_align_x(),this._dotLottieCore.layout_align_y()],fit:Le(this._dotLottieCore.layout_fit())}}get marker(){var t,e;return(e=(t=this._dotLottieCore)==null?void 0:t.current_marker())!=null?e:""}get manifest(){var t;try{let e=(t=this._dotLottieCore)==null?void 0:t.manifest_string();if(this._dotLottieCore===null||!e)return null;let n=JSON.parse(e);return Object.keys(n).length===0?null:n}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){if(this._dotLottieCore)return[this._dotLottieCore.segment_start(),this._dotLottieCore.segment_end()]}get loop(){var t,e;return(e=(t=this._dotLottieCore)==null?void 0:t.loop_animation())!=null?e:!1}get mode(){return this._dotLottieCore?Pt(this._dotLottieCore.mode()):"forward"}get isFrozen(){return this._isFrozen}get isStateMachineRunning(){return this._isStateMachineRunning}get backgroundColor(){var t;return(t=this._backgroundColor)!=null?t:""}get autoplay(){var t,e;return(e=(t=this._dotLottieCore)==null?void 0:t.autoplay())!=null?e:!1}get useFrameInterpolation(){var t,e;return(e=(t=this._dotLottieCore)==null?void 0:t.use_frame_interpolation())!=null?e:!1}get speed(){var t,e;return(e=(t=this._dotLottieCore)==null?void 0:t.speed())!=null?e:0}get isReady(){return this._dotLottieCore!==null}get isLoaded(){var t,e;return((e=(t=this._dotLottieCore)==null?void 0:t.status())!=null?e:U.Idle)!==U.Idle}get isPlaying(){var t;return((t=this._dotLottieCore)==null?void 0:t.status())===U.Playing}get isPaused(){var t;return((t=this._dotLottieCore)==null?void 0:t.status())===U.Paused}get isStopped(){var t;return((t=this._dotLottieCore)==null?void 0:t.status())===U.Stopped}get currentFrame(){return this._dotLottieCore?Math.round(this._dotLottieCore.current_frame()*100)/100:0}get loopCount(){var t,e;return(e=(t=this._dotLottieCore)==null?void 0:t.current_loop_count())!=null?e:0}get totalFrames(){var t,e;return(e=(t=this._dotLottieCore)==null?void 0:t.total_frames())!=null?e:0}get duration(){var t,e;return((e=(t=this._dotLottieCore)==null?void 0:t.duration())!=null?e:0)/1e3}
5get canvas(){return this._canvas}load(t){var e,n,i,o,s,_,c,v,f,C,h,y,k,A,I,P;this._dotLottieCore!==null&&(this._stopAnimationLoop(),this._cleanupCanvas(),this._isFrozen=!1,this._dotLottieCore.set_autoplay((e=t.autoplay)!=null?e:!1),this._dotLottieCore.set_loop((n=t.loop)!=null?n:!1),this._dotLottieCore.set_loop_count((i=t.loopCount)!=null?i:0),this._dotLottieCore.set_mode(gt((o=t.mode)!=null?o:"forward")),this._dotLottieCore.set_speed((s=t.speed)!=null?s:1),this._dotLottieCore.set_use_frame_interpolation((_=t.useFrameInterpolation)!=null?_:!0),t.segment&&t.segment.length===2?(this._segment=[t.segment[0],t.segment[1]],this._dotLottieCore.set_segment(this._segment[0],this._segment[1])):(this._segment=null,this._dotLottieCore.clear_segment()),this._marker=(c=t.marker)!=null?c:"",this._marker?this._dotLottieCore.set_marker(this._marker):this._dotLottieCore.clear_marker(),this._dotLottieCore.set_layout((f=(v=t.layout)==null?void 0:v.fit)!=null?f:"contain",(y=(h=(C=t.layout)==null?void 0:C.align)==null?void 0:h[0])!=null?y:.5,(I=(A=(k=t.layout)==null?void 0:k.align)==null?void 0:A[1])!=null?I:.5),this._applyAssetResolver((P=t.assetResolver)!=null?P:null),t.data?this._canvas?this._loadFromData(t.data):this._pendingLoad={data:t.data}:t.src&&(this._canvas?this._loadFromSrc(t.src):this._pendingLoad={src:t.src}),t.backgroundColor&&this.setBackgroundColor(t.backgroundColor))}_draw(){if(this._dotLottieCore===null||this._canvas===null||(!this._context&&"getContext"in this._canvas&&typeof this._canvas.getContext=="function"&&(!B||typeof HTMLCanvasElement<"u"&&this._canvas instanceof HTMLCanvasElement||typeof OffscreenCanvas<"u"&&this._canvas instanceof OffscreenCanvas)&&(this._context=this._canvas.getContext("2d")),!this._context))return;let t=this._dotLottieCore.get_pixel_buffer(),e=this._canvas.width,n=this._canvas.height,i=e*n*4;if(t.byteLength!==i){this._lastExpectedBufferSize===i?this._bufferMismatchCount+=1:(this._bufferMismatchCount=1,this._lastExpectedBufferSize=i),this._bufferMismatchCount===10&&console.warn(`[dotlottie-web] Persistent buffer size mismatch detected. Expected ${i} bytes for canvas ${e}x${n}, but got ${t.byteLength} bytes. This may indicate a WASM memory allocation issue or invalid canvas dimensions.`);return}this._bufferMismatchCount=0,this._lastExpectedBufferSize=i;let o=this._cachedImageData;if(!(o!==null&&o.width===e&&o.height===n&&o.data.byteLength===i&&this._cachedImageDataBuffer===t.buffer&&this._cachedImageDataByteOffset===t.byteOffset)){if(typeof ImageData>"u")this._cachedImageData=this._context.createImageData(e,n);else{let s=new Uint8ClampedArray(t.buffer,t.byteOffset,t.byteLength);this._cachedImageData=new ImageData(s,e,n)}this._cachedImageDataBuffer=t.buffer,this._cachedImageDataByteOffset=t.byteOffset}if(typeof ImageData>"u"){let s=new Uint8ClampedArray(t.buffer,t.byteOffset,t.byteLength);this._cachedImageData.data.set(s)}this._context.putImageData(this._cachedImageData,0,0)}_cleanupCanvas(){this._canvas&&B&&this._canvas instanceof HTMLCanvasElement&&(G.unobserve(this._canvas),Y.unobserve(this._canvas),this._cleanupStateMachineListeners())}_initializeCanvas(){this._setupRendererOnCanvas(),this._canvas&&B&&this._canvas instanceof HTMLCanvasElement&&this.isLoaded&&(this._renderConfig.freezeOnOffscreen&&(G.observe(this._canvas,this),at(this._canvas)||this.freeze()),this._renderConfig.autoResize&&Y.observe(this._canvas,this),this._isStateMachineRunning&&this._setupStateMachineListeners()),this._canvas&&this._dotLottieCore&&this.isLoaded&&this._setupTarget(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),this._lastFrameTime=null}_startAnimationLoop(){this._animationFrameId===null&&this._dotLottieCore&&!this._isFrozen&&(this._dotLottieCore.status()===U.Playing||this._isStateMachineRunning)&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._boundAnimationLoop))}_animationLoop(t){if(this._dotLottieCore===null){this._stopAnimationLoop();return}if(this._dotLottieCore.status()!==U.Playing&&!this._isStateMachineRunning){this._stopAnimationLoop();return}try{let e=this._lastFrameTime===null?0:t-this._lastFrameTime;this._lastFrameTime=t;let n=this._isStateMachineRunning?this._dotLottieCore.sm_tick(e):this._dotLottieCore.tick(e);this._isStateMachineRunning?this._drainSmEvents():this._drainPlayerEvents(),n&&this._draw(),this._animationFrameId=this._frameManager.requestAnimationFrame(this._boundAnimationLoop)}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.status()===U.Playing)&&(this._isFrozen=!1,this._startAnimationLoop()),this._canvas&&B&&this._canvas instanceof HTMLCanvasElement&&this._renderConfig.freezeOnOffscreen&&!at(this._canvas)&&this.freeze()}pause(){this._dotLottieCore!==null&&(this._dotLottieCore.pause(),this._drainPlayerEvents(),this._stopAnimationLoop())}stop(){if(this._dotLottieCore===null)return;let t=this._dotLottieCore.stop();this._drainPlayerEvents(),this._stopAnimationLoop(),t&&(this._eventManager.dispatch({type:"frame",currentFrame:this.currentFrame}),this._dotLottieCore.render(),this._draw())}setFrame(t){if(this._dotLottieCore!==null&&this._dotLottieCore.set_frame(t)){let e=this._dotLottieCore.render();this._drainPlayerEvents(),e&&this._draw()}}setSpeed(t){this._dotLottieCore!==null&&this._dotLottieCore.set_speed(t)}
5setBackgroundColor(t){if(this._dotLottieCore!==null){if(B&&this._canvas instanceof HTMLCanvasElement)this._canvas.style.backgroundColor=t;else{let[e,n,i,o]=fe(t);this._dotLottieCore.set_background(e,n,i,o)}this._backgroundColor=t}}setLoop(t){this._dotLottieCore!==null&&this._dotLottieCore.set_loop(t)}setLoopCount(t){this._dotLottieCore!==null&&this._dotLottieCore.set_loop_count(t)}setUseFrameInterpolation(t){this._dotLottieCore!==null&&this._dotLottieCore.set_use_frame_interpolation(t)}_applyAssetResolver(t){if(this._dotLottieCore!==null){if(t===null){this._dotLottieCore.set_asset_resolver(null);return}this._dotLottieCore.set_asset_resolver(e=>{var n;try{return(n=t(e))!=null?n:null}catch(i){return console.error(`[dotlottie-web] assetResolver threw for "${e}":`,i),null}})}}addEventListener(t,e){this._eventManager.addEventListener(t,e)}removeEventListener(t,e){this._eventManager.removeEventListener(t,e)}destroy(){var e;this._stopAnimationLoop(),this._isStateMachineRunning=!1,this._cleanupCanvas(),(e=this._srcFetchAbort)==null||e.abort(),this._srcFetchAbort=null,this._pendingLoad=null;let t=this._dotLottieCore;if(this._dotLottieCore=null,this._context=null,t)try{t.free()}catch(n){console.warn("[dotlottie-web] Error freeing wasm core during destroy:",n)}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())}_syncCanvasSize(){if(!(B&&this._canvas instanceof HTMLCanvasElement))return;let t=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:e,width:n}=this._canvas.getBoundingClientRect();e!==0&&n!==0&&(this._canvas.width=n*t,this._canvas.height=e*t)}resize(){!this._dotLottieCore||!this.isLoaded||!this._canvas||(this._syncCanvasSize(),this._setupTarget(this._canvas.width,this._canvas.height)&&(this._dotLottieCore.render(),this._draw()))}setCanvas(t){if(!(!t||this._canvas===t)&&(this._canvas&&this._cleanupCanvas(),this._canvas=t,this._initializeCanvas(),this._pendingLoad)){let e=this._pendingLoad;this._pendingLoad=null,e.data?this._loadFromData(e.data):e.src&&this._loadFromSrc(e.src,e.dataPromise)}}setTransform(t){if(!this._dotLottieCore)return!1;let e=this._dotLottieCore.set_transform(new Float32Array(t));return e&&this._dotLottieCore.render()&&this._draw(),e}getTransform(){if(!this._dotLottieCore)return;let t=this._dotLottieCore.get_transform();return Array.from(t)}setSegment(t,e){this._dotLottieCore!==null&&(this._segment=[t,e],this._dotLottieCore.set_segment(t,e))}resetSegment(){this._dotLottieCore!==null&&(this._segment=null,this._dotLottieCore.clear_segment())}setMode(t){this._dotLottieCore!==null&&this._dotLottieCore.set_mode(gt(t))}setRenderConfig(t){let{devicePixelRatio:e,freezeOnOffscreen:n,quality:i,...o}=t;this._renderConfig={...this._renderConfig,...o,devicePixelRatio:e||It(),freezeOnOffscreen:n!=null?n:!0,...i!==void 0&&{quality:i}},i!==void 0&&this._dotLottieCore&&this._dotLottieCore.set_quality(i),B&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.autoResize?Y.observe(this._canvas,this):Y.unobserve(this._canvas),this._renderConfig.freezeOnOffscreen?(G.observe(this._canvas,this),at(this._canvas)||this.freeze()):(G.unobserve(this._canvas),this._isFrozen&&this.unfreeze()))}loadAnimation(t){this._dotLottieCore===null||this._dotLottieCore.animation_id()===t||!this._canvas||(this._syncCanvasSize(),this._setupTarget(this._canvas.width,this._canvas.height),this._dotLottieCore.load_animation_from_id(t)?(this._renderConfig.quality!==void 0&&this._dotLottieCore.set_quality(this._renderConfig.quality),this._drainPlayerEvents(),this._dotLottieCore.render(),this._draw()):this._dispatchError(`Failed to load animation with id: ${t}`))}setMarker(t){this._dotLottieCore!==null&&(this.markers().some(e=>e.name===t)?(this._marker=t,this._dotLottieCore.set_marker(t)):(this._marker="",this._segment=null,this._dotLottieCore.clear_marker(),this._dotLottieCore.clear_segment()))}markers(){var e;let t=(e=this._dotLottieCore)==null?void 0:e.markers();return t&&Array.isArray(t)?t:[]}setTheme(t){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.set_theme(t);return e&&(this._dotLottieCore.render(),this._draw()),e}resetTheme(){if(this._dotLottieCore===null)return!1;let t=this._dotLottieCore.reset_theme();return t&&(this._dotLottieCore.render(),this._draw()),t}setThemeData(t){if(this._dotLottieCore===null)return!1;let e=typeof t=="string"?t:JSON.stringify(t),n=this._dotLottieCore.set_theme_data(e);return n&&(this._dotLottieCore.render(),this._draw()),n}setSlots(t){this._dotLottieCore!==null&&this._dotLottieCore.set_slots_str(JSON.stringify(t))&&(this._dotLottieCore.render(),this._draw())}_isKeyframeArray(t){return Array.isArray(t)&&t.length>0&&typeof t[0]=="object"&&t[0]!==null&&"t"in t[0]&&"s"in t[0]}getSlotIds(){if(!this._dotLottieCore)return[];let t=this._dotLottieCore.get_slot_ids();return Array.isArray(t)?t:[]}getSlotType(t){if(!this._dotLottieCore)return;let e=this._dotLottieCore.get_slot_type(t);if(e)return e}getSlot(t){if(!this._dotLottieCore)return;let e=this._dotLottieCore.get_slot_str(t);if(e)try{return JSON.parse(e)}catch{return}}getSlots(){if(!this._dotLottieCore)return{};try{return JSON.parse(this._dotLottieCore.get_slots_str())}catch{return{}}}setColorSlot(t,e){if(this._dotLottieCore===null)return!1;let n=this._isKeyframeArray(e),i=JSON.stringify({a:+!!n,k:e}),o=this._dotLottieCore.set_slot_str(t,i);return this._dotLottieCore.render(),this._draw(),o}setScalarSlot(t,e){if(this._dotLottieCore===null)return!1;let n=JSON.stringify({a:typeof e=="number"?0:1,k:e}),i=this._dotLottieCore.set_slot_str(t,n);return this._dotLottieCore.render(),this._draw(),i}setVectorSlot(t,e){if(this._dotLottieCore===null)return!1;let n=this._isKeyframeArray(e),i=JSON.stringify({a:+!!n,k:e}),o=this._dotLottieCore.set_slot_str(t,i);return this._dotLottieCore.render(),this._draw(),o}setGradientSlot(t,e,n){if(this._dotLottieCore===null)return!1;let i=this._isKeyframeArray(e),o=JSON.stringify({k:{a:+!!i,k:e},p:n}),s=this._dotLottieCore.set_slot_str(t,o);return this._dotLottieCore.render(),this._draw(),s}setTextSlot(t,e){if(this._dotLottieCore===null)return!1;let n=this._dotLottieCore.get_slot_str(t),i=e;if(n){let _=JSON.parse(n);if(_&&"k"in _&&Array.isArray(_.k)){let c=_.k[0];"s"in c&&typeof c.s=="object"&&(i={...c.s,...e})}}let o=JSON.stringify({a:0,k:[{t:0,s:i}]}),s=this._dotLottieCore.set_slot_str(t,o);return this._dotLottieCore.render(),this._draw(),s}async setImageSlot(t,e){if(this._dotLottieCore===null)return!1;let n=await ye(e);if(this._dotLottieCore===null)return!1;let i=this._dotLottieCore.set_image_slot(t,n);return this._dotLottieCore.render(),this._draw(),i}resetSlot(t){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.reset_slot(t);return this._dotLottieCore.render(),this._draw(),e}clearSlot(t){if(this._dotLottieCore===null)return!1;let e=this._dotLottieCore.clear_slot(t);return this._dotLottieCore.render(),this._draw(),e}resetSlots(){if(this._dotLottieCore===null)return!1;let t=this._dotLottieCore.reset_slots();return this._dotLottieCore.render(),this._draw(),t}clearSlots(){if(this._dotLottieCore===null)return!1;let t=this._dotLottieCore.clear_slots();return this._dotLottieCore.render(),this._draw(),t}setLayout(t){var e,n,i,o,s;this._dotLottieCore!==null&&this._dotLottieCore.set_layout((e=t.fit)!=null?e:"contain",(i=(n=t.align)==null?void 0:n[0])!=null?i:.5,(s=(o=t.align)==null?void 0:o[1])!=null?s:.5)}setViewport(t,e,n,i){return this._dotLottieCore===null?!1:this._dotLottieCore.set_viewport(t,e,n,i)}static setWasmUrl(t){_t().setWasmUrl(t)}static preload(){return _t().load()}static async registerFont(t,e){try{await _t().load();let n;if(typeof e=="string"){let o=await fetch(e);if(!o.ok)return console.error(`Failed to fetch font from URL: ${e}. Status: ${o.status}`),!1;n=new Uint8Array(await o.arrayBuffer())}else n=e instanceof Uint8Array?e:new Uint8Array(e);let i=se(t,n);return i||console.error(`Failed to register font "${t}". Font data may be invalid.`),i}catch(n){return console.error(`Error registering font "${t}":`,n),!1}}animationSize(){var e,n,i;let t=(e=this._dotLottieCore)==null?void 0:e.animation_size();return{width:(n=t==null?void 0:t[0])!=null?n:0,height:(i=t==null?void 0:t[1])!=null?i:0}}stateMachineLoad(t){return this._dotLottieCore?this._dotLottieCore.state_machine_load_from_id(t):!1}stateMachineLoadData(t){return this._dotLottieCore?this._dotLottieCore.state_machine_load(t):!1}stateMachineSetConfig(t){this._stateMachineConfig=t}stateMachineStart(){var e,n,i,o,s,_;if(this._dotLottieCore===null)return!1;let t=this._dotLottieCore.sm_start((i=(n=(e=this._stateMachineConfig)==null?void 0:e.openUrlPolicy)==null?void 0:n.requireUserInteraction)!=null?i:!0,(_=(s=(o=this._stateMachineConfig)==null?void 0:o.openUrlPolicy)==null?void 0:s.whitelist)!=null?_:[]);return this._drainSmEvents(),t&&(this._isStateMachineRunning=!0,this._setupStateMachineListeners(),this._startAnimationLoop()),t}stateMachineStop(){if(!this._dotLottieCore)return!1;let t=this._dotLottieCore.sm_stop();return this._drainSmEvents(),t&&(this._isStateMachineRunning=!1,this._cleanupStateMachineListeners(),this._dotLottieCore.status()!==U.Playing&&this._stopAnimationLoop()),t}stateMachineGetStatus(){var t,e;return(e=(t=this._dotLottieCore)==null?void 0:t.sm_status())!=null?e:""}stateMachineGetCurrentState(){var t,e;return(e=(t=this._dotLottieCore)==null?void 0:t.sm_current_state())!=null?e:""}stateMachineGetActiveId(){var t,e;return(e=(t=this._dotLottieCore)==null?void 0:t.state_machine_id())!=null?e:""}stateMachineOverrideState(t,e=!1){var n,i;return(i=(n=this._dotLottieCore)==null?void 0:n.sm_override_current_state(t,e))!=null?i:!1}stateMachineSetSeed(t){var e,n;return(n=(e=this._dotLottieCore)==null?void 0:e.sm_set_seed(BigInt(Math.trunc(t))))!=null?n:!1}stateMachineGet(t){var e,n;return(n=(e=this._dotLottieCore)==null?void 0:e.get_state_machine(t))!=null?n:""}stateMachineGetListeners(){if(!this._dotLottieCore)return[];let t=this._dotLottieCore.sm_framework_setup();return Array.isArray(t)?t:[]}stateMachineSetBooleanInput(t,e){var n,i;return(i=(n=this._dotLottieCore)==null?void 0:n.sm_set_boolean_input(t,e))!=null?i:!1}stateMachineSetNumericInput(t,e){var n,i;return(i=(n=this._dotLottieCore)==null?void 0:n.sm_set_numeric_input(t,e))!=null?i:!1}stateMachineSetStringInput(t,e){var n,i;return(i=(n=this._dotLottieCore)==null?void 0:n.sm_set_string_input(t,e))!=null?i:!1}stateMachineGetBooleanInput(t){var e,n;return(n=(e=this._dotLottieCore)==null?void 0:e.sm_get_boolean_input(t))!=null?n:void 0}stateMachineGetNumericInput(t){var e,n;return(n=(e=this._dotLottieCore)==null?void 0:e.sm_get_numeric_input(t))!=null?n:void 0}stateMachineGetStringInput(t){var e,n;return(n=(e=this._dotLottieCore)==null?void 0:e.sm_get_string_input(t))!=null?n:void 0}
5stateMachineGetInputs(){if(!this._dotLottieCore)return[];let t=this._dotLottieCore.sm_get_inputs();return Array.isArray(t)?t:[]}stateMachineFireEvent(t){var e;(e=this._dotLottieCore)==null||e.sm_fire(t)}stateMachinePostClickEvent(t,e){var n;(n=this._dotLottieCore)==null||n.sm_post_click(t,e)}stateMachinePostPointerUpEvent(t,e){var n;(n=this._dotLottieCore)==null||n.sm_post_pointer_up(t,e)}stateMachinePostPointerDownEvent(t,e){var n;(n=this._dotLottieCore)==null||n.sm_post_pointer_down(t,e)}stateMachinePostPointerMoveEvent(t,e){var n;(n=this._dotLottieCore)==null||n.sm_post_pointer_move(t,e)}stateMachinePostPointerEnterEvent(t,e){var n;(n=this._dotLottieCore)==null||n.sm_post_pointer_enter(t,e)}stateMachinePostPointerExitEvent(t,e){var n;(n=this._dotLottieCore)==null||n.sm_post_pointer_exit(t,e)}_onClick(t){let e=X(t);e&&this.stateMachinePostClickEvent(e.x,e.y)}_onPointerUp(t){let e=X(t);e&&this.stateMachinePostPointerUpEvent(e.x,e.y)}_onPointerDown(t){let e=X(t);e&&this.stateMachinePostPointerDownEvent(e.x,e.y)}_onPointerMove(t){let e=X(t);e&&this.stateMachinePostPointerMoveEvent(e.x,e.y)}_onPointerEnter(t){let e=X(t);e&&this.stateMachinePostPointerEnterEvent(e.x,e.y)}_onPointerLeave(t){let e=X(t);e&&this.stateMachinePostPointerExitEvent(e.x,e.y)}_setupStateMachineListeners(){if(B&&this._canvas instanceof HTMLCanvasElement&&this._dotLottieCore!==null&&this.isLoaded){let t=this.stateMachineGetListeners();this._cleanupStateMachineListeners(),t.includes("Click")&&(this._boundOnClick=this._onClick.bind(this),this._canvas.addEventListener("click",this._boundOnClick)),t.includes("PointerUp")&&(this._boundOnPointerUp=this._onPointerUp.bind(this),this._canvas.addEventListener("pointerup",this._boundOnPointerUp)),t.includes("PointerDown")&&(this._boundOnPointerDown=this._onPointerDown.bind(this),this._canvas.addEventListener("pointerdown",this._boundOnPointerDown)),t.includes("PointerMove")&&(this._boundOnPointerMove=this._onPointerMove.bind(this),this._canvas.addEventListener("pointermove",this._boundOnPointerMove)),t.includes("PointerEnter")&&(this._boundOnPointerEnter=this._onPointerEnter.bind(this),this._canvas.addEventListener("pointerenter",this._boundOnPointerEnter)),t.includes("PointerExit")&&(this._boundOnPointerLeave=this._onPointerLeave.bind(this),this._canvas.addEventListener("pointerleave",this._boundOnPointerLeave))}}_cleanupStateMachineListeners(){B&&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))}};const Me=ct({props:{animationId:{type:String,required:!1},autoplay:{type:Boolean,required:!1},backgroundColor:{type:String,required:!1},data:{type:[String,ArrayBuffer],required:!1},loop:{type:Boolean,required:!1},loopCount:{type:Number,required:!1},mode:{type:String,required:!1},renderConfig:{type:Object,required:!1},segment:{type:Array,required:!1},speed:{type:Number,required:!1},src:{type:String,required:!1},useFrameInterpolation:{type:Boolean,required:!1},marker:{type:String,required:!1},playOnHover:{type:Boolean,required:!1},themeData:{type:String,required:!1},themeId:{type:String,required:!1},layout:{type:Object,required:!1},stateMachineId:{type:String,required:!1},stateMachineConfig:{type:Object,required:!1}},setup(t,{attrs:e,expose:n}){const i=H(void 0),{animationId:o,backgroundColor:s,data:_,layout:c,loop:v,loopCount:f,marker:C,mode:h,playOnHover:y,renderConfig:k,segment:A,speed:I,src:P,stateMachineConfig:R,stateMachineId:T,themeId:$,useFrameInterpolation:m}=Tt(t);let u=null;const D=$t(()=>{let a=t.autoplay;
5return typeof(y==null?void 0:y.value)<"u"&&y.value&&(a=!1),a}),K=(a={})=>{u!==null&&u.load({animationId:o==null?void 0:o.value,backgroundColor:s==null?void 0:s.value,data:_==null?void 0:_.value,layout:c==null?void 0:c.value,loop:v==null?void 0:v.value,loopCount:f==null?void 0:f.value,marker:C==null?void 0:C.value,mode:h==null?void 0:h.value,autoplay:D.value,renderConfig:k==null?void 0:k.value,segment:A==null?void 0:A.value,speed:I==null?void 0:I.value,src:P==null?void 0:P.value,stateMachineConfig:R==null?void 0:R.value,stateMachineId:T==null?void 0:T.value,themeId:$==null?void 0:$.value,useFrameInterpolation:m==null?void 0:m.value,...a})};M(()=>s==null?void 0:s.value,a=>{u&&typeof a<"u"&&u.setBackgroundColor(a)}),M(()=>C==null?void 0:C.value,a=>{u&&typeof a<"u"&&u.setMarker(a)}),M(()=>v==null?void 0:v.value,a=>{u&&typeof a<"u"&&u.setLoop(a)}),M(()=>f==null?void 0:f.value,a=>{u&&typeof a<"u"&&u.setLoopCount(a)}),M(()=>h==null?void 0:h.value,a=>{u&&typeof a<"u"&&u.setMode(a)}),M(()=>A==null?void 0:A.value,a=>{if(!u)return;const q=a==null?void 0:a[0],Q=a==null?void 0:a[1];typeof q=="number"&&typeof Q=="number"&&u.setSegment(q,Q)}),M(()=>I==null?void 0:I.value,a=>{u&&typeof a<"u"&&u.setSpeed(a)}),M(()=>m==null?void 0:m.value,a=>{u&&typeof a<"u"&&u.setUseFrameInterpolation(a)}),M(()=>o==null?void 0:o.value,a=>{(u==null?void 0:u.isLoaded)&&typeof a<"u"&&a!==u.activeAnimationId&&u.loadAnimation(a)}),M(()=>t.themeData,a=>{u&&typeof a<"u"&&u.setThemeData(a)}),M(()=>$==null?void 0:$.value,a=>{u&&typeof a<"u"&&u.setTheme(a)});function W(a){a.type==="mouseenter"?u==null||u.play():u==null||u.pause()}return M(()=>y==null?void 0:y.value,a=>{var q,Q,bt,wt;u&&typeof a<"u"&&a?((q=i.value)==null||q.addEventListener("mouseenter",W),(Q=i.value)==null||Q.addEventListener("mouseleave",W)):((bt=i.value)==null||bt.removeEventListener("mouseenter",W),(wt=i.value)==null||wt.removeEventListener("mouseleave",W))}),M(()=>c==null?void 0:c.value,a=>{u&&typeof a<"u"&&u.setLayout(a)},{deep:!0}),M(()=>k==null?void 0:k.value,a=>{u&&typeof a<"u"&&u.setRenderConfig(a)},{deep:!0}),M(()=>_==null?void 0:_.value,a=>{u&&(typeof a=="object"||typeof a=="string")&&K({data:a})},{deep:!0}),M(()=>P==null?void 0:P.value,a=>{u&&typeof a<"u"&&K({src:a})}),M(()=>T==null?void 0:T.value,a=>{u!=null&&u.isLoaded&&(typeof a=="string"&&a?u.stateMachineLoad(a)&&u.stateMachineStart():u.stateMachineStop())}),M(()=>R==null?void 0:R.value,a=>{u&&u.stateMachineSetConfig(a!=null?a:null)},{deep:!0}),ft(()=>{!i.value||(u=new ke({canvas:i.value,...t,autoplay:D.value}),y!=null&&y.value&&(i.value.addEventListener("mouseenter",W),i.value.addEventListener("mouseleave",W)))}),Ut(()=>{var a,q;(a=i.value)==null||a.removeEventListener("mouseenter",W),(q=i.value)==null||q.removeEventListener("mouseleave",W),u==null||u.destroy()}),n({getDotLottieInstance:()=>u}),()=>vt("div",{...e},vt("canvas",{style:"height: 100%; width: 100%",ref:i}))}}),mt=24*60*60*1e3,xe=ct({__name:"AnimatedWidget",props:{animation:{}},setup(t){const{analytics:e,isMobile:n}=Dt(),{send:i}=zt(),o=Jt("gastronom-animated-widget",{isClosed:!1,isVisited:!1,isCookieVisible:!1,isAdFoxVisible:!1,closedUntil:0}),s=H(!1),_=H(!1),c=H(),v=H(),f=H(!1),C=H(!1),h=kt(v),y=kt(c);M(h,m=>{m&&!f.value&&(i("NewYear:Widget:View",{options:{eventName:`${e.chapter}_${e.page}_stickyBlock_view`,chapter:e.chapter,page:e.page,project:"tykva"}}),f.value=!0)}),M(y,m=>{m&&!C.value&&(i("NewYear:Popup:View",{options:{eventName:`${e.chapter}_${e.page}_stickyBlockPopUp_view`,chapter:e.chapter,page:e.page,project:"tykva"}}),C.value=!0)});const k=()=>{i("NewYear:Widget:Click",{options:{eventName:`${e.chapter}_${e.page}_stickyBlock_banner_click`,chapter:e.chapter,page:e.page,project:"tykva"}}),window.location.assign("/section/tykva"),_.value=!1,o.value.isClosed=!0,o.value.closedUntil=Date.now()+mt},A=()=>{i("NewYear:Popup:Close",{options:{eventName:`${e.chapter}_${e.page}_stickyBlockPopUp_close_click`,chapter:e.chapter,page:e.page,project:"tykva"}}),s.value=!1,o.value.isClosed=!0,o.value.closedUntil=Date.now()+mt};Gt(c,()=>{s.value=!1,_.value=!0});const I=()=>{i("NewYear:Widget:Close",{options:{eventName:`${e.chapter}_${e.page}_stickyBlock_close_click`,chapter:e.chapter,page:e.page,project:"tykva"}}),_.value=!1,o.value.isClosed=!0,o.value.closedUntil=Date.now()+mt},P=()=>{if(o.value.isVisited||(o.value.isCookieVisible||o.value.isAdFoxVisible)&&window.innerWidth<Vt)return;const m=Date.now();o.value.closedUntil&&m<o.value.closedUntil||(o.value.closedUntil&&m>=o.value.closedUntil&&(o.value.closedUntil=0),setTimeout(()=>{_.value=!0,o.value.isClosed=!1}
5,7e3))},R=()=>{i("NewYear:Popup:Click",{options:{eventName:`${e.chapter}_${e.page}_stickyBlockPopUp_look_click`,chapter:e.chapter,page:e.page,project:"tykva"}})},T=m=>{i("NewYear:PopupCategories:Click",{options:{eventName:`${e.chapter}_${e.page}_stickyBlockPopUp_catButton_click`,chapter:e.chapter,page:e.page,categoryName:m,project:"tykva"}})},$=[{name:"\u041A\u0443\u0440\u0438\u0446\u0430",link:"/group/shashlyk-iz-kuricy-2283"},{name:"\u0418\u043D\u0434\u0435\u0439\u043A\u0430",link:"/group/shashlyk-iz-indejki-3585"},{name:"\u0421\u0432\u0438\u043D\u0438\u043D\u0430",link:"/group/shashlyk-s-svinoi-sheei-94070"},{name:"\u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0438 \u0441\u043E\u0441\u0438\u0441\u043A\u0438",link:"/group/kolbaski-i-sosiski-dlja-grilja-3705"},{name:"\u0417\u0430\u043A\u0443\u0441\u043A\u0438",link:"/text/zakuski-k-shashlyku-chto-podat-k-shashlyku-na-prirode-krome-salatov-1026369"},{name:"\u0420\u044B\u0431\u0430",link:"/group/ryba-na-grile-4030"},{name:"\u0421\u0442\u0435\u0439\u043A\u0438",link:"/group/stejki-zharenoe-myaso-1361"},{name:"\u0420\u0451\u0431\u0440\u044B\u0448\u043A\u0438 \u0438 \u043A\u0440\u044B\u043B\u044B\u0448\u043A\u0438",link:"/group/ryobryshki-krylyshki-na-grile-1232"},{name:"\u041C\u0430\u0440\u0438\u043D\u0430\u0434\u044B",link:"/group/marinad-dlja-shashlyka-4015"},{name:"\u041A\u0440\u0435\u0432\u0435\u0442\u043A\u0438",link:"/group/krevetki-na-grile-1684"},{name:"\u0421\u043E\u0443\u0441\u044B",link:"/group/vkusnye-sousy-dlja-piknika-4018"},{name:"\u041E\u0432\u043E\u0449\u0438 \u043D\u0430 \u0433\u0440\u0438\u043B\u0435",link:"/group/ovoshchi-na-grile-ovoshchnoj-shashlyk-2670"},{name:"\u0428\u0430\u0448\u043B\u044B\u043A \u0432 \u0434\u0443\u0445\u043E\u0432\u043A\u0435",link:"/group/shashlyk-v-duhovke-3912"},{name:"\u0413\u0440\u0438\u0431\u044B \u043D\u0430 \u0433\u0440\u0438\u043B\u0435",link:"/text/shampinony-na-grile-na-mangale-1018305"},{name:"\u0421\u0430\u043B\u0430\u0442\u044B",link:"/text/salaty-k-shashlyku-na-prirode-1018784"}];return ft(()=>{var m;((m=window.location.pathname)==null?void 0:m.toLowerCase())==="/section/tykva"&&(o.value.isVisited=!0),P()}),(m,u)=>(Z(),Ot(Kt,null,{default:ht(()=>[tt(Ht,{name:Lt(n)?"scrollToTopButtonSlideUp":"slideLeft"},{default:ht(()=>[s.value?(Z(),lt("div",{key:0,ref_key:"popup",ref:c,class:S(m.$style.popup),"data-testid":"popup"},[j("button",{class:S(m.$style.popupClose),"data-testid":"popup-close",onClick:A},[tt(Mt,{class:S(m.$style.popupCloseIcon),icon:"cross"},null,8,["class"])],2),j("div",{class:S(m.$style.content)},[j("div",{class:S(m.$style.header)},[j("span",{class:S(m.$style.title),"data-testid":"title"}," \u0418\u0434\u0451\u043C \u043D\u0430 \u0448\u0430\u0448\u043B\u044B\u043A\u0438! ",2)],2),j("div",{class:S(m.$style.popupLinks)},[(Z(),lt(Nt,null,Wt($,D=>tt(Yt,{key:D.link,href:D.link,class:S(m.$style.popupLink),tag:"a",onClick:K=>T(D.name)},{default:ht(()=>[qt(jt(D.name),1)]),_:2},1032,["href","class","onClick"])),64))],2),j("a",{class:S(m.$style.popupButton),href:"/section/shashliky","data-testid":"button",onClick:R}," \u041A \u0440\u0435\u0446\u0435\u043F\u0442\u0430\u043C \u0438 \u0438\u0434\u0435\u044F\u043C ",2)],2)],2)):Ct("",!0)]),_:1},8,["name"]),_.value?(Z(),lt("div",{key:0,class:S(m.$style.widget),"data-testid":"widget"},[j("button",{class:S(m.$style.cross),"data-testid":"widget-close",onClick:I},[tt(Mt,{class:S(m.$style.widgetIcon),icon:"cross"},null,8,["class"])],2),j("button",{class:S(m.$style.button),"data-testid":"widget-button",onClick:k},[tt(Lt(Me),{ref_key:"animation",ref:v,class:S(m.$style.animation),loop:"",autoplay:"",style:{height:"160px",width:"160px"},src:"/assets/animatedWidget/animation.lottie",width:160,height:160},null,8,["class"])],2)],2)):Ct("",!0)]),_:1}))}}),Ee="_widget_13i3i_2",Se="_cross_13i3i_12",Ae="_widgetIcon_13i3i_27",Ie="_button_13i3i_32",Pe="_animation_13i3i_37",Oe="_popup_13i3i_42",Fe="_header_13i3i_60",Be="_popupClose_13i3i_66",Re="_popupCloseIcon_13i3i_71",Te="_title_13i3i_79",$e="_content_13i3i_87",Ue="_popupButton_13i3i_93",De="_popupLinks_13i3i_107",ze="_popupLink_13i3i_107",Ne={widget:Ee,cross:Se,widgetIcon:Ae,button:Ie,animation:Pe,popup:Oe,header:Fe,popupClose:Be,popupCloseIcon:Re,title:Te,content:$e,popupButton:Ue,popupLinks:De,popupLink:ze},We={$style:Ne},qe=Ft(xe,[["__cssModules",We]]),je=ct({__name:"NewYearWidget",setup(t){return(e,n)=>(Z(),Ot(qe,{class:S(e.$style.root),animation:"santa","button-text":"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C"},null,8,["class"]))}}
5),He="_root_hn78a_2",Je={root:He},Ge={$style:Je},Xe=Ft(je,[["__cssModules",Ge]]);export{Xe as N,Kt as _};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.