@halibegic/react-video-player 0.0.14 → 0.0.16
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/README.md +14 -0
- package/dist/components/live-player/live-player-keyboard.d.ts +2 -0
- package/dist/components/player/player-keyboard.d.ts +2 -0
- package/dist/components/vod-player/vod-player-keyboard.d.ts +2 -0
- package/dist/react-video-player.es.js +1250 -1144
- package/dist/react-video-player.es.js.map +1 -1
- package/dist/react-video-player.umd.js +48 -48
- package/dist/react-video-player.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Q,
|
|
1
|
+
(function(Q,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react"),require("zustand"),require("@radix-ui/react-slider"),require("hls.js"),require("@radix-ui/react-dropdown-menu")):typeof define=="function"&&define.amd?define(["exports","react","zustand","@radix-ui/react-slider","hls.js","@radix-ui/react-dropdown-menu"],f):(Q=typeof globalThis<"u"?globalThis:Q||self,f(Q.ReactVideoPlayer={},Q.React,Q.zustand,Q.RadixUISlider,Q.Hls,Q.RadixUIDropdownMenu))})(this,(function(Q,f,Xe,$r,ee,zr){"use strict";function Kt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Je=Kt($r),Be=Kt(zr);var Qe={exports:{}},Ue={};/**
|
|
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
|
|
9
|
+
*/var Xt;function Br(){if(Xt)return Ue;Xt=1;var e=f,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(i,l,d){var m,g={},S=null,k=null;d!==void 0&&(S=""+d),l.key!==void 0&&(S=""+l.key),l.ref!==void 0&&(k=l.ref);for(m in l)r.call(l,m)&&!a.hasOwnProperty(m)&&(g[m]=l[m]);if(i&&i.defaultProps)for(m in l=i.defaultProps,l)g[m]===void 0&&(g[m]=l[m]);return{$$typeof:t,type:i,key:S,ref:k,props:g,_owner:o.current}}return Ue.Fragment=n,Ue.jsx=u,Ue.jsxs=u,Ue}var We={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,25 +14,25 @@
|
|
|
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
|
-
*/var
|
|
18
|
-
`+ve+
|
|
19
|
-
`),Z=
|
|
20
|
-
`),H=j.length-1,
|
|
21
|
-
`+j[H].replace(" at new "," at ");return
|
|
17
|
+
*/var Jt;function Ur(){return Jt||(Jt=1,process.env.NODE_ENV!=="production"&&(function(){var e=f,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),P=Symbol.iterator,L="@@iterator";function N(s){if(s===null||typeof s!="object")return null;var p=P&&s[P]||s[L];return typeof p=="function"?p:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(s){{for(var p=arguments.length,y=new Array(p>1?p-1:0),C=1;C<p;C++)y[C-1]=arguments[C];w("error",s,y)}}function w(s,p,y){{var C=x.ReactDebugCurrentFrame,F=C.getStackAddendum();F!==""&&(p+="%s",y=y.concat([F]));var M=y.map(function(_){return String(_)});M.unshift("Warning: "+p),Function.prototype.apply.call(console[s],console,M)}}var v=!1,D=!1,R=!1,E=!1,W=!1,K;K=Symbol.for("react.module.reference");function O(s){return!!(typeof s=="string"||typeof s=="function"||s===r||s===a||W||s===o||s===d||s===m||E||s===k||v||D||R||typeof s=="object"&&s!==null&&(s.$$typeof===S||s.$$typeof===g||s.$$typeof===u||s.$$typeof===i||s.$$typeof===l||s.$$typeof===K||s.getModuleId!==void 0))}function Me(s,p,y){var C=s.displayName;if(C)return C;var F=p.displayName||p.name||"";return F!==""?y+"("+F+")":y}function fe(s){return s.displayName||"Context"}function q(s){if(s==null)return null;if(typeof s.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case m:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case i:var p=s;return fe(p)+".Consumer";case u:var y=s;return fe(y._context)+".Provider";case l:return Me(s,s.render,"ForwardRef");case g:var C=s.displayName||null;return C!==null?C:q(s.type)||"Memo";case S:{var F=s,M=F._payload,_=F._init;try{return q(_(M))}catch{return null}}}return null}var ne=Object.assign,ue=0,Re,X,Ze,re,ge,ye,Y;function Ve(){}Ve.__reactDisabledLog=!0;function Ge(){{if(ue===0){Re=console.log,X=console.info,Ze=console.warn,re=console.error,ge=console.group,ye=console.groupCollapsed,Y=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Ve,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}ue++}}function Ne(){{if(ue--,ue===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ne({},s,{value:Re}),info:ne({},s,{value:X}),warn:ne({},s,{value:Ze}),error:ne({},s,{value:re}),group:ne({},s,{value:ge}),groupCollapsed:ne({},s,{value:ye}),groupEnd:ne({},s,{value:Y})})}ue<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pe=x.ReactCurrentDispatcher,ve;function ie(s,p,y){{if(ve===void 0)try{throw Error()}catch(F){var C=F.stack.trim().match(/\n( *(at )?)/);ve=C&&C[1]||""}return`
|
|
18
|
+
`+ve+s}}var ae=!1,we;{var He=typeof WeakMap=="function"?WeakMap:Map;we=new He}function ce(s,p){if(!s||ae)return"";{var y=we.get(s);if(y!==void 0)return y}var C;ae=!0;var F=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var M;M=pe.current,pe.current=null,Ge();try{if(p){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(J){C=J}Reflect.construct(s,[],_)}else{try{_.call()}catch(J){C=J}s.call(_.prototype)}}else{try{throw Error()}catch(J){C=J}s()}}catch(J){if(J&&C&&typeof J.stack=="string"){for(var j=J.stack.split(`
|
|
19
|
+
`),Z=C.stack.split(`
|
|
20
|
+
`),H=j.length-1,B=Z.length-1;H>=1&&B>=0&&j[H]!==Z[B];)B--;for(;H>=1&&B>=0;H--,B--)if(j[H]!==Z[B]){if(H!==1||B!==1)do if(H--,B--,B<0||j[H]!==Z[B]){var oe=`
|
|
21
|
+
`+j[H].replace(" at new "," at ");return s.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",s.displayName)),typeof s=="function"&&we.set(s,oe),oe}while(H>=1&&B>=0);break}}}finally{ae=!1,pe.current=M,Ne(),Error.prepareStackTrace=F}var ze=s?s.displayName||s.name:"",Te=ze?ie(ze):"";return typeof s=="function"&&we.set(s,Te),Te}function bi(s,p,y){return ce(s,!1)}function xi(s){var p=s.prototype;return!!(p&&p.isReactComponent)}function St(s,p,y){if(s==null)return"";if(typeof s=="function")return ce(s,xi(s));if(typeof s=="string")return ie(s);switch(s){case d:return ie("Suspense");case m:return ie("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case l:return bi(s.render);case g:return St(s.type,p,y);case S:{var C=s,F=C._payload,M=C._init;try{return St(M(F),p,y)}catch{}}}return""}var Ke=Object.prototype.hasOwnProperty,Tr={},Pr=x.ReactDebugCurrentFrame;function kt(s){if(s){var p=s._owner,y=St(s.type,s._source,p?p.type:null);Pr.setExtraStackFrame(y)}else Pr.setExtraStackFrame(null)}function Si(s,p,y,C,F){{var M=Function.call.bind(Ke);for(var _ in s)if(M(s,_)){var j=void 0;try{if(typeof s[_]!="function"){var Z=Error((C||"React class")+": "+y+" type `"+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[_]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Z.name="Invariant Violation",Z}j=s[_](p,_,C,y,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(H){j=H}j&&!(j instanceof Error)&&(kt(F),b("%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).",C||"React class",y,_,typeof j),kt(null)),j instanceof Error&&!(j.message in Tr)&&(Tr[j.message]=!0,kt(F),b("Failed %s type: %s",y,j.message),kt(null))}}}var ki=Array.isArray;function Wt(s){return ki(s)}function Ei(s){{var p=typeof Symbol=="function"&&Symbol.toStringTag,y=p&&s[Symbol.toStringTag]||s.constructor.name||"Object";return y}}function Ci(s){try{return jr(s),!1}catch{return!0}}function jr(s){return""+s}function Lr(s){if(Ci(s))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ei(s)),jr(s)}var _r=x.ReactCurrentOwner,Ri={key:!0,ref:!0,__self:!0,__source:!0},Ir,Dr;function Ti(s){if(Ke.call(s,"ref")){var p=Object.getOwnPropertyDescriptor(s,"ref").get;if(p&&p.isReactWarning)return!1}return s.ref!==void 0}function Pi(s){if(Ke.call(s,"key")){var p=Object.getOwnPropertyDescriptor(s,"key").get;if(p&&p.isReactWarning)return!1}return s.key!==void 0}function ji(s,p){typeof s.ref=="string"&&_r.current}function Li(s,p){{var y=function(){Ir||(Ir=!0,b("%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)",p))};y.isReactWarning=!0,Object.defineProperty(s,"key",{get:y,configurable:!0})}}function _i(s,p){{var y=function(){Dr||(Dr=!0,b("%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)",p))};y.isReactWarning=!0,Object.defineProperty(s,"ref",{get:y,configurable:!0})}}var Ii=function(s,p,y,C,F,M,_){var j={$$typeof:t,type:s,key:p,ref:y,props:_,_owner:M};return j._store={},Object.defineProperty(j._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(j,"_self",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.defineProperty(j,"_source",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.freeze&&(Object.freeze(j.props),Object.freeze(j)),j};function Di(s,p,y,C,F){{var M,_={},j=null,Z=null;y!==void 0&&(Lr(y),j=""+y),Pi(p)&&(Lr(p.key),j=""+p.key),Ti(p)&&(Z=p.ref,ji(p,F));for(M in p)Ke.call(p,M)&&!Ri.hasOwnProperty(M)&&(_[M]=p[M]);if(s&&s.defaultProps){var H=s.defaultProps;for(M in H)_[M]===void 0&&(_[M]=H[M])}if(j||Z){var B=typeof s=="function"?s.displayName||s.name||"Unknown":s;j&&Li(_,B),Z&&_i(_,B)}return Ii(s,j,Z,F,C,_r.current,_)}}var qt=x.ReactCurrentOwner,Or=x.ReactDebugCurrentFrame;function $e(s){if(s){var p=s._owner,y=St(s.type,s._source,p?p.type:null);Or.setExtraStackFrame(y)}else Or.setExtraStackFrame(null)}var Yt;Yt=!1;function Zt(s){return typeof s=="object"&&s!==null&&s.$$typeof===t}function Ar(){{if(qt.current){var s=q(qt.current.type);if(s)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+
|
|
23
|
+
Check the render method of \``+s+"`."}return""}}function Oi(s){return""}var Fr={};function Ai(s){{var p=Ar();if(!p){var y=typeof s=="string"?s:s.displayName||s.name;y&&(p=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+y+">.")}return
|
|
25
|
+
Check the top-level render call using <`+y+">.")}return p}}function Mr(s,p){{if(!s._store||s._store.validated||s.key!=null)return;s._store.validated=!0;var y=Ai(p);if(Fr[y])return;Fr[y]=!0;var C="";s&&s._owner&&s._owner!==qt.current&&(C=" It was passed a child from "+q(s._owner.type)+"."),$e(s),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',y,C),$e(null)}}function Vr(s,p){{if(typeof s!="object")return;if(Wt(s))for(var y=0;y<s.length;y++){var C=s[y];Zt(C)&&Mr(C,p)}else if(Zt(s))s._store&&(s._store.validated=!0);else if(s){var F=N(s);if(typeof F=="function"&&F!==s.entries)for(var M=F.call(s),_;!(_=M.next()).done;)Zt(_.value)&&Mr(_.value,p)}}}function Fi(s){{var p=s.type;if(p==null||typeof p=="string")return;var y;if(typeof p=="function")y=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===l||p.$$typeof===g))y=p.propTypes;else return;if(y){var C=q(p);Si(y,s.props,"prop",C,s)}else if(p.PropTypes!==void 0&&!Yt){Yt=!0;var F=q(p);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",F||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Mi(s){{for(var p=Object.keys(s.props),y=0;y<p.length;y++){var C=p[y];if(C!=="children"&&C!=="key"){$e(s),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",C),$e(null);break}}s.ref!==null&&($e(s),b("Invalid attribute `ref` supplied to `React.Fragment`."),$e(null))}}var Nr={};function Hr(s,p,y,C,F,M){{var _=O(s);if(!_){var j="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(j+=" 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 Z=Oi();Z?j+=Z:j+=Ar();var H;s===null?H="null":Wt(s)?H="array":s!==void 0&&s.$$typeof===t?(H="<"+(q(s.type)||"Unknown")+" />",j=" Did you accidentally export a JSX literal instead of a component?"):H=typeof s,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",H,j)}var B=Di(s,p,y,F,M);if(B==null)return B;if(_){var oe=p.children;if(oe!==void 0)if(C)if(Wt(oe)){for(var ze=0;ze<oe.length;ze++)Vr(oe[ze],s);Object.freeze&&Object.freeze(oe)}else b("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 Vr(oe,s)}if(Ke.call(p,"key")){var Te=q(s),J=Object.keys(p).filter(function(Bi){return Bi!=="key"}),Gt=J.length>0?"{key: someKey, "+J.join(": ..., ")+": ...}":"{key: someKey}";if(!Nr[Te+Gt]){var zi=J.length>0?"{"+J.join(": ..., ")+": ...}":"{}";b(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Gt,Pe,Ni,Pe),Vr[Pe+Gt]=!0}}return o===r?Oi(z):Di(z),z}}function Ai(o,d,y){return Nr(o,d,y,!0)}function Fi(o,d,y){return Nr(o,d,y,!1)}var Mi=Fi,Vi=Ai;We.Fragment=r,We.jsx=Mi,We.jsxs=Vi})()),We}var Qt;function Ur(){return Qt||(Qt=1,process.env.NODE_ENV==="production"?Qe.exports=zr():Qe.exports=Br()),Qe.exports}var i=Ur();const Wr=typeof window<"u"?p.useLayoutEffect:p.useEffect;function et(e,t){const n=p.useRef(e);Wr(()=>{n.current=e},[e]),p.useEffect(()=>{if(t===null)return;const r=setInterval(()=>{n.current()},t);return()=>{clearInterval(r)}},[t])}function qr(e){const[,t]=p.useState(0);et(()=>t(n=>n+1),e)}const Yr=(e,t)=>Je.create(n=>({delay:0,startDate:e,endDate:t,startTime:e.getTime(),endTime:t.getTime(),setDelay:r=>n({delay:r}),setStartDate:r=>n({startDate:r}),setEndDate:r=>n({endDate:r})})),en=p.createContext(null),Zr=({children:e,startDate:t,endDate:n})=>{const r=p.useRef(null);return r.current||(r.current=Yr(t,n)),i.jsx(en.Provider,{value:r.current,children:e})},B=e=>{const t=p.useContext(en);if(!t)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return Je.useStore(t,e)};var G=function(){return G=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},G.apply(this,arguments)};function be(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,a;r<s;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Gr(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Xr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Jr=Gr(function(e){return Xr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),V="-ms-",qe="-moz-",A="-webkit-",tn="comm",tt="rule",kt="decl",Kr="@import",nn="@keyframes",Qr="@layer",rn=Math.abs,Et=String.fromCharCode,Rt=Object.assign;function eo(e,t){return U(e,0)^45?(((t<<2^U(e,0))<<2^U(e,1))<<2^U(e,2))<<2^U(e,3):0}function on(e){return e.trim()}function de(e,t){return(e=t.exec(e))?e[0]:e}function P(e,t,n){return e.replace(t,n)}function nt(e,t,n){return e.indexOf(t,n)}function U(e,t){return e.charCodeAt(t)|0}function Te(e,t,n){return e.slice(t,n)}function ce(e){return e.length}function sn(e){return e.length}function Ye(e,t){return t.push(e),e}function to(e,t){return e.map(t).join("")}function an(e,t){return e.filter(function(n){return!de(n,t)})}var rt=1,je=1,cn=0,ee=0,$=0,Le="";function ot(e,t,n,r,s,a,l,c){return{value:e,root:t,parent:n,type:r,props:s,children:a,line:rt,column:je,length:l,return:"",siblings:c}}function he(e,t){return Rt(ot("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function _e(e){for(;e.root;)e=he(e.root,{children:[e]});Ye(e,e.siblings)}function no(){return $}function ro(){return $=ee>0?U(Le,--ee):0,je--,$===10&&(je=1,rt--),$}function oe(){return $=ee<cn?U(Le,ee++):0,je++,$===10&&(je=1,rt++),$}function xe(){return U(Le,ee)}function st(){return ee}function it(e,t){return Te(Le,e,t)}function Pt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function oo(e){return rt=je=1,cn=ce(Le=e),ee=0,[]}function so(e){return Le="",e}function Tt(e){return on(it(ee-1,jt(e===91?e+2:e===40?e+1:e)))}function io(e){for(;($=xe())&&$<33;)oe();return Pt(e)>2||Pt($)>3?"":" "}function ao(e,t){for(;--t&&oe()&&!($<48||$>102||$>57&&$<65||$>70&&$<97););return it(e,st()+(t<6&&xe()==32&&oe()==32))}function jt(e){for(;oe();)switch($){case e:return ee;case 34:case 39:e!==34&&e!==39&&jt($);break;case 40:e===41&&jt(e);break;case 92:oe();break}return ee}function co(e,t){for(;oe()&&e+$!==57;)if(e+$===84&&xe()===47)break;return"/*"+it(t,ee-1)+"*"+Et(e===47?e:oe())}function lo(e){for(;!Pt(xe());)oe();return it(e,ee)}function uo(e){return so(at("",null,null,null,[""],e=oo(e),0,[0],e))}function at(e,t,n,r,s,a,l,c,u){for(var f=0,h=0,g=l,x=0,C=0,T=0,L=1,N=1,b=1,S=0,w="",v=s,D=a,R=r,k=w;N;)switch(T=S,S=oe()){case 40:if(T!=108&&U(k,g-1)==58){nt(k+=P(Tt(S),"&","&\f"),"&\f",rn(f?c[f-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:k+=Tt(S);break;case 9:case 10:case 13:case 32:k+=io(T);break;case 92:k+=ao(st()-1,7);continue;case 47:switch(xe()){case 42:case 47:Ye(fo(co(oe(),st()),t,n,u),u);break;default:k+="/"}break;case 123*L:c[f++]=ce(k)*b;case 125*L:case 59:case 0:switch(S){case 0:case 125:N=0;case 59+h:b==-1&&(k=P(k,/\f/g,"")),C>0&&ce(k)-g&&Ye(C>32?un(k+";",r,n,g-1,u):un(P(k," ","")+";",r,n,g-2,u),u);break;case 59:k+=";";default:if(Ye(R=ln(k,t,n,f,h,s,c,w,v=[],D=[],g,a),a),S===123)if(h===0)at(k,t,R,R,v,a,g,c,D);else switch(x===99&&U(k,3)===110?100:x){case 100:case 108:case 109:case 115:at(e,R,R,r&&Ye(ln(e,R,R,0,0,s,c,w,s,v=[],g,D),D),s,D,g,c,r?v:D);break;default:at(k,R,R,R,[""],D,0,c,D)}}f=h=C=0,L=b=1,w=k="",g=l;break;case 58:g=1+ce(k),C=T;default:if(L<1){if(S==123)--L;else if(S==125&&L++==0&&ro()==125)continue}switch(k+=Et(S),S*L){case 38:b=h>0?1:(k+="\f",-1);break;case 44:c[f++]=(ce(k)-1)*b,b=1;break;case 64:xe()===45&&(k+=Tt(oe())),x=xe(),h=g=ce(w=k+=lo(st())),S++;break;case 45:T===45&&ce(k)==2&&(L=0)}}return a}function ln(e,t,n,r,s,a,l,c,u,f,h,g){for(var x=s-1,C=s===0?a:[""],T=sn(C),L=0,N=0,b=0;L<r;++L)for(var S=0,w=Te(e,x+1,x=rn(N=l[L])),v=e;S<T;++S)(v=on(N>0?C[S]+" "+w:P(w,/&\f/g,C[S])))&&(u[b++]=v);return ot(e,t,n,s===0?tt:c,u,f,h,g)}function fo(e,t,n,r){return ot(e,t,n,tn,Et(no()),Te(e,2,-2),0,r)}function un(e,t,n,r,s){return ot(e,t,n,kt,Te(e,0,r),Te(e,r+1,-1),r,s)}function dn(e,t,n){switch(eo(e,t)){case 5103:return A+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return A+e+e;case 4789:return qe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return A+e+qe+e+V+e+e;case 5936:switch(U(e,t+11)){case 114:return A+e+V+P(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return A+e+V+P(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return A+e+V+P(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return A+e+V+e+e;case 6165:return A+e+V+"flex-"+e+e;case 5187:return A+e+P(e,/(\w+).+(:[^]+)/,A+"box-$1$2"+V+"flex-$1$2")+e;case 5443:return A+e+V+"flex-item-"+P(e,/flex-|-self/g,"")+(de(e,/flex-|baseline/)?"":V+"grid-row-"+P(e,/flex-|-self/g,""))+e;case 4675:return A+e+V+"flex-line-pack"+P(e,/align-content|flex-|-self/g,"")+e;case 5548:return A+e+V+P(e,"shrink","negative")+e;case 5292:return A+e+V+P(e,"basis","preferred-size")+e;case 6060:return A+"box-"+P(e,"-grow","")+A+e+V+P(e,"grow","positive")+e;case 4554:return A+P(e,/([^-])(transform)/g,"$1"+A+"$2")+e;case 6187:return P(P(P(e,/(zoom-|grab)/,A+"$1"),/(image-set)/,A+"$1"),e,"")+e;case 5495:case 3959:return P(e,/(image-set\([^]*)/,A+"$1$`$1");case 4968:return P(P(e,/(.+:)(flex-)?(.*)/,A+"box-pack:$3"+V+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+A+e+e;case 4200:if(!de(e,/flex-|baseline/))return V+"grid-column-align"+Te(e,t)+e;break;case 2592:case 3360:return V+P(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,s){return t=s,de(r.props,/grid-\w+-end/)})?~nt(e+(n=n[t].value),"span",0)?e:V+P(e,"-start","")+e+V+"grid-row-span:"+(~nt(n,"span",0)?de(n,/\d+/):+de(n,/\d+/)-+de(e,/\d+/))+";":V+P(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return de(r.props,/grid-\w+-start/)})?e:V+P(P(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return P(e,/(.+)-inline(.+)/,A+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ce(e)-1-t>6)switch(U(e,t+1)){case 109:if(U(e,t+4)!==45)break;case 102:return P(e,/(.+:)(.+)-([^]+)/,"$1"+A+"$2-$3$1"+qe+(U(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~nt(e,"stretch",0)?dn(P(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return P(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,s,a,l,c,u,f){return V+s+":"+a+f+(l?V+s+"-span:"+(c?u:+u-+a)+f:"")+e});case 4949:if(U(e,t+6)===121)return P(e,":",":"+A)+e;break;case 6444:switch(U(e,U(e,14)===45?18:11)){case 120:return P(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+A+(U(e,14)===45?"inline-":"")+"box$3$1"+A+"$2$3$1"+V+"$2box$3")+e;case 100:return P(e,":",":"+V)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return P(e,"scroll-","scroll-snap-")+e}return e}function ct(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function po(e,t,n,r){switch(e.type){case Qr:if(e.children.length)break;case Kr:case kt:return e.return=e.return||e.value;case tn:return"";case nn:return e.return=e.value+"{"+ct(e.children,r)+"}";case tt:if(!ce(e.value=e.props.join(",")))return""}return ce(n=ct(e.children,r))?e.return=e.value+"{"+n+"}":""}function ho(e){var t=sn(e);return function(n,r,s,a){for(var l="",c=0;c<t;c++)l+=e[c](n,r,s,a)||"";return l}}function mo(e){return function(t){t.root||(t=t.return)&&e(t)}}function go(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case kt:e.return=dn(e.value,e.length,n);return;case nn:return ct([he(e,{value:P(e.value,"@","@"+A)})],r);case tt:if(e.length)return to(n=e.props,function(s){switch(de(s,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":_e(he(e,{props:[P(s,/:(read-\w+)/,":"+qe+"$1")]})),_e(he(e,{props:[s]})),Rt(e,{props:an(n,r)});break;case"::placeholder":_e(he(e,{props:[P(s,/:(plac\w+)/,":"+A+"input-$1")]})),_e(he(e,{props:[P(s,/:(plac\w+)/,":"+qe+"$1")]})),_e(he(e,{props:[P(s,/:(plac\w+)/,V+"input-$1")]})),_e(he(e,{props:[s]})),Rt(e,{props:an(n,r)});break}return""})}}var yo={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Se=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",fn="active",pn="data-styled-version",lt="6.1.19",Lt=`/*!sc*/
|
|
31
|
-
`,ut=typeof window<"u"&&typeof document<"u",
|
|
30
|
+
<%s key={someKey} {...props} />`,Gt,Te,zi,Te),Nr[Te+Gt]=!0}}return s===r?Mi(B):Fi(B),B}}function Vi(s,p,y){return Hr(s,p,y,!0)}function Ni(s,p,y){return Hr(s,p,y,!1)}var Hi=Ni,$i=Vi;We.Fragment=r,We.jsx=Hi,We.jsxs=$i})()),We}var Qt;function Wr(){return Qt||(Qt=1,process.env.NODE_ENV==="production"?Qe.exports=Br():Qe.exports=Ur()),Qe.exports}var c=Wr();const qr=typeof window<"u"?f.useLayoutEffect:f.useEffect;function et(e,t){const n=f.useRef(e);qr(()=>{n.current=e},[e]),f.useEffect(()=>{if(t===null)return;const r=setInterval(()=>{n.current()},t);return()=>{clearInterval(r)}},[t])}function Yr(e){const[,t]=f.useState(0);et(()=>t(n=>n+1),e)}const Zr=(e,t)=>Xe.create(n=>({delay:0,startDate:e,endDate:t,startTime:e.getTime(),endTime:t.getTime(),setDelay:r=>n({delay:r}),setStartDate:r=>n({startDate:r}),setEndDate:r=>n({endDate:r})})),en=f.createContext(null),Gr=({children:e,startDate:t,endDate:n})=>{const r=f.useRef(null);return r.current||(r.current=Zr(t,n)),c.jsx(en.Provider,{value:r.current,children:e})},$=e=>{const t=f.useContext(en);if(!t)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return Xe.useStore(t,e)};var G=function(){return G=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},G.apply(this,arguments)};function be(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Kr(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Xr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Jr=Kr(function(e){return Xr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),V="-ms-",qe="-moz-",A="-webkit-",tn="comm",tt="rule",Et="decl",Qr="@import",nn="@keyframes",eo="@layer",rn=Math.abs,Ct=String.fromCharCode,Rt=Object.assign;function to(e,t){return U(e,0)^45?(((t<<2^U(e,0))<<2^U(e,1))<<2^U(e,2))<<2^U(e,3):0}function on(e){return e.trim()}function de(e,t){return(e=t.exec(e))?e[0]:e}function T(e,t,n){return e.replace(t,n)}function nt(e,t,n){return e.indexOf(t,n)}function U(e,t){return e.charCodeAt(t)|0}function Pe(e,t,n){return e.slice(t,n)}function le(e){return e.length}function sn(e){return e.length}function Ye(e,t){return t.push(e),e}function no(e,t){return e.map(t).join("")}function an(e,t){return e.filter(function(n){return!de(n,t)})}var rt=1,je=1,cn=0,te=0,z=0,Le="";function ot(e,t,n,r,o,a,u,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:rt,column:je,length:u,return:"",siblings:i}}function he(e,t){return Rt(ot("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function _e(e){for(;e.root;)e=he(e.root,{children:[e]});Ye(e,e.siblings)}function ro(){return z}function oo(){return z=te>0?U(Le,--te):0,je--,z===10&&(je=1,rt--),z}function se(){return z=te<cn?U(Le,te++):0,je++,z===10&&(je=1,rt++),z}function xe(){return U(Le,te)}function st(){return te}function it(e,t){return Pe(Le,e,t)}function Tt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function so(e){return rt=je=1,cn=le(Le=e),te=0,[]}function io(e){return Le="",e}function Pt(e){return on(it(te-1,jt(e===91?e+2:e===40?e+1:e)))}function ao(e){for(;(z=xe())&&z<33;)se();return Tt(e)>2||Tt(z)>3?"":" "}function co(e,t){for(;--t&&se()&&!(z<48||z>102||z>57&&z<65||z>70&&z<97););return it(e,st()+(t<6&&xe()==32&&se()==32))}function jt(e){for(;se();)switch(z){case e:return te;case 34:case 39:e!==34&&e!==39&&jt(z);break;case 40:e===41&&jt(e);break;case 92:se();break}return te}function lo(e,t){for(;se()&&e+z!==57;)if(e+z===84&&xe()===47)break;return"/*"+it(t,te-1)+"*"+Ct(e===47?e:se())}function uo(e){for(;!Tt(xe());)se();return it(e,te)}function fo(e){return io(at("",null,null,null,[""],e=so(e),0,[0],e))}function at(e,t,n,r,o,a,u,i,l){for(var d=0,m=0,g=u,S=0,k=0,P=0,L=1,N=1,x=1,b=0,w="",v=o,D=a,R=r,E=w;N;)switch(P=b,b=se()){case 40:if(P!=108&&U(E,g-1)==58){nt(E+=T(Pt(b),"&","&\f"),"&\f",rn(d?i[d-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:E+=Pt(b);break;case 9:case 10:case 13:case 32:E+=ao(P);break;case 92:E+=co(st()-1,7);continue;case 47:switch(xe()){case 42:case 47:Ye(po(lo(se(),st()),t,n,l),l);break;default:E+="/"}break;case 123*L:i[d++]=le(E)*x;case 125*L:case 59:case 0:switch(b){case 0:case 125:N=0;case 59+m:x==-1&&(E=T(E,/\f/g,"")),k>0&&le(E)-g&&Ye(k>32?un(E+";",r,n,g-1,l):un(T(E," ","")+";",r,n,g-2,l),l);break;case 59:E+=";";default:if(Ye(R=ln(E,t,n,d,m,o,i,w,v=[],D=[],g,a),a),b===123)if(m===0)at(E,t,R,R,v,a,g,i,D);else switch(S===99&&U(E,3)===110?100:S){case 100:case 108:case 109:case 115:at(e,R,R,r&&Ye(ln(e,R,R,0,0,o,i,w,o,v=[],g,D),D),o,D,g,i,r?v:D);break;default:at(E,R,R,R,[""],D,0,i,D)}}d=m=k=0,L=x=1,w=E="",g=u;break;case 58:g=1+le(E),k=P;default:if(L<1){if(b==123)--L;else if(b==125&&L++==0&&oo()==125)continue}switch(E+=Ct(b),b*L){case 38:x=m>0?1:(E+="\f",-1);break;case 44:i[d++]=(le(E)-1)*x,x=1;break;case 64:xe()===45&&(E+=Pt(se())),S=xe(),m=g=le(w=E+=uo(st())),b++;break;case 45:P===45&&le(E)==2&&(L=0)}}return a}function ln(e,t,n,r,o,a,u,i,l,d,m,g){for(var S=o-1,k=o===0?a:[""],P=sn(k),L=0,N=0,x=0;L<r;++L)for(var b=0,w=Pe(e,S+1,S=rn(N=u[L])),v=e;b<P;++b)(v=on(N>0?k[b]+" "+w:T(w,/&\f/g,k[b])))&&(l[x++]=v);return ot(e,t,n,o===0?tt:i,l,d,m,g)}function po(e,t,n,r){return ot(e,t,n,tn,Ct(ro()),Pe(e,2,-2),0,r)}function un(e,t,n,r,o){return ot(e,t,n,Et,Pe(e,0,r),Pe(e,r+1,-1),r,o)}function dn(e,t,n){switch(to(e,t)){case 5103:return A+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return A+e+e;case 4789:return qe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return A+e+qe+e+V+e+e;case 5936:switch(U(e,t+11)){case 114:return A+e+V+T(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return A+e+V+T(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return A+e+V+T(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return A+e+V+e+e;case 6165:return A+e+V+"flex-"+e+e;case 5187:return A+e+T(e,/(\w+).+(:[^]+)/,A+"box-$1$2"+V+"flex-$1$2")+e;case 5443:return A+e+V+"flex-item-"+T(e,/flex-|-self/g,"")+(de(e,/flex-|baseline/)?"":V+"grid-row-"+T(e,/flex-|-self/g,""))+e;case 4675:return A+e+V+"flex-line-pack"+T(e,/align-content|flex-|-self/g,"")+e;case 5548:return A+e+V+T(e,"shrink","negative")+e;case 5292:return A+e+V+T(e,"basis","preferred-size")+e;case 6060:return A+"box-"+T(e,"-grow","")+A+e+V+T(e,"grow","positive")+e;case 4554:return A+T(e,/([^-])(transform)/g,"$1"+A+"$2")+e;case 6187:return T(T(T(e,/(zoom-|grab)/,A+"$1"),/(image-set)/,A+"$1"),e,"")+e;case 5495:case 3959:return T(e,/(image-set\([^]*)/,A+"$1$`$1");case 4968:return T(T(e,/(.+:)(flex-)?(.*)/,A+"box-pack:$3"+V+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+A+e+e;case 4200:if(!de(e,/flex-|baseline/))return V+"grid-column-align"+Pe(e,t)+e;break;case 2592:case 3360:return V+T(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,de(r.props,/grid-\w+-end/)})?~nt(e+(n=n[t].value),"span",0)?e:V+T(e,"-start","")+e+V+"grid-row-span:"+(~nt(n,"span",0)?de(n,/\d+/):+de(n,/\d+/)-+de(e,/\d+/))+";":V+T(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return de(r.props,/grid-\w+-start/)})?e:V+T(T(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return T(e,/(.+)-inline(.+)/,A+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(le(e)-1-t>6)switch(U(e,t+1)){case 109:if(U(e,t+4)!==45)break;case 102:return T(e,/(.+:)(.+)-([^]+)/,"$1"+A+"$2-$3$1"+qe+(U(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~nt(e,"stretch",0)?dn(T(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return T(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,a,u,i,l,d){return V+o+":"+a+d+(u?V+o+"-span:"+(i?l:+l-+a)+d:"")+e});case 4949:if(U(e,t+6)===121)return T(e,":",":"+A)+e;break;case 6444:switch(U(e,U(e,14)===45?18:11)){case 120:return T(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+A+(U(e,14)===45?"inline-":"")+"box$3$1"+A+"$2$3$1"+V+"$2box$3")+e;case 100:return T(e,":",":"+V)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return T(e,"scroll-","scroll-snap-")+e}return e}function ct(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function ho(e,t,n,r){switch(e.type){case eo:if(e.children.length)break;case Qr:case Et:return e.return=e.return||e.value;case tn:return"";case nn:return e.return=e.value+"{"+ct(e.children,r)+"}";case tt:if(!le(e.value=e.props.join(",")))return""}return le(n=ct(e.children,r))?e.return=e.value+"{"+n+"}":""}function mo(e){var t=sn(e);return function(n,r,o,a){for(var u="",i=0;i<t;i++)u+=e[i](n,r,o,a)||"";return u}}function go(e){return function(t){t.root||(t=t.return)&&e(t)}}function yo(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Et:e.return=dn(e.value,e.length,n);return;case nn:return ct([he(e,{value:T(e.value,"@","@"+A)})],r);case tt:if(e.length)return no(n=e.props,function(o){switch(de(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":_e(he(e,{props:[T(o,/:(read-\w+)/,":"+qe+"$1")]})),_e(he(e,{props:[o]})),Rt(e,{props:an(n,r)});break;case"::placeholder":_e(he(e,{props:[T(o,/:(plac\w+)/,":"+A+"input-$1")]})),_e(he(e,{props:[T(o,/:(plac\w+)/,":"+qe+"$1")]})),_e(he(e,{props:[T(o,/:(plac\w+)/,V+"input-$1")]})),_e(he(e,{props:[o]})),Rt(e,{props:an(n,r)});break}return""})}}var vo={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Se=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",fn="active",pn="data-styled-version",lt="6.1.19",Lt=`/*!sc*/
|
|
31
|
+
`,ut=typeof window<"u"&&typeof document<"u",wo=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),hn=/invalid hook call/i,dt=new Set,bo=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
|
|
32
32
|
`)+`You may see this warning because you've called styled inside another component.
|
|
33
33
|
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
34
34
|
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
35
|
-
`,
|
|
35
|
+
`,o=console.error;try{var a=!0;console.error=function(u){for(var i=[],l=1;l<arguments.length;l++)i[l-1]=arguments[l];hn.test(u)?(a=!1,dt.delete(r)):o.apply(void 0,be([u],i,!1))},f.useRef(),a&&!dt.has(r)&&(console.warn(r),dt.add(r))}catch(u){hn.test(u.message)&&dt.delete(r)}finally{console.error=o}}},ft=Object.freeze([]),Ie=Object.freeze({});function xo(e,t,n){return n===void 0&&(n=Ie),e.theme!==n.theme&&e.theme||t||n.theme}var _t=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),So=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ko=/(^-|-$)/g;function mn(e){return e.replace(So,"-").replace(ko,"")}var Eo=/(a)(d)/gi,pt=52,gn=function(e){return String.fromCharCode(e+(e>25?39:97))};function It(e){var t,n="";for(t=Math.abs(e);t>pt;t=t/pt|0)n=gn(t%pt)+n;return(gn(t%pt)+n).replace(Eo,"$1-$2")}var Dt,yn=5381,ke=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},vn=function(e){return ke(yn,e)};function wn(e){return It(vn(e)>>>0)}function bn(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Ot(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var xn=typeof Symbol=="function"&&Symbol.for,Sn=xn?Symbol.for("react.memo"):60115,Co=xn?Symbol.for("react.forward_ref"):60112,Ro={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},To={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},kn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Po=((Dt={})[Co]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Dt[Sn]=kn,Dt);function En(e){return("type"in(t=e)&&t.type.$$typeof)===Sn?kn:"$$typeof"in e?Po[e.$$typeof]:Ro;var t}var jo=Object.defineProperty,Lo=Object.getOwnPropertyNames,Cn=Object.getOwnPropertySymbols,_o=Object.getOwnPropertyDescriptor,Io=Object.getPrototypeOf,Rn=Object.prototype;function Tn(e,t,n){if(typeof t!="string"){if(Rn){var r=Io(t);r&&r!==Rn&&Tn(e,r,n)}var o=Lo(t);Cn&&(o=o.concat(Cn(t)));for(var a=En(e),u=En(t),i=0;i<o.length;++i){var l=o[i];if(!(l in To||n&&n[l]||u&&l in u||a&&l in a)){var d=_o(t,l);try{jo(e,l,d)}catch{}}}}return e}function De(e){return typeof e=="function"}function At(e){return typeof e=="object"&&"styledComponentId"in e}function Ee(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ft(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Oe(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Mt(e,t,n){if(n===void 0&&(n=!1),!n&&!Oe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Mt(e[r],t[r]);else if(Oe(t))for(var r in t)e[r]=Mt(e[r],t[r]);return e}function Vt(e,t){Object.defineProperty(e,"toString",{value:t})}var Do=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
36
36
|
|
|
37
37
|
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
38
38
|
|
|
@@ -73,7 +73,7 @@ as for instance in your render method then you may be running into this limitati
|
|
|
73
73
|
|
|
74
74
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
75
75
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
76
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Do(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],s=1,a=e.length;s<a;s+=1)r.push(e[s]);return r.forEach(function(l){n=n.replace(/%[a-z]/,l)}),n}function Ae(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Do.apply(void 0,be([Io[e]],t,!1)).trim())}var Oo=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,s=r.length,a=s;t>=a;)if((a<<=1)<0)throw Ae(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var l=s;l<a;l++)this.groupSizes[l]=0}for(var c=this.indexOfGroup(t+1),u=(l=0,n.length);l<u;l++)this.tag.insertRule(c,n[l])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),s=r+n;this.groupSizes[t]=0;for(var a=r;a<s;a++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],s=this.indexOfGroup(t),a=s+r,l=s;l<a;l++)n+="".concat(this.tag.getRule(l)).concat(Lt);return n},e})(),Ao=1<<30,ht=new Map,mt=new Map,gt=1,yt=function(e){if(ht.has(e))return ht.get(e);for(;mt.has(gt);)gt++;var t=gt++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Ao))throw Ae(16,"".concat(t));return ht.set(e,t),mt.set(t,e),t},Fo=function(e,t){gt=t+1,ht.set(e,t),mt.set(t,e)},Mo="style[".concat(Se,"][").concat(pn,'="').concat(lt,'"]'),Vo=new RegExp("^".concat(Se,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),No=function(e,t,n){for(var r,s=n.split(","),a=0,l=s.length;a<l;a++)(r=s[a])&&e.registerName(t,r)},Ho=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Lt),s=[],a=0,l=r.length;a<l;a++){var c=r[a].trim();if(c){var u=c.match(Vo);if(u){var f=0|parseInt(u[1],10),h=u[2];f!==0&&(Fo(h,f),No(e,h,u[3]),e.getTag().insertRules(f,s)),s.length=0}else s.push(c)}}},Tn=function(e){for(var t=document.querySelectorAll(Mo),n=0,r=t.length;n<r;n++){var s=t[n];s&&s.getAttribute(Se)!==fn&&(Ho(e,s),s.parentNode&&s.parentNode.removeChild(s))}};function $o(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var jn=function(e){var t=document.head,n=e||t,r=document.createElement("style"),s=(function(c){var u=Array.from(c.querySelectorAll("style[".concat(Se,"]")));return u[u.length-1]})(n),a=s!==void 0?s.nextSibling:null;r.setAttribute(Se,fn),r.setAttribute(pn,lt);var l=$o();return l&&r.setAttribute("nonce",l),n.insertBefore(r,a),r},zo=(function(){function e(t){this.element=jn(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,s=0,a=r.length;s<a;s++){var l=r[s];if(l.ownerNode===n)return l}throw Ae(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e})(),Bo=(function(){function e(t){this.element=jn(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),Uo=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Ln=ut,Wo={isServer:!ut,useCSSOMInjection:!vo},_n=(function(){function e(t,n,r){t===void 0&&(t=Ie),n===void 0&&(n={});var s=this;this.options=G(G({},Wo),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&ut&&Ln&&(Ln=!1,Tn(this)),Vt(this,function(){return(function(a){for(var l=a.getTag(),c=l.length,u="",f=function(g){var x=(function(b){return mt.get(b)})(g);if(x===void 0)return"continue";var C=a.names.get(x),T=l.getGroup(g);if(C===void 0||!C.size||T.length===0)return"continue";var L="".concat(Se,".g").concat(g,'[id="').concat(x,'"]'),N="";C!==void 0&&C.forEach(function(b){b.length>0&&(N+="".concat(b,","))}),u+="".concat(T).concat(L,'{content:"').concat(N,'"}').concat(Lt)},h=0;h<c;h++)f(h);return u})(s)})}return e.registerId=function(t){return yt(t)},e.prototype.rehydrate=function(){!this.server&&ut&&Tn(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(G(G({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(n){var r=n.useCSSOMInjection,s=n.target;return n.isServer?new Uo(s):r?new zo(s):new Bo(s)})(this.options),new Oo(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(yt(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(yt(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(yt(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),qo=/&/g,Yo=/^\s*\/\/.*$/gm;function In(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=In(n.children,t)),n})}function Zo(e){var t,n,r,s=Ie,a=s.options,l=a===void 0?Ie:a,c=s.plugins,u=c===void 0?ft:c,f=function(x,C,T){return T.startsWith(n)&&T.endsWith(n)&&T.replaceAll(n,"").length>0?".".concat(t):x},h=u.slice();h.push(function(x){x.type===tt&&x.value.includes("&")&&(x.props[0]=x.props[0].replace(qo,n).replace(r,f))}),l.prefix&&h.push(go),h.push(po);var g=function(x,C,T,L){C===void 0&&(C=""),T===void 0&&(T=""),L===void 0&&(L="&"),t=L,n=C,r=new RegExp("\\".concat(n,"\\b"),"g");var N=x.replace(Yo,""),b=uo(T||C?"".concat(T," ").concat(C," { ").concat(N," }"):N);l.namespace&&(b=In(b,l.namespace));var S=[];return ct(b,ho(h.concat(mo(function(w){return S.push(w)})))),S};return g.hash=u.length?u.reduce(function(x,C){return C.name||Ae(15),Ce(x,C.name)},yn).toString():"",g}var Go=new _n,Nt=Zo(),Dn=p.createContext({shouldForwardProp:void 0,styleSheet:Go,stylis:Nt});Dn.Consumer,p.createContext(void 0);function On(){return p.useContext(Dn)}var Ht=(function(){function e(t,n){var r=this;this.inject=function(s,a){a===void 0&&(a=Nt);var l=r.name+a.hash;s.hasNameForId(r.id,l)||s.insertRules(r.id,l,a(r.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Vt(this,function(){throw Ae(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Nt),this.name+t.hash},e})(),Xo=function(e){return e>="A"&&e<="Z"};function An(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Xo(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Fn=function(e){return e==null||e===!1||e===""},Mn=function(e){var t,n,r=[];for(var s in e){var a=e[s];e.hasOwnProperty(s)&&!Fn(a)&&(Array.isArray(a)&&a.isCss||De(a)?r.push("".concat(An(s),":"),a,";"):Oe(a)?r.push.apply(r,be(be(["".concat(s," {")],Mn(a),!1),["}"],!1)):r.push("".concat(An(s),": ").concat((t=s,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in yo||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Ee(e,t,n,r){if(Fn(e))return[];if(At(e))return[".".concat(e.styledComponentId)];if(De(e)){if(!De(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var s=e(t);return process.env.NODE_ENV==="production"||typeof s!="object"||Array.isArray(s)||s instanceof Ht||Oe(s)||s===null||console.error("".concat(bn(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Ee(s,t,n,r)}var a;return e instanceof Ht?n?(e.inject(n,r),[e.getName(r)]):[e]:Oe(e)?Mn(e):Array.isArray(e)?Array.prototype.concat.apply(ft,e.map(function(l){return Ee(l,t,n,r)})):[e.toString()]}function Jo(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(De(n)&&!At(n))return!1}return!0}var Ko=vn(lt),Qo=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Jo(t),this.componentId=n,this.baseHash=Ce(Ko,n),this.baseStyle=r,_n.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var s=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))s=ke(s,this.staticRulesId);else{var a=Ft(Ee(this.rules,t,n,r)),l=It(Ce(this.baseHash,a)>>>0);if(!n.hasNameForId(this.componentId,l)){var c=r(a,".".concat(l),void 0,this.componentId);n.insertRules(this.componentId,l,c)}s=ke(s,l),this.staticRulesId=l}else{for(var u=Ce(this.baseHash,r.hash),f="",h=0;h<this.rules.length;h++){var g=this.rules[h];if(typeof g=="string")f+=g,process.env.NODE_ENV!=="production"&&(u=Ce(u,g));else if(g){var x=Ft(Ee(g,t,n,r));u=Ce(u,x+h),f+=x}}if(f){var C=It(u>>>0);n.hasNameForId(this.componentId,C)||n.insertRules(this.componentId,C,r(f,".".concat(C),void 0,this.componentId)),s=ke(s,C)}}return s},e})(),Vn=p.createContext(void 0);Vn.Consumer;var $t={},Nn=new Set;function es(e,t,n){var r=At(e),s=e,a=!Ot(e),l=t.attrs,c=l===void 0?ft:l,u=t.componentId,f=u===void 0?(function(v,D){var R=typeof v!="string"?"sc":mn(v);$t[R]=($t[R]||0)+1;var k="".concat(R,"-").concat(wn(lt+R+$t[R]));return D?"".concat(D,"-").concat(k):k})(t.displayName,t.parentComponentId):u,h=t.displayName,g=h===void 0?(function(v){return Ot(v)?"styled.".concat(v):"Styled(".concat(bn(v),")")})(e):h,x=t.displayName&&t.componentId?"".concat(mn(t.displayName),"-").concat(t.componentId):t.componentId||f,C=r&&s.attrs?s.attrs.concat(c).filter(Boolean):c,T=t.shouldForwardProp;if(r&&s.shouldForwardProp){var L=s.shouldForwardProp;if(t.shouldForwardProp){var N=t.shouldForwardProp;T=function(v,D){return L(v,D)&&N(v,D)}}else T=L}var b=new Qo(n,x,r?s.componentStyle:void 0);function S(v,D){return(function(R,k,W){var X=R.attrs,O=R.componentStyle,Me=R.defaultProps,fe=R.foldedComponentIds,q=R.styledComponentId,te=R.target,le=p.useContext(Vn),Re=On(),J=R.shouldForwardProp||Re.shouldForwardProp;process.env.NODE_ENV!=="production"&&p.useDebugValue(q);var Ze=bo(k,le,Me)||Ie,ne=(function(Ne,pe,ve){for(var se,ie=G(G({},pe),{className:void 0,theme:ve}),we=0;we<Ne.length;we+=1){var He=De(se=Ne[we])?se(ie):se;for(var ae in He)ie[ae]=ae==="className"?ke(ie[ae],He[ae]):ae==="style"?G(G({},ie[ae]),He[ae]):He[ae]}return pe.className&&(ie.className=ke(ie.className,pe.className)),ie})(X,k,Ze),ge=ne.as||te,ye={};for(var Y in ne)ne[Y]===void 0||Y[0]==="$"||Y==="as"||Y==="theme"&&ne.theme===Ze||(Y==="forwardedAs"?ye.as=ne.forwardedAs:J&&!J(Y,ge)||(ye[Y]=ne[Y],J||process.env.NODE_ENV!=="development"||Jr(Y)||Nn.has(Y)||!_t.has(ge)||(Nn.add(Y),console.warn('styled-components: it looks like an unknown prop "'.concat(Y,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var Ve=(function(Ne,pe){var ve=On(),se=Ne.generateAndInjectStyles(pe,ve.styleSheet,ve.stylis);return process.env.NODE_ENV!=="production"&&p.useDebugValue(se),se})(O,ne);process.env.NODE_ENV!=="production"&&R.warnTooManyClasses&&R.warnTooManyClasses(Ve);var Ge=ke(fe,q);return Ve&&(Ge+=" "+Ve),ne.className&&(Ge+=" "+ne.className),ye[Ot(ge)&&!_t.has(ge)?"class":"className"]=Ge,W&&(ye.ref=W),p.createElement(ge,ye)})(w,v,D)}S.displayName=g;var w=p.forwardRef(S);return w.attrs=C,w.componentStyle=b,w.displayName=g,w.shouldForwardProp=T,w.foldedComponentIds=r?ke(s.foldedComponentIds,s.styledComponentId):"",w.styledComponentId=x,w.target=r?s.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(v){this._foldedDefaultProps=r?(function(D){for(var R=[],k=1;k<arguments.length;k++)R[k-1]=arguments[k];for(var W=0,X=R;W<X.length;W++)Mt(D,X[W],!0);return D})({},s.defaultProps,v):v}}),process.env.NODE_ENV!=="production"&&(wo(g,x),w.warnTooManyClasses=(function(v,D){var R={},k=!1;return function(W){if(!k&&(R[W]=!0,Object.keys(R).length>=200)){var X=D?' with the id of "'.concat(D,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(v).concat(X,`.
|
|
76
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Oo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,a=e.length;o<a;o+=1)r.push(e[o]);return r.forEach(function(u){n=n.replace(/%[a-z]/,u)}),n}function Ae(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Oo.apply(void 0,be([Do[e]],t,!1)).trim())}var Ao=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,a=o;t>=a;)if((a<<=1)<0)throw Ae(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var u=o;u<a;u++)this.groupSizes[u]=0}for(var i=this.indexOfGroup(t+1),l=(u=0,n.length);u<l;u++)this.tag.insertRule(i,n[u])&&(this.groupSizes[t]++,i++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var a=r;a<o;a++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),a=o+r,u=o;u<a;u++)n+="".concat(this.tag.getRule(u)).concat(Lt);return n},e})(),Fo=1<<30,ht=new Map,mt=new Map,gt=1,yt=function(e){if(ht.has(e))return ht.get(e);for(;mt.has(gt);)gt++;var t=gt++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Fo))throw Ae(16,"".concat(t));return ht.set(e,t),mt.set(t,e),t},Mo=function(e,t){gt=t+1,ht.set(e,t),mt.set(t,e)},Vo="style[".concat(Se,"][").concat(pn,'="').concat(lt,'"]'),No=new RegExp("^".concat(Se,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ho=function(e,t,n){for(var r,o=n.split(","),a=0,u=o.length;a<u;a++)(r=o[a])&&e.registerName(t,r)},$o=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Lt),o=[],a=0,u=r.length;a<u;a++){var i=r[a].trim();if(i){var l=i.match(No);if(l){var d=0|parseInt(l[1],10),m=l[2];d!==0&&(Mo(m,d),Ho(e,m,l[3]),e.getTag().insertRules(d,o)),o.length=0}else o.push(i)}}},Pn=function(e){for(var t=document.querySelectorAll(Vo),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Se)!==fn&&($o(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function zo(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var jn=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(i){var l=Array.from(i.querySelectorAll("style[".concat(Se,"]")));return l[l.length-1]})(n),a=o!==void 0?o.nextSibling:null;r.setAttribute(Se,fn),r.setAttribute(pn,lt);var u=zo();return u&&r.setAttribute("nonce",u),n.insertBefore(r,a),r},Bo=(function(){function e(t){this.element=jn(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,a=r.length;o<a;o++){var u=r[o];if(u.ownerNode===n)return u}throw Ae(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e})(),Uo=(function(){function e(t){this.element=jn(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),Wo=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),Ln=ut,qo={isServer:!ut,useCSSOMInjection:!wo},_n=(function(){function e(t,n,r){t===void 0&&(t=Ie),n===void 0&&(n={});var o=this;this.options=G(G({},qo),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&ut&&Ln&&(Ln=!1,Pn(this)),Vt(this,function(){return(function(a){for(var u=a.getTag(),i=u.length,l="",d=function(g){var S=(function(x){return mt.get(x)})(g);if(S===void 0)return"continue";var k=a.names.get(S),P=u.getGroup(g);if(k===void 0||!k.size||P.length===0)return"continue";var L="".concat(Se,".g").concat(g,'[id="').concat(S,'"]'),N="";k!==void 0&&k.forEach(function(x){x.length>0&&(N+="".concat(x,","))}),l+="".concat(P).concat(L,'{content:"').concat(N,'"}').concat(Lt)},m=0;m<i;m++)d(m);return l})(o)})}return e.registerId=function(t){return yt(t)},e.prototype.rehydrate=function(){!this.server&&ut&&Pn(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(G(G({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new Wo(o):r?new Bo(o):new Uo(o)})(this.options),new Ao(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(yt(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(yt(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(yt(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Yo=/&/g,Zo=/^\s*\/\/.*$/gm;function In(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=In(n.children,t)),n})}function Go(e){var t,n,r,o=Ie,a=o.options,u=a===void 0?Ie:a,i=o.plugins,l=i===void 0?ft:i,d=function(S,k,P){return P.startsWith(n)&&P.endsWith(n)&&P.replaceAll(n,"").length>0?".".concat(t):S},m=l.slice();m.push(function(S){S.type===tt&&S.value.includes("&")&&(S.props[0]=S.props[0].replace(Yo,n).replace(r,d))}),u.prefix&&m.push(yo),m.push(ho);var g=function(S,k,P,L){k===void 0&&(k=""),P===void 0&&(P=""),L===void 0&&(L="&"),t=L,n=k,r=new RegExp("\\".concat(n,"\\b"),"g");var N=S.replace(Zo,""),x=fo(P||k?"".concat(P," ").concat(k," { ").concat(N," }"):N);u.namespace&&(x=In(x,u.namespace));var b=[];return ct(x,mo(m.concat(go(function(w){return b.push(w)})))),b};return g.hash=l.length?l.reduce(function(S,k){return k.name||Ae(15),ke(S,k.name)},yn).toString():"",g}var Ko=new _n,Nt=Go(),Dn=f.createContext({shouldForwardProp:void 0,styleSheet:Ko,stylis:Nt});Dn.Consumer,f.createContext(void 0);function On(){return f.useContext(Dn)}var Ht=(function(){function e(t,n){var r=this;this.inject=function(o,a){a===void 0&&(a=Nt);var u=r.name+a.hash;o.hasNameForId(r.id,u)||o.insertRules(r.id,u,a(r.rules,u,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Vt(this,function(){throw Ae(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Nt),this.name+t.hash},e})(),Xo=function(e){return e>="A"&&e<="Z"};function An(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Xo(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Fn=function(e){return e==null||e===!1||e===""},Mn=function(e){var t,n,r=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Fn(a)&&(Array.isArray(a)&&a.isCss||De(a)?r.push("".concat(An(o),":"),a,";"):Oe(a)?r.push.apply(r,be(be(["".concat(o," {")],Mn(a),!1),["}"],!1)):r.push("".concat(An(o),": ").concat((t=o,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in vo||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Ce(e,t,n,r){if(Fn(e))return[];if(At(e))return[".".concat(e.styledComponentId)];if(De(e)){if(!De(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Ht||Oe(o)||o===null||console.error("".concat(bn(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Ce(o,t,n,r)}var a;return e instanceof Ht?n?(e.inject(n,r),[e.getName(r)]):[e]:Oe(e)?Mn(e):Array.isArray(e)?Array.prototype.concat.apply(ft,e.map(function(u){return Ce(u,t,n,r)})):[e.toString()]}function Jo(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(De(n)&&!At(n))return!1}return!0}var Qo=vn(lt),es=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Jo(t),this.componentId=n,this.baseHash=ke(Qo,n),this.baseStyle=r,_n.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=Ee(o,this.staticRulesId);else{var a=Ft(Ce(this.rules,t,n,r)),u=It(ke(this.baseHash,a)>>>0);if(!n.hasNameForId(this.componentId,u)){var i=r(a,".".concat(u),void 0,this.componentId);n.insertRules(this.componentId,u,i)}o=Ee(o,u),this.staticRulesId=u}else{for(var l=ke(this.baseHash,r.hash),d="",m=0;m<this.rules.length;m++){var g=this.rules[m];if(typeof g=="string")d+=g,process.env.NODE_ENV!=="production"&&(l=ke(l,g));else if(g){var S=Ft(Ce(g,t,n,r));l=ke(l,S+m),d+=S}}if(d){var k=It(l>>>0);n.hasNameForId(this.componentId,k)||n.insertRules(this.componentId,k,r(d,".".concat(k),void 0,this.componentId)),o=Ee(o,k)}}return o},e})(),Vn=f.createContext(void 0);Vn.Consumer;var $t={},Nn=new Set;function ts(e,t,n){var r=At(e),o=e,a=!Ot(e),u=t.attrs,i=u===void 0?ft:u,l=t.componentId,d=l===void 0?(function(v,D){var R=typeof v!="string"?"sc":mn(v);$t[R]=($t[R]||0)+1;var E="".concat(R,"-").concat(wn(lt+R+$t[R]));return D?"".concat(D,"-").concat(E):E})(t.displayName,t.parentComponentId):l,m=t.displayName,g=m===void 0?(function(v){return Ot(v)?"styled.".concat(v):"Styled(".concat(bn(v),")")})(e):m,S=t.displayName&&t.componentId?"".concat(mn(t.displayName),"-").concat(t.componentId):t.componentId||d,k=r&&o.attrs?o.attrs.concat(i).filter(Boolean):i,P=t.shouldForwardProp;if(r&&o.shouldForwardProp){var L=o.shouldForwardProp;if(t.shouldForwardProp){var N=t.shouldForwardProp;P=function(v,D){return L(v,D)&&N(v,D)}}else P=L}var x=new es(n,S,r?o.componentStyle:void 0);function b(v,D){return(function(R,E,W){var K=R.attrs,O=R.componentStyle,Me=R.defaultProps,fe=R.foldedComponentIds,q=R.styledComponentId,ne=R.target,ue=f.useContext(Vn),Re=On(),X=R.shouldForwardProp||Re.shouldForwardProp;process.env.NODE_ENV!=="production"&&f.useDebugValue(q);var Ze=xo(E,ue,Me)||Ie,re=(function(Ne,pe,ve){for(var ie,ae=G(G({},pe),{className:void 0,theme:ve}),we=0;we<Ne.length;we+=1){var He=De(ie=Ne[we])?ie(ae):ie;for(var ce in He)ae[ce]=ce==="className"?Ee(ae[ce],He[ce]):ce==="style"?G(G({},ae[ce]),He[ce]):He[ce]}return pe.className&&(ae.className=Ee(ae.className,pe.className)),ae})(K,E,Ze),ge=re.as||ne,ye={};for(var Y in re)re[Y]===void 0||Y[0]==="$"||Y==="as"||Y==="theme"&&re.theme===Ze||(Y==="forwardedAs"?ye.as=re.forwardedAs:X&&!X(Y,ge)||(ye[Y]=re[Y],X||process.env.NODE_ENV!=="development"||Jr(Y)||Nn.has(Y)||!_t.has(ge)||(Nn.add(Y),console.warn('styled-components: it looks like an unknown prop "'.concat(Y,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var Ve=(function(Ne,pe){var ve=On(),ie=Ne.generateAndInjectStyles(pe,ve.styleSheet,ve.stylis);return process.env.NODE_ENV!=="production"&&f.useDebugValue(ie),ie})(O,re);process.env.NODE_ENV!=="production"&&R.warnTooManyClasses&&R.warnTooManyClasses(Ve);var Ge=Ee(fe,q);return Ve&&(Ge+=" "+Ve),re.className&&(Ge+=" "+re.className),ye[Ot(ge)&&!_t.has(ge)?"class":"className"]=Ge,W&&(ye.ref=W),f.createElement(ge,ye)})(w,v,D)}b.displayName=g;var w=f.forwardRef(b);return w.attrs=k,w.componentStyle=x,w.displayName=g,w.shouldForwardProp=P,w.foldedComponentIds=r?Ee(o.foldedComponentIds,o.styledComponentId):"",w.styledComponentId=S,w.target=r?o.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(v){this._foldedDefaultProps=r?(function(D){for(var R=[],E=1;E<arguments.length;E++)R[E-1]=arguments[E];for(var W=0,K=R;W<K.length;W++)Mt(D,K[W],!0);return D})({},o.defaultProps,v):v}}),process.env.NODE_ENV!=="production"&&(bo(g,S),w.warnTooManyClasses=(function(v,D){var R={},E=!1;return function(W){if(!E&&(R[W]=!0,Object.keys(R).length>=200)){var K=D?' with the id of "'.concat(D,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(v).concat(K,`.
|
|
77
77
|
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
78
78
|
Example:
|
|
79
79
|
const Component = styled.div.attrs(props => ({
|
|
@@ -82,11 +82,11 @@ Example:
|
|
|
82
82
|
},
|
|
83
83
|
}))\`width: 100%;\`
|
|
84
84
|
|
|
85
|
-
<Component />`),
|
|
85
|
+
<Component />`),E=!0,R={}}}})(g,S)),Vt(w,function(){return".".concat(w.styledComponentId)}),a&&Tn(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function Hn(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var $n=function(e){return Object.assign(e,{isCss:!0})};function vt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(De(e)||Oe(e))return $n(Ce(Hn(ft,be([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?Ce(r):$n(Ce(Hn(r,t)))}function zt(e,t,n){if(n===void 0&&(n=Ie),!t)throw Ae(1,t);var r=function(o){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return e(t,n,vt.apply(void 0,be([o],a,!1)))};return r.attrs=function(o){return zt(e,t,G(G({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return zt(e,t,G(G({},n),o))},r}var zn=function(e){return zt(ts,e)},I=zn;_t.forEach(function(e){I[e]=zn(e)});function ns(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=Ft(vt.apply(void 0,be([e],t,!1))),o=wn(r);return new Ht(o,r)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
86
86
|
Perhaps you're looking to import 'styled-components/native'?
|
|
87
87
|
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var wt="__sc-".concat(Se,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[wt]||(window[wt]=0),window[wt]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
88
88
|
|
|
89
|
-
See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);function
|
|
89
|
+
See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);function rs({children:e,eventFinishedMessage:t,eventNotStartedMessage:n,eventStartingSoonMessage:r}){const o=$(d=>d.startDate),a=$(d=>d.endDate),u=Date.now(),i=u<o.getTime(),l=u>a.getTime();return Yr(5e3),i?c.jsx(os,{startDate:o,title:n||"Event has not started yet.",message:r||"Starting in few seconds..."}):l?c.jsx(ss,{title:t||"Event has finished."}):c.jsx(c.Fragment,{children:e})}function os({startDate:e,title:t,message:n}){const r=e.getTime()-Date.now(),o=Math.floor(r/(1e3*60*60)),a=Math.floor(r%(1e3*60*60)/(1e3*60));return o||a?c.jsxs(Bt,{children:[c.jsx(Ut,{children:t}),c.jsxs(is,{children:["(",o>0?`${o}h ${a}m`:`${a}m`,")"]})]}):c.jsx(Bt,{children:c.jsx(Ut,{children:n})})}function ss({title:e}){return c.jsx(Bt,{children:c.jsx(Ut,{children:e})})}const Bt=I.div`
|
|
90
90
|
position: absolute;
|
|
91
91
|
top: 0;
|
|
92
92
|
left: 0;
|
|
@@ -106,14 +106,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);function ns({children
|
|
|
106
106
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
107
107
|
"Helvetica Neue", Arial, sans-serif;
|
|
108
108
|
font-weight: 500;
|
|
109
|
-
`,
|
|
109
|
+
`,is=I.p`
|
|
110
110
|
margin: 0;
|
|
111
111
|
height: 1.25rem;
|
|
112
112
|
font-size: 1rem;
|
|
113
113
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
114
114
|
"Helvetica Neue", Arial, sans-serif;
|
|
115
115
|
font-weight: 500;
|
|
116
|
-
`;function
|
|
116
|
+
`;function as(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})})}const me=f.forwardRef(({shape:e="circle",...t},n)=>c.jsx(cs,{ref:n,$shape:e,...t}));me.displayName="PlayerButton";const cs=I.button`
|
|
117
117
|
margin: 0;
|
|
118
118
|
display: flex;
|
|
119
119
|
align-items: center;
|
|
@@ -160,7 +160,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);function ns({children
|
|
|
160
160
|
${({$shape:e})=>e==="square"&&vt`
|
|
161
161
|
padding: 0.25rem 0.5rem;
|
|
162
162
|
`}
|
|
163
|
-
`;function
|
|
163
|
+
`;function ls({message:e,...t}){const n=$(a=>a.delay),r=$(a=>a.setDelay),o=()=>r(0);return n?c.jsxs(me,{onClick:o,shape:"square",...t,children:[c.jsx("span",{children:e||"Live"}),c.jsx(as,{})]}):null}function us(e,t,n){const r={days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001};return e*(r[t]/r[n])}function ds(e){return us(e,"milliseconds","seconds")}const Fe=e=>{const t=Math.floor(e/60),n=Math.floor(e%60);return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`};function fs(e){const t=typeof window<"u"&&window.navigator?.userAgent||"";return e.test(t)}const Bn=fs(/iPhone|iPad|iPod/i);function ps(){const e=document;return!!(e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement)}function hs(e){e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.webkitEnterFullScreen?e.webkitEnterFullScreen():e.mozRequestFullScreen&&e.mozRequestFullScreen()}function ms(e){e.exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen&&e.mozCancelFullScreen()}function gs(e,t){return e.addEventListener("fullscreenchange",t),e.addEventListener("webkitfullscreenchange",t),e.addEventListener("mozfullscreenchange",t),e.addEventListener("MSFullscreenChange",t),()=>{e.removeEventListener("fullscreenchange",t),e.removeEventListener("webkitfullscreenchange",t),e.removeEventListener("mozfullscreenchange",t),e.removeEventListener("MSFullscreenChange",t)}}const ys=(e,t)=>({currentTime:0,duration:0,isEnded:!1,isLoading:!1,isLoop:!1,isMetaLoaded:!1,isPlaying:!1,isReady:!1,isStarted:!1,pauseTime:0,seekTime:-1,startTime:-1,volume:100,destroy:()=>{},handleDurationChange:()=>{const n=t().techRef.current;n&&e({duration:n.duration})},handleEnd:()=>{t().techRef.current&&e({isEnded:!0,isLoading:!1,isMetaLoaded:!1,isPlaying:!1})},handleLoadedMetadata:()=>{const n=t().techRef.current;n&&(n.loop=t().isLoop,n.volume=n.muted?0:1,t().startTime!==-1&&(n.currentTime=t().startTime),e({currentTime:t().startTime!==-1?t().startTime:n.currentTime,duration:n.duration,startTime:-1,isMetaLoaded:!0,volume:n.muted?0:100}))},handleLoadStart:()=>{const n=t().techRef.current;n&&(e({isReady:!0}),n.play().then(()=>{e({isEnded:!1,isLoading:!1,isPlaying:!0,isStarted:!0,pauseTime:0})}).catch(r=>e(()=>(console.info("Player failed to autoplay",r),{isStarted:!1,isEnded:!1,isLoading:!1,isPlaying:!1}))))},handlePause:()=>e({isPlaying:!1,pauseTime:Date.now()}),handlePlay:()=>e({isPlaying:!0,pauseTime:0}),handlePlaying:()=>e({isLoading:!1}),handleSeeked:()=>e({isLoading:!1}),handleSeeking:()=>e({isLoading:!0}),handleTimeUpdate:()=>{const n=t().techRef.current;n&&e({currentTime:n.currentTime})},handleWaiting:()=>e({isLoading:!0}),pause:()=>{const n=t().techRef.current;n&&(n.pause(),e({isEnded:!1,isPlaying:!1,pauseTime:Date.now()}))},getPauseTimeDiff:()=>!t().isStarted||!t().pauseTime?0:parseInt(ds(Date.now()-t().pauseTime).toFixed(0)),play:()=>{const n=t().techRef.current;n&&(n.play(),e({isEnded:!1,isPlaying:!0,isStarted:!0,pauseTime:0}))},seek:n=>{const r=t().techRef.current;r&&(r.currentTime=n,(r.paused||r.ended)&&r.play(),e({seekTime:-1,currentTime:n,isStarted:!0,isEnded:!1,isPlaying:!0}))},setIsLoading:n=>e({isLoading:n}),setIsLoop:n=>{const r=t().techRef.current;r&&(r.loop=n,e({isLoop:n}))},setStartTime:n=>e({startTime:n}),setVolume:n=>{const r=t().techRef.current;r&&(r.muted=n===0,r.volume=n/100,e({volume:n}))},stop:()=>{t().techRef.current&&e({isPlaying:!1,isLoading:!1})}}),vs=e=>({idleLocks:new Set,addIdleLock:t=>e(n=>({idleLocks:new Set(n.idleLocks).add(t)})),removeIdleLock:t=>e(n=>{const r=new Set(n.idleLocks);return r.delete(t),{idleLocks:r}})}),ws=e=>({level:null,levels:null,setLevels:t=>e({levels:t}),setLevel:t=>e({level:t})}),bs=(e,t)=>({isFullscreen:!1,isFullscreenReady:!1,exitFullscreen:()=>{ms(document),e({isFullscreen:!1})},requestFullscreen:()=>{const n=t().techRef.current,r=t().containerRef.current;if(!n||!r)return;const o=Bn?n:r;o&&hs(o),e({isFullscreen:!0})},setIsFullscreen:n=>e({isFullscreen:n}),setIsFullscreenReady:n=>e({isFullscreenReady:n})}),xs=e=>()=>({...e}),Ss=(e,t)=>Xe.create()((...n)=>({...ys(...n),...vs(...n),...bs(...n),...ws(...n),...xs({techRef:e,containerRef:t})(...n)})),Un=f.createContext(null);function ks({children:e}){const t=f.useRef(null),n=f.useRef(null),r=f.useRef(null);return t.current||(t.current=Ss(n,r)),c.jsx(Un.Provider,{value:t.current,children:e})}const h=e=>{const t=f.useContext(Un);if(!t)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return Xe.useStore(t,e)};function Wn(){const e=h(i=>i.exitFullscreen),t=h(i=>i.isFullscreen),n=h(i=>i.isFullscreenReady),r=h(i=>i.requestFullscreen),o=h(i=>i.setVolume),a=h(i=>i.volume),u=f.useCallback(i=>{let l=!1;if(!(i.target instanceof HTMLInputElement||i.ctrlKey)){switch(i.code){case"ArrowUp":o(a+10<100?a+10:100),l=!0;break;case"ArrowDown":o(a-10>0?a-10:0),l=!0;break;case"KeyM":o(a===0?100:0),l=!0;break;case"KeyF":n&&(t?e():r(),l=!0);break}l&&i.preventDefault()}},[e,t,n,r,o,a]);return f.useEffect(()=>(document.addEventListener("keydown",u),()=>{document.removeEventListener("keydown",u)}),[u]),null}function Es(){const e=$(i=>i.delay),t=h(i=>i.isPlaying),n=h(i=>i.pause),r=h(i=>i.getPauseTimeDiff),o=h(i=>i.play),a=$(i=>i.setDelay),u=f.useCallback(i=>{let l=!1;if(!(i.target instanceof HTMLInputElement||i.ctrlKey)){switch(i.code){case"ArrowLeft":a(e+10),l=!0;break;case"ArrowRight":a(e-10>0?e-10:0),l=!0;break;case"Space":if(t)n();else{const d=r();d&&a(e+d),o()}l=!0;break}l&&i.preventDefault()}},[e,r,t,n,o,a]);return f.useEffect(()=>(document.addEventListener("keydown",u),()=>{document.removeEventListener("keydown",u)}),[u]),c.jsx(Wn,{})}function qn(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M6 5H8V19H6V5ZM16 5H18V19H16V5Z"})})}function Yn(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z"})})}function Cs(){const e=h(i=>i.isPlaying),t=h(i=>i.pause),n=h(i=>i.getPauseTimeDiff),r=h(i=>i.play),o=$(i=>i.delay),a=$(i=>i.setDelay),u=()=>{if(e)t();else{const i=n();i&&a(o+i),r()}};return c.jsx(me,{onClick:u,children:e?c.jsx(qn,{}):c.jsx(Yn,{})})}function Zn({className:e,onClick:t,...n}){const r=f.useRef(null),o=h(g=>g.exitFullscreen),a=h(g=>g.isFullscreen),u=h(g=>g.requestFullscreen),i=g=>{m()?(d(),a?o():u()):l(g)},l=g=>{r.current=window.setTimeout(()=>{t?.(g),d()},200)},d=()=>{r.current!==null&&(window.clearTimeout(r.current),r.current=null)},m=()=>r.current!==null;return f.useEffect(()=>()=>{d()},[]),c.jsx(Rs,{onClick:i,className:e,"aria-label":"Player playback indicator",...n})}const Rs=I.button`
|
|
164
164
|
position: absolute;
|
|
165
165
|
top: 0;
|
|
166
166
|
left: 0;
|
|
@@ -178,11 +178,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);function ns({children
|
|
|
178
178
|
&:focus {
|
|
179
179
|
outline: none;
|
|
180
180
|
}
|
|
181
|
-
`;function
|
|
181
|
+
`;function Ts(){const e=h(i=>i.isPlaying),t=h(i=>i.pause),n=h(i=>i.getPauseTimeDiff),r=h(i=>i.play),o=$(i=>i.delay),a=$(i=>i.setDelay),u=()=>{if(e)t();else{const i=n();i&&a(o+i),r()}};return c.jsx(Zn,{onClick:u})}const Gn=I.div`
|
|
182
182
|
position: relative;
|
|
183
183
|
width: 100%;
|
|
184
184
|
margin-bottom: -0.25rem;
|
|
185
|
-
`,
|
|
185
|
+
`,Kn=I.div`
|
|
186
186
|
position: absolute;
|
|
187
187
|
bottom: 1.75rem;
|
|
188
188
|
left: 0;
|
|
@@ -205,7 +205,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);function ns({children
|
|
|
205
205
|
color: white;
|
|
206
206
|
background: rgba(0, 0, 0, 0.8);
|
|
207
207
|
border-radius: 1rem;
|
|
208
|
-
`,bt=
|
|
208
|
+
`,bt=f.forwardRef(({max:e=100,min:t=0,...n},r)=>c.jsxs(Ps,{ref:r,min:t,max:e,"aria-label":"Player progress",onKeyDown:o=>o.preventDefault(),...n,children:[c.jsx(js,{children:c.jsx(Ls,{})}),c.jsx(_s,{})]}));bt.displayName="PlayerSlider";const Ps=I(Je.Root)`
|
|
209
209
|
position: relative;
|
|
210
210
|
display: flex;
|
|
211
211
|
align-items: center;
|
|
@@ -219,20 +219,20 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);function ns({children
|
|
|
219
219
|
cursor: not-allowed;
|
|
220
220
|
opacity: 0.5;
|
|
221
221
|
}
|
|
222
|
-
`,
|
|
222
|
+
`,js=I(Je.Track)`
|
|
223
223
|
position: relative;
|
|
224
224
|
height: 0.25rem;
|
|
225
225
|
flex-grow: 1;
|
|
226
226
|
background: rgba(255, 255, 255, 0.2);
|
|
227
227
|
border-radius: 1rem;
|
|
228
228
|
overflow: hidden;
|
|
229
|
-
`,
|
|
229
|
+
`,Ls=I(Je.Range)`
|
|
230
230
|
position: absolute;
|
|
231
231
|
height: 100%;
|
|
232
232
|
background: #f7e406;
|
|
233
233
|
transition: width 0.2s ease-in-out;
|
|
234
234
|
border-radius: 1rem;
|
|
235
|
-
`,
|
|
235
|
+
`,_s=I(Je.Thumb)`
|
|
236
236
|
display: block;
|
|
237
237
|
width: 0.875rem;
|
|
238
238
|
height: 0.875rem;
|
|
@@ -255,10 +255,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);function ns({children
|
|
|
255
255
|
cursor: not-allowed;
|
|
256
256
|
opacity: 0.5;
|
|
257
257
|
}
|
|
258
|
-
`;function xt(e){const t=e.getBoundingClientRect();return e.offsetWidth/e.offsetHeight>e.clientWidth/e.clientHeight?{left:t.left*100,right:t.right*100,top:t.top*100,bottom:t.bottom*100,width:t.width*100,height:t.height*100}:t}const Jn=(e,t=0)=>parseInt(Math.max(0,(Date.now()-(e+t*1e3))/1e3).toFixed(0)),
|
|
258
|
+
`;function xt(e){const t=e.getBoundingClientRect();return e.offsetWidth/e.offsetHeight>e.clientWidth/e.clientHeight?{left:t.left*100,right:t.right*100,top:t.top*100,bottom:t.bottom*100,width:t.width*100,height:t.height*100}:t}const Jn=(e,t=0)=>parseInt(Math.max(0,(Date.now()-(e+t*1e3))/1e3).toFixed(0)),Qn=(e,t)=>Math.max(0,(Date.now()-e-t*1e3)/1e3),er=(e,t)=>Math.max(0,(t-e)/1e3),Is=(e,t=0)=>{const r=t<0?0:t,o=["bytes","kb","mb","gb","tb","pb","eb","zb","yb"],a=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,a)).toFixed(r))}${o[a]}`};function Ds({isAuto:e,level:t,levels:n}){const r=n.length,o=[];return r>1&&o.push({sid:"quality-level-auto",label:"Auto",value:-1,selected:e||t===-1}),n.sort(function(a,u){const i=a.height||a.bitrate||0,l=u.height||u.bitrate||0;return i===l?0:i>l?1:-1}),n.map(a=>{const{bitrate:u,height:i,index:l}=a;o.push({sid:`quality-level-${l}`,label:i?`${i}p`:Is(u),value:l,selected:r===1||!e&&l===t})}),o}const tr="vod-player-progress-bar";function Os(){const e=f.useRef(null),t=f.useRef(null),[n,r]=f.useState(0),[o,a]=f.useState(0),[u,i]=f.useState(!1),[l,d]=f.useState(-1),[m,g]=f.useState(-1),S=$(O=>O.delay),k=$(O=>O.startTime),P=$(O=>O.endTime),L=$(O=>O.setDelay),N=h(O=>O.isPlaying),x=h(O=>O.addIdleLock),b=h(O=>O.removeIdleLock),w=f.useCallback(()=>{r(Qn(k,S)),a(er(k,P))},[S,P,k]),v=parseFloat((o?(m!==-1?m:n)/o*100:0).toFixed(1)),D=O=>{g(o*(O[0]/100)),x(tr)},R=()=>{if(m!==-1){const O=Jn(k,m);L(O),g(-1),b(tr)}},E=()=>i(!0),W=()=>i(!1),K=f.useCallback(O=>{const Me=e.current,fe=t.current;if(Me&&fe){const q=xt(Me),ne=xt(fe),ue=(O.pageX||O.clientX)-q.left,Re=ue/q.width;if(Re<0)return;let X=ue-ne.width/2;X<0&&(X=0),X>q.width-ne.width&&(X=-1),fe.style.left=X>-1?`${X}px`:"auto",fe.style.right=X>-1?"auto":"0px",d(Re*o)}E()},[o]);return et(()=>w(),N?1e3:null),f.useEffect(()=>{w()},[w]),c.jsxs(Gn,{children:[c.jsx(bt,{ref:e,value:[v],onPointerLeave:W,onPointerDown:W,onPointerMove:K,onValueChange:D,onValueCommit:R,step:.1}),c.jsx(Kn,{ref:t,$isVisible:u,children:c.jsx(Xn,{children:Fe(l)})})]})}function nr({children:e}){return c.jsx(ks,{children:e})}function As({children:e,startDate:t,endDate:n}){return c.jsx(Gr,{startDate:t,endDate:n,children:c.jsx(nr,{children:e})})}const rr=I.div`
|
|
259
259
|
display: flex;
|
|
260
260
|
align-items: center;
|
|
261
|
-
`,
|
|
261
|
+
`,or=I.p`
|
|
262
262
|
margin: 0;
|
|
263
263
|
padding: 0;
|
|
264
264
|
font-variant-numeric: tabular-nums;
|
|
@@ -266,11 +266,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);function ns({children
|
|
|
266
266
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
267
267
|
"Helvetica Neue", Arial, sans-serif;
|
|
268
268
|
font-weight: 500;
|
|
269
|
-
`,
|
|
269
|
+
`,sr=I(or)`
|
|
270
270
|
margin-right: 0.5rem;
|
|
271
|
-
`,
|
|
271
|
+
`,ir=I(or)`
|
|
272
272
|
margin-left: 0.5rem;
|
|
273
|
-
`,
|
|
273
|
+
`,ar=I.p`
|
|
274
274
|
margin: 0;
|
|
275
275
|
padding: 0;
|
|
276
276
|
font-size: 0.8125rem;
|
|
@@ -281,7 +281,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);function ns({children
|
|
|
281
281
|
&::before {
|
|
282
282
|
content: "/";
|
|
283
283
|
}
|
|
284
|
-
`;function
|
|
284
|
+
`;function Fs(){const[e,t]=f.useState(0),[n,r]=f.useState(0),o=h(d=>d.isPlaying),a=$(d=>d.delay),u=$(d=>d.startTime),i=$(d=>d.endTime),l=f.useCallback(()=>{t(Qn(u,a)),r(er(u,i))},[a,i,u]);return et(()=>l(),o?1e3:null),f.useEffect(()=>{l()},[l]),a?c.jsxs(rr,{children:[c.jsx(sr,{children:Fe(e)}),c.jsx(ar,{}),c.jsx(ir,{children:Fe(n)})]}):null}function Ms(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M22 12C22 17.5228 17.5229 22 12 22C6.4772 22 2 17.5228 2 12C2 6.47715 6.4772 2 12 2V4C7.5817 4 4 7.58172 4 12C4 16.4183 7.5817 20 12 20C16.4183 20 20 16.4183 20 12C20 9.53614 18.8862 7.33243 17.1346 5.86492L15 8V2L21 2L18.5535 4.44656C20.6649 6.28002 22 8.9841 22 12Z"})})}function Vs(){const e=$(r=>r.startTime),t=$(r=>r.setDelay),n=()=>t(Jn(e));return c.jsx(me,{onClick:n,children:c.jsx(Ms,{})})}function Ns({url:e,isLive:t}){const n=f.useRef(null),r=h(x=>x.level),o=h(x=>x.levels),a=h(x=>x.setLevel),u=h(x=>x.setLevels),i=h(x=>x.techRef),l=h(x=>x.isStarted),[d,m]=f.useState(!1),g=f.useCallback(x=>{if(n.current&&(n.current.nextLevel=x,a(null),o)){const b=o.map(w=>({...w,selected:w.value===x}));u(b)}},[o,a,u,n]),S=f.useCallback(()=>{n.current&&(console.log("[Player][HLS] MEDIA_ATTACHED"),n.current.loadSource(e))},[e]),k=f.useCallback(()=>{if(!n.current)return;console.log("[Player][HLS] MANIFEST_LOADED");const x=n.current.levels,b=n.current.currentLevel,w=n.current.autoLevelEnabled;u(Ds({levels:x.map((v,D)=>{const{bitrate:R,height:E,width:W}=v;return{bitrate:R,height:E,index:D,width:W}}),level:b,isAuto:w}))},[u]),P=f.useCallback((x,b)=>{if(console.error("[Player][HLS] ERROR",x,b),!!n.current)switch(b.type){case ee.ErrorTypes.NETWORK_ERROR:b.fatal&&n.current.startLoad();break;case ee.ErrorTypes.MEDIA_ERROR:if(b.fatal)n.current.recoverMediaError();else if(b.details===ee.ErrorDetails.BUFFER_STALLED_ERROR&&t&&!d){m(!0),console.log("[Player][HLS] Stream failed, attempting failover retry...");try{console.log("[Player][HLS] Retrying stream..."),n.current.loadSource(e)}catch(w){console.error("[Player][HLS] Failover retry failed:",w)}}break}},[t,d,e]),L=f.useCallback(()=>{if(!i.current)return;const x={backBufferLength:10,startLevel:-1,maxBufferSize:30*1024*1024},b={backBufferLength:60,startLevel:-1,maxBufferSize:30*1024*1024},w=t?x:b;try{console.log("[Player][HLS] URL",e),console.log("[Player][HLS] Config",JSON.stringify(w)),console.log("[Player][HLS] Version",ee.version),n.current=new ee(w),n.current.attachMedia(i.current),n.current.on(ee.Events.MEDIA_ATTACHED,S),n.current.on(ee.Events.MANIFEST_LOADED,k),n.current.on(ee.Events.ERROR,P)}catch(v){throw new Error(`Error initializing Hls: ${v}`)}},[k,S,P,t,i,e]),N=f.useCallback(()=>{n.current&&(n.current.off(ee.Events.MEDIA_ATTACHED,S),n.current.off(ee.Events.MANIFEST_LOADED,k),n.current.off(ee.Events.ERROR,P),n.current.destroy(),n.current=null),m(!1)},[k,S,P]);return f.useEffect(()=>{r!==null&&g(r)},[r,g]),f.useEffect(()=>{l&&m(!1)},[l]),f.useEffect(()=>(ee.isSupported()&&L(),N),[N,L]),null}function cr({url:e,isLive:t,isMuted:n=!1}){const r=h(v=>v.handleDurationChange),o=h(v=>v.handleEnd),a=h(v=>v.handleLoadedMetadata),u=h(v=>v.handleLoadStart),i=h(v=>v.handlePause),l=h(v=>v.handlePlay),d=h(v=>v.handlePlaying),m=h(v=>v.handleSeeked),g=h(v=>v.handleSeeking),S=h(v=>v.handleTimeUpdate),k=h(v=>v.handleWaiting),P=h(v=>v.techRef),L=f.useRef(null),N=v=>{console.error("[Player][Native] ERROR",v)},x=()=>t?{}:{onDurationChange:r,onSeeked:m,onSeeking:g,onTimeUpdate:b},b=()=>{(!L.current||Date.now()-L.current>=1e3)&&(S(),L.current=Date.now())},w=x();return c.jsxs(c.Fragment,{children:[c.jsx(Ns,{isLive:t,url:e}),c.jsx(Hs,{ref:P,playsInline:!0,autoPlay:!0,controls:!1,muted:n,preload:"auto",crossOrigin:"anonymous",onEnded:o,onError:N,onLoadedMetadata:a,onLoadStart:u,onPause:i,onPlay:l,onPlaying:d,onWaiting:k,tabIndex:-1,...w})]})}const Hs=I.video`
|
|
285
285
|
position: relative;
|
|
286
286
|
width: 100%;
|
|
287
287
|
height: 100%;
|
|
@@ -289,7 +289,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);function ns({children
|
|
|
289
289
|
@media (min-width: 768px) {
|
|
290
290
|
pointer-events: none;
|
|
291
291
|
}
|
|
292
|
-
`;function
|
|
292
|
+
`;function $s({url:e}){const[t,n]=f.useState(null),r=$(a=>a.delay),o=f.useCallback(async()=>{n(r?e.replace("-live","-catchup").replace("playlist.m3u8",`playlist_fmp4_dvr_timeshift-${r}.m3u8`):e)},[r,e]);return f.useEffect(()=>{o()},[o]),t?c.jsx(cr,{url:t,isLive:!0}):null}const lr=I.div`
|
|
293
293
|
position: absolute;
|
|
294
294
|
top: 0;
|
|
295
295
|
left: 0;
|
|
@@ -298,7 +298,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);function ns({children
|
|
|
298
298
|
color: white;
|
|
299
299
|
background: black;
|
|
300
300
|
overflow: hidden;
|
|
301
|
-
`,
|
|
301
|
+
`,ur=I.div`
|
|
302
302
|
position: absolute;
|
|
303
303
|
left: 0;
|
|
304
304
|
width: 100%;
|
|
@@ -310,7 +310,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);function ns({children
|
|
|
310
310
|
@media (min-width: 768px) {
|
|
311
311
|
padding-top: 2rem;
|
|
312
312
|
}
|
|
313
|
-
`,
|
|
313
|
+
`,dr=I.div`
|
|
314
314
|
display: flex;
|
|
315
315
|
flex-direction: column;
|
|
316
316
|
padding-left: 0.5rem;
|
|
@@ -322,21 +322,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);function ns({children
|
|
|
322
322
|
padding-left: 1rem;
|
|
323
323
|
padding-right: 1rem;
|
|
324
324
|
}
|
|
325
|
-
`,
|
|
325
|
+
`,fr=I.div`
|
|
326
326
|
display: flex;
|
|
327
327
|
padding: 0.5rem 0;
|
|
328
328
|
width: 100%;
|
|
329
329
|
align-items: center;
|
|
330
|
-
`,
|
|
330
|
+
`,pr=I.div`
|
|
331
331
|
display: flex;
|
|
332
332
|
flex: 1;
|
|
333
333
|
align-items: center;
|
|
334
334
|
gap: 0.5rem;
|
|
335
|
-
`,
|
|
335
|
+
`,hr=I(pr)`
|
|
336
336
|
justify-content: flex-start;
|
|
337
|
-
`,
|
|
337
|
+
`,mr=I(pr)`
|
|
338
338
|
justify-content: flex-end;
|
|
339
|
-
`;function
|
|
339
|
+
`;function zs(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z"})})}function Bs(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z"})})}function gr(){const e=h(d=>d.containerRef),t=h(d=>d.exitFullscreen),n=h(d=>d.isFullscreen),r=h(d=>d.requestFullscreen),o=h(d=>d.setIsFullscreen),a=h(d=>d.setIsFullscreenReady),u=h(d=>d.techRef),i=f.useCallback(d=>{d.stopPropagation(),o(ps())},[o]),l=()=>{n?t():r()};return f.useEffect(()=>{const d=Bn?u.current:e.current;if(d)return gs(d,i)},[e,i,u]),f.useEffect(()=>{a(!0)},[a]),c.jsx(me,{onClick:l,children:n?c.jsx(Bs,{}):c.jsx(zs,{})})}const Us=5*1e3;function yr({children:e}){const t=f.useRef(null),[n,r]=f.useState(!1),o=f.useRef(null),u=h(d=>d.idleLocks).size,i=f.useCallback(()=>{o.current!==null&&(window.clearTimeout(o.current),o.current=null)},[]),l=f.useCallback(()=>{i(),o.current=window.setTimeout(()=>r(!0),Us)},[i]);return f.useEffect(()=>(r(!1),l(),()=>{i()}),[i,l]),f.useEffect(()=>{const d=t.current;if(!d)return;const m=S=>{n&&(S.stopPropagation(),r(!1),l())},g=()=>{n&&r(!1),l()};return d.addEventListener("click",m),d.addEventListener("mousemove",g),()=>{d.removeEventListener("click",m),d.removeEventListener("mousemove",g)}},[t,n,r,l]),c.jsx(Ws,{ref:t,$isIdle:n&&!u,children:e})}const Ws=I.div`
|
|
340
340
|
position: absolute;
|
|
341
341
|
top: 0;
|
|
342
342
|
left: 0;
|
|
@@ -345,21 +345,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);function ns({children
|
|
|
345
345
|
transition: opacity 0.2s ease-in-out;
|
|
346
346
|
cursor: ${({$isIdle:e})=>e?"none":"auto"};
|
|
347
347
|
opacity: ${({$isIdle:e})=>e?0:1};
|
|
348
|
-
`;function
|
|
348
|
+
`;function qs(e){return c.jsx(Zs,{...e})}const Ys=ns`
|
|
349
349
|
from {
|
|
350
350
|
transform: rotate(0deg);
|
|
351
351
|
}
|
|
352
352
|
to {
|
|
353
353
|
transform: rotate(360deg);
|
|
354
354
|
}
|
|
355
|
-
`,
|
|
355
|
+
`,Zs=I.div`
|
|
356
356
|
width: 1.5rem;
|
|
357
357
|
height: 1.5rem;
|
|
358
358
|
border: 2px solid white;
|
|
359
359
|
border-bottom-color: transparent;
|
|
360
360
|
border-radius: 50%;
|
|
361
|
-
animation: ${
|
|
362
|
-
`;function
|
|
361
|
+
animation: ${Ys} 1s linear infinite;
|
|
362
|
+
`;function Gs(e,t=500){const[n,r]=f.useState(e);return f.useEffect(()=>{const o=window.setTimeout(()=>r(e),t);return()=>{window.clearTimeout(o)}},[e,t]),n}function vr({style:e,...t}){const n=h(o=>o.isLoading);return Gs(n,100)?c.jsx(Ks,{style:e,...t,children:c.jsx(qs,{})}):null}const Ks=I.div`
|
|
363
363
|
pointer-events: none;
|
|
364
364
|
position: absolute;
|
|
365
365
|
top: 0;
|
|
@@ -371,7 +371,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);function ns({children
|
|
|
371
371
|
height: 100%;
|
|
372
372
|
align-items: center;
|
|
373
373
|
justify-content: center;
|
|
374
|
-
`;function
|
|
374
|
+
`;function Xs(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z"})})}function Js(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M4 5V19H20V5H4ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM7.5 11.25H9.5V9H11V15H9.5V12.75H7.5V15H6V9H7.5V11.25ZM14.5 10.5V13.5H16C16.2761 13.5 16.5 13.2761 16.5 13V11C16.5 10.7239 16.2761 10.5 16 10.5H14.5ZM13 9H16C17.1046 9 18 9.89543 18 11V13C18 14.1046 17.1046 15 16 15H13V9Z"})})}const Qs=Be.Root,ei=Be.Trigger,ti=Be.Portal,wr=f.forwardRef(({sideOffset:e=4,...t},n)=>c.jsx(ni,{ref:n,sideOffset:e,onCloseAutoFocus:r=>{r.preventDefault()},...t}));wr.displayName="PlayerDropdownMenuContent";const br=f.forwardRef((e,t)=>c.jsx(ri,{ref:t,...e}));br.displayName="PlayerDropdownMenuItem";const ni=I(Be.Content).withConfig({shouldForwardProp:e=>e!=="ref"})`
|
|
375
375
|
padding: 0.25rem;
|
|
376
376
|
min-width: 8rem;
|
|
377
377
|
max-height: 8rem;
|
|
@@ -446,7 +446,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);function ns({children
|
|
|
446
446
|
transform: translateX(0);
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
`,
|
|
449
|
+
`,ri=I(Be.Item)`
|
|
450
450
|
position: relative;
|
|
451
451
|
display: flex;
|
|
452
452
|
align-items: center;
|
|
@@ -483,11 +483,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);function ns({children
|
|
|
483
483
|
color: rgba(255, 255, 255, 0.5);
|
|
484
484
|
pointer-events: none;
|
|
485
485
|
}
|
|
486
|
-
`,
|
|
486
|
+
`,xr="settings";function Sr(){const[e,t]=f.useState(!1),n=h(l=>l.containerRef),r=h(l=>l.addIdleLock),o=h(l=>l.removeIdleLock),a=h(l=>l.levels),u=h(l=>l.setLevel),i=f.useCallback(l=>{t(l),l?r(xr):o(xr)},[r,o]);return c.jsxs(Qs,{open:e,onOpenChange:i,children:[c.jsx(ei,{asChild:!0,children:c.jsx(me,{children:c.jsx(Js,{})})}),c.jsx(ti,{container:n.current,children:c.jsx(wr,{side:"top",align:"end",children:a?.map(l=>c.jsxs(br,{onClick:()=>u(l.value),children:[l.label,l.selected&&c.jsx(Xs,{})]},l.sid))})})]})}function oi(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M6.60282 10.0001L10 7.22056V16.7796L6.60282 14.0001H3V10.0001H6.60282ZM2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z"})})}function si(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M13 7.22056L9.60282 10.0001H6V14.0001H9.60282L13 16.7796V7.22056ZM8.88889 16.0001H5C4.44772 16.0001 4 15.5524 4 15.0001V9.00007C4 8.44778 4.44772 8.00007 5 8.00007H8.88889L14.1834 3.66821C14.3971 3.49335 14.7121 3.52485 14.887 3.73857C14.9601 3.8279 15 3.93977 15 4.05519V19.9449C15 20.2211 14.7761 20.4449 14.5 20.4449C14.3846 20.4449 14.2727 20.405 14.1834 20.3319L8.88889 16.0001ZM18.8631 16.5911L17.4411 15.1691C18.3892 14.4376 19 13.2902 19 12.0001C19 10.5697 18.2493 9.31476 17.1203 8.60766L18.5589 7.16906C20.0396 8.26166 21 10.0187 21 12.0001C21 13.8422 20.1698 15.4905 18.8631 16.5911Z"})})}function ii(){return c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M10 7.22056L6.60282 10.0001H3V14.0001H6.60282L10 16.7796V7.22056ZM5.88889 16.0001H2C1.44772 16.0001 1 15.5524 1 15.0001V9.00007C1 8.44778 1.44772 8.00007 2 8.00007H5.88889L11.1834 3.66821C11.3971 3.49335 11.7121 3.52485 11.887 3.73857C11.9601 3.8279 12 3.93977 12 4.05519V19.9449C12 20.2211 11.7761 20.4449 11.5 20.4449C11.3846 20.4449 11.2727 20.405 11.1834 20.3319L5.88889 16.0001ZM20.4142 12.0001L23.9497 15.5356L22.5355 16.9498L19 13.4143L15.4645 16.9498L14.0503 15.5356L17.5858 12.0001L14.0503 8.46454L15.4645 7.05032L19 10.5859L22.5355 7.05032L23.9497 8.46454L20.4142 12.0001Z"})})}const kr="volume";function Er(){h(i=>i.containerRef);const e=h(i=>i.setVolume),t=h(i=>i.volume),n=h(i=>i.addIdleLock),r=h(i=>i.removeIdleLock),o=i=>{e(i[0]),n(kr)},a=()=>{r(kr)},u=()=>e(t?0:100);return c.jsxs(ai,{children:[c.jsx(me,{onClick:u,className:"shrink-0",children:t?t>50?c.jsx(oi,{}):c.jsx(si,{}):c.jsx(ii,{})}),c.jsx(Cr,{children:c.jsx(bt,{value:[t],onValueChange:o,onValueCommit:a})})]})}const Cr=I.div`
|
|
487
487
|
width: 0;
|
|
488
488
|
opacity: 0;
|
|
489
489
|
transition: all 0.2s ease-in-out;
|
|
490
|
-
`,
|
|
490
|
+
`,ai=I.div`
|
|
491
491
|
display: flex;
|
|
492
492
|
align-items: center;
|
|
493
493
|
gap: 0.25rem;
|
|
@@ -498,11 +498,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);function ns({children
|
|
|
498
498
|
&:hover {
|
|
499
499
|
width: 6rem;
|
|
500
500
|
|
|
501
|
-
${
|
|
501
|
+
${Cr} {
|
|
502
502
|
width: 100%;
|
|
503
503
|
opacity: 1;
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
`;function
|
|
507
|
+
`;function ci({url:e,startDate:t,endDate:n,messages:r}){return c.jsx(As,{startDate:new Date(t),endDate:new Date(n),children:c.jsx(li,{url:e,messages:r})})}function li({url:e,messages:t}){const n=h(r=>r.containerRef);return c.jsxs(lr,{ref:n,children:[c.jsxs(rs,{eventFinishedMessage:t?.eventFinished,eventNotStartedMessage:t?.eventNotStarted,eventStartingSoonMessage:t?.eventStartingSoon,children:[c.jsx($s,{url:e}),c.jsx(vr,{}),c.jsxs(yr,{children:[c.jsx(Ts,{}),c.jsx(ur,{children:c.jsxs(dr,{children:[c.jsx(Os,{}),c.jsxs(fr,{children:[c.jsxs(hr,{children:[c.jsx(Cs,{}),c.jsx(Vs,{}),c.jsx(Er,{}),c.jsx(Fs,{})]}),c.jsxs(mr,{children:[c.jsx(ls,{message:t?.live}),c.jsx(Sr,{}),c.jsx(gr,{})]})]})]})})]})]}),c.jsx(Es,{})]})}function ui(){const e=h(i=>i.currentTime),t=h(i=>i.duration),n=h(i=>i.isPlaying),r=h(i=>i.pause),o=h(i=>i.play),a=h(i=>i.seek),u=f.useCallback(i=>{let l=!1;if(!(i.target instanceof HTMLInputElement||i.ctrlKey)){switch(i.code){case"ArrowLeft":a(e-10>=0?e-10:0),l=!0;break;case"ArrowRight":a(e+10<t?e+10:t),l=!0;break;case"Space":n?r():o(),l=!0;break}l&&i.preventDefault()}},[e,t,n,r,o,a]);return f.useEffect(()=>(document.addEventListener("keydown",u),()=>{document.removeEventListener("keydown",u)}),[u]),c.jsx(Wn,{})}function di(){const e=h(o=>o.isPlaying),t=h(o=>o.pause),n=h(o=>o.play),r=()=>{e?t():n()};return c.jsx(me,{onClick:r,children:e?c.jsx(qn,{}):c.jsx(Yn,{})})}function fi(){const e=h(o=>o.isPlaying),t=h(o=>o.pause),n=h(o=>o.play),r=()=>{e?t():n()};return c.jsx(Zn,{onClick:r})}const Rr="vod-player-progress-bar";function pi(){const e=f.useRef(null),t=f.useRef(null),[n,r]=f.useState(!1),[o,a]=f.useState(-1),[u,i]=f.useState(-1),l=h(w=>w.currentTime),d=h(w=>w.duration),m=h(w=>w.seek),g=h(w=>w.addIdleLock),S=h(w=>w.removeIdleLock),k=parseFloat((d?(u!==-1?u:l)/d*100:0).toFixed(1)),P=w=>{i(d*(w[0]/100)),g(Rr)},L=()=>{u!==-1&&(m(u),i(-1),S(Rr))},N=()=>r(!0),x=()=>r(!1),b=f.useCallback(w=>{const v=e.current,D=t.current;if(v&&D){const R=xt(v),E=xt(D),W=(w.pageX||w.clientX)-R.left,K=W/R.width;if(K<0)return;let O=W-E.width/2;O<0&&(O=0),O>R.width-E.width&&(O=-1),D.style.left=O>-1?`${O}px`:"auto",D.style.right=O>-1?"auto":"0px",a(K*d)}N()},[d]);return c.jsxs(Gn,{children:[c.jsx(bt,{ref:e,value:[k],onPointerLeave:x,onPointerDown:x,onPointerMove:b,onValueChange:P,onValueCommit:L,step:.1}),c.jsx(Kn,{ref:t,$isVisible:n,children:c.jsx(Xn,{children:Fe(o)})})]})}function hi(){const e=h(n=>n.currentTime),t=h(n=>n.duration);return c.jsxs(rr,{children:[c.jsx(sr,{children:Fe(e)}),c.jsx(ar,{}),c.jsx(ir,{children:Fe(t)})]})}const mi=60,gi=95;function yi({storageKey:e}){const t=h(m=>m.currentTime),n=h(m=>m.duration),r=h(m=>m.isPlaying),o=h(m=>m.setStartTime),a=f.useRef(!1),u=f.useCallback(()=>{window.localStorage.setItem(e,JSON.stringify({currentTime:t,duration:n}))},[t,n,e]),i=f.useCallback(()=>{const m=window.localStorage.getItem(e);if(m){const g=JSON.parse(m);return{startTime:g.currentTime,progress:g.currentTime/g.duration*100}}return{startTime:null,progress:null}},[e]),l=f.useCallback(()=>{t<mi||u()},[t,u]),d=f.useCallback(()=>{if(a.current)return;const{progress:m,startTime:g}=i();g&&m&&m<gi&&(o(g),a.current=!0)},[i,o]);return et(()=>l(),r?1e3:null),f.useEffect(()=>{d()},[d]),null}function vi({url:e,watchHistory:t}){return c.jsxs(nr,{children:[c.jsx(wi,{url:e}),t?.enabled&&c.jsx(yi,{storageKey:t.storageKey})]})}function wi({url:e}){const t=h(n=>n.containerRef);return c.jsxs(lr,{ref:t,children:[c.jsx(cr,{url:e,isLive:!1}),c.jsx(vr,{}),c.jsxs(yr,{children:[c.jsx(fi,{}),c.jsx(ur,{children:c.jsxs(dr,{children:[c.jsx(pi,{}),c.jsxs(fr,{children:[c.jsxs(hr,{children:[c.jsx(di,{}),c.jsx(Er,{}),c.jsx(hi,{})]}),c.jsxs(mr,{children:[c.jsx(Sr,{}),c.jsx(gr,{})]})]})]})})]}),c.jsx(ui,{})]})}Q.LivePlayer=ci,Q.VodPlayer=vi,Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"})}));
|
|
508
508
|
//# sourceMappingURL=react-video-player.umd.js.map
|