This commit is contained in:
1 parent
b9655a5ab1
commit
e292824161
122 files changed
+90002
-69
No files matched your search
@@ -0,0 +1 @@
|
||||
import{r as Xn}from"./react-vendor-jWT2yUdV.js";import{bH as N,bI as _e,bJ as Bt,bg as z,bi as ve,bK as Ge,bj as Lt,bL as _t,bM as Yn,bN as qn,bO as Zn,bP as Jn,bQ as Qn,bR as es,bn as K,bS as ts,bT as ns,bU as he,bV as it,bW as Gt,bX as ss,bY as is,bZ as rs,b_ as Ut,b$ as as,c0 as os,c1 as us,c2 as ls,c3 as cs,c4 as jt,c5 as Wt,c6 as Ht,c7 as $t}from"./index-DiaaLdUu.js";function hs(t,e){t.indexOf(e)===-1&&t.push(e)}function fs(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let Ue=()=>{};const zt=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Xt=t=>/^0[^.\s]+$/u.test(t);function je(t){let e;return()=>(e===void 0&&(e=t()),e)}const X=t=>t,ds=(t,e)=>n=>e(t(n)),fe=(...t)=>t.reduce(ds),Yt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class qt{constructor(){this.subscriptions=[]}add(e){return hs(this.subscriptions,e),()=>fs(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const a=this.subscriptions[r];a&&a(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const R=t=>t*1e3,I=t=>t/1e3;function Zt(t,e){return e?t*(1e3/e):0}const Jt=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,ps=1e-7,ms=12;function gs(t,e,n,s,i){let r,a,o=0;do a=e+(n-e)/2,r=Jt(a,s,i)-t,r>0?n=a:e=a;while(Math.abs(r)>ps&&++o<ms);return a}function te(t,e,n,s){if(t===e&&n===s)return X;const i=r=>gs(r,0,1,t,n);return r=>r===0||r===1?r:Jt(i(r),e,s)}const Qt=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,en=t=>e=>1-t(1-e),tn=te(.33,1.53,.69,.99),We=en(tn),nn=Qt(We),sn=t=>(t*=2)<1?.5*We(t):.5*(2-Math.pow(2,-10*(t-1))),He=t=>1-Math.sin(Math.acos(t)),ys=en(He),rn=Qt(He),bs=te(.42,0,1,1),Ts=te(0,0,.58,1),an=te(.42,0,.58,1),vs=t=>Array.isArray(t)&&typeof t[0]!="number",on=t=>Array.isArray(t)&&typeof t[0]=="number",Vs={linear:X,easeIn:bs,easeInOut:an,easeOut:Ts,circIn:He,circInOut:rn,circOut:ys,backIn:We,backInOut:nn,backOut:tn,anticipate:sn},As=t=>typeof t=="string",rt=t=>{if(on(t)){Ue(t.length===4);const[e,n,s,i]=t;return te(e,n,s,i)}else if(As(t))return Vs[t];return t},se=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function xs(t,e){let n=new Set,s=new Set,i=!1,r=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function u(l){a.has(l)&&(c.schedule(l),t()),l(o)}const c={schedule:(l,f=!1,h=!1)=>{const v=h&&i?n:s;return f&&a.add(l),v.has(l)||v.add(l),l},cancel:l=>{s.delete(l),a.delete(l)},process:l=>{if(o=l,i){r=!0;return}i=!0,[n,s]=[s,n],n.forEach(u),n.clear(),i=!1,r&&(r=!1,c.process(l))}};return c}const ws=40;function un(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,a=se.reduce((g,x)=>(g[x]=xs(r),g),{}),{setup:o,read:u,resolveKeyframes:c,preUpdate:l,update:f,preRender:h,render:d,postRender:v}=a,b=()=>{const g=N.useManualTiming?i.timestamp:performance.now();n=!1,N.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(g-i.timestamp,ws),1)),i.timestamp=g,i.isProcessing=!0,o.process(i),u.process(i),c.process(i),l.process(i),f.process(i),h.process(i),d.process(i),v.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(b))},T=()=>{n=!0,s=!0,i.isProcessing||t(b)};return{schedule:se.reduce((g,x)=>{const m=a[x];return g[x]=(A,M=!1,y=!1)=>(n||T(),m.schedule(A,M,y)),g},{}),cancel:g=>{for(let x=0;x<se.length;x++)a[se[x]].cancel(g)},state:i,steps:a}}const{schedule:O,cancel:Ve,state:ae,steps:ia}=un(typeof requestAnimationFrame<"u"?requestAnimationFrame:X,!0);let ie;function Ss(){ie=void 0}const E={now:()=>(ie===void 0&&E.set(ae.isProcessing||N.useManualTiming?ae.timestamp:performance.now()),ie),set:t=>{ie=t,queueMicrotask(Ss)}},J=t=>Math.round(t*1e5)/1e5,$e=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ms(t){return t==null}const Cs=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ze=(t,e)=>n=>!!(typeof n=="string"&&Cs.test(n)&&n.startsWith(t)||e&&!Ms(n)&&Object.prototype.hasOwnProperty.call(n,e)),ln=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,a,o]=s.match($e);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(a),alpha:o!==void 0?parseFloat(o):1}},Ps=t=>z(0,255,t),de={..._e,transform:t=>Math.round(Ps(t))},L={test:ze("rgb","red"),parse:ln("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+de.transform(t)+", "+de.transform(e)+", "+de.transform(n)+", "+J(Bt.transform(s))+")"};function Fs(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Ae={test:ze("#"),parse:Fs,transform:L.transform},H={test:ze("hsl","hue"),parse:ln("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+ve.transform(J(e))+", "+ve.transform(J(n))+", "+J(Bt.transform(s))+")"},S={test:t=>L.test(t)Line truncated
|
||||
Reference in new issue
Block a user