1import{B,N as U,be as q,bf as z,U as M,bg as P,ba as W,an as j,n as k,aO as F,W as G,bh as K,bi as y}from"./CrZWGQw6.js";import{f as D}from"./Cf9b1Pg_.js";const H=()=>performance.now(),m={tick:r=>requestAnimationFrame(r),now:()=>H(),tasks:new Set};function $(){const r=m.now();m.tasks.forEach(t=>{t.c(r)||(m.tasks.delete(t),t.f())}),m.tasks.size!==0&&m.tick($)}function J(r){let t;return m.tasks.size===0&&m.tick($),{promise:new Promise(n=>{m.tasks.add(t={c:r,f:n})}),abort(){m.tasks.delete(t)}}}function N(r,t){F(()=>{r.dispatchEvent(new CustomEvent(t))})}function Q(r){if(r==="float")return"cssFloat";if(r==="offset")return"cssOffset";if(r.startsWith("--"))return r;const t=r.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("")}function S(r){const t={},n=r.split(";");for(const o of n){const[s,i]=o.split(":");if(!s||i===void 0)break;const f=Q(s.trim());t[f]=i.trim()}return t}const V=r=>r;let L=null;function Z(r){L=r}function tt(r,t,n){var o=L??B,s=o.nodes,i,f,u,d=null;s.a??={element:r,measure(){i=this.element.getBoundingClientRect()},apply(){if(u?.abort(),f=this.element.getBoundingClientRect(),i.left!==f.left||i.right!==f.right||i.top!==f.top||i.bottom!==f.bottom){const e=t()(this.element,{from:i,to:f},n?.());u=A(this.element,e,void 0,1,()=>{},()=>{u?.abort(),u=void 0})}},fix(){if(!r.getAnimations().length){var{position:e,width:l,height:p}=getComputedStyle(r);if(e!=="absolute"&&e!=="fixed"){var a=r.style;d={position:a.position,width:a.width,height:a.height,transform:a.transform},a.position="absolute",a.width=l,a.height=p;var v=r.getBoundingClientRect();if(i.left!==v.left||i.top!==v.top){var w=`translate(${i.left-v.left}px, ${i.top-v.top}px)`;a.transform=a.transform?`${a.transform} ${w}`:w}}}},unfix(){if(d){var e=r.style;e.position=d.position,e.width=d.width,e.height=d.height,e.transform=d.transform}}},s.a.element=r}function rt(r,t,n,o){var s=(r&K)!==0,i=(r&y)!==0,f=s&&i,u=(r&P)!==0,d=f?"both":s?"in":"out",e,l=t.inert,p=t.style.overflow,a,v;function w(){return F(()=>e??=n()(t,o?.()??{},{direction:d}))}var g={is_global:u,in(){if(t.inert=l,!s){v?.abort(),v?.reset?.();return}i||a?.abort(),a=A(t,w(),v,1,()=>{N(t,"introstart")},()=>{N(t,"introend"),a?.abort(),a=e=void 0,t.style.overflow=p})},out(b){if(!i){b?.(),e=void 0;return}t.inert=!0,v=A(t,w(),a,0,()=>{N(t,"outrostart")},()=>{N(t,"outroend"),b?.()})},stop:()=>{a?.abort(),v?.abort()}},c=B;if((c.nodes.t??=[]).push(g),s&&D){var _=u;if(!_){for(var h=c.parent;h&&(h.f&U)!==0;)for(;(h=h.parent)&&(h.f&q)===0;);_=!h||(h.f&z)!==0}_&&M(()=>{G(()=>g.in())})}}function A(r,t,n,o,s,i){var f=o===1;if(W(t)){var u,d=!1;return j(()=>{if(!d){var _=t({direction:f?"in":"out"});u=A(r,_,n,o,s,i)}}),{abort:()=>{d=!0,u?.abort()},deactivate:()=>u.deactivate(),reset:()=>u.reset(),t:()=>u.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return s(),i(),{abort:k,deactivate:k,reset:k,t:()=>o};const{delay:e=0,css:l,tick:p,easing:a=V}=t;var v=[];if(f&&n===void 0&&(p&&p(0,1),l)){var w=S(l(0,1));v.push(w,w)}var g=()=>1-o,c=r.animate(v,{duration:e,fill:"forwards"});return c.onfinish=()=>{c.cancel(),s();var _=n?.t()??1-o;n?.abort();var h=o-_,b=t.duration*Math.abs(h),R=[];if(b>0){var E=!1;if(l)for(var O=Math.ceil(b/16.666666666666668),C=0;C<=O;C+=1){var I=_+h*a(C/O),x=S(l(I,1-I));R.push(x),E||=x.overflow==="hidden"}E&&(r.style.overflow="hidden"),g=()=>{var T=c.currentTime;return _+h*a(T/b)},p&&J(()=>{if(c.playState!=="running")return!1;var T=g();return p(T,1-T),!0})}c=r.animate(R,{duration:b,fill:"forwards"}),c.onfinish=()=>{g=()=>o,p?.(o,1-o),i()}},{abort:()=>{c&&(c.cancel(),c.effect=null,c.onfinish=k)},deactivate:()=>{i=k},reset:()=>{o===0&&p?.(1,0)},t:()=>g()}}export{tt as a,Z as s,rt as t};
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.