PageSourceSearch

https://kasu.dev/assets/index-Bis5Xaqf.js

js kasu.dev collected 2026-10-04 12:15:13 UTC 6,499 bytes, 1 lines download raw bytes

vendor: 6,499 bytes, line 1
1import{r as et}from"./chunk-QFMPRPBF-9Swoiv6q.js";import{i as nt,V as st,c as it,h as rt,a as at,p as ot,r as ut,b as lt,d as U,e as X,f as ct,g as ft,j as mt,k as ht,s as pt,l as dt,n as gt,o as yt,S as At,H as St,v as L,q as Et,t as Vt,w as vt,x as Mt}from"./proxy-C4L1ndXL.js";const Dt=(t,e,n)=>{const s=e-t;return((n-t)%s+s)%s+t};function Y(t,e){return nt(t)?t[Dt(0,t.length,e)]:t}class bt{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e){const n=this.animations.map(s=>s.attachTimeline(e));return()=>{n.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return H(this.animations,"duration")}get iterationDuration(){return H(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(n=>n[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function H(t,e){let n=0;for(let s=0;s<t.length;s++){const i=t[s][e];i!==null&&i>n&&(n=i)}return n}class Tt extends bt{then(e,n){return this.finished.finally(e).then(()=>{})}}function xt(t,e){return t in e}class Ot extends st{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,n){if(xt(n,e)){const s=e[n];if(typeof s=="string"||typeof s=="number")return s}}getBaseTargetFromProps(){}removeValueFromRenderState(e,n){delete n.output[e]}measureInstanceViewportBox(){return it()}build(e,n){Object.assign(e.output,n)}renderInstance(e,{output:n}){Object.assign(e,n)}sortInstanceNodePosition(){return 0}}function Xt(){!rt.current&&at();const[t]=et.useState(ot.current);return t}function j(t){return typeof t=="object"&&!Array.isArray(t)}function Z(t,e,n,s){return t==null?[]:typeof t=="string"&&j(e)?ut(t,n,s):t instanceof NodeList?Array.from(t):Array.isArray(t)?t.filter(i=>i!=null):[t]}function wt(t,e,n){return t*(e+1)}function k(t,e,n,s){return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?n:e.startsWith("<")?Math.max(0,n+parseFloat(e.slice(1))):s.get(e)??t}function Gt(t,e,n){for(let s=0;s<t.length;s++){const i=t[s];i.at>e&&i.at<n&&(U(t,i),s--)}}function It(t,e,n,s,i,m){Gt(t,i,m);for(let r=0;r<e.length;r++)t.push({value:e[r],at:lt(i,m,s[r]),easing:Y(n,r)})}function Rt(t,e){for(let n=0;n<t.length;n++)t[n]=t[n]/(e+1)}function Ft(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}const Kt="easeInOut";function Ct(t,{defaultTransition:e={},...n}={},s,i){const m=e.duration||.3,r=new Map,l=new Map,o={},c=new Map;let h=0,a=0,R=0;for(let D=0;D<t.length;D++){const d=t[D];if(typeof d=="string"){c.set(d,a);continue}else if(!Array.isArray(d)){c.set(d.name,k(a,d.at,h,c));continue}let[v,g,f={}]=d;f.at!==void 0&&(a=k(a,f.at,h,c));let p=0;const b=(y,T,E,M=0,x=0)=>{const u=Lt(y),{delay:O=0,times:A=ct(u),type:N=e.type||"keyframes",repeat:F,repeatType:kt,repeatDelay:Jt=0,...tt}=T;let{ease:V=e.ease||"easeOut",duration:S}=T;const B=typeof O=="function"?O(M,x):O,P=u.length,W=ht(N)?N:i?.[N||"keyframes"];if(P<=2&&W){let w=100;if(P===2&&Bt(u)){const G=u[1]-u[0];w=Math.abs(G)}const K={...e,...tt};S!==void 0&&(K.duration=pt(S));const C=ft(K,w,W);V=C.ease,S=C.duration}S??(S=m);const _=a+B;A.length===1&&A[0]===0&&(A[1]=1);const q=A.length-u.length;if(q>0&&mt(A,q),u.length===1&&u.unshift(null),F){S=wt(S,F);const w=[...u],K=[...A];V=Array.isArray(V)?[...V]:[V];const C=[...V];for(let G=0;G<F;G++){u.push(...w);for(let I=0;I<w.length;I++)A.push(K[I]+(G+1)),V.push(I===0?"linear":Y(C,I-1))}Rt(A,F)}const z=_+S;It(E,u,V,A,_,z),p=Math.max(B+S,p),R=Math.max(z,R)};if(X(v)){const y=J(v,l);b(g,f,Q("default",y))}else{const y=Z(v,g,s,o),T=y.length;for(let E=0;E<T;E++){g=g,f=f;const M=y[E],x=J(M,l);for(const u in g)b(g[u],Nt(f,u),Q(u,x),E,T)}}h=a,a+=p}return l.forEach((D,d)=>{for(const v in D){const g=D[v];g.sort(Ft);const f=[],p=[],b=[];for(let M=0;M<g.length;M++){const{at:x,value:u,easing:O}=g[M];f.push(u),p.push(dt(0,R,x)),b.push(O||"easeOut")}p[0]!==0&&(p.unshift(0),f.unshift(f[0]),b.unshift(Kt)),p[p.length-1]!==1&&(p.push(1),f.push(null)),r.has(d)||r.set(d,{keyframes:{},transition:{}});const y=r.get(d);y.keyframes[v]=f;const{type:T,...E}=e;y.transition[v]={...E,duration:R,ease:b,times:p,...n}}}),r}function J(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function Q(t,e){return e[t]||(e[t]=[]),e[t]}function Lt(t){return Array.isArray(t)?t:[t]}function Nt(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}const jt=t=>typeof t=="number",Bt=t=>t.every(jt);function Pt(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=gt(t)&&!yt(t)?new At(e):new St(e);n.mount(t),L.set(t,n)}function Wt(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Ot(e);n.mount(t),L.set(t,n)}function _t(t,e){return X(t)||typeof t=="number"||typeof t=="string"&&!j(e)}function $(t,e,n,s){const i=[];if(_t(t,e))i.push(Et(t,j(e)&&e.default||e,n&&(n.default||n)));else{if(t==null)return i;const m=Z(t,e,s),r=m.length;for(let l=0;l<r;l++){const o=m[l],c=o instanceof Element?Pt:Wt;L.has(o)||c(o);const h=L.get(o),a={...n};"delay"in a&&typeof a.delay=="function"&&(a.delay=a.delay(l,r)),i.push(...Vt(h,{...e,transition:a},{}))}}return i}function qt(t,e,n){const s=[],i=t.map(r=>{if(Array.isArray(r)&&typeof r[0]=="function"){const l=r[0],o=vt(0);return o.on("change",l),r.length===1?[o,[0,1]]:r.length===2?[o,[0,1],r[1]]:[o,r[1],r[2]]}return r});return Ct(i,e,n,{spring:Mt}).forEach(({keyframes:r,transition:l},o)=>{s.push(...$(o,r,l))}),s}function zt(t){return Array.isArray(t)&&t.some(Array.isArray)}function Ht(t={}){const{scope:e,reduceMotion:n}=t;function s(i,m,r){let l=[],o;if(zt(i)){const{onComplete:h,...a}=m||{};typeof h=="function"&&(o=h),l=qt(i,n!==void 0?{reduceMotion:n,...a}:a,e)}else{const{onComplete:h,...a}=r||{};typeof h=="function"&&(o=h),l=$(i,m,n!==void 0?{reduceMotion:n,...a}:a,e)}const c=new Tt(l);return o&&c.finished.then(o),e&&(e.animations.push(c),c.finished.then(()=>{U(e.animations,c)})),c}return s}const Yt=Ht();export{Yt as a,Ht as c,Xt as u};

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.