@applemusic-like-lyrics/react-full 0.2.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/README.md +5 -0
- package/dist/amll-react-framework.cjs +64 -0
- package/dist/amll-react-framework.cjs.map +1 -0
- package/dist/amll-react-framework.js +6842 -0
- package/dist/amll-react-framework.js.map +1 -0
- package/dist/components/AudioFFTVisualizer/index.d.ts +4 -0
- package/dist/components/AudioQualityTag/index.d.ts +5 -0
- package/dist/components/BouncingSlider/index.d.ts +13 -0
- package/dist/components/ControlThumb/index.d.ts +4 -0
- package/dist/components/Cover/index.d.ts +11 -0
- package/dist/components/MediaButton/index.d.ts +2 -0
- package/dist/components/MenuButton/index.d.ts +2 -0
- package/dist/components/MusicInfo/index.d.ts +9 -0
- package/dist/components/PrebuiltLyricPlayer/index.d.ts +5 -0
- package/dist/components/TextMarquee/index.d.ts +2 -0
- package/dist/components/ToggleIconButton/index.d.ts +11 -0
- package/dist/components/ToggleIconButton/prebuilt-enum.d.ts +8 -0
- package/dist/components/VolumeControlSlider/index.d.ts +2 -0
- package/dist/components/index.d.ts +13 -0
- package/dist/index.d.ts +4 -0
- package/dist/layout/auto.d.ts +16 -0
- package/dist/layout/horizontal.d.ts +11 -0
- package/dist/layout/index.d.ts +3 -0
- package/dist/layout/vertical.d.ts +10 -0
- package/dist/states/callback.d.ts +80 -0
- package/dist/states/config.d.ts +130 -0
- package/dist/states/index.d.ts +3 -0
- package/dist/states/music.d.ts +105 -0
- package/dist/utils/duration.d.ts +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/spring.d.ts +25 -0
- package/package.json +78 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";var ca=Object.defineProperty;var ua=(t,e,n)=>e in t?ca(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var it=(t,e,n)=>ua(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),m=require("react"),P=require("jotai"),ve=require("@applemusic-like-lyrics/core"),ha=require("react-dom");function da(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const L=da(m),Fi=({fftData:t,...e})=>{const n=m.useRef(null),s=m.useRef();return s.current===void 0&&(s.current=t),m.useEffect(()=>{s.current=t},[t]),m.useLayoutEffect(()=>{const i=n.current;if(i){const r=i.getContext("2d");if(r){let o=function(){if(!(i&&r)||u)return;const d=i.width,f=i.height;(a.width!==d||a.height!==f)&&(i.width=a.width,i.height=a.height);const p=s.current??[];if(h.length!==p.length)h=[...p];else for(let v=0;v<h.length;v++){let C=p[v];C=C*Math.min((v+5)/h.length*4,1),h[v]+=C*2,h[v]/=3}r.clearRect(0,0,d,f);{r.beginPath();const v=Math.max.apply(Math,h);c=Math.max(v*.1+c*.9,100);const C=h.length,g=d/C;r.strokeStyle="white",r.lineWidth=4*window.devicePixelRatio,r.lineCap="round",r.lineJoin="round";const x=f-g;for(let w=0;w<h.length;w++){const b=g*(w+.5);r.moveTo(b,x),r.lineTo(b,x-Math.min(1,Math.max(0,h[w]/c))**2*(f-g*2))}r.stroke()}requestAnimationFrame(o)},a={width:0,height:0};const l=new ResizeObserver(d=>{for(const f of d)a={width:f.contentRect.width*window.devicePixelRatio,height:f.contentRect.height*window.devicePixelRatio}});l.observe(i);let c=100,u=!1,h=[];return o(),()=>{l.disconnect(),u=!0}}}},[]),y.jsx("canvas",{ref:n,...e})};function fa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Bi={exports:{}};/*!
|
|
2
|
+
Copyright (c) 2018 Jed Watson.
|
|
3
|
+
Licensed under the MIT License (MIT), see
|
|
4
|
+
http://jedwatson.github.io/classnames
|
|
5
|
+
*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(r=i(r,s(a)))}return r}function s(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var a in r)e.call(r,a)&&r[a]&&(o=i(o,a));return o}function i(r,o){return o?r?r+" "+o:r+o:r}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(Bi);var ma=Bi.exports;const z=fa(ma),is=new Set;function Me(t,e,n){t||is.has(e)||(console.warn(e),is.add(e))}function pa(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...s)=>(process.env.NODE_ENV!=="production"&&Me(!1,"motion() is deprecated. Use motion.create() instead."),t(...s));return new Proxy(n,{get:(s,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}function Yt(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const sn=t=>Array.isArray(t);function ki(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}function Xt(t){return typeof t=="string"||Array.isArray(t)}function os(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function wn(t,e,n,s){if(typeof e=="function"){const[i,r]=os(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=os(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function Re(t,e,n){const s=t.getProps();return wn(s,e,n!==void 0?n:s.custom,t)}const xn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bn=["initial",...xn],ne=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gt=new Set(ne),J=t=>t*1e3,at=t=>t/1e3,Ca={type:"spring",stiffness:500,damping:25,restSpeed:10},ga=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),ya={type:"keyframes",duration:.8},va={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},wa=(t,{keyframes:e})=>e.length>2?ya:gt.has(t)?t.startsWith("scale")?ga(e[1]):Ca:va;function xa({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function Vn(t,e){return t[e]||t.default||t}const ba={skipAnimations:!1,useManualTiming:!1},Va=t=>t!==null;function Ee(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Va),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return!r||s===void 0?i[r]:s}const $=t=>t;function Pa(t){let e=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){r.has(c)&&(l.schedule(c),t()),c(o)}const l={schedule:(c,u=!1,h=!1)=>{const f=h&&s?e:n;return u&&r.add(c),f.has(c)||f.add(c),c},cancel:c=>{n.delete(c),r.delete(c)},process:c=>{if(o=c,s){i=!0;return}s=!0,[e,n]=[n,e],n.clear(),e.forEach(a),s=!1,i&&(i=!1,l.process(c))}};return l}const ae=["read","resolveKeyframes","update","preRender","render","postRender"],La=40;function ji(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=ae.reduce((g,x)=>(g[x]=Pa(r),g),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:h,postRender:d}=o,f=()=>{const g=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(g-i.timestamp,La),1),i.timestamp=g,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),h.process(i),d.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(f))},p=()=>{n=!0,s=!0,i.isProcessing||t(f)};return{schedule:ae.reduce((g,x)=>{const w=o[x];return g[x]=(b,T=!1,A=!1)=>(n||p(),w.schedule(b,T,A)),g},{}),cancel:g=>{for(let x=0;x<ae.length;x++)o[ae[x]].cancel(g)},state:i,steps:o}}const{schedule:D,cancel:ut,state:O,steps:$e}=ji(typeof requestAnimationFrame<"u"?requestAnimationFrame:$,!0),Hi=t=>/^0[^.\s]+$/u.test(t);function Aa(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Hi(t):!0}let kt=$,ht=$;process.env.NODE_ENV!=="production"&&(kt=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},ht=(t,e)=>{if(!t)throw new Error(e)});const Ii=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Oi=t=>e=>typeof e=="string"&&e.startsWith(t),$i=Oi("--"),Sa=Oi("var(--"),Pn=t=>Sa(t)?Ta.test(t.split("/*")[0].trim()):!1,Ta=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ma=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ra(t){const e=Ma.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}const Ea=4;function Ni(t,e,n=1){ht(n<=Ea,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[s,i]=Ra(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return Ii(o)?parseFloat(o):o}return Pn(i)?Ni(i,e,n+1):i}const mt=(t,e,n)=>n>e?e:n<t?t:n,jt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},zt={...jt,transform:t=>mt(0,1,t)},le={...jt,default:1},Ut=t=>Math.round(t*1e5)/1e5,Ln=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Da=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Fa=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function se(t){return typeof t=="string"}function Ba(t){return t==null}const ie=t=>({test:e=>se(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),ft=ie("deg"),tt=ie("%"),S=ie("px"),ka=ie("vh"),ja=ie("vw"),rs={...tt,parse:t=>tt.parse(t)/100,transform:t=>tt.transform(t*100)},Ha=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),as=t=>t===jt||t===S,ls=(t,e)=>parseFloat(t.split(", ")[e]),cs=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return ls(i[1],e);{const r=s.match(/^matrix\((.+)\)$/u);return r?ls(r[1],t):0}},Ia=new Set(["x","y","z"]),Oa=ne.filter(t=>!Ia.has(t));function $a(t){const e=[];return Oa.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const Ft={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:cs(4,13),y:cs(5,14)};Ft.translateX=Ft.x;Ft.translateY=Ft.y;const _i=t=>e=>e.test(t),Na={test:t=>t==="auto",parse:t=>t},Wi=[jt,S,tt,ft,ja,ka,Na],us=t=>Wi.find(_i(t)),Pt=new Set;let on=!1,rn=!1;function Zi(){if(rn){const t=Array.from(Pt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=$a(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))===null||a===void 0||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}rn=!1,on=!1,Pt.forEach(t=>t.complete()),Pt.clear()}function zi(){Pt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(rn=!0)})}function _a(){zi(),Zi()}class An{constructor(e,n,s,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Pt.add(this),on||(on=!0,D.read(zi),D.resolveKeyframes(Zi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let r=0;r<e.length;r++)if(e[r]===null)if(r===0){const o=i==null?void 0:i.get(),a=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const l=s.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&o===void 0&&i.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Pt.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Pt.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Sn=(t,e)=>n=>!!(se(n)&&Fa.test(n)&&n.startsWith(t)||e&&!Ba(n)&&Object.prototype.hasOwnProperty.call(n,e)),Ui=(t,e,n)=>s=>{if(!se(s))return s;const[i,r,o,a]=s.match(Ln);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Wa=t=>mt(0,255,t),Ne={...jt,transform:t=>Math.round(Wa(t))},Vt={test:Sn("rgb","red"),parse:Ui("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Ne.transform(t)+", "+Ne.transform(e)+", "+Ne.transform(n)+", "+Ut(zt.transform(s))+")"};function Za(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 an={test:Sn("#"),parse:Za,transform:Vt.transform},Tt={test:Sn("hsl","hue"),parse:Ui("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+tt.transform(Ut(e))+", "+tt.transform(Ut(n))+", "+Ut(zt.transform(s))+")"},N={test:t=>Vt.test(t)||an.test(t)||Tt.test(t),parse:t=>Vt.test(t)?Vt.parse(t):Tt.test(t)?Tt.parse(t):an.parse(t),transform:t=>se(t)?t:t.hasOwnProperty("red")?Vt.transform(t):Tt.transform(t)};function za(t){var e,n;return isNaN(t)&&se(t)&&(((e=t.match(Ln))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Da))===null||n===void 0?void 0:n.length)||0)>0}const qi="number",Gi="color",Ua="var",qa="var(",hs="${}",Ga=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Qt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(Ga,l=>(N.test(l)?(s.color.push(r),i.push(Gi),n.push(N.parse(l))):l.startsWith(qa)?(s.var.push(r),i.push(Ua),n.push(l)):(s.number.push(r),i.push(qi),n.push(parseFloat(l))),++r,hs)).split(hs);return{values:n,split:a,indexes:s,types:i}}function Ki(t){return Qt(t).values}function Yi(t){const{split:e,types:n}=Qt(t),s=e.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=e[o],i[o]!==void 0){const a=n[o];a===qi?r+=Ut(i[o]):a===Gi?r+=N.transform(i[o]):r+=i[o]}return r}}const Ka=t=>typeof t=="number"?0:t;function Ya(t){const e=Ki(t);return Yi(t)(e.map(Ka))}const pt={test:za,parse:Ki,createTransformer:Yi,getAnimatableNone:Ya},Xa=new Set(["brightness","contrast","saturate","opacity"]);function Qa(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Ln)||[];if(!s)return t;const i=n.replace(s,"");let r=Xa.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Ja=/\b([a-z-]*)\(.*?\)/gu,ln={...pt,getAnimatableNone:t=>{const e=t.match(Ja);return e?e.map(Qa).join(" "):t}},ds={...jt,transform:Math.round},Tn={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,radius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,size:S,top:S,right:S,bottom:S,left:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,rotate:ft,rotateX:ft,rotateY:ft,rotateZ:ft,scale:le,scaleX:le,scaleY:le,scaleZ:le,skew:ft,skewX:ft,skewY:ft,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:zt,originX:rs,originY:rs,originZ:S,zIndex:ds,backgroundPositionX:S,backgroundPositionY:S,fillOpacity:zt,strokeOpacity:zt,numOctaves:ds},t1={...Tn,color:N,backgroundColor:N,outlineColor:N,fill:N,stroke:N,borderColor:N,borderTopColor:N,borderRightColor:N,borderBottomColor:N,borderLeftColor:N,filter:ln,WebkitFilter:ln},Mn=t=>t1[t];function Xi(t,e){let n=Mn(t);return n!==ln&&(n=pt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const e1=new Set(["auto","none","0"]);function n1(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!e1.has(r)&&Qt(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=Xi(n,i)}class Qi extends An{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let c=e[l];if(typeof c=="string"&&(c=c.trim(),Pn(c))){const u=Ni(c,n.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Ha.has(s)||e.length!==2)return;const[i,r]=e,o=us(i),a=us(r);if(o!==a)if(as(o)&&as(a))for(let l=0;l<e.length;l++){const c=e[l];typeof c=="string"&&(e[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)Aa(e[i])&&s.push(i);s.length&&n1(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ft[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:s,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const r=n.getValue(s);r&&r.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=Ft[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function Ji(t){let e;return()=>(e===void 0&&(e=t()),e)}function Rn(t){return typeof t=="function"}let me;function s1(){me=void 0}const et={now:()=>(me===void 0&&et.set(O.isProcessing||ba.useManualTiming?O.timestamp:performance.now()),me),set:t=>{me=t,queueMicrotask(s1)}},fs=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(pt.test(t)||t==="0")&&!t.startsWith("url("));function i1(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function o1(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=fs(i,e),a=fs(r,e);return kt(o===a,`You are trying to animate ${e} from "${i}" to "${r}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${r} via the \`style\` property.`),!o||!a?!1:i1(t)||(n==="spring"||Rn(n))&&s}const r1=40;class to{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=et.now(),this.options={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>r1?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&_a(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=et.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:r,delay:o,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!o1(e,s,i,r))if(o)this.options.duration=0;else{l==null||l(Ee(e,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,n);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function eo(t,e){return e?t*(1e3/e):0}const a1=5;function no(t,e,n){const s=Math.max(e-a1,0);return eo(n-t(s),e-s)}const _e=.001,l1=.01,ms=10,c1=.05,u1=1;function h1({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let i,r;kt(t<=J(ms),"Spring duration must be 10 seconds or less");let o=1-e;o=mt(c1,u1,o),t=mt(l1,ms,at(t)),o<1?(i=c=>{const u=c*o,h=u*t,d=u-n,f=cn(c,o),p=Math.exp(-h);return _e-d/f*p},r=c=>{const h=c*o*t,d=h*n+n,f=Math.pow(o,2)*Math.pow(c,2)*t,p=Math.exp(-h),v=cn(Math.pow(c,2),o);return(-i(c)+_e>0?-1:1)*((d-f)*p)/v}):(i=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-_e+u*h},r=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=f1(i,r,a);if(t=J(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:t}}}const d1=12;function f1(t,e,n){let s=n;for(let i=1;i<d1;i++)s=s-t(s)/e(s);return s}function cn(t,e){return t*Math.sqrt(1-e*e)}const m1=["duration","bounce"],p1=["stiffness","damping","mass"];function ps(t,e){return e.some(n=>t[n]!==void 0)}function C1(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ps(t,p1)&&ps(t,m1)){const n=h1(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function so({keyframes:t,restDelta:e,restSpeed:n,...s}){const i=t[0],r=t[t.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:u,velocity:h,isResolvedFromDuration:d}=C1({...s,velocity:-at(s.velocity||0)}),f=h||0,p=l/(2*Math.sqrt(a*c)),v=r-i,C=at(Math.sqrt(a/c)),g=Math.abs(v)<5;n||(n=g?.01:2),e||(e=g?.005:.5);let x;if(p<1){const w=cn(C,p);x=b=>{const T=Math.exp(-p*C*b);return r-T*((f+p*C*v)/w*Math.sin(w*b)+v*Math.cos(w*b))}}else if(p===1)x=w=>r-Math.exp(-C*w)*(v+(f+C*v)*w);else{const w=C*Math.sqrt(p*p-1);x=b=>{const T=Math.exp(-p*C*b),A=Math.min(w*b,300);return r-T*((f+p*C*v)*Math.sinh(A)+w*v*Math.cosh(A))/w}}return{calculatedDuration:d&&u||null,next:w=>{const b=x(w);if(d)o.done=w>=u;else{let T=0;p<1&&(T=w===0?J(f):no(x,w,b));const A=Math.abs(T)<=n,E=Math.abs(r-b)<=e;o.done=A&&E}return o.value=o.done?r:b,o}}}function Cs({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],d={done:!1,value:h},f=M=>a!==void 0&&M<a||l!==void 0&&M>l,p=M=>a===void 0?l:l===void 0||Math.abs(a-M)<Math.abs(l-M)?a:l;let v=n*e;const C=h+v,g=o===void 0?C:o(C);g!==C&&(v=g-h);const x=M=>-v*Math.exp(-M/s),w=M=>g+x(M),b=M=>{const V=x(M),R=w(M);d.done=Math.abs(V)<=c,d.value=d.done?g:R};let T,A;const E=M=>{f(d.value)&&(T=M,A=so({keyframes:[d.value,p(d.value)],velocity:no(w,M,d.value),damping:i,stiffness:r,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:M=>{let V=!1;return!A&&T===void 0&&(V=!0,b(M),E(M)),T!==void 0&&M>=T?A.next(M-T):(!V&&b(M),d)}}}const io=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,g1=1e-7,y1=12;function v1(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=io(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>g1&&++a<y1);return o}function oe(t,e,n,s){if(t===e&&n===s)return $;const i=r=>v1(r,0,1,t,n);return r=>r===0||r===1?r:io(i(r),e,s)}const w1=oe(.42,0,1,1),x1=oe(0,0,.58,1),oo=oe(.42,0,.58,1),b1=t=>Array.isArray(t)&&typeof t[0]!="number",ro=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ao=t=>e=>1-t(1-e),En=t=>1-Math.sin(Math.acos(t)),lo=ao(En),V1=ro(En),co=oe(.33,1.53,.69,.99),Dn=ao(co),P1=ro(Dn),L1=t=>(t*=2)<1?.5*Dn(t):.5*(2-Math.pow(2,-10*(t-1))),gs={linear:$,easeIn:w1,easeInOut:oo,easeOut:x1,circIn:En,circInOut:V1,circOut:lo,backIn:Dn,backInOut:P1,backOut:co,anticipate:L1},ys=t=>{if(Array.isArray(t)){ht(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,s,i]=t;return oe(e,n,s,i)}else if(typeof t=="string")return ht(gs[t]!==void 0,`Invalid easing type '${t}'`),gs[t];return t},A1=(t,e)=>n=>e(t(n)),lt=(...t)=>t.reduce(A1),Jt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},k=(t,e,n)=>t+(e-t)*n;function We(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function S1({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=We(l,a,t+1/3),r=We(l,a,t),o=We(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function we(t,e){return n=>n>0?e:t}const Ze=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},T1=[an,Vt,Tt],M1=t=>T1.find(e=>e.test(t));function vs(t){const e=M1(t);if(kt(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===Tt&&(n=S1(n)),n}const ws=(t,e)=>{const n=vs(t),s=vs(e);if(!n||!s)return we(t,e);const i={...n};return r=>(i.red=Ze(n.red,s.red,r),i.green=Ze(n.green,s.green,r),i.blue=Ze(n.blue,s.blue,r),i.alpha=k(n.alpha,s.alpha,r),Vt.transform(i))},un=new Set(["none","hidden"]);function R1(t,e){return un.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function E1(t,e){return n=>k(t,e,n)}function Fn(t){return typeof t=="number"?E1:typeof t=="string"?Pn(t)?we:N.test(t)?ws:B1:Array.isArray(t)?uo:typeof t=="object"?N.test(t)?ws:D1:we}function uo(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>Fn(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function D1(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Fn(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function F1(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const o=e.types[r],a=t.indexes[o][i[o]],l=(n=t.values[a])!==null&&n!==void 0?n:0;s[r]=l,i[o]++}return s}const B1=(t,e)=>{const n=pt.createTransformer(e),s=Qt(t),i=Qt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?un.has(t)&&!i.values.length||un.has(e)&&!s.values.length?R1(t,e):lt(uo(F1(s,i),i.values),n):(kt(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),we(t,e))};function ho(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?k(t,e,n):Fn(t)(t,e)}function k1(t,e,n){const s=[],i=n||ho,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||$:e;a=lt(l,a)}s.push(a)}return s}function j1(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(ht(r===e.length,"Both input and output ranges must be the same length"),r===1)return()=>e[0];if(r===2&&t[0]===t[1])return()=>e[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=k1(e,s,i),a=o.length,l=c=>{let u=0;if(a>1)for(;u<t.length-2&&!(c<t[u+1]);u++);const h=Jt(t[u],t[u+1],c);return o[u](h)};return n?c=>l(mt(t[0],t[r-1],c)):l}function H1(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Jt(0,e,s);t.push(k(n,1,i))}}function I1(t){const e=[0];return H1(e,t.length-1),e}function O1(t,e){return t.map(n=>n*e)}function $1(t,e){return t.map(()=>e||oo).splice(0,t.length-1)}function xe({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=b1(s)?s.map(ys):ys(s),r={done:!1,value:e[0]},o=O1(n&&n.length===e.length?n:I1(e),t),a=j1(o,e,{ease:Array.isArray(i)?i:$1(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const xs=2e4;function N1(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<xs;)e+=n,s=t.next(e);return e>=xs?1/0:e}const _1=t=>{const e=({timestamp:n})=>t(n);return{start:()=>D.update(e,!0),stop:()=>ut(e),now:()=>O.isProcessing?O.timestamp:et.now()}},W1={decay:Cs,inertia:Cs,tween:xe,keyframes:xe,spring:so},Z1=t=>t/100;class Bn extends to{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:i,keyframes:r}=this.options,o=(i==null?void 0:i.KeyframeResolver)||An,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new o(r,a,n,s,i),this.resolver.scheduleResolve()}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=this.options,a=Rn(n)?n:W1[n]||xe;let l,c;a!==xe&&typeof e[0]!="number"&&(process.env.NODE_ENV!=="production"&&ht(e.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),l=lt(Z1,ho(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});r==="mirror"&&(c=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=N1(u));const{calculatedDuration:h}=u,d=h+i,f=d*(s+1)-i;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:d,totalDuration:f}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:M}=this.options;return{done:!0,value:M[M.length-1]}}const{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:h}=s;if(this.startTime===null)return r.next(0);const{delay:d,repeat:f,repeatType:p,repeatDelay:v,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),x=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let w=this.currentTime,b=r;if(f){const M=Math.min(this.currentTime,u)/h;let V=Math.floor(M),R=M%1;!R&&M>=1&&(R=1),R===1&&V--,V=Math.min(V,f+1),!!(V%2)&&(p==="reverse"?(R=1-R,v&&(R-=v/h)):p==="mirror"&&(b=o)),w=mt(0,1,R)*h}const T=x?{done:!1,value:l[0]}:b.next(w);a&&(T.value=a(T.value));let{done:A}=T;!x&&c!==null&&(A=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return E&&i!==void 0&&(T.value=Ee(l,this.options,i)),C&&C(T.value),E&&this.finish(),T}get duration(){const{resolved:e}=this;return e?at(e.calculatedDuration):0}get time(){return at(this.currentTime)}set time(e){e=J(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=at(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=_1,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const fo=new Set(["opacity","clipPath","filter","transform"]),mo=t=>Array.isArray(t)&&typeof t[0]=="number";function po(t){return!!(!t||typeof t=="string"&&t in kn||mo(t)||Array.isArray(t)&&t.every(po))}const Wt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,kn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Wt([0,.65,.55,1]),circOut:Wt([.55,0,1,.45]),backIn:Wt([.31,.01,.66,-.59]),backOut:Wt([.33,1.53,.69,.99])};function z1(t){return Co(t)||kn.easeOut}function Co(t){if(t)return mo(t)?Wt(t):Array.isArray(t)?t.map(z1):kn[t]}function U1(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a,times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=Co(a);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:s,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}const q1=Ji(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),be=10,G1=2e4;function K1(t){return Rn(t.type)||t.type==="spring"||!po(t.ease)}function Y1(t,e){const n=new Bn({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let r=0;for(;!s.done&&r<G1;)s=n.sample(r),i.push(s.value),r+=be;return{times:void 0,keyframes:i,duration:r-be,ease:"linear"}}class bs extends to{constructor(e){super(e);const{name:n,motionValue:s,element:i,keyframes:r}=this.options;this.resolver=new Qi(r,(o,a)=>this.onKeyframesResolved(o,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(e,n){var s;let{duration:i=300,times:r,ease:o,type:a,motionValue:l,name:c,startTime:u}=this.options;if(!(!((s=l.owner)===null||s===void 0)&&s.current))return!1;if(K1(this.options)){const{onComplete:d,onUpdate:f,motionValue:p,element:v,...C}=this.options,g=Y1(e,C);e=g.keyframes,e.length===1&&(e[1]=e[0]),i=g.duration,r=g.times,o=g.ease,a="keyframes"}const h=U1(l.owner.current,c,e,{...this.options,duration:i,times:r,ease:o});return h.startTime=u??this.calcStartTime(),this.pendingTimeline?(h.timeline=this.pendingTimeline,this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:d}=this.options;l.set(Ee(e,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:r,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return at(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return at(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=J(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return $;const{animation:s}=n;s.timeline=e,s.onfinish=null}return $}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:i,type:r,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:h,element:d,...f}=this.options,p=new Bn({...f,keyframes:s,duration:i,type:r,ease:o,times:a,isGenerator:!0}),v=J(this.time);c.setWithVelocity(p.sample(v-be).value,p.sample(v).value,be)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:r,damping:o,type:a}=e;return q1()&&s&&fo.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&r!=="mirror"&&o!==0&&a!=="inertia"}}function X1(t,e){let n;const s=()=>{const{currentTime:i}=e,o=(i===null?0:i.value)/100;n!==o&&t(o),n=o};return D.update(s,!0),()=>ut(s)}const Q1=Ji(()=>window.ScrollTimeline!==void 0);class J1{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,n){return Promise.all(this.animations).then(e).catch(n)}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=>{if(Q1()&&s.attachTimeline)s.attachTimeline(e);else return s.pause(),X1(i=>{s.time=s.duration*i},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 startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const jn=(t,e,n,s={},i,r)=>o=>{const a=Vn(s,t)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-J(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};xa(a)||(u={...u,...wa(t,u)}),u.duration&&(u.duration=J(u.duration)),u.repeatDelay&&(u.repeatDelay=J(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(h=!0)),h&&!r&&e.get()!==void 0){const d=Ee(u.keyframes,a);if(d!==void 0)return D.update(()=>{u.onUpdate(d),u.onComplete()}),new J1([])}return!r&&bs.supports(u)?new bs(u):new Bn(u)},t2=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),e2=t=>sn(t)?t[t.length-1]||0:t;function re(t,e){t.indexOf(e)===-1&&t.push(e)}function Hn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class In{constructor(){this.subscriptions=[]}add(e){return re(this.subscriptions,e),()=>Hn(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 o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Vs=30,n2=t=>!isNaN(parseFloat(t));class go{constructor(e,n={}){this.version="11.7.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const r=et.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=et.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=n2(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Me(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new In);const s=this.events[e].add(n);return e==="change"?()=>{s(),D.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=et.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Vs)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Vs);return eo(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function te(t,e){return new go(t,e)}function s2(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,te(n))}function i2(t,e){const n=Re(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=e2(r[o]);s2(t,o,a)}}const De=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),o2="framerAppearId",yo="data-"+De(o2);function vo(t){return t.props[yo]}function wo(t){if(gt.has(t))return"transform";if(fo.has(t))return De(t)}class r2 extends go{constructor(){super(...arguments),this.values=[]}add(e){const n=wo(e);n&&(re(this.values,n),this.update())}update(){this.set(this.values.length?this.values.join(", "):"auto")}}const W=t=>!!(t&&t.getVelocity);function a2(t){return!!(W(t)&&t.add)}function hn(t,e){var n;if(!t.applyWillChange)return;let s=t.getValue("willChange");if(!s&&!(!((n=t.props.style)===null||n===void 0)&&n.willChange)&&(s=new r2("auto"),t.addValue("willChange",s)),a2(s))return s.add(e)}function l2({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function xo(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(o=s);const c=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const d=t.getValue(h,(r=t.latestValues[h])!==null&&r!==void 0?r:null),f=l[h];if(f===void 0||u&&l2(u,h))continue;const p={delay:n,...Vn(o||{},h)};let v=!1;if(window.MotionHandoffAnimation){const g=vo(t);if(g){const x=window.MotionHandoffAnimation(g,h,D);x!==null&&(p.startTime=x,v=!0)}}hn(t,h),d.start(jn(h,d,f,t.shouldReduceMotion&>.has(h)?{type:!1}:p,t,v));const C=d.animation;C&&c.push(C)}return a&&Promise.all(c).then(()=>{D.update(()=>{a&&i2(t,a)})}),c}function dn(t,e,n={}){var s;const i=Re(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const o=i?()=>Promise.all(xo(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:h,staggerDirection:d}=r;return c2(t,e,u+c,h,d,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[c,u]=l==="beforeChildren"?[o,a]:[a,o];return c().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function c2(t,e,n=0,s=0,i=1,r){const o=[],a=(t.variantChildren.size-1)*s,l=i===1?(c=0)=>c*s:(c=0)=>a-c*s;return Array.from(t.variantChildren).sort(u2).forEach((c,u)=>{c.notify("AnimationStart",e),o.push(dn(c,e,{...r,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(o)}function u2(t,e){return t.sortNodePosition(e)}function h2(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>dn(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=dn(t,e,n);else{const i=typeof e=="function"?Re(t,e,n.custom):e;s=Promise.all(xo(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const d2=bn.length;function bo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?bo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<d2;n++){const s=bn[n],i=t.props[s];(Xt(i)||i===!1)&&(e[s]=i)}return e}const f2=[...xn].reverse(),m2=xn.length;function p2(t){return e=>Promise.all(e.map(({animation:n,options:s})=>h2(t,n,s)))}function C2(t){let e=p2(t),n=Ps(),s=!0;const i=l=>(c,u)=>{var h;const d=Re(t,u,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(d){const{transition:f,transitionEnd:p,...v}=d;c={...c,...v,...p}}return c};function r(l){e=l(t)}function o(l){const{props:c}=t,u=bo(t.parent)||{},h=[],d=new Set;let f={},p=1/0;for(let C=0;C<m2;C++){const g=f2[C],x=n[g],w=c[g]!==void 0?c[g]:u[g],b=Xt(w),T=g===l?x.isActive:null;T===!1&&(p=C);let A=w===u[g]&&w!==c[g]&&b;if(A&&s&&t.manuallyAnimateOnMount&&(A=!1),x.protectedKeys={...f},!x.isActive&&T===null||!w&&!x.prevProp||Yt(w)||typeof w=="boolean")continue;const E=g2(x.prevProp,w);let M=E||g===l&&x.isActive&&!A&&b||C>p&&b,V=!1;const R=Array.isArray(w)?w:[w];let F=R.reduce(i(g),{});T===!1&&(F={});const{prevResolvedValues:q={}}=x,dt={...q,...F},Lt=H=>{M=!0,d.has(H)&&(V=!0,d.delete(H)),x.needsAnimating[H]=!0;const G=t.getValue(H);G&&(G.liveStyle=!1)};for(const H in dt){const G=F[H],st=q[H];if(f.hasOwnProperty(H))continue;let Oe=!1;sn(G)&&sn(st)?Oe=!ki(G,st):Oe=G!==st,Oe?G!=null?Lt(H):d.add(H):G!==void 0&&d.has(H)?Lt(H):x.protectedKeys[H]=!0}x.prevProp=w,x.prevResolvedValues=F,x.isActive&&(f={...f,...F}),s&&t.blockInitialAnimation&&(M=!1),M&&(!(A&&E)||V)&&h.push(...R.map(H=>({animation:H,options:{type:g}})))}if(d.size){const C={};d.forEach(g=>{const x=t.getBaseTarget(g),w=t.getValue(g);w&&(w.liveStyle=!0),C[g]=x??null}),h.push({animation:C})}let v=!!h.length;return s&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(v=!1),s=!1,v?e(h):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(d=>{var f;return(f=d.animationState)===null||f===void 0?void 0:f.setActive(l,c)}),n[l].isActive=c;const h=o(l);for(const d in n)n[d].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=Ps(),s=!0}}}function g2(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!ki(e,t):!1}function vt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ps(){return{animate:vt(!0),whileInView:vt(),whileHover:vt(),whileTap:vt(),whileDrag:vt(),whileFocus:vt(),exit:vt()}}class yt{constructor(e){this.isMounted=!1,this.node=e}update(){}}class y2 extends yt{constructor(e){super(e),e.animationState||(e.animationState=C2(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Yt(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let v2=0;class w2 extends yt{constructor(){super(...arguments),this.id=v2++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const x2={animation:{Feature:y2},exit:{Feature:w2}},Vo=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Fe(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}const b2=t=>e=>Vo(e)&&t(e,Fe(e));function rt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function ct(t,e,n,s){return rt(t,e,b2(n),s)}const Ls=(t,e)=>Math.abs(t-e);function V2(t,e){const n=Ls(t.x,e.x),s=Ls(t.y,e.y);return Math.sqrt(n**2+s**2)}class Po{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Ue(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,f=V2(h.offset,{x:0,y:0})>=3;if(!d&&!f)return;const{point:p}=h,{timestamp:v}=O;this.history.push({...p,timestamp:v});const{onStart:C,onMove:g}=this.handlers;d||(C&&C(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,h)},this.handlePointerMove=(h,d)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ze(d,this.transformPagePoint),D.update(this.updatePoint,!0)},this.handlePointerUp=(h,d)=>{this.end();const{onEnd:f,onSessionEnd:p,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Ue(h.type==="pointercancel"?this.lastMoveEventInfo:ze(d,this.transformPagePoint),this.history);this.startEvent&&f&&f(h,C),p&&p(h,C)},!Vo(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const o=Fe(e),a=ze(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=O;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(e,Ue(a,this.history)),this.removeListeners=lt(ct(this.contextWindow,"pointermove",this.handlePointerMove),ct(this.contextWindow,"pointerup",this.handlePointerUp),ct(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ut(this.updatePoint)}}function ze(t,e){return e?{point:e(t.point)}:t}function As(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ue({point:t},e){return{point:t,delta:As(t,Lo(e)),offset:As(t,P2(e)),velocity:L2(e,.1)}}function P2(t){return t[0]}function Lo(t){return t[t.length-1]}function L2(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Lo(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>J(e)));)n--;if(!s)return{x:0,y:0};const r=at(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Ao(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const Ss=Ao("dragHorizontal"),Ts=Ao("dragVertical");function So(t){let e=!1;if(t==="y")e=Ts();else if(t==="x")e=Ss();else{const n=Ss(),s=Ts();n&&s?e=()=>{n(),s()}:(n&&n(),s&&s())}return e}function To(){const t=So(!0);return t?(t(),!1):!0}function Mt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}const Mo=1e-4,A2=1-Mo,S2=1+Mo,Ro=.01,T2=0-Ro,M2=0+Ro;function U(t){return t.max-t.min}function R2(t,e,n){return Math.abs(t-e)<=n}function Ms(t,e,n,s=.5){t.origin=s,t.originPoint=k(e.min,e.max,t.origin),t.scale=U(n)/U(e),t.translate=k(n.min,n.max,t.origin)-t.originPoint,(t.scale>=A2&&t.scale<=S2||isNaN(t.scale))&&(t.scale=1),(t.translate>=T2&&t.translate<=M2||isNaN(t.translate))&&(t.translate=0)}function qt(t,e,n,s){Ms(t.x,e.x,n.x,s?s.originX:void 0),Ms(t.y,e.y,n.y,s?s.originY:void 0)}function Rs(t,e,n){t.min=n.min+e.min,t.max=t.min+U(e)}function E2(t,e,n){Rs(t.x,e.x,n.x),Rs(t.y,e.y,n.y)}function Es(t,e,n){t.min=e.min-n.min,t.max=t.min+U(e)}function Gt(t,e,n){Es(t.x,e.x,n.x),Es(t.y,e.y,n.y)}function D2(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?k(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?k(n,t,s.max):Math.min(t,n)),t}function Ds(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function F2(t,{top:e,left:n,bottom:s,right:i}){return{x:Ds(t.x,n,i),y:Ds(t.y,e,s)}}function Fs(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function B2(t,e){return{x:Fs(t.x,e.x),y:Fs(t.y,e.y)}}function k2(t,e){let n=.5;const s=U(t),i=U(e);return i>s?n=Jt(e.min,e.max-s,t.min):s>i&&(n=Jt(t.min,t.max-i,e.min)),mt(0,1,n)}function j2(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const fn=.35;function H2(t=fn){return t===!1?t=0:t===!0&&(t=fn),{x:Bs(t,"left","right"),y:Bs(t,"top","bottom")}}function Bs(t,e,n){return{min:ks(t,e),max:ks(t,n)}}function ks(t,e){return typeof t=="number"?t:t[e]||0}const js=()=>({translate:0,scale:1,origin:0,originPoint:0}),Rt=()=>({x:js(),y:js()}),Hs=()=>({min:0,max:0}),I=()=>({x:Hs(),y:Hs()});function Y(t){return[t("x"),t("y")]}function Eo({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function I2({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function O2(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function qe(t){return t===void 0||t===1}function mn({scale:t,scaleX:e,scaleY:n}){return!qe(t)||!qe(e)||!qe(n)}function xt(t){return mn(t)||Do(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Do(t){return Is(t.x)||Is(t.y)}function Is(t){return t&&t!=="0%"}function Ve(t,e,n){const s=t-n,i=e*s;return n+i}function Os(t,e,n,s,i){return i!==void 0&&(t=Ve(t,i,s)),Ve(t,n,s)+e}function pn(t,e=0,n=1,s,i){t.min=Os(t.min,e,n,s,i),t.max=Os(t.max,e,n,s,i)}function Fo(t,{x:e,y:n}){pn(t.x,e.translate,e.scale,e.originPoint),pn(t.y,n.translate,n.scale,n.originPoint)}const $s=.999999999999,Ns=1.0000000000001;function $2(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Dt(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Fo(t,o)),s&&xt(r.latestValues)&&Dt(t,r.latestValues))}e.x<Ns&&e.x>$s&&(e.x=1),e.y<Ns&&e.y>$s&&(e.y=1)}function Et(t,e){t.min=t.min+e,t.max=t.max+e}function _s(t,e,n,s,i=.5){const r=k(t.min,t.max,i);pn(t,e,n,r,s)}function Dt(t,e){_s(t.x,e.x,e.scaleX,e.scale,e.originX),_s(t.y,e.y,e.scaleY,e.scale,e.originY)}function Bo(t,e){return Eo(O2(t.getBoundingClientRect(),e))}function N2(t,e,n){const s=Bo(t,n),{scroll:i}=e;return i&&(Et(s.x,i.offset.x),Et(s.y,i.offset.y)),s}const ko=({current:t})=>t?t.ownerDocument.defaultView:null,_2=new WeakMap;class W2{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=I(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=u=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Fe(u,"page").point)},r=(u,h)=>{const{drag:d,dragPropagation:f,onDragStart:p}=this.getProps();if(d&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=So(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Y(C=>{let g=this.getAxisMotionValue(C).get()||0;if(tt.test(g)){const{projection:x}=this.visualElement;if(x&&x.layout){const w=x.layout.layoutBox[C];w&&(g=U(w)*(parseFloat(g)/100))}}this.originPoint[C]=g}),p&&D.postRender(()=>p(u,h)),hn(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},o=(u,h)=>{const{dragPropagation:d,dragDirectionLock:f,onDirectionLock:p,onDrag:v}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:C}=h;if(f&&this.currentDirection===null){this.currentDirection=Z2(C),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,C),this.updateAxis("y",h.point,C),this.visualElement.render(),v&&v(u,h)},a=(u,h)=>this.stop(u,h),l=()=>Y(u=>{var h;return this.getAnimationState(u)==="paused"&&((h=this.getAxisMotionValue(u).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Po(e,{onSessionStart:i,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:ko(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:r}=this.getProps();r&&D.postRender(()=>r(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!ce(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=D2(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,r=this.constraints;n&&Mt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=F2(i.layoutBox,n):this.constraints=!1,this.elastic=H2(s),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Y(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=j2(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Mt(e))return!1;const s=e.current;ht(s!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=N2(s,i.root,this.visualElement.getTransformPagePoint());let o=B2(i.layout.layoutBox,r);if(n){const a=n(I2(o));this.hasMutatedConstraints=!!a,a&&(o=Eo(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Y(u=>{if(!ce(u,n,this.currentDirection))return;let h=l&&l[u]||{};o&&(h={min:0,max:0});const d=i?200:1e6,f=i?40:1e7,p={type:"inertia",velocity:s?e[u]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return hn(this.visualElement,e),s.start(jn(e,s,0,n,this.visualElement,!1))}stopAnimation(){Y(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Y(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){Y(n=>{const{drag:s}=this.getProps();if(!ce(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];r.set(e[n]-k(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Mt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Y(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=k2({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),Y(o=>{if(!ce(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(k(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;_2.set(this.visualElement,this);const e=this.visualElement.current,n=ct(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();Mt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),D.read(s);const o=rt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Y(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=l[u].translate,h.set(h.get()+l[u].translate))}),this.visualElement.render())});return()=>{o(),n(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=fn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function ce(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Z2(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class z2 extends yt{constructor(e){super(e),this.removeGroupControls=$,this.removeListeners=$,this.controls=new W2(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ws=t=>(e,n)=>{t&&D.postRender(()=>t(e,n))};class U2 extends yt{constructor(){super(...arguments),this.removePointerDownListener=$}onPointerDown(e){this.session=new Po(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ko(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ws(e),onStart:Ws(n),onMove:s,onEnd:(r,o)=>{delete this.session,i&&D.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=ct(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Be=m.createContext(null);function q2(){const t=m.useContext(Be);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=m.useId();m.useEffect(()=>s(i),[]);const r=m.useCallback(()=>n&&n(i),[i,n]);return!e&&n?[!1,r]:[!0]}const ee=m.createContext({}),jo=m.createContext({}),pe={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Zs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ht={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(S.test(t))t=parseFloat(t);else return t;const n=Zs(t,e.target.x),s=Zs(t,e.target.y);return`${n}% ${s}%`}},G2={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=pt.parse(t);if(i.length>5)return s;const r=pt.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const c=k(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),r(i)}},Pe={};function K2(t){Object.assign(Pe,t)}const{schedule:On,cancel:Lu}=ji(queueMicrotask,!1);class Y2 extends m.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;K2(X2),r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),pe.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,o=s.projection;return o&&(o.isPresent=r,i||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||D.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),On.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ho(t){const[e,n]=q2(),s=m.useContext(ee);return y.jsx(Y2,{...t,layoutGroup:s,switchLayoutGroup:m.useContext(jo),isPresent:e,safeToRemove:n})}const X2={borderRadius:{...Ht,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ht,borderTopRightRadius:Ht,borderBottomLeftRadius:Ht,borderBottomRightRadius:Ht,boxShadow:G2},Io=["TopLeft","TopRight","BottomLeft","BottomRight"],Q2=Io.length,zs=t=>typeof t=="string"?parseFloat(t):t,Us=t=>typeof t=="number"||S.test(t);function J2(t,e,n,s,i,r){i?(t.opacity=k(0,n.opacity!==void 0?n.opacity:1,t3(s)),t.opacityExit=k(e.opacity!==void 0?e.opacity:1,0,e3(s))):r&&(t.opacity=k(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let o=0;o<Q2;o++){const a=`border${Io[o]}Radius`;let l=qs(e,a),c=qs(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Us(l)===Us(c)?(t[a]=Math.max(k(zs(l),zs(c),s),0),(tt.test(c)||tt.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=k(e.rotate||0,n.rotate||0,s))}function qs(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const t3=Oo(0,.5,lo),e3=Oo(.5,.95,$);function Oo(t,e,n){return s=>s<t?0:s>e?1:n(Jt(t,e,s))}function Gs(t,e){t.min=e.min,t.max=e.max}function K(t,e){Gs(t.x,e.x),Gs(t.y,e.y)}function Ks(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Ys(t,e,n,s,i){return t-=e,t=Ve(t,1/n,s),i!==void 0&&(t=Ve(t,1/i,s)),t}function n3(t,e=0,n=1,s=.5,i,r=t,o=t){if(tt.test(e)&&(e=parseFloat(e),e=k(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=k(r.min,r.max,s);t===r&&(a-=e),t.min=Ys(t.min,e,n,a,i),t.max=Ys(t.max,e,n,a,i)}function Xs(t,e,[n,s,i],r,o){n3(t,e[n],e[s],e[i],e.scale,r,o)}const s3=["x","scaleX","originX"],i3=["y","scaleY","originY"];function Qs(t,e,n,s){Xs(t.x,e,s3,n?n.x:void 0,s?s.x:void 0),Xs(t.y,e,i3,n?n.y:void 0,s?s.y:void 0)}function Js(t){return t.translate===0&&t.scale===1}function $o(t){return Js(t.x)&&Js(t.y)}function ti(t,e){return t.min===e.min&&t.max===e.max}function o3(t,e){return ti(t.x,e.x)&&ti(t.y,e.y)}function ei(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function No(t,e){return ei(t.x,e.x)&&ei(t.y,e.y)}function ni(t){return U(t.x)/U(t.y)}function si(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class r3{constructor(){this.members=[]}add(e){re(this.members,e),e.scheduleRender()}remove(e){if(Hn(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const r=this.members[i];if(r.isPresent!==!1){s=r;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function a3(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:h,rotateY:d,skewX:f,skewY:p}=n;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),h&&(s+=`rotateX(${h}deg) `),d&&(s+=`rotateY(${d}deg) `),f&&(s+=`skewX(${f}deg) `),p&&(s+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const l3=(t,e)=>t.depth-e.depth;class c3{constructor(){this.children=[],this.isDirty=!1}add(e){re(this.children,e),this.isDirty=!0}remove(e){Hn(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(l3),this.isDirty=!1,this.children.forEach(e)}}function Ce(t){const e=W(t)?t.get():t;return t2(e)?e.toValue():e}function u3(t,e){const n=et.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(ut(s),t(r-e))};return D.read(s,!0),()=>ut(s)}function h3(t){return t instanceof SVGElement&&t.tagName!=="svg"}function d3(t,e,n){const s=W(t)?t:te(t);return s.start(jn("",s,e,n)),s.animation}const bt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Zt=typeof window<"u"&&window.MotionDebug!==void 0,Ge=["","X","Y","Z"],f3={visibility:"hidden"},ii=1e3;let m3=0;function Ke(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function _o(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=vo(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",D,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&_o(s)}function Wo({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=m3++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Zt&&(bt.totalNodes=bt.resolvedTargetDeltas=bt.recalculatedProjection=0),this.nodes.forEach(g3),this.nodes.forEach(b3),this.nodes.forEach(V3),this.nodes.forEach(y3),Zt&&window.MotionDebug.record(bt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new c3)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new In),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=h3(o),this.instance=o;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),t){let h;const d=()=>this.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=u3(d,250),pe.hasAnimatedSinceResize&&(pe.hasAnimatedSinceResize=!1,this.nodes.forEach(ri))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:d,hasRelativeTargetChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||u.getDefaultTransition()||T3,{onLayoutAnimationStart:C,onLayoutAnimationComplete:g}=u.getProps(),x=!this.targetLayout||!No(this.targetLayout,p)||f,w=!d&&f;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||d&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,w);const b={...Vn(v,"layout"),onPlay:C,onComplete:g};(u.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else d||ri(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ut(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(P3),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&_o(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(oi);return}this.isUpdating||this.nodes.forEach(w3),this.isUpdating=!1,this.nodes.forEach(x3),this.nodes.forEach(p3),this.nodes.forEach(C3),this.clearAllSnapshots();const a=et.now();O.delta=mt(0,1e3/60,a-O.timestamp),O.timestamp=a,O.isProcessing=!0,$e.update.process(O),$e.preRender.process(O),$e.render.process(O),O.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,On.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(v3),this.sharedNodes.forEach(L3)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=I(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!$o(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&(a||xt(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),M3(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return I();const l=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(R3))){const{scroll:u}=this.root;u&&(Et(l.x,u.offset.x),Et(l.y,u.offset.y))}return l}removeElementScroll(o){var a;const l=I();if(K(l,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:h,options:d}=u;u!==this.root&&h&&d.layoutScroll&&(h.wasRoot&&K(l,o),Et(l.x,h.offset.x),Et(l.y,h.offset.y))}return l}applyTransform(o,a=!1){const l=I();K(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Dt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),xt(u.latestValues)&&Dt(l,u.latestValues)}return xt(this.latestValues)&&Dt(l,this.latestValues),l}removeTransform(o){const a=I();K(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!xt(c.latestValues))continue;mn(c.latestValues)&&c.updateSnapshot();const u=I(),h=c.measurePageBox();K(u,h),Qs(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return xt(this.latestValues)&&Qs(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==O.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:d}=this.options;if(!(!this.layout||!(h||d))){if(this.resolvedRelativeTargetAt=O.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=I(),this.relativeTargetOrigin=I(),Gt(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),K(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=I(),this.targetWithTransforms=I()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),E2(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):K(this.target,this.layout.layoutBox),Fo(this.target,this.targetDelta)):K(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=I(),this.relativeTargetOrigin=I(),Gt(this.relativeTargetOrigin,this.target,f.target),K(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Zt&&bt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||mn(this.parent.latestValues)||Do(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===O.timestamp&&(c=!1),c)return;const{layout:u,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||h))return;K(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;$2(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=I());const{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ks(this.prevProjectionDelta.x,this.projectionDelta.x),Ks(this.prevProjectionDelta.y,this.projectionDelta.y)),qt(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!si(this.projectionDelta.x,this.prevProjectionDelta.x)||!si(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),Zt&&bt.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Rt(),this.projectionDelta=Rt(),this.projectionDeltaWithTransform=Rt()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},h=Rt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=I(),f=l?l.source:void 0,p=this.layout?this.layout.source:void 0,v=f!==p,C=this.getStack(),g=!C||C.members.length<=1,x=!!(v&&!g&&this.options.crossfade===!0&&!this.path.some(S3));this.animationProgress=0;let w;this.mixTargetDelta=b=>{const T=b/1e3;ai(h.x,o.x,T),ai(h.y,o.y,T),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Gt(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),A3(this.relativeTarget,this.relativeTargetOrigin,d,T),w&&o3(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=I()),K(w,this.relativeTarget)),v&&(this.animationValues=u,J2(u,c,this.latestValues,T,x,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ut(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=D.update(()=>{pe.hasAnimatedSinceResize=!0,this.currentAnimation=d3(0,ii,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ii),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&Zo(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||I();const h=U(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const d=U(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}K(a,l),Dt(a,u),qt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new r3),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Ke("z",o,c,this.animationValues);for(let u=0;u<Ge.length;u++)Ke(`rotate${Ge[u]}`,o,c,this.animationValues),Ke(`skew${Ge[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return f3;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Ce(o==null?void 0:o.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=Ce(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!xt(this.latestValues)&&(v.transform=u?u({},""):"none",this.hasProjected=!1),v}const d=h.animationValues||h.latestValues;this.applyTransformsToTarget(),c.transform=a3(this.projectionDeltaWithTransform,this.treeScale,d),u&&(c.transform=u(d,c.transform));const{x:f,y:p}=this.projectionDelta;c.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,h.animationValues?c.opacity=h===this?(l=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c.opacity=h===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const v in Pe){if(d[v]===void 0)continue;const{correct:C,applyTo:g}=Pe[v],x=c.transform==="none"?d[v]:C(d[v],h);if(g){const w=g.length;for(let b=0;b<w;b++)c[g[b]]=x}else c[v]=x}return this.options.layoutId&&(c.pointerEvents=h===this?Ce(o==null?void 0:o.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(oi),this.root.sharedNodes.clear()}}}function p3(t){t.updateLayout()}function C3(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:r}=t.options,o=n.source!==t.layout.source;r==="size"?Y(h=>{const d=o?n.measuredBox[h]:n.layoutBox[h],f=U(d);d.min=s[h].min,d.max=d.min+f}):Zo(r,n.layoutBox,s)&&Y(h=>{const d=o?n.measuredBox[h]:n.layoutBox[h],f=U(s[h]);d.max=d.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+f)});const a=Rt();qt(a,s,n.layoutBox);const l=Rt();o?qt(l,t.applyTransform(i,!0),n.measuredBox):qt(l,s,n.layoutBox);const c=!$o(a);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:d,layout:f}=h;if(d&&f){const p=I();Gt(p,n.layoutBox,d.layoutBox);const v=I();Gt(v,s,f.layoutBox),No(p,v)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=v,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function g3(t){Zt&&bt.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function y3(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function v3(t){t.clearSnapshot()}function oi(t){t.clearMeasurements()}function w3(t){t.isLayoutDirty=!1}function x3(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ri(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function b3(t){t.resolveTargetDelta()}function V3(t){t.calcProjection()}function P3(t){t.resetSkewAndRotation()}function L3(t){t.removeLeadSnapshot()}function ai(t,e,n){t.translate=k(e.translate,0,n),t.scale=k(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function li(t,e,n,s){t.min=k(e.min,n.min,s),t.max=k(e.max,n.max,s)}function A3(t,e,n,s){li(t.x,e.x,n.x,s),li(t.y,e.y,n.y,s)}function S3(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const T3={duration:.45,ease:[.4,0,.1,1]},ci=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ui=ci("applewebkit/")&&!ci("chrome/")?Math.round:$;function hi(t){t.min=ui(t.min),t.max=ui(t.max)}function M3(t){hi(t.x),hi(t.y)}function Zo(t,e,n){return t==="position"||t==="preserve-aspect"&&!R2(ni(e),ni(n),.2)}function R3(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const E3=Wo({attachResizeListener:(t,e)=>rt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ye={current:void 0},zo=Wo({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ye.current){const t=new E3({});t.mount(window),t.setOptions({layoutScroll:!0}),Ye.current=t}return Ye.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),D3={pan:{Feature:U2},drag:{Feature:z2,ProjectionNode:zo,MeasureLayout:Ho}};function di(t,e){const n=e?"pointerenter":"pointerleave",s=e?"onHoverStart":"onHoverEnd",i=(r,o)=>{if(r.pointerType==="touch"||To())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e);const l=a[s];l&&D.postRender(()=>l(r,o))};return ct(t.current,n,i,{passive:!t.getProps()[s]})}class F3 extends yt{mount(){this.unmount=lt(di(this.node,!0),di(this.node,!1))}unmount(){}}class B3 extends yt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=lt(rt(this.node.current,"focus",()=>this.onFocus()),rt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Uo=(t,e)=>e?t===e?!0:Uo(t,e.parentElement):!1;function Xe(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Fe(n))}class k3 extends yt{constructor(){super(...arguments),this.removeStartListeners=$,this.removeEndListeners=$,this.removeAccessibleListeners=$,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const s=this.node.getProps(),r=ct(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u,globalTapTarget:h}=this.node.getProps(),d=!h&&!Uo(this.node.current,a.target)?u:c;d&&D.update(()=>d(a,l))},{passive:!(s.onTap||s.onPointerUp)}),o=ct(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(s.onTapCancel||s.onPointerCancel)});this.removeEndListeners=lt(r,o),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=r=>{if(r.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||Xe("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&D.postRender(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=rt(this.node.current,"keyup",o),Xe("down",(a,l)=>{this.startPress(a,l)})},n=rt(this.node.current,"keydown",e),s=()=>{this.isPressing&&Xe("cancel",(r,o)=>this.cancelPress(r,o))},i=rt(this.node.current,"blur",s);this.removeAccessibleListeners=lt(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:s,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),s&&D.postRender(()=>s(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!To()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:s}=this.node.getProps();s&&D.postRender(()=>s(e,n))}mount(){const e=this.node.getProps(),n=ct(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),s=rt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=lt(n,s)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Cn=new WeakMap,Qe=new WeakMap,j3=t=>{const e=Cn.get(t.target);e&&e(t)},H3=t=>{t.forEach(j3)};function I3({root:t,...e}){const n=t||document;Qe.has(n)||Qe.set(n,{});const s=Qe.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(H3,{root:t,...e})),s[i]}function O3(t,e,n){const s=I3(e);return Cn.set(t,n),s.observe(t),()=>{Cn.delete(t),s.unobserve(t)}}const $3={some:0,all:1};class N3 extends yt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:$3[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,r&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),d=c?u:h;d&&d(l)};return O3(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(_3(e,n))&&this.startObserver()}unmount(){}}function _3({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const W3={inView:{Feature:N3},tap:{Feature:k3},focus:{Feature:B3},hover:{Feature:F3}},Z3={layout:{ProjectionNode:zo,MeasureLayout:Ho}},$n=m.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),ke=m.createContext({}),Nn=typeof window<"u",_n=Nn?m.useLayoutEffect:m.useEffect,qo=m.createContext({strict:!1});let fi=!1;function z3(t,e,n,s,i){var r;const{visualElement:o}=m.useContext(ke),a=m.useContext(qo),l=m.useContext(Be),c=m.useContext($n).reducedMotion,u=m.useRef();s=s||a.renderer,!u.current&&s&&(u.current=s(t,{visualState:e,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c}));const h=u.current,d=m.useContext(jo);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&q3(u.current,n,i,d),m.useInsertionEffect(()=>{h&&h.update(n,l)});const f=n[yo],p=m.useRef(!!f&&!window.MotionHandoffIsComplete&&((r=window.MotionHasOptimisedAnimation)===null||r===void 0?void 0:r.call(window,f)));return _n(()=>{h&&(h.updateFeatures(),On.render(h.render),p.current&&h.animationState&&h.animationState.animateChanges())}),m.useEffect(()=>{h&&(!p.current&&h.animationState&&h.animationState.animateChanges(),p.current=!1,fi||(fi=!0,queueMicrotask(U3)))}),h}function U3(){window.MotionHandoffIsComplete=!0}function q3(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Go(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&Mt(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:c})}function Go(t){if(t)return t.options.allowProjection!==!1?t.projection:Go(t.parent)}function G3(t,e,n){return m.useCallback(s=>{s&&t.mount&&t.mount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):Mt(n)&&(n.current=s))},[e])}function je(t){return Yt(t.animate)||bn.some(e=>Xt(t[e]))}function Ko(t){return!!(je(t)||t.variants)}function K3(t,e){if(je(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Xt(n)?n:void 0,animate:Xt(s)?s:void 0}}return t.inherit!==!1?e:{}}function Y3(t){const{initial:e,animate:n}=K3(t,m.useContext(ke));return m.useMemo(()=>({initial:e,animate:n}),[mi(e),mi(n)])}function mi(t){return Array.isArray(t)?t.join(" "):t}const pi={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Bt={};for(const t in pi)Bt[t]={isEnabled:e=>pi[t].some(n=>!!e[n])};function X3(t){for(const e in t)Bt[e]={...Bt[e],...t[e]}}const Q3=Symbol.for("motionComponentSymbol");function J3({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){t&&X3(t);function r(a,l){let c;const u={...m.useContext($n),...a,layoutId:tl(a)},{isStatic:h}=u,d=Y3(a),f=s(a,h);if(!h&&Nn){el(u,t);const p=nl(u);c=p.MeasureLayout,d.visualElement=z3(i,f,u,e,p.ProjectionNode)}return y.jsxs(ke.Provider,{value:d,children:[c&&d.visualElement?y.jsx(c,{visualElement:d.visualElement,...u}):null,n(i,a,G3(f,d.visualElement,l),f,h,d.visualElement)]})}const o=m.forwardRef(r);return o[Q3]=i,o}function tl({layoutId:t}){const e=m.useContext(ee).id;return e&&t!==void 0?e+"-"+t:t}function el(t,e){const n=m.useContext(qo).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const s="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?kt(!1,s):ht(!1,s)}}function nl(t){const{drag:e,layout:n}=Bt;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const sl=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Wn(t){return typeof t!="string"||t.includes("-")?!1:!!(sl.indexOf(t)>-1||/[A-Z]/u.test(t))}function Yo(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const r in n)t.style.setProperty(r,n[r])}const Xo=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Qo(t,e,n,s){Yo(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Xo.has(i)?i:De(i),e.attrs[i])}function Jo(t,{layout:e,layoutId:n}){return gt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Pe[t]||t==="opacity")}function Zn(t,e,n){var s;const{style:i}=t,r={};for(const o in i)(W(i[o])||e.style&&W(e.style[o])||Jo(o,t)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(r[o]=i[o]);return n&&i&&typeof i.willChange=="string"&&(n.applyWillChange=!1),r}function tr(t,e,n){const s=Zn(t,e,n);for(const i in t)if(W(t[i])||W(e[i])){const r=ne.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}function zn(t){const e=m.useRef(null);return e.current===null&&(e.current=t()),e.current}function il({applyWillChange:t=!1,scrapeMotionValuesFromProps:e,createRenderState:n,onMount:s},i,r,o,a){const l={latestValues:rl(i,r,o,a?!1:t,e),renderState:n()};return s&&(l.mount=c=>s(i,c,l)),l}const er=t=>(e,n)=>{const s=m.useContext(ke),i=m.useContext(Be),r=()=>il(t,e,s,i,n);return n?r():zn(r)};function ol(t,e){const n=wo(e);n&&re(t,n)}function Ci(t,e,n){const s=Array.isArray(e)?e:[e];for(let i=0;i<s.length;i++){const r=wn(t,s[i]);if(r){const{transitionEnd:o,transition:a,...l}=r;n(l,o)}}}function rl(t,e,n,s,i){var r;const o={},a=[],l=s&&((r=t.style)===null||r===void 0?void 0:r.willChange)===void 0,c=i(t,{});for(const C in c)o[C]=Ce(c[C]);let{initial:u,animate:h}=t;const d=je(t),f=Ko(t);e&&f&&!d&&t.inherit!==!1&&(u===void 0&&(u=e.initial),h===void 0&&(h=e.animate));let p=n?n.initial===!1:!1;p=p||u===!1;const v=p?h:u;return v&&typeof v!="boolean"&&!Yt(v)&&Ci(t,v,(C,g)=>{for(const x in C){let w=C[x];if(Array.isArray(w)){const b=p?w.length-1:0;w=w[b]}w!==null&&(o[x]=w)}for(const x in g)o[x]=g[x]}),l&&(h&&u!==!1&&!Yt(h)&&Ci(t,h,C=>{for(const g in C)ol(a,g)}),a.length&&(o.willChange=a.join(","))),o}const Un=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),nr=()=>({...Un(),attrs:{}}),sr=(t,e)=>e&&typeof t=="number"?e.transform(t):t,al={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ll=ne.length;function cl(t,e,n){let s="",i=!0;for(let r=0;r<ll;r++){const o=ne[r],a=t[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=sr(a,Tn[o]);if(!l){i=!1;const u=al[o]||o;s+=`${u}(${c}) `}n&&(e[o]=c)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function qn(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let o=!1,a=!1;for(const l in e){const c=e[l];if(gt.has(l)){o=!0;continue}else if($i(l)){i[l]=c;continue}else{const u=sr(c,Tn[l]);l.startsWith("origin")?(a=!0,r[l]=u):s[l]=u}}if(e.transform||(o||n?s.transform=cl(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=r;s.transformOrigin=`${l} ${c} ${u}`}}function gi(t,e,n){return typeof t=="string"?t:S.transform(e+n*t)}function ul(t,e,n){const s=gi(e,t.x,t.width),i=gi(n,t.y,t.height);return`${s} ${i}`}const hl={offset:"stroke-dashoffset",array:"stroke-dasharray"},dl={offset:"strokeDashoffset",array:"strokeDasharray"};function fl(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?hl:dl;t[r.offset]=S.transform(-s);const o=S.transform(e),a=S.transform(n);t[r.array]=`${o} ${a}`}function Gn(t,{attrX:e,attrY:n,attrScale:s,originX:i,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...c},u,h){if(qn(t,c,h),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:f,dimensions:p}=t;d.transform&&(p&&(f.transform=d.transform),delete d.transform),p&&(i!==void 0||r!==void 0||f.transform)&&(f.transformOrigin=ul(p,i!==void 0?i:.5,r!==void 0?r:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),o!==void 0&&fl(d,o,a,l,!1)}const Kn=t=>typeof t=="string"&&t.toLowerCase()==="svg",ml={useVisualState:er({scrapeMotionValuesFromProps:tr,createRenderState:nr,onMount:(t,e,{renderState:n,latestValues:s})=>{D.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),D.render(()=>{Gn(n,s,Kn(e.tagName),t.transformTemplate),Qo(e,n)})}})},pl={useVisualState:er({applyWillChange:!0,scrapeMotionValuesFromProps:Zn,createRenderState:Un})};function ir(t,e,n){for(const s in e)!W(e[s])&&!Jo(s,n)&&(t[s]=e[s])}function Cl({transformTemplate:t},e){return m.useMemo(()=>{const n=Un();return qn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function gl(t,e){const n=t.style||{},s={};return ir(s,n,t),Object.assign(s,Cl(t,e)),s}function yl(t,e){const n={},s=gl(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const vl=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Le(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||vl.has(t)}let or=t=>!Le(t);function wl(t){t&&(or=e=>e.startsWith("on")?!Le(e):t(e))}try{wl(require("@emotion/is-prop-valid").default)}catch{}function xl(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(or(i)||n===!0&&Le(i)||!e&&!Le(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function bl(t,e,n,s){const i=m.useMemo(()=>{const r=nr();return Gn(r,e,Kn(s),t.transformTemplate),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};ir(r,t.style,t),i.style={...r,...i.style}}return i}function Vl(t=!1){return(n,s,i,{latestValues:r},o)=>{const l=(Wn(n)?bl:yl)(s,r,o,n),c=xl(s,typeof n=="string",t),u=n!==m.Fragment?{...c,...l,ref:i}:{},{children:h}=s,d=m.useMemo(()=>W(h)?h.get():h,[h]);return m.createElement(n,{...u,children:d})}}function Pl(t,e){return function(s,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...Wn(s)?ml:pl,preloadedFeatures:t,useRender:Vl(i),createVisualElement:e,Component:s};return J3(o)}}const gn={current:null},rr={current:!1};function Ll(){if(rr.current=!0,!!Nn)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>gn.current=t.matches;t.addListener(e),e()}else gn.current=!1}function Al(t,e,n){for(const s in e){const i=e[s],r=n[s];if(W(i))t.addValue(s,i),process.env.NODE_ENV==="development"&&Me(i.version==="11.7.0",`Attempting to mix Framer Motion versions ${i.version} with 11.7.0 may not work as expected.`);else if(W(r))t.addValue(s,te(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,te(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const yi=new WeakMap,Sl=[...Wi,N,pt],Tl=t=>Sl.find(_i(t)),vi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ml{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=An,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=et.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,D.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=je(n),this.isVariantNode=Ko(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in h){const f=h[d];l[d]!==void 0&&W(f)&&f.set(l[d],!1)}}mount(e){this.current=e,yi.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),rr.current||Ll(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:gn.current,process.env.NODE_ENV!=="production"&&Me(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){yi.delete(this.current),this.projection&&this.projection.unmount(),ut(this.notifyUpdate),ut(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=gt.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&D.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Bt){const n=Bt[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):I()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<vi.length;s++){const i=vi[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Al(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=te(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Ii(i)||Hi(i))?i=parseFloat(i):!Tl(i)&&pt.test(n)&&(i=Xi(e,n)),this.setBaseTarget(e,W(i)?i.get():i)),W(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const o=wn(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[e])}if(s&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!W(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new In),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class ar extends Ml{constructor(){super(...arguments),this.KeyframeResolver=Qi}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}}function Rl(t){return window.getComputedStyle(t)}class El extends ar{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=Yo}readValueFromInstance(e,n){if(gt.has(n)){const s=Mn(n);return s&&s.default||0}else{const s=Rl(e),i=($i(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Bo(e,n)}build(e,n,s){qn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Zn(e,n,s)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;W(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Dl extends ar{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=I}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(gt.has(n)){const s=Mn(n);return s&&s.default||0}return n=Xo.has(n)?n:De(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return tr(e,n,s)}build(e,n,s){Gn(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){Qo(e,n,s,i)}mount(e){this.isSVGTag=Kn(e.tagName),super.mount(e)}}const Fl=(t,e)=>Wn(t)?new Dl(e):new El(e,{allowProjection:t!==m.Fragment}),Bl=Pl({...x2,...W3,...D3,...Z3},Fl),nt=pa(Bl);class kl extends L.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function jl({children:t,isPresent:e}){const n=m.useId(),s=m.useRef(null),i=m.useRef({width:0,height:0,top:0,left:0}),{nonce:r}=m.useContext($n);return m.useInsertionEffect(()=>{const{width:o,height:a,top:l,left:c}=i.current;if(e||!s.current||!o||!a)return;s.current.dataset.motionPopId=n;const u=document.createElement("style");return r&&(u.nonce=r),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
|
|
6
|
+
[data-motion-pop-id="${n}"] {
|
|
7
|
+
position: absolute !important;
|
|
8
|
+
width: ${o}px !important;
|
|
9
|
+
height: ${a}px !important;
|
|
10
|
+
top: ${l}px !important;
|
|
11
|
+
left: ${c}px !important;
|
|
12
|
+
}
|
|
13
|
+
`),()=>{document.head.removeChild(u)}},[e]),y.jsx(kl,{isPresent:e,childRef:s,sizeRef:i,children:L.cloneElement(t,{ref:s})})}const Hl=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:r,mode:o})=>{const a=zn(Il),l=m.useId(),c=m.useMemo(()=>({id:l,initial:e,isPresent:n,custom:i,onExitComplete:u=>{a.set(u,!0);for(const h of a.values())if(!h)return;s&&s()},register:u=>(a.set(u,!1),()=>a.delete(u))}),r?[Math.random()]:[n]);return m.useMemo(()=>{a.forEach((u,h)=>a.set(h,!1))},[n]),L.useEffect(()=>{!n&&!a.size&&s&&s()},[n]),o==="popLayout"&&(t=y.jsx(jl,{isPresent:n,children:t})),y.jsx(Be.Provider,{value:c,children:t})};function Il(){return new Map}const ue=t=>t.key||"";function wi(t){const e=[];return m.Children.forEach(t,n=>{m.isValidElement(n)&&e.push(n)}),e}const Ol=({children:t,exitBeforeEnter:e,custom:n,initial:s=!0,onExitComplete:i,presenceAffectsLayout:r=!0,mode:o="sync"})=>{ht(!e,"Replace exitBeforeEnter with mode='wait'");const a=m.useMemo(()=>wi(t),[t]),l=a.map(ue),c=m.useRef(!0),u=m.useRef(a),h=zn(()=>new Map),[d,f]=m.useState(a),[p,v]=m.useState(a);_n(()=>{c.current=!1,u.current=a;for(let x=0;x<p.length;x++){const w=ue(p[x]);l.includes(w)?h.delete(w):h.get(w)!==!0&&h.set(w,!1)}},[p,l.length,l.join("-")]);const C=[];if(a!==d){let x=[...a];for(let w=0;w<p.length;w++){const b=p[w],T=ue(b);l.includes(T)||(x.splice(w,0,b),C.push(b))}o==="wait"&&C.length&&(x=C),v(wi(x)),f(a);return}process.env.NODE_ENV!=="production"&&o==="wait"&&p.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:g}=m.useContext(ee);return y.jsx(y.Fragment,{children:p.map(x=>{const w=ue(x),b=a===p||l.includes(w),T=()=>{if(h.has(w))h.set(w,!0);else return;let A=!0;h.forEach(E=>{E||(A=!1)}),A&&(g==null||g(),v(u.current),i&&i())};return y.jsx(Hl,{isPresent:b,initial:!c.current||s?void 0:!1,custom:b?void 0:n,presenceAffectsLayout:r,mode:o,onExitComplete:b?void 0:T,children:x},w)})})},$l=m.createContext(null);function Nl(){const t=m.useRef(!1);return _n(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function _l(){const t=Nl(),[e,n]=m.useState(0),s=m.useCallback(()=>{t.current&&n(e+1)},[e]);return[m.useCallback(()=>D.postRender(s),[s]),e]}const Wl=t=>!t.isLayoutDirty&&t.willUpdate(!1);function xi(){const t=new Set,e=new WeakMap,n=()=>t.forEach(Wl);return{add:s=>{t.add(s),e.set(s,s.addEventListener("willUpdate",n))},remove:s=>{t.delete(s);const i=e.get(s);i&&(i(),e.delete(s)),n()},dirty:n}}const lr=t=>t===!0,Zl=t=>lr(t===!0)||t==="id",zl=({children:t,id:e,inherit:n=!0})=>{const s=m.useContext(ee),i=m.useContext($l),[r,o]=_l(),a=m.useRef(null),l=s.id||i;a.current===null&&(Zl(n)&&l&&(e=e?l+"-"+e:l),a.current={id:e,group:lr(n)&&s.group||xi()});const c=m.useMemo(()=>({...a.current,forceRender:r}),[o]);return y.jsx(ee.Provider,{value:c,children:t})},Ul={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let ql=0;function bi(t,e){const n=`atom${++ql}`,s={toString(){return(Ul?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof t=="function"?s.read=t:(s.init=t,s.read=Gl,s.write=Kl),e&&(s.write=e),s}function Gl(t){return t(this)}function Kl(t,e,n){return e(this,typeof n=="function"?n(t(this)):n)}const Yn={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Yl=Symbol((Yn?"production":void 0)!=="production"?"RESET":""),Xl=t=>typeof(t==null?void 0:t.then)=="function";function Ql(t=()=>{try{return window.localStorage}catch(n){(Yn?"production":void 0)!=="production"&&typeof window<"u"&&console.warn(n);return}},e){var n;let s,i;const r={getItem:(l,c)=>{var u,h;const d=p=>{if(p=p||"",s!==p){try{i=JSON.parse(p,e==null?void 0:e.reviver)}catch{return c}s=p}return i},f=(h=(u=t())==null?void 0:u.getItem(l))!=null?h:null;return Xl(f)?f.then(d):d(f)},setItem:(l,c)=>{var u;return(u=t())==null?void 0:u.setItem(l,JSON.stringify(c,void 0))},removeItem:l=>{var c;return(c=t())==null?void 0:c.removeItem(l)}},o=l=>(c,u,h)=>l(c,d=>{let f;try{f=JSON.parse(d||"")}catch{f=h}u(f)});let a;try{a=(n=t())==null?void 0:n.subscribe}catch{}return!a&&typeof window<"u"&&typeof window.addEventListener=="function"&&window.Storage&&(a=(l,c)=>{if(!(t()instanceof window.Storage))return()=>{};const u=h=>{h.storageArea===t()&&h.key===l&&c(h.newValue)};return window.addEventListener("storage",u),()=>{window.removeEventListener("storage",u)}}),a&&(r.subscribe=o(a)),r}const Jl=Ql();function j(t,e,n=Jl,s){const i=bi(e);return(Yn?"production":void 0)!=="production"&&(i.debugPrivate=!0),i.onMount=o=>{o(n.getItem(t,e));let a;return n.subscribe&&(a=n.subscribe(t,o,e)),a},bi(o=>o(i),(o,a,l)=>{const c=typeof l=="function"?l(o(i)):l;return c===Yl?(a(i,e),n.removeItem(t)):c instanceof Promise?c.then(u=>(a(i,u),n.setItem(t,u))):(a(i,c),n.setItem(t,c))})}var Kt=(t=>(t.None="none",t.Lossless="lossless",t.HiRes="hires",t.DolbyAtmos="dolby-atmos",t))(Kt||{});const cr=P.atom("未知歌曲"),ur=P.atom([{name:"未知创作者",id:"unknown"}]),hr=P.atom("未知专辑"),dr=P.atom(""),fr=P.atom(!1),mr=P.atom(0),He=P.atom(!1),pr=P.atom("none"),Xn=P.atom(0),Cr=j("amll-react-full.musicVolumeAtom",.5),gr=P.atom([]),yr=j("amll-react-full.hideLyricViewAtom",!1),vr=P.atom([]),wr=P.atom(1),Qn=P.atom(!1),tc=(t,e)=>L.createElement("svg",{width:192,height:36,viewBox:"0 0 192 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M139.11 15.884H135.582V23.8C135.582 24.6027 135.732 25.1814 136.03 25.536C136.329 25.872 136.805 26.04 137.458 26.04C137.701 26.04 137.962 26.012 138.242 25.956C138.522 25.9 138.774 25.816 138.998 25.704L139.082 27.86C138.765 27.972 138.41 28.056 138.018 28.112C137.645 28.1867 137.253 28.224 136.842 28.224C135.592 28.224 134.63 27.8787 133.958 27.188C133.305 26.4974 132.978 25.4614 132.978 24.08V15.884H130.43V13.728H132.978V7.92004H135.582V13.728H139.11V15.884ZM117.188 20.692H124.608L120.912 11.396L117.188 20.692ZM114.22 28H111.14L119.736 8.17604H122.256L130.768 28H127.632L125.616 23.128H116.208L114.22 28ZM145.441 15.12C144.713 15.6054 144.181 16.2027 143.845 16.912H143.761C143.761 16.632 143.752 16.2867 143.733 15.876C143.715 15.4467 143.687 15.064 143.649 14.728H141.157C141.195 15.1574 141.223 15.652 141.241 16.212C141.26 16.772 141.269 17.2294 141.269 17.584V28H143.901V20.944C143.901 19.6187 144.219 18.564 144.853 17.78C145.507 16.9774 146.319 16.576 147.289 16.576C147.812 16.576 148.251 16.6694 148.605 16.856C148.96 17.024 149.249 17.2667 149.473 17.584C149.697 17.8827 149.856 18.2467 149.949 18.676C150.043 19.1054 150.089 19.5814 150.089 20.104V28H152.721V20.832C152.721 20.3094 152.777 19.796 152.889 19.292C153.02 18.788 153.216 18.34 153.477 17.948C153.757 17.5374 154.112 17.2107 154.541 16.968C154.971 16.7067 155.484 16.576 156.081 16.576C156.66 16.576 157.136 16.688 157.509 16.912C157.883 17.136 158.181 17.4347 158.405 17.808C158.629 18.1814 158.788 18.6107 158.881 19.096C158.975 19.5814 159.021 20.0947 159.021 20.636V28H161.653V19.768C161.653 19.0214 161.551 18.3214 161.345 17.668C161.159 17.0147 160.86 16.4454 160.449 15.96C160.039 15.4747 159.525 15.092 158.909 14.812C158.293 14.5134 157.556 14.364 156.697 14.364C155.745 14.364 154.868 14.5974 154.065 15.064C153.263 15.512 152.637 16.1654 152.189 17.024C151.779 16.072 151.209 15.3907 150.481 14.98C149.772 14.5694 148.969 14.364 148.073 14.364C147.065 14.364 146.188 14.616 145.441 15.12ZM176.233 21.336C176.233 20.7014 176.131 20.0947 175.925 19.516C175.739 18.9374 175.459 18.4334 175.085 18.004C174.712 17.556 174.245 17.2014 173.685 16.94C173.144 16.6787 172.519 16.548 171.809 16.548C171.1 16.548 170.465 16.6787 169.905 16.94C169.364 17.2014 168.907 17.556 168.533 18.004C168.16 18.4334 167.871 18.9374 167.665 19.516C167.479 20.0947 167.385 20.7014 167.385 21.336C167.385 21.9707 167.479 22.5774 167.665 23.156C167.871 23.7347 168.16 24.248 168.533 24.696C168.907 25.144 169.364 25.4987 169.905 25.76C170.465 26.0214 171.1 26.152 171.809 26.152C172.519 26.152 173.144 26.0214 173.685 25.76C174.245 25.4987 174.712 25.144 175.085 24.696C175.459 24.248 175.739 23.7347 175.925 23.156C176.131 22.5774 176.233 21.9707 176.233 21.336ZM178.977 21.336C178.977 22.3627 178.791 23.3054 178.417 24.164C178.063 25.0227 177.559 25.7694 176.905 26.404C176.271 27.02 175.515 27.5054 174.637 27.86C173.76 28.196 172.817 28.364 171.809 28.364C170.801 28.364 169.859 28.196 168.981 27.86C168.104 27.5054 167.348 27.02 166.713 26.404C166.079 25.7694 165.575 25.0227 165.201 24.164C164.847 23.3054 164.669 22.3627 164.669 21.336C164.669 20.3094 164.847 19.376 165.201 18.536C165.575 17.6774 166.079 16.94 166.713 16.324C167.348 15.708 168.104 15.232 168.981 14.896C169.859 14.5414 170.801 14.364 171.809 14.364C172.817 14.364 173.76 14.5414 174.637 14.896C175.515 15.232 176.271 15.708 176.905 16.324C177.559 16.94 178.063 17.6774 178.417 18.536C178.791 19.376 178.977 20.3094 178.977 21.336ZM187.975 16.912C188.517 17.2107 188.937 17.6027 189.235 18.088L191.055 16.548C190.57 15.8387 189.879 15.2974 188.983 14.924C188.106 14.5507 187.191 14.364 186.239 14.364C185.605 14.364 184.989 14.448 184.391 14.616C183.794 14.7654 183.262 15.008 182.795 15.344C182.329 15.6614 181.946 16.0814 181.647 16.604C181.367 17.108 181.227 17.7147 181.227 18.424C181.227 19.04 181.339 19.5627 181.563 19.992C181.806 20.4027 182.114 20.748 182.487 21.028C182.861 21.308 183.271 21.532 183.719 21.7C184.186 21.8494 184.643 21.98 185.091 22.092C186.23 22.3534 187.089 22.6334 187.667 22.932C188.265 23.2307 188.563 23.688 188.563 24.304C188.563 24.6774 188.489 24.9854 188.339 25.228C188.19 25.4707 187.985 25.6667 187.723 25.816C187.481 25.9654 187.201 26.0774 186.883 26.152C186.585 26.208 186.267 26.236 185.931 26.236C185.185 26.236 184.494 26.0587 183.859 25.704C183.243 25.3494 182.758 24.9107 182.403 24.388L180.527 25.984C181.162 26.7867 181.955 27.384 182.907 27.776C183.878 28.168 184.867 28.364 185.875 28.364C186.547 28.364 187.201 28.2894 187.835 28.14C188.47 27.9907 189.03 27.748 189.515 27.412C190.019 27.0574 190.421 26.6094 190.719 26.068C191.018 25.5267 191.167 24.864 191.167 24.08C191.167 23.5014 191.055 22.9974 190.831 22.568C190.607 22.1387 190.29 21.7747 189.879 21.476C189.487 21.1587 189.021 20.8974 188.479 20.692C187.938 20.4867 187.35 20.3094 186.715 20.16C185.707 19.936 184.951 19.6934 184.447 19.432C183.943 19.152 183.691 18.732 183.691 18.172C183.691 17.8547 183.757 17.5934 183.887 17.388C184.037 17.164 184.223 16.9867 184.447 16.856C184.69 16.7067 184.961 16.604 185.259 16.548C185.558 16.4734 185.857 16.436 186.155 16.436C186.827 16.436 187.434 16.5947 187.975 16.912ZM2.95973 27.9533H0V7.93701H2.95973C8.48624 7.93701 12.9927 12.4323 12.9927 17.9451C12.9927 23.4579 8.48624 27.9533 2.95973 27.9533ZM25.5841 7.93701H28.5439V27.9533H25.5841C20.0576 27.9533 15.5511 23.4579 15.5511 17.9451C15.5511 12.4323 20.0576 7.93701 25.5841 7.93701ZM34.6222 7.93701H41.8682C47.4003 7.93701 51.9012 12.4268 51.9012 17.9451C51.9012 23.4635 47.4003 27.9533 41.8682 27.9533H34.6222V7.93701ZM37.6627 24.9175H41.8682C45.717 24.9175 48.8579 21.7871 48.8579 17.9424C48.8579 14.1031 45.7198 10.97 41.8682 10.97H37.6627V24.9175ZM53.4424 21.0365C53.4424 17.2112 56.561 14.1003 60.3958 14.1003C64.2307 14.1003 67.3492 17.2112 67.3492 21.0365C67.3492 24.8619 64.2307 27.9727 60.3958 27.9727C56.561 27.9727 53.4424 24.8619 53.4424 21.0365ZM56.2043 21.0115C56.2043 23.305 58.0687 25.1927 60.3958 25.1927C62.6978 25.1927 64.5874 23.3301 64.5874 21.0115C64.5874 18.718 62.695 16.8303 60.3958 16.8303C58.0966 16.8303 56.2043 18.6902 56.2043 21.0115ZM73.3574 27.9755H70.3168V7.93979H73.3574V27.9755ZM79.9647 15.3514C81.0906 14.5646 82.4618 14.1003 83.9389 14.1003C87.7709 14.1003 90.8895 17.2112 90.8923 21.0365C90.8923 24.8619 87.7737 27.9727 83.9389 27.9727C82.4618 27.9727 81.0934 27.5084 79.9647 26.7217V27.9755H76.9158V7.93979H79.9647V15.3514ZM79.9647 22.3292C80.5165 23.9861 82.08 25.1927 83.9389 25.1927C86.2381 25.1927 88.1304 23.3328 88.1304 21.0115C88.1304 18.718 86.2381 16.8303 83.9389 16.8303C82.0995 16.8303 80.5221 18.023 79.9647 19.691C79.8254 20.1052 79.7473 20.55 79.7473 21.0115C79.7473 21.473 79.8254 21.915 79.9647 22.3292ZM99.0715 22.9937L103.035 14.1059H106.357C105.983 14.9363 103.631 20.1804 101.593 24.7238C99.933 28.4242 98.4816 31.6599 98.4778 31.6674C97.5944 33.6468 95.2589 34.5419 93.283 33.6607L92.2295 33.1908L92.224 33.1881L93.453 30.4386L93.8905 30.6332C94.7043 30.9974 95.6658 30.6276 96.0309 29.8131C96.0337 29.8048 97.4104 26.7161 97.4104 26.7161L91.7864 14.1059H95.1084L99.0715 22.9937Z",fill:"currentColor"})),Vi=m.forwardRef(tc),ec="sVgrRW_audioQualityTag",nc="sVgrRW_dolbyLogoGlow",Je={audioQualityTag:ec,"dolby-glow":"sVgrRW_dolby-glow",dolbyLogoGlow:nc},sc=(t,e)=>L.createElement("svg",{width:97,height:20,viewBox:"0 0 97 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},L.createElement("g",{clipPath:"url(#clip0_2_55)"},L.createElement("path",{opacity:.4,fillRule:"evenodd",clipRule:"evenodd",d:"M7.08442 0H89.9156C92.379 0 93.2723 0.256492 94.1729 0.73813C95.0735 1.21977 95.7802 1.92655 96.2619 2.82714C96.7435 3.72772 97 4.62101 97 7.08442V12.9156C97 15.379 96.7435 16.2723 96.2619 17.1729C95.7802 18.0734 95.0735 18.7802 94.1729 19.2619C93.2723 19.7435 92.379 20 89.9156 20H7.08442C4.62101 20 3.72772 19.7435 2.82714 19.2619C1.92655 18.7802 1.21977 18.0734 0.73813 17.1729C0.256492 16.2723 0 15.379 0 12.9156V7.08442C0 4.62101 0.256492 3.72772 0.73813 2.82714C1.21977 1.92655 1.92655 1.21977 2.82714 0.73813C3.72772 0.256492 4.62101 0 7.08442 0Z",fill:"currentColor"}),L.createElement("path",{d:"M16.1838 6C17.4176 6 18.1597 7.44851 18.7119 8.98359L18.7656 9.13482L18.8181 9.28631L18.8696 9.43778C19.0393 9.94235 19.1919 10.4418 19.3379 10.8882C19.6733 9.49163 19.4974 9.19176 19.8567 9.19176C19.9903 9.19176 20.1256 9.28262 20.1256 9.44819C20.1256 9.5152 20.0165 10.2254 19.8647 10.937L19.8367 11.0663L19.8078 11.1947C19.759 11.4076 19.7071 11.6135 19.6538 11.7945C21.1981 15.8408 22.3448 10.5111 22.4743 9.42163C22.4933 9.26453 22.6116 9.19176 22.7312 9.19176C22.8909 9.19176 23.0219 9.31208 22.9969 9.49314C22.7204 11.255 22.2952 14 20.5468 14C19.582 14 19.0396 13.245 18.6112 12.3798C18.3137 11.7953 18.0608 11.1006 17.8281 10.4019L17.7726 10.2342C17.7542 10.1784 17.736 10.1225 17.7178 10.0667L17.6637 9.89971C17.1342 8.26093 16.6851 6.74258 15.9967 6.74258C15.6603 6.74258 15.4108 7.09385 15.3936 7.09385C15.3618 7.09385 15.3369 6.95073 15.0227 6.55859C15.3217 6.21716 15.7338 6 16.1838 6ZM10.4581 6.0043C13.2111 6.0043 13.456 13.2682 15.0141 13.2682C15.197 13.2682 15.3942 13.1573 15.6097 12.9062C15.729 13.1082 15.8513 13.2877 15.9779 13.4456C15.6669 13.8006 15.2799 13.9997 14.7953 13.9997C13.0544 13.9995 12.3064 11.0842 11.6626 9.11601C11.511 9.74737 11.4323 10.3188 11.4015 10.5753C11.3824 10.7383 11.2629 10.8126 11.1425 10.8126C11.0091 10.8126 10.8745 10.7212 10.8745 10.5581C10.8745 10.546 10.8752 10.5334 10.8768 10.5205C10.9659 9.8735 11.1456 8.89326 11.3468 8.20982C11.079 7.50821 10.7445 6.74138 10.2518 6.74138C9.25694 6.74138 8.68725 9.24149 8.52704 10.5753C8.50792 10.7383 8.38843 10.8126 8.26806 10.8126C8.13458 10.8126 8 10.7212 8 10.5581C8 10.546 8.00075 10.5334 8.0023 10.5205C8.02539 10.353 8.05014 10.1824 8.07704 10.0104L8.10064 9.86273C8.10466 9.83807 8.10874 9.81339 8.11286 9.78869L8.13817 9.64039C8.45345 7.83491 9.0412 6.0043 10.4581 6.0043ZM13.3146 6.00033C13.809 6.00033 14.3394 6.2576 14.7966 6.86121C14.8221 6.89052 15.0784 7.28879 15.1593 7.42686C15.4387 7.93316 15.6821 8.55194 15.9066 9.19532L15.9647 9.36366C16.6095 11.2484 17.1067 13.277 17.8811 13.277C18.0647 13.277 18.2638 13.163 18.4842 12.9061C18.6035 13.1082 18.7258 13.2876 18.8523 13.4455C18.5421 13.7999 18.1553 13.9997 17.6698 13.9997C14.9332 13.9993 14.6358 6.73978 13.1281 6.73978C12.7879 6.73978 12.5364 7.09388 12.5191 7.09388C12.4873 7.09388 12.4624 6.95077 12.1482 6.55866C12.4553 6.20796 12.8704 6.00033 13.3146 6.00033Z",fill:"currentColor"}),L.createElement("path",{d:"M32.28 5.24001C32.37 5.49001 32.46 5.76001 32.55 6.06001H36.44V6.94001H27.55V6.06001H31.52C31.43 5.83001 31.33 5.62001 31.22 5.42001L32.28 5.24001ZM34.82 14.5H33.99L33.77 13.65L34.54 13.69C34.91 13.69 35.1 13.55 35.1 13.29V10.76H28.9V14.53H28V9.94001H36V13.49C36 14.16 35.6 14.5 34.82 14.5ZM29.12 7.41001H34.89V9.49001H29.12V7.41001ZM33.98 8.77001V8.13001H30.03V8.77001H33.98ZM29.97 11.24H34.04V13.34H29.97V11.24ZM33.2 12.64V11.94H30.82V12.64H33.2Z",fill:"currentColor"}),L.createElement("path",{d:"M43.49 10.8C43.33 11.12 43.13 11.39 42.91 11.63L42.36 10.96C42.78 10.5 43.07 9.89001 43.21 9.13001L43.99 9.27001C43.94 9.51001 43.89 9.74001 43.83 9.95001H44.56V9.09001H45.49V9.95001H46.86V10.8H45.49V11.81H47.07V12.68H45.49V14.56H44.56V12.68H42.43V11.81H44.56V10.8H43.49ZM43.73 6.67001H42.49V5.83001H46.8C46.79 7.25001 46.69 8.10001 46.5 8.38001C46.31 8.66001 45.98 8.80001 45.52 8.80001C45.28 8.80001 45 8.78001 44.67 8.76001L44.45 7.98001C44.8 8.00001 45.09 8.02001 45.32 8.04001C45.56 8.03001 45.72 7.95001 45.78 7.81001C45.84 7.67001 45.87 7.29001 45.89 6.67001H44.62C44.52 7.10001 44.37 7.48001 44.19 7.82001C43.92 8.25001 43.53 8.64001 43.02 8.99001L42.46 8.28001C42.88 8.04001 43.2 7.76001 43.41 7.43001C43.55 7.21001 43.65 6.96001 43.73 6.67001ZM39.24 10.27V11.4H39.94V10.27H39.24ZM39.19 12.19C39.1 13.15 38.88 13.95 38.52 14.61L37.88 14.02C38.24 13.31 38.42 12.41 38.43 11.31V8.33001L37.92 7.71001C38.48 7.12001 38.96 6.30001 39.36 5.26001L40.22 5.46001C40.15 5.64001 40.08 5.82001 40.01 5.99001H41.71V6.64001C41.52 7.01001 41.33 7.34001 41.14 7.62001H42.21V13.67C42.21 14.19 41.93 14.45 41.38 14.45H40.89L40.69 13.74V14.36H39.94V12.19H39.19ZM40.18 7.62001C40.35 7.37001 40.52 7.08001 40.7 6.76001H39.64C39.48 7.07001 39.31 7.36001 39.13 7.62001H40.18ZM40.69 13.67C40.84 13.69 40.98 13.71 41.11 13.71C41.31 13.71 41.41 13.6 41.41 13.39V12.19H40.69V13.67ZM41.41 11.4V10.27H40.69V11.4H41.41ZM41.41 9.49001V8.43001H40.69V9.49001H41.41ZM39.94 8.43001H39.24V9.49001H39.94V8.43001Z",fill:"currentColor"}),L.createElement("path",{d:"M50.87 9.55001V14.5H49.94V9.75001C49.62 10.65 49.22 11.47 48.74 12.22L48.33 11.18C49.04 10.28 49.56 9.25001 49.88 8.09001H48.56V7.18001H49.94V5.30001H50.87V7.18001H52.14V8.09001H50.87V8.54001C51.33 9.01001 51.79 9.52001 52.25 10.07L51.74 10.83C51.4 10.31 51.11 9.88001 50.87 9.55001ZM56.8 5.31001L57.27 6.16001C56.15 6.54001 54.9 6.77001 53.52 6.84001V8.42001H57.5V9.33001H56.1V14.51H55.14V9.33001H53.52C53.44 11.48 52.93 13.19 51.98 14.46L51.3 13.75C52.11 12.69 52.55 11.21 52.61 9.32001V6.03001C54.17 5.99001 55.57 5.75001 56.8 5.31001Z",fill:"currentColor"}),L.createElement("path",{d:"M61.08 10.79H67V11.49C66.49 12.11 65.88 12.63 65.16 13.07C66.01 13.39 66.99 13.63 68.09 13.77L67.68 14.59C66.35 14.37 65.21 14.02 64.26 13.56C63.26 14.03 62.09 14.37 60.77 14.59L60.36 13.76C61.47 13.6 62.46 13.36 63.32 13.03C62.69 12.61 62.17 12.14 61.75 11.6H61.08V10.79ZM62.77 11.6C63.17 12 63.64 12.34 64.19 12.64C64.77 12.34 65.28 11.99 65.72 11.6H62.77ZM60.64 8.70001V9.26001C60.6 11.44 60.25 13.18 59.57 14.5L58.85 13.86C59.39 12.76 59.68 11.22 59.7 9.26001V6.00001H63.49C63.38 5.78001 63.26 5.57001 63.14 5.39001L64.15 5.23001C64.26 5.46001 64.37 5.72001 64.47 6.00001H67.83V6.90001H60.64V7.82001H62.14V7.15001H63.06V7.82001H65.41V7.14001H66.33V7.82001H67.83V8.70001H66.33V10.24H62.14V8.70001H60.64ZM63.06 8.70001V9.45001H65.41V8.70001H63.06Z",fill:"currentColor"}),L.createElement("path",{d:"M70.28 5.75001H77.56V6.68001H74.04V7.28001C74.02 7.84001 73.98 8.36001 73.92 8.86001H78.35V9.78001H75.33V12.99C75.33 13.31 75.48 13.48 75.79 13.48H76.92C77.12 13.48 77.27 13.41 77.37 13.27C77.48 13.13 77.56 12.67 77.6 11.91L78.49 12.2C78.41 13.25 78.25 13.88 78.03 14.08C77.83 14.27 77.52 14.37 77.1 14.37H75.5C74.76 14.37 74.39 13.97 74.39 13.19V9.78001H73.77C73.59 10.64 73.34 11.38 73.01 12.01C72.39 13.1 71.39 13.94 70.01 14.53L69.48 13.68C70.86 13.05 71.79 12.25 72.28 11.29C72.49 10.83 72.66 10.33 72.78 9.78001H69.63V8.86001H72.95C73.01 8.36001 73.05 7.84001 73.07 7.28001V6.68001H70.28V5.75001Z",fill:"currentColor"}),L.createElement("path",{d:"M88.66 8.59001V12.51H87.73V9.43001H84.55V12.52H83.62V8.59001H88.66ZM83.95 5.63001H88.36V8.07001H83.95V5.63001ZM87.44 7.28001V6.44001H84.87V7.28001H87.44ZM85.63 9.90001H86.58V10.93C86.54 11.91 86.28 12.69 85.8 13.29C85.32 13.83 84.56 14.26 83.5 14.56L82.99 13.75C83.99 13.47 84.68 13.12 85.05 12.69C85.41 12.24 85.6 11.65 85.63 10.93V9.90001ZM81.21 14.42H80.27L80.06 13.51C80.34 13.55 80.62 13.57 80.88 13.57C81.14 13.57 81.27 13.44 81.27 13.19V11.02C80.87 11.18 80.46 11.32 80.05 11.45L79.81 10.49C80.31 10.38 80.79 10.24 81.27 10.06V7.97001H80.01V7.06001H81.27V5.31001H82.2V7.06001H83.31V7.97001H82.2V9.69001C82.55 9.53001 82.9 9.35001 83.24 9.17001V10.13C82.9 10.31 82.55 10.48 82.2 10.64V13.43C82.2 14.09 81.87 14.42 81.21 14.42ZM86.82 12.41C87.65 12.79 88.41 13.24 89.1 13.77L88.57 14.59C87.85 13.97 87.11 13.47 86.35 13.11L86.82 12.41Z",fill:"currentColor"})),L.createElement("defs",null,L.createElement("clipPath",{id:"clip0_2_55"},L.createElement("rect",{width:97,height:20,fill:"currentColor"})))),ic=m.forwardRef(sc),oc=(t,e)=>L.createElement("svg",{width:55,height:20,viewBox:"0 0 55 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},L.createElement("g",{clipPath:"url(#clip0_2_24)"},L.createElement("path",{opacity:.4,fillRule:"evenodd",clipRule:"evenodd",d:"M7.08442 0H47.9156C50.379 0 51.2723 0.256492 52.1729 0.73813C53.0735 1.21977 53.7802 1.92655 54.2619 2.82714C54.7435 3.72772 55 4.62101 55 7.08442V12.9156C55 15.379 54.7435 16.2723 54.2619 17.1729C53.7802 18.0734 53.0735 18.7802 52.1729 19.2619C51.2723 19.7435 50.379 20 47.9156 20H7.08442C4.62101 20 3.72772 19.7435 2.82714 19.2619C1.92655 18.7802 1.21977 18.0734 0.73813 17.1729C0.256492 16.2723 0 15.379 0 12.9156V7.08442C0 4.62101 0.256492 3.72772 0.73813 2.82714C1.21977 1.92655 1.92655 1.21977 2.82714 0.73813C3.72772 0.256492 4.62101 0 7.08442 0Z",fill:"currentColor"}),L.createElement("path",{d:"M16.1838 6C17.4176 6 18.1597 7.44851 18.7119 8.98359L18.7656 9.13482L18.8181 9.28631L18.8696 9.43778C19.0393 9.94235 19.1919 10.4418 19.3379 10.8882C19.6733 9.49163 19.4974 9.19176 19.8567 9.19176C19.9903 9.19176 20.1256 9.28262 20.1256 9.44819C20.1256 9.5152 20.0165 10.2254 19.8647 10.937L19.8367 11.0663L19.8078 11.1947C19.759 11.4076 19.7071 11.6135 19.6538 11.7945C21.1981 15.8408 22.3448 10.5111 22.4743 9.42163C22.4933 9.26453 22.6116 9.19176 22.7312 9.19176C22.8909 9.19176 23.0219 9.31208 22.9969 9.49314C22.7204 11.255 22.2952 14 20.5468 14C19.582 14 19.0396 13.245 18.6112 12.3798C18.3137 11.7953 18.0608 11.1006 17.8281 10.4019L17.7726 10.2342C17.7542 10.1784 17.736 10.1225 17.7178 10.0667L17.6637 9.89971C17.1342 8.26093 16.6851 6.74258 15.9967 6.74258C15.6603 6.74258 15.4108 7.09385 15.3936 7.09385C15.3618 7.09385 15.3369 6.95073 15.0227 6.55859C15.3217 6.21716 15.7338 6 16.1838 6ZM10.4581 6.0043C13.2111 6.0043 13.456 13.2682 15.0141 13.2682C15.197 13.2682 15.3942 13.1573 15.6097 12.9062C15.729 13.1082 15.8513 13.2877 15.9779 13.4456C15.6669 13.8006 15.2799 13.9997 14.7953 13.9997C13.0544 13.9995 12.3064 11.0842 11.6626 9.11601C11.511 9.74737 11.4323 10.3188 11.4015 10.5753C11.3824 10.7383 11.2629 10.8126 11.1425 10.8126C11.0091 10.8126 10.8745 10.7212 10.8745 10.5581C10.8745 10.546 10.8752 10.5334 10.8768 10.5205C10.9659 9.8735 11.1456 8.89326 11.3468 8.20982C11.079 7.50821 10.7445 6.74138 10.2518 6.74138C9.25694 6.74138 8.68725 9.24149 8.52704 10.5753C8.50792 10.7383 8.38843 10.8126 8.26806 10.8126C8.13458 10.8126 8 10.7212 8 10.5581C8 10.546 8.00075 10.5334 8.0023 10.5205C8.02539 10.353 8.05014 10.1824 8.07704 10.0104L8.10064 9.86273C8.10466 9.83807 8.10874 9.81339 8.11286 9.78869L8.13817 9.64039C8.45345 7.83491 9.0412 6.0043 10.4581 6.0043ZM13.3146 6.00033C13.809 6.00033 14.3394 6.2576 14.7966 6.86121C14.8221 6.89052 15.0784 7.28879 15.1593 7.42686C15.4387 7.93316 15.6821 8.55194 15.9066 9.19532L15.9647 9.36366C16.6095 11.2484 17.1067 13.277 17.8811 13.277C18.0647 13.277 18.2638 13.163 18.4842 12.9061C18.6035 13.1082 18.7258 13.2876 18.8523 13.4455C18.5421 13.7999 18.1553 13.9997 17.6698 13.9997C14.9332 13.9993 14.6358 6.73978 13.1281 6.73978C12.7879 6.73978 12.5364 7.09388 12.5191 7.09388C12.4873 7.09388 12.4624 6.95077 12.1482 6.55866C12.4553 6.20796 12.8704 6.00033 13.3146 6.00033Z",fill:"currentColor"}),L.createElement("path",{d:"M28.28 5.75H35.56V6.68H32.04V7.28C32.02 7.84 31.98 8.36 31.92 8.86H36.35V9.78H33.33V12.99C33.33 13.31 33.48 13.48 33.79 13.48H34.92C35.12 13.48 35.27 13.41 35.37 13.27C35.48 13.13 35.56 12.67 35.6 11.91L36.49 12.2C36.41 13.25 36.25 13.88 36.03 14.08C35.83 14.27 35.52 14.37 35.1 14.37H33.5C32.76 14.37 32.39 13.97 32.39 13.19V9.78H31.77C31.59 10.64 31.34 11.38 31.01 12.01C30.39 13.1 29.39 13.94 28.01 14.53L27.48 13.68C28.86 13.05 29.79 12.25 30.28 11.29C30.49 10.83 30.66 10.33 30.78 9.78H27.63V8.86H30.95C31.01 8.36 31.05 7.84 31.07 7.28V6.68H28.28V5.75Z",fill:"currentColor"}),L.createElement("path",{d:"M46.66 8.59V12.51H45.73V9.43H42.55V12.52H41.62V8.59H46.66ZM41.95 5.63H46.36V8.07H41.95V5.63ZM45.44 7.28V6.44H42.87V7.28H45.44ZM43.63 9.9H44.58V10.93C44.54 11.91 44.28 12.69 43.8 13.29C43.32 13.83 42.56 14.26 41.5 14.56L40.99 13.75C41.99 13.47 42.68 13.12 43.05 12.69C43.41 12.24 43.6 11.65 43.63 10.93V9.9ZM39.21 14.42H38.27L38.06 13.51C38.34 13.55 38.62 13.57 38.88 13.57C39.14 13.57 39.27 13.44 39.27 13.19V11.02C38.87 11.18 38.46 11.32 38.05 11.45L37.81 10.49C38.31 10.38 38.79 10.24 39.27 10.06V7.97H38.01V7.06H39.27V5.31H40.2V7.06H41.31V7.97H40.2V9.69C40.55 9.53 40.9 9.35 41.24 9.17V10.13C40.9 10.31 40.55 10.48 40.2 10.64V13.43C40.2 14.09 39.87 14.42 39.21 14.42ZM44.82 12.41C45.65 12.79 46.41 13.24 47.1 13.77L46.57 14.59C45.85 13.97 45.11 13.47 44.35 13.11L44.82 12.41Z",fill:"currentColor"})),L.createElement("defs",null,L.createElement("clipPath",{id:"clip0_2_24"},L.createElement("rect",{width:55,height:20,fill:"currentColor"})))),rc=m.forwardRef(oc),Pi={hide:{opacity:0,scale:.8,transition:{duration:.25,ease:"circIn"}},show:{opacity:1,scale:1,transition:{duration:1,ease:[0,.71,.2,1.01]}}},ac={hide:{opacity:0,scale:.8,transition:{duration:.25,ease:"circIn"}},show:{opacity:[0,1],scale:1,transition:{duration:1,ease:[0,.71,.2,1.01]}}},xr=m.memo(({quality:t,className:e,...n})=>y.jsx("div",{className:z(e,Je.audioQualityTag),...n,children:y.jsxs(Ol,{mode:"wait",children:[t===Kt.Lossless&&y.jsx(nt.div,{initial:"hide",animate:"show",exit:"hide",variants:Pi,children:y.jsx(rc,{})}),t===Kt.HiRes&&y.jsx(nt.div,{initial:"hide",animate:"show",exit:"hide",variants:Pi,children:y.jsx(ic,{})}),t===Kt.DolbyAtmos&&y.jsxs(nt.div,{initial:"hide",animate:"show",exit:"hide",className:Je.dolbyLogo,variants:ac,children:[y.jsx(Vi,{className:Je.dolbyLogoGlow}),y.jsx(Vi,{})]})]})})),lc="x2O0EW_inner",cc="x2O0EW_nowPlayingSlider",uc="x2O0EW_thumb",tn={inner:lc,nowPlayingSlider:cc,thumb:uc};class yn{constructor(e=0){it(this,"currentPosition",0);it(this,"targetPosition",0);it(this,"currentTime",0);it(this,"params",{});it(this,"currentSolver");it(this,"getV");it(this,"queueParams");it(this,"queuePosition");this.targetPosition=e,this.currentPosition=this.targetPosition,this.currentSolver=()=>this.targetPosition,this.getV=()=>0}resetSolver(){const e=this.getV(this.currentTime);this.currentTime=0,this.currentSolver=hc(this.currentPosition,e,this.targetPosition,0,this.params),this.getV=fc(this.currentSolver)}arrived(){return Math.abs(this.targetPosition-this.currentPosition)<.01&&this.getV(this.currentTime)<.01&&this.queueParams===void 0&&this.queuePosition===void 0}setPosition(e){this.targetPosition=e,this.currentPosition=e,this.currentSolver=()=>this.targetPosition,this.getV=()=>0}update(e=0){this.currentTime+=e,this.currentPosition=this.currentSolver(this.currentTime),this.queueParams&&(this.queueParams.time-=e,this.queueParams.time<=0&&this.updateParams({...this.queueParams})),this.queuePosition&&(this.queuePosition.time-=e,this.queuePosition.time<=0&&this.setTargetPosition(this.queuePosition.position)),this.arrived()&&this.setPosition(this.targetPosition)}updateParams(e,n=0){n>0?this.queueParams={...e,time:n}:(this.params={...this.params,...e},this.resetSolver())}setTargetPosition(e,n=0){n>0?this.queuePosition={position:e,time:n}:(this.queuePosition=void 0,this.targetPosition=e,this.resetSolver())}getCurrentPosition(){return this.currentPosition}}function hc(t,e,n,s=0,i){const r=(i==null?void 0:i.soft)??!1,o=(i==null?void 0:i.stiffness)??100,a=(i==null?void 0:i.damping)??10,l=(i==null?void 0:i.mass)??1,c=n-t;if(r||1<=a/(2*Math.sqrt(o*l))){const p=-Math.sqrt(o/l),v=-p*c-e;return C=>(C-=s,C<0?t:n-(c+C*v)*Math.E**(C*p))}const u=Math.sqrt(4*l*o-a**2),h=(a*c-2*l*e)/u,d=.5*u/l,f=-(.5*a)/l;return p=>(p-=s,p<0?t:n-(Math.cos(p*d)*c+Math.sin(p*d)*h)*Math.E**(p*f))}function dc(t){return n=>(t(n+.001)-t(n-.001))/(2*.001)}function fc(t){return dc(t)}const Jn=t=>{const{className:e,onAfterChange:n,onBeforeChange:s,onChange:i,onSeeking:r,value:o,min:a,max:l,beforeIcon:c,afterIcon:u,...h}=t,[d,f]=m.useState(o),p=m.useRef(null),v=m.useRef(null),C=m.useRef(!1);return m.useEffect(()=>{const g=p.current,x=v.current;if(g&&x){const w=new yn(80),b=new yn(0);let T=!1;w.updateParams({stiffness:150,mass:1,damping:10}),b.updateParams({stiffness:150});let A=null,E=0;const M=B=>{A??(A=B);const At=(B-A)/1e3;b.update(At),w.update(At),g.style.transform=`translateX(${b.getCurrentPosition()/100}px)`,innerHeight<=1e3?x.style.height=`${w.getCurrentPosition()*.08}px`:x.style.height=`${w.getCurrentPosition()/10}px`,A=B,w.arrived()&&b.arrived()||(E&&cancelAnimationFrame(E),E=requestAnimationFrame(M))},V=B=>{const At=x.getBoundingClientRect(),H=(B.clientX-At.left)/At.width;if(H>1){const st=(H-1)*900;b.setPosition(st),b.setTargetPosition(st)}else if(H<0){const st=H*900;b.setPosition(st),b.setTargetPosition(st)}else b.setPosition(0),b.setTargetPosition(0);const G=Math.min(l,Math.max(a,a+(l-a)*H));i==null||i(G),r==null||r(!0),f(G),E&&cancelAnimationFrame(E),E=requestAnimationFrame(M)},R=B=>{w.setTargetPosition(189),B.stopImmediatePropagation(),B.stopPropagation(),B.preventDefault(),E&&cancelAnimationFrame(E),E=requestAnimationFrame(M)},F=B=>{T||(w.setTargetPosition(80),B.stopImmediatePropagation(),B.stopPropagation(),B.preventDefault(),E&&cancelAnimationFrame(E),E=requestAnimationFrame(M),r==null||r(!1))},q=B=>{B.stopImmediatePropagation(),B.stopPropagation(),B.preventDefault(),w.setTargetPosition(189),A=null,T=!0,C.current=!0,window.addEventListener("mousemove",Lt),window.addEventListener("mouseup",dt),s==null||s(),V(B)},dt=B=>{B.stopImmediatePropagation(),B.stopPropagation(),B.preventDefault(),w.setTargetPosition(80),A=null,T=!1,C.current=!1,window.removeEventListener("mousemove",Lt),window.removeEventListener("mouseup",dt),V(B),b.setTargetPosition(0),r==null||r(!1)},Lt=B=>{V(B)};return x.addEventListener("mousedown",q),g.addEventListener("mouseenter",R),g.addEventListener("mouseleave",F),()=>{x.removeEventListener("mousedown",q),g.removeEventListener("mouseenter",R),g.removeEventListener("mouseleave",F),window.removeEventListener("mouseup",dt),window.removeEventListener("mousemove",Lt)}}},[i,r,s,a,l]),m.useEffect(()=>{C.current||f(o)},[o]),y.jsxs("div",{ref:p,className:z(tn.nowPlayingSlider,e),...h,children:[c,y.jsx("div",{ref:v,className:tn.inner,children:y.jsx("div",{className:tn.thumb,style:{width:`${(d-a)/(l-a)*100}%`}})}),u]})},mc="JYoJ0q_controlThumb",pc={controlThumb:mc},br=({onClick:t,className:e,...n})=>{const s=m.useRef(null),i=m.useRef(!1),[r,o]=m.useState({marginLeft:-25,marginTop:-4}),a=l=>{const c=s.current;if(c&&i.current){const u=c.getBoundingClientRect(),h=(l.clientX-u.left)/2,d=(l.clientY-u.top)/2;Math.abs(h)>25||Math.abs(d)>25?o({marginLeft:-25,marginTop:-4}):o({marginLeft:h-25/2,marginTop:d-25/2})}};return y.jsx("div",{className:z(pc.controlThumb,e),ref:s,...n,children:y.jsxs(nt.button,{type:"button",variants:{rest:{width:50,height:8},hover:{width:25,height:25}},animate:r,whileTap:{scale:.9},whileHover:"hover",initial:"rest",transition:{type:"spring",duration:.5},onMouseMove:l=>{a(l.nativeEvent)},onHoverStart:(l,c)=>{a(l),i.current=!0},onHoverEnd:()=>{i.current=!1,o({marginLeft:-25,marginTop:-4})},onClick:t,children:[y.jsx(nt.div,{variants:{rest:{height:0,width:0,marginTop:0,marginLeft:50/2,transform:"rotate(0)"},hover:{height:2,width:15,marginTop:-1,marginLeft:5,transform:"rotate(45deg)"}},transition:{type:"spring",duration:.5}}),y.jsx(nt.div,{variants:{rest:{height:0,width:0,marginTop:0,marginLeft:50/2,transform:"rotate(0)"},hover:{height:2,width:15,marginTop:-1,marginLeft:5,transform:"rotate(-45deg)"}},transition:{type:"spring",duration:.5}})]})})};function Cc({topLeftCornerRadius:t,topRightCornerRadius:e,bottomRightCornerRadius:n,bottomLeftCornerRadius:s,width:i,height:r}){const o={topLeft:-1,topRight:-1,bottomLeft:-1,bottomRight:-1},a={topLeft:t,topRight:e,bottomLeft:s,bottomRight:n};return Object.entries(a).sort(([,l],[,c])=>c-l).forEach(([l,c])=>{const u=l,h=gc[u],d=Math.min(...h.map(f=>{const p=a[f.corner];if(c===0&&p===0)return 0;const v=o[f.corner],C=f.side==="top"||f.side==="bottom"?i:r;return v>=0?C-o[f.corner]:c/(c+p)*C}));o[u]=d,a[u]=Math.min(c,d)}),{topLeft:{radius:a.topLeft,roundingAndSmoothingBudget:o.topLeft},topRight:{radius:a.topRight,roundingAndSmoothingBudget:o.topRight},bottomLeft:{radius:a.bottomLeft,roundingAndSmoothingBudget:o.bottomLeft},bottomRight:{radius:a.bottomRight,roundingAndSmoothingBudget:o.bottomRight}}}const gc={topLeft:[{corner:"topRight",side:"top"},{corner:"bottomLeft",side:"left"}],topRight:[{corner:"topLeft",side:"top"},{corner:"bottomRight",side:"right"}],bottomLeft:[{corner:"bottomRight",side:"bottom"},{corner:"topLeft",side:"left"}],bottomRight:[{corner:"bottomLeft",side:"bottom"},{corner:"topRight",side:"right"}]};function It({cornerRadius:t,cornerSmoothing:e,preserveSmoothing:n,roundingAndSmoothingBudget:s}){let i=(1+e)*t;if(!n){const p=s/t-1;e=Math.min(e,p),i=Math.min(i,s)}const r=90*(1-e),o=Math.sin(he(r/2))*t*Math.sqrt(2),a=(90-r)/2,l=t*Math.tan(he(a/2)),c=45*e,u=l*Math.cos(he(c)),h=u*Math.tan(he(c));let d=(i-o-u-h)/3,f=2*d;if(n&&i>s){const p=s-h-o-u,v=p/6,C=p-v;d=Math.min(d,C),f=p-d,i=Math.min(i,s)}return{a:f,b:d,c:u,d:h,p:i,arcSectionLength:o,cornerRadius:t}}function Li({width:t,height:e,topLeftPathParams:n,topRightPathParams:s,bottomLeftPathParams:i,bottomRightPathParams:r}){return`
|
|
14
|
+
M ${t-s.p} 0
|
|
15
|
+
${yc(s)}
|
|
16
|
+
L ${t} ${e-r.p}
|
|
17
|
+
${vc(r)}
|
|
18
|
+
L ${i.p} ${e}
|
|
19
|
+
${wc(i)}
|
|
20
|
+
L 0 ${n.p}
|
|
21
|
+
${xc(n)}
|
|
22
|
+
Z
|
|
23
|
+
`.replace(/[\t\s\n]+/g," ").trim()}function yc({cornerRadius:t,a:e,b:n,c:s,d:i,p:r,arcSectionLength:o}){return t?Ct`
|
|
24
|
+
c ${e} 0 ${e+n} 0 ${e+n+s} ${i}
|
|
25
|
+
a ${t} ${t} 0 0 1 ${o} ${o}
|
|
26
|
+
c ${i} ${s}
|
|
27
|
+
${i} ${n+s}
|
|
28
|
+
${i} ${e+n+s}`:Ct`l ${r} 0`}function vc({cornerRadius:t,a:e,b:n,c:s,d:i,p:r,arcSectionLength:o}){return t?Ct`
|
|
29
|
+
c 0 ${e}
|
|
30
|
+
0 ${e+n}
|
|
31
|
+
${-i} ${e+n+s}
|
|
32
|
+
a ${t} ${t} 0 0 1 -${o} ${o}
|
|
33
|
+
c ${-s} ${i}
|
|
34
|
+
${-(n+s)} ${i}
|
|
35
|
+
${-(e+n+s)} ${i}`:Ct`l 0 ${r}`}function wc({cornerRadius:t,a:e,b:n,c:s,d:i,p:r,arcSectionLength:o}){return t?Ct`
|
|
36
|
+
c ${-e} 0
|
|
37
|
+
${-(e+n)} 0
|
|
38
|
+
${-(e+n+s)} ${-i}
|
|
39
|
+
a ${t} ${t} 0 0 1 -${o} -${o}
|
|
40
|
+
c ${-i} ${-s}
|
|
41
|
+
${-i} ${-(n+s)}
|
|
42
|
+
${-i} ${-(e+n+s)}`:Ct`l ${-r} 0`}function xc({cornerRadius:t,a:e,b:n,c:s,d:i,p:r,arcSectionLength:o}){return t?Ct`
|
|
43
|
+
c 0 ${-e}
|
|
44
|
+
0 ${-(e+n)}
|
|
45
|
+
${i} ${-(e+n+s)}
|
|
46
|
+
a ${t} ${t} 0 0 1 ${o} -${o}
|
|
47
|
+
c ${s} ${-i}
|
|
48
|
+
${n+s} ${-i}
|
|
49
|
+
${e+n+s} ${-i}`:Ct`l 0 ${-r}`}function he(t){return t*Math.PI/180}function Ct(t,...e){return t.reduce((n,s,i)=>{let r=e[i];return typeof r=="number"?n+s+r.toFixed(4):n+s+(r??"")},"")}function en({cornerRadius:t=0,topLeftCornerRadius:e,topRightCornerRadius:n,bottomRightCornerRadius:s,bottomLeftCornerRadius:i,cornerSmoothing:r,width:o,height:a,preserveSmoothing:l=!1}){if(e=e??t,n=n??t,i=i??t,s=s??t,e===n&&n===s&&s===i&&i===e){const f=Math.min(o,a)/2,p=Math.min(e,f),v=It({cornerRadius:p,cornerSmoothing:r,preserveSmoothing:l,roundingAndSmoothingBudget:f});return Li({width:o,height:a,topLeftPathParams:v,topRightPathParams:v,bottomLeftPathParams:v,bottomRightPathParams:v})}const{topLeft:c,topRight:u,bottomLeft:h,bottomRight:d}=Cc({topLeftCornerRadius:e,topRightCornerRadius:n,bottomRightCornerRadius:s,bottomLeftCornerRadius:i,width:o,height:a});return Li({width:o,height:a,topLeftPathParams:It({cornerSmoothing:r,preserveSmoothing:l,cornerRadius:c.radius,roundingAndSmoothingBudget:c.roundingAndSmoothingBudget}),topRightPathParams:It({cornerSmoothing:r,preserveSmoothing:l,cornerRadius:u.radius,roundingAndSmoothingBudget:u.roundingAndSmoothingBudget}),bottomRightPathParams:It({cornerSmoothing:r,preserveSmoothing:l,cornerRadius:d.radius,roundingAndSmoothingBudget:d.roundingAndSmoothingBudget}),bottomLeftPathParams:It({cornerSmoothing:r,preserveSmoothing:l,cornerRadius:h.radius,roundingAndSmoothingBudget:h.roundingAndSmoothingBudget})})}const bc=(t=8)=>{const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(let s=0;s<t;s++)n+=e.charAt(Math.floor(Math.random()*e.length));return`squircle-${n}`},Vc=(t,e)=>{let n=document.getElementById(e);n||(n=document.createElement("style"),n.id=e,document.head.appendChild(n)),n.textContent=t},Pc=(t,e,n)=>{const s=t.clientWidth,i=t.clientHeight,r={preserveSmoothing:!0,cornerSmoothing:1,width:s,height:i,...e};e.borderWidth?(t.classList.add(n),Vc(`
|
|
50
|
+
.${n} {
|
|
51
|
+
position: relative;
|
|
52
|
+
clip-path: path('${en(r)}');
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.${n}::before {
|
|
56
|
+
content: '';
|
|
57
|
+
display: block;
|
|
58
|
+
position: absolute;
|
|
59
|
+
inset: ${e.borderWidth}px;
|
|
60
|
+
z-index: -1;
|
|
61
|
+
clip-path: path('${en({...r,width:s-e.borderWidth*2,height:i-e.borderWidth*2,cornerRadius:e.cornerRadius-e.borderWidth})}');
|
|
62
|
+
}
|
|
63
|
+
`,`style-${n}`)):t.style.clipPath=`path('${en(r)}')`},Lc=(t,e)=>{const n=bc();let s;const i=o=>(o!==void 0&&(e=o),Pc(t,e,n)),r=new ResizeObserver(()=>{const o=s;s=[t.clientWidth,t.clientHeight],((o==null?void 0:o[0])!==s[0]||(o==null?void 0:o[1])!==s[1])&&i()});return r.observe(t),i.disconnect=()=>{var o;t.classList.remove(n),(o=document.querySelector(`#style-${n}`))==null||o.remove(),r.disconnect()},i},Ac=t=>{const e={};for(const n in t)t[n]!==void 0&&(e[n]=t[n]);return e},Sc=m.forwardRef(({children:t,as:e="div",cornerRadius:n,topLeftCornerRadius:s,topRightCornerRadius:i,bottomRightCornerRadius:r,bottomLeftCornerRadius:o,cornerSmoothing:a,preserveSmoothing:l,borderWidth:c,...u},h)=>{const d=m.useRef(),f=m.useCallback(p=>{var C;const v=Ac({cornerRadius:n,topLeftCornerRadius:s,topRightCornerRadius:i,bottomRightCornerRadius:r,bottomLeftCornerRadius:o,cornerSmoothing:a,preserveSmoothing:l,borderWidth:c});(C=d.current)==null||C.disconnect(),p&&(d.current=Lc(p,v)),typeof h=="function"?h(p):h&&(h.current=p)},[n,s,i,r,o,a,l,c]);return m.createElement(e,{ref:f,...u},t)}),Tc="meIGfq_cover",Mc="meIGfq_coverInner",Rc="meIGfq_musicPaused",Ot={cover:Tc,coverInner:Mc,musicPaused:Rc},Vr=m.forwardRef(({coverUrl:t,coverIsVideo:e,coverVideoPaused:n,className:s,musicPaused:i,pauseShrinkAspect:r,...o},a)=>{const l=m.useRef(null),c=m.useMemo(()=>z(Ot.cover,i&&Ot.musicPaused,s),[s,i]),u=m.useRef(null);m.useEffect(()=>{const f=u.current;f&&(n?f.pause():f.play())},[n]);const[h,d]=m.useState(20);return m.useLayoutEffect(()=>{const f=l.current;if(f){const p=()=>{const C=Math.min(f.clientWidth,f.clientHeight);d(Math.max(C*.02,window.innerHeight*.007))},v=new ResizeObserver(p);return p(),v.observe(f),()=>{v.disconnect()}}},[]),m.useImperativeHandle(a,()=>l.current,[]),y.jsx("div",{className:c,style:{"--scale-level":r??.75},ref:l,...o,children:y.jsx(Sc,{cornerRadius:h,cornerSmoothing:.7,alt:"cover",className:Ot.coverInner,children:e?y.jsx("video",{className:Ot.coverInner,src:t,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,crossOrigin:"anonymous",ref:u,...o}):y.jsx("div",{className:Ot.coverInner,alt:"cover",style:{backgroundImage:`url(${t})`,"--scale-level":r??.75},...o})})})}),Ec="_1iHSSa_mediaButton",Dc={mediaButton:Ec,"pressed-animation":"_1iHSSa_pressed-animation"},ge=m.memo(({className:t,children:e,type:n,...s})=>y.jsx("button",{className:z(Dc.mediaButton,t),type:"button",...s,children:e})),Fc=(t,e)=>L.createElement("svg",{id:"vector",xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:e,...t},L.createElement("path",{d:"M5.5161,14.1665C5.8687,14.1665 6.1856,14.083 6.467,13.916C6.7485,13.749 6.9742,13.5264 7.1443,13.248C7.3144,12.9697 7.3994,12.6574 7.3994,12.311C7.3994,11.7977 7.217,11.3601 6.8521,10.9983C6.4871,10.6365 6.0418,10.4556 5.5161,10.4556C5.1759,10.4556 4.8652,10.5391 4.5837,10.7061C4.3023,10.873 4.0781,11.0972 3.9111,11.3787C3.7441,11.6601 3.6606,11.9709 3.6606,12.311C3.6606,12.6574 3.7441,12.9697 3.9111,13.248C4.0781,13.5264 4.3023,13.749 4.5837,13.916C4.8652,14.083 5.1759,14.1665 5.5161,14.1665ZM12.4092,14.1665C12.7555,14.1665 13.0679,14.083 13.3462,13.916C13.6245,13.749 13.8472,13.5264 14.0142,13.248C14.1812,12.9697 14.2646,12.6574 14.2646,12.311C14.2646,11.7977 14.0837,11.3601 13.7219,10.9983C13.3601,10.6365 12.9225,10.4556 12.4092,10.4556C12.069,10.4556 11.7582,10.5391 11.4768,10.7061C11.1954,10.873 10.9727,11.0972 10.8088,11.3787C10.6449,11.6601 10.563,11.9709 10.563,12.311C10.563,12.6574 10.6449,12.9697 10.8088,13.248C10.9727,13.5264 11.1954,13.749 11.4768,13.916C11.7582,14.083 12.069,14.1665 12.4092,14.1665ZM19.3022,14.1665C19.6424,14.1665 19.9532,14.083 20.2346,13.916C20.516,13.749 20.7402,13.5264 20.9072,13.248C21.0742,12.9697 21.1577,12.6574 21.1577,12.311C21.1577,11.7977 20.9768,11.3601 20.615,10.9983C20.2532,10.6365 19.8156,10.4556 19.3022,10.4556C18.9559,10.4556 18.6405,10.5391 18.356,10.7061C18.0715,10.873 17.8457,11.0972 17.6787,11.3787C17.5117,11.6601 17.4282,11.9709 17.4282,12.311C17.4282,12.6574 17.5117,12.9697 17.6787,13.248C17.8457,13.5264 18.0715,13.749 18.356,13.916C18.6405,14.083 18.9559,14.1665 19.3022,14.1665Z",fill:"currentColor",fillRule:"nonzero",id:"path_0"})),Bc=m.forwardRef(Fc),kc="o48E2G_menuButton",jc={menuButton:kc},Pr=m.memo(({className:t,type:e,...n})=>y.jsx("button",{className:z(jc.menuButton,t),type:"button",...n,children:y.jsx(Bc,{})})),Hc="OtiOeq_animating",Ic="OtiOeq_textMarquee",de={animating:Hc,textMarquee:Ic},ye=({children:t,className:e,...n})=>{const s=m.useRef(null),i=m.useRef(null),r=m.useRef(new Set),o=()=>{var l;if(i.current&&s.current){const c=s.current.clientWidth,u=i.current.clientWidth;if(u<=c*.95)return;(l=s.current)==null||l.classList.add(de.animating);const h=u-c*.95,d=i.current.animate([{transform:"translateX(0px)"},{transform:`translateX(${-h}px)`}],{iterations:2,direction:"alternate",easing:"linear",duration:Math.max(0,h*2/64*1e3)});d.finished.then(()=>{var f;(f=s.current)==null||f.classList.remove(de.animating)}),r.current.add(d)}},a=()=>{var l;for(const c of r.current)c.finish();(l=s.current)==null||l.classList.remove(de.animating),r.current.clear()};return y.jsx("div",{ref:s,className:z(de.textMarquee,e),onMouseEnter:o,onMouseLeave:a,...n,children:y.jsx("div",{ref:i,children:t})})},Oc="jyIwwa_album",$c="jyIwwa_artists",Nc="jyIwwa_info",_c="jyIwwa_musicInfo",Wc="jyIwwa_name",$t={album:Oc,artists:$c,info:Nc,musicInfo:_c,name:Wc},Lr=({name:t,artists:e,album:n,onArtistClicked:s,onAlbumClicked:i,onMenuButtonClicked:r,className:o,...a})=>y.jsxs("div",{className:z($t.musicInfo,o),...a,children:[y.jsxs("div",{className:$t.info,children:[t!==void 0&&y.jsx(ye,{className:$t.name,children:t}),e!==void 0&&y.jsx(ye,{className:$t.artists,children:e.map(l=>y.jsx("a",{children:l},`artist-${l}`))}),n!==void 0&&y.jsx(ye,{className:$t.album,children:n})]}),y.jsx(Pr,{onClick:r})]}),Zc=m.forwardRef(({album:t,albumIsVideo:e,fps:n,playing:s,flowSpeed:i,renderScale:r,staticMode:o,lowFreqVolume:a,hasLyric:l,renderer:c,style:u,...h},d)=>{const f=m.useRef(),p=m.useRef(null),v=m.useRef(),C=c??ve.MeshGradientRenderer;return m.useEffect(()=>{var g;(v.current!==C||f.current===void 0)&&(v.current=C,(g=f.current)==null||g.dispose(),f.current=ve.BackgroundRender.new(C))},[C]),m.useEffect(()=>{var g;C&&t&&((g=f.current)==null||g.setAlbum(t,e))},[C,t,e]),m.useEffect(()=>{var g;C&&n&&((g=f.current)==null||g.setFPS(n))},[C,n]),m.useEffect(()=>{var g,x,w;C&&(s===void 0?(g=f.current)==null||g.resume():s?(x=f.current)==null||x.resume():(w=f.current)==null||w.pause())},[C,s]),m.useEffect(()=>{var g;C&&i&&((g=f.current)==null||g.setFlowSpeed(i))},[C,i]),m.useEffect(()=>{var g;C&&((g=f.current)==null||g.setStaticMode(o??!1))},[C,o]),m.useEffect(()=>{var g;C&&r&&((g=f.current)==null||g.setRenderScale(r??.5))},[C,r]),m.useEffect(()=>{var g;C&&a&&((g=f.current)==null||g.setLowFreqVolume(a??1))},[C,a]),m.useEffect(()=>{var g;C&&l!==void 0&&((g=f.current)==null||g.setHasLyric(l??!0))},[C,l]),m.useEffect(()=>{var g;if(f.current){const x=f.current.getElement();x.style.width="100%",x.style.height="100%",(g=p.current)==null||g.appendChild(x)}},[f.current]),m.useImperativeHandle(d,()=>({wrapperEl:p.current,bgRender:f.current}),[p.current,f.current]),y.jsx("div",{style:{display:"contents",...u},...h,ref:p})}),zc=m.forwardRef(({disabled:t,playing:e,alignAnchor:n,alignPosition:s,enableSpring:i,enableBlur:r,enableScale:o,hidePassedLines:a,lyricLines:l,currentTime:c,isSeeking:u,wordFadeWidth:h,linePosXSpringParams:d,linePosYSpringParams:f,lineScaleSpringParams:p,bottomLine:v,onLyricLineClick:C,onLyricLineContextMenu:g,...x},w)=>{var b,T;const A=m.useRef(),E=m.useRef(null),M=m.useRef(c);return m.useEffect(()=>(A.current=new ve.LyricPlayer,()=>{var V;(V=A.current)==null||V.dispose()}),[]),m.useEffect(()=>{if(!t){let V=!1,R=-1;const F=q=>{var dt;V||(R===-1&&(R=q),(dt=A.current)==null||dt.update(q-R),R=q,requestAnimationFrame(F))};return requestAnimationFrame(F),()=>{V=!0}}},[t]),m.useEffect(()=>{var V,R,F;e!==void 0?e?(V=A.current)==null||V.resume():(R=A.current)==null||R.pause():(F=A.current)==null||F.resume()},[e]),m.useEffect(()=>{var V;A.current&&((V=E.current)==null||V.appendChild(A.current.getElement()))},[]),m.useEffect(()=>{var V;n!==void 0&&((V=A.current)==null||V.setAlignAnchor(n))},[n]),m.useEffect(()=>{var V;a!==void 0&&((V=A.current)==null||V.setHidePassedLines(a))},[a]),m.useEffect(()=>{var V;s!==void 0&&((V=A.current)==null||V.setAlignPosition(s))},[s]),m.useEffect(()=>{var V,R;i!==void 0?(V=A.current)==null||V.setEnableSpring(i):(R=A.current)==null||R.setEnableSpring(!0)},[i]),m.useEffect(()=>{var V,R;o!==void 0?(V=A.current)==null||V.setEnableScale(o):(R=A.current)==null||R.setEnableScale(!0)},[o]),m.useEffect(()=>{var V;(V=A.current)==null||V.setEnableBlur(r??!0)},[r]),m.useEffect(()=>{var V,R;c!==void 0?((V=A.current)==null||V.setCurrentTime(c),M.current=c):(R=A.current)==null||R.setCurrentTime(0)},[c]),m.useEffect(()=>{var V,R,F,q;l!==void 0?((V=A.current)==null||V.setLyricLines(l,M.current),(R=A.current)==null||R.update()):((F=A.current)==null||F.setLyricLines([]),(q=A.current)==null||q.update())},[l]),m.useEffect(()=>{var V;(V=A.current)==null||V.setIsSeeking(!!u)},[u]),m.useEffect(()=>{var V;(V=A.current)==null||V.setWordFadeWidth(h)},[h]),m.useEffect(()=>{var V;d!==void 0&&((V=A.current)==null||V.setLinePosXSpringParams(d))},[d]),m.useEffect(()=>{var V;f!==void 0&&((V=A.current)==null||V.setLinePosYSpringParams(f))},[f]),m.useEffect(()=>{var V;p!==void 0&&((V=A.current)==null||V.setLineScaleSpringParams(p))},[p]),m.useEffect(()=>{var V;if(C){const R=F=>C(F);return(V=A.current)==null||V.addEventListener("line-click",R),()=>{var F;return(F=A.current)==null?void 0:F.removeEventListener("line-click",R)}}},[C]),m.useEffect(()=>{var V;if(g){const R=F=>g(F);return(V=A.current)==null||V.addEventListener("line-contextmenu",R),()=>{var F;return(F=A.current)==null?void 0:F.removeEventListener("line-contextmenu",R)}}},[g]),m.useImperativeHandle(w,()=>({wrapperEl:E.current,lyricPlayer:A.current}),[]),y.jsxs(y.Fragment,{children:[y.jsx("div",{...x,ref:E}),(b=A.current)!=null&&b.getBottomLineElement()&&v?ha.createPortal(v,(T=A.current)==null?void 0:T.getBottomLineElement()):null]})}),Ar=-1,Ie=0,Ae=1,Se=2,ts=3,es=4,ns=5,ss=6,Sr=7,Tr=8,Ai=typeof self=="object"?self:globalThis,Uc=(t,e)=>{const n=(i,r)=>(t.set(r,i),i),s=i=>{if(t.has(i))return t.get(i);const[r,o]=e[i];switch(r){case Ie:case Ar:return n(o,i);case Ae:{const a=n([],i);for(const l of o)a.push(s(l));return a}case Se:{const a=n({},i);for(const[l,c]of o)a[s(l)]=s(c);return a}case ts:return n(new Date(o),i);case es:{const{source:a,flags:l}=o;return n(new RegExp(a,l),i)}case ns:{const a=n(new Map,i);for(const[l,c]of o)a.set(s(l),s(c));return a}case ss:{const a=n(new Set,i);for(const l of o)a.add(s(l));return a}case Sr:{const{name:a,message:l}=o;return n(new Ai[a](l),i)}case Tr:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i)}return n(new Ai[r](o),i)};return s},Si=t=>Uc(new Map,t)(0),St="",{toString:qc}={},{keys:Gc}=Object,Nt=t=>{const e=typeof t;if(e!=="object"||!t)return[Ie,e];const n=qc.call(t).slice(8,-1);switch(n){case"Array":return[Ae,St];case"Object":return[Se,St];case"Date":return[ts,St];case"RegExp":return[es,St];case"Map":return[ns,St];case"Set":return[ss,St]}return n.includes("Array")?[Ae,n]:n.includes("Error")?[Sr,n]:[Se,n]},fe=([t,e])=>t===Ie&&(e==="function"||e==="symbol"),Kc=(t,e,n,s)=>{const i=(o,a)=>{const l=s.push(o)-1;return n.set(a,l),l},r=o=>{if(n.has(o))return n.get(o);let[a,l]=Nt(o);switch(a){case Ie:{let u=o;switch(l){case"bigint":a=Tr,u=o.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+l);u=null;break;case"undefined":return i([Ar],o)}return i([a,u],o)}case Ae:{if(l)return i([l,[...o]],o);const u=[],h=i([a,u],o);for(const d of o)u.push(r(d));return h}case Se:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(e&&"toJSON"in o)return r(o.toJSON());const u=[],h=i([a,u],o);for(const d of Gc(o))(t||!fe(Nt(o[d])))&&u.push([r(d),r(o[d])]);return h}case ts:return i([a,o.toISOString()],o);case es:{const{source:u,flags:h}=o;return i([a,{source:u,flags:h}],o)}case ns:{const u=[],h=i([a,u],o);for(const[d,f]of o)(t||!(fe(Nt(d))||fe(Nt(f))))&&u.push([r(d),r(f)]);return h}case ss:{const u=[],h=i([a,u],o);for(const d of o)(t||!fe(Nt(d)))&&u.push(r(d));return h}}const{message:c}=o;return i([a,{name:l,message:c}],o)};return r},Ti=(t,{json:e,lossy:n}={})=>{const s=[];return Kc(!(e||n),!!e,new Map,s)(t),s},Yc=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?Si(Ti(t,e)):structuredClone(t):(t,e)=>Si(Ti(t,e)),Xc="pi2Tua_background",Qc={background:Xc},Jc="gyvQzW_bottomControls",t4="gyvQzW_controls",e4="gyvQzW_cover",n4="gyvQzW_hideLyric",s4="gyvQzW_horizontalLayout",i4="gyvQzW_lyric",o4="gyvQzW_thumb",wt={bottomControls:Jc,"buttom-controls":"gyvQzW_buttom-controls",controls:t4,cover:e4,"drag-area":"gyvQzW_drag-area",hideLyric:n4,horizontalLayout:s4,"info-side":"gyvQzW_info-side",lyric:i4,"music-info":"gyvQzW_music-info","player-side":"gyvQzW_player-side","side-controls":"gyvQzW_side-controls",thumb:o4},Mr=({thumbSlot:t,coverSlot:e,controlsSlot:n,lyricSlot:s,bottomControls:i,hideLyric:r,className:o,asChild:a,...l})=>y.jsxs("div",{className:z(o,!a&&wt.horizontalLayout,!a&&r&&wt.hideLyric),...l,children:[y.jsx(nt.div,{layout:!0,layoutId:"amll-player-thumb",className:wt.thumb,children:t}),y.jsx(nt.div,{layout:!0,layoutId:"amll-player-cover",className:wt.cover,children:e}),y.jsx(nt.div,{layout:!0,layoutId:"amll-player-controls",className:wt.controls,children:n}),y.jsx("div",{className:wt.lyric,children:s}),y.jsx("div",{className:wt.bottomControls,children:i})]}),r4="Ciw_ka_background",a4="Ciw_ka_bigControls",l4="Ciw_ka_control",c4="Ciw_ka_controls",u4="Ciw_ka_cover",h4="Ciw_ka_coverFrame",d4="Ciw_ka_hideLyric",f4="Ciw_ka_lyric",m4="Ciw_ka_lyricLayout",p4="Ciw_ka_noLyricLayout",C4="Ciw_ka_phonyBigCover",g4="Ciw_ka_phonySmallCover",y4="Ciw_ka_smallControls",v4="Ciw_ka_thumb",w4="Ciw_ka_verticalLayout",Q={background:r4,bigControls:a4,"bottom-controls":"Ciw_ka_bottom-controls",control:l4,controls:c4,cover:u4,"cover-side":"Ciw_ka_cover-side","cover-view":"Ciw_ka_cover-view",coverFrame:h4,"drag-area":"Ciw_ka_drag-area",hideLyric:d4,"info-side":"Ciw_ka_info-side",lyric:f4,"lyric-view":"Ciw_ka_lyric-view",lyricLayout:m4,"main-view":"Ciw_ka_main-view",noLyricLayout:p4,phonyBigCover:C4,phonySmallCover:g4,smallControls:y4,thumb:v4,verticalLayout:w4},Rr=({thumbSlot:t,coverSlot:e,smallControlsSlot:n,bigControlsSlot:s,lyricSlot:i,hideLyric:r,asChild:o,className:a,...l})=>{const c=m.useRef(null),u=m.useRef(null),h=m.useRef(null),d=m.useRef(null),f=m.useRef(r??!1),[p,v]=m.useState(void 0),C=m.useCallback((g=f.current)=>{if(!c.current)return;let x=c.current;const w=g?u.current:h.current;if(!w||!x)return;const b=Math.min(w.clientWidth,w.clientHeight);for(;getComputedStyle(x).display==="contents";)x=x.parentElement;const T=x.getBoundingClientRect(),A=w.getBoundingClientRect(),E=A.x-T.x+(A.width-b)/2,M=A.y-T.y+(A.height-b)/2;return{width:b,height:b,left:E,top:M}},[]);return m.useLayoutEffect(()=>{const g=u.current,x=h.current;if(!g||!x)return;const w=new ResizeObserver(()=>{v(C(f.current))});w.observe(g),w.observe(x);const b=C(f.current);return v(b),()=>{w.disconnect()}},[C]),m.useLayoutEffect(()=>{f.current=r??!1,v(C(f.current))},[r,C]),y.jsxs("div",{className:z(a,!o&&Q.verticalLayout,!o&&r&&Q.hideLyric),ref:c,...l,children:[y.jsx("div",{className:Q.thumb,children:t}),y.jsxs("div",{className:Q.lyricLayout,children:[y.jsx("div",{className:Q.phonySmallCover,ref:h}),y.jsx("div",{className:Q.smallControls,children:n}),y.jsx("div",{className:Q.lyric,children:i})]}),y.jsxs("div",{className:Q.noLyricLayout,children:[y.jsx("div",{className:Q.phonyBigCover,ref:u}),y.jsx("div",{className:Q.bigControls,children:s})]}),y.jsx(nt.div,{className:Q.coverFrame,animate:p,initial:!1,transition:{type:"spring",stiffness:200,damping:30},ref:d,children:e})]})},Er=m.forwardRef(({thumbSlot:t,controlsSlot:e,horizontalBottomControls:n,smallControlsSlot:s,bigControlsSlot:i,coverSlot:r,lyricSlot:o,backgroundSlot:a,hideLyric:l,onLayoutChange:c,...u},h)=>{const[d,f]=m.useState(!1),p=m.useRef(null);return m.useImperativeHandle(h,()=>p.current),m.useLayoutEffect(()=>{const v=p.current;if(!v)return;f(v.clientWidth<v.clientHeight);const C=new ResizeObserver(()=>{const g=v.getBoundingClientRect();f(g.width<g.height)});return C.observe(v),()=>C.disconnect()},[]),m.useLayoutEffect(()=>{c==null||c(d)},[d,c]),y.jsxs("div",{ref:p,...u,children:[y.jsx("div",{className:Qc.background,children:a}),d?y.jsx(Rr,{thumbSlot:t,smallControlsSlot:s,bigControlsSlot:i,coverSlot:r,lyricSlot:o,hideLyric:l}):y.jsx(Mr,{thumbSlot:t,controlsSlot:e,coverSlot:r,lyricSlot:o,bottomControls:n,hideLyric:l})]})}),X=t=>({}),Dr=P.atom(X()),Fr=P.atom(X()),Br=P.atom(X()),x4=P.atom(X()),kr=P.atom(X()),jr=P.atom(X()),Hr=P.atom(X()),Ir=P.atom(X()),Or=P.atom(X()),$r=P.atom(X()),b4=P.atom(X()),V4=P.atom(X()),P4=(t,e)=>L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:40,height:40,viewBox:"0 0 64 64",fill:"currentColor",ref:e,...t},L.createElement("path",{d:"M36.6465 43.4883C35.8721 43.4883 35.2754 43.1836 34.5518 42.498L29.4102 37.6738C29.334 37.6104 29.2578 37.585 29.1562 37.585H25.627C23.5322 37.585 22.3896 36.4043 22.3896 34.208V29.5107C22.3896 27.3145 23.5322 26.1211 25.627 26.1211H29.1689C29.2578 26.1211 29.3467 26.083 29.4102 26.0195L34.5518 21.2334C35.3262 20.4971 35.8975 20.2051 36.6211 20.2051C37.7764 20.2051 38.627 21.1064 38.627 22.2363V41.4951C38.627 42.625 37.7764 43.4883 36.6465 43.4883Z",className:"speaker-bounce-1"})),L4=m.forwardRef(P4),A4=(t,e)=>L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:40,height:40,viewBox:"0 0 64 64",fill:"currentColor",ref:e,...t},L.createElement("path",{d:"M27.2646 43.4883C26.5029 43.4883 25.9062 43.1836 25.1826 42.498L20.0283 37.6738C19.9648 37.6104 19.876 37.585 19.7871 37.585H16.2578C14.1631 37.585 13.0205 36.4043 13.0205 34.208V29.5107C13.0205 27.3145 14.1631 26.1211 16.2578 26.1211H19.7871C19.8887 26.1211 19.9648 26.083 20.041 26.0195L25.1826 21.2334C25.957 20.4971 26.5156 20.2051 27.252 20.2051C28.4072 20.2051 29.2578 21.1064 29.2578 22.2363V41.4951C29.2578 42.625 28.4072 43.4883 27.2646 43.4883Z",className:"speaker-bounce-1"}),L.createElement("path",{d:"M33.752 37.8645C32.9649 37.3694 32.7998 36.4299 33.4346 35.3762C34.0694 34.3986 34.4375 33.1418 34.4375 31.8342C34.4375 30.5139 34.082 29.257 33.4346 28.2922C32.7871 27.2512 32.9649 26.299 33.752 25.8039C34.4756 25.3469 35.377 25.5246 35.8467 26.1721C36.9385 27.6955 37.586 29.7141 37.586 31.8342C37.586 33.9543 36.9385 35.9729 35.8467 37.4836C35.377 38.1438 34.4756 38.3088 33.752 37.8645Z",className:"speaker-bounce-2"}),L.createElement("path",{d:"M39.4775 41.3937C38.6523 40.9113 38.5508 39.9084 39.1093 39.007C40.4043 37.0011 41.1533 34.4748 41.1533 31.8342C41.1533 29.1935 40.417 26.6545 39.1093 24.6613C38.5508 23.7599 38.6523 22.757 39.4775 22.2619C40.2265 21.8302 41.1406 22.008 41.623 22.7443C43.3369 25.2453 44.3017 28.4826 44.3017 31.8342C44.3017 35.1857 43.3242 38.3976 41.623 40.924C41.1406 41.6603 40.2265 41.8381 39.4775 41.3937Z",className:"speaker-bounce-3"}),L.createElement("path",{d:"M45.1778 44.9611C44.378 44.4787 44.251 43.4884 44.7969 42.5998C46.7012 39.5656 47.8565 35.8712 47.8565 31.8595C47.8565 27.8351 46.7012 24.1408 44.7969 21.1066C44.251 20.2179 44.378 19.2277 45.1778 18.7453C45.9395 18.2882 46.8916 18.5041 47.374 19.2912C49.6211 22.8585 50.9922 27.1623 50.9922 31.8595C50.9922 36.5441 49.6465 40.8605 47.374 44.4279C46.8916 45.2023 45.9395 45.4181 45.1778 44.9611Z",className:"speaker-bounce-4"})),S4=m.forwardRef(A4),T4="OosG1W_speakerAnimate",M4="OosG1W_volumeControl",_t={"speaker-bounce-part1":"OosG1W_speaker-bounce-part1","speaker-bounce-part2":"OosG1W_speaker-bounce-part2","speaker-bounce-part3":"OosG1W_speaker-bounce-part3",speakerAnimate:T4,volumeControl:M4},Nr=t=>{const e=m.useRef(t.value),n=m.useRef(null),s=m.useRef(null);return m.useEffect(()=>{e.current!==t.value&&(e.current=t.value,t.value<=t.min&&n.current?(n.current.classList.remove(_t.speakerAnimate),requestAnimationFrame(()=>{var i,r;(r=(i=n.current)==null?void 0:i.classList)==null||r.add(_t.speakerAnimate)})):t.value>=t.max&&s.current&&(s.current.classList.remove(_t.speakerAnimate),requestAnimationFrame(()=>{var i,r;(r=(i=s.current)==null?void 0:i.classList)==null||r.add(_t.speakerAnimate)})))},[t.value,t.min,t.max]),y.jsx(Jn,{className:_t.volumeControl,beforeIcon:y.jsx(L4,{ref:n,color:"#FFFFFF"}),afterIcon:y.jsx(S4,{ref:s,color:"#FFFFFF"}),...t})},R4="RafNea_autoLyricLayout",E4="RafNea_bigControls",D4="RafNea_bigMusicInfo",F4="RafNea_bigVolumeControl",B4="RafNea_controls",k4="RafNea_hideLyric",j4="RafNea_horizontalControls",H4="RafNea_progressBarLabels",I4="RafNea_qualityTag",O4="RafNea_smallMusicInfo",$4="RafNea_songMediaButton",N4="RafNea_songMediaPlayButton",Z={autoLyricLayout:R4,bigControls:E4,bigMusicInfo:D4,bigVolumeControl:F4,controls:B4,hideLyric:k4,horizontalControls:j4,progressBarLabels:H4,qualityTag:I4,smallMusicInfo:O4,songMediaButton:$4,songMediaPlayButton:N4},_r=j("amll-react-full.enableLyricLineBlurEffectAtom",!0),Wr=j("amll-react-full.enableLyricLineScaleEffectAtom",!0),Zr=j("amll-react-full.enableLyricLineSpringAnimationAtom",!0),zr=j("amll-react-full.enableLyricTranslationLineAtom",!0),Ur=j("amll-react-full.enableLyricRomanLineAtom",!0),qr=j("amll-react-full.enableLyricSwapTransRomanLineAtom",!1),Gr=j("amll-react-full.lyricWordFadeWidth",.5),Kr=j("amll-react-full.lyricFontFamily",""),Yr=j("amll-react-full.lyricFontWeight",0),Xr=j("amll-react-full.lyricLetterSpacing","normal");var Te=(t=>(t.Controls="controls",t.FFT="fft",t.None="none",t))(Te||{});const Qr=j("amll-react-full.playerControlsType","controls"),Jr=j("amll-react-full.showMusicName",!0),ta=j("amll-react-full.showMusicArtists",!0),ea=j("amll-react-full.showMusicAlbum",!1),na=j("amll-react-full.showVolumeControl",!0),sa=j("amll-react-full.showBottomControl",!0),_4=j("amll-react-full.globalLyricTimelineOffsetAtom",0),ia=P.atom({renderer:ve.MeshGradientRenderer}),oa=j("amll-react-full.lyricBackgroundFPSAtom",60),ra=j("amll-react-full.lyricBackgroundRenderScaleAtom",1),aa=j("amll-react-full.lyricBackgroundStaticModeAtom",!1);function vn(t){const e=t<0,n=Math.abs(t|0),s=n%60,i=Math.floor((n-s)/60),r="0".repeat(2-s.toString().length)+s;return`${e?"-":""}${i}:${r}`}const W4=(t,e)=>L.createElement("svg",{width:64,height:64,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},L.createElement("path",{d:"M11.8633 31.8984C11.8633 29.138 12.3841 26.5469 13.4258 24.125C14.4674 21.6901 15.9128 19.5482 17.7617 17.6992C19.6107 15.8372 21.7526 14.3854 24.1875 13.3438C26.6224 12.2891 29.2266 11.7617 32 11.7617C34.7734 11.7617 37.3776 12.2891 39.8125 13.3438C42.2474 14.3854 44.3893 15.8372 46.2383 17.6992C48.0872 19.5482 49.5326 21.6901 50.5742 24.125C51.6159 26.5469 52.1367 29.138 52.1367 31.8984C52.1367 34.6719 51.6029 37.2826 50.5352 39.7305C49.4674 42.1784 48.0156 44.3073 46.1797 46.1172C46.0365 46.2604 45.8802 46.332 45.7109 46.332C45.5547 46.332 45.4049 46.2539 45.2617 46.0977L44.3438 45.0625C44.0964 44.763 44.1094 44.4635 44.3828 44.1641C45.9453 42.6016 47.1823 40.7656 48.0938 38.6562C49.0182 36.5339 49.4805 34.2812 49.4805 31.8984C49.4805 29.5026 49.0247 27.2565 48.1133 25.1602C47.2018 23.0508 45.9388 21.1953 44.3242 19.5938C42.7227 17.9792 40.8672 16.7161 38.7578 15.8047C36.6484 14.8932 34.3958 14.4375 32 14.4375C29.6042 14.4375 27.3516 14.8932 25.2422 15.8047C23.1328 16.7161 21.2708 17.9792 19.6562 19.5938C18.0547 21.1953 16.7982 23.0508 15.8867 25.1602C14.9753 27.2565 14.5195 29.5026 14.5195 31.8984C14.5195 34.2812 14.9753 36.5273 15.8867 38.6367C16.7982 40.7461 18.0417 42.5885 19.6172 44.1641C19.8776 44.4635 19.8841 44.7565 19.6367 45.043L18.7188 46.0781C18.5885 46.2344 18.4323 46.3125 18.25 46.3125C18.0807 46.3125 17.9245 46.2409 17.7812 46.0977C15.9583 44.2878 14.513 42.1654 13.4453 39.7305C12.3906 37.2826 11.8633 34.6719 11.8633 31.8984ZM17.5469 31.8984C17.5469 29.9193 17.918 28.0573 18.6602 26.3125C19.4154 24.5677 20.457 23.0312 21.7852 21.7031C23.1133 20.375 24.6497 19.3333 26.3945 18.5781C28.1393 17.8229 30.0078 17.4453 32 17.4453C33.9792 17.4453 35.8411 17.8229 37.5859 18.5781C39.3438 19.3333 40.8867 20.375 42.2148 21.7031C43.543 23.0312 44.5781 24.5677 45.3203 26.3125C46.0755 28.0573 46.4531 29.9193 46.4531 31.8984C46.4531 33.8255 46.0885 35.6419 45.3594 37.3477C44.6432 39.0404 43.6667 40.5312 42.4297 41.8203C42.2865 41.9766 42.1237 42.0547 41.9414 42.0547C41.7721 42.0547 41.6224 41.9766 41.4922 41.8203L40.5547 40.7852C40.3073 40.5117 40.3073 40.2122 40.5547 39.8867C41.5573 38.8581 42.3451 37.6602 42.918 36.293C43.4909 34.9128 43.7773 33.4479 43.7773 31.8984C43.7773 30.2839 43.4714 28.7669 42.8594 27.3477C42.2474 25.9284 41.3945 24.6784 40.3008 23.5977C39.2201 22.5169 37.9701 21.6706 36.5508 21.0586C35.1315 20.4336 33.6146 20.1211 32 20.1211C30.3724 20.1211 28.849 20.4336 27.4297 21.0586C26.0104 21.6706 24.7604 22.5169 23.6797 23.5977C22.599 24.6784 21.7526 25.9284 21.1406 27.3477C20.5286 28.7669 20.2227 30.2839 20.2227 31.8984C20.2227 33.4349 20.5026 34.8932 21.0625 36.2734C21.6354 37.6536 22.4232 38.8581 23.4258 39.8867C23.6732 40.2122 23.6732 40.5117 23.4258 40.7852L22.5078 41.8008C22.3776 41.957 22.2214 42.0417 22.0391 42.0547C21.8568 42.0547 21.694 41.9701 21.5508 41.8008C20.3138 40.5117 19.3372 39.0208 18.6211 37.3281C17.9049 35.6224 17.5469 33.8125 17.5469 31.8984ZM23.2305 31.8984C23.2305 30.2969 23.6276 28.832 24.4219 27.5039C25.2161 26.1758 26.2708 25.1146 27.5859 24.3203C28.9141 23.526 30.3854 23.1289 32 23.1289C33.6146 23.1289 35.0794 23.526 36.3945 24.3203C37.7227 25.1146 38.7839 26.1758 39.5781 27.5039C40.3724 28.832 40.7695 30.2969 40.7695 31.8984C40.7695 32.9661 40.5807 33.9753 40.2031 34.9258C39.8255 35.8633 39.3047 36.7031 38.6406 37.4453C38.5104 37.6276 38.3542 37.7188 38.1719 37.7188C38.0026 37.7188 37.8398 37.6406 37.6836 37.4844L36.7266 36.4688C36.4792 36.2214 36.4596 35.9414 36.668 35.6289C37.1237 35.1341 37.4753 34.5677 37.7227 33.9297C37.9701 33.2917 38.0938 32.6146 38.0938 31.8984C38.0938 30.7917 37.8138 29.776 37.2539 28.8516C36.707 27.9271 35.9714 27.1914 35.0469 26.6445C34.1224 26.0846 33.1068 25.8047 32 25.8047C30.8932 25.8047 29.8776 26.0846 28.9531 26.6445C28.0286 27.1914 27.2865 27.9271 26.7266 28.8516C26.1797 29.776 25.9062 30.7917 25.9062 31.8984C25.9062 32.6016 26.0299 33.2721 26.2773 33.9102C26.5247 34.5482 26.8698 35.1146 27.3125 35.6094C27.5078 35.9219 27.4883 36.2018 27.2539 36.4492L26.2969 37.4648C26.1406 37.6211 25.9714 37.6992 25.7891 37.6992C25.6198 37.6992 25.4701 37.6146 25.3398 37.4453C24.6758 36.7031 24.1549 35.8568 23.7773 34.9062C23.4128 33.9557 23.2305 32.9531 23.2305 31.8984ZM19.8906 51.3711C19.4089 51.3711 19.0898 51.1758 18.9336 50.7852C18.7773 50.3945 18.8555 50.0299 19.168 49.6914L31.1016 36.1758C31.3359 35.9023 31.6289 35.7656 31.9805 35.7656C32.332 35.7656 32.625 35.9023 32.8594 36.1758L44.8125 49.6914C45.112 50.0299 45.1836 50.3945 45.0273 50.7852C44.8711 51.1758 44.5586 51.3711 44.0898 51.3711H19.8906Z",fill:"currentColor"})),Mi=m.forwardRef(W4),Z4="BYc2XG_toggleIconButton",z4={toggleIconButton:Z4},U4=(t,e)=>L.createElement("svg",{width:64,height:64,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},L.createElement("path",{d:"M22.8594 53.9102C22 53.9102 21.3229 53.6302 20.8281 53.0703C20.3464 52.5104 20.1055 51.7617 20.1055 50.8242V46.1953H18.9727C17.1237 46.1953 15.5156 45.8242 14.1484 45.082C12.7812 44.3398 11.7201 43.2721 10.9648 41.8789C10.2227 40.4857 9.85156 38.8125 9.85156 36.8594V21.5664C9.85156 19.6133 10.2161 17.9401 10.9453 16.5469C11.6875 15.1536 12.7552 14.0859 14.1484 13.3438C15.5417 12.5885 17.2214 12.2109 19.1875 12.2109H44.793C46.7721 12.2109 48.4518 12.5885 49.832 13.3438C51.2253 14.0859 52.2865 15.1536 53.0156 16.5469C53.7578 17.9401 54.1289 19.6133 54.1289 21.5664V36.8594C54.1289 38.8125 53.7578 40.4857 53.0156 41.8789C52.2865 43.2721 51.2253 44.3398 49.832 45.082C48.4518 45.8242 46.7721 46.1953 44.793 46.1953H33.0742L26.4336 52.0547C25.7044 52.6927 25.0729 53.1615 24.5391 53.4609C24.0182 53.7604 23.4583 53.9102 22.8594 53.9102ZM23.9141 49.0469L30.0859 42.9727C30.5156 42.5299 30.9193 42.237 31.2969 42.0938C31.6745 41.9375 32.1758 41.8594 32.8008 41.8594H44.5977C46.3424 41.8594 47.6445 41.4232 48.5039 40.5508C49.3633 39.6784 49.793 38.3828 49.793 36.6641V21.7422C49.793 20.0365 49.3633 18.7474 48.5039 17.875C47.6445 17.0026 46.3424 16.5664 44.5977 16.5664H19.3828C17.625 16.5664 16.3164 17.0026 15.457 17.875C14.6107 18.7474 14.1875 20.0365 14.1875 21.7422V36.6641C14.1875 38.3828 14.6107 39.6784 15.457 40.5508C16.3164 41.4232 17.625 41.8594 19.3828 41.8594H22.2344C22.8073 41.8594 23.2305 41.9896 23.5039 42.25C23.7773 42.4974 23.9141 42.9271 23.9141 43.5391V49.0469ZM22.4492 27.1914C22.4492 25.9935 22.8529 25.0104 23.6602 24.2422C24.4674 23.474 25.4701 23.0898 26.668 23.0898C28.0221 23.0898 29.1029 23.5716 29.9102 24.5352C30.7305 25.4857 31.1406 26.6576 31.1406 28.0508C31.1406 29.2096 30.9323 30.2383 30.5156 31.1367C30.112 32.0221 29.5911 32.7708 28.9531 33.3828C28.3281 33.9948 27.6771 34.457 27 34.7695C26.3229 35.082 25.7174 35.2383 25.1836 35.2383C24.8841 35.2383 24.6367 35.1536 24.4414 34.9844C24.2461 34.8151 24.1484 34.5938 24.1484 34.3203C24.1484 34.0859 24.2135 33.8906 24.3438 33.7344C24.487 33.5651 24.7214 33.4414 25.0469 33.3633C25.5677 33.2331 26.0625 33.0312 26.5312 32.7578C27.013 32.4714 27.4362 32.1328 27.8008 31.7422C28.1654 31.3385 28.4453 30.8828 28.6406 30.375H28.3867C28.1263 30.7005 27.7943 30.9284 27.3906 31.0586C26.987 31.1758 26.5573 31.2344 26.1016 31.2344C25.0078 31.2344 24.1224 30.8503 23.4453 30.082C22.7812 29.3008 22.4492 28.3372 22.4492 27.1914ZM33.0742 27.1914C33.0742 25.9935 33.4714 25.0104 34.2656 24.2422C35.0729 23.474 36.082 23.0898 37.293 23.0898C38.6471 23.0898 39.7279 23.5716 40.5352 24.5352C41.3555 25.4857 41.7656 26.6576 41.7656 28.0508C41.7656 29.2096 41.5573 30.2383 41.1406 31.1367C40.737 32.0221 40.2161 32.7708 39.5781 33.3828C38.9531 33.9948 38.2956 34.457 37.6055 34.7695C36.9284 35.082 36.3294 35.2383 35.8086 35.2383C35.5091 35.2383 35.2617 35.1536 35.0664 34.9844C34.8711 34.8151 34.7734 34.5938 34.7734 34.3203C34.7734 34.0859 34.8385 33.8906 34.9688 33.7344C35.112 33.5651 35.3529 33.4414 35.6914 33.3633C36.1992 33.2331 36.6875 33.0312 37.1562 32.7578C37.638 32.4714 38.0612 32.1328 38.4258 31.7422C38.7904 31.3385 39.0703 30.8828 39.2656 30.375H39.0117C38.7513 30.7005 38.4193 30.9284 38.0156 31.0586C37.612 31.1758 37.1823 31.2344 36.7266 31.2344C35.6328 31.2344 34.7474 30.8503 34.0703 30.082C33.4062 29.3008 33.0742 28.3372 33.0742 27.1914Z",fill:"currentColor"})),q4=m.forwardRef(U4),G4=(t,e)=>L.createElement("svg",{width:64,height:64,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.91256 7.67068C0 11.0858 0 15.6405 0 24.75V39.25C0 48.3595 0 52.9142 1.91256 56.3293C3.26425 58.7429 5.25707 60.7357 7.67068 62.0874C11.0858 64 15.6405 64 24.75 64H39.25C48.3595 64 52.9142 64 56.3293 62.0874C58.7429 60.7357 60.7357 58.7429 62.0874 56.3293C64 52.9142 64 48.3595 64 39.25V24.75C64 15.6405 64 11.0858 62.0874 7.67068C60.7357 5.25707 58.7429 3.26425 56.3293 1.91256C52.9142 0 48.3595 0 39.25 0H24.75C15.6405 0 11.0858 0 7.67068 1.91256C5.25707 3.26425 3.26425 5.25707 1.91256 7.67068ZM20.8281 53.0703C21.3229 53.6302 22 53.9102 22.8594 53.9102C23.4583 53.9102 24.0182 53.7604 24.5391 53.4609C25.0729 53.1615 25.7044 52.6927 26.4336 52.0547L33.0742 46.1953H44.793C46.7721 46.1953 48.4518 45.8242 49.832 45.082C51.2253 44.3398 52.2865 43.2721 53.0156 41.8789C53.7578 40.4857 54.1289 38.8125 54.1289 36.8594V21.5664C54.1289 19.6133 53.7578 17.9401 53.0156 16.5469C52.2865 15.1536 51.2253 14.0859 49.832 13.3438C48.4518 12.5885 46.7721 12.2109 44.793 12.2109H19.1875C17.2214 12.2109 15.5417 12.5885 14.1484 13.3438C12.7552 14.0859 11.6875 15.1536 10.9453 16.5469C10.2161 17.9401 9.85156 19.6133 9.85156 21.5664V36.8594C9.85156 38.8125 10.2227 40.4857 10.9648 41.8789C11.7201 43.2721 12.7812 44.3398 14.1484 45.082C15.5156 45.8242 17.1237 46.1953 18.9727 46.1953H20.1055V50.8242C20.1055 51.7617 20.3464 52.5104 20.8281 53.0703Z",fill:"currentColor"}),L.createElement("path",{d:"M22.4492 27.1914C22.4492 25.9935 22.8529 25.0104 23.6602 24.2422C24.4674 23.474 25.4701 23.0898 26.668 23.0898C28.0221 23.0898 29.1029 23.5716 29.9102 24.5352C30.7305 25.4857 31.1406 26.6576 31.1406 28.0508C31.1406 29.2096 30.9323 30.2383 30.5156 31.1367C30.112 32.0221 29.5911 32.7708 28.9531 33.3828C28.3281 33.9948 27.6771 34.457 27 34.7695C26.3229 35.082 25.7174 35.2383 25.1836 35.2383C24.8841 35.2383 24.6367 35.1536 24.4414 34.9844C24.2461 34.8151 24.1484 34.5938 24.1484 34.3203C24.1484 34.0859 24.2135 33.8906 24.3438 33.7344C24.487 33.5651 24.7214 33.4414 25.0469 33.3633C25.5677 33.2331 26.0625 33.0312 26.5312 32.7578C27.013 32.4714 27.4362 32.1328 27.8008 31.7422C28.1654 31.3385 28.4453 30.8828 28.6406 30.375H28.3867C28.1263 30.7005 27.7943 30.9284 27.3906 31.0586C26.987 31.1758 26.5573 31.2344 26.1016 31.2344C25.0078 31.2344 24.1224 30.8503 23.4453 30.082C22.7812 29.3008 22.4492 28.3372 22.4492 27.1914ZM33.0742 27.1914C33.0742 25.9935 33.4714 25.0104 34.2656 24.2422C35.0729 23.474 36.082 23.0898 37.293 23.0898C38.6471 23.0898 39.7279 23.5716 40.5352 24.5352C41.3555 25.4857 41.7656 26.6576 41.7656 28.0508C41.7656 29.2096 41.5573 30.2383 41.1406 31.1367C40.737 32.0221 40.2161 32.7708 39.5781 33.3828C38.9531 33.9948 38.2956 34.457 37.6055 34.7695C36.9284 35.082 36.3294 35.2383 35.8086 35.2383C35.5091 35.2383 35.2617 35.1536 35.0664 34.9844C34.8711 34.8151 34.7734 34.5938 34.7734 34.3203C34.7734 34.0859 34.8385 33.8906 34.9688 33.7344C35.112 33.5651 35.3529 33.4414 35.6914 33.3633C36.1992 33.2331 36.6875 33.0312 37.1562 32.7578C37.638 32.4714 38.0612 32.1328 38.4258 31.7422C38.7904 31.3385 39.0703 30.8828 39.2656 30.375H39.0117C38.7513 30.7005 38.4193 30.9284 38.0156 31.0586C37.612 31.1758 37.1823 31.2344 36.7266 31.2344C35.6328 31.2344 34.7474 30.8503 34.0703 30.082C33.4062 29.3008 33.0742 28.3372 33.0742 27.1914Z",fill:"currentColor"})),K4=m.forwardRef(G4),Y4=(t,e)=>L.createElement("svg",{width:64,height:64,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},L.createElement("path",{d:"M23.9922 21.8594C23.4062 21.8594 22.9115 21.6641 22.5078 21.2734C22.1172 20.8698 21.9219 20.375 21.9219 19.7891C21.9219 19.2161 22.1172 18.7279 22.5078 18.3242C22.9115 17.9206 23.4062 17.7188 23.9922 17.7188H50.418C50.9909 17.7188 51.4792 17.9206 51.8828 18.3242C52.2865 18.7279 52.4883 19.2161 52.4883 19.7891C52.4883 20.375 52.2865 20.8698 51.8828 21.2734C51.4792 21.6641 50.9909 21.8594 50.418 21.8594H23.9922ZM23.9922 33.9883C23.4062 33.9883 22.9115 33.7865 22.5078 33.3828C22.1172 32.9792 21.9219 32.4909 21.9219 31.918C21.9219 31.3451 22.1172 30.8633 22.5078 30.4727C22.9115 30.069 23.4062 29.8672 23.9922 29.8672H50.418C50.9909 29.8672 51.4792 30.069 51.8828 30.4727C52.2865 30.8633 52.4883 31.3451 52.4883 31.918C52.4883 32.5039 52.2865 32.9987 51.8828 33.4023C51.4792 33.793 50.9909 33.9883 50.418 33.9883H23.9922ZM23.9922 46.1172C23.4062 46.1172 22.9115 45.9219 22.5078 45.5312C22.1172 45.1276 21.9219 44.6328 21.9219 44.0469C21.9219 43.474 22.1172 42.9857 22.5078 42.582C22.9115 42.1784 23.4062 41.9766 23.9922 41.9766H50.418C50.9909 41.9766 51.4792 42.1784 51.8828 42.582C52.2865 42.9857 52.4883 43.474 52.4883 44.0469C52.4883 44.6328 52.2865 45.1276 51.8828 45.5312C51.4792 45.9219 50.9909 46.1172 50.418 46.1172H23.9922ZM14.4805 22.7383C13.6602 22.7383 12.957 22.4518 12.3711 21.8789C11.7982 21.306 11.5117 20.6094 11.5117 19.7891C11.5117 18.9688 11.7982 18.2721 12.3711 17.6992C12.957 17.1263 13.6602 16.8398 14.4805 16.8398C15.2878 16.8398 15.9844 17.1263 16.5703 17.6992C17.1562 18.2721 17.4492 18.9688 17.4492 19.7891C17.4492 20.6094 17.1562 21.306 16.5703 21.8789C15.9844 22.4518 15.2878 22.7383 14.4805 22.7383ZM14.4805 34.8867C13.6602 34.8867 12.957 34.5938 12.3711 34.0078C11.7982 33.4219 11.5117 32.7253 11.5117 31.918C11.5117 31.1107 11.7982 30.4141 12.3711 29.8281C12.957 29.2422 13.6602 28.9492 14.4805 28.9492C15.2878 28.9492 15.9844 29.2422 16.5703 29.8281C17.1562 30.4141 17.4492 31.1107 17.4492 31.918C17.4492 32.7253 17.1562 33.4219 16.5703 34.0078C15.9844 34.5938 15.2878 34.8867 14.4805 34.8867ZM14.4805 47.0156C13.6602 47.0156 12.957 46.7227 12.3711 46.1367C11.7982 45.5638 11.5117 44.8672 11.5117 44.0469C11.5117 43.2266 11.7982 42.5299 12.3711 41.957C12.957 41.3841 13.6602 41.0977 14.4805 41.0977C15.2878 41.0977 15.9844 41.3841 16.5703 41.957C17.1562 42.5299 17.4492 43.2266 17.4492 44.0469C17.4492 44.8672 17.1562 45.5638 16.5703 46.1367C15.9844 46.7227 15.2878 47.0156 14.4805 47.0156Z",fill:"currentColor"})),X4=m.forwardRef(Y4),Q4=(t,e)=>L.createElement("svg",{width:64,height:64,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.91256 7.67068C0 11.0858 0 15.6405 0 24.75V39.25C0 48.3595 0 52.9142 1.91256 56.3293C3.26425 58.7429 5.25707 60.7357 7.67068 62.0874C11.0858 64 15.6405 64 24.75 64H39.25C48.3595 64 52.9142 64 56.3293 62.0874C58.7429 60.7357 60.7357 58.7429 62.0874 56.3293C64 52.9142 64 48.3595 64 39.25V24.75C64 15.6405 64 11.0858 62.0874 7.67068C60.7357 5.25706 58.7429 3.26425 56.3293 1.91256C52.9142 0 48.3595 0 39.25 0H24.75C15.6405 0 11.0858 0 7.67068 1.91256C5.25707 3.26425 3.26425 5.25706 1.91256 7.67068ZM22.5078 21.2734C22.9115 21.6641 23.4062 21.8594 23.9922 21.8594H50.418C50.9909 21.8594 51.4792 21.6641 51.8828 21.2734C52.2865 20.8698 52.4883 20.375 52.4883 19.7891C52.4883 19.2161 52.2865 18.7279 51.8828 18.3242C51.4792 17.9206 50.9909 17.7188 50.418 17.7188H23.9922C23.4062 17.7188 22.9115 17.9206 22.5078 18.3242C22.1172 18.7279 21.9219 19.2161 21.9219 19.7891C21.9219 20.375 22.1172 20.8698 22.5078 21.2734ZM22.5078 33.3828C22.9115 33.7865 23.4062 33.9883 23.9922 33.9883H50.418C50.9909 33.9883 51.4792 33.793 51.8828 33.4023C52.2865 32.9987 52.4883 32.5039 52.4883 31.918C52.4883 31.3451 52.2865 30.8633 51.8828 30.4727C51.4792 30.069 50.9909 29.8672 50.418 29.8672H23.9922C23.4062 29.8672 22.9115 30.069 22.5078 30.4727C22.1172 30.8633 21.9219 31.3451 21.9219 31.918C21.9219 32.4909 22.1172 32.9792 22.5078 33.3828ZM22.5078 45.5312C22.9115 45.9219 23.4062 46.1172 23.9922 46.1172H50.418C50.9909 46.1172 51.4792 45.9219 51.8828 45.5312C52.2865 45.1276 52.4883 44.6328 52.4883 44.0469C52.4883 43.474 52.2865 42.9857 51.8828 42.582C51.4792 42.1784 50.9909 41.9766 50.418 41.9766H23.9922C23.4062 41.9766 22.9115 42.1784 22.5078 42.582C22.1172 42.9857 21.9219 43.474 21.9219 44.0469C21.9219 44.6328 22.1172 45.1276 22.5078 45.5312ZM12.3711 21.8789C12.957 22.4518 13.6602 22.7383 14.4805 22.7383C15.2878 22.7383 15.9844 22.4518 16.5703 21.8789C17.1562 21.306 17.4492 20.6094 17.4492 19.7891C17.4492 18.9688 17.1562 18.2721 16.5703 17.6992C15.9844 17.1263 15.2878 16.8398 14.4805 16.8398C13.6602 16.8398 12.957 17.1263 12.3711 17.6992C11.7982 18.2721 11.5117 18.9688 11.5117 19.7891C11.5117 20.6094 11.7982 21.306 12.3711 21.8789ZM12.3711 34.0078C12.957 34.5938 13.6602 34.8867 14.4805 34.8867C15.2878 34.8867 15.9844 34.5938 16.5703 34.0078C17.1562 33.4219 17.4492 32.7253 17.4492 31.918C17.4492 31.1107 17.1562 30.4141 16.5703 29.8281C15.9844 29.2422 15.2878 28.9492 14.4805 28.9492C13.6602 28.9492 12.957 29.2422 12.3711 29.8281C11.7982 30.4141 11.5117 31.1107 11.5117 31.918C11.5117 32.7253 11.7982 33.4219 12.3711 34.0078ZM12.3711 46.1367C12.957 46.7227 13.6602 47.0156 14.4805 47.0156C15.2878 47.0156 15.9844 46.7227 16.5703 46.1367C17.1562 45.5638 17.4492 44.8672 17.4492 44.0469C17.4492 43.2266 17.1562 42.5299 16.5703 41.957C15.9844 41.3841 15.2878 41.0977 14.4805 41.0977C13.6602 41.0977 12.957 41.3841 12.3711 41.957C11.7982 42.5299 11.5117 43.2266 11.5117 44.0469C11.5117 44.8672 11.7982 45.5638 12.3711 46.1367Z",fill:"currentColor"})),J4=m.forwardRef(Q4);var _=(t=>(t.Lyrics="lyrics",t.Playlist="playlist",t.Repeat="repeat",t.Shuffle="shuffle",t.Star="star",t.AirPlay="airplay",t))(_||{});const tu=(t,e)=>L.createElement("svg",{width:56,height:56,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},L.createElement("path",{d:"M13.0293 28.9805C12.4727 28.9805 12.0039 28.79 11.623 28.4092C11.2422 28.0186 11.0518 27.5498 11.0518 27.0029V25.3623C11.0518 23.7998 11.4033 22.457 12.1064 21.334C12.8096 20.2109 13.8057 19.3516 15.0947 18.7559C16.3838 18.1504 17.9219 17.8477 19.709 17.8477H30.6367V14.7422C30.6367 14.2832 30.7637 13.9268 31.0176 13.6729C31.2715 13.4092 31.623 13.2773 32.0723 13.2773C32.2871 13.2773 32.4775 13.3115 32.6436 13.3799C32.8193 13.4482 32.9805 13.541 33.127 13.6582L39.2354 18.8145C39.5869 19.0977 39.7578 19.4443 39.748 19.8545C39.748 20.2549 39.5771 20.5967 39.2354 20.8799L33.127 26.0361C32.9805 26.1533 32.8193 26.2461 32.6436 26.3145C32.4775 26.3828 32.2871 26.417 32.0723 26.417C31.623 26.417 31.2715 26.29 31.0176 26.0361C30.7637 25.7725 30.6367 25.416 30.6367 24.9668V21.6855H19.4893C18.1025 21.6855 17.0039 22.0615 16.1934 22.8135C15.3926 23.5557 14.9922 24.5713 14.9922 25.8604V27.0029C14.9922 27.5498 14.8018 28.0186 14.4209 28.4092C14.04 28.79 13.5762 28.9805 13.0293 28.9805ZM42.9707 26.959C43.5176 26.959 43.9814 27.1494 44.3623 27.5303C44.7529 27.9111 44.9482 28.3799 44.9482 28.9365V30.5771C44.9482 32.1299 44.5967 33.4727 43.8936 34.6055C43.1904 35.7285 42.1895 36.5928 40.8906 37.1982C39.6016 37.7939 38.0684 38.0918 36.291 38.0918H25.3633V41.1973C25.3633 41.6465 25.2363 41.998 24.9824 42.252C24.7285 42.5156 24.377 42.6475 23.9277 42.6475C23.7129 42.6475 23.5176 42.6133 23.3418 42.5449C23.166 42.4766 23.0098 42.3838 22.873 42.2666L16.75 37.1104C16.418 36.8271 16.252 36.4854 16.252 36.085C16.252 35.6846 16.418 35.3379 16.75 35.0449L22.873 29.8887C23.0098 29.7715 23.166 29.6787 23.3418 29.6104C23.5176 29.542 23.7129 29.5078 23.9277 29.5078C24.377 29.5078 24.7285 29.6396 24.9824 29.9033C25.2363 30.1572 25.3633 30.5137 25.3633 30.9727V34.2393H36.5107C37.8975 34.2393 38.9912 33.8682 39.792 33.126C40.6025 32.3838 41.0078 31.3682 41.0078 30.0791V28.9365C41.0078 28.3799 41.1934 27.9111 41.5645 27.5303C41.9453 27.1494 42.4141 26.959 42.9707 26.959Z",fill:"currentColor"})),eu=m.forwardRef(tu),nu=(t,e)=>L.createElement("svg",{width:56,height:56,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.65755 6.64792C0 9.6077 0 13.5551 0 21.45V34.55C0 42.4449 0 46.3923 1.65755 49.3521C2.82902 51.4439 4.55612 53.171 6.64792 54.3424C9.6077 56 13.5551 56 21.45 56H34.55C42.4449 56 46.3923 56 49.3521 54.3424C51.4439 53.171 53.171 51.4439 54.3424 49.3521C56 46.3923 56 42.4449 56 34.55V21.45C56 13.5551 56 9.6077 54.3424 6.64792C53.171 4.55612 51.4439 2.82902 49.3521 1.65755C46.3923 0 42.4449 0 34.55 0H21.45C13.5551 0 9.6077 0 6.64792 1.65755C4.55612 2.82902 2.82902 4.55612 1.65755 6.64792ZM11.623 28.4092C12.0039 28.79 12.4727 28.9805 13.0293 28.9805C13.5762 28.9805 14.04 28.79 14.4209 28.4092C14.8018 28.0186 14.9922 27.5498 14.9922 27.0029V25.8604C14.9922 24.5713 15.3926 23.5557 16.1934 22.8135C17.0039 22.0615 18.1025 21.6855 19.4893 21.6855H30.6367V24.9668C30.6367 25.416 30.7637 25.7725 31.0176 26.0361C31.2715 26.29 31.623 26.417 32.0723 26.417C32.2871 26.417 32.4775 26.3828 32.6436 26.3145C32.8193 26.2461 32.9805 26.1533 33.127 26.0361L39.2354 20.8799C39.5771 20.5967 39.748 20.2549 39.748 19.8545C39.7578 19.4443 39.5869 19.0977 39.2354 18.8145L33.127 13.6582C32.9805 13.541 32.8193 13.4482 32.6436 13.3799C32.4775 13.3115 32.2871 13.2773 32.0723 13.2773C31.623 13.2773 31.2715 13.4092 31.0176 13.6729C30.7637 13.9268 30.6367 14.2832 30.6367 14.7422V17.8477H19.709C17.9219 17.8477 16.3838 18.1504 15.0947 18.7559C13.8057 19.3516 12.8096 20.2109 12.1064 21.334C11.4033 22.457 11.0518 23.7998 11.0518 25.3623V27.0029C11.0518 27.5498 11.2422 28.0186 11.623 28.4092ZM44.3623 27.5303C43.9814 27.1494 43.5176 26.959 42.9707 26.959C42.4141 26.959 41.9453 27.1494 41.5645 27.5303C41.1934 27.9111 41.0078 28.3799 41.0078 28.9365V30.0791C41.0078 31.3682 40.6025 32.3838 39.792 33.126C38.9912 33.8682 37.8975 34.2393 36.5107 34.2393H25.3633V30.9727C25.3633 30.5137 25.2363 30.1572 24.9824 29.9033C24.7285 29.6396 24.377 29.5078 23.9277 29.5078C23.7129 29.5078 23.5176 29.542 23.3418 29.6104C23.166 29.6787 23.0098 29.7715 22.873 29.8887L16.75 35.0449C16.418 35.3379 16.252 35.6846 16.252 36.085C16.252 36.4854 16.418 36.8271 16.75 37.1104L22.873 42.2666C23.0098 42.3838 23.166 42.4766 23.3418 42.5449C23.5176 42.6133 23.7129 42.6475 23.9277 42.6475C24.377 42.6475 24.7285 42.5156 24.9824 42.252C25.2363 41.998 25.3633 41.6465 25.3633 41.1973V38.0918H36.291C38.0684 38.0918 39.6016 37.7939 40.8906 37.1982C42.1895 36.5928 43.1904 35.7285 43.8936 34.6055C44.5967 33.4727 44.9482 32.1299 44.9482 30.5771V28.9365C44.9482 28.3799 44.7529 27.9111 44.3623 27.5303Z",fill:"currentColor"})),su=m.forwardRef(nu),iu=(t,e)=>L.createElement("svg",{width:56,height:56,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},L.createElement("path",{d:"M9.55762 36.7148C9.55762 36.1777 9.74316 35.7285 10.1143 35.3672C10.4951 35.0059 10.9639 34.8252 11.5205 34.8252H14.7285C15.6562 34.8252 16.4375 34.6592 17.0723 34.3271C17.707 33.9951 18.3369 33.4434 18.9619 32.6719L27.7656 21.8613C28.8008 20.5918 29.8457 19.7275 30.9004 19.2686C31.9551 18.7998 33.2051 18.5654 34.6504 18.5654H37.3311V15.1963C37.3311 14.7471 37.458 14.3955 37.7119 14.1416C37.9658 13.8779 38.3174 13.7461 38.7666 13.7461C38.9814 13.7461 39.1719 13.7803 39.3379 13.8486C39.5137 13.917 39.6748 14.0098 39.8213 14.127L45.9297 19.2832C46.2715 19.5664 46.4424 19.9131 46.4424 20.3232C46.4424 20.7236 46.2715 21.0654 45.9297 21.3486L39.8213 26.5049C39.6748 26.6221 39.5137 26.7148 39.3379 26.7832C39.1719 26.8516 38.9814 26.8857 38.7666 26.8857C38.3174 26.8857 37.9658 26.7588 37.7119 26.5049C37.458 26.2412 37.3311 25.8848 37.3311 25.4355V22.3447H34.4746C33.8496 22.3447 33.3076 22.4131 32.8486 22.5498C32.3896 22.6768 31.96 22.8965 31.5596 23.209C31.1689 23.5215 30.7588 23.9414 30.3291 24.4688L21.1006 35.748C20.2607 36.7539 19.3916 37.4814 18.4932 37.9307C17.5947 38.3701 16.4766 38.5898 15.1387 38.5898H11.5205C10.9639 38.5898 10.4951 38.4092 10.1143 38.0479C9.74316 37.6865 9.55762 37.2422 9.55762 36.7148ZM9.55762 20.4551C9.55762 19.918 9.74316 19.4688 10.1143 19.1074C10.4951 18.7461 10.9639 18.5654 11.5205 18.5654H14.8896C16.2178 18.5654 17.375 18.79 18.3613 19.2393C19.3477 19.6787 20.2607 20.4062 21.1006 21.4219L30.2998 32.6719C30.9248 33.4336 31.5742 33.9854 32.248 34.3271C32.9219 34.6592 33.7373 34.8252 34.6943 34.8252H37.3311V31.7344C37.3311 31.2852 37.458 30.9287 37.7119 30.665C37.9658 30.4014 38.3174 30.2695 38.7666 30.2695C38.9814 30.2695 39.1719 30.3086 39.3379 30.3867C39.5137 30.4551 39.6748 30.5479 39.8213 30.665L45.9297 35.8066C46.2715 36.0996 46.4424 36.4463 46.4424 36.8467C46.4424 37.2471 46.2715 37.5938 45.9297 37.8867L39.8213 43.0283C39.6748 43.1455 39.5137 43.2383 39.3379 43.3066C39.1719 43.375 38.9814 43.4092 38.7666 43.4092C38.3174 43.4092 37.9658 43.2822 37.7119 43.0283C37.458 42.7744 37.3311 42.418 37.3311 41.959V38.5898H34.6211C33.2832 38.5898 32.0723 38.3652 30.9883 37.916C29.9141 37.457 28.9229 36.6758 28.0146 35.5723L18.9619 24.498C18.3369 23.7266 17.6631 23.1748 16.9404 22.8428C16.2275 22.5107 15.4023 22.3447 14.4648 22.3447H11.5205C10.9639 22.3447 10.4951 22.1641 10.1143 21.8027C9.74316 21.4316 9.55762 20.9824 9.55762 20.4551Z",fill:"currentColor"})),ou=m.forwardRef(iu),ru=(t,e)=>L.createElement("svg",{width:56,height:56,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},L.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.65755 6.64792C0 9.6077 0 13.5551 0 21.45V34.55C0 42.4449 0 46.3923 1.65755 49.3521C2.82902 51.4439 4.55612 53.171 6.64792 54.3424C9.6077 56 13.5551 56 21.45 56H34.55C42.4449 56 46.3923 56 49.3521 54.3424C51.4439 53.171 53.171 51.4439 54.3424 49.3521C56 46.3923 56 42.4449 56 34.55V21.45C56 13.5551 56 9.6077 54.3424 6.64792C53.171 4.55612 51.4439 2.82902 49.3521 1.65755C46.3923 0 42.4449 0 34.55 0H21.45C13.5551 0 9.6077 0 6.64792 1.65755C4.55612 2.82902 2.82902 4.55612 1.65755 6.64792ZM10.1143 35.3672C9.74316 35.7285 9.55762 36.1777 9.55762 36.7148C9.55762 37.2422 9.74316 37.6865 10.1143 38.0479C10.4951 38.4092 10.9639 38.5898 11.5205 38.5898H15.1387C16.4766 38.5898 17.5947 38.3701 18.4932 37.9307C19.3916 37.4814 20.2607 36.7539 21.1006 35.748L24.631 31.4331L28.0146 35.5723C28.9229 36.6758 29.9141 37.457 30.9883 37.916C32.0723 38.3652 33.2832 38.5898 34.6211 38.5898H37.3311V41.959C37.3311 42.418 37.458 42.7744 37.7119 43.0283C37.9658 43.2822 38.3174 43.4092 38.7666 43.4092C38.9814 43.4092 39.1719 43.375 39.3379 43.3066C39.5137 43.2383 39.6748 43.1455 39.8213 43.0283L45.9297 37.8867C46.2715 37.5938 46.4424 37.2471 46.4424 36.8467C46.4424 36.4463 46.2715 36.0996 45.9297 35.8066L39.8213 30.665C39.6748 30.5479 39.5137 30.4551 39.3379 30.3867C39.1719 30.3086 38.9814 30.2695 38.7666 30.2695C38.3174 30.2695 37.9658 30.4014 37.7119 30.665C37.458 30.9287 37.3311 31.2852 37.3311 31.7344V34.8252H34.6943C33.7373 34.8252 32.9219 34.6592 32.248 34.3271C31.5742 33.9854 30.9248 33.4336 30.2998 32.6719L26.9596 28.587L30.3291 24.4688C30.7588 23.9414 31.1689 23.5215 31.5596 23.209C31.96 22.8965 32.3896 22.6768 32.8486 22.5498C33.3076 22.4131 33.8496 22.3447 34.4746 22.3447H37.3311V25.4355C37.3311 25.8848 37.458 26.2412 37.7119 26.5049C37.9658 26.7588 38.3174 26.8857 38.7666 26.8857C38.9814 26.8857 39.1719 26.8516 39.3379 26.7832C39.5137 26.7148 39.6748 26.6221 39.8213 26.5049L45.9297 21.3486C46.2715 21.0654 46.4424 20.7236 46.4424 20.3232C46.4424 19.9131 46.2715 19.5664 45.9297 19.2832L39.8213 14.127C39.6748 14.0098 39.5137 13.917 39.3379 13.8486C39.1719 13.7803 38.9814 13.7461 38.7666 13.7461C38.3174 13.7461 37.9658 13.8779 37.7119 14.1416C37.458 14.3955 37.3311 14.7471 37.3311 15.1963V18.5654H34.6504C33.2051 18.5654 31.9551 18.7998 30.9004 19.2686C29.8457 19.7275 28.8008 20.5918 27.7656 21.8613L24.6192 25.7249L21.1006 21.4219C20.2607 20.4062 19.3477 19.6787 18.3613 19.2393C17.375 18.79 16.2178 18.5654 14.8896 18.5654H11.5205C10.9639 18.5654 10.4951 18.7461 10.1143 19.1074C9.74316 19.4688 9.55762 19.918 9.55762 20.4551C9.55762 20.9824 9.74316 21.4316 10.1143 21.8027C10.4951 22.1641 10.9639 22.3447 11.5205 22.3447H14.4648C15.4023 22.3447 16.2275 22.5107 16.9404 22.8428C17.6631 23.1748 18.3369 23.7266 18.9619 24.498L22.2965 28.5772L18.9619 32.6719C18.3369 33.4434 17.707 33.9951 17.0723 34.3271C16.4375 34.6592 15.6562 34.8252 14.7285 34.8252H11.5205C10.9639 34.8252 10.4951 35.0059 10.1143 35.3672Z",fill:"currentColor"})),au=m.forwardRef(ru),lu=(t,e)=>L.createElement("svg",{width:36,height:36,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},L.createElement("path",{d:"M7.83396 32.7793C7.49216 32.5254 7.2822 32.1836 7.20407 31.7539C7.13571 31.334 7.19919 30.8359 7.3945 30.2598L10.4121 21.3096L2.72165 15.7871C2.2236 15.4355 1.87692 15.0693 1.68161 14.6885C1.4863 14.2979 1.457 13.8975 1.59372 13.4873C1.73044 13.0869 1.98923 12.7891 2.37009 12.5938C2.75095 12.3887 3.24899 12.291 3.86423 12.3008L13.2832 12.3594L16.1543 3.36523C16.3398 2.7793 16.584 2.33496 16.8867 2.03223C17.1992 1.71973 17.5654 1.56348 17.9853 1.56348C18.415 1.56348 18.7812 1.71973 19.084 2.03223C19.3965 2.33496 19.6455 2.7793 19.831 3.36523L22.7021 12.3594L32.1211 12.3008C32.7363 12.291 33.2343 12.3887 33.6152 12.5938C33.9961 12.7891 34.2549 13.0869 34.3916 13.4873C34.5283 13.8975 34.499 14.2979 34.3037 14.6885C34.1084 15.0693 33.7617 15.4355 33.2636 15.7871L25.5732 21.3096L28.5908 30.2598C28.7861 30.8359 28.8447 31.334 28.7666 31.7539C28.6982 32.1836 28.4931 32.5254 28.1513 32.7793C27.8095 33.0527 27.4238 33.1504 26.9941 33.0723C26.5644 32.9941 26.1054 32.7793 25.6172 32.4277L17.9853 26.8174L10.3681 32.4277C9.87985 32.7793 9.42087 32.9941 8.99118 33.0723C8.56149 33.1504 8.17575 33.0527 7.83396 32.7793ZM10.4121 29.2344C10.4316 29.2637 10.4707 29.2588 10.5293 29.2197L17.1357 24.1221C17.4287 23.8877 17.7119 23.7705 17.9853 23.7705C18.2685 23.7705 18.5566 23.8877 18.8496 24.1221L25.456 29.2197C25.5146 29.2588 25.5537 29.2637 25.5732 29.2344C25.583 29.2148 25.583 29.1758 25.5732 29.1172L22.79 21.2656C22.7119 21.0312 22.6679 20.8213 22.6582 20.6357C22.6582 20.4404 22.707 20.2646 22.8047 20.1084C22.9121 19.9521 23.0732 19.8008 23.2881 19.6543L30.1728 14.9521C30.2314 14.9131 30.2558 14.874 30.2461 14.835C30.2363 14.8057 30.1924 14.791 30.1142 14.791L21.7939 14.9961C21.4131 15.0059 21.1152 14.9424 20.9004 14.8057C20.6855 14.6592 20.5244 14.3955 20.417 14.0146L18.0732 6.03125C18.0537 5.96289 18.0244 5.92871 17.9853 5.92871C17.956 5.92871 17.9316 5.96289 17.9121 6.03125L15.5683 14.0146C15.4609 14.3955 15.2998 14.6592 15.0849 14.8057C14.8701 14.9424 14.5722 15.0059 14.1914 14.9961L5.87107 14.791C5.79294 14.791 5.74899 14.8057 5.73923 14.835C5.72946 14.874 5.75388 14.9131 5.81247 14.9521L12.6972 19.6543C12.9121 19.8008 13.0683 19.9521 13.166 20.1084C13.2734 20.2646 13.3222 20.4404 13.3125 20.6357C13.3125 20.8213 13.2734 21.0312 13.1953 21.2656L10.4121 29.1172C10.3925 29.1758 10.3925 29.2148 10.4121 29.2344Z",fill:"currentColor"})),cu=m.forwardRef(lu),uu=(t,e)=>L.createElement("svg",{width:36,height:36,viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e,...t},L.createElement("path",{d:"M7.83396 32.7793C7.49216 32.5254 7.2822 32.1836 7.20407 31.7539C7.13571 31.334 7.19919 30.8359 7.3945 30.2598L10.4121 21.3096L2.72165 15.7871C2.2236 15.4355 1.87692 15.0693 1.68161 14.6885C1.4863 14.2979 1.457 13.8975 1.59372 13.4873C1.73044 13.0869 1.98923 12.7891 2.37009 12.5938C2.75095 12.3984 3.24899 12.3008 3.86423 12.3008H13.2832L16.1543 3.36523C16.3398 2.7793 16.584 2.33496 16.8867 2.03223C17.1992 1.71973 17.5654 1.56348 17.9853 1.56348C18.415 1.56348 18.7812 1.71973 19.084 2.03223C19.3965 2.33496 19.6455 2.7793 19.831 3.36523L22.7021 12.3008H32.1211C32.7363 12.3008 33.2343 12.3984 33.6152 12.5938C33.9961 12.7891 34.2549 13.0869 34.3916 13.4873C34.5283 13.8975 34.499 14.2979 34.3037 14.6885C34.1084 15.0693 33.7617 15.4355 33.2636 15.7871L25.5732 21.3096L28.5908 30.2598C28.7861 30.8359 28.8447 31.334 28.7666 31.7539C28.6982 32.1836 28.4931 32.5254 28.1513 32.7793C27.8095 33.0527 27.4238 33.1504 26.9941 33.0723C26.5644 32.9941 26.1054 32.7793 25.6172 32.4277L17.9853 26.8174L10.3681 32.4277C9.87985 32.7793 9.42087 32.9941 8.99118 33.0723C8.56149 33.1504 8.17575 33.0527 7.83396 32.7793Z",fill:"currentColor"})),hu=m.forwardRef(uu),la=m.memo(({uncheckedIcon:t,checkedIcon:e,checked:n,className:s,...i})=>y.jsx("button",{className:z(s,z4.toggleIconButton),type:"button",...i,children:n?e:t})),du={[_.Lyrics]:[q4,K4],[_.Playlist]:[X4,J4],[_.Repeat]:[eu,su],[_.Shuffle]:[ou,au],[_.Star]:[cu,hu],[_.AirPlay]:[Mi,Mi]},ot=m.memo(({type:t,checked:e,onClick:n,...s})=>{const[i,r]=du[t];return y.jsx(la,{uncheckedIcon:y.jsx(i,{}),checkedIcon:y.jsx(r,{}),checked:e??!1,onClick:n,...s})}),fu=(t,e)=>L.createElement("svg",{id:"vector",xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 134 134",fill:"currentColor",ref:e,...t},L.createElement("path",{d:"M62 60.0717C65.938 62.3453 67.9069 63.4821 68.5677 64.9662C69.1441 66.2608 69.1441 67.7391 68.5677 69.0336C67.9069 70.5177 65.938 71.6545 62 73.9281L41 86.0525C37.062 88.326 35.0931 89.4628 33.4774 89.293C32.0681 89.1449 30.7878 88.4057 29.9549 87.2593C29 85.945 29 83.6714 29 79.1243V54.8755C29 50.3284 29 48.0548 29.9549 46.7405C30.7878 45.5941 32.0681 44.8549 33.4774 44.7068C35.0931 44.537 37.062 45.6738 41 47.9473L62 60.0717Z",className:"amll-forward-left-arrow"}),L.createElement("path",{d:"M62 60.0717C65.938 62.3453 67.9069 63.4821 68.5677 64.9662C69.1441 66.2608 69.1441 67.7391 68.5677 69.0336C67.9069 70.5177 65.938 71.6545 62 73.9281L41 86.0525C37.062 88.326 35.0931 89.4628 33.4774 89.293C32.0681 89.1449 30.7878 88.4057 29.9549 87.2593C29 85.945 29 83.6714 29 79.1243V54.8755C29 50.3284 29 48.0548 29.9549 46.7405C30.7878 45.5941 32.0681 44.8549 33.4774 44.7068C35.0931 44.537 37.062 45.6738 41 47.9473L62 60.0717Z",className:"amll-forward-left-standby"}),L.createElement("path",{d:"M102 60.0717C105.938 62.3453 107.907 63.4821 108.568 64.9662C109.144 66.2608 109.144 67.7391 108.568 69.0336C107.907 70.5177 105.938 71.6545 102 73.9281L81 86.0525C77.062 88.326 75.0931 89.4628 73.4774 89.293C72.0681 89.1449 70.7878 88.4057 69.9549 87.2593C69 85.945 69 83.6714 69 79.1243V54.8755C69 50.3284 69 48.0548 69.9549 46.7405C70.7878 45.5941 72.0681 44.8549 73.4774 44.7068C75.0931 44.537 77.062 45.6738 81 47.9473L102 60.0717Z",className:"amll-forward-right-arrow"})),mu=m.forwardRef(fu),pu=(t,e)=>L.createElement("svg",{id:"vector",xmlns:"http://www.w3.org/2000/svg",width:38,height:38,viewBox:"0 0 38 38",ref:e,...t},L.createElement("path",{d:"M8.7384,36C6.3594,36 5,34.5857 5,32.4261L5,5.593C5,3.4143 6.3594,2 8.7384,2L12.911,2C15.2711,2 16.6305,3.4143 16.6305,5.593L16.6305,32.4261C16.6305,34.6048 15.2711,36 12.911,36L8.7384,36ZM25.089,36C22.7289,36 21.3695,34.6048 21.3695,32.4261L21.3695,5.593C21.3695,3.4143 22.7289,2 25.089,2L29.2616,2C31.6406,2 33,3.4143 33,5.593L33,32.4261C33,34.5857 31.6406,36 29.2616,36L25.089,36Z",fill:"currentColor",strokeWidth:1,fillRule:"nonzero",id:"path_0"})),Cu=m.forwardRef(pu),gu=(t,e)=>L.createElement("svg",{id:"vector",xmlns:"http://www.w3.org/2000/svg",width:38,height:38,viewBox:"0 0 38 38",ref:e,...t},L.createElement("path",{d:"M7.5776,36C5.619,36 4.1567,34.6943 4,32.5008L4,5.4992C4.1567,3.3057 5.619,2 7.5776,2C8.5438,2 9.2227,2.2873 10.3195,2.8618L35.1536,15.5269C36.9293,16.4409 38,17.3287 38,19C38,20.6713 36.9293,21.5591 35.1536,22.4731L10.3195,35.1382C9.2227,35.7127 8.5438,36 7.5776,36Z",fill:"currentColor",fillRule:"nonzero"})),yu=m.forwardRef(gu),vu=(t,e)=>L.createElement("svg",{id:"vector",xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 134 134",fill:"currentColor",ref:e,...t},L.createElement("path",{d:"M72 60.0717C68.062 62.3453 66.0931 63.4821 65.4323 64.9662C64.8559 66.2608 64.8559 67.7391 65.4323 69.0336C66.0931 70.5177 68.062 71.6545 72 73.9281L93 86.0525C96.938 88.326 98.9069 89.4628 100.523 89.293C101.932 89.1449 103.212 88.4057 104.045 87.2593C105 85.945 105 83.6714 105 79.1243V54.8755C105 50.3284 105 48.0548 104.045 46.7405C103.212 45.5941 101.932 44.8549 100.523 44.7068C98.9069 44.537 96.938 45.6738 93 47.9473L72 60.0717Z",className:"amll-rewind-right-arrow"}),L.createElement("path",{d:"M72 60.0717C68.062 62.3453 66.0931 63.4821 65.4323 64.9662C64.8559 66.2608 64.8559 67.7391 65.4323 69.0336C66.0931 70.5177 68.062 71.6545 72 73.9281L93 86.0525C96.938 88.326 98.9069 89.4628 100.523 89.293C101.932 89.1449 103.212 88.4057 104.045 87.2593C105 85.945 105 83.6714 105 79.1243V54.8755C105 50.3284 105 48.0548 104.045 46.7405C103.212 45.5941 101.932 44.8549 100.523 44.7068C98.9069 44.537 96.938 45.6738 93 47.9473L72 60.0717Z",className:"amll-rewind-right-standby"}),L.createElement("path",{d:"M32 60.0717C28.062 62.3453 26.0931 63.4821 25.4323 64.9662C24.8559 66.2608 24.8559 67.7391 25.4323 69.0336C26.0931 70.5177 28.062 71.6545 32 73.9281L53 86.0525C56.938 88.326 58.9069 89.4628 60.5226 89.293C61.9319 89.1449 63.2122 88.4057 64.0451 87.2593C65 85.945 65 83.6714 65 79.1243V54.8755C65 50.3284 65 48.0548 64.0451 46.7405C63.2122 45.5941 61.9319 44.8549 60.5226 44.7068C58.9069 44.537 56.938 45.6738 53 47.9473L32 60.0717Z",className:"amll-rewind-left-arrow"})),wu=m.forwardRef(vu),nn=({className:t,style:e})=>{const n=P.useAtomValue(cr),s=P.useAtomValue(ur),i=P.useAtomValue(hr),r=P.useAtomValue(Fr).onEmit,o=P.useAtomValue(Jr),a=P.useAtomValue(ta),l=P.useAtomValue(ea);return y.jsx(Lr,{className:t,style:e,name:o?n:void 0,artists:a?s.map(c=>c.name):void 0,album:l?i:void 0,onMenuButtonClicked:r})},xu=({showOtherButtons:t})=>{const e=P.useAtomValue(He),n=P.useAtomValue(kr).onEmit,s=P.useAtomValue(jr).onEmit,i=P.useAtomValue(Br).onEmit;return y.jsxs(y.Fragment,{children:[t&&y.jsx(ot,{type:_.Shuffle}),y.jsx(ge,{className:Z.songMediaButton,onClick:n,children:y.jsx(wu,{color:"#FFFFFF"})}),y.jsx(ge,{className:Z.songMediaPlayButton,onClick:i,children:e?y.jsx(Cu,{color:"#FFFFFF"}):y.jsx(yu,{color:"#FFFFFF"})}),y.jsx(ge,{className:Z.songMediaButton,onClick:s,children:y.jsx(mu,{color:"#FFFFFF"})}),t&&y.jsx(ot,{type:_.Repeat})]})},Ri=()=>{const t=P.useAtomValue(mr),e=P.useAtomValue(Xn),n=P.useAtomValue(pr),s=P.useAtomValue(Hr).onEmit;return y.jsxs("div",{children:[y.jsx(Jn,{value:e,min:0,max:t,onChange:s}),y.jsxs("div",{className:Z.progressBarLabels,children:[y.jsx("div",{children:vn(e/1e3)}),y.jsx("div",{children:y.jsx(xr,{className:Z.qualityTag,quality:n})}),y.jsx("div",{children:vn((e-t)/1e3)})]})]})},bu=({alignPosition:t,alignAnchor:e})=>{const n=P.useAtomValue(He),s=P.useAtomValue(gr),i=P.useAtomValue(Qn),r=P.useAtomValue(Xn),o=P.useAtomValue(Kr),a=P.useAtomValue(Yr),l=P.useAtomValue(Xr),c=P.useAtomValue(_r),u=P.useAtomValue(Wr),h=P.useAtomValue(Zr),d=P.useAtomValue(Gr),f=P.useAtomValue(zr),p=P.useAtomValue(Ur),v=P.useAtomValue(qr),C=P.useAtomValue(Ir).onEmit,g=P.useAtomValue(Or).onEmit,x=m.useMemo(()=>{const w=Yc(s);if(!f)for(const b of w)b.translatedLyric="";if(!p)for(const b of w)b.romanLyric="";if(v)for(const b of w)[b.translatedLyric,b.romanLyric]=[b.romanLyric,b.translatedLyric];return w},[s,f,p,v]);return y.jsx(zc,{style:{width:"100%",height:"100%",fontFamily:o||void 0,fontWeight:a||void 0,letterSpacing:l||void 0},playing:n,disabled:!i,alignPosition:t,alignAnchor:e,currentTime:r,lyricLines:x,enableBlur:c,enableScale:u,enableSpring:h,wordFadeWidth:Math.max(.01,d),onLyricLineClick:C,onLyricLineContextMenu:g})},Ei=({style:t,className:e})=>{const n=P.useAtomValue(Cr),s=P.useAtomValue($r).onEmit;return P.useAtomValue(na)?y.jsx(Nr,{value:n,min:0,max:1,style:t,className:e,onChange:s}):null},Di=({className:t,showOtherButtons:e,...n})=>{const s=P.useAtomValue(Qr),i=P.useAtomValue(vr);return y.jsxs("div",{className:z(Z.controls,t),...n,children:[s===Te.Controls&&y.jsx(xu,{showOtherButtons:e}),s===Te.FFT&&y.jsx(Fi,{style:{width:"100%",height:"8vh"},fftData:i})]})},Vu=({className:t,...e})=>{const[n,s]=P.useAtom(yr),i=P.useAtomValue(dr),r=P.useAtomValue(fr),o=P.useAtomValue(He),a=P.useAtomValue(wr),l=P.useAtomValue(Qn),c=P.useAtomValue(oa),u=P.useAtomValue(aa),h=P.useAtomValue(ra),d=P.useAtomValue(Dr).onEmit,[f,p]=m.useState(!1),[v,C]=m.useState(.25),[g,x]=m.useState("top"),w=m.useRef(null),b=m.useRef(null),T=P.useAtomValue(ia),A=P.useAtomValue(sa);return m.useLayoutEffect(()=>{if(!f&&w.current&&b.current){const E=new ResizeObserver(()=>{if(!(w.current&&b.current))return;const M=w.current.getBoundingClientRect(),V=b.current.getBoundingClientRect();C((M.top+M.height/2-V.top)/V.height)});return E.observe(w.current),E.observe(b.current),x("center"),()=>E.disconnect()}f&&b.current&&(C(.1),x("top"))},[f]),y.jsx(zl,{children:y.jsx(Er,{ref:b,className:z(Z.autoLyricLayout,t),onLayoutChange:p,coverSlot:y.jsx(Vr,{coverUrl:i,coverIsVideo:r,ref:w,musicPaused:!o}),thumbSlot:y.jsx(br,{onClick:d}),smallControlsSlot:y.jsx(nn,{className:z(Z.smallMusicInfo,n&&Z.hideLyric)}),backgroundSlot:y.jsx(Zc,{album:i,albumIsVideo:r,lowFreqVolume:a,renderScale:h,fps:c,renderer:T.renderer,staticMode:u||!l,style:{zIndex:-1}}),bigControlsSlot:y.jsxs(y.Fragment,{children:[y.jsx(nn,{className:z(Z.bigMusicInfo,n&&Z.hideLyric)}),y.jsx(Ri,{}),y.jsx(Di,{className:Z.bigControls}),A&&y.jsxs("div",{style:{display:"flex",justifyContent:"space-evenly"},children:[y.jsx(ot,{type:_.Lyrics,checked:!n,onClick:()=>s(!n)}),y.jsx(ot,{type:_.AirPlay}),y.jsx(ot,{type:_.Playlist})]}),y.jsx(Ei,{className:Z.bigVolumeControl})]}),controlsSlot:y.jsxs(y.Fragment,{children:[y.jsx(nn,{className:Z.horizontalControls}),y.jsx(Ri,{}),y.jsx(Di,{className:Z.controls,showOtherButtons:!0}),y.jsx(Ei,{})]}),horizontalBottomControls:A&&y.jsxs(y.Fragment,{children:[y.jsx(ot,{type:_.Playlist}),y.jsx(ot,{type:_.Lyrics,checked:!n,onClick:()=>s(!n)}),y.jsx("div",{style:{flex:"1"}}),y.jsx(ot,{type:_.AirPlay})]}),lyricSlot:y.jsx(bu,{alignPosition:v,alignAnchor:g}),hideLyric:n,...e})})};exports.AudioFFTVisualizer=Fi;exports.AudioQualityTag=xr;exports.AudioQualityType=Kt;exports.AutoLyricLayout=Er;exports.BouncingSlider=Jn;exports.ControlThumb=br;exports.Cover=Vr;exports.HorizontalLayout=Mr;exports.MediaButton=ge;exports.MenuButton=Pr;exports.MusicInfo=Lr;exports.PlayerControlsType=Te;exports.PrebuiltLyricPlayer=Vu;exports.PrebuiltToggleIconButton=ot;exports.PrebuiltToggleIconButtonType=_;exports.Spring=yn;exports.TextMarquee=ye;exports.ToggleIconButton=la;exports.VerticalLayout=Rr;exports.VolumeControl=Nr;exports.enableLyricLineBlurEffectAtom=_r;exports.enableLyricLineScaleEffectAtom=Wr;exports.enableLyricLineSpringAnimationAtom=Zr;exports.enableLyricRomanLineAtom=Ur;exports.enableLyricSwapTransRomanLineAtom=qr;exports.enableLyricTranslationLineAtom=zr;exports.fftDataAtom=vr;exports.globalLyricTimelineOffsetAtom=_4;exports.hideLyricViewAtom=yr;exports.isLyricPageOpenedAtom=Qn;exports.lowFreqVolumeAtom=wr;exports.lyricBackgroundFPSAtom=oa;exports.lyricBackgroundRenderScaleAtom=ra;exports.lyricBackgroundRendererAtom=ia;exports.lyricBackgroundStaticModeAtom=aa;exports.lyricFontFamilyAtom=Kr;exports.lyricFontWeightAtom=Yr;exports.lyricLetterSpacingAtom=Xr;exports.lyricWordFadeWidthAtom=Gr;exports.musicAlbumNameAtom=hr;exports.musicArtistsAtom=ur;exports.musicCoverAtom=dr;exports.musicCoverIsVideoAtom=fr;exports.musicDurationAtom=mr;exports.musicLyricLinesAtom=gr;exports.musicNameAtom=cr;exports.musicPlayingAtom=He;exports.musicPlayingPositionAtom=Xn;exports.musicQualityAtom=pr;exports.musicVolumeAtom=Cr;exports.onChangeVolumeAtom=$r;exports.onClickControlThumbAtom=Dr;exports.onClickLeftFunctionButtonAtom=b4;exports.onClickRightFunctionButtonAtom=V4;exports.onLyricLineClickAtom=Ir;exports.onLyricLineContextMenuAtom=Or;exports.onPauseAtom=x4;exports.onPlayOrResumeAtom=Br;exports.onRequestNextSongAtom=jr;exports.onRequestOpenMenuAtom=Fr;exports.onRequestPrevSongAtom=kr;exports.onSeekPositionAtom=Hr;exports.playerControlsTypeAtom=Qr;exports.showBottomControlAtom=sa;exports.showMusicAlbumAtom=ea;exports.showMusicArtistsAtom=ta;exports.showMusicNameAtom=Jr;exports.showVolumeControlAtom=na;exports.toDuration=vn;
|
|
64
|
+
//# sourceMappingURL=amll-react-framework.cjs.map
|