twist-aplayer 1.1.1 → 1.2.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.
@@ -1,4 +1,4 @@
1
- (function(z,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react"),require("./styles/main.scss")):typeof define=="function"&&define.amd?define(["exports","react","./styles/main.scss"],c):(z=typeof globalThis<"u"?globalThis:z||self,c(z.TwistAPlayer={},z.React))})(this,function(z,c){"use strict";function mr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const U=mr(c);var oe={exports:{}},Q={};/**
1
+ (function(H,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react"),require("./styles/main.scss")):typeof define=="function"&&define.amd?define(["exports","react","./styles/main.scss"],c):(H=typeof globalThis<"u"?globalThis:H||self,c(H.TwistAPlayer={},H.React))})(this,function(H,c){"use strict";function mr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Y=mr(c);var le={exports:{}},Q={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Ne;function hr(){if(Ne)return Q;Ne=1;var e=c,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function y(p,s,d){var E,g={},f=null,h=null;d!==void 0&&(f=""+d),s.key!==void 0&&(f=""+s.key),s.ref!==void 0&&(h=s.ref);for(E in s)a.call(s,E)&&!l.hasOwnProperty(E)&&(g[E]=s[E]);if(p&&p.defaultProps)for(E in s=p.defaultProps,s)g[E]===void 0&&(g[E]=s[E]);return{$$typeof:t,type:p,key:f,ref:h,props:g,_owner:o.current}}return Q.Fragment=n,Q.jsx=y,Q.jsxs=y,Q}var Z={},ke;function yr(){if(ke)return Z;ke=1;var e={};/**
9
+ */var ke;function hr(){if(ke)return Q;ke=1;var e=c,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function y(b,s,d){var E,g={},f=null,h=null;d!==void 0&&(f=""+d),s.key!==void 0&&(f=""+s.key),s.ref!==void 0&&(h=s.ref);for(E in s)a.call(s,E)&&!l.hasOwnProperty(E)&&(g[E]=s[E]);if(b&&b.defaultProps)for(E in s=b.defaultProps,s)g[E]===void 0&&(g[E]=s[E]);return{$$typeof:t,type:b,key:f,ref:h,props:g,_owner:o.current}}return Q.Fragment=n,Q.jsx=y,Q.jsxs=y,Q}var Z={},qe;function yr(){if(qe)return Z;qe=1;var e={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,19 +14,19 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */return e.NODE_ENV!=="production"&&function(){var t=c,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),s=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),i=Symbol.iterator,b="@@iterator";function S(r){if(r===null||typeof r!="object")return null;var u=i&&r[i]||r[b];return typeof u=="function"?u:null}var C=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(r){{for(var u=arguments.length,m=new Array(u>1?u-1:0),_=1;_<u;_++)m[_-1]=arguments[_];M("error",r,m)}}function M(r,u,m){{var _=C.ReactDebugCurrentFrame,O=_.getStackAddendum();O!==""&&(u+="%s",m=m.concat([O]));var L=m.map(function(j){return String(j)});L.unshift("Warning: "+u),Function.prototype.apply.call(console[r],console,L)}}var G=!1,te=!1,D=!1,we=!1,ce=!1,fe;fe=Symbol.for("react.module.reference");function de(r){return!!(typeof r=="string"||typeof r=="function"||r===o||r===y||ce||r===l||r===E||r===g||we||r===T||G||te||D||typeof r=="object"&&r!==null&&(r.$$typeof===h||r.$$typeof===f||r.$$typeof===p||r.$$typeof===s||r.$$typeof===d||r.$$typeof===fe||r.getModuleId!==void 0))}function je(r,u,m){var _=r.displayName;if(_)return _;var O=u.displayName||u.name||"";return O!==""?m+"("+O+")":m}function ve(r){return r.displayName||"Context"}function I(r){if(r==null)return null;if(typeof r.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case o:return"Fragment";case a:return"Portal";case y:return"Profiler";case l:return"StrictMode";case E:return"Suspense";case g:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case s:var u=r;return ve(u)+".Consumer";case p:var m=r;return ve(m._context)+".Provider";case d:return je(r,r.render,"ForwardRef");case f:var _=r.displayName||null;return _!==null?_:I(r.type)||"Memo";case h:{var O=r,L=O._payload,j=O._init;try{return I(j(L))}catch{return null}}}return null}var V=Object.assign,W=0,K,ne,ae,ie,P,me,Xe;function Qe(){}Qe.__reactDisabledLog=!0;function ft(){{if(W===0){K=console.log,ne=console.info,ae=console.warn,ie=console.error,P=console.group,me=console.groupCollapsed,Xe=console.groupEnd;var r={configurable:!0,enumerable:!0,value:Qe,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}W++}}function dt(){{if(W--,W===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:V({},r,{value:K}),info:V({},r,{value:ne}),warn:V({},r,{value:ae}),error:V({},r,{value:ie}),group:V({},r,{value:P}),groupCollapsed:V({},r,{value:me}),groupEnd:V({},r,{value:Xe})})}W<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Oe=C.ReactCurrentDispatcher,Ce;function he(r,u,m){{if(Ce===void 0)try{throw Error()}catch(O){var _=O.stack.trim().match(/\n( *(at )?)/);Ce=_&&_[1]||""}return`
18
- `+Ce+r}}var Pe=!1,ye;{var vt=typeof WeakMap=="function"?WeakMap:Map;ye=new vt}function Ze(r,u){if(!r||Pe)return"";{var m=ye.get(r);if(m!==void 0)return m}var _;Pe=!0;var O=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var L;L=Oe.current,Oe.current=null,ft();try{if(u){var j=function(){throw Error()};if(Object.defineProperty(j.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(j,[])}catch(B){_=B}Reflect.construct(r,[],j)}else{try{j.call()}catch(B){_=B}r.call(j.prototype)}}else{try{throw Error()}catch(B){_=B}r()}}catch(B){if(B&&_&&typeof B.stack=="string"){for(var w=B.stack.split(`
17
+ */return e.NODE_ENV!=="production"&&function(){var t=c,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),s=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),i=Symbol.iterator,p="@@iterator";function S(r){if(r===null||typeof r!="object")return null;var u=i&&r[i]||r[p];return typeof u=="function"?u:null}var P=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(r){{for(var u=arguments.length,m=new Array(u>1?u-1:0),_=1;_<u;_++)m[_-1]=arguments[_];M("error",r,m)}}function M(r,u,m){{var _=P.ReactDebugCurrentFrame,C=_.getStackAddendum();C!==""&&(u+="%s",m=m.concat([C]));var L=m.map(function(j){return String(j)});L.unshift("Warning: "+u),Function.prototype.apply.call(console[r],console,L)}}var te=!1,W=!1,I=!1,ve=!1,we=!1,ne;ne=Symbol.for("react.module.reference");function je(r){return!!(typeof r=="string"||typeof r=="function"||r===o||r===y||we||r===l||r===E||r===g||ve||r===T||te||W||I||typeof r=="object"&&r!==null&&(r.$$typeof===h||r.$$typeof===f||r.$$typeof===b||r.$$typeof===s||r.$$typeof===d||r.$$typeof===ne||r.getModuleId!==void 0))}function Oe(r,u,m){var _=r.displayName;if(_)return _;var C=u.displayName||u.name||"";return C!==""?m+"("+C+")":m}function ae(r){return r.displayName||"Context"}function D(r){if(r==null)return null;if(typeof r.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case o:return"Fragment";case a:return"Portal";case y:return"Profiler";case l:return"StrictMode";case E:return"Suspense";case g:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case s:var u=r;return ae(u)+".Consumer";case b:var m=r;return ae(m._context)+".Provider";case d:return Oe(r,r.render,"ForwardRef");case f:var _=r.displayName||null;return _!==null?_:D(r.type)||"Memo";case h:{var C=r,L=C._payload,j=C._init;try{return D(j(L))}catch{return null}}}return null}var F=Object.assign,B=0,K,ie,oe,ue,se,O,me;function Qe(){}Qe.__reactDisabledLog=!0;function ft(){{if(B===0){K=console.log,ie=console.info,oe=console.warn,ue=console.error,se=console.group,O=console.groupCollapsed,me=console.groupEnd;var r={configurable:!0,enumerable:!0,value:Qe,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}B++}}function dt(){{if(B--,B===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},r,{value:K}),info:F({},r,{value:ie}),warn:F({},r,{value:oe}),error:F({},r,{value:ue}),group:F({},r,{value:se}),groupCollapsed:F({},r,{value:O}),groupEnd:F({},r,{value:me})})}B<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ce=P.ReactCurrentDispatcher,Pe;function he(r,u,m){{if(Pe===void 0)try{throw Error()}catch(C){var _=C.stack.trim().match(/\n( *(at )?)/);Pe=_&&_[1]||""}return`
18
+ `+Pe+r}}var Le=!1,ye;{var vt=typeof WeakMap=="function"?WeakMap:Map;ye=new vt}function Ze(r,u){if(!r||Le)return"";{var m=ye.get(r);if(m!==void 0)return m}var _;Le=!0;var C=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var L;L=Ce.current,Ce.current=null,ft();try{if(u){var j=function(){throw Error()};if(Object.defineProperty(j.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(j,[])}catch(z){_=z}Reflect.construct(r,[],j)}else{try{j.call()}catch(z){_=z}r.call(j.prototype)}}else{try{throw Error()}catch(z){_=z}r()}}catch(z){if(z&&_&&typeof z.stack=="string"){for(var w=z.stack.split(`
19
19
  `),q=_.stack.split(`
20
20
  `),A=w.length-1,N=q.length-1;A>=1&&N>=0&&w[A]!==q[N];)N--;for(;A>=1&&N>=0;A--,N--)if(w[A]!==q[N]){if(A!==1||N!==1)do if(A--,N--,N<0||w[A]!==q[N]){var R=`
21
- `+w[A].replace(" at new "," at ");return r.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",r.displayName)),typeof r=="function"&&ye.set(r,R),R}while(A>=1&&N>=0);break}}}finally{Pe=!1,Oe.current=L,dt(),Error.prepareStackTrace=O}var X=r?r.displayName||r.name:"",vr=X?he(X):"";return typeof r=="function"&&ye.set(r,vr),vr}function mt(r,u,m){return Ze(r,!1)}function ht(r){var u=r.prototype;return!!(u&&u.isReactComponent)}function be(r,u,m){if(r==null)return"";if(typeof r=="function")return Ze(r,ht(r));if(typeof r=="string")return he(r);switch(r){case E:return he("Suspense");case g:return he("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case d:return mt(r.render);case f:return be(r.type,u,m);case h:{var _=r,O=_._payload,L=_._init;try{return be(L(O),u,m)}catch{}}}return""}var pe=Object.prototype.hasOwnProperty,er={},rr=C.ReactDebugCurrentFrame;function ge(r){if(r){var u=r._owner,m=be(r.type,r._source,u?u.type:null);rr.setExtraStackFrame(m)}else rr.setExtraStackFrame(null)}function yt(r,u,m,_,O){{var L=Function.call.bind(pe);for(var j in r)if(L(r,j)){var w=void 0;try{if(typeof r[j]!="function"){var q=Error((_||"React class")+": "+m+" type `"+j+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[j]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw q.name="Invariant Violation",q}w=r[j](u,j,_,m,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(A){w=A}w&&!(w instanceof Error)&&(ge(O),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",_||"React class",m,j,typeof w),ge(null)),w instanceof Error&&!(w.message in er)&&(er[w.message]=!0,ge(O),x("Failed %s type: %s",m,w.message),ge(null))}}}var bt=Array.isArray;function Le(r){return bt(r)}function pt(r){{var u=typeof Symbol=="function"&&Symbol.toStringTag,m=u&&r[Symbol.toStringTag]||r.constructor.name||"Object";return m}}function gt(r){try{return tr(r),!1}catch{return!0}}function tr(r){return""+r}function nr(r){if(gt(r))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",pt(r)),tr(r)}var ar=C.ReactCurrentOwner,Et={key:!0,ref:!0,__self:!0,__source:!0},ir,or;function xt(r){if(pe.call(r,"ref")){var u=Object.getOwnPropertyDescriptor(r,"ref").get;if(u&&u.isReactWarning)return!1}return r.ref!==void 0}function _t(r){if(pe.call(r,"key")){var u=Object.getOwnPropertyDescriptor(r,"key").get;if(u&&u.isReactWarning)return!1}return r.key!==void 0}function St(r,u){typeof r.ref=="string"&&ar.current}function Tt(r,u){{var m=function(){ir||(ir=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",u))};m.isReactWarning=!0,Object.defineProperty(r,"key",{get:m,configurable:!0})}}function wt(r,u){{var m=function(){or||(or=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",u))};m.isReactWarning=!0,Object.defineProperty(r,"ref",{get:m,configurable:!0})}}var jt=function(r,u,m,_,O,L,j){var w={$$typeof:n,type:r,key:u,ref:m,props:j,_owner:L};return w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(w,"_self",{configurable:!1,enumerable:!1,writable:!1,value:_}),Object.defineProperty(w,"_source",{configurable:!1,enumerable:!1,writable:!1,value:O}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w};function Ot(r,u,m,_,O){{var L,j={},w=null,q=null;m!==void 0&&(nr(m),w=""+m),_t(u)&&(nr(u.key),w=""+u.key),xt(u)&&(q=u.ref,St(u,O));for(L in u)pe.call(u,L)&&!Et.hasOwnProperty(L)&&(j[L]=u[L]);if(r&&r.defaultProps){var A=r.defaultProps;for(L in A)j[L]===void 0&&(j[L]=A[L])}if(w||q){var N=typeof r=="function"?r.displayName||r.name||"Unknown":r;w&&Tt(j,N),q&&wt(j,N)}return jt(r,w,q,O,_,ar.current,j)}}var $e=C.ReactCurrentOwner,ur=C.ReactDebugCurrentFrame;function J(r){if(r){var u=r._owner,m=be(r.type,r._source,u?u.type:null);ur.setExtraStackFrame(m)}else ur.setExtraStackFrame(null)}var Ae;Ae=!1;function Me(r){return typeof r=="object"&&r!==null&&r.$$typeof===n}function sr(){{if($e.current){var r=I($e.current.type);if(r)return`
21
+ `+w[A].replace(" at new "," at ");return r.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",r.displayName)),typeof r=="function"&&ye.set(r,R),R}while(A>=1&&N>=0);break}}}finally{Le=!1,Ce.current=L,dt(),Error.prepareStackTrace=C}var X=r?r.displayName||r.name:"",vr=X?he(X):"";return typeof r=="function"&&ye.set(r,vr),vr}function mt(r,u,m){return Ze(r,!1)}function ht(r){var u=r.prototype;return!!(u&&u.isReactComponent)}function pe(r,u,m){if(r==null)return"";if(typeof r=="function")return Ze(r,ht(r));if(typeof r=="string")return he(r);switch(r){case E:return he("Suspense");case g:return he("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case d:return mt(r.render);case f:return pe(r.type,u,m);case h:{var _=r,C=_._payload,L=_._init;try{return pe(L(C),u,m)}catch{}}}return""}var be=Object.prototype.hasOwnProperty,er={},rr=P.ReactDebugCurrentFrame;function ge(r){if(r){var u=r._owner,m=pe(r.type,r._source,u?u.type:null);rr.setExtraStackFrame(m)}else rr.setExtraStackFrame(null)}function yt(r,u,m,_,C){{var L=Function.call.bind(be);for(var j in r)if(L(r,j)){var w=void 0;try{if(typeof r[j]!="function"){var q=Error((_||"React class")+": "+m+" type `"+j+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[j]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw q.name="Invariant Violation",q}w=r[j](u,j,_,m,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(A){w=A}w&&!(w instanceof Error)&&(ge(C),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",_||"React class",m,j,typeof w),ge(null)),w instanceof Error&&!(w.message in er)&&(er[w.message]=!0,ge(C),x("Failed %s type: %s",m,w.message),ge(null))}}}var pt=Array.isArray;function $e(r){return pt(r)}function bt(r){{var u=typeof Symbol=="function"&&Symbol.toStringTag,m=u&&r[Symbol.toStringTag]||r.constructor.name||"Object";return m}}function gt(r){try{return tr(r),!1}catch{return!0}}function tr(r){return""+r}function nr(r){if(gt(r))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",bt(r)),tr(r)}var ar=P.ReactCurrentOwner,Et={key:!0,ref:!0,__self:!0,__source:!0},ir,or;function xt(r){if(be.call(r,"ref")){var u=Object.getOwnPropertyDescriptor(r,"ref").get;if(u&&u.isReactWarning)return!1}return r.ref!==void 0}function _t(r){if(be.call(r,"key")){var u=Object.getOwnPropertyDescriptor(r,"key").get;if(u&&u.isReactWarning)return!1}return r.key!==void 0}function St(r,u){typeof r.ref=="string"&&ar.current}function Tt(r,u){{var m=function(){ir||(ir=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",u))};m.isReactWarning=!0,Object.defineProperty(r,"key",{get:m,configurable:!0})}}function wt(r,u){{var m=function(){or||(or=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",u))};m.isReactWarning=!0,Object.defineProperty(r,"ref",{get:m,configurable:!0})}}var jt=function(r,u,m,_,C,L,j){var w={$$typeof:n,type:r,key:u,ref:m,props:j,_owner:L};return w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(w,"_self",{configurable:!1,enumerable:!1,writable:!1,value:_}),Object.defineProperty(w,"_source",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w};function Ot(r,u,m,_,C){{var L,j={},w=null,q=null;m!==void 0&&(nr(m),w=""+m),_t(u)&&(nr(u.key),w=""+u.key),xt(u)&&(q=u.ref,St(u,C));for(L in u)be.call(u,L)&&!Et.hasOwnProperty(L)&&(j[L]=u[L]);if(r&&r.defaultProps){var A=r.defaultProps;for(L in A)j[L]===void 0&&(j[L]=A[L])}if(w||q){var N=typeof r=="function"?r.displayName||r.name||"Unknown":r;w&&Tt(j,N),q&&wt(j,N)}return jt(r,w,q,C,_,ar.current,j)}}var Ae=P.ReactCurrentOwner,ur=P.ReactDebugCurrentFrame;function J(r){if(r){var u=r._owner,m=pe(r.type,r._source,u?u.type:null);ur.setExtraStackFrame(m)}else ur.setExtraStackFrame(null)}var Me;Me=!1;function Ne(r){return typeof r=="object"&&r!==null&&r.$$typeof===n}function sr(){{if(Ae.current){var r=D(Ae.current.type);if(r)return`
22
22
 
23
23
  Check the render method of \``+r+"`."}return""}}function Ct(r){return""}var lr={};function Pt(r){{var u=sr();if(!u){var m=typeof r=="string"?r:r.displayName||r.name;m&&(u=`
24
24
 
25
- Check the top-level render call using <`+m+">.")}return u}}function cr(r,u){{if(!r._store||r._store.validated||r.key!=null)return;r._store.validated=!0;var m=Pt(u);if(lr[m])return;lr[m]=!0;var _="";r&&r._owner&&r._owner!==$e.current&&(_=" It was passed a child from "+I(r._owner.type)+"."),J(r),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',m,_),J(null)}}function fr(r,u){{if(typeof r!="object")return;if(Le(r))for(var m=0;m<r.length;m++){var _=r[m];Me(_)&&cr(_,u)}else if(Me(r))r._store&&(r._store.validated=!0);else if(r){var O=S(r);if(typeof O=="function"&&O!==r.entries)for(var L=O.call(r),j;!(j=L.next()).done;)Me(j.value)&&cr(j.value,u)}}}function Lt(r){{var u=r.type;if(u==null||typeof u=="string")return;var m;if(typeof u=="function")m=u.propTypes;else if(typeof u=="object"&&(u.$$typeof===d||u.$$typeof===f))m=u.propTypes;else return;if(m){var _=I(u);yt(m,r.props,"prop",_,r)}else if(u.PropTypes!==void 0&&!Ae){Ae=!0;var O=I(u);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",O||"Unknown")}typeof u.getDefaultProps=="function"&&!u.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $t(r){{for(var u=Object.keys(r.props),m=0;m<u.length;m++){var _=u[m];if(_!=="children"&&_!=="key"){J(r),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",_),J(null);break}}r.ref!==null&&(J(r),x("Invalid attribute `ref` supplied to `React.Fragment`."),J(null))}}function dr(r,u,m,_,O,L){{var j=de(r);if(!j){var w="";(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var q=Ct();q?w+=q:w+=sr();var A;r===null?A="null":Le(r)?A="array":r!==void 0&&r.$$typeof===n?(A="<"+(I(r.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):A=typeof r,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",A,w)}var N=Ot(r,u,m,O,L);if(N==null)return N;if(j){var R=u.children;if(R!==void 0)if(_)if(Le(R)){for(var X=0;X<R.length;X++)fr(R[X],r);Object.freeze&&Object.freeze(R)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else fr(R,r)}return r===o?$t(N):Lt(N),N}}function At(r,u,m){return dr(r,u,m,!0)}function Mt(r,u,m){return dr(r,u,m,!1)}var Nt=Mt,kt=At;Z.Fragment=o,Z.jsx=Nt,Z.jsxs=kt}(),Z}var qe;function br(){if(qe)return oe.exports;qe=1;var e={};return e.NODE_ENV==="production"?oe.exports=hr():oe.exports=yr(),oe.exports}var v=br(),ue=e=>`--${e}`,Re=e=>`var(--${e})`,De=(e,t)=>`--${e}: ${t};`;function pr(e,t){const n=a=>t;return{b:()=>`${n()}-${e}`,be:a=>`${n()}-${e}__${a}`,bm:a=>`${n()}-${e}--${a}`,bem:(a,o)=>`${n()}-${e}__${a}--${o}`,bs:a=>`${n()}-${e}-${a}`,ns:a=>`${n()}-${a}`,cb:()=>`.${n()}-${e}`,cbe:a=>`.${n()}-${e}__${a}`,cbm:a=>`.${n()}-${e}--${a}`,cbem:(a,o)=>`.${n()}-${e}__${a}--${o}`,cbs:a=>`.${n()}-${e}-${a}`,cns:a=>`.${n()}-${a}`,cv:a=>ue(`${n()}-${e}-${a}`),cvm:(a,o={})=>{const l=n();for(const y of Object.keys(a))o[ue(`${l}-${e}-${y}`)]=a[y];return o},gcv:a=>Re(`${n()}-${e}-${a}`),scv:(a,o)=>De(`${n()}-${e}-${a}`,o),nv:a=>ue(`${n()}-${a}`),nvm:(a,o={})=>{const l=n();for(const y of Object.keys(a))o[ue(`${l}-${y}`)]=a[y];return o},gnv:a=>Re(`${n()}-${a}`),snv:(a,o)=>De(`${n()}-${a}`,o)}}function F(e){return c.useMemo(()=>pr(e,"twist"),[e])}function Ee(e,t){if(!t.current)return 0;let n=(e.clientX-t.current.getBoundingClientRect().left)/t.current.clientWidth;return n=Math.max(n,0),n=Math.min(n,1),n=Math.floor(n*100)/100,n}function xe(e,t){if(!t.current)return 0;let n=1-(e.clientY-t.current.getBoundingClientRect().top)/t.current.clientHeight;return n=Math.max(n,0),n=Math.min(n,1),n=Math.floor(n*100)/100,n}var Ve={color:void 0,size:void 0,className:void 0,style:void 0,attrs:void 0},_e=U.createContext(Ve);_e.Provider;function ee(e){"@babel/helpers - typeof";return ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ee(e)}var gr=["attrs","size","title","spin","rotate","color"];function Er(e,t){return Sr(e)||_r(e,t)||Ie(e,t)||xr()}function xr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
26
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _r(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a,o,l,y,p=[],s=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(s=(a=l.call(n)).done)&&(p.push(a.value),p.length!==t);s=!0);}catch(E){d=!0,o=E}finally{try{if(!s&&n.return!=null&&(y=n.return(),Object(y)!==y))return}finally{if(d)throw o}}return p}}function Sr(e){if(Array.isArray(e))return e}function Tr(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ie(e))||t){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
27
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,y=!0,p=!1;return{s:function(){n=n.call(e)},n:function(){var d=n.next();return y=d.done,d},e:function(d){p=!0,l=d},f:function(){try{y||n.return==null||n.return()}finally{if(p)throw l}}}}function Ie(e,t){if(e){if(typeof e=="string")return Fe(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fe(e,t):void 0}}function Fe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},se.apply(null,arguments)}function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Be(Object(n),!0).forEach(function(a){wr(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function wr(e,t,n){return(t=jr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jr(e){var t=Or(e,"string");return ee(t)=="symbol"?t:t+""}function Or(e,t){if(ee(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(ee(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cr(e,t){if(e==null)return{};var n,a,o=Pr(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Pr(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}function Lr(e){var t=e.attrs,n=e.size,a=e.title,o=e.spin,l=e.rotate,y=e.color,p=Cr(e,gr),s=function(E){var g=n||E.size||"1em",f,h="",T="";return E.className&&(f=E.className),e.className&&(f=f?"".concat(f," ").concat(e.className):e.className),o&&(f?f+=" twist-icon-loading":f="twist-icon-loading"),l&&(h="rotate(".concat(l,"deg)"),T="rotate(".concat(l,"deg)")),U.createElement("svg",se({xmlns:"http://www.w3.org/2000/svg"},E.attrs,t,p,{className:f,style:re(re({color:y||E.color,msTransform:h,transform:T},E.style),e.style),width:g,height:g}),a&&U.createElement("title",null,a),e.children)};return _e!==void 0?U.createElement(_e.Consumer,null,function(d){return s(d)}):s(Ve)}function $r(e){var t={},n=e.split(";"),a=Tr(n),o;try{for(a.s();!(o=a.n()).done;){var l=o.value,y=l.split(":"),p=Er(y,2),s=p[0],d=p[1];if(s&&d){var E=s.trim().replace(/-./g,function(g){return g.charAt(1).toUpperCase()});t[E]=d.trim()}}}catch(g){a.e(g)}finally{a.f()}return t}function ze(e){return e&&e.map(function(t,n){return U.createElement(t.tag,re(re({},t.attrs),{},{key:n,style:t.attrs.style?$r(t.attrs.style):null}),ze(t.children))})}function k(e){return function(t){return U.createElement(Lr,se({attrs:re({},e.attrs)},t),ze(e.children))}}function Ar(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12 2.25c-5.384 0-9.75 4.366-9.75 9.75s4.366 9.75 9.75 9.75v-2.437A7.312 7.312 0 1 1 19.313 12h2.437c0-5.384-4.366-9.75-9.75-9.75"}}]})(e)}function Mr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M18.25 12L8.5 17.629V6.37z"}}]})(e)}function He(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=He(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function $(){for(var e,t,n=0,a="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=He(e))&&(a&&(a+=" "),a+=t);return a}function Nr({bufferedPercentage:e,playedPercentage:t,onSeek:n}){const a=F("aplayer-bar"),o=F("aplayer-icon"),l=c.useRef(null),[y,p]=c.useState(t),s=c.useRef(!1);c.useEffect(()=>{s.current||p(t)},[t]);const d=c.useCallback(E=>{s.current=!0;const g=Ee(E,l);p(g);const f=T=>{const i=Ee(T,l);p(i)},h=T=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",h);const i=Ee(T,l);p(i),n==null||n(i),s.current=!1};document.addEventListener("mousemove",f),document.addEventListener("mouseup",h)},[n]);return v.jsx("div",{ref:l,className:$(a.b(),a.bs("vars")),onMouseDown:d,role:"slider","aria-label":"Audio progress","aria-valuenow":y?y*100:0,"aria-valuemin":0,"aria-valuemax":100,"aria-live":"polite",children:v.jsxs("div",{className:a.be("inner"),children:[typeof e<"u"?v.jsx("div",{className:a.be("loaded"),style:{width:`${e*100}%`}}):null,typeof y<"u"?v.jsx("div",{className:a.be("played"),style:{width:`${y*100}%`},children:v.jsx("span",{className:a.be("thumb"),children:v.jsx("span",{className:$(o.bs("loading")),children:v.jsx(Ar,{})})})}):null]})})}function kr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M16.15 13H5q-.425 0-.712-.288T4 12t.288-.712T5 11h11.15L13.3 8.15q-.3-.3-.288-.7t.288-.7q.3-.3.713-.312t.712.287L19.3 11.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-4.575 4.575q-.3.3-.712.288t-.713-.313q-.275-.3-.288-.7t.288-.7z"}}]})(e)}function qr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M10.5 17q1.05 0 1.775-.725T13 14.5V9h3V7h-4v5.5q-.325-.225-.7-.363T10.5 12q-1.05 0-1.775.725T8 14.5t.725 1.775T10.5 17M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h16q.825 0 1.413.588T22 6v12q0 .825-.587 1.413T20 20z"}}]})(e)}function Rr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M14 19V5h4v14zm-8 0V5h4v14z"}}]})(e)}function Dr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8 17.175V6.825q0-.425.3-.713t.7-.287q.125 0 .263.037t.262.113l8.15 5.175q.225.15.338.375t.112.475t-.112.475t-.338.375l-8.15 5.175q-.125.075-.262.113T9 18.175q-.4 0-.7-.288t-.3-.712"}}]})(e)}function Vr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M11.5 10.5h-.75q-.325 0-.537-.213T10 9.75t.213-.537T10.75 9H12q.425 0 .713.288T13 10v4.25q0 .325-.213.538T12.25 15t-.537-.213t-.213-.537zM6.85 19l.85.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L3.7 18.7q-.15-.15-.213-.325T3.426 18t.063-.375t.212-.325l2.575-2.575q.3-.3.713-.287t.712.312q.275.3.288.7t-.288.7l-.85.85H17v-3q0-.425.288-.712T18 13t.713.288T19 14v3q0 .825-.587 1.413T17 19zm10.3-12H7v3q0 .425-.288.713T6 11t-.712-.288T5 10V7q0-.825.588-1.412T7 5h10.15l-.85-.85q-.3-.3-.288-.7t.288-.7q.3-.3.712-.312t.713.287L20.3 5.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-2.575 2.575q-.3.3-.712.288T16.3 9.25q-.275-.3-.288-.7t.288-.7z"}}]})(e)}function Ir(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"m6.85 19l.85.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L3.7 18.7q-.15-.15-.213-.325T3.426 18t.063-.375t.212-.325l2.575-2.575q.3-.3.713-.287t.712.312q.275.3.288.7t-.288.7l-.85.85H17v-3q0-.425.288-.712T18 13t.713.288T19 14v3q0 .825-.587 1.413T17 19zm10.3-12H7v3q0 .425-.288.713T6 11t-.712-.288T5 10V7q0-.825.588-1.412T7 5h10.15l-.85-.85q-.3-.3-.288-.7t.288-.7q.3-.3.712-.312t.713.287L20.3 5.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-2.575 2.575q-.3.3-.712.288T16.3 9.25q-.275-.3-.288-.7t.288-.7z"}}]})(e)}function Fr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M9 15H6q-.425 0-.712-.288T5 14v-4q0-.425.288-.712T6 9h3l3.3-3.3q.475-.475 1.088-.213t.612.938v11.15q0 .675-.612.938T12.3 18.3zm9.5-3q0 1.05-.475 1.988t-1.25 1.537q-.25.15-.512.013T16 15.1V8.85q0-.3.263-.437t.512.012q.775.625 1.25 1.575t.475 2"}}]})(e)}function Br(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7 15V9h4l5-5v16l-5-5z"}}]})(e)}function zr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M19 11.975q0-2.075-1.1-3.787t-2.95-2.563q-.375-.175-.55-.537t-.05-.738q.15-.4.538-.575t.787 0Q18.1 4.85 19.55 7.063T21 11.974t-1.45 4.913t-3.875 3.287q-.4.175-.788 0t-.537-.575q-.125-.375.05-.737t.55-.538q1.85-.85 2.95-2.562t1.1-3.788M7 15H4q-.425 0-.712-.288T3 14v-4q0-.425.288-.712T4 9h3l3.3-3.3q.475-.475 1.088-.213t.612.938v11.15q0 .675-.612.938T10.3 18.3zm9.5-3q0 1.05-.475 1.988t-1.25 1.537q-.25.15-.513.013T14 15.1V8.85q0-.3.263-.437t.512.012q.775.625 1.25 1.575t.475 2"}}]})(e)}function Hr({volume:e,muted:t,onToggleMuted:n,onChangeVolume:a}){const o=F("aplayer-volumn"),l=F("aplayer-icon"),y=c.useRef(null),[p,s]=c.useState(!1),d=c.useCallback(E=>{a(xe(E,y)),s(!0);const g=h=>{a(xe(h,y))},f=h=>{document.removeEventListener("mouseup",f),document.removeEventListener("mousemove",g),s(!1),a(xe(h,y))};document.addEventListener("mousemove",g),document.addEventListener("mouseup",f)},[a]);return v.jsxs("div",{className:$(o.b(),o.bs("vars")),children:[v.jsx("button",{type:"button",className:$(l.b(),l.bs("volume-down")),onClick:()=>n(),"aria-label":t||!e?"Muted":"unMuted",children:t||!e?v.jsx(Br,{}):e>=1?v.jsx(zr,{}):v.jsx(Fr,{})}),v.jsx("div",{className:$(o.be("bar-wrap"),{[o.bem("bar-wrap","active")]:p}),ref:y,onMouseDown:d,children:v.jsx("div",{className:o.be("bar"),children:v.jsx("div",{className:o.be("thumb"),style:{height:t?0:`${e*100}%`}})})})]})}function We(e){if(typeof e>"u")return"--:--";if(Number.isNaN(e))return"00:00";const t=y=>y<10?`0${y}`:`${y}`,n=Math.trunc(e/60),a=Math.trunc(e-n*60),o=Math.trunc(n/60),l=Math.trunc(e/60-60*Math.trunc(e/60/60));return e>=3600?`${t(o)}:${t(l)}:${t(a)}`:`${t(n)}:${t(a)}`}function Wr(e){return k({attrs:{viewBox:"0 0 1024 1024"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M485.6 249.9L198.2 498c-8.3 7.1-8.3 20.8 0 27.9l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9m320 0L518.2 498a18.6 18.6 0 0 0-6.2 14c0 5.2 2.1 10.4 6.2 14l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9"}}]})(e)}function Ur(e){return k({attrs:{viewBox:"0 0 1024 1024"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M825.8 498L538.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L825.8 526c8.3-7.2 8.3-20.8 0-28m-320 0L218.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L505.8 526c4.1-3.6 6.2-8.8 6.2-14s-2.1-10.4-6.2-14"}}]})(e)}function Yr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z"}}]})(e)}function Gr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2 5.27L3.28 4L20 20.72L18.73 22l-3-3H7v3l-4-4l4-4v3h6.73L7 10.27V11H5V8.27zM17 13h2v4.18l-2-2zm0-8V2l4 4l-4 4V7H8.82l-2-2z"}}]})(e)}function Kr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"m17 3l5.25 4.5L17 12l5.25 4.5L17 21v-3h-2.74l-2.82-2.82l2.12-2.12L15.5 15H17V9h-1.5l-9 9H2v-3h3.26l9-9H17zM2 6h4.5l2.82 2.82l-2.12 2.12L5.26 9H2z"}}]})(e)}function Jr({volume:e,onChangeVolume:t,muted:n,currentTime:a,audioDurationSeconds:o,bufferedSeconds:l,onToggleMenu:y,onToggleMuted:p,order:s,onOrderChange:d,loop:E,onLoopChange:g,onSeek:f,isPlaying:h,onTogglePlay:T,onSkipForward:i,onSkipBack:b,showLyrics:S=!0,onToggleLyrics:C}){const x=F("aplayer-controller"),M=F("aplayer-icon"),G=c.useCallback(()=>{const D={list:"random",random:"list"}[s];d(D)},[s,d]),te=c.useCallback(()=>{const D={all:"one",one:"none",none:"all"}[E];g(D)},[E,g]);return v.jsxs("div",{className:$(x.b(),x.bs("vars")),role:"group","aria-label":"Audio Controls",children:[v.jsx(Nr,{playedPercentage:typeof a>"u"||typeof o>"u"?void 0:a/o,bufferedPercentage:typeof l>"u"||typeof o>"u"?void 0:l/o,onSeek:D=>f==null?void 0:f(D*o)}),v.jsxs("div",{className:x.be("time"),children:[v.jsxs("span",{className:x.be("time-inner"),"aria-live":"polite",children:[v.jsx("span",{className:x.be("ptime"),children:We(a)})," / ",v.jsx("span",{className:x.be("dtime"),children:We(o)})]}),v.jsx("button",{className:$(M.b(),M.bs("back")),onClick:b,type:"button","aria-label":"Previous track",children:v.jsx(Wr,{})}),v.jsx("button",{className:$(M.b(),M.bs("play")),onClick:T,type:"button","aria-label":h?"Pause audio":"Play audio",children:h?v.jsx(Rr,{}):v.jsx(Dr,{})}),v.jsx("button",{className:$(M.b(),M.bs("forward")),onClick:i,type:"button","aria-label":"Next track",children:v.jsx(Ur,{})}),v.jsx(Hr,{volume:e,muted:n,onToggleMuted:p,onChangeVolume:t}),v.jsx("button",{className:$(M.b(),M.bs("order")),onClick:G,type:"button","aria-label":`Playback order: ${s}`,children:{list:v.jsx(kr,{}),random:v.jsx(Kr,{})}[s]}),v.jsx("button",{className:$(M.b(),M.bs("order")),onClick:te,type:"button","aria-label":`Loop mode: ${E}`,children:{all:v.jsx(Ir,{}),one:v.jsx(Vr,{}),none:v.jsx(Gr,{})}[E]}),v.jsx("button",{type:"button",className:$(M.b(),M.bs("menu")),onClick:()=>y==null?void 0:y(),"aria-label":"Toggle playlist menu",children:v.jsx(Yr,{})}),v.jsx("button",{type:"button",className:$(M.b(),M.bs("lrc"),{[M.ns("lrc-inactivity")]:!S}),onClick:C,"aria-label":S?"Hide lyrics":"Show lyrics","aria-pressed":S,children:v.jsx(qr,{})})]})]})}function Xr({open:e,audio:t,playingAudioUrl:n,onPlayAudio:a,listMaxHeight:o}){const l=F("aplayer-list"),y=o?{maxHeight:o}:void 0,p=c.useCallback(d=>d?typeof d=="string"?d:d.name??"Audio artist":"Audio artist",[]),s=c.useRef(null);return c.useEffect(()=>{if(s.current){const d=s.current;return d.style.maxHeight=`${Math.min(d.scrollHeight,o??1/0)}px`,()=>{d.removeAttribute("style")}}},[o]),v.jsx("div",{ref:s,className:$(l.b(),{[l.bm("hide")]:!e}),"aria-label":"Audio playlist","aria-live":"polite",children:v.jsx("ol",{style:y,children:t.map((d,E)=>v.jsxs("li",{className:$({[l.bm("active")]:d.url===n}),onClick:()=>{d.url!==n&&(a==null||a(d))},role:"button","aria-label":`${d.name??"Audio name"} by ${p(d.artist)}}`,children:[v.jsx("span",{className:l.be("cur")}),v.jsx("span",{className:l.be("index"),children:E+1}),v.jsx("span",{className:l.be("title"),children:d.name??"Audio name"}),v.jsx("span",{className:l.be("author"),children:p(d.artist)})]},d.name||E))})})}function Ue({show:e,lrcText:t,currentTime:n}){const a=F("aplayer-lrc"),o=c.useMemo(()=>Qr(t),[t]),l=c.useMemo(()=>{for(let p=0;p<o.length;p++){const s=o[p],d=o[p+1];if(n>=s[0]&&(!d||n<d[0]))return p}return 0},[n,o]),y=c.useMemo(()=>({transform:`translateY(${-l*16}px)`,WebkitTransform:`translateY(${-l*16}px)`}),[l]);return v.jsx("div",{className:$(a.b(),{[a.bm("hide")]:!e}),children:t?v.jsx("div",{className:a.be("contents"),style:y,children:o.map(([,p],s)=>v.jsx("p",{className:$({[a.be("current")]:s===l}),children:p},s))}):null})}function Qr(e){if(e){e=e.replace(/([^\]^\n])\[/g,(o,l)=>`${l}
25
+ Check the top-level render call using <`+m+">.")}return u}}function cr(r,u){{if(!r._store||r._store.validated||r.key!=null)return;r._store.validated=!0;var m=Pt(u);if(lr[m])return;lr[m]=!0;var _="";r&&r._owner&&r._owner!==Ae.current&&(_=" It was passed a child from "+D(r._owner.type)+"."),J(r),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',m,_),J(null)}}function fr(r,u){{if(typeof r!="object")return;if($e(r))for(var m=0;m<r.length;m++){var _=r[m];Ne(_)&&cr(_,u)}else if(Ne(r))r._store&&(r._store.validated=!0);else if(r){var C=S(r);if(typeof C=="function"&&C!==r.entries)for(var L=C.call(r),j;!(j=L.next()).done;)Ne(j.value)&&cr(j.value,u)}}}function Lt(r){{var u=r.type;if(u==null||typeof u=="string")return;var m;if(typeof u=="function")m=u.propTypes;else if(typeof u=="object"&&(u.$$typeof===d||u.$$typeof===f))m=u.propTypes;else return;if(m){var _=D(u);yt(m,r.props,"prop",_,r)}else if(u.PropTypes!==void 0&&!Me){Me=!0;var C=D(u);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",C||"Unknown")}typeof u.getDefaultProps=="function"&&!u.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $t(r){{for(var u=Object.keys(r.props),m=0;m<u.length;m++){var _=u[m];if(_!=="children"&&_!=="key"){J(r),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",_),J(null);break}}r.ref!==null&&(J(r),x("Invalid attribute `ref` supplied to `React.Fragment`."),J(null))}}function dr(r,u,m,_,C,L){{var j=je(r);if(!j){var w="";(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var q=Ct();q?w+=q:w+=sr();var A;r===null?A="null":$e(r)?A="array":r!==void 0&&r.$$typeof===n?(A="<"+(D(r.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):A=typeof r,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",A,w)}var N=Ot(r,u,m,C,L);if(N==null)return N;if(j){var R=u.children;if(R!==void 0)if(_)if($e(R)){for(var X=0;X<R.length;X++)fr(R[X],r);Object.freeze&&Object.freeze(R)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else fr(R,r)}return r===o?$t(N):Lt(N),N}}function At(r,u,m){return dr(r,u,m,!0)}function Mt(r,u,m){return dr(r,u,m,!1)}var Nt=Mt,kt=At;Z.Fragment=o,Z.jsx=Nt,Z.jsxs=kt}(),Z}var Re;function pr(){if(Re)return le.exports;Re=1;var e={};return e.NODE_ENV==="production"?le.exports=hr():le.exports=yr(),le.exports}var v=pr(),ce=e=>`--${e}`,De=e=>`var(--${e})`,Ve=(e,t)=>`--${e}: ${t};`;function br(e,t){const n=a=>t;return{b:()=>`${n()}-${e}`,be:a=>`${n()}-${e}__${a}`,bm:a=>`${n()}-${e}--${a}`,bem:(a,o)=>`${n()}-${e}__${a}--${o}`,bs:a=>`${n()}-${e}-${a}`,ns:a=>`${n()}-${a}`,cb:()=>`.${n()}-${e}`,cbe:a=>`.${n()}-${e}__${a}`,cbm:a=>`.${n()}-${e}--${a}`,cbem:(a,o)=>`.${n()}-${e}__${a}--${o}`,cbs:a=>`.${n()}-${e}-${a}`,cns:a=>`.${n()}-${a}`,cv:a=>ce(`${n()}-${e}-${a}`),cvm:(a,o={})=>{const l=n();for(const y of Object.keys(a))o[ce(`${l}-${e}-${y}`)]=a[y];return o},gcv:a=>De(`${n()}-${e}-${a}`),scv:(a,o)=>Ve(`${n()}-${e}-${a}`,o),nv:a=>ce(`${n()}-${a}`),nvm:(a,o={})=>{const l=n();for(const y of Object.keys(a))o[ce(`${l}-${y}`)]=a[y];return o},gnv:a=>De(`${n()}-${a}`),snv:(a,o)=>Ve(`${n()}-${a}`,o)}}function V(e){return c.useMemo(()=>br(e,"twist"),[e])}function Ee(e,t){if(!t.current)return 0;let n=(e.clientX-t.current.getBoundingClientRect().left)/t.current.clientWidth;return n=Math.max(n,0),n=Math.min(n,1),n=Math.floor(n*100)/100,n}function xe(e,t){if(!t.current)return 0;let n=1-(e.clientY-t.current.getBoundingClientRect().top)/t.current.clientHeight;return n=Math.max(n,0),n=Math.min(n,1),n=Math.floor(n*100)/100,n}var Ie={color:void 0,size:void 0,className:void 0,style:void 0,attrs:void 0},_e=Y.createContext(Ie);_e.Provider;function ee(e){"@babel/helpers - typeof";return ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ee(e)}var gr=["attrs","size","title","spin","rotate","color"];function Er(e,t){return Sr(e)||_r(e,t)||Fe(e,t)||xr()}function xr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
26
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _r(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a,o,l,y,b=[],s=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(s=(a=l.call(n)).done)&&(b.push(a.value),b.length!==t);s=!0);}catch(E){d=!0,o=E}finally{try{if(!s&&n.return!=null&&(y=n.return(),Object(y)!==y))return}finally{if(d)throw o}}return b}}function Sr(e){if(Array.isArray(e))return e}function Tr(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Fe(e))||t){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
27
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,y=!0,b=!1;return{s:function(){n=n.call(e)},n:function(){var d=n.next();return y=d.done,d},e:function(d){b=!0,l=d},f:function(){try{y||n.return==null||n.return()}finally{if(b)throw l}}}}function Fe(e,t){if(e){if(typeof e=="string")return Be(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Be(e,t):void 0}}function Be(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},fe.apply(null,arguments)}function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ze(Object(n),!0).forEach(function(a){wr(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function wr(e,t,n){return(t=jr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jr(e){var t=Or(e,"string");return ee(t)=="symbol"?t:t+""}function Or(e,t){if(ee(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(ee(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cr(e,t){if(e==null)return{};var n,a,o=Pr(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Pr(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}function Lr(e){var t=e.attrs,n=e.size,a=e.title,o=e.spin,l=e.rotate,y=e.color,b=Cr(e,gr),s=function(E){var g=n||E.size||"1em",f,h="",T="";return E.className&&(f=E.className),e.className&&(f=f?"".concat(f," ").concat(e.className):e.className),o&&(f?f+=" twist-icon-loading":f="twist-icon-loading"),l&&(h="rotate(".concat(l,"deg)"),T="rotate(".concat(l,"deg)")),Y.createElement("svg",fe({xmlns:"http://www.w3.org/2000/svg"},E.attrs,t,b,{className:f,style:re(re({color:y||E.color,msTransform:h,transform:T},E.style),e.style),width:g,height:g}),a&&Y.createElement("title",null,a),e.children)};return _e!==void 0?Y.createElement(_e.Consumer,null,function(d){return s(d)}):s(Ie)}function $r(e){var t={},n=e.split(";"),a=Tr(n),o;try{for(a.s();!(o=a.n()).done;){var l=o.value,y=l.split(":"),b=Er(y,2),s=b[0],d=b[1];if(s&&d){var E=s.trim().replace(/-./g,function(g){return g.charAt(1).toUpperCase()});t[E]=d.trim()}}}catch(g){a.e(g)}finally{a.f()}return t}function He(e){return e&&e.map(function(t,n){return Y.createElement(t.tag,re(re({},t.attrs),{},{key:n,style:t.attrs.style?$r(t.attrs.style):null}),He(t.children))})}function k(e){return function(t){return Y.createElement(Lr,fe({attrs:re({},e.attrs)},t),He(e.children))}}function Ar(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12 2.25c-5.384 0-9.75 4.366-9.75 9.75s4.366 9.75 9.75 9.75v-2.437A7.312 7.312 0 1 1 19.313 12h2.437c0-5.384-4.366-9.75-9.75-9.75"}}]})(e)}function Mr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M18.25 12L8.5 17.629V6.37z"}}]})(e)}function Ue(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ue(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function $(){for(var e,t,n=0,a="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ue(e))&&(a&&(a+=" "),a+=t);return a}function Nr({bufferedPercentage:e,playedPercentage:t,onSeek:n}){const a=V("aplayer-bar"),o=V("aplayer-icon"),l=c.useRef(null),[y,b]=c.useState(t),s=c.useRef(!1);c.useEffect(()=>{s.current||b(t)},[t]);const d=c.useCallback(E=>{s.current=!0;const g=Ee(E,l);b(g);const f=T=>{const i=Ee(T,l);b(i)},h=T=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",h);const i=Ee(T,l);b(i),n==null||n(i),s.current=!1};document.addEventListener("mousemove",f),document.addEventListener("mouseup",h)},[n]);return v.jsx("div",{ref:l,className:$(a.b(),a.bs("vars")),onMouseDown:d,role:"slider","aria-label":"Audio progress","aria-valuenow":y?y*100:0,"aria-valuemin":0,"aria-valuemax":100,"aria-live":"polite",children:v.jsxs("div",{className:a.be("inner"),children:[typeof e<"u"?v.jsx("div",{className:a.be("loaded"),style:{width:`${e*100}%`}}):null,typeof y<"u"?v.jsx("div",{className:a.be("played"),style:{width:`${y*100}%`},children:v.jsx("span",{className:a.be("thumb"),children:v.jsx("span",{className:$(o.bs("loading")),children:v.jsx(Ar,{})})})}):null]})})}function kr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M16.15 13H5q-.425 0-.712-.288T4 12t.288-.712T5 11h11.15L13.3 8.15q-.3-.3-.288-.7t.288-.7q.3-.3.713-.312t.712.287L19.3 11.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-4.575 4.575q-.3.3-.712.288t-.713-.313q-.275-.3-.288-.7t.288-.7z"}}]})(e)}function qr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M10.5 17q1.05 0 1.775-.725T13 14.5V9h3V7h-4v5.5q-.325-.225-.7-.363T10.5 12q-1.05 0-1.775.725T8 14.5t.725 1.775T10.5 17M4 20q-.825 0-1.412-.587T2 18V6q0-.825.588-1.412T4 4h16q.825 0 1.413.588T22 6v12q0 .825-.587 1.413T20 20z"}}]})(e)}function Rr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M14 19V5h4v14zm-8 0V5h4v14z"}}]})(e)}function Dr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8 17.175V6.825q0-.425.3-.713t.7-.287q.125 0 .263.037t.262.113l8.15 5.175q.225.15.338.375t.112.475t-.112.475t-.338.375l-8.15 5.175q-.125.075-.262.113T9 18.175q-.4 0-.7-.288t-.3-.712"}}]})(e)}function Vr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M11.5 10.5h-.75q-.325 0-.537-.213T10 9.75t.213-.537T10.75 9H12q.425 0 .713.288T13 10v4.25q0 .325-.213.538T12.25 15t-.537-.213t-.213-.537zM6.85 19l.85.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L3.7 18.7q-.15-.15-.213-.325T3.426 18t.063-.375t.212-.325l2.575-2.575q.3-.3.713-.287t.712.312q.275.3.288.7t-.288.7l-.85.85H17v-3q0-.425.288-.712T18 13t.713.288T19 14v3q0 .825-.587 1.413T17 19zm10.3-12H7v3q0 .425-.288.713T6 11t-.712-.288T5 10V7q0-.825.588-1.412T7 5h10.15l-.85-.85q-.3-.3-.288-.7t.288-.7q.3-.3.712-.312t.713.287L20.3 5.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-2.575 2.575q-.3.3-.712.288T16.3 9.25q-.275-.3-.288-.7t.288-.7z"}}]})(e)}function Ir(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"m6.85 19l.85.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L3.7 18.7q-.15-.15-.213-.325T3.426 18t.063-.375t.212-.325l2.575-2.575q.3-.3.713-.287t.712.312q.275.3.288.7t-.288.7l-.85.85H17v-3q0-.425.288-.712T18 13t.713.288T19 14v3q0 .825-.587 1.413T17 19zm10.3-12H7v3q0 .425-.288.713T6 11t-.712-.288T5 10V7q0-.825.588-1.412T7 5h10.15l-.85-.85q-.3-.3-.288-.7t.288-.7q.3-.3.712-.312t.713.287L20.3 5.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-2.575 2.575q-.3.3-.712.288T16.3 9.25q-.275-.3-.288-.7t.288-.7z"}}]})(e)}function Fr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M9 15H6q-.425 0-.712-.288T5 14v-4q0-.425.288-.712T6 9h3l3.3-3.3q.475-.475 1.088-.213t.612.938v11.15q0 .675-.612.938T12.3 18.3zm9.5-3q0 1.05-.475 1.988t-1.25 1.537q-.25.15-.512.013T16 15.1V8.85q0-.3.263-.437t.512.012q.775.625 1.25 1.575t.475 2"}}]})(e)}function Br(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7 15V9h4l5-5v16l-5-5z"}}]})(e)}function zr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M19 11.975q0-2.075-1.1-3.787t-2.95-2.563q-.375-.175-.55-.537t-.05-.738q.15-.4.538-.575t.787 0Q18.1 4.85 19.55 7.063T21 11.974t-1.45 4.913t-3.875 3.287q-.4.175-.788 0t-.537-.575q-.125-.375.05-.737t.55-.538q1.85-.85 2.95-2.562t1.1-3.788M7 15H4q-.425 0-.712-.288T3 14v-4q0-.425.288-.712T4 9h3l3.3-3.3q.475-.475 1.088-.213t.612.938v11.15q0 .675-.612.938T10.3 18.3zm9.5-3q0 1.05-.475 1.988t-1.25 1.537q-.25.15-.513.013T14 15.1V8.85q0-.3.263-.437t.512.012q.775.625 1.25 1.575t.475 2"}}]})(e)}function Hr({volume:e,muted:t,onToggleMuted:n,onChangeVolume:a}){const o=V("aplayer-volumn"),l=V("aplayer-icon"),y=c.useRef(null),[b,s]=c.useState(!1),d=c.useCallback(E=>{a(xe(E,y)),s(!0);const g=h=>{a(xe(h,y))},f=h=>{document.removeEventListener("mouseup",f),document.removeEventListener("mousemove",g),s(!1),a(xe(h,y))};document.addEventListener("mousemove",g),document.addEventListener("mouseup",f)},[a]);return v.jsxs("div",{className:$(o.b(),o.bs("vars")),children:[v.jsx("button",{type:"button",className:$(l.b(),l.bs("volume-down")),onClick:()=>n(),"aria-label":t||!e?"Muted":"unMuted",children:t||!e?v.jsx(Br,{}):e>=1?v.jsx(zr,{}):v.jsx(Fr,{})}),v.jsx("div",{className:$(o.be("bar-wrap"),{[o.bem("bar-wrap","active")]:b}),ref:y,onMouseDown:d,children:v.jsx("div",{className:o.be("bar"),children:v.jsx("div",{className:o.be("thumb"),style:{height:t?0:`${e*100}%`}})})})]})}function We(e){if(typeof e>"u")return"--:--";if(Number.isNaN(e))return"00:00";const t=y=>y<10?`0${y}`:`${y}`,n=Math.trunc(e/60),a=Math.trunc(e-n*60),o=Math.trunc(n/60),l=Math.trunc(e/60-60*Math.trunc(e/60/60));return e>=3600?`${t(o)}:${t(l)}:${t(a)}`:`${t(n)}:${t(a)}`}function Ur(e){return k({attrs:{viewBox:"0 0 1024 1024"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M485.6 249.9L198.2 498c-8.3 7.1-8.3 20.8 0 27.9l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9m320 0L518.2 498a18.6 18.6 0 0 0-6.2 14c0 5.2 2.1 10.4 6.2 14l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9"}}]})(e)}function Wr(e){return k({attrs:{viewBox:"0 0 1024 1024"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M825.8 498L538.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L825.8 526c8.3-7.2 8.3-20.8 0-28m-320 0L218.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L505.8 526c4.1-3.6 6.2-8.8 6.2-14s-2.1-10.4-6.2-14"}}]})(e)}function Yr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z"}}]})(e)}function Gr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2 5.27L3.28 4L20 20.72L18.73 22l-3-3H7v3l-4-4l4-4v3h6.73L7 10.27V11H5V8.27zM17 13h2v4.18l-2-2zm0-8V2l4 4l-4 4V7H8.82l-2-2z"}}]})(e)}function Kr(e){return k({attrs:{viewBox:"0 0 24 24"},children:[{tag:"path",attrs:{fill:"currentColor",d:"m17 3l5.25 4.5L17 12l5.25 4.5L17 21v-3h-2.74l-2.82-2.82l2.12-2.12L15.5 15H17V9h-1.5l-9 9H2v-3h3.26l9-9H17zM2 6h4.5l2.82 2.82l-2.12 2.12L5.26 9H2z"}}]})(e)}function Jr({volume:e,onChangeVolume:t,muted:n,currentTime:a,audioDurationSeconds:o,bufferedSeconds:l,onToggleMenu:y,onToggleMuted:b,order:s,onOrderChange:d,loop:E,onLoopChange:g,onSeek:f,isPlaying:h,onTogglePlay:T,onSkipForward:i,onSkipBack:p,showLyrics:S=!0,onToggleLyrics:P}){const x=V("aplayer-controller"),M=V("aplayer-icon"),te=c.useCallback(()=>{const I={list:"random",random:"list"}[s];d(I)},[s,d]),W=c.useCallback(()=>{const I={all:"one",one:"none",none:"all"}[E];g(I)},[E,g]);return v.jsxs("div",{className:$(x.b(),x.bs("vars")),role:"group","aria-label":"Audio Controls",children:[v.jsx(Nr,{playedPercentage:typeof a>"u"||typeof o>"u"?void 0:a/o,bufferedPercentage:typeof l>"u"||typeof o>"u"?void 0:l/o,onSeek:I=>f==null?void 0:f(I*o)}),v.jsxs("div",{className:x.be("time"),children:[v.jsxs("span",{className:x.be("time-inner"),"aria-live":"polite",children:[v.jsx("span",{className:x.be("ptime"),children:We(a)})," / ",v.jsx("span",{className:x.be("dtime"),children:We(o)})]}),v.jsx("button",{className:$(M.b(),M.bs("back")),onClick:p,type:"button","aria-label":"Previous track",children:v.jsx(Ur,{})}),v.jsx("button",{className:$(M.b(),M.bs("play")),onClick:T,type:"button","aria-label":h?"Pause audio":"Play audio",children:h?v.jsx(Rr,{}):v.jsx(Dr,{})}),v.jsx("button",{className:$(M.b(),M.bs("forward")),onClick:i,type:"button","aria-label":"Next track",children:v.jsx(Wr,{})}),v.jsx(Hr,{volume:e,muted:n,onToggleMuted:b,onChangeVolume:t}),v.jsx("button",{className:$(M.b(),M.bs("order")),onClick:te,type:"button","aria-label":`Playback order: ${s}`,children:{list:v.jsx(kr,{}),random:v.jsx(Kr,{})}[s]}),v.jsx("button",{className:$(M.b(),M.bs("order")),onClick:W,type:"button","aria-label":`Loop mode: ${E}`,children:{all:v.jsx(Ir,{}),one:v.jsx(Vr,{}),none:v.jsx(Gr,{})}[E]}),v.jsx("button",{type:"button",className:$(M.b(),M.bs("menu")),onClick:()=>y==null?void 0:y(),"aria-label":"Toggle playlist menu",children:v.jsx(Yr,{})}),v.jsx("button",{type:"button",className:$(M.b(),M.bs("lrc"),{[M.ns("lrc-inactivity")]:!S}),onClick:P,"aria-label":S?"Hide lyrics":"Show lyrics","aria-pressed":S,children:v.jsx(qr,{})})]})]})}function Xr({open:e,audio:t,playingAudioUrl:n,onPlayAudio:a,listMaxHeight:o}){const l=V("aplayer-list"),y=o?{maxHeight:o}:void 0,b=c.useCallback(d=>d?typeof d=="string"?d:d.name??"Audio artist":"Audio artist",[]),s=c.useRef(null);return c.useEffect(()=>{if(s.current){const d=s.current;return d.style.maxHeight=`${Math.min(d.scrollHeight,o??1/0)}px`,()=>{d.removeAttribute("style")}}},[o]),v.jsx("div",{ref:s,className:$(l.b(),{[l.bm("hide")]:!e}),"aria-label":"Audio playlist","aria-live":"polite",children:v.jsx("ol",{style:y,children:t.map((d,E)=>v.jsxs("li",{className:$({[l.bm("active")]:d.url===n}),onClick:()=>{d.url!==n&&(a==null||a(d))},role:"button","aria-label":`${d.name??"Audio name"} by ${b(d.artist)}}`,children:[v.jsx("span",{className:l.be("cur")}),v.jsx("span",{className:l.be("index"),children:E+1}),v.jsx("span",{className:l.be("title"),children:d.name??"Audio name"}),v.jsx("span",{className:l.be("author"),children:b(d.artist)})]},d.name||E))})})}function Ye({show:e,lrcText:t,currentTime:n}){const a=V("aplayer-lrc"),o=c.useMemo(()=>Qr(t),[t]),l=c.useMemo(()=>{for(let b=0;b<o.length;b++){const s=o[b],d=o[b+1];if(n>=s[0]&&(!d||n<d[0]))return b}return 0},[n,o]),y=c.useMemo(()=>({transform:`translateY(${-l*16}px)`,WebkitTransform:`translateY(${-l*16}px)`}),[l]);return v.jsx("div",{className:$(a.b(),{[a.bm("hide")]:!e}),children:t?v.jsx("div",{className:a.be("contents"),style:y,children:o.map(([,b],s)=>v.jsx("p",{className:$({[a.be("current")]:s===l}),children:b},s))}):null})}function Qr(e){if(e){e=e.replace(/([^\]^\n])\[/g,(o,l)=>`${l}
28
28
  [`);const t=e.split(`
29
- `),n=[],a=t.length;for(let o=0;o<a;o++){const l=t[o].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g),y=t[o].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g,"").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g,"").replace(/^\s+|\s+$/g,"");if(l){const p=l.length;for(let s=0;s<p;s++){const d=/\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/.exec(l[s]),E=d[1]*60,g=Number.parseInt(d[2]),f=d[4]?Number.parseInt(d[4])/(`${d[4]}`.length===2?100:1e3):0,h=E+g+f;n.push([h,y])}}}return n.sort((o,l)=>o[0]-l[0]),n}else return[]}var le={exports:{}},Se={};/**
29
+ `),n=[],a=t.length;for(let o=0;o<a;o++){const l=t[o].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g),y=t[o].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/g,"").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g,"").replace(/^\s+|\s+$/g,"");if(l){const b=l.length;for(let s=0;s<b;s++){const d=/\[(\d{2}):(\d{2})(\.(\d{2,3}))?\]/.exec(l[s]),E=d[1]*60,g=Number.parseInt(d[2]),f=d[4]?Number.parseInt(d[4])/(`${d[4]}`.length===2?100:1e3):0,h=E+g+f;n.push([h,y])}}}return n.sort((o,l)=>o[0]-l[0]),n}else return[]}var de={exports:{}},Se={};/**
30
30
  * @license React
31
31
  * use-sync-external-store-shim.production.js
32
32
  *
@@ -34,7 +34,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
34
34
  *
35
35
  * This source code is licensed under the MIT license found in the
36
36
  * LICENSE file in the root directory of this source tree.
37
- */var Ye;function Zr(){if(Ye)return Se;Ye=1;var e=c;function t(g,f){return g===f&&(g!==0||1/g===1/f)||g!==g&&f!==f}var n=typeof Object.is=="function"?Object.is:t,a=e.useState,o=e.useEffect,l=e.useLayoutEffect,y=e.useDebugValue;function p(g,f){var h=f(),T=a({inst:{value:h,getSnapshot:f}}),i=T[0].inst,b=T[1];return l(function(){i.value=h,i.getSnapshot=f,s(i)&&b({inst:i})},[g,h,f]),o(function(){return s(i)&&b({inst:i}),g(function(){s(i)&&b({inst:i})})},[g]),y(h),h}function s(g){var f=g.getSnapshot;g=g.value;try{var h=f();return!n(g,h)}catch{return!0}}function d(g,f){return f()}var E=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:p;return Se.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:E,Se}var Te={},Ge;function et(){if(Ge)return Te;Ge=1;var e={};/**
37
+ */var Ge;function Zr(){if(Ge)return Se;Ge=1;var e=c;function t(g,f){return g===f&&(g!==0||1/g===1/f)||g!==g&&f!==f}var n=typeof Object.is=="function"?Object.is:t,a=e.useState,o=e.useEffect,l=e.useLayoutEffect,y=e.useDebugValue;function b(g,f){var h=f(),T=a({inst:{value:h,getSnapshot:f}}),i=T[0].inst,p=T[1];return l(function(){i.value=h,i.getSnapshot=f,s(i)&&p({inst:i})},[g,h,f]),o(function(){return s(i)&&p({inst:i}),g(function(){s(i)&&p({inst:i})})},[g]),y(h),h}function s(g){var f=g.getSnapshot;g=g.value;try{var h=f();return!n(g,h)}catch{return!0}}function d(g,f){return f()}var E=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:b;return Se.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:E,Se}var Te={},Ke;function et(){if(Ke)return Te;Ke=1;var e={};/**
38
38
  * @license React
39
39
  * use-sync-external-store-shim.development.js
40
40
  *
@@ -42,4 +42,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
42
42
  *
43
43
  * This source code is licensed under the MIT license found in the
44
44
  * LICENSE file in the root directory of this source tree.
45
- */return e.NODE_ENV!=="production"&&function(){function t(T,i){return T===i&&(T!==0||1/T===1/i)||T!==T&&i!==i}function n(T,i){g||l.startTransition===void 0||(g=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var b=i();if(!f){var S=i();y(b,S)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}S=p({inst:{value:b,getSnapshot:i}});var C=S[0].inst,x=S[1];return d(function(){C.value=b,C.getSnapshot=i,a(C)&&x({inst:C})},[T,b,i]),s(function(){return a(C)&&x({inst:C}),T(function(){a(C)&&x({inst:C})})},[T]),E(b),b}function a(T){var i=T.getSnapshot;T=T.value;try{var b=i();return!y(T,b)}catch{return!0}}function o(T,i){return i()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var l=c,y=typeof Object.is=="function"?Object.is:t,p=l.useState,s=l.useEffect,d=l.useLayoutEffect,E=l.useDebugValue,g=!1,f=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:n;Te.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),Te}var Ke;function rt(){if(Ke)return le.exports;Ke=1;var e={};return e.NODE_ENV==="production"?le.exports=Zr():le.exports=et(),le.exports}var H=rt();const Y=[];function tt(e){const t=c.useRef();return c.useEffect(()=>{if(typeof window<"u"&&!t.current){const n=t.current=document.createElement("audio");typeof(e==null?void 0:e.src)<"u"&&(n.src=e.src),typeof(e==null?void 0:e.autoPlay)<"u"&&(n.autoplay=e.autoPlay),typeof(e==null?void 0:e.initialVolume)<"u"&&(n.volume=e.initialVolume),Y.includes(n)||Y.push(n)}},[e==null?void 0:e.autoPlay,e==null?void 0:e.initialVolume,e==null?void 0:e.src]),c.useEffect(()=>{if(typeof window>"u")return;const n=t.current;if(n&&(e!=null&&e.onError))return n.addEventListener("error",e.onError),()=>{n.removeEventListener("error",e.onError)}},[e==null?void 0:e.onError]),c.useEffect(()=>{if(typeof window>"u")return;const n=t.current;if(n&&(e!=null&&e.onEnded))return n.addEventListener("ended",e.onEnded),()=>{n.removeEventListener("ended",e.onEnded)}},[e==null?void 0:e.onEnded]),c.useEffect(()=>()=>{const n=t.current;if(n){n.pause(),n.currentTime=0;const a=Y.indexOf(n);a!==-1&&Y.splice(a,1)}t.current=void 0},[]),t}function nt(e){const t=tt(e),n=c.useCallback(i=>{for(let b=0;b<Y.length;b++){const S=Y[b];S!==i&&!S.paused&&S.pause()}},[]),a=c.useCallback(async i=>{var S;const b=t.current;if(b){e.mutex&&n(b),b.src!==i&&(b.pause(),b.currentTime=0,b.src=i);try{await((S=t.current)==null?void 0:S.play())}catch{}}},[t,e.mutex,n]),o=c.useCallback(i=>{const b=t.current;b&&(b.paused?a(i):b.pause())},[t,a]),l=c.useCallback(i=>{t.current.currentTime=i},[t]),y=c.useCallback(()=>{t.current&&(t.current.muted=!t.current.muted)},[t]),p=c.useCallback(i=>{t.current&&(t.current.volume=i)},[t]),s=H.useSyncExternalStore(c.useCallback(i=>{var b;return(b=t.current)==null||b.addEventListener("volumechange",i),()=>{var S;(S=t.current)==null||S.removeEventListener("volumechange",i)}},[t]),()=>{var i;return(i=t.current)==null?void 0:i.volume},()=>{}),d=H.useSyncExternalStore(c.useCallback(i=>{var b;return(b=t.current)==null||b.addEventListener("volumechange",i),()=>{var S;(S=t.current)==null||S.removeEventListener("volumechange",i)}},[t]),()=>{var i;return(i=t.current)==null?void 0:i.muted},()=>{}),E=H.useSyncExternalStore(c.useCallback(i=>{var b;return(b=t.current)==null||b.addEventListener("timeupdate",i),()=>{var S;(S=t.current)==null||S.removeEventListener("timeupdate",i)}},[t]),()=>{if(t.current)return Math.round(t.current.currentTime)},()=>{}),g=H.useSyncExternalStore(c.useCallback(i=>{var b;return(b=t.current)==null||b.addEventListener("durationchange",i),()=>{var S;(S=t.current)==null||S.removeEventListener("durationchange",i)}},[t]),()=>{var i;return(i=t.current)==null?void 0:i.duration},()=>{}),f=H.useSyncExternalStore(c.useCallback(i=>{var b;return(b=t.current)==null||b.addEventListener("progress",i),()=>{var S;(S=t.current)==null||S.removeEventListener("progress",i)}},[t]),()=>{const i=t.current;return i&&i.buffered.length>0?i.buffered.end(i.buffered.length-1):0},()=>{}),h=H.useSyncExternalStore(c.useCallback(i=>{var b,S;return(b=t.current)==null||b.addEventListener("play",i),(S=t.current)==null||S.addEventListener("pause",i),()=>{var C,x;(C=t.current)==null||C.removeEventListener("play",i),(x=t.current)==null||x.removeEventListener("pause",i)}},[t]),()=>{const i=t.current;return i?!i.paused:!1},()=>{}),T=H.useSyncExternalStore(c.useCallback(i=>{var b,S;return(b=t.current)==null||b.addEventListener("playing",i),(S=t.current)==null||S.addEventListener("waiting",i),()=>{var C,x;(C=t.current)==null||C.removeEventListener("playing",i),(x=t.current)==null||x.removeEventListener("waiting",i)}},[t]),()=>{const i=t.current;return i?i.networkState===i.NETWORK_LOADING:!1},()=>{});return{playAudio:a,togglePlay:o,seek:l,toggleMuted:y,setVolume:p,volume:s,muted:d,currentTime:E,duration:g,bufferedSeconds:f,isPlaying:h,isLoading:T}}function Je(){const e=c.useRef([]);return c.useEffect(()=>{const n=e.current;return()=>{for(const a of n)clearTimeout(a)}},[]),c.useCallback((n,a)=>{const o=setTimeout(n,a);return e.current.push(o),o},[])}function at(){const e=c.useRef(),[t,n]=c.useState({text:"",style:{opacity:0}}),a=Je(),o=c.useCallback((l,y=2e3)=>{e.current&&clearTimeout(e.current),n({text:l,style:{opacity:1}}),e.current=a(()=>{n({text:l,style:{opacity:0}})},y)},[a]);return[t,o]}function it(e){return ot(e.slice())}function ot(e){let t=e.length,n;for(;t!==0;)n=Math.floor(Math.random()*t),t--,[e[t],e[n]]=[e[n],e[t]];return e}function ut(e,{initialLoop:t="all",initialOrder:n="list",getSongId:a}){const[o,l]=c.useState(t),[y,p]=c.useState(n),s=c.useMemo(()=>y==="list"?e:it(e),[e,y]),[d,E]=c.useState(s[0]);c.useEffect(()=>{const i=s.find(b=>a(b)===a(d));E(i||s[0])},[s,a,d]);const g=c.useMemo(()=>{if(o==="one")return{...d};const i=s.indexOf(d);if(i<s.length-1)return s[i+1];if(o!=="none")return s[0]},[s,d,o]),f=c.useCallback(()=>{g&&E(g)},[g,o]),h=c.useCallback(()=>{E(i=>{const b=s.indexOf(i);return b>0?s[b-1]:i})},[s]),T=c.useCallback(i=>{E(i)},[]);return{currentSong:d,hasNextSong:typeof g<"u",next:f,previous:h,prioritize:T,order:y,setOrder:p,loop:o,setLoop:l,length:s.length}}function st(e){return k({attrs:{viewBox:"0 0 512 512"},children:[{tag:"path",attrs:{d:"M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z",fill:"currentColor"}}]})(e)}function lt(e){return k({attrs:{viewBox:"0 0 512 512"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M208 432h-48a16 16 0 0 1-16-16V96a16 16 0 0 1 16-16h48a16 16 0 0 1 16 16v320a16 16 0 0 1-16 16m144 0h-48a16 16 0 0 1-16-16V96a16 16 0 0 1 16-16h48a16 16 0 0 1 16 16v320a16 16 0 0 1-16 16"}}]})(e)}function ct({audio:e,appearance:t="normal",volume:n=.7,initialLoop:a,initialOrder:o,autoPlay:l=!1,listMaxHeight:y=250,mini:p=!1,mutex:s=!0,listFolded:d=!1,theme:E="light",border:g=!1}){var ne,ae,ie;const f=F("aplayer"),h=ut(Array.isArray(e)?e:[e],{initialLoop:a,initialOrder:o,getSongId:P=>P.url}),[T,i]=at(),b=Je(),S=c.useRef(),C=c.useCallback(()=>{S.current&&(clearTimeout(S.current),S.current=void 0)},[]),x=nt({src:h.currentSong.url,initialVolume:n,autoPlay:l,mutex:s,onError(P){const{error:me}=P.target;me&&i("An audio error has occurred, player will skip forward in 2 seconds."),h.hasNextSong&&(S.current=b(()=>{h.next()},2e3))},onEnded(){h.hasNextSong&&h.next()}});c.useEffect(()=>{l&&x.playAudio(h.currentSong.url)},[]);const M=c.useRef(!0);c.useEffect(()=>{M.current?M.current=!1:h.currentSong&&x.playAudio(h.currentSong.url)},[h.currentSong,x.playAudio]);const G=c.useCallback(()=>{C(),x.togglePlay(h.currentSong.url)},[x,C,h.currentSong.url]),te=c.useCallback(P=>P?typeof P=="string"?P:P.url?v.jsx("a",{href:P.url,target:"_blank",rel:"noreferrer",children:P.name??"Audio artist"}):P.name??"Audio artist":"Audio artist",[]),D=h.length>1,we=c.useMemo(()=>Array.isArray(e)?e:[e],[e]),{prioritize:ce}=h,fe=c.useCallback(P=>{C(),ce(P)},[C,ce]),[de,je]=c.useState(()=>D&&!d),[ve,I]=c.useState(p),[V,W]=c.useState(!0),K=c.useRef(null);return c.useEffect(()=>{I(p)},[p]),c.useEffect(()=>{if(t==="fixed"&&K.current){const P=K.current;return P.style.width=`${P.offsetWidth-18}px`,()=>{P.removeAttribute("style")}}},[t]),v.jsxs("div",{className:$(f.b(),{[f.bs(E)]:!0,[f.bs("vars")]:!0,[f.bm(t)]:!0,[f.bm("loading")]:x.isLoading,[f.bm("withlist")]:D,[f.bm("list-folded")]:!de,[f.bm("withlrc")]:!!h.currentSong.lrc&&t!=="fixed",[f.bm("narrow")]:ve,[f.bm("border")]:g}),role:"region","aria-label":"Audio Player",children:[v.jsxs("div",{ref:K,className:f.be("body"),children:[v.jsx("div",{className:f.be("pic"),onClick:G,style:{backgroundImage:`url("${(ne=h.currentSong)==null?void 0:ne.cover}")`},role:"button","aria-label":x.isPlaying?"Pause audio":"Play audio",children:v.jsx("div",{className:$(f.be("button"),x.isPlaying?f.bm("pause"):f.bm("play")),role:"presentation",children:x.isPlaying?v.jsx(lt,{}):v.jsx(Mr,{})})}),v.jsxs("div",{className:$(f.be("info")),children:[v.jsxs("div",{className:$(f.be("music")),children:[v.jsx("span",{className:$(f.be("title")),children:((ae=h.currentSong)==null?void 0:ae.name)??"Audio name"}),v.jsxs("span",{className:$(f.be("author")),children:[" ","-"," ",te((ie=h.currentSong)==null?void 0:ie.artist)]})]}),t==="fixed"?null:v.jsx(Ue,{show:V,lrcText:h.currentSong.lrc,currentTime:x.currentTime??0}),v.jsx(Jr,{volume:x.volume??n,onChangeVolume:x.setVolume,muted:x.muted??!1,onToggleMuted:()=>x.toggleMuted(),currentTime:x.currentTime,audioDurationSeconds:x.duration,bufferedSeconds:x.bufferedSeconds,onSeek:P=>x.seek(P),onToggleMenu:()=>je(P=>!P),order:h.order,onOrderChange:h.setOrder,loop:h.loop,onLoopChange:h.setLoop,isPlaying:x.isPlaying??!1,onTogglePlay:G,onSkipForward:()=>{h.hasNextSong&&h.next()},onSkipBack:()=>{h.previous()},showLyrics:V,onToggleLyrics:()=>{W(P=>!P)}})]}),v.jsx("div",{className:f.be("notice"),style:T.style,children:T.text}),v.jsx("div",{className:f.be("miniswitcher"),onClick:()=>I(P=>!P),children:v.jsx("button",{className:$(f.bs("icon"),f.bs("icon-right")),type:"button",children:v.jsx(st,{})})})]}),D?v.jsx(Xr,{open:de,audio:we,playingAudioUrl:h.currentSong.url,onPlayAudio:fe,listMaxHeight:y}):null,t==="fixed"&&v.jsx(Ue,{show:V,lrcText:h.currentSong.lrc,currentTime:x.currentTime??0})]})}z.TwistAPlayer=ct,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});
45
+ */return e.NODE_ENV!=="production"&&function(){function t(T,i){return T===i&&(T!==0||1/T===1/i)||T!==T&&i!==i}function n(T,i){g||l.startTransition===void 0||(g=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=i();if(!f){var S=i();y(p,S)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}S=b({inst:{value:p,getSnapshot:i}});var P=S[0].inst,x=S[1];return d(function(){P.value=p,P.getSnapshot=i,a(P)&&x({inst:P})},[T,p,i]),s(function(){return a(P)&&x({inst:P}),T(function(){a(P)&&x({inst:P})})},[T]),E(p),p}function a(T){var i=T.getSnapshot;T=T.value;try{var p=i();return!y(T,p)}catch{return!0}}function o(T,i){return i()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var l=c,y=typeof Object.is=="function"?Object.is:t,b=l.useState,s=l.useEffect,d=l.useLayoutEffect,E=l.useDebugValue,g=!1,f=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:n;Te.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),Te}var Je;function rt(){if(Je)return de.exports;Je=1;var e={};return e.NODE_ENV==="production"?de.exports=Zr():de.exports=et(),de.exports}var U=rt();const G=[];function tt(e){const t=c.useRef();return c.useEffect(()=>{if(typeof window<"u"&&!t.current){const n=t.current=document.createElement("audio");typeof(e==null?void 0:e.src)<"u"&&(n.src=e.src),typeof(e==null?void 0:e.autoPlay)<"u"&&(n.autoplay=e.autoPlay),typeof(e==null?void 0:e.initialVolume)<"u"&&(n.volume=e.initialVolume),G.includes(n)||G.push(n)}},[e==null?void 0:e.autoPlay,e==null?void 0:e.initialVolume,e==null?void 0:e.src]),c.useEffect(()=>{if(typeof window>"u")return;const n=t.current;if(n&&(e!=null&&e.onError))return n.addEventListener("error",e.onError),()=>{n.removeEventListener("error",e.onError)}},[e==null?void 0:e.onError]),c.useEffect(()=>{if(typeof window>"u")return;const n=t.current;if(n&&(e!=null&&e.onEnded))return n.addEventListener("ended",e.onEnded),()=>{n.removeEventListener("ended",e.onEnded)}},[e==null?void 0:e.onEnded]),c.useEffect(()=>()=>{const n=t.current;if(n){n.pause(),n.currentTime=0;const a=G.indexOf(n);a!==-1&&G.splice(a,1)}t.current=void 0},[]),t}function nt(e){const t=tt(e),n=c.useCallback(i=>{for(let p=0;p<G.length;p++){const S=G[p];S!==i&&!S.paused&&S.pause()}},[]),a=c.useCallback(async i=>{var S;const p=t.current;if(p){e.mutex&&n(p),p.src!==i&&(p.pause(),p.currentTime=0,p.src=i);try{await((S=t.current)==null?void 0:S.play())}catch{}}},[t,e.mutex,n]),o=c.useCallback(i=>{const p=t.current;p&&(p.paused?a(i):p.pause())},[t,a]),l=c.useCallback(i=>{t.current.currentTime=i},[t]),y=c.useCallback(()=>{t.current&&(t.current.muted=!t.current.muted)},[t]),b=c.useCallback(i=>{t.current&&(t.current.volume=i)},[t]),s=U.useSyncExternalStore(c.useCallback(i=>{var p;return(p=t.current)==null||p.addEventListener("volumechange",i),()=>{var S;(S=t.current)==null||S.removeEventListener("volumechange",i)}},[t]),()=>{var i;return(i=t.current)==null?void 0:i.volume},()=>{}),d=U.useSyncExternalStore(c.useCallback(i=>{var p;return(p=t.current)==null||p.addEventListener("volumechange",i),()=>{var S;(S=t.current)==null||S.removeEventListener("volumechange",i)}},[t]),()=>{var i;return(i=t.current)==null?void 0:i.muted},()=>{}),E=U.useSyncExternalStore(c.useCallback(i=>{var p;return(p=t.current)==null||p.addEventListener("timeupdate",i),()=>{var S;(S=t.current)==null||S.removeEventListener("timeupdate",i)}},[t]),()=>{if(t.current)return Math.round(t.current.currentTime)},()=>{}),g=U.useSyncExternalStore(c.useCallback(i=>{var p;return(p=t.current)==null||p.addEventListener("durationchange",i),()=>{var S;(S=t.current)==null||S.removeEventListener("durationchange",i)}},[t]),()=>{var i;return(i=t.current)==null?void 0:i.duration},()=>{}),f=U.useSyncExternalStore(c.useCallback(i=>{var p;return(p=t.current)==null||p.addEventListener("progress",i),()=>{var S;(S=t.current)==null||S.removeEventListener("progress",i)}},[t]),()=>{const i=t.current;return i&&i.buffered.length>0?i.buffered.end(i.buffered.length-1):0},()=>{}),h=U.useSyncExternalStore(c.useCallback(i=>{var p,S;return(p=t.current)==null||p.addEventListener("play",i),(S=t.current)==null||S.addEventListener("pause",i),()=>{var P,x;(P=t.current)==null||P.removeEventListener("play",i),(x=t.current)==null||x.removeEventListener("pause",i)}},[t]),()=>{const i=t.current;return i?!i.paused:!1},()=>{}),T=U.useSyncExternalStore(c.useCallback(i=>{var p,S;return(p=t.current)==null||p.addEventListener("playing",i),(S=t.current)==null||S.addEventListener("waiting",i),()=>{var P,x;(P=t.current)==null||P.removeEventListener("playing",i),(x=t.current)==null||x.removeEventListener("waiting",i)}},[t]),()=>{const i=t.current;return i?i.networkState===i.NETWORK_LOADING:!1},()=>{});return{playAudio:a,togglePlay:o,seek:l,toggleMuted:y,setVolume:b,volume:s,muted:d,currentTime:E,duration:g,bufferedSeconds:f,isPlaying:h,isLoading:T}}function Xe(){const e=c.useRef([]);return c.useEffect(()=>{const n=e.current;return()=>{for(const a of n)clearTimeout(a)}},[]),c.useCallback((n,a)=>{const o=setTimeout(n,a);return e.current.push(o),o},[])}function at(){const e=c.useRef(),[t,n]=c.useState({text:"",style:{opacity:0}}),a=Xe(),o=c.useCallback((l,y=2e3)=>{e.current&&clearTimeout(e.current),n({text:l,style:{opacity:1}}),e.current=a(()=>{n({text:l,style:{opacity:0}})},y)},[a]);return[t,o]}function it(e){return ot(e.slice())}function ot(e){let t=e.length,n;for(;t!==0;)n=Math.floor(Math.random()*t),t--,[e[t],e[n]]=[e[n],e[t]];return e}function ut(e,{initialLoop:t="all",initialOrder:n="list",getSongId:a}){const[o,l]=c.useState(t),[y,b]=c.useState(n),s=c.useMemo(()=>y==="list"?e:it(e),[e,y]),[d,E]=c.useState(s[0]);c.useEffect(()=>{const i=s.find(p=>a(p)===a(d));E(i||s[0])},[s,a,d]);const g=c.useMemo(()=>{if(o==="one")return{...d};const i=s.indexOf(d);if(i<s.length-1)return s[i+1];if(o!=="none")return s[0]},[s,d,o]),f=c.useCallback(()=>{g&&E(g)},[g]),h=c.useCallback(()=>{E(i=>{const p=s.indexOf(i);return p>0?s[p-1]:i})},[s]),T=c.useCallback(i=>{E(i)},[]);return{currentSong:d,hasNextSong:typeof g<"u",next:f,previous:h,prioritize:T,order:y,setOrder:b,loop:o,setLoop:l,length:s.length}}function st(e){return k({attrs:{viewBox:"0 0 512 512"},children:[{tag:"path",attrs:{d:"M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z",fill:"currentColor"}}]})(e)}function lt(e){return k({attrs:{viewBox:"0 0 512 512"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M208 432h-48a16 16 0 0 1-16-16V96a16 16 0 0 1 16-16h48a16 16 0 0 1 16 16v320a16 16 0 0 1-16 16m144 0h-48a16 16 0 0 1-16-16V96a16 16 0 0 1 16-16h48a16 16 0 0 1 16 16v320a16 16 0 0 1-16 16"}}]})(e)}function ct({audio:e,appearance:t="normal",volume:n=.7,initialLoop:a,initialOrder:o,autoPlay:l=!1,listMaxHeight:y=250,mini:b=!1,mutex:s=!0,listFolded:d=!1,theme:E="light",border:g=!1}){var oe,ue,se;const f=V("aplayer"),h=ut(Array.isArray(e)?e:[e],{initialLoop:a,initialOrder:o,getSongId:O=>O.url}),[T,i]=at(),p=Xe(),S=c.useRef(),P=c.useCallback(()=>{S.current&&(clearTimeout(S.current),S.current=void 0)},[]),x=nt({src:h.currentSong.url,initialVolume:n,autoPlay:l,mutex:s,onError(O){const{error:me}=O.target;me&&i("An audio error has occurred, player will skip forward in 2 seconds."),h.hasNextSong&&(S.current=p(()=>{h.next()},2e3))},onEnded(){h.hasNextSong&&h.next()}}),M=c.useCallback(()=>{P(),x.togglePlay(h.currentSong.url)},[x,P,h.currentSong.url]),te=c.useCallback(O=>O?typeof O=="string"?O:O.url?v.jsx("a",{href:O.url,target:"_blank",rel:"noreferrer",children:O.name??"Audio artist"}):O.name??"Audio artist":"Audio artist",[]),W=h.length>1,I=c.useMemo(()=>Array.isArray(e)?e:[e],[e]),{prioritize:ve}=h,we=c.useCallback(O=>{P(),ve(O)},[P,ve]),[ne,je]=c.useState(()=>W&&!d),[Oe,ae]=c.useState(b),[D,F]=c.useState(!0),B=c.useRef(null);c.useEffect(()=>{ae(b)},[b]),c.useEffect(()=>{l&&x.playAudio(h.currentSong.url)},[]);const K=c.useRef(null),ie=c.useRef(!0);return c.useEffect(()=>{if(!h.currentSong)return;const O=h.currentSong.url;if(ie.current){ie.current=!1,K.current=O;return}(h.loop==="one"||O!==K.current)&&(x.playAudio(O),K.current=O)},[h.currentSong,h.loop]),c.useEffect(()=>{if(t==="fixed"&&B.current){const O=B.current;return O.style.width=`${O.offsetWidth-18}px`,()=>{O.removeAttribute("style")}}},[t]),v.jsxs("div",{className:$(f.b(),{[f.bs(E)]:!0,[f.bs("vars")]:!0,[f.bm(t)]:!0,[f.bm("loading")]:x.isLoading,[f.bm("withlist")]:W,[f.bm("list-folded")]:!ne,[f.bm("withlrc")]:!!h.currentSong.lrc&&t!=="fixed",[f.bm("narrow")]:Oe,[f.bm("border")]:g}),role:"region","aria-label":"Audio Player",children:[v.jsxs("div",{ref:B,className:f.be("body"),children:[v.jsx("div",{className:f.be("pic"),onClick:M,style:{backgroundImage:`url("${(oe=h.currentSong)==null?void 0:oe.cover}")`},role:"button","aria-label":x.isPlaying?"Pause audio":"Play audio",children:v.jsx("div",{className:$(f.be("button"),x.isPlaying?f.bm("pause"):f.bm("play")),role:"presentation",children:x.isPlaying?v.jsx(lt,{}):v.jsx(Mr,{})})}),v.jsxs("div",{className:$(f.be("info")),children:[v.jsxs("div",{className:$(f.be("music")),children:[v.jsx("span",{className:$(f.be("title")),children:((ue=h.currentSong)==null?void 0:ue.name)??"Audio name"}),v.jsxs("span",{className:$(f.be("author")),children:[" ","-"," ",te((se=h.currentSong)==null?void 0:se.artist)]})]}),t==="fixed"?null:v.jsx(Ye,{show:D,lrcText:h.currentSong.lrc,currentTime:x.currentTime??0}),v.jsx(Jr,{volume:x.volume??n,onChangeVolume:x.setVolume,muted:x.muted??!1,onToggleMuted:()=>x.toggleMuted(),currentTime:x.currentTime,audioDurationSeconds:x.duration,bufferedSeconds:x.bufferedSeconds,onSeek:O=>x.seek(O),onToggleMenu:()=>je(O=>!O),order:h.order,onOrderChange:h.setOrder,loop:h.loop,onLoopChange:h.setLoop,isPlaying:x.isPlaying??!1,onTogglePlay:M,onSkipForward:()=>{h.hasNextSong&&h.next()},onSkipBack:()=>{h.previous()},showLyrics:D,onToggleLyrics:()=>{F(O=>!O)}})]}),v.jsx("div",{className:f.be("notice"),style:T.style,children:T.text}),v.jsx("div",{className:f.be("miniswitcher"),onClick:()=>ae(O=>!O),children:v.jsx("button",{className:$(f.bs("icon"),f.bs("icon-right")),type:"button",children:v.jsx(st,{})})})]}),W?v.jsx(Xr,{open:ne,audio:I,playingAudioUrl:h.currentSong.url,onPlayAudio:we,listMaxHeight:y}):null,t==="fixed"&&v.jsx(Ye,{show:D,lrcText:h.currentSong.lrc,currentTime:x.currentTime??0})]})}H.TwistAPlayer=ct,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,75 +1,75 @@
1
- {
2
- "name": "twist-aplayer",
3
- "type": "module",
4
- "version": "1.1.1",
5
- "private": false,
6
- "description": "A shadui theme aplayer",
7
- "author": {
8
- "name": "razzh",
9
- "email": "razzhavenir@163.com",
10
- "url": "https://razzh.cn"
11
- },
12
- "license": "MIT",
13
- "repository": {
14
- "type": "git",
15
- "url": "https://github.com/twist-space/twist-aplayer"
16
- },
17
- "keywords": [
18
- "aplayer",
19
- "music player",
20
- "twist"
21
- ],
22
- "sideEffects": ["*.css"],
23
- "main": "dist/index.js",
24
- "module": "dist/index.mjs",
25
- "unpkg": "dist/twist-aplayer.umd.js",
26
- "types": "dist/index.d.ts",
27
- "files": ["dist"],
28
- "scripts": {
29
- "dev": "vite",
30
- "build": "rimraf dist && pnpm build:umd && vite --config vite.config.build.ts build",
31
- "build:umd": "vite --config vite.config.umd.ts build",
32
- "preview": "vite preview",
33
- "lint": "eslint .",
34
- "prepublishOnly": "pnpm build"
35
- },
36
- "peerDependencies": {
37
- "react": "^18.2.0",
38
- "react-dom": "^18.2.0"
39
- },
40
- "dependencies": {
41
- "@twistify/react-icons": "^1.0.4",
42
- "@twistui/bem-helper": "^1.0.1",
43
- "clsx": "^2.1.1",
44
- "use-sync-external-store": "^1.4.0"
45
- },
46
- "devDependencies": {
47
- "@antfu/eslint-config": "^3.12.2",
48
- "@commitlint/cli": "^19.6.1",
49
- "@commitlint/config-angular": "^19.7.0",
50
- "@eslint-react/eslint-plugin": "^1.23.2",
51
- "@types/react": "^18.2.66",
52
- "@types/react-dom": "^18.2.22",
53
- "@types/use-sync-external-store": "^0.0.6",
54
- "@vitejs/plugin-react": "^4.3.4",
55
- "autoprefixer": "^10.4.21",
56
- "eslint-plugin-react-hooks": "^5.2.0",
57
- "eslint-plugin-react-refresh": "^0.4.19",
58
- "postcss": "^8.5.3",
59
- "react": "18.2.0",
60
- "react-dom": "18.2.0",
61
- "rimraf": "^6.0.1",
62
- "sass": "^1.86.0",
63
- "typescript": "^5.8.2",
64
- "vite": "^6.2.2",
65
- "vite-plugin-dts": "^4.5.3"
66
- },
67
- "browserslist": [
68
- "last 2 versions",
69
- "not dead",
70
- "> 1%"
71
- ],
72
- "publishConfig": {
73
- "access": "public"
74
- }
75
- }
1
+ {
2
+ "name": "twist-aplayer",
3
+ "type": "module",
4
+ "version": "1.2.0",
5
+ "private": false,
6
+ "description": "A shadui theme aplayer",
7
+ "author": {
8
+ "name": "razzh",
9
+ "email": "razzhavenir@163.com",
10
+ "url": "https://razzh.cn"
11
+ },
12
+ "license": "MIT",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/twist-space/twist-aplayer"
16
+ },
17
+ "keywords": [
18
+ "aplayer",
19
+ "music player",
20
+ "twist"
21
+ ],
22
+ "sideEffects": ["*.css"],
23
+ "main": "dist/index.js",
24
+ "module": "dist/index.mjs",
25
+ "unpkg": "dist/twist-aplayer.umd.js",
26
+ "types": "dist/index.d.ts",
27
+ "files": ["dist"],
28
+ "scripts": {
29
+ "dev": "vite",
30
+ "build": "rimraf dist && pnpm build:umd && vite --config vite.config.build.ts build",
31
+ "build:umd": "vite --config vite.config.umd.ts build",
32
+ "preview": "vite preview",
33
+ "lint": "eslint .",
34
+ "prepublishOnly": "pnpm build"
35
+ },
36
+ "peerDependencies": {
37
+ "react": "^18.2.0",
38
+ "react-dom": "^18.2.0"
39
+ },
40
+ "dependencies": {
41
+ "@twistify/react-icons": "^1.0.4",
42
+ "@twistui/bem-helper": "^1.0.1",
43
+ "clsx": "^2.1.1",
44
+ "use-sync-external-store": "^1.4.0"
45
+ },
46
+ "devDependencies": {
47
+ "@antfu/eslint-config": "^3.12.2",
48
+ "@commitlint/cli": "^19.6.1",
49
+ "@commitlint/config-angular": "^19.7.0",
50
+ "@eslint-react/eslint-plugin": "^1.23.2",
51
+ "@types/react": "^18.2.66",
52
+ "@types/react-dom": "^18.2.22",
53
+ "@types/use-sync-external-store": "^0.0.6",
54
+ "@vitejs/plugin-react": "^4.3.4",
55
+ "autoprefixer": "^10.4.21",
56
+ "eslint-plugin-react-hooks": "^5.2.0",
57
+ "eslint-plugin-react-refresh": "^0.4.19",
58
+ "postcss": "^8.5.3",
59
+ "react": "18.2.0",
60
+ "react-dom": "18.2.0",
61
+ "rimraf": "^6.0.1",
62
+ "sass": "^1.86.0",
63
+ "typescript": "^5.8.2",
64
+ "vite": "^6.2.2",
65
+ "vite-plugin-dts": "^4.5.3"
66
+ },
67
+ "browserslist": [
68
+ "last 2 versions",
69
+ "not dead",
70
+ "> 1%"
71
+ ],
72
+ "publishConfig": {
73
+ "access": "public"
74
+ }
75
+ }