dashboard/frontend/node_modules/framer-motion/dist/size-rollup-dom-animation.js

2 lines
55 KiB
JavaScript
Raw Normal View History

2025-12-16 08:16:27 +09:00
import{n as t,p as e,q as n,t as s,u as i,v as r,w as o,x as a,y as u,z as l,A as h,r as c,b as d,o as p,B as m,a as f,C as y,j as v,D as g,l as b,i as w,h as T,m as S,E as A,d as M,s as V,F as x,k as C,e as k,f as P,g as E}from"./size-rollup-dom-animation-assets.js";import{Fragment as F}from"react";const D={},O=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);const I=t=>/^0[^.\s]+$/u.test(t);function R(t){let e;return()=>(void 0===e&&(e=t()),e)}const N=t=>t,K=(t,e)=>n=>e(t(n)),B=(...t)=>t.reduce(K),L=(t,e,n)=>{const s=e-t;return 0===s?1:(n-t)/s};class j{constructor(){this.subscriptions=[]}add(t){var e,n;return e=this.subscriptions,n=t,-1===e.indexOf(n)&&e.push(n),()=>function(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}(this.subscriptions,t)}notify(t,e,n){const s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,n);else for(let i=0;i<s;i++){const s=this.subscriptions[i];s&&s(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const U=t=>1e3*t,q=t=>t/1e3;function W(t,e){return e?t*(1e3/e):0}const Y=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function $(t,e,n,s){if(t===e&&n===s)return N;const i=e=>function(t,e,n,s,i){let r,o,a=0;do{o=e+(n-e)/2,r=Y(o,s,i)-t,r>0?n=o:e=o}while(Math.abs(r)>1e-7&&++a<12);return o}(e,0,1,t,n);return t=>0===t||1===t?t:Y(i(t),e,s)}const z=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,H=t=>e=>1-t(1-e),X=$(.33,1.53,.69,.99),_=H(X),G=z(_),Z=t=>(t*=2)<1?.5*_(t):.5*(2-Math.pow(2,-10*(t-1))),J=t=>1-Math.sin(Math.acos(t)),Q=H(J),tt=z(J),et=$(.42,0,1,1),nt=$(0,0,.58,1),st=$(.42,0,.58,1),it=t=>Array.isArray(t)&&"number"==typeof t[0],rt={linear:N,easeIn:et,easeInOut:st,easeOut:nt,circIn:J,circInOut:tt,circOut:Q,backIn:_,backInOut:G,backOut:X,anticipate:Z},ot=t=>{if(it(t)){t.length;const[e,n,s,i]=t;return $(e,n,s,i)}return"string"==typeof t?rt[t]:t},at=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],ut={value:null,addProjectionMetrics:null};function lt(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=at.reduce((t,n)=>(t[n]=function(t,e){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},u=0;function l(e){o.has(e)&&(h.schedule(e),t()),u++,e(a)}const h={schedule:(t,e=!1,r=!1)=>{const a=r&&i?n:s;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{s.delete(t),o.delete(t)},process:t=>{a=t,i?r=!0:(i=!0,[n,s]=[s,n],n.forEach(l),e&&ut.value&&ut.value.frameloop[e].push(u),u=0,n.clear(),i=!1,r&&(r=!1,h.process(t)))}};return h}(r,e?n:void 0),t),{}),{setup:a,read:u,resolveKeyframes:l,preUpdate:h,update:c,preRender:d,render:p,postRender:m}=o,f=()=>{const r=D.useManualTiming?i.timestamp:performance.now();n=!1,D.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(r-i.timestamp,40),1)),i.timestamp=r,i.isProcessing=!0,a.process(i),u.process(i),l.process(i),h.process(i),c.process(i),d.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(f))};return{schedule:at.reduce((e,r)=>{const a=o[r];return e[r]=(e,r=!1,o=!1)=>(n||(n=!0,s=!0,i.isProcessing||t(f)),a.schedule(e,r,o)),e},{}),cancel:t=>{for(let e=0;e<at.length;e++)o[at[e]].cancel(t)},state:i,steps:o}}const{schedule:ht,cancel:ct,state:dt,steps:pt}=lt("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:N,!0);let mt;function ft(){mt=void 0}const yt={now:()=>(void 0===mt&&yt.set(dt.isProcessing||D.useManualTiming?dt.timestamp:performance.now()),mt),set:t=>{mt=t,queueMicrotask(ft)}},vt=t=>Math.round(1e5*t)/1e5,gt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const bt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wt=(t,e)=>n=>Boolean("string"==typeof n&&bt.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),Tt=(t,e,n)=>s=>{if("string"!=typeof s)return s;const[i,r,o,a]=s.match(gt);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},St={...t,transform:t=>Math.round((t=>n(0,255,t))(t))},At={test:wt("rgb","red"),parse:Tt("red","green","blue"),transf