1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,83512,e=>{"use strict";let t,n;var r=e.i(41095),o=e.i(32655);let i=(0,o.default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);var a=e.i(90409);let s=(0,o.default)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]),l=(0,o.default)("printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);var _=e.i(65103),c=e.i(13737),d=e.i(27965);let u="æ¥æ¬æ ¸é
¸å»è¬å¦ä¼",h="Nucleic Acids Therapeutics Society of Japan",m="natsj",f={name:{ja:`${u} 第12åå¹´ä¼`,en:`The ${12}${(t=["th","st","nd","rd"])[((n=12)-20)%10]||t[n]||t[0]} Annual Meeting of the ${h}`,short:m+12},logo:{svg:"https://www.natsj.jp/img/logo.svg"}};f.name.ja,f.logo.svg;(0,d.formatPeriodJp)(["2027-06-30","2027-07-02"]);var p=e.i(47163);let g=[{name:"å¹´ä¼äºåå±",detail:[{text:"ã700-8530 岡山ç岡山å¸ååºæ´¥å³¶ä¸1-1-1"},{text:"岡山大å¦"},{mail:"[email protected]"}]},{name:"éå¶æºå室",img:{src:"mons.svg",className:"h-4!"},detail:[{text:"æ ªå¼ä¼ç¤¾MONS"},{text:"ã003-0002 æå¹å¸ç½ç³åºæ±æå¹2-5-7-1-203"},{tel:"011-824-8805"},{fax:"011-826-4556"},{mail:"[email protected]"},{time:"æ-é 9-17 åæ¥ï½¥ç¥ç¥æ¥ã¯ä¼æ¥"}]}];e.s(["Footer",0,function(){let e=(0,_.usePathPrefix)();return(0,r.jsxs)("footer",{className:(0,p.cn)("grid place-items-center gap-y-8","px-6 lg:px-8 py-12 bg-primary/90 text-primary-foreground"),children:[(0,r.jsx)("div",{className:(0,p.cn)("grid place-items-center grid-cols-1 lg:grid-cols-2 gap-6","max-w-4xl w-full"),children:g.map(({name:e,img:t,detail:n})=>(0,r.jsxs)("div",{className:(0,p.cn)("flex flex-col items-center gap-y-3","relative w-full h-full max-w-md","p-6 bg-primary-foreground/10 rounded-lg"),children:[(0,r.jsx)("div",{className:(0,p.cn)("text-center text-sm font-medium tracking-wider"),children:e}),(0,r.jsx)("hr",{className:(0,p.cn)("w-5 opacity-75","border-app-400")}),t&&(t.src.includes("http")?(0,r.jsx)("img",{src:t.src,alt:t.src,className:(0,p.cn)("relative! object-contain max-h-10",t.className)},t.src):(0,r.jsx)(c.ProtectedImage,{filePath:`layout/${t.src}`,alt:t.src,sizes:"10rem",className:(0,p.cn)("relative! object-contain max-h-10",t.className)},t.src)),(0,r.jsx)("div",{className:(0,p.cn)("grid gap-y-1 my-1"),children:n.map(({text:e,tel:t,fax:n,mail:o,time:_},c)=>(0,r.jsxs)("div",{className:(0,p.cn)("text-xs tracking-wider leading-tight!","break-keep w-fit","[&_a]:transition [&_a]:hover:contrast-200","*:flex *:items-center *:gap-x-1.5","[&_svg]:size-3.5 lg:[&_svg]:size-4","[&_svg]:stroke-zinc-300"),children:[e&&e,t&&(0,r.jsxs)("a",{href:`tel:${t}`,target:"_blank",rel:"noreferrer",children:[(0,r.jsx)(s,{}),t]}),n&&(0,r.jsxs)("div",{children:[(0,r.jsx)(l,{}),n]}),o&&(0,r.jsxs)("a",{href:`mailto:${o}`,target:"_blank",rel:"noreferrer",children:[(0,r.jsx)(a.Mail,{}),o]}),_&&(0,r.jsxs)("div",{children:[(0,r.jsx)(i,{}),_]})]},c))})]},e))}),(0,r.jsx)("hr",{className:(0,p.cn)("max-w-5xl w-full border-white/25")}),(0,r.jsxs)("div",{className:(0,p.cn)("max-w-3xl w-full","text-center text-xs lg:text-sm tracking-wide"),children:["© 2026 - 2027",(0,r.jsx)("br",{}),f.name.en,",",(0,r.jsx)("br",{}),"All Rights Reserved."]}),(0,r.jsx)("div",{className:(0,p.cn)("hidden"),children:e})]})}],83512)},49786,e=>{"use strict";var t,n,r,o,i,a,s,l,_=e.i(41095),c=e.i(54506),d=e.i(44341);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t,n){var r;return(r=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==u(r)?r:r+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=class{requestAnimationFrame(e){return requestAnimationFrame(e)}cancelAnimationFrame(e){cancelAnimationFrame(e)}},f=class{constructor(){h(this,"_lastHandleId",0),h(this,"_lastImmediate",null)}requestAnimationFrame(e){return this._lastHandleId>=0x20000000000000-1&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{e(performance.now())}),this._lastHandleId}cancelAnimationFrame(e){this._lastImmediate&&clearImmediate(this._lastImmediate)}},p=class{constructor(){h(this,"_strategy",void 0),this._strategy="function"==typeof requestAnimationFrame?new m:new f}requestAnimationFrame(e){return this._strategy.requestAnimationFrame(e)}cancelAnimationFrame(e){this._strategy.cancelAnimationFrame(e)}};let g="u">
1typeof window&&void 0!==window.document,b=new Uint8Array([80,75,3,4]),v=["v","ip","op","layers","fr","w","h"],w,y=0,C=null;function L(){return(null===C||0===C.byteLength)&&(C=new Uint8Array(w.memory.buffer)),C}let x="u">typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},E="function"==typeof x.encodeInto?function(e,t){return x.encodeInto(e,t)}:function(e,t){let n=x.encode(e);return t.set(n),{read:e.length,written:n.length}};function k(e,t,n){if(void 0===n){let n=x.encode(e),r=t(n.length,1)>>>0;return L().subarray(r,r+n.length).set(n),y=n.length,r}let r=e.length,o=t(r,1)>>>0,i=L(),a=0;for(;a<r;a++){let t=e.charCodeAt(a);if(t>127)break;i[o+a]=t}if(a!==r){0!==a&&(e=e.slice(a)),o=n(o,r,r=a+3*e.length,1)>>>0;let t=E(e,L().subarray(o+a,o+r));a+=t.written,o=n(o,r,a,1)>>>0}return y=a,o}let S=null;function M(){return(null===S||!0===S.buffer.detached||void 0===S.buffer.detached&&S.buffer!==w.memory.buffer)&&(S=new DataView(w.memory.buffer)),S}function P(e){let t=w.__externref_table_alloc_command_export();return w.__wbindgen_export_4.set(t,e),t}function O(e,t){try{return e.apply(this,t)}catch(t){let e=P(t);w.__wbindgen_exn_store_command_export(e)}}let R="u">typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};function A(e,t){return e>>>=0,R.decode(L().subarray(e,e+t))}"u">typeof TextDecoder&&R.decode();let I=null;function j(e,t){let n=t(+e.length,1)>>>0;return L().set(e,n/1),y=e.length,n}let T=Object.freeze({Forward:0,0:"Forward",Reverse:1,1:"Reverse",Bounce:2,2:"Bounce",ReverseBounce:3,3:"ReverseBounce"}),D=Object.freeze({Idle:0,0:"Idle",Playing:1,1:"Playing",Paused:2,2:"Paused",Stopped:3,3:"Stopped",Tweening:4,4:"Tweening"}),F=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>w.__wbg_dotlottieplayerwasm_free(e>>>0,1));var N=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,F.unregister(this),e}free(){let e=this.__destroy_into_raw();w.__wbg_dotlottieplayerwasm_free(e,0)}clear_slot(e){let t=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),n=y;return 0!==w.dotlottieplayerwasm_clear_slot(this.__wbg_ptr,t,n)}layout_fit(){let e,t;try{let n=w.dotlottieplayerwasm_layout_fit(this.__wbg_ptr);return e=n[0],t=n[1],A(n[0],n[1])}finally{w.__wbindgen_free_command_export(e,t,1)}}loop_count(){return w.dotlottieplayerwasm_loop_count(this.__wbg_ptr)>>>0}poll_event(){return w.dotlottieplayerwasm_poll_event(this.__wbg_ptr)}reset_slot(e){let t=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),n=y;return 0!==w.dotlottieplayerwasm_reset_slot(this.__wbg_ptr,t,n)}set_layout(e,t,n){let r=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),o=y;return 0!==w.dotlottieplayerwasm_set_layout(this.__wbg_ptr,r,o,t,n)}set_marker(e){let t=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),n=y;w.dotlottieplayerwasm_set_marker(this.__wbg_ptr,t,n)}clear_slots(){return 0!==w.dotlottieplayerwasm_clear_slots(this.__wbg_ptr)}is_complete(){return 0!==w.dotlottieplayerwasm_is_complete(this.__wbg_ptr)}reset_slots(){return 0!==w.dotlottieplayerwasm_reset_slots(this.__wbg_ptr)}reset_theme(){return 0!==w.dotlottieplayerwasm_reset_theme(this.__wbg_ptr)}segment_end(){return w.dotlottieplayerwasm_segment_end(this.__wbg_ptr)}set_quality(e){return 0!==w.dotlottieplayerwasm_set_quality(this.__wbg_ptr,e)}set_segment(e,t){return 0!==w.dotlottieplayerwasm_set_segment(this.__wbg_ptr,e,t)}sm_set_seed(e){return 0!==w.dotlottieplayerwasm_sm_set_seed(this.__wbg_ptr,e)}static unload_font(e){let t=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),n=y;return 0!==w.dotlottieplayerwasm_unload_font(t,n)}animation_id(){let e=w.dotlottieplayerwasm_animation_id(this.__wbg_ptr),t;return 0!==e[0]&&(t=A(e[0],e[1]).slice(),w.__wbindgen_free_command_export(e[0],+e[1],1)),t}audio_volume(){return w.dotlottieplayerwasm_audio_volume(this.__wbg_ptr)}background_a(){return w.dotlottieplayerwasm_background_a(this.__wbg_ptr)}background_b(){return w.dotlottieplayerwasm_background_b(this.__wbg_ptr)}background_g(){return w.dotlottieplayerwasm_background_g(this.__wbg_ptr)}background_r(){return w.dotlottieplayerwasm_background_r(this.__wbg_ptr)}clear_marker(){w.dotlottieplayerwasm_clear_marker(this.__wbg_ptr)}emit_on_loop(){w.dotlottieplayerwasm_emit_on_loop(this.__wbg_ptr)}get_slot_ids(){return w.dotlottieplayerwasm_get_slot_ids(this.__wbg_ptr)}get_slot_str(e){let t=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),n=y,r=w.dotlottieplayerwasm_get_slot_str(this.__wbg_ptr,t,n),o;return 0!==r[0]&&(o=A(r[0],r[1]).slice(),w.__wbindgen_free_command_export(r[0],+r[1],1)),o}marker_names(){return w.dotlottieplayerwasm_marker_names(this.__wbg_ptr)}set_autoplay(e){w.dotlottieplayerwasm_set_autoplay(this.__wbg_ptr,e)}set_slot_str(e,t){let n=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),r=y,o=k(t,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),i=y;return 0!==w.dotlottieplayerwasm_set_slot_str(this.__wbg_ptr,n,r,o,i)}set_viewport(e,t,n,r){return 0!==w.dotlottieplayerwasm_set_viewport(this.__wbg_ptr,e,t,n,r)}total_frames(){return w.dotlottieplayerwasm_total_frames(this.__wbg_ptr)}clear_segment(){return 0!==w.dotlottieplayerwasm_clear_segment(this.__wbg_ptr)}current_frame(){return w.dotlottieplayerwasm_current_frame(this.__wbg_ptr)}get_slot_type(e){let t=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),n=y,r=w.dotlottieplayerwasm_get_slot_type(this.__wbg_ptr,t,n),o;return 0!==r[0]&&(o=A(r[0],r[1]).slice(),w.__wbindgen_free_command_export(r[0],+r[1],1)),o}get_slots_str(){let e,t;try{let n=w.dotlottieplayerwasm_get_slots_str(this.__wbg_ptr);return e=n[0],t=n[1],A(n[0],n[1])}finally{w.__wbindgen_free_command_export(e,t,1)}}get_transform(){return w.dotlottieplayerwasm_get_transform(this.__wbg_ptr)}segment_start(){return w.dotlottieplayerwasm_segment_start(this.__wbg_ptr)}set_slots_str(e){let t=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),n=y;return 0!==w.dotlottieplayerwasm_set_slots_str(this.__wbg_ptr,t,n)}set_text_slot(e,t){let n=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),r=y,o=k(t,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),i=y;return 0!==w.dotlottieplayerwasm_set_text_slot(this.__wbg_ptr,n,r,o,i)}set_transform(e){let t,n=(t=(0,w.__wbindgen_malloc_command_export)(4*e.length,4)>>>
10,((null===I||0===I.byteLength)&&(I=new Float32Array(w.memory.buffer)),I).set(e,t/4),y=e.length,t),r=y;return 0!==w.dotlottieplayerwasm_set_transform(this.__wbg_ptr,n,r)}sm_get_inputs(){return w.dotlottieplayerwasm_sm_get_inputs(this.__wbg_ptr)}sm_poll_event(){return w.dotlottieplayerwasm_sm_poll_event(this.__wbg_ptr)}sm_post_click(e,t){w.dotlottieplayerwasm_sm_post_click(this.__wbg_ptr,e,t)}animation_size(){return w.dotlottieplayerwasm_animation_size(this.__wbg_ptr)}current_marker(){let e=w.dotlottieplayerwasm_current_marker(this.__wbg_ptr),t;return 0!==e[0]&&(t=A(e[0],e[1]).slice(),w.__wbindgen_free_command_export(e[0],+e[1],1)),t}layout_align_x(){return w.dotlottieplayerwasm_layout_align_x(this.__wbg_ptr)}layout_align_y(){return w.dotlottieplayerwasm_layout_align_y(this.__wbg_ptr)}load_animation(e){let t=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),n=y;return 0!==w.dotlottieplayerwasm_load_animation(this.__wbg_ptr,t,n)}loop_animation(){return 0!==w.dotlottieplayerwasm_loop_animation(this.__wbg_ptr)}set_background(e,t,n,r){return 0!==w.dotlottieplayerwasm_set_background(this.__wbg_ptr,e,t,n,r)}set_color_slot(e,t,n,r){let o=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),i=y;return 0!==w.dotlottieplayerwasm_set_color_slot(this.__wbg_ptr,o,i,t,n,r)}set_image_slot(e,t){let n=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),r=y,o=k(t,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),i=y;return 0!==w.dotlottieplayerwasm_set_image_slot(this.__wbg_ptr,n,r,o,i)}set_loop_count(e){w.dotlottieplayerwasm_set_loop_count(this.__wbg_ptr,e)}set_theme_data(e){let t=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),n=y;return 0!==w.dotlottieplayerwasm_set_theme_data(this.__wbg_ptr,t,n)}sm_reset_input(e){let t=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),n=y;w.dotlottieplayerwasm_sm_reset_input(this.__wbg_ptr,t,n)}manifest_string(){let e,t;try{let n=w.dotlottieplayerwasm_manifest_string(this.__wbg_ptr);return e=n[0],t=n[1],A(n[0],n[1])}finally{w.__wbindgen_free_command_export(e,t,1)}}set_scalar_slot(e,t){let n=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),r=y;return 0!==w.dotlottieplayerwasm_set_scalar_slot(this.__wbg_ptr,n,r,t)}set_vector_slot(e,t,n){let r=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),o=y;return 0!==w.dotlottieplayerwasm_set_vector_slot(this.__wbg_ptr,r,o,t,n)}setup_sw_target(e,t){return 0!==w.dotlottieplayerwasm_setup_sw_target(this.__wbg_ptr,e,t)}get_pixel_buffer(){return w.dotlottieplayerwasm_get_pixel_buffer(this.__wbg_ptr)}set_audio_volume(e){w.dotlottieplayerwasm_set_audio_volume(this.__wbg_ptr,e)}sm_current_state(){let e,t;try{let n=w.dotlottieplayerwasm_sm_current_state(this.__wbg_ptr);return e=n[0],t=n[1],A(n[0],n[1])}finally{w.__wbindgen_free_command_export(e,t,1)}}state_machine_id(){let e=w.dotlottieplayerwasm_state_machine_id(this.__wbg_ptr),t;return 0!==e[0]&&(t=A(e[0],e[1]).slice(),w.__wbindgen_free_command_export(e[0],+e[1],1)),t}get_state_machine(e){let t=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),n=y,r=w.dotlottieplayerwasm_get_state_machine(this.__wbg_ptr,t,n),o;return 0!==r[0]&&(o=A(r[0],r[1]).slice(),w.__wbindgen_free_command_export(r[0],+r[1],1)),o}set_position_slot(e,t,n){let r=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),o=y;return 0!==w.dotlottieplayerwasm_set_position_slot(this.__wbg_ptr,r,o,t,n)}current_loop_count(){return w.dotlottieplayerwasm_current_loop_count(this.__wbg_ptr)>>>0}sm_framework_setup(){return w.dotlottieplayerwasm_sm_framework_setup(this.__wbg_ptr)}sm_post_pointer_up(e,t){w.dotlottieplayerwasm_sm_post_pointer_up(this.__wbg_ptr,e,t)}state_machine_load(e){let t=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),n=y;return 0!==w.dotlottieplayerwasm_state_machine_load(this.__wbg_ptr,t,n)}load_dotlottie_data(e){let t=j(e,w.__wbindgen_malloc_command_export),n=y;return 0!==w.dotlottieplayerwasm_load_dotlottie_data(this.__wbg_ptr,t,n)}sm_get_string_input(e){let t=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),n=y,r=w.dotlottieplayerwasm_sm_get_string_input(this.__wbg_ptr,t,n),o;return 0!==r[0]&&(o=A(r[0],r[1]).slice(),w.__wbindgen_free_command_export(r[0],+r[1],1)),o}sm_set_string_input(e,t){let n=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),r=y,o=k(t,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),i=y;return 0!==w.dotlottieplayerwasm_sm_set_string_input(this.__wbg_ptr,n,r,o,i)}sm_get_boolean_input(e){let t=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),n=y,r=w.dotlottieplayerwasm_sm_get_boolean_input(this.__wbg_ptr,t,n);return 0xffffff===r?void 0:0!==r}sm_get_numeric_input(e){let t=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),n=y,r=w.dotlottieplayerwasm_sm_get_numeric_input(this.__wbg_ptr,t,n);return 0x100000001===r?void 0:r}sm_post_pointer_down(e,t){w.dotlottieplayerwasm_sm_post_pointer_down(this.__wbg_ptr,e,t)}sm_post_pointer_exit(e,t){w.dotlottieplayerwasm_sm_post_pointer_exit(this.__wbg_ptr,e,t)}sm_post_pointer_move(e,t){w.dotlottieplayerwasm_sm_post_pointer_move(this.__wbg_ptr,e,t)}sm_set_boolean_input(e,t){let n=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),r=y;return 0!==w.dotlottieplayerwasm_sm_set_boolean_input(this.__wbg_ptr,n,r,t)}sm_set_numeric_input(e,t){let n=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),r=y;return 0!==w.dotlottieplayerwasm_sm_set_numeric_input(this.__wbg_ptr,n,r,t)}state_machine_unload(){w.dotlottieplayerwasm_state_machine_unload(this.__wbg_ptr)}sm_post_pointer_enter(e,t){w.dotlottieplayerwasm_sm_post_pointer_enter(this.__wbg_ptr,e,t)}load_animation_from_id(e){let t=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),n=y;return 0!==w.dotlottieplayerwasm_load_animation_from_id(this.__wbg_ptr,t,n)}sm_poll_internal_event(){return w.dotlottieplayerwasm_sm_poll_internal_event(this.__wbg_ptr)}use_frame_interpolation(){return 0!==w.dotlottieplayerwasm_use_frame_interpolation(this.__wbg_ptr)}reset_current_loop_count(){w.dotlottieplayerwasm_reset_current_loop_count(this.__wbg_ptr)}sm_override_current_state(e,t){let n=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),r=y;return 0!==w.dotlottieplayerwasm_sm_override_current_state(this.__wbg_ptr,n,r,t)}state_machine_load_from_id(e){let t=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),n=y;return 0!==w.dotlottieplayerwasm_state_machine_load_from_id(this.__wbg_ptr,t,n)}set_use_frame_interpolation(e){w.dotlottieplayerwasm_set_use_frame_interpolation(this.__wbg_ptr,e)}constructor(){let e=w.dotlottieplayerwasm_new();return this.__wbg_ptr=e>>>0,F.register(this,this.__wbg_ptr,this),this}mode(){return w.dotlottieplayerwasm_mode(this.__wbg_ptr)}play(){return 0!==w.dotlottieplayerwasm_play(this.__wbg_ptr)}stop(){return 0!==w.dotlottieplayerwasm_stop(this.__wbg_ptr)}tick(e){return 0!==w.dotlottieplayerwasm_tick(this.__wbg_ptr,e)}pause(){return 0!==w.dotlottieplayerwasm_pause(this.__wbg_ptr)}speed(){return w.dotlottieplayerwasm_speed(this.__wbg_ptr)}width(){return w.dotlottieplayerwasm_width(this.__wbg_ptr)>>>0}height(){return w.dotlottieplayerwasm_height(this.__wbg_ptr)>>>0}render(){return 0!==w.dotlottieplayerwasm_render(this.__wbg_ptr)}status(){return w.dotlottieplayerwasm_status(this.__wbg_ptr)}markers(){return w.dotlottieplayerwasm_markers(this.__wbg_ptr)}sm_fire(e){let t=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),n=y;return 0!==w.dotlottieplayerwasm_sm_fire(this.__wbg_ptr,t,n)}sm_stop(){return 0!==w.dotlottieplayerwasm_sm_stop(this.__wbg_ptr)}sm_tick(e){return 0!==w.dotlottieplayerwasm_sm_tick(this.__wbg_ptr,e)}autoplay(){return 0!==w.dotlottieplayerwasm_autoplay(this.__wbg_ptr)}duration(){return w.dotlottieplayerwasm_duration(this.__wbg_ptr)}set_loop(e){w.dotlottieplayerwasm_set_loop(this.__wbg_ptr,e)}set_mode(e){w.dotlottieplayerwasm_set_mode(this.__wbg_ptr,e)}sm_start(e,t){let n=function(e,t){let n=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){let r=P(e[t]);M().setUint32(n+4*t,r,!0)}return y=e.length,n}(t,w.__wbindgen_malloc_command_export),r=y;return 0!==w.dotlottieplayerwasm_sm_start(this.__wbg_ptr,e,n,r)}theme_id(){let e=w.dotlottieplayerwasm_theme_id(this.__wbg_ptr),t;return 0!==e[0]&&(t=A(e[0],e[1]).slice(),w.__wbindgen_free_command_export(e[0],+e[1],1)),t}load_font(e,t){let n=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),r=y,o=j(t,w.__wbindgen_malloc_command_export),i=y;return 0!==w.dotlottieplayerwasm_load_font(this.__wbg_ptr,n,r,o,i)}set_frame(e){return 0!==w.dotlottieplayerwasm_set_frame(this.__wbg_ptr,e)}set_speed(e){w.dotlottieplayerwasm_set_speed(this.__wbg_ptr,e)}set_theme(e){let t=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),n=y;return 0!==w.dotlottieplayerwasm_set_theme(this.__wbg_ptr,t,n)}sm_status(){let e,t;try{let n=w.dotlottieplayerwasm_sm_status(this.__wbg_ptr);return e=n[0],t=n[1],A(n[0],n[1])}finally{w.__wbindgen_free_command_export(e,t,1)}}};async function z(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"!=e.headers.get("Content-Type"))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)}{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}async function B(e){let t;if(void 0!==w)return w;if(void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e)throw Error("WASM module URL must be provided via DotLottieWasmLoader or setWasmUrl().");let n=((t={}).wbg={},t.wbg.__wbg_buffer_609cc3eee51ed158=function(e){return e.buffer}
1,t.wbg.__wbg_createObjectURL_6e98d2f9c7bd9764=function(){return O(function(e,t){let n=k(URL.createObjectURL(t),w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),r=y;M().setInt32(e+4,r,!0),M().setInt32(e+0,n,!0)},arguments)},t.wbg.__wbg_ended_b873fb75d0c13ca7=function(e){return e.ended},t.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,t){let n,r;try{n=e,r=t,console.error(A(e,t))}finally{w.__wbindgen_free_command_export(n,r,1)}},t.wbg.__wbg_new_405e22f390576ce2=function(){return{}},t.wbg.__wbg_new_78feb108b6472713=function(){return[]},t.wbg.__wbg_new_8a6f238a6ece86ea=function(){return Error()},t.wbg.__wbg_new_a12002a7f91c75be=function(e){return new Uint8Array(e)},t.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(e,t,n){return new Uint8Array(e,t>>>0,n>>>0)},t.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return new Float32Array(e>>>0)},t.wbg.__wbg_newwithsrc_20307ca7e8762a81=function(){return O(function(e,t){return new Audio(A(e,t))},arguments)},t.wbg.__wbg_newwithu8arraysequenceandoptions_068570c487f69127=function(){return O(function(e,t){return new Blob(e,t)},arguments)},t.wbg.__wbg_pause_b74c96d69f769518=function(){return O(function(e){e.pause()},arguments)},t.wbg.__wbg_play_f6ec5fc4e84b0d26=function(){return O(function(e){return e.play()},arguments)},t.wbg.__wbg_push_737cfc8c1432c2c6=function(e,t){return e.push(t)},t.wbg.__wbg_revokeObjectURL_27267efebeb457c7=function(){return O(function(e,t){URL.revokeObjectURL(A(e,t))},arguments)},t.wbg.__wbg_set_bb8cecf6a62b9f46=function(){return O(function(e,t,n){return Reflect.set(e,t,n)},arguments)},t.wbg.__wbg_setcurrentTime_64727eddd3966512=function(e,t){e.currentTime=t},t.wbg.__wbg_setindex_4e73afdcd9bb95cd=function(e,t,n){e[t>>>0]=n},t.wbg.__wbg_settype_39ed370d3edd403c=function(e,t,n){e.type=A(t,n)},t.wbg.__wbg_setvolume_3895e06a030ca4f7=function(e,t){e.volume=t},t.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,t){let n=k(t.stack,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),r=y;M().setInt32(e+4,r,!0),M().setInt32(e+0,n,!0)},t.wbg.__wbindgen_init_externref_table=function(){let e=w.__wbindgen_export_4,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)},t.wbg.__wbindgen_memory=function(){return w.memory},t.wbg.__wbindgen_number_new=function(e){return e},t.wbg.__wbindgen_string_get=function(e,t){let n="string"==typeof t?t:void 0;var r=null==n?0:k(n,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),o=y;M().setInt32(e+4,o,!0),M().setInt32(e+0,r,!0)},t.wbg.__wbindgen_string_new=function(e,t){return A(e,t)},t.wbg.__wbindgen_throw=function(e,t){throw Error(A(e,t))},t);("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));let{instance:r,module:o}=await z(await e,n);return w=r.exports,B.__wbindgen_wasm_module=o,S=null,I=null,C=null,w.__wbindgen_start(),w}var U=class{constructor(){h(this,"_eventListeners",new Map)}addEventListener(e,t){let n=this._eventListeners.get(e);n||(n=new Set,this._eventListeners.set(e,n)),n.add(t)}removeEventListener(e,t){let n=this._eventListeners.get(e);n&&(t?(n.delete(t),0===n.size&&this._eventListeners.delete(e)):this._eventListeners.delete(e))}dispatch(e){this._eventListeners.get(e.type)?.forEach(t=>t(e))}removeAllEventListeners(){this._eventListeners.clear()}},$=class e{static _initializeObserver(){e._observer||(e._observer=new IntersectionObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);n&&(t.isIntersecting?n.unfreeze():n.freeze())})},{threshold:0}))}static observe(t,n){e._initializeObserver(),e._observedCanvases.has(t)||(e._observedCanvases.set(t,n),e._observer?.observe(t))}static unobserve(t){e._observer?.unobserve(t),e._observedCanvases.delete(t),0===e._observedCanvases.size&&(e._observer?.disconnect(),e._observer=null)}};h($,"_observer",null),h($,"_observedCanvases",new Map);var W=class e{static _initializeObserver(){e._observer||(e._observer=new ResizeObserver(t=>{t.forEach(t=>{let n=e._observedCanvases.get(t.target);if(!n)return;let[r,o]=n;clearTimeout(o);let i=setTimeout(()=>{r.resize()},100);e._observedCanvases.set(t.target,[r,i])})}))}static observe(t,n){e._initializeObserver(),e._observedCanvases.has(t)||(e._observedCanvases.set(t,[n,0]),e._observer?.observe(t))}static unobserve(t){let n=e._observedCanvases.get(t);if(n){let e=n[1];e&&clearTimeout(e)}e._observer?.unobserve(t),e._observedCanvases.delete(t),!e._observedCanvases.size&&e._observer&&(e._observer.disconnect(),e._observer=null)}};function H(e){if(e.byteLength<4)return!1;let t=new Uint8Array(e.slice(0,b.byteLength));for(let e=0;e<b.length;e+=1)if(b[e]!==t[e])return!1;return!0}function q(e){return"string"==typeof e?/^\s*\{/u.test(e)&&/\}\s*$/u.test(e):v.every(t=>Object.hasOwn(e,t))}function V(){return 1+((g?window.devicePixelRatio:1)-1)*.75}function J(e){let t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;return!(t.bottom<0||t.top>n||t.right<0||t.left>r)}function G(e){let t=e.target;if(t instanceof HTMLCanvasElement){let n=t.getBoundingClientRect();if(0===n.width||0===n.height||0===t.width||0===t.height)return null;let r=t.width/n.width,o=t.height/n.height,i=(e.clientX-n.left)*r,a=(e.clientY-n.top)*o;return!Number.isFinite(i)||!Number.isFinite(a)||Number.isNaN(i)||Number.isNaN(a)?null:{x:i,y:a}}return null}async function K(e){var t;if(!/^https?:\/\//i.test(e))return e;let n=await fetch(e);if(!n.ok)throw Error(`Failed to fetch image slot source from URL: ${e}. ${n.status}: ${n.statusText}`);
1return t=await n.blob(),new Promise((e,n)=>{let r=new FileReader;r.onerror=()=>n(r.error??Error("Failed to read image slot source")),r.onload=()=>e(r.result),r.readAsDataURL(t)})}h(W,"_observer",null),h(W,"_observedCanvases",new Map);let Y=null;function X(){return Y??(Y=function(e,t,n){let r=null,o=t;async function i(t){await e({module_or_path:t})}async function a(t){let n=await fetch(t);if(!n.ok)throw Error(`fetch ${t} responded with ${n.status} ${n.statusText}`);await e({module_or_path:await n.arrayBuffer()})}return{load(){if(!r){let e=o;r=(async()=>{let t,o;try{await i(e);return}catch(r){t=r,console.warn(`Primary WASM load failed from ${e}: ${r.message}`),console.warn(`Attempting to load WASM from backup URL: ${n}`)}try{await i(n);return}catch(e){o=e,console.warn(`Backup WASM load failed from ${n}: ${e.message}`)}console.warn("Retrying WASM load with buffered instantiation");try{await a(e);return}catch(t){console.warn(`Buffered WASM load from ${e} failed: ${t.message}`)}try{await a(n);return}catch(e){throw console.error(`Primary WASM URL failed: ${t.message}`),console.error(`Backup WASM URL failed: ${o.message}`),console.error(`Buffered fallback failed: ${e.message}`),r=null,Error("WASM loading failed from all sources.")}})()}return r},setWasmUrl(e){e!==o&&(o=e,r=null)}}}(B,"https://cdn.jsdelivr.net/npm/@lottiefiles/[email protected]/dist/dotlottie-player.wasm","https://unpkg.com/@lottiefiles/[email protected]/dist/dotlottie-player.wasm")),Y}let Z=e=>{switch(e){case"reverse":return T.Reverse;case"bounce":return T.Bounce;case"reverse-bounce":return T.ReverseBounce;default:return T.Forward}},Q=e=>{switch(e){case T.Reverse:return"reverse";case T.Bounce:return"bounce";case T.ReverseBounce:return"reverse-bounce";default:return"forward"}};var ee=class{constructor(e){h(this,"_canvas",null),h(this,"_pendingLoad",null),h(this,"_srcFetchAbort",null),h(this,"_context",null),h(this,"_eventManager",void 0),h(this,"_animationFrameId",null),h(this,"_frameManager",void 0),h(this,"_boundAnimationLoop",void 0),h(this,"_dotLottieCore",null),h(this,"_stateMachineId",""),h(this,"_stateMachineConfig",null),h(this,"_isStateMachineRunning",!1),h(this,"_renderConfig",{}),h(this,"_isFrozen",!1),h(this,"_backgroundColor",null),h(this,"_lastFrameTime",null),h(this,"_boundOnClick",null),h(this,"_boundOnPointerUp",null),h(this,"_boundOnPointerDown",null),h(this,"_boundOnPointerMove",null),h(this,"_boundOnPointerEnter",null),h(this,"_boundOnPointerLeave",null),h(this,"_bufferMismatchCount",0),h(this,"_lastExpectedBufferSize",0),h(this,"_cachedImageData",null),h(this,"_cachedImageDataBuffer",null),h(this,"_cachedImageDataByteOffset",0),h(this,"_marker",""),h(this,"_segment",null),this._canvas=e.canvas??null,this._eventManager=new U,this._frameManager=new p,this._boundAnimationLoop=this._animationLoop.bind(this),this._renderConfig={...e.renderConfig,devicePixelRatio:e.renderConfig?.devicePixelRatio||V(),freezeOnOffscreen:e.renderConfig?.freezeOnOffscreen??!0};let t=null;e.src&&!e.data&&(this._srcFetchAbort=new AbortController,(t=this._fetchData(e.src,this._srcFetchAbort.signal)).catch(()=>{})),this._initWasm().then(()=>{this._dotLottieCore=this._createCore(),this._dotLottieCore.set_autoplay(e.autoplay??!1),this._dotLottieCore.set_loop(e.loop??!1),this._dotLottieCore.set_loop_count(e.loopCount??0),this._dotLottieCore.set_mode(Z(e.mode??"forward")),this._dotLottieCore.set_speed(e.speed??1),this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation??!0),e.segment&&2===e.segment.length&&(this._segment=[e.segment[0],e.segment[1]],this._dotLottieCore.set_segment(this._segment[0],this._segment[1])),this._marker=e.marker??"",this._marker&&this._dotLottieCore.set_marker(this._marker),this._dotLottieCore.set_layout(e.layout?.fit??"contain",e.layout?.align?.[0]??.5,e.layout?.align?.[1]??.5),this._stateMachineId=e.stateMachineId??"",this._stateMachineConfig=e.stateMachineConfig??null,this._onCoreCreated(),this._eventManager.dispatch({type:"ready"}),e.data?this._canvas?this._loadFromData(e.data):this._pendingLoad={data:e.data}
1:e.src&&(this._canvas?this._loadFromSrc(e.src,t):this._pendingLoad={src:e.src,dataPromise:t}),e.backgroundColor&&this.setBackgroundColor(e.backgroundColor)}).catch(e=>{this._srcFetchAbort?.abort(),console.error("[dotlottie-web] Initialization failed:",e),this._eventManager.dispatch({type:"loadError",error:Error(`Failed to load wasm module: ${e}`)})})}async _initWasm(){return X().load()}_createCore(){return new N}_onCoreCreated(){}_setupTarget(e,t){return!!this._dotLottieCore&&this._dotLottieCore.setup_sw_target(e,t)}_drainPlayerEvents({skipFrame:e=!1}={}){let t;if(this._dotLottieCore)for(;null!=(t=this._dotLottieCore.poll_event());){let n=t;switch(n.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":e||queueMicrotask(()=>this._eventManager.dispatch({type:"frame",currentFrame:n.frameNo??0}));break;case"Render":e||queueMicrotask(()=>this._eventManager.dispatch({type:"render",currentFrame:n.frameNo??0}));break;case"Loop":queueMicrotask(()=>this._eventManager.dispatch({type:"loop",loopCount:n.loopCount??0}));break;case"Complete":queueMicrotask(()=>this._eventManager.dispatch({type:"complete"}))}}}_discardPlayerEvents(){for(;this._dotLottieCore?.poll_event()!=null;);}_drainSmEvents(){let e,t;if(this._dotLottieCore){for(;null!=(e=this._dotLottieCore.sm_poll_event());){let t=e;switch(t.type){case"Start":queueMicrotask(()=>{this._isStateMachineRunning=!0,this._eventManager.dispatch({type:"stateMachineStart"}),this._startAnimationLoop()});break;case"Stop":queueMicrotask(()=>{this._isStateMachineRunning=!1,this._eventManager.dispatch({type:"stateMachineStop"}),this._dotLottieCore?.status()!==D.Playing&&this._stopAnimationLoop()});break;case"CustomEvent":this._eventManager.dispatch({type:"stateMachineCustomEvent",eventName:t.message??""});break;case"BooleanInputChange":this._eventManager.dispatch({type:"stateMachineBooleanInputValueChange",inputName:t.name??"",newValue:t.newValue,oldValue:t.oldValue});break;case"NumericInputChange":this._eventManager.dispatch({type:"stateMachineNumericInputValueChange",inputName:t.name??"",newValue:t.newValue,oldValue:t.oldValue});break;case"StringInputChange":this._eventManager.dispatch({type:"stateMachineStringInputValueChange",inputName:t.name??"",newValue:t.newValue,oldValue:t.oldValue});break;case"InputFired":this._eventManager.dispatch({type:"stateMachineInputFired",inputName:t.name??""});break;case"Transition":this._eventManager.dispatch({type:"stateMachineTransition",fromState:t.previousState??"",toState:t.newState??""});break;case"StateEntered":this._eventManager.dispatch({type:"stateMachineStateEntered",state:t.state??""});break;case"StateExit":this._eventManager.dispatch({type:"stateMachineStateExit",state:t.state??""});break;case"Error":this._eventManager.dispatch({type:"stateMachineError",error:t.message??""})}}for(;null!=(t=this._dotLottieCore.sm_poll_internal_event());){let e=t;if("Message"===e.type){let t=e.message??"";g&&t.startsWith("OpenUrl: ")?function(e){let t=e.replace("OpenUrl: ",""),n=t.indexOf(" | Target: "),r,o;-1===n?(r=t,o="_blank"):(r=t.substring(0,n),o=t.substring(n+11)),window.open(r,o)}(t):this._eventManager.dispatch({type:"stateMachineInternalMessage",message:t})}}}}_dispatchError(e){console.error(e),this._eventManager.dispatch({type:"loadError",error:Error(e)})}async _fetchData(e,t=null){let n=await fetch(e,{signal:t});if(!n.ok)throw Error(`Failed to fetch animation data from URL: ${e}. ${n.status}: ${n.statusText}`);let r=await n.arrayBuffer();return H(r)?r:new TextDecoder().decode(r)}_loadFromData(e){if(null===this._dotLottieCore)return;if(!this._canvas)return void console.warn("[dotlottie-web] Cannot load animation without canvas. Call setCanvas() first.");this._syncCanvasSize(),this._setupTarget(this._canvas.width,this._canvas.height);let t=!1;if("string"==typeof e){if(!(t=this._dotLottieCore.load_animation(e))&&!q(e)){this._discardPlayerEvents(),this._dispatchError("Invalid Lottie JSON string: The provided string does not conform to the Lottie JSON format.");return}}else if(e instanceof ArrayBuffer){if(!H(e))return void this._dispatchError("Invalid dotLottie ArrayBuffer: The provided ArrayBuffer does not conform to the dotLottie format.");t=this._dotLottieCore.load_dotlottie_data(new Uint8Array(e))}else{if("object"!=typeof e)return void this._dispatchError(`Unsupported data type for animation data. Expected: 2 - string (Lottie JSON), 3 - ArrayBuffer (dotLottie), 4 - object (Lottie JSON). 5 Received: ${typeof e}`);if(!q(e))return void this._dispatchError("Invalid Lottie JSON object: The provided object does not conform to the Lottie JSON format.");t=this._dotLottieCore.load_animation(JSON.stringify(e))}if(t){if(void 0!==this._renderConfig.quality&&this._dotLottieCore.set_quality(this._renderConfig.quality),this._drainPlayerEvents({ski
5pFrame:!!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 e=Q(this._dotLottieCore.mode()),t="reverse"===e||"reverse-bounce"===e?this._segment[1]:this._segment[0];this._dotLottieCore.set_frame(t)}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()===D.Playing&&this._startAnimationLoop(),g&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.freezeOnOffscreen&&($.observe(this._canvas,this),J(this._canvas)||this.freeze()),this._renderConfig.autoResize&&W.observe(this._canvas,this))}else this._drainPlayerEvents()}_loadFromSrc(e,t){(t??this._fetchData(e)).then(e=>this._loadFromData(e)).catch(t=>this._dispatchError(`Failed to load animation data from URL: ${e}. ${t}`))}get buffer(){return this._dotLottieCore?this._dotLottieCore.get_pixel_buffer():null}get activeAnimationId(){return this._dotLottieCore?.animation_id()??void 0}get activeThemeId(){return this._dotLottieCore?.theme_id()??void 0}get layout(){if(this._dotLottieCore)return{align:[this._dotLottieCore.layout_align_x(),this._dotLottieCore.layout_align_y()],fit:(e=>{switch(e){case"contain":default: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"}})(this._dotLottieCore.layout_fit())}}get marker(){return this._dotLottieCore?.current_marker()??""}get manifest(){try{let e=this._dotLottieCore?.manifest_string();if(null===this._dotLottieCore||!e)return null;let t=JSON.parse(e);return 0===Object.keys(t).length?null:t}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){if(this._dotLottieCore)return[this._dotLottieCore.segment_start(),this._dotLottieCore.segment_end()]}get loop(){return this._dotLottieCore?.loop_animation()??!1}get mode(){return this._dotLottieCore?Q(this._dotLottieCore.mode()):"forward"}get isFrozen(){return this._isFrozen}get isStateMachineRunning(){return this._isStateMachineRunning}get backgroundColor(){return this._backgroundColor??""}get autoplay(){return this._dotLottieCore?.autoplay()??!1}get useFrameInterpolation(){return this._dotLottieCore?.use_frame_interpolation()??!1}get speed(){return this._dotLottieCore?.speed()??0}get isReady(){return null!==this._dotLottieCore}get isLoaded(){return(this._dotLottieCore?.status()??D.Idle)!==D.Idle}get isPlaying(){return this._dotLottieCore?.status()===D.Playing}get isPaused(){return this._dotLottieCore?.status()===D.Paused}get isStopped(){return this._dotLottieCore?.status()===D.Stopped}get currentFrame(){return this._dotLottieCore?Math.round(100*this._dotLottieCore.current_frame())/100:0}get loopCount(){return this._dotLottieCore?.current_loop_count()??0}get totalFrames(){return this._dotLottieCore?.total_frames()??0}get duration(){return(this._dotLottieCore?.duration()??0)/1e3}get canvas(){return this._canvas}load(e){null!==this._dotLottieCore&&(this._stopAnimationLoop(),this._cleanupCanvas(),this._isFrozen=!1,this._dotLottieCore.set_autoplay(e.autoplay??!1),this._dotLottieCore.set_loop(e.loop??!1),this._dotLottieCore.set_loop_count(e.loopCount??0),this._dotLottieCore.set_mode(Z(e.mode??"forward")),this._dotLottieCore.set_speed(e.speed??1),this._dotLottieCore.set_use_frame_interpolation(e.useFrameInterpolation??!0),e.segment&&2===e.segment.length?(this._segment=[e.segment[0],e.segment[1]],this._dotLottieCore.set_segment(this._segment[0],this._segment[1])):(this._segment=null,this._dotLottieCore.clear_segment()),this._marker=e.marker??"",this._marker?this._dotLottieCore.set_marker(this._marker):this._dotLottieCore.clear_marker(),this._dotLottieCore.set_layout(e.layout?.fit??"contain",e.layout?.align?.[0]??.5,e.layout?.align?.[1]??.5),e.data?this._canvas?this._loadFromData(e.data):this._pe
5ndingLoad={data:e.data}:e.src&&(this._canvas?this._loadFromSrc(e.src):this._pendingLoad={src:e.src}),e.backgroundColor&&this.setBackgroundColor(e.backgroundColor))}_draw(){if(null===this._dotLottieCore||null===this._canvas||(!this._context&&"getContext"in this._canvas&&"function"==typeof this._canvas.getContext&&(!g||"u">typeof HTMLCanvasElement&&this._canvas instanceof HTMLCanvasElement||"u">typeof OffscreenCanvas&&this._canvas instanceof OffscreenCanvas)&&(this._context=this._canvas.getContext("2d")),!this._context))return;let e=this._dotLottieCore.get_pixel_buffer(),t=this._canvas.width,n=this._canvas.height,r=t*n*4;if(e.byteLength!==r){this._lastExpectedBufferSize===r?this._bufferMismatchCount+=1:(this._bufferMismatchCount=1,this._lastExpectedBufferSize=r),10===this._bufferMismatchCount&&console.warn(`[dotlottie-web] Persistent buffer size mismatch detected. Expected ${r} bytes for canvas ${t}x${n}, but got ${e.byteLength} bytes. This may indicate a WASM memory allocation issue or invalid canvas dimensions.`);return}this._bufferMismatchCount=0,this._lastExpectedBufferSize=r;let o=this._cachedImageData;if(null===o||o.width!==t||o.height!==n||o.data.byteLength!==r||this._cachedImageDataBuffer!==e.buffer||this._cachedImageDataByteOffset!==e.byteOffset){if(typeof ImageData>"u")this._cachedImageData=this._context.createImageData(t,n);else{let r=new Uint8ClampedArray(e.buffer,e.byteOffset,e.byteLength);this._cachedImageData=new ImageData(r,t,n)}this._cachedImageDataBuffer=e.buffer,this._cachedImageDataByteOffset=e.byteOffset}if(typeof ImageData>"u"){let t=new Uint8ClampedArray(e.buffer,e.byteOffset,e.byteLength);this._cachedImageData.data.set(t)}this._context.putImageData(this._cachedImageData,0,0)}_cleanupCanvas(){this._canvas&&g&&this._canvas instanceof HTMLCanvasElement&&($.unobserve(this._canvas),W.unobserve(this._canvas),this._cleanupStateMachineListeners())}_initializeCanvas(){this._setupRendererOnCanvas(),this._canvas&&g&&this._canvas instanceof HTMLCanvasElement&&this.isLoaded&&(this._renderConfig.freezeOnOffscreen&&($.observe(this._canvas,this),J(this._canvas)||this.freeze()),this._renderConfig.autoResize&&W.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(){null!==this._animationFrameId&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null),this._lastFrameTime=null}_startAnimationLoop(){null===this._animationFrameId&&this._dotLottieCore&&!this._isFrozen&&(this._dotLottieCore.status()===D.Playing||this._isStateMachineRunning)&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._boundAnimationLoop))}_animationLoop(e){if(null===this._dotLottieCore||this._dotLottieCore.status()!==D.Playing&&!this._isStateMachineRunning)return void this._stopAnimationLoop();try{let t=null===this._lastFrameTime?0:e-this._lastFrameTime;this._lastFrameTime=e;let n=this._isStateMachineRunning?this._dotLottieCore.sm_tick(t):this._dotLottieCore.tick(t);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(null===this._dotLottieCore||!this.isLoaded)return;this._stopAnimationLoop();let e=this._dotLottieCore.play();this._drainPlayerEvents(),(e||this._dotLottieCore.status()===D.Playing)&&(this._isFrozen=!1,this._startAnimationLoop()),this._canvas&&g&&this._canvas instanceof HTMLCanvasElement&&this._renderConfig.freezeOnOffscreen&&!J(this._canvas)&&this.freeze()}pause(){null!==this._dotLottieCore&&(this._dotLottieCore.pause(),this._drainPlayerEvents(),this._stopAnimationLoop())}stop(){if(null===this._dotLottieCore)return;let e=this._dotLottieCore.stop();this._drainPlayerEvents(),this._stopAnimationLoop(),e&&(this._eventManager.dispatch({type:"frame",currentFrame:this.currentFrame}),this._dotLottieCore.render(),this._draw())}setFrame(e){if(null!==this._dotLottieCore&&this._dotLottieCore.set_frame(e)){let e=this._dotLottieCore.render();this._drainPlayerEvents(),e&&this._draw()}}setSpeed(e){null!==this._dotLottieCore&&this._dotLottieCore.set_speed(e)}
5setBackgroundColor(e){if(null!==this._dotLottieCore){if(g&&this._canvas instanceof HTMLCanvasElement)this._canvas.style.backgroundColor=e;else{let[t,n,r,o]=function(e){if(!/^#([\da-f]{6}|[\da-f]{8})$/iu.test(e))return[0,0,0,0];let t=e.replace("#","");return[parseInt((t=6===t.length?`${t}ff`:t).slice(0,2),16)/255,parseInt(t.slice(2,4),16)/255,parseInt(t.slice(4,6),16)/255,parseInt(t.slice(6,8),16)/255]}(e);this._dotLottieCore.set_background(t,n,r,o)}this._backgroundColor=e}}setLoop(e){null!==this._dotLottieCore&&this._dotLottieCore.set_loop(e)}setLoopCount(e){null!==this._dotLottieCore&&this._dotLottieCore.set_loop_count(e)}setUseFrameInterpolation(e){null!==this._dotLottieCore&&this._dotLottieCore.set_use_frame_interpolation(e)}addEventListener(e,t){this._eventManager.addEventListener(e,t)}removeEventListener(e,t){this._eventManager.removeEventListener(e,t)}destroy(){this._stopAnimationLoop(),this._isStateMachineRunning=!1,this._cleanupCanvas(),this._srcFetchAbort?.abort(),this._srcFetchAbort=null,this._pendingLoad=null;let e=this._dotLottieCore;if(this._dotLottieCore=null,this._context=null,e)try{e.free()}catch(e){console.warn("[dotlottie-web] Error freeing wasm core during destroy:",e)}this._eventManager.dispatch({type:"destroy"}),this._eventManager.removeAllEventListeners(),this._cleanupStateMachineListeners()}freeze(){null!==this._animationFrameId&&(this._stopAnimationLoop(),this._isFrozen=!0,this._eventManager.dispatch({type:"freeze"}))}unfreeze(){null===this._animationFrameId&&(this._isFrozen=!1,this._eventManager.dispatch({type:"unfreeze"}),this._startAnimationLoop())}_syncCanvasSize(){if(!(g&&this._canvas instanceof HTMLCanvasElement))return;let e=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:t,width:n}=this._canvas.getBoundingClientRect();0!==t&&0!==n&&(this._canvas.width=n*e,this._canvas.height=t*e)}resize(){this._dotLottieCore&&this.isLoaded&&this._canvas&&(this._syncCanvasSize(),this._setupTarget(this._canvas.width,this._canvas.height)&&(this._dotLottieCore.render(),this._draw()))}setCanvas(e){if(!(!e||this._canvas===e)&&(this._canvas&&this._cleanupCanvas(),this._canvas=e,this._initializeCanvas(),this._pendingLoad)){let e=this._pendingLoad;this._pendingLoad=null,e.data?this._loadFromData(e.data):e.src&&this._loadFromSrc(e.src,e.dataPromise)}}setTransform(e){if(!this._dotLottieCore)return!1;let t=this._dotLottieCore.set_transform(new Float32Array(e));return t&&this._dotLottieCore.render()&&this._draw(),t}getTransform(){if(this._dotLottieCore)return Array.from(this._dotLottieCore.get_transform())}setSegment(e,t){null!==this._dotLottieCore&&(this._segment=[e,t],this._dotLottieCore.set_segment(e,t))}resetSegment(){null!==this._dotLottieCore&&(this._segment=null,this._dotLottieCore.clear_segment())}setMode(e){null!==this._dotLottieCore&&this._dotLottieCore.set_mode(Z(e))}setRenderConfig(e){let{devicePixelRatio:t,freezeOnOffscreen:n,quality:r,...o}=e;this._renderConfig={...this._renderConfig,...o,devicePixelRatio:t||V(),freezeOnOffscreen:n??!0,...void 0!==r&&{quality:r}},void 0!==r&&this._dotLottieCore&&this._dotLottieCore.set_quality(r),g&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.autoResize?W.observe(this._canvas,this):W.unobserve(this._canvas),this._renderConfig.freezeOnOffscreen?($.observe(this._canvas,this),J(this._canvas)||this.freeze()):($.unobserve(this._canvas),this._isFrozen&&this.unfreeze()))}loadAnimation(e){null!==this._dotLottieCore&&this._dotLottieCore.animation_id()!==e&&this._canvas&&(this._syncCanvasSize(),this._setupTarget(this._canvas.width,this._canvas.height),this._dotLottieCore.load_animation_from_id(e)?(void 0!==this._renderConfig.quality&&this._dotLottieCore.set_quality(this._renderConfig.quality),this._drainPlayerEvents(),this._dotLottieCore.render(),this._draw()):this._dispatchError(`Failed to load animation with id: ${e}`))}setMarker(e){null!==this._dotLottieCore&&(this.markers().some(t=>t.name===e)?(this._marker=e,this._dotLottieCore.set_marker(e)):(this._marker="",this._segment=null,this._dotLottieCore.clear_marker(),this._dotLottieCore.clear_segment()))}markers(){let e=this._dotLottieCore?.markers();return e&&Array.isArray(e)?e:[]}setTheme(e){if(null===this._dotLottieCore)return!1;let t=this._dotLottieCore.set_theme(e);return t&&(this._dotLottieCore.render(),this._draw()),t}resetTheme(){if(null===this._dotLottieCore)return!1;let e=this._dotLottieCore.reset_theme();return e&&(this._dotLottieCore.render(),this._draw()),e}setThemeData(e){if(null===this._dotLottieCore)return!1;let t="string"==typeof e?e:JSON.stringify(e),n=this._dotLottieCore.set_theme_data(t);return n&&(this._dotLottieCore.render(),this._draw()),n}setSlots(e){null!==this._dotLottieCore&&this._dotLottieCore.set_slots_str(JSON.stringify(e))&&(this._dotLottieCore.render(),this._draw())}_isKeyframeArray(e){return Array.isArray(e)&&e.length>0&&"object"==typeof e[0]&&null!==e[0]&&"t"in e[0]&&"s"in e[0]}getSlotIds(){if(!this._dotLottieCore)return[];let e=this._dotLottieCore.get_slot_ids();return Array.isArray(e)?e:[]}getSlotType(e){if(!this._dotLottieCore)return;let t=this._dotLottieCore.get_slot_type(e);if(t)return t}getSlot(e){if(!this._dotLottieCore)return;let t=this._dotLottieCore.get_slot_str(e);if(t)try{return JSON.parse(t)}catch{return}}getSlots(){if(!this._dotLottieCore)return{};try{return JSON.parse(this._dotLottieCore.get_slots_str())}catch{return{}}}setColorSlot(e,t){if(null===this._dotLottieCore)return!1;let n=JSON.stringify({a:+!!this._isKeyframeArray(t),k:t}),r=this._dotLottieCore.set_slot_str(e,n);return this._dotLottieCore.render(),this._draw(),r}setScalarSlot(e,t){if(null===this._dotLottieCore)return!1;let n=JSON.stringify({a:+("number"!=typeof t),k:t}),r=this._dotLottieCore.set_slot_str(e,n);return this._dotLottieCore.render(),this._draw(),r}setVectorSlot(e,t){if(null===this._dotLottieCore)return!1;let n=JSON.stringify({a:+!!this._isKeyframeArray(t),k:t}),r=this._dotLottieCore.set_slot_str(e,n);return this._dotLottieCore.render(),this._draw(),r}setGradientSlot(e,t,n){if(null===this._dotLottieCore)return!1;let r=JSON.stringify({k:{a:+!!this._isKeyframeArray(t),k:t},p:n}),o=this._dotLottieCore.set_slot_str(e,r);return this._dotLottieCore.render(),this._draw(),o}setTextSlot(e,t){if(null===this._dotLottieCore)return!1;let n=this._dotLottieCore.get_slot_str(e),r=t;if(n){let e=JSON.parse(n);if(e&&"k"in e&&Array.isArray(e.k)){let n=e.k[0];"s"in n&&"object"==typeof n.s&&(r={...n.s,...t})}}let o=JSON.stringify({a:0,k:[{t:0,s:r}]}),i=this._dotLottieCore.set_slot_str(e,o);return this._dotLottieCore.render(),this._draw(),i}async setImageSlot(e,t){if(null===this._dotLottieCore)return!1;let n=await K(t);if(null===this._dotLottieCore)return!1;let r=this._dotLottieCore.set_image_slot(e,n);return this._dotLottieCore.render(),this._draw(),r}resetSlot(e){if(null===this._dotLottieCore)return!1;let t=this._dotLottieCore.reset_slot(e);return this._dotLottieCore.render(),this._draw(),t}clearSlot(e){if(null===this._dotLottieCore)return!1;let t=this._dotLottieCore.clear_slot(e);return this._dotLottieCore.render(),this._draw(),t}resetSlots(){if(null===this._dotLottieCore)return!1;let e=this._dotLottieCore.reset_slots();return this._dotLottieCore.render(),this._draw(),e}clearSlots(){if(null===this._dotLottieCore)return!1;let e=this._dotLottieCore.clear_slots();return this._dotLottieCore.render(),this._draw(),e}setLayout(e){null!==this._dotLottieCore&&this._dotLottieCore.set_layout(e.fit??"contain",e.align?.[0]??.5,e.align?.[1]??.5)}setViewport(e,t,n,r){return null!==this._dotLottieCore&&this._dotLottieCore.set_viewport(e,t,n,r)}static setWasmUrl(e){X().setWasmUrl(e)}static preload(){return X().load()}static async registerFont(e,t){try{var n;let r,o,i,a,s;if(await X().load(),"string"==typeof t){let e=await fetch(t);if(!e.ok)return console.error(`Failed to fetch font from URL: ${t}. Status: ${e.status}`),!1;r=new Uint8Array(await e.arrayBuffer())}else r=t instanceof Uint8Array?t:new Uint8Array(t);let l=(n=r,o=k(e,w.__wbindgen_malloc_command_export,w.__wbindgen_realloc_command_export),i=y,a=j(n,w.__wbindgen_malloc_command_export),s=y,0!==w.register_font(o,i,a,s));return l||console.error(`Failed to register font "${e}". Font data may be invalid.`),l}catch(t){return console.error(`Error registering font "${e}
5":`,t),!1}}animationSize(){let e=this._dotLottieCore?.animation_size();return{width:e?.[0]??0,height:e?.[1]??0}}stateMachineLoad(e){return!!this._dotLottieCore&&this._dotLottieCore.state_machine_load_from_id(e)}stateMachineLoadData(e){return!!this._dotLottieCore&&this._dotLottieCore.state_machine_load(e)}stateMachineSetConfig(e){this._stateMachineConfig=e}stateMachineStart(){if(null===this._dotLottieCore)return!1;let e=this._dotLottieCore.sm_start(this._stateMachineConfig?.openUrlPolicy?.requireUserInteraction??!0,this._stateMachineConfig?.openUrlPolicy?.whitelist??[]);return this._drainSmEvents(),e&&(this._isStateMachineRunning=!0,this._setupStateMachineListeners(),this._startAnimationLoop()),e}stateMachineStop(){if(!this._dotLottieCore)return!1;let e=this._dotLottieCore.sm_stop();return this._drainSmEvents(),e&&(this._isStateMachineRunning=!1,this._cleanupStateMachineListeners(),this._dotLottieCore.status()!==D.Playing&&this._stopAnimationLoop()),e}stateMachineGetStatus(){return this._dotLottieCore?.sm_status()??""}stateMachineGetCurrentState(){return this._dotLottieCore?.sm_current_state()??""}stateMachineGetActiveId(){return this._dotLottieCore?.state_machine_id()??""}stateMachineOverrideState(e,t=!1){return this._dotLottieCore?.sm_override_current_state(e,t)??!1}stateMachineSetSeed(e){return this._dotLottieCore?.sm_set_seed(BigInt(Math.trunc(e)))??!1}stateMachineGet(e){return this._dotLottieCore?.get_state_machine(e)??""}stateMachineGetListeners(){if(!this._dotLottieCore)return[];let e=this._dotLottieCore.sm_framework_setup();return Array.isArray(e)?e:[]}stateMachineSetBooleanInput(e,t){return this._dotLottieCore?.sm_set_boolean_input(e,t)??!1}stateMachineSetNumericInput(e,t){return this._dotLottieCore?.sm_set_numeric_input(e,t)??!1}stateMachineSetStringInput(e,t){return this._dotLottieCore?.sm_set_string_input(e,t)??!1}stateMachineGetBooleanInput(e){return this._dotLottieCore?.sm_get_boolean_input(e)??void 0}stateMachineGetNumericInput(e){return this._dotLottieCore?.sm_get_numeric_input(e)??void 0}stateMachineGetStringInput(e){return this._dotLottieCore?.sm_get_string_input(e)??void 0}stateMachineGetInputs(){if(!this._dotLottieCore)return[];let e=this._dotLottieCore.sm_get_inputs();return Array.isArray(e)?e:[]}stateMachineFireEvent(e){this._dotLottieCore?.sm_fire(e)}stateMachinePostClickEvent(e,t){this._dotLottieCore?.sm_post_click(e,t)}stateMachinePostPointerUpEvent(e,t){this._dotLottieCore?.sm_post_pointer_up(e,t)}stateMachinePostPointerDownEvent(e,t){this._dotLottieCore?.sm_post_pointer_down(e,t)}stateMachinePostPointerMoveEvent(e,t){this._dotLottieCore?.sm_post_pointer_move(e,t)}stateMachinePostPointerEnterEvent(e,t){this._dotLottieCore?.sm_post_pointer_enter(e,t)}stateMachinePostPointerExitEvent(e,t){this._dotLottieCore?.sm_post_pointer_exit(e,t)}_onClick(e){let t=G(e);t&&this.stateMachinePostClickEvent(t.x,t.y)}_onPointerUp(e){let t=G(e);t&&this.stateMachinePostPointerUpEvent(t.x,t.y)}_onPointerDown(e){let t=G(e);t&&this.stateMachinePostPointerDownEvent(t.x,t.y)}_onPointerMove(e){let t=G(e);t&&this.stateMachinePostPointerMoveEvent(t.x,t.y)}_onPointerEnter(e){let t=G(e);t&&this.stateMachinePostPointerEnterEvent(t.x,t.y)}_onPointerLeave(e){let t=G(e);t&&this.stateMachinePostPointerExitEvent(t.x,t.y)}_setupStateMachineListeners(){if(g&&this._canvas instanceof HTMLCanvasElement&&null!==this._dotLottieCore&&this.isLoaded){let e=this.stateMachineGetListeners();this._cleanupStateMachineListeners(),e.includes("Click")&&(this._boundOnClick=this._onClick.bind(this),this._canvas.addEventListener("click",this._boundOnClick)),e.includes("PointerUp")&&(this._boundOnPointerUp=this._onPointerUp.bind(this),this._canvas.addEventListener("pointerup",this._boundOnPointerUp)),e.includes("PointerDown")&&(this._boundOnPointerDown=this._onPointerDown.bind(this),this._canvas.addEventListener("pointerdown",this._boundOnPointerDown)),e.includes("PointerMove")&&(this._boundOnPointerMove=this._onPointerMove.bind(this),this._canvas.addEventListener("pointermove",this._boundOnPointerMove)),e.includes("PointerEnter")&&(this._boundOnPointerEnter=this._onPointerEnter.bind(this),this._canvas.addEventListener("pointerenter",this._boundOnPointerEnter)),e.includes("PointerExit")&&(this._boundOnPointerLeave=this._onPointerLeave.bind(this),this._canvas.addEventListener("pointerleave",this._boundOnPointerLeave))}}_cleanupStateMachineListeners(){g&&this._canvas instanceof HTMLCanvasElement&&(this._boundOnClick&&(this._canvas.removeEventListener("click",this._boundOnClick),this._boundOnClick=null),this._boundOnPointerUp&&(this._canvas.removeEventListener("pointerup",this._boundOnPointerUp),this._boundOnPointerUp=null),this._boundOnPointerDown&&(this._canvas.removeEventListener("pointerdown",this._boundOnPointerDown),this._boundOnPointerDown=null),this._boundOnPointerMove&&(this._canvas.removeEventListener("pointermove",this._boundOnPointerMove),this._boundOnPointerMove=null),this._boundOnPointerEnter&&(this._canvas.removeEventListener("pointerenter",this._boundOnPointerEnter),this._boundOnPointerEnter=null),this._boundOnPointerLeave&&(this._canvas.removeEventListener("pointerleave",this._boundOnPointerLeave),this._boundOnPointerLeave=null))}};let et=({animationId:e,autoplay:t,backgroundColor:n,className:r,createDotLottie:o,data:i,dotLottieRefCallback:a,layout:s,loop:l,loopCount:d,mode:u,playOnHover:h,renderConfig:m,segment:f,speed:p,src:g,stateMachineConfig:b,stateMachineId:v,style:w,themeData:y,themeId:C,useFrameInterpolation:L,workerId:x,...E})=>{let k=(0,c.useRef)(null),S=(0,c.useRef)(null),M=(0,c.useRef)(a),P=(0,c.useRef)(null),O={speed:p,mode:u,loop:l,loopCount:d,useFrameInterpolation:L,segment:f,backgroundColor:n,autoplay:t,themeId:C,workerId:x,src:g,data:i,layout:s,renderConfig:m,animationId:e,stateMachineConfig:b,stateMachineId:v},R=(0,c.useRef)(O);M.current=a,R.current=O;let A=(0,c.useCallback)(e=>{if(S.current=e,e){let t=P.current;t&&t.canvas===e?(clearTimeout(t.timer),P.current=null,k.current=t.instance):k.current?.canvas!==e&&(k.current=o({...R.current,canvas:e}))}
5else if(k.current){let e=k.current,t=e.canvas;k.current=null,t instanceof HTMLCanvasElement?P.current={canvas:t,instance:e,timer:setTimeout(()=>{P.current?.instance===e&&(P.current=null),e.destroy()},0)}:e.destroy()}M.current?.(k.current)},[]);return(0,c.useEffect)(()=>{let e=e=>{h&&("mouseenter"===e.type&&k.current?.play(),"mouseleave"===e.type&&k.current?.pause())};return S.current?.addEventListener("mouseenter",e),S.current?.addEventListener("mouseleave",e),()=>{S.current?.removeEventListener("mouseenter",e),S.current?.removeEventListener("mouseleave",e)}},[h]),(0,c.useEffect)(()=>{k.current?.setSpeed(p??1)},[p]),(0,c.useEffect)(()=>{k.current?.setMode(u??"forward")},[u]),(0,c.useEffect)(()=>{k.current?.setLoop(l??!1)},[l]),(0,c.useEffect)(()=>{k.current?.setLoopCount(d??0)},[d]),(0,c.useEffect)(()=>{k.current?.setUseFrameInterpolation(L??!0)},[L]),(0,c.useEffect)(()=>{"number"==typeof f?.[0]&&"number"==typeof f[1]?k.current?.setSegment(f[0],f[1]):k.current?.resetSegment()},[f]),(0,c.useEffect)(()=>{k.current?.setBackgroundColor(n??"")},[n]),(0,c.useEffect)(()=>{k.current?.setRenderConfig(m??{})},[JSON.stringify(m)]),(0,c.useEffect)(()=>{"string"!=typeof i&&"object"!=typeof i||k.current?.load({data:i,...R.current})},[i]),(0,c.useEffect)(()=>{"string"==typeof g&&k.current?.load({src:g,...R.current})},[g]),(0,c.useEffect)(()=>{k.current?.setMarker(E.marker??"")},[E.marker]),(0,c.useEffect)(()=>{k.current?.isLoaded&&k.current.activeAnimationId!==e&&k.current.loadAnimation(e??"")},[e]),(0,c.useEffect)(()=>{"string"==typeof C&&k.current?.setTheme(C)},[C]),(0,c.useEffect)(()=>{k.current?.setThemeData(y??"")},[y]),(0,c.useEffect)(()=>{k.current?.setLayout(s??{})},[s?.fit,s?.align?.[0],s?.align?.[1]]),(0,c.useEffect)(()=>{k.current?.isLoaded&&("string"==typeof v&&v?k.current.stateMachineLoad(v)&&k.current.stateMachineStart():k.current.stateMachineStop())},[v]),(0,c.useEffect)(()=>{k.current?.stateMachineSetConfig(b??null)},[b]),(0,_.jsx)("div",{className:r,...!r&&{style:{width:"100%",height:"100%",lineHeight:0,...w}},children:(0,_.jsx)("canvas",{ref:A,style:{width:"100%",height:"100%"},...E})})},en=e=>new ee(e),er=e=>(0,_.jsx)(et,{...e,createDotLottie:en});var eo=e.i(32655);let ei=(0,eo.default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]),ea=(0,eo.default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),es=(0,eo.default)("thumbs-up",[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]]),el=(0,eo.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var e_=e.i(43836),ec=e.i(76173),ed=e.i(64503),eu=e.i(87114),eh=Object.defineProperty,em=c[" useId ".trim().toString()]||(()=>void 0),ef=0;function ep(e){let[t,n]=c.useState(em());return(0,eu.useLayoutEffect)(()=>{e||n(e=>e??String(ef++))},[e]),e||(t?`radix-${t}`:"")}eh(ep,"name",{value:"useId",configurable:!0});var eg=Object.defineProperty,eb=c[" useEffectEvent ".trim().toString()],ev=c[" useInsertionEffect ".trim().toString()];function ew(e){if("function"==typeof eb)return eb(e);let t=c.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof ev?ev(()=>{t.current=e}):(0,eu.useLayoutEffect)(()=>{t.current=e}),c.useMemo(()=>(...e)=>t.current?.(...e),[])}eg(ew,"name",{value:"useEffectEvent",configurable:!0});var ey=Object.defineProperty,eC=(e,t)=>ey(e,"name",{value:t,configurable:!0}),eL=c[" useInsertionEffect ".trim().toString()]||eu.useLayoutEffect;function ex({prop:e,defaultProp:t,onChange:n=eC(()=>{},"onChange"),caller:r}){let[o,i,a]=eE({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o;return[l,c.useCallback(t=>{if(s){let n=ek(t)?t(e):t;n!==e&&a.current?.(n)}else i(t)},[s,e,i,a])]}function eE({defaultProp:e,onChange:t}){let[n,r]=c.useState(e),o=c.useRef(n),i=c.useRef(t);return eL(()=>{i.current=t},[t]),c.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function ek(e){return"function"==typeof e}eC(ex,"useControllableState"),eC(eE,"useUncontrolledState"),eC(ek,"isFunction");var eS=Symbol("RADIX:SYNC_STATE");eC(function(e,t,n,r){let{prop:o,defaultProp:i,onChange:a,caller:s}=t,l=void 0!==o,_=ew(a),d=[{...n,state:i}];r&&d.push(r);let[u,h]=c.useReducer((t,n)=>
5{if(n.type===eS)return{...t,state:n.state};let r=e(t,n);return l&&!Object.is(r.state,t.state)&&_(r.state),r},...d),m=u.state,f=c.useRef(m);c.useEffect(()=>{f.current!==m&&(f.current=m,l||_(m))},[m,f,l]);let p=c.useMemo(()=>void 0!==o?{...u,state:o}:u,[u,o]);return c.useEffect(()=>{l&&!Object.is(o,u.state)&&h({type:eS,state:o})},[o,u.state,l]),[p,h]},"useControllableStateReducer");var eM=e.i(56316),eP=e.i(28755),eO=Object.defineProperty,eR=(e,t)=>eO(e,"name",{value:t,configurable:!0}),eA="dismissableLayer.update",eI=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),ej=c.forwardRef(eR(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:d,...u}=e,h=c.useContext(eI),[m,f]=c.useState(null),p=m?.ownerDocument??globalThis?.document,[,g]=c.useState({}),b=(0,ec.useComposedRefs)(t,f),v=Array.from(h.layers),[w]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),y=w?v.indexOf(w):-1,C=m?v.indexOf(m):-1,L=h.layersWithOutsidePointerEventsDisabled.size>0,x=C>=y,E=c.useRef(!1),k=eF(e=>{i?.(e),l?.(e),e.defaultPrevented||d?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:E,dismissableSurfaces:h.dismissableSurfaces,shouldHandlePointerDownOutside:c.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...h.branches].some(t=>t.contains(e));return x&&!t},[h.branches,x])}),S=eN(e=>{if(r&&E.current)return;let t=e.target;![...h.branches].some(e=>e.contains(t))&&(a?.(e),l?.(e),e.defaultPrevented||d?.())},p),M=!!m&&C===v.length-1,P=(0,eP.useCallbackRef)(e=>{"Escape"===e.key&&(o?.(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))});return c.useEffect(()=>{if(M)return p.addEventListener("keydown",P,{capture:!0}),()=>p.removeEventListener("keydown",P,{capture:!0})},[p,M,P]),c.useEffect(()=>{if(m)return n&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(s=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),ez(),()=>{n&&(h.layersWithOutsidePointerEventsDisabled.delete(m),0===h.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=s))}},[m,p,n,h]),c.useEffect(()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),ez())},[m,h]),c.useEffect(()=>{let e=eR(()=>g({}),"handleUpdate");return document.addEventListener(eA,e),()=>document.removeEventListener(eA,e)},[]),(0,_.jsx)(eM.Primitive.div,{...u,ref:b,style:{pointerEvents:L?x?"auto":"none":void 0,...e.style},onFocusCapture:(0,e_.composeEventHandlers)(e.onFocusCapture,S.onFocusCapture),onBlurCapture:(0,e_.composeEventHandlers)(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:(0,e_.composeEventHandlers)(e.onPointerDownCapture,k.onPointerDownCapture)})},"DismissableLayer"));function eT(){let e=c.useContext(eI),[t,n]=c.useState(null);return c.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}eR(eT,"useDismissableLayerSurface");var eD=eR(()=>!0,"IS_TRUE");function eF(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:a=eD}=t,s=(0,eP.useCallbackRef)(e),l=c.useRef(!1),_=c.useRef(!1),d=c.useRef(new Map),u=c.useRef(()=>{});return c.useEffect(()=>{function e(){_.current=!1,o.current=!1,d.current.clear()}function t(){return Array.from(d.current.values()).some(Boolean)}function c(e){if(!_.current)return;let t=e.target;t instanceof Node&&[...i].some(e=>e.contains(t))||d.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{_.current&&u.current()},0)}function h(e){_.current&&d.current.set(e.type,!1)}eR(e,"resetOutsideInteraction"),eR(t,"isOutsideInteractionIntercepted"),eR(c,"handleInteractionCapture"),eR(h,"handleInteractionBubble");let m=eR(i=>{if(i.target&&!l.current){let c=function(){n.removeEventListener("click",u.current);let r=t();e(),r||eB("dismissableLayer.pointerDownOutside",s,h,{discrete:!0})};if(eR(c,"handleAndDispatchPointerDownOutsideEvent"),!a(i.target)){n.removeEventListener("click",u.current),e(
5),l.current=!1;return}let h={originalEvent:i};_.current=!0,o.current=r&&0===i.button,d.current.clear(),r&&0===i.button?(n.removeEventListener("click",u.current),u.current=c,n.addEventListener("click",u.current,{once:!0})):c()}else n.removeEventListener("click",u.current),e();l.current=!1},"handlePointerDown"),f=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of f)n.addEventListener(e,c,!0),n.addEventListener(e,h);let p=window.setTimeout(()=>{n.addEventListener("pointerdown",m)},0);return()=>{for(let e of(window.clearTimeout(p),n.removeEventListener("pointerdown",m),n.removeEventListener("click",u.current),f))n.removeEventListener(e,c,!0),n.removeEventListener(e,h)}},[n,s,r,o,i,a]),{onPointerDownCapture:eR(()=>l.current=!0,"onPointerDownCapture")}}function eN(e,t=globalThis?.document){let n=(0,eP.useCallbackRef)(e),r=c.useRef(!1);return c.useEffect(()=>{let e=eR(e=>{e.target&&!r.current&&eB("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:eR(()=>r.current=!0,"onFocusCapture"),onBlurCapture:eR(()=>r.current=!1,"onBlurCapture")}}function ez(){let e=new CustomEvent(eA);document.dispatchEvent(e)}function eB(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(0,eM.dispatchDiscreteCustomEvent)(o,i):o.dispatchEvent(i)}eR(eF,"usePointerDownOutside"),eR(eN,"useFocusOutside"),eR(ez,"dispatchUpdate"),eR(eB,"handleAndDispatchCustomEvent");var eU=Object.defineProperty,e$=(e,t)=>eU(e,"name",{value:t,configurable:!0}),eW="focusScope.autoFocusOnMount",eH="focusScope.autoFocusOnUnmount",eq={bubbles:!1,cancelable:!0},eV=c.forwardRef(e$(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=c.useState(null),d=(0,eP.useCallbackRef)(o),u=(0,eP.useCallbackRef)(i),h=c.useRef(null),m=(0,ec.useComposedRefs)(t,l),f=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let e=function(e){if(f.paused||!s)return;let t=e.target;s.contains(t)?h.current=t:eQ(h.current,{select:!0})},t=function(e){if(f.paused||!s)return;let t=e.relatedTarget;null!==t&&(s.contains(t)||eQ(h.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&eQ(s)};e$(e,"handleFocusIn"),e$(t,"handleFocusOut"),e$(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,s,f.paused]),c.useEffect(()=>{if(s){e0.add(f);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(eW,eq);s.addEventListener(eW,d),s.dispatchEvent(t),t.defaultPrevented||(eJ(e5(eK(s)),{select:!0}),document.activeElement===e&&eQ(s))}return()=>{s.removeEventListener(eW,d),setTimeout(()=>{let t=new CustomEvent(eH,eq);s.addEventListener(eH,u),s.dispatchEvent(t),t.defaultPrevented||eQ(e??document.body,{select:!0}),s.removeEventListener(eH,u),e0.remove(f)},0)}}},[s,d,u,f]);let p=c.useCallback(e=>{if(!n&&!r||f.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=eG(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&eQ(i,{select:!0})):(e.preventDefault(),n&&eQ(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,f.paused]);return(0,_.jsx)(eM.Primitive.div,{tabIndex:-1,...a,ref:m,onKeyDown:p})},"FocusScope"));function eJ(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(eQ(r,{select:t}),document.activeElement!==n)return}function eG(e){let t=eK(e);return[eY(t,e),eY(t.reverse(),e)]}function eK(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e$(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function eY(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):eX(r,{upTo:t})))return r}function eX(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function eZ(e){return e instanceof HTMLInputElement&&"select"in e}function eQ(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&eZ(e)&&t&&e.select()}}e$(eJ,"focusFirst"),e$(eG,"getTabbableEdges"),e$(eK,"getTabbableCandidates"),e$(eY,"findVisible"),e$(eX,"isHidden"),e$(eZ,"isSelectableInput"),e$(eQ,"focu
5s");var e0=e1();function e1(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=e2(e,t)).unshift(t)},remove(t){e=e2(e,t),e[0]?.resume()}}}function e2(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function e5(e){return e.filter(e=>"A"!==e.tagName)}e$(e1,"createFocusScopesStack"),e$(e2,"arrayRemove"),e$(e5,"removeLinks");var e3=e.i(67071),e6=Object.defineProperty,e8=c.forwardRef(e6(function(e,t){let{container:n,...r}=e,[o,i]=c.useState(!1);(0,eu.useLayoutEffect)(()=>i(!0),[]);let a=n||o&&globalThis?.document?.body;return a?e3.createPortal((0,_.jsx)(eM.Primitive.div,{...r,ref:t}),a):null},"name",{value:"Portal",configurable:!0})),e4=e.i(11681),e7=Object.defineProperty,e9=(e,t)=>e7(e,"name",{value:t,configurable:!0}),te=0,tt=null;function tn(){c.useEffect(()=>{tt||(tt={start:tr(),end:tr()});let{start:e,end:t}=tt;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),te++,()=>{1===te&&(tt?.start.remove(),tt?.end.remove(),tt=null),te=Math.max(0,te-1)}},[])}function tr(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}e9(function(e){return tn(),e.children},"FocusGuards"),e9(tn,"useFocusGuards"),e9(tr,"createFocusGuard");var to=function(){return(to=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ti(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var ta=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),ts="width-before-scroll-bar";function tl(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var t_="u">typeof window?c.useLayoutEffect:c.useEffect,tc=new WeakMap,td=(void 0===t&&(t={}),(void 0===n&&(n=function(e){return e}),r=[],o=!1,i={read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var t=n(e,o);return r.push(t),function(){r=r.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){o=!0;var t=[];if(r.length){var n=r;r=[],n.forEach(e),t=r}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}}).options=to({async:!0,ssr:!1},t),i),tu=function(){},th=c.forwardRef(function(e,t){var n,r,o,i,a=c.useRef(null),s=c.useState({onScrollCapture:tu,onWheelCapture:tu,onTouchMoveCapture:tu}),l=s[0],_=s[1],d=e.forwardProps,u=e.children,h=e.className,m=e.removeScrollBar,f=e.enabled,p=e.shards,g=e.sideCar,b=e.noRelative,v=e.noIsolation,w=e.inert,y=e.allowPinchZoom,C=e.as,L=e.gapMode,x=ti(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=(n=[a,t],r=function(e){return n.forEach(function(t){return tl(t,e)})},(o=(0,c.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,t_(function(){var e=tc.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||tl(e,null)}),r.forEach(function(e){t.has(e)||tl(e,o)})}tc.set(i,n)},[n]),i),k=to(to({},x),l);return c.createElement(c.Fragment,null,f&&c.createElement(g,{sideCar:td,removeScrollBar:m,shards:p,noRelative:b,noIsolation:v,inert:w,setCallbacks:_,allowPinchZoom:!!y,lockRef:a,gapMode:L}),d?c.cloneElement(c.Children.only(u),to(to({},k),{ref:E})):c.createElement(void 0===C?"div":C,to({},k,{className:h,ref:E}),u))});th.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},th.classNames={fullWidth:ts,zeroRight:ta};var tm=function(e){var t=e.sideCar,n=ti(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return c.createElement(r,to({},n))};
5tm.isSideCarExport=!0;var tf=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tp=function(){var e=tf();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tg=function(){var e=tp();return function(t){return e(t.styles,t.dynamic),null}},tb={left:0,top:0,right:0,gap:0},tv=function(e){return parseInt(e||"",10)||0},tw=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[tv(n),tv(r),tv(o)]},ty=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return tb;var t=tw(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},tC=tg(),tL="data-scroll-locked",tx=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(tL,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ta," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(ts," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(ta," .").concat(ta," {\n right: 0 ").concat(r,";\n }\n \n .").concat(ts," .").concat(ts," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(tL,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},tE=function(){var e=parseInt(document.body.getAttribute(tL)||"0",10);return isFinite(e)?e:0},tk=function(){c.useEffect(function(){return document.body.setAttribute(tL,(tE()+1).toString()),function(){var e=tE()-1;e<=0?document.body.removeAttribute(tL):document.body.setAttribute(tL,e.toString())}},[])},tS=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;tk();var i=c.useMemo(function(){return ty(o)},[o]);return c.createElement(tC,{styles:tx(i,!t,o,n?"":"!important")})},tM=!1;if("u">typeof window)try{var tP=Object.defineProperty({},"passive",{get:function(){return tM=!0,!0}});window.addEventListener("test",tP,tP),window.removeEventListener("test",tP,tP)}catch(e){tM=!1}var tO=!!tM&&{passive:!1},tR=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},tA=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),tI(e,r)){var o=tj(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body)return!1},tI=function(e,t){return"v"===e?tR(t,"overflowY"):tR(t,"overflowX")},tj=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},tT=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),s=a*r,l=n.target,_=t.contains(l),c=!1,d=s>0,u=0,h=0;do{if(!l)break;var m=tj(e,l),f=m[0],p=m[1]-m[2]-a*f;(f||p)&&tI(e,l)&&(u+=p,h+=f);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!_&&l!==document.body||_&&(t.contains(l)||t===l))return d&&(o&&1>Math.abs(u)||!o&&s>u)?c=!0:!d&&(o&&1>Math.abs(h)||!o&&-s>h)&&(c=!0),c},tD=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tF=function(e){return[e.deltaX,e.deltaY]},tN=function(e){return e&&"current"in e?e.current:e},tz=0,tB=[];let tU=(a=function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(tz++)[0],i=c.useState(tg)[0],a=c.useRef(e);c.useEffect(function(){a.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}
5)([e.lockRef.current],(e.shards||[]).map(tN),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=tD(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],_="deltaY"in e?e.deltaY:s[1]-i[1],c=e.target,d=Math.abs(l)>Math.abs(_)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var u=window.getSelection(),h=u&&u.anchorNode;if(h&&(h===c||h.contains(c)))return!1;var m=tA(d,c);if(!m)return!0;if(m?o=d:(o="v"===d?"h":"v",m=tA(d,c)),!m)return!1;if(!r.current&&"changedTouches"in e&&(l||_)&&(r.current=o),!o)return!0;var f=r.current||o;return tT(f,t,e,"h"===f?l:_,!0)},[]),l=c.useCallback(function(e){if(tB.length&&tB[tB.length-1]===i){var n="deltaY"in e?tF(e):tD(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(tN).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),_=c.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=c.useCallback(function(e){n.current=tD(e),r.current=void 0},[]),u=c.useCallback(function(t){_(t.type,tF(t),t.target,s(t,e.lockRef.current))},[]),h=c.useCallback(function(t){_(t.type,tD(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return tB.push(i),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:h}),document.addEventListener("wheel",l,tO),document.addEventListener("touchmove",l,tO),document.addEventListener("touchstart",d,tO),function(){tB=tB.filter(function(e){return e!==i}),document.removeEventListener("wheel",l,tO),document.removeEventListener("touchmove",l,tO),document.removeEventListener("touchstart",d,tO)}},[]);var m=e.removeScrollBar,f=e.inert;return c.createElement(c.Fragment,null,f?c.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?c.createElement(tS,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},td.useMedium(a),tm);var t$=c.forwardRef(function(e,t){return c.createElement(th,to({},e,{ref:t,sideCar:tU}))});t$.classNames=th.classNames;var tW=new WeakMap,tH=new WeakMap,tq={},tV=0,tJ=function(e){return e&&(e.host||tJ(e.parentNode))},tG=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=tJ(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});tq[n]||(tq[n]=new WeakMap);var i=tq[n],a=[],s=new Set,l=new Set(o),_=function(e){!e||s.has(e)||(s.add(e),_(e.parentNode))};o.forEach(_);var c=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(tW.get(e)||0)+1,_=(i.get(e)||0)+1;tW.set(e,l),i.set(e,_),a.push(e),1===l&&o&&tH.set(e,!0),1===_&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),s.clear(),tV++,function(){a.forEach(function(e){var t=tW.get(e)-1,o=i.get(e)-1;tW.set(e,t),i.set(e,o),t||(tH.has(e)||e.removeAttribute(r),tH.delete(e)),o||e.removeAttribute(n)}),--tV||(tW=new WeakMap,tW=new WeakMap,tH=new WeakMap,tq={})}},tK=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),tG(r,o,n,"aria-hidden")):function(){return null}},tY=e.i(50700),tX=Object.defineProperty,tZ=(e,t)=>tX(e,"name",{value:t,configurable:!0}),tQ="Dialog",[t0,t1]=(0,ed.createContextScope)(tQ),[t2,t5]=t0(tQ),t3=tZ(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:
5a=!0}=e,s=c.useRef(null),l=c.useRef(null),[d,u]=ex({prop:r,defaultProp:o??!1,onChange:i,caller:tQ}),[h,m]=c.useState(0),[f,p]=c.useState(0);return(0,_.jsx)(t2,{scope:t,triggerRef:s,contentRef:l,contentId:ep(),titleId:ep(),descriptionId:ep(),titlePresent:h>0,descriptionPresent:f>0,setTitleCount:m,setDescriptionCount:p,open:d,onOpenChange:u,onOpenToggle:c.useCallback(()=>u(e=>!e),[u]),modal:a,children:n})},"Dialog"),t6=c.forwardRef(tZ(function(e,t){let{__scopeDialog:n,...r}=e,o=t5("DialogTrigger",n),i=(0,ec.useComposedRefs)(t,o.triggerRef);return(0,_.jsx)(eM.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":nh(o.open),...r,ref:i,onClick:(0,e_.composeEventHandlers)(e.onClick,o.onOpenToggle)})},"DialogTrigger")),t8="DialogPortal",[t4,t7]=t0(t8,{forceMount:void 0}),t9=tZ(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=t5(t8,t);return(0,_.jsx)(t4,{scope:t,forceMount:n,children:c.Children.map(r,e=>(0,_.jsx)(e4.Presence,{present:n||i.open,children:(0,_.jsx)(e8,{asChild:!0,container:o,children:e})}))})},"DialogPortal"),ne="DialogOverlay",nt=c.forwardRef(tZ(function(e,t){let n=t7(ne,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=t5(ne,e.__scopeDialog);return i.modal?(0,_.jsx)(e4.Presence,{present:r||i.open,children:(0,_.jsx)(nr,{...o,ref:t})}):null},"DialogOverlay")),nn=(0,tY.createSlot)("DialogOverlay.RemoveScroll"),nr=c.forwardRef(tZ(function(e,t){let{__scopeDialog:n,...r}
5=e,o=t5(ne,n),i=eT(),a=(0,ec.useComposedRefs)(t,i);return(0,_.jsx)(t$,{as:nn,allowPinchZoom:!0,shards:[o.contentRef],children:(0,_.jsx)(eM.Primitive.div,{"data-state":nh(o.open),...r,ref:a,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),no="DialogContent",ni=c.forwardRef(tZ(function(e,t){let n=t7(no,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=t5(no,e.__scopeDialog);return(0,_.jsx)(e4.Presence,{present:r||i.open,children:i.modal?(0,_.jsx)(na,{...o,ref:t}):(0,_.jsx)(ns,{...o,ref:t})})},"DialogContent")),na=c.forwardRef(tZ(function(e,t){let n=t5(no,e.__scopeDialog),r=c.useRef(null),o=(0,ec.useComposedRefs)(t,n.contentRef,r);return c.useEffect(()=>{let e=r.current;if(e)return tK(e)},[]),(0,_.jsx)(nl,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:(0,e_.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:(0,e_.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,e_.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),ns=c.forwardRef(tZ(function(e,t){let n=t5(no,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return(0,_.jsx)(nl,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let i=t.target;n.triggerRef.current?.contains(i)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})},"DialogContentNonModal")),nl=c.forwardRef(tZ(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=t5(no,n);return tn(),(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(eV,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,_.jsx)(ej,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":nh(s.open),...a,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},"DialogContentImpl")),n_=c.forwardRef(tZ(function(e,t){let{__scopeDialog:n,...r}=e,o=t5("DialogTitle",n),{setTitleCount:i}=o;return(0,eu.useLayoutEffect)(()=>(i(e=>e+1),()=>i(e=>e-1)),[i]),(0,_.jsx)(eM.Primitive.h2,{id:o.titleId,...r,ref:t})},"DialogTitle")),nc=c.forwardRef(tZ(function(e,t){let{__scopeDialog:n,...r}=e,o=t5("DialogDescription",n),{setDescriptionCount:i}=o;return(0,eu.useLayoutEffect)(()=>(i(e=>e+1),()=>i(e=>e-1)),[i]),(0,_.jsx)(eM.Primitive.p,{id:o.descriptionId,...r,ref:t})},"DialogDescription")),nd=c.forwardRef(tZ(function(e,t){let{__scopeDialog:n,...r}=e,o=t5("DialogClose",n);return(0,_.jsx)(eM.Primitive.button,{type:"button",...r,ref:t,onClick:(0,e_.composeEventHandlers)(e.onClick,()=>o.onOpenChange(!1))})},"DialogClose")),nu=tZ(e=>e.children,"WarningProvider");function nh(e){return e?"open":"closed"}tZ(nh,"getState"),e.s(["Close",0,nd,"Content",0,ni,"Description",0,nc,"Dialog",0,t3,"DialogClose",0,nd,"DialogContent",0,ni,"DialogDescription",0,nc,"DialogOverlay",0,nt,"DialogPortal",0,t9,"DialogTitle",0,n_,"DialogTrigger",0,t6,"Overlay",0,nt,"Portal",0,t9,"Root",0,t3,"Title",0,n_,"Trigger",0,t6,"WarningProvider",0,nu,"createDialogScope",0,t1],71258);var nm=e.i(71258),nm=nm,nf=e.i(47163),np=e.i(67881);let ng=(0,eo.default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function nb({...e}){return(0,_.jsx)(nm.Root,{"data-slot":"dialog",...e})}function nv({...e}){return(0,_.jsx)(nm.Trigger,{"data-slot":"dialog-trigger",...e})}function nw({...e}){return(0,_.jsx)(nm.Portal,{"data-slot":"dialog-portal",...e})}function ny({className:e,...t}){return(0,_.jsx)(nm.Overlay,{"data-slot":"dialog-overlay",className:(0,nf.cn)("fixed inset-0 isolate z-50","bg-black/10 duration-100","data-open:animate-in data-open:fade-in-0","data-closed:animate-out data-closed:fade-out-0","supports-backdrop-filter:backdrop-blur-xs",e),...t})}function nC({className:e,children:t,showCloseButton:n=!0,...r}){return(0,_.jsxs)(nw,{children:[(0,_.jsx)(ny,{}),(0,_.jsxs)(nm.Content,{"data-slot":"dialog-content",className:(0,nf.cn)("fixed top-1/2 left-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2","grid max-w-[calc(100%-2rem)] gap-6 rounded-xl p-6 text-sm sm:max-w-md","bg-background ring-1 ring-foreground
5/10 duration-100","data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95","data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r,children:[t,n&&(0,_.jsx)(nm.Close,{"data-slot":"dialog-close",asChild:!0,children:(0,_.jsxs)(np.Button,{variant:"ghost",className:(0,nf.cn)("absolute top-4 right-4"),size:"icon-sm",children:[(0,_.jsx)(ng,{}),(0,_.jsx)("span",{className:(0,nf.cn)("sr-only"),children:"Close"})]})})]})]})}function nL({className:e,...t}){return(0,_.jsx)("div",{"data-slot":"dialog-header",className:(0,nf.cn)("gap-2 flex flex-col",e),...t})}function nx({className:e,...t}){return(0,_.jsx)(nm.Title,{"data-slot":"dialog-title",className:(0,nf.cn)("leading-none font-medium",e),...t})}function nE({className:e,...t}){return(0,_.jsx)(nm.Description,{"data-slot":"dialog-description",className:(0,nf.cn)("text-sm text-muted-foreground","*:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}var nk=Object.defineProperty,nS=(e,t)=>nk(e,"name",{value:t,configurable:!0}),nM="Collapsible",[nP,nO]=(0,ed.createContextScope)(nM),[nR,nA]=nP(nM),nI=c.forwardRef(nS(function(e,t){let{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...s}=e,[l,d]=ex({prop:r,defaultProp:o??!1,onChange:a,caller:nM});return(0,_.jsx)(nR,{scope:n,disabled:i,contentId:ep(),open:l,onOpenToggle:c.useCallback(()=>d(e=>!e),[d]),children:(0,_.jsx)(eM.Primitive.div,{"data-state":nN(l),"data-disabled":i?"":void 0,...s,ref:t})})},"Collapsible")),nj=c.forwardRef(nS(function(e,t){let{__scopeCollapsible:n,...r}=e,o=nA("CollapsibleTrigger",n);return(0,_.jsx)(eM.Primitive.button,{type:"button","aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open||!1,"data-state":nN(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:(0,e_.composeEventHandlers)(e.onClick,o.onOpenToggle)})},"CollapsibleTrigger")),nT="CollapsibleContent",nD=c.forwardRef(nS(function(e,t){let{forceMount:n,...r}=e,o=nA(nT,e.__scopeCollapsible);return(0,_.jsx)(e4.Presence,{present:n||o.open,children:({present:e})=>(0,_.jsx)(nF,{...r,ref:t,present:e})})},"CollapsibleContent")),nF=c.forwardRef(nS(function(e,t){let{__scopeCollapsible:n,present:r,children:o,...i}=e,a=nA(nT,n),[s,l]=c.useState(r),d=c.useRef(null),u=(0,ec.useComposedRefs)(t,d),h=c.useRef(0),m=h.current,f=c.useRef(0),p=f.current,g=a.open||s,b=c.useRef(g),v=c.useRef(void 0);return c.useEffect(()=>{let e=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,eu.useLayoutEffect)(()=>{let e=d.current;if(e){v.current=v.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();h.current=t.height,f.current=t.width,b.current||(e.style.transitionDuration=v.current.transitionDuration,e.style.animationName=v.current.animationName),l(r)}},[a.open,r]),(0,_.jsx)(eM.Primitive.div,{"data-state":nN(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!g,...i,ref:u,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style},children:g&&o})},"CollapsibleContentImpl"));function nN(e){return e?"open":"closed"}nS(nN,"getState"),e.s(["Collapsible",0,nI,"CollapsibleContent",0,nD,"CollapsibleTrigger",0,nj,"Content",0,nD,"Root",0,nI,"Tr
5igger",0,nj,"createCollapsibleScope",0,nO],67481);var nz=e.i(67481),nz=nz;function nB({...e}){return(0,_.jsx)(nz.Root,{"data-slot":"collapsible",...e})}function nU({...e}){return(0,_.jsx)(nz.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...e})}function n$({...e}){return(0,_.jsx)(nz.CollapsibleContent,{"data-slot":"collapsible-content",...e})}var nW=e.i(71435),nH=e.i(65103);let nq=(0,nf.cn)("grid gap-y-3"),nV=(0,nf.cn)("flex items-center gap-x-6"),nJ=(0,nf.cn)("group w-full rounded-md bg-zinc-50 px-6 py-4","text-xs lg:text-sm !leading-none font-semibold text-zinc-800","hover:bg-zinc-50 hover:text-zinc-900","transition-all","[&_svg]:size-4 lg:[&_svg]:size-5");function nG({label:e,icon:t,href:n="",external:r=!1,onClick:o,onNavigate:i}){return(0,_.jsxs)(d.default,{href:n,target:r?"_blank":"",rel:r?"noreferrer":"",onClick:n?o||i:void 0,prefetch:!1,className:(0,nf.cn)(n?"":"cursor-not-allowed",nV,nJ),children:[(0,_.jsx)(t,{}),e]})}e.s(["Header",0,function(){let e=(0,nH.usePathPrefix)(),t=[{label:"ãã¼ã ",href:`${e}/`,icon:ei},{label:"é嬿¦è¦",href:`${e}/about`,icon:ea},{label:"åè³åé",href:`${e}/support`,icon:es}],[n,r]=(0,c.useState)(!1),o=()=>r(!1);return(0,_.jsxs)(nb,{open:n,onOpenChange:r,children:[(0,_.jsxs)(nv,{onClick:()=>r(!0),className:(0,nf.cn)("grid place-items-center","fixed top-0 right-0","p-1 sm:p-2 cursor-pointer","z-10 group transition","focus:outline-none hover:brightness-110","text-app-300"),children:[(0,_.jsx)(er,{src:`${e}/lottie/dna.lottie`,loop:!0,autoplay:!0,className:(0,nf.cn)("size-18 sm:size-22 -mb-1")}),(0,_.jsx)("div",{className:(0,nf.cn)("font-outfit font-semibold tracking-widest","text-[.625rem] sm:text-xs lg:text-sm leading-none"),children:"MENU"})]}),(0,_.jsxs)(nC,{className:(0,nf.cn)("flex justify-center","h-dvh p-6 lg:p-12","max-w-screen sm:max-w-screen rounded-none","backdrop-blur-lg bg-white/65","[&>button]:p-2 sm:[&>button]:p-3","[&>button]:bg-white [&>button]:rounded-xl","[&_button]:cursor-pointer"),children:[(0,_.jsxs)(nL,{className:(0,nf.cn)("hidden"),children:[(0,_.jsx)(nx,{"sr-only":"true"}),(0,_.jsx)(nE,{children:"header menu dialog"})]}),(0,_.jsx)(nW.ScrollArea,{className:(0,nf.cn)("max-w-2xs sm:max-w-xs w-full px-4 py-0.5"),children:(0,_.jsx)("div",{className:(0,nf.cn)(nq),children:t.map((e,t)=>{let n=e.icon;return e.list?(0,_.jsxs)(nB,{children:[(0,_.jsxs)(nU,{className:(0,nf.cn)("flex items-center justify-between","w-full text-lg font-semibold outline-none","data-[state=open]:bg-transparent","[&[data-state=open]>svg]:rotate-90","*:transition-all",nJ),children:[(0,_.jsxs)("div",{className:(0,nf.cn)(nV),children:[(0,_.jsx)(n,{}),e.label]}),(0,_.jsx)(el,{})]}),(0,_.jsxs)(n$,{className:(0,nf.cn)("data-[state=open]:mt-3",nq),children:[e.list.map((e,t)=>(0,_.jsx)(nG,{...e,onNavigate:o},t)),(0,_.jsx)("hr",{className:(0,nf.cn)("my-1 border-white")})]})]},t):(0,_.jsx)(nG,{...e,onNavigate:o},t)})})})]})]})}],49786)},27817,(e,t,n)=>{t.exports=e.r(23369)},42454,e=>{"use strict";var t=e.i(53198),n=e.i(54506),r=e.i(27817);function o(){return"u">typeof window}function i(){return"production"}function a(){return"development"===((o()?window.vam:i())||"production")}function s(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function l(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function _(e){return(0,n.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,n.useEffect)(()=>{!function(e={debug:!0},t){var n;if(!o())return;let{beforeSend:r,src:s,dataset:_}=function(e,t){var n,r;let o=e;if(t)try{o={...null==(n=JSON.parse(t))?void 0:n.analytics,...e}}catch{}!function(e="auto"){if("auto"===e){window.vam=i();return}window.vam=e}(o.mode);let s={sdkn:"@vercel/analytics"+(o.framework?`/${o.framework}`:""),sdkv:"2.0.1"};return o.disableAutoTrack&&(s.disableAutoTrack="1"),o.viewEndpoint&&(s.viewEndpoint=l(o.viewEndpoint)),o.eventEndpoint&&(s.eventEndpoint=l(o.eventEndpoint)),o.sessionEndpoint&&(s.sessionEndpoint=l(o.sessionEndpoint)),a()&&!1===o.debug&&(s.debug="false"),o.dsn&&(s.dsn=o.dsn),o.endpoint?s.endpoint=o.endpoint:o.basePath&&(s.endpoint=l(`${o.basePath}/insights`)),{beforeSend:o.beforeSend,src:(r=o).scriptSrc?l(r.scriptSrc):a()?"https://va.vercel-scripts.com/v1/script.debug.js":r.basePath?l(`${r.basePath}
5/insights/script.js`):"/_vercel/insights/script.js",dataset:s}}(e,t);if(window.va||(window.va=function(...e){window.vaq||(window.vaq=[]),window.vaq.push(e)}),r&&(null==(n=window.va)||n.call(window,"beforeSend",r)),document.head.querySelector(`script[src*="${s}"]`))return;let c=document.createElement("script");for(let[e,t]of(c.src=s,Object.entries(_)))c.dataset[e]=t;c.defer=!0,c.onerror=()=>{let e=a()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${s}. ${e}`)},document.head.appendChild(c)}({framework:e.framework||"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e},e.configString??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}())},[]),(0,n.useEffect)(()=>{e.route&&e.path&&function({route:e,path:t}){var n;null==(n=window.va)||n.call(window,"pageview",{route:e,path:t})}({route:e.route,path:e.path})},[e.route,e.path]),null}function c(e){let o,i,a,{route:l,path:c}=(o=(0,r.useParams)(),i=(0,r.useSearchParams)(),a=(0,r.usePathname)(),o?{route:function(e,t){if(!e||!t)return e;let n=e;try{let e=Object.entries(t);for(let[t,r]of e)if(!Array.isArray(r)){let e=s(r);e.test(n)&&(n=n.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=s(r.join("/"));e.test(n)&&(n=n.replace(e,`/[...${t}]`))}return n}catch{return e}}(a,Object.keys(o).length?o:Object.fromEntries(i.entries())),path:a}:{route:null,path:a});return n.default.createElement(_,{path:c,route:l,...e,basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}
5(),configString:function(){if(void 0!==t.default&&void 0!==t.default.env)return'{"analytics":{"scriptSrc":"3f2fc555b98a23ab/script.js","viewEndpoint":"3f2fc555b98a23ab/view","eventEndpoint":"3f2fc555b98a23ab/event","sessionEndpoint":"3f2fc555b98a23ab/session"},"speedInsights":{"scriptSrc":"2d0b36001111f553/script.js","endpoint":"2d0b36001111f553/vitals"}}'}(),framework:"next"})}e.s(["Analytics",0,function(e){return n.default.createElement(n.Suspense,{fallback:null},n.default.createElement(c,{...e}))}])}]);
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.